]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2002-10-26 Andrew Cagney <cagney@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
903ad3a6
AC
12002-10-26 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
4 DO_REGISTERS_INFO.
5 gdbarch.h, gdbarch.c: Re-generate.
6 * infcmd.c (default_print_registers_info): Update reference.
7 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
8 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
9 * sh-tdep.c (sh_gdbarch_init): Ditto.
10 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12
ab91194c
MK
132002-10-26 Mark Kettenis <kettenis@gnu.org>
14
e3033f15
MK
15 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
16 cfi_init_extra_frame_info.
17 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
18 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
19
b83b026c
MK
20 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
21 target where necessary. Add more comments and remove the ones
22 that don't provide any useful information.
23
267bf4bb
MK
24 * i386-tdep.c (i386_frame_saved_pc): Replace call to
25 deprecated_read_register_dummy with
26 frame_unwind_unsigned_register.
27
751f1375
MK
28 * i386-tdep.c (i386_extract_struct_value_address): Use
29 regcache_raw_read_unsigned instead of
30 regcache_cooked_read_unsigned since we know that the register
31 we're reading isn't a pseudo register. Rename variable 'val' into
32 the more descriptive 'addr'.
33
26abbdc4
MK
34 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
35 (x86_64_push_return_address): Add comment.
36 (x86_64_pop_frame): Make static.
37 (examine_argument): Clarify comment.
38 (x86_64_skip_prologue): Make prolog_expact variable static.
39
9f1549cc
MK
40 * dwarf2cfi.c: Fix some formatting problems.
41 (context_cpy, read_encoded_pointer): Clarify comments.
42
ab91194c
MK
43 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
44 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
45 i386 target back into x86_64_gdbarch_init. Add some comments and
46 remove meaningless ones.
47
72367fb4
AC
482002-10-25 Andrew Cagney <cagney@redhat.com>
49
50 * complaints.h (struct deprecated_complaint): Rename `struct
51 complaint'.
52 * complaints.c (complain): Update.
53 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
54 incorrect comment indicating that "symfile.h" was being included
55 for the `struct complaint' definition.
56 * remote-vx.c: Update.
57 * objc-lang.c: Update.
58 * xcoffread.c: Update.
59 * hpread.c: Update.
60 * mdebugread.c: Update.
61 * stabsread.c: Update.
62 * dwarf2read.c: Update.
63 * dwarfread.c: Update.
64 * elfread.c: Update.
65 * coffread.c: Update.
66 * stabsread.h: Update.
67 * dbxread.c: Update.
68 * buildsym.c: Update.
69 * gdbtypes.c: Update.
70 * macrotab.c: Update.
71
1f2baacc
MK
722002-10-25 Mark Kettenis <kettenis@gnu.org>
73
0c1a73d6
MK
74 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
75 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
76 (x86_64_init_abi): ...new function.
77
6aee4d54 78 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
79 * i386v-nat.c: Include "i386-tdep.h".
80
8f9cbe01
AC
812002-10-25 Andrew Cagney <cagney@redhat.com>
82
5f11f355
AC
83 * gdbtypes.c (address_space_name_to_int): Update.
84 (address_space_int_to_name): Update.
85 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
86 multi-arch predicate.
87 (address_class_name_to_type_flags): Ditto.
88 * gdbarch.h, gdbarch.c: Re-generate.
89
8f9cbe01
AC
90 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
91
e8d96a5d
MH
922002-10-24 Martin M. Hunt <hunt@redhat.com>
93
94 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
95
fe39c653
EZ
962002-10-24 Elena Zannoni <ezannoni@redhat.com>
97
98 * symtab.h (INIT_SAL): Delete macro.
99 (init_sal): Export.
100 * symtab.c (init_sal): New function.
101
102 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
103 to init_sal function call.
104 (find_sal_from_funcs_and_line): Ditto.
105 (all_sals_for_line): Ditto.
106 * breakpoint.c (create_internal_breakpoint): Ditto.
107 (create_fork_vfork_event_catchpoint): Ditto.
108 (create_exec_event_catchpoint): Ditto.
109 (parse_breakpoint_sals): Ditto.
110 (watch_command_1): Ditto.
111 (handle_gnu_4_16_catch_command): Ditto.
112 (clear_command): Ditto.
113 * hppa-tdep.c (child_enable_exception_callback): Ditto.
114 * infcmd.c (run_stack_dummy): Ditto.
115 * infrun.c (process_event_stop_test): Ditto.
116 (check_sigtramp2): Ditto.
117 (step_over_function): Ditto.
118 * linespec.c (decode_line_2): Ditto.
119 (decode_line_1): Ditto.
120 * source.c (line_info): Ditto.
121 * symtab.c (find_pc_sect_line): Ditto.
122
baed091b
ML
1232002-10-24 Michal Ludvig <mludvig@suse.cz>
124
125 * dwarf2cfi.c (struct context)
126 (struct context_reg): Moved to dwarf2cfi.h
127 (context_alloc, frame_state_alloc, context_cpy):
128 Made extern instead of static, removed prototypes.
129 * dwarf2cfi.h (struct context)
130 (struct context_reg): New, moved from dwarf2cfi.c
131 (context_alloc, frame_state_alloc, context_cpy):
132 New prototypes.
133 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
134 Changed from static to extern.
135 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
136 (LINUX_SIGCONTEXT_FP_OFFSET)
137 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
138 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
139 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
140 * x86-64-tdep.c (x86_64_gdbarch_init): Several
141 set_gdbarch_*() calls now use x86-64 specific functions
142 instead of DWARF2 CFI ones.
143 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
144 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
145 (x86_64_init_extra_frame_info): New prototypes.
146
c38da1af
DC
1472002-10-23 David Carlton <carlton@math.stanford.edu>
148
149 * linespec.c: #include "parser-defs.h".
150 Delete prototype for find_template_name_end.
151 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
152
fb9b6b35
JJ
1532002-10-23 Jeff Johnston <jjohnstn@redhat.com>
154
155 * NEWS: add recent mi fixes.
156 * varobj.c (struct varobj): Add new "updated" flag.
157 (new_variable): Default "updated" flag to 0.
158 (varobj_set_value): Set "updated" flag to 1 if value
159 changes.
160 (varobj_update): Check varobj "updated" flag before
161 comparing old and refreshed values. Fix for
162 PR gdb/702.
163
8da065d5
DC
1642002-10-23 David Carlton <carlton@math.stanford.edu>
165
166 * parse.c (parse_exp_1): Use BLOCK_START.
167 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
168 SYMBOL_BLOCK_VALUE.
169 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
170
87f2f08c
DC
1712002-10-23 David Carlton <carlton@math.stanford.edu>
172
173 * symtab.c: Delete cplusplus_hint.
174 Delete prototype for find_template_name_end.
175
88cda038
EZ
1762002-10-23 Elena Zannoni <ezannoni@redhat.com>
177
178 * symtab.h: Update comment.
179
2625d86c
MS
1802002-10-23 Michael Snyder <msnyder@redhat.com>
181
182 * printcmd.c (address_info): Restore quotes in output.
183 * valops.c (value_of_local): Restore quotes in error message.
184
9cc0d196
EZ
1852002-10-23 Elena Zannoni <ezannoni@redhat.com>
186
187 * symtab.c (symbol_demangled_name): New function.
188 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
189 turning most of it into a function.
190 (symbol_demangled_name): Export.
191
19de93d0
MS
1922002-10-23 Michael Snyder <msnyder@redhat.com>
193
194 * valops.c (value_of_local): Restore quotes in error message.
195
89aad1f9
EZ
1962002-10-23 Elena Zannoni <ezannoni@redhat.com>
197
198 * symtab.c (symbol_init_language_specific): New function.
199 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
200 turning most of it into a function.
201 (symbol_init_language_specific): Export.
202
d9fa45fe
DC
2032002-10-23 David Carlton <carlton@math.stanford.edu>
204
205 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
206 (dwarf_attr_name): Ditto.
207 (dwarf_type_encoding_name): Ditto.
208 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
209 (process_die): Handle DW_TAG_namespace,
210 DW_TAG_imported_declaration, DW_TAG_imported_module.
211 (read_namespace): New function.
212
1045b512
JB
2132002-10-22 Joel Brobecker <brobecker@gnat.com>
214
215 * configure.in: Define NEW_PROC_API on Interix too.
216 * configure: Regenerate.
217
2182002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
219
220 * configure: Regenerate using the proper version of autoconf.
221
3987b9d4
EZ
2222002-10-21 Elena Zannoni <ezannoni@redhat.com>
223
224 * findvar.c (read_var_value): Temporarily disable TLS code, until
225 complete TLS support is added.
226
9d774e44
EZ
2272002-10-21 Jim Blandy <jimb@redhat.com>
228 Elena Zannoni <ezannoni@redhat.com>
229
230 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
231 for thread local storage locations.
232 (struct symbol): Add objfile field.
233 (SYMBOL_OBJFILE): Define.
234 * dwarf2read.c (is_thread_local): New static variable.
235 (new_symbol): If variable is in thread local fill in address class
236 and objfile appropriately.
237 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
238 stack operation.
239 * printcmd.c (address_info): Print the information for thread
240 local storage variable.
241 * findvar.c (read_var_value): In case of thread local variable,
242 defer to the target vector code to compute address.
243
bc4a16ae
EZ
2442002-10-21 Elena Zannoni <ezannoni@redhat.com>
245
246 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
247 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
248
407caf07
EZ
2492002-10-21 Elena Zannoni <ezannoni@redhat.com>
250
251 * symtab.h (address_class): Rename
252 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
253 * hpread.c (hpread_process_one_debug_symbol): Ditto.
254 * printcmd.c (address_info): Ditto.
255 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
256
005328e3
MK
2572002-10-20 Mark Kettenis <kettenis@gnu.org>
258
afdb036a
MK
259 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
260 DBREG_DRX macro to acces debug registers.
261
ca02e098
MK
262 * Makefile.in (i386obsd-tdep.o): New target.
263
03cc47f7
MK
264 * solib-sunos.c: Include "bcache.h" and "regcache.h".
265 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
266
005328e3
MK
267 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
268 * config/i386/obsd.mt: New file.
269 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
270 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
271 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
272 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
273 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
274 * i386obsd-tdep.c: New file.
275
9c96f9f2
AF
2762002-10-19 Adam Fedor <fedor@gnu.org>
277
278 * objc-exp.y (name_not_typename): Fix invalid comment.
279
ce1ed485
MK
2802002-10-20 Mark Kettenis <kettenis@gnu.org>
281
282 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
283 to allocate partial syms and macro byte caches.
284
1efc7aaa
DC
2852002-10-18 David Carlton <carlton@math.stanford.edu>
286
287 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
288
7e1d63ec
AF
2892002-10-18 Adam Fedor <fedor@gnu.org>
290
291 * stabsread.c (find_name_end): New function.
292 (define_symbol): Use it.
293
6e8d29a9
DJ
2942002-10-18 Daniel Jacobowitz <drow@mvista.com>
295
296 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
297 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
298 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
299 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
300
1efc7aaa 3012002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
302
303 * symfile.h: Add opaque declaration for struct obstack.
304 Declare obsavestring to take a const char *.
305 * symfile.c (obsavestring): Make first argument a const char *.
306
1aeae86e
AF
3072002-10-16 Adam Fedor <fedor@gnu.org>
308
309 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
310 names when matching breakpoints in current file.
311
8b2dbe47
KB
3122002-10-16 Kevin Buettner <kevinb@redhat.com>
313
314 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
315 (read_tag_pointer_type): Add address class support.
316 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
317 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
318 New methods.
319 * gdbarch.h, gdbarch.c: Regenerate.
320 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
321 (make_type_with_address_space, recursive_type_dump): Add address
322 class support.
323 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
324 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
325 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
326
74451869
KD
3272002-10-16 Klee Dienes <kdienes@apple.com>
328
329 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
330 to get the last character of a char[] buffer, not
331 name[sizeof(vptr_name)-1].
332
ff4cb3e8
AF
3332002-10-14 Adam Fedor <fedor@gnu.org>
334
335 * symtab.h: New objc_specific struct.
336 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
337 (SYMBOL_DEMANGLED_NAME): Likewise.
338
da2cf7e0
AF
3392002-10-14 Adam Fedor <fedor@gnu.org>
340
341 * symfile.c (init_filename_language_table): Add ObjC file extension.
342
4a351cef
AF
3432002-10-14 Adam Fedor <fedor@gnu.org>
344
345 * utils.c (puts_filtered_tabular): New function.
346 (fprintf_symbol_filtered): Get ObjC demangled name.
347 * defs.h (puts_filtered_tabular): Declared.
348
9750e763
KB
3492002-10-14 Kevin Buettner <kevinb@redhat.com>
350
351 * c-lang.h (c_type_print_varspec_prefix): Delete.
352 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
353 ``need_post_space'' parameter. Adjust all callers.
354
eee771c1
DJ
3552002-10-14 Daniel Jacobowitz <drow@mvista.com>
356
357 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
358 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
359 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
360 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
361
46c82446
AF
3622002-10-13 Adam Fedor <fedor@gnu.org>
363
364 * source.c (print_source_lines): Update comments.
365
d069f99d
AF
3662002-10-13 Adam Fedor <fedor@gnu.org>
367
368 * valops.c (value_of_local): New function.
369 (value_of_this): Use it.
370 * value.h (value_of_local): Declared.
371
53c551b7
AF
3722002-10-13 Adam Fedor <fedor@gnu.org>
373
374 * parse.c: (length_of_subexp, prefixify_subexp): Handle
375 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
376
eb392fbf
AF
3772002-10-12 Adam Fedor <fedor@gnu.org>
378
379 * language.c (binop_result_type): Add language_objc to case.
380 (integral_type): Likewise.
381 (character_type): Likewise.
382 (string_type): Likewise.
383 (boolean_type): Likewise.
384 (structured_type): Likewise.
385 (binop_type_check): Likewise.
386
e2b23ee9
AF
3872002-10-11 Adam Fedor <fedor@gnu.org>
388
389 * printcmd.c (address_info): Print 'self' for ObjC.
390
b01ab485
AF
3912002-10-11 Adam Fedor <fedor@gnu.org>
392
393 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
394 OP_SELF.
395
806e6073
AF
3962002-10-11 Adam Fedor <fedor@gnu.org>
397
398 * language.h (CAST_IS_CONVERSION): Add language_objc.
399
50f85cdf
AF
4002002-10-11 Adam Fedor <fedor@gnu.org>
401
402 * defs.h (enum language): Add language_objc.
403
0d540cdf
KD
4042002-10-11 Klee Dienes <kdienes@apple.com>
405
406 * findvar.c (read_memory_typed_address): New function.
407 * gdbcore.h (read_memory_typed_address): Add prototype.
408 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
409 to read a value destined for a CORE_ADDR, not read_memory_integer.
410 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
411 (f77_get_dynamic_lowerbound): Ditto.
412
d5dc7960
MH
4132002-10-11 Martin M. Hunt <hunt@redhat.com>
414
415 * utils.c (string_to_core_addr): After turning string into
416 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
417 which will do necessary sign-extension, etc.
418
8343f86c
DJ
4192002-10-11 Daniel Jacobowitz <drow@mvista.com>
420
421 * c-exp.y (THIS): Delete token and grammar rule.
422 (yylex): Don't return THIS.
423 * cp-valprint.c (vtbl_ptr_name_old): Delete.
424 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
425 * demangle.c (cplus_markers): Update comment. Put '$'
426 first. Remove CPLUS_MARKER.
427 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
428 * jv-exp.y (THIS): Delete token and grammar rule.
429 (yylex): Don't return THIS.
430 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
431 * objc-exp.y (THIS): Delete token and grammar rule.
432 (yylex): Don't return THIS.
433 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
434 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
435 (read_member_functions): Likewise for opname.
436 (read_tilde_fields): Use is_cplus_marker.
437
438 * defs.h (CPLUS_MARKER): Don't define.
439 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
440 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
441 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
442 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
443 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
444
445 * config/i386/tm-i386v4.h: Delete file.
446 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
447 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
448 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
449 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
450 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
451 * config/i386/i386sco5.mt (TM_FILE): Likewise.
452 * config/i386/i386v4.mt (TM_FILE): Likewise.
453 * config/i386/ncr3000.mt (TM_FILE): Likewise.
454
967c0d83
MM
4552002-10-10 Marko Mlinar <markom@opencores.org>
456
457 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
458 accidentially not commited 2002-10-09
459 * gdbarch.h, gdbarch.c: Re-generate.
460
f74fa174
MM
4612002-10-09 Marko Mlinar <markom@opencores.org>
462
463 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
464 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
465 * gdbarch.h, gdbarch.c: Re-generate.
466
57349743
JB
4672002-10-08 Petr Sorfa <petrs@caldera.com>
468
469 Revised and re-submitted by John Wolfe <jlw@caldera.com>
470
471 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
472 so we can work on more than one compilation unit at a time. This
473 helps prepare GDB to handle inter-CU die references.
474 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
475 the code to be defined before struct comp_unit_head.
476 (comp_unit_head): Added new members - offset, cu_head,
477 begin_die, next and dwarf2_abbrevs.
478 (dwarf2_abbrevs): Removed single static var; now member of
479 struct comp_unit_head.
480 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
481 members.
482 (psymtab_to_symtab_1): Changed to work with the new
483 struct comp_unit_head.
484 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
485 constructs the dwarf2_abbrevs[] inside the cu_header.
486 (dwarf2_empty_abbrev_table): Now expects a ptr to a
487 dwarf2_abbrev table to clean up.
488 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
489 handling of dwarf2_abbrevs inside the cu_header.
490 (read_partial_die): Now supports the call to the new
491 dwarf2_lookup_abbrev.
492 (read_full_die): Now supports the call to the new
493 dwarf2_lookup_abbrev.
494
4092aadb
CF
4952002-10-06 Christopher Faylor <cgf@redhat.com>
496
497 * Makefile.in (install-gdbtk): Add missing continuation backslash to
498 insure that shell variables, such as "transformed_name" are propagated
499 to later shell statements in rule.
500
af0b2512
MK
5012002-10-06 Mark Kettenis <kettenis@gnu.org>
502
503 * config/i386/nm-i386sco.h: Add protection against
504 multiple-inclusion. Include "i386/nm-i386v.h".
505 (REGISTER_U_ADDR): Remove define.
506 (i386_register_u_addr): Remove prototype.
507
d6020d45
MS
5082002-10-04 Michael Snyder <msnyder@redhat.com>
509
510 * m32r-stub.c (handle_exception): Make sure exception is "trap"
511 before treating it as a single-step event.
512
7248f48e
AF
5132002-10-03 Adam Fedor <fedor@gnu.org>
514
515 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
516 (objc_demangle): Remove assignment in if statements, Replace
517 free with xfree.
518 (add_msglist): Likewise.
519 (end_msglist): Likewise.
520 (complare_selectors): Likewise.
521 (selectors_info): Likewise.
522 (compare_classes): Likewise.
523 (classes_info): Likewise.
524 (print_object_command): Likewise.
525 (find_objc_msgcall_submethod): Replace PTR with void *.
526 * objc-lang.h: Remove check for __STDC__.
527
52c6a6ac
JJ
5282002-10-03 Jeff Johnston <jjohnstn@redhat.com>
529
530 * ui-out.h (ui_out_field_fmt_int): New prototype.
531 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
532 of field width and alignment.
533 * stack.c (print_frame_info_base): When printing frame level, use
534 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
535 PR gdb/192
536
7e3cec17
JJ
5372002-10-03 Jeff Johnston <jjohnstn@redhat.com>
538
539 * MAINTAINERS: Add self to Write After Approval list.
540
a58dd373
EZ
5412002-10-02 Elena Zannoni <ezannoni@redhat.com>
542
543 * infcmd.c (interrupt_target_command_wrapper): Delete.
544 (interrupt_target_command): Make non static.
545 (nofp_registers_info): Make static.
546 * stack.c (return_command_wrapper): Delete.
547 (return_command): Make non static.
548
cee6ddeb
EZ
5492002-10-02 Elena Zannoni <ezannoni@redhat.com>
550
551 * event-top.c (gdb_setup_readline): New function. Code moved from
552 _initialize_event_loop().
553 (_initialize_event_loop): Call gdb_setup_readline().
554
c4ed33b9
AC
5552002-10-02 Andrew Cagney <ac131313@redhat.com>
556
557 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
558 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
559 * gdbarch.h, gdbarch.c: Re-generate.
560
cef4f5dd
DJ
5612002-10-02 Daniel Jacobowitz <drow@mvista.com>
562
563 Fix PR gdb/778
564 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
565 before recursing.
566 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
567 of fill_in_vptr_fieldno.
568
36dc181b 5692002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 570
36dc181b
EZ
571 * inferior.h (registers_info, stepi_command, nexti_command,
572 continue_command, interrupt_target_command): Export from infcmd.c.
573 * frame.h (args_info, selected_frame_level_changed_hook,
574 return_command): Export from stack.c.
575 * v850ice.c (stepi_command, nexti_command, continue_command): use
576 prototypes from inferior.h.
577 * tracepoint.c (registers_info, args_info, locals_info): Use
578 prototypes from frame.h and inferior.h.
579 * Makefile.in (mi-main.o): Add dependency on frame.h.
580
6f99cb26
AC
5812002-10-02 Andrew Cagney <ac131313@redhat.com>
582
da3eff49
AC
583 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
584 value in register 3 adjusted by ppc_gp0_regnum.
585
6f99cb26
AC
586 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
587
da615bee
MM
5882002-10-02 Marko Mlinar <markom@opencores.org>
589
590 * MAINTAINERS: Add myself to the Write After Approval list.
591
d154bee2
AO
5922002-10-01 Alexandre Oliva <aoliva@redhat.com>
593
62a49b2c
AO
594 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
595 of the section for the N64 ABI, fixed.
596
d154bee2
AO
597 * config/mips/tm-irix6.h: Include solib.h.
598
ed348acc
EZ
5992002-10-01 Elena Zannoni <ezannoni@redhat.com>
600
601 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
602 GNU operators.
603
da0f9dcd
AC
6042002-10-01 Andrew Cagney <ac131313@redhat.com>
605
606 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
607 and that "mi0" syntax has been removed.
608
bdf64bac
DC
6092002-09-30 David Carlton <carlton@math.stanford.edu>
610
611 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
612 * ppc-sysv-tdep.c: #include "gdb_string.h".
613 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
614 pacify GCC.
615
54c2a1e6
AC
6162002-10-01 Andrew Cagney <ac131313@redhat.com>
617
618 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
619 "vrsave"'s register number.
620
cedea778
AC
6212002-09-30 Andrew Cagney <ac131313@redhat.com>
622
623 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
624 use frame_unwind_signed_register to obtain the PC.
625 (mips_frame_chain): Handle a generic dummy frame.
626 (mips_init_extra_frame_info): When a generic dummy frame, don't
627 re-compute the frame base.
628 (mips_pop_frame): Handle generic dummy frames.
629 (mips_gdbarch_init): When generic dummy frames, set
630 use_generic_dummy_frames, push_dummy_frame to
631 generic_push_dummy_frame, pc_in_call_dummy to
632 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
633 generic_save_dummy_frame_tos.
634
68315eb8
AC
6352002-09-30 Andrew Cagney <ac131313@redhat.com>
636
637 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
638 against TOP when TOP was explictly set.
639 (generic_push_dummy_frame): Set TOP to zero.
640
3b8630c3
EZ
6412002-09-30 Elena Zannoni <ezannoni@redhat.com>
642
643 * event-loop.c (start_event_loop): Rename variable 'result' to
644 'gdb_result', to avoid conflicts with upcoming intepreters changes.
645
28ee05e9
KS
6462002-09-30 Keith Seitz <keiths@redhat.com>
647
648 * gdb-events.sh (selected_thread_changed): New event.
649 * gdb-events.c: Regenerated.
650 * gdb-events.h: Regenerated.
651
6eecb1c8
HPN
6522002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
653
654 * MAINTAINERS: Add self to Write After Approval list.
655
92df71f0
FN
6562002-09-30 Fernando Nasser <fnasser@redhat.com>
657
3b8630c3
EZ
658 * disasm.c: New file.
659 * disasm.h: New file.
92df71f0
FN
660 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
661 (compare_lines): Ditto.
662 (dump_insns): Ditto.
3b8630c3
EZ
663 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
664 argument.
92df71f0 665 (do_assembly_only): Ditto.
3b8630c3
EZ
666 (do_disassembly): Renamed to gdb_disassembly and moved to
667 disasm.c. Sdded uiout argument.
668 * Makefile.in: Add new files. Reorder SFILES list. Update
669 dependencies. Include libgdb.a later in the insight executable.
92df71f0 670
0c22854d
AC
6712002-09-29 Andrew Cagney <ac131313@redhat.com>
672
673 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
674 bfd/elf64-alpha-fbsd.c.
675
e67f2023
AC
6762002-09-29 Andrew Cagney <ac131313@redhat.com>
677
678 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
679 i386gnu-tdep.c.
680
89396210
AC
6812002-09-29 Andrew Cagney <ac131313@redhat.com>
682
683 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
684 __FUNCTION__.
685 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
686 function name.
687 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
688 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
689 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
690 (S_msg_sig_post_reply): Ditto.
691
7079c36c
CV
6922002-09-28 Corinna Vinschen <vinschen@redhat.com>
693
89396210
AC
694 * sh-tdep.c (sh_use_struct_convention): Use definition according
695 to ABI.
7079c36c
CV
696 (sh_push_arguments): Store in register with correct endianess.
697 (sh_default_store_return_value): Ditto.
698 (sh_gdbarch_init): Set sizeof long double to 8.
699
975ac915
MK
7002002-09-27 Mark Kettenis <kettenis@gnu.org>
701
702 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
703 Fix some whitespace problems.
704
9bbe19fb
DC
7052002-09-27 David Carlton <carlton@math.stanford.edu>
706
707 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
708 (mcore-tdep.o): Ditto.
709 (ns32k-tdep.o): Ditto.
710 (ns32knbsd-tdep.o): Ditto.
711 (sh3-rom.o): Ditto.
712 (vax-tdep.o): Ditto.
713 * cris-tdep.c: #include "gdb_string.h"
714 * mcore-tdep.c: Ditto.
715 * ns32k-tdep.c: Ditto.
716 * ns32knbsd-tdep.c: Ditto.
717 * sh3-rom.c: Ditto.
718 * vax-tdep.c: Ditto.
719
43b2fdc7
DC
7202002-09-27 David Carlton <carlton@math.stanford.edu>
721
722 * config/djgpp/fnchange.lst: Add entries for
723 gdb/testsuite/gdb.c++/m-static files.
724
e8cfbbd9
JW
7252002-09-27 Jim Wilson <wilson@redhat.com>
726
727 * MAINTAINERS: Add myself to the Write After Approval list.
728
43b2fdc7 7292002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
730
731 * mips-tdep.c (find_proc_desc): Initialize startaddr.
732
733
9f3b7f07
AC
7342002-09-26 Andrew Cagney <ac131313@redhat.com>
735
736 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
737 frame.
738
11269d7e
AC
7392002-09-26 Andrew Cagney <ac131313@redhat.com>
740
741 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
742 (rs6000_struct_return_address): Delete variable.
743 (rs6000_store_struct_return): Update.
744 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
745 deprecated_extract_struct_value_address.
746 (rs6000_frame_align): New function.
747 (rs6000_gdbarch_init): Set frame_align.
748
f15ab4a7
AC
7492002-09-26 Andrew Cagney <ac131313@redhat.com>
750
751 From Grace Sainsbury <graces@redhat.com>:
752 * Makefile.in (gdbtk-main.o): New target.
753 (gdb.o): New target.
754 (main_h): Define.
755 (main.o): Update dependencies.
756 (gdb$(EXEEXT)): Add gdb.o.
757 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
758 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
759 (SUBDIR_GDBTK_CLEAN): Set.
760 (install-gdbtk): Install the insight binary.
761 (uninstall-gdbtk): New target.
762 (all-gdbtk, clean-gdbtk): New rule.
763 * top.c (use_windows): Default to zero.
764 * main.c: Include "main.h".
765 (main): Delete.
766 (struct captured_main_args): Delete.
767 (gdb_main): New function.
768 * main.h: New file.
769 * gdb.c: New File.
770
e36180d7
AC
7712002-09-25 Andrew Cagney <cagney@redhat.com>
772
773 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
774 (frame_map_regnum_to_name): New function.
775 (frame_map_name_to_regnum): New function.
776 * frame.h (frame_map_name_to_regnum): Declare.
777 (frame_map_regnum_to_name): Declare.
778 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
779 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
780 * parse.c: Do not include "builtin-regs.h".
781 (target_map_name_to_register): Delete function.
782 (write_dollar_variable): Use frame_map_name_to_regnum.
783 * parser-defs.h (target_map_name_to_register): Delete declaration.
784 * expprint.c: Include "frame.h".
785 (print_subexp): Use frame_map_regnum_to_name.
786 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
787 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
788
8b69000d
AC
7892002-09-25 Andrew Cagney <ac131313@redhat.com>
790
791 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
792 wasn't saved, and the next innermost frame is a dummy, return the
793 dummy frame's link register.
794
046ca86a
JB
7952002-09-24 Jim Blandy <jimb@redhat.com>
796
797 Fix from Paul Breed:
798 * main.c (captured_main): Add a `break' after the case for 'b'.
799
94b66fa7
KS
8002002-09-24 Keith Seitz <keiths@redhat.com>
801
802 * varobj.c (c_type_of_child): Use get_target_type instead
803 of TYPE_TARGET_TYPE.
804
c214a6fd
FN
8052002-09-22 Fernando Nasser <fnasser@redhat.com>
806
53cb0458
FN
807 * source.c (get_current_or_default_source_symtab_and_line): Remove
808 function.
809 (set_default_source_symtab_and_line): New function. Attempts to
810 determine a source file to list lines from if one is not currently
811 defined.
812 (get_current_source_symtab_and_line): Initialize sal.pc and
813 sal.end fields.
814 (set_current_source_symtab_and_line): Mark argument as const.
815 * source.h: Update declarations and comments.
816 * linespec.c (decode_line_1): Replace call to removed routine above.
817 * stack.c (print_frame_info_base): Ditto.
818 * cli/cli-cmds.c (edit_command): Ditto.
819 (list_command): Ditto.
820
8212002-09-22 Fernando Nasser <fnasser@redhat.com>
822
d6020d45 823 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 824 sal.pc and sal.end fields.
c214a6fd
FN
825 (get_current_or_default_source_symtab_and_line): Ditto.
826 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
827 so we do not cause a new source symtab to be searched for (reverting an
828 unintentional change from the 2002-09-20 patch).
829 * scm-lang.c (scm_unpac): Ditto.
830
cc3b68a5
AC
8312002-09-21 Andrew Cagney <cagney@redhat.com>
832
833 * complaints.c (symfile_explanations): Remove new-line from
834 ``isolated_message''.
835 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
836 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
837
5835abe7
NC
8382002-09-20 Nick Clifton <nickc@redhat.com>
839
840 * NEWS: Announce that V850EA ISA is no longer supported.
841 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
842
a15ef5f5
DC
8432002-09-20 David Carlton <carlton@math.stanford.edu>
844
06ba1b39
DC
845 * Makefile.in (c-lang.o): Correct dependencies.
846 (utils.o): Gather dependencies.
847 (charset.o): Move.
a15ef5f5
DC
848 * c-lang.c: #include "gdb_string.h"
849
87885426
FN
8502002-09-20 Fernando Nasser <fnasser@redhat.com>
851
852 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
853 * cli/cli-cmds.c (list_command): New function. Implements the new
854 cli edit command.
855 (_init_cli_cmds): Add new command definition.
856 * gdb.1: Document edit command.
857 * doc/gdb.texinfo: Document edit command.
858
8592002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
860
861 * source.c: Make global variables current_source_symtab and
862 current_source_line static.
863 (list_command): Moved to cli/cli-cmds.c.
864 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
865 (get_first_line_listed): New accessor function.
866 (get_lines_to_list): New accessor function.
867 (get_current_source_symtab_and_line): New function. Retrieves the
868 position in the source code that we consider current.
869 (get_current_or_default_source_symtab_and_line): New function.
870 Like the above but attempts to determine a default position if one
871 is not currently defined.
872 (set_current_source_symtab_and_line): New function. Sets the source
873 code position considered current and returns the previously set one.
874 (clear_current_source_symtab_and_line): Reset stored information about
875 a current source line.
876 (_initialize_source): Remove registration for the "list" command and
877 its alias.
878 * source.h: Add declarations for the new functions above.
879 * symtab.h: Remove declarations for the global variables mentioned
880 above.
881 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
882 obtain current source line.
883 * linespec.c (decode_line_1): Ditto.
884 * macroscope.c (default_macro_scope): Ditto.
885 * scm-lang.c (scm_unpac): Ditto.
886 * stack.c (print_frame_info_base): Ditto.
887 * symfile.c (clear_symtab_users): Ditto.
888 * symtab.c (decode_line_spec): Ditto.
889 * cli/cli-cmds.c (list_command): Moved here from source.c.
890 (ambiguous_line_spec): Moved here from source.c.
891 (_init_cli_cmds): Add definition for "list" and its alias.
892 * Makefile.in: Update dependencies.
893
ddd216ea
CV
8942002-09-20 Corinna Vinschen <vinschen@redhat.com>
895
896 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
897 with what gcc thinks is correct.
898
6d305052
CV
8992002-09-20 Corinna Vinschen <vinschen@redhat.com>
900
901 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
902 multiple register push instruction.
903
234b45d4
KB
9042002-09-19 Jim Blandy <jimb@redhat.com>
905
906 Add support for distinct host and target character sets.
907 * charset.c, charset.h: New files.
908 * c-exp.y: #include "charset.h".
909 (yylex): Convert character and string literals to the target
910 character set, before returning them as the semantic value of the
911 token.
912 * c-lang.c: #include "charset.h".
913 (c_emit_char): Use charset-specific methods to recognize
914 characters with backslash escape forms, to decide which characters
915 to print literally and which to print using numeric escape
916 sequences, and to convert target characters to host characters
917 before printing.
918 * utils.c: #include "charset.h".
919 (no_control_char_error): New function.
920 (parse_escape): Use charset-specific methods to recognize
921 backslash escapes, parse `control character' notation, and convert
922 characters from the host character set to the target character set.
923 * configure.in: Set the default host character set.
924 Check where to find iconv, and what its argument types might be.
925 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
926 * Makefile.in (SFILES): List charset.c.
927 (COMMON_OBS): List charset.o.
928 (charset.o): New rule.
929 (charset_h): New header dependency variable.
930 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
931 (LIBICONV): New variable, set by configure.
932 (CLIBS): Include $(LIBICONV) here.
933 * aclocal.m4, config.in, configure: Regenerated.
934
525d6a61
JB
9352002-09-19 Joel Brobecker <brobecker@gnat.com>
936
937 * ada-exp.y: Add missing semicolons to end rules. Fixes a
938 bison 1.35 warning.
939
3ed93867
RE
9402002-09-19 Richard Earnshaw <rearnsha@arm.com>
941
942 * gdb_mbuild.sh: New file.
943
437666f8
AC
9442002-09-19 Andrew Cagney <ac131313@redhat.com>
945
946 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
947
389e51db
AC
9482002-09-18 Andrew Cagney <ac131313@redhat.com>
949
950 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
951 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
952 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
953 valops.c, value.h: Revert previous change.
954
3b4efeaa
MS
9552002-09-18 Michael Snyder <msnyder@redhat.com>
956
957 Preliminary support for Objective-C:
958 * defs.h (language_objc): New enum value.
959 (puts_filtered_tabular): Declaration only, exported from utils.c.
960 (skip_quoted): Delete, declared in completer.h.
961 * c-exp.y: Include completer.h.
962 * p-exp.y: Ditto.
963 * jv-exp.y: Ditto.
964 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
965 New operator enum values.
966 * language.h (CAST_IS_CONVERSION): Test for language_objc.
967 * language.c (binop_result_type): Handle language_objc case.
968 (integral_type, character_type, string_type, boolean_type,
969 structured_type, binop_type_check): Ditto.
970 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
971 (struct objc_specific): Add to general_symbol_info.
972 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
973 (SYMBOL_DEMANGLED_NAME): Handle objc case.
974 * parser-defs.h (struct objc_class_str): New struct type.
975 (start_msglist, end_msglist, add_msglist): Declaration only,
976 exported from objc-lang.c.
977 * value.h (value_of_local, value_nsstring,
978 call_function_by_hand_expecting_type): Exported from valops.c.
979 * valops.c (find_function_addr): Export.
980 (call_function_by_hand_expecting_type): New function.
981 (value_of_local): New function.
982 * symfile.c (init_filename_language_table): Add ".m" extension
983 for Objective-C.
984 * utils.c (puts_filtered_tabular): New function.
985 (fprintf_symbol_filtered): Add objc demangling support (disabled).
986 (set/show demangle): Extend help-string to refer to ObjC.
987 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
988 * stabsread.c (symbol_reference_defined): Objective-C symbols
989 may contain colons: make allowances when scanning stabs strings
990 for colons.
991 (objc_find_colon): New function.
992 * printcmd.c (address_info): If language == objc then print
993 "self" instead of "this".
994 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
995 OP_NSSTRING, and OP_SELF.
996 (prefixify_subexp): Ditto.
997 * source.c (print_source_lines): Mention objc in comment.
998 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
999 method names.
1000
b9caf505
AC
10012002-09-18 Andrew Cagney <ac131313@redhat.com>
1002
1003 * complaints.h: Update copyright.
1004 (struct complaints): Declare.
1005 (struct complaint): Make `message' constant.
1006 (internal_complaint): Declare.
1007 (complaint): Declare.
1008 (complaint_root): Delete declaration.
1009 (symfile_complaints): Delete declaration.
1010 (struct complaints): Add opaque declaration.
1011 (clear_complaints): Add a complaints parameter.
1012 * complaints.c: Update copyright.
1013 (enum complaint_series): Define.
1014 (complaint_root): Delete.
1015 (struct complaints): Define.
1016 (complaint_sentinel, symfile_complaint_book): New variables.
1017 (symfile_explanations, symfile_complaints): New variables.
1018 New variables.
1019 (get_complaints): New function.
1020 (vcomplaint): New function.
1021 (complaint): New function.
1022 (internal_complaint): New function.
1023 (complain): Call vcomplain with symfile_complaint.
1024 (clear_complaints): Rewrite.
1025 (_initialize_complaints): Use add_setshow_command.
1026 * Makefile.in (complaints.o): Update dependencies.
1027 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1028 to call to clear_complaints.
1029 (new_symfile_objfile, reread_symbols): Ditto.
1030 (oldsyms_complaint): Delete.
1031 (empty_symtab_complaint, unknown_option_complaint): Delete.
1032 (free_named_symtabs): Use complaint instead of complain.
1033
d2e6263c
MS
10342002-09-18 Michael Snyder <msnyder@redhat.com>
1035
5fb2031a
AC
1036 Contributed by Apple Computer, Inc. Merged with current sources
1037 by Adam Fedor <fedor@doc.com> [cagney].
1038
d2e6263c
MS
1039 * objc-lang.c: First clean-up round: comments, indentation.
1040 * objc-lang.h: Ditto.
1041 * objc-lang.y: Ditto.
1042
dec43320
AC
10432002-09-18 Andrew Cagney <ac131313@redhat.com>
1044
1045 * maint.c (maintenance_internal_error): Print the parameter as the
1046 error message.
1047 (maintenance_internal_warning): New function.
1048 (_initialize_maint_cmds): Add command `maint internal-warning'.
1049
1050 * defs.h (internal_warning, internal_vwarning): Declare.
1051 * utils.c (struct internal_problem): Define.
1052 (internal_vproblem): New function.
1053 (internal_warning): New function.
1054 (internal_vwarning): New function.
1055 (internal_warning_problem, internal_error_problem): New variables.
1056 (internal_verror): Just call internal_vproblem.
1057
b81654f1
MS
10582002-09-18 Michael Snyder <msnyder@redhat.com>
1059
1060 * objc-lang.c: New file, support for Objective-C.
1061 Preliminary check-in, not yet integrated into gdb.
1062 * objc-lang.h: New file.
1063 * objc-exp.y: New file.
1064
0542c381
AC
10652002-09-18 Andrew Cagney <ac131313@redhat.com>
1066
7bda5e4a
AC
1067 * infrun.c (signal_stop_update): Convert definition to ISO C.
1068 (signal_print_update): Ditto.
1069 (signal_pass_update): Ditto.
1070 * inflow.c (terminal_save_ours): Ditto.
1071
5247b418
AC
1072 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1073 comments.
1074
fc60962c
AC
1075 * config/djgpp/fnchange.lst: Handle name clashes between
1076 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1077 bfd/coff-tic80.c.
1078
0542c381
AC
1079 * i386-linux-tdep.h: Fix tipo.
1080
5b924b9b
AF
10812002-09-18 Adam Fedor <fedor@gnu.org>
1082
1083 * MAINTAINERS: Add myself to the Write After Approval list.
1084
5afc051b
JB
10852002-09-18 Jim Blandy <jimb@redhat.com>
1086
1087 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1088 texthigh and textlow to reader-specific structs caused
1089 objfile_relocate to miss them. This is fixable, but the work that
1090 the change was supposed to prepare GDB for never got done anyway.
1091
eb944380
DC
10922002-09-18 David Carlton <carlton@math.stanford.edu>
1093
1094 * MAINTAINERS: Alphabetize Write After Approval list.
1095
948e66d9
DJ
10962002-09-18 Daniel Jacobowitz <drow@mvista.com>
1097
1098 Fix PR gdb/709
1099 * values.c (value_static_field): Call read_var_value.
1100
dc604539
AC
11012002-09-18 Andrew Cagney <ac131313@redhat.com>
1102
1103 * valops.c (hand_function_call): Align the initial stack pointer
1104 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1105 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1106 return value.
1107 * mips-tdep.c (mips_frame_align): New function.
1108 (mips_gdbarch_init): Set frame_align.
1109 * gdbarch.sh (FRAME_ALIGN): New method.
1110 * gdbarch.h, gdbarch.c: Re-generate.
1111
cb7e422f
ML
11122002-09-18 Michal Ludvig <mludvig@suse.cz>
1113
1114 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1115 registers.
1116
a094c6fb
AC
11172002-09-17 Andrew Cagney <ac131313@redhat.com>
1118
1119 * NEWS: Mention that MIPS $fp behavior changed.
1120 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1121 reference to FP_REGNUM.
1122 (mipsnbsd_cannot_store_register): Ditto.
1123 * mips-linux-nat.c: Update copyright.
1124 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1125 (mips_linux_cannot_store_register): Ditto.
1126 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1127 * config/mips/tm-mips.h: Update copyright.
1128 (FP_REGNUM): Delete macro.
1129 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1130 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1131 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1132 (mips_r3041_reg_names, mips_r3051_reg_names)
1133 (mips_r3081_reg_names): Replace "fp" with "".
1134 Fix PR gdb/480.
1135
45cf40d1
TR
11362002-09-17 Theodore A. Roth <troth@verinet.com>
1137
1138 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1139 generic_read_register_dummy() (PR gdb/703).
1140 (avr_push_return_address): #if 0 out unused vars.
1141 (avr_gdbarch_init): Enable use of avr_push_return_address().
1142
c7e701b5
MS
11432002-09-17 Michael Snyder <msnyder@redhat.com>
1144
d76ba2a5 1145 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1146 RTE will take care of it.
1147
20bcf01c
AC
11482002-09-17 Andrew Cagney <ac131313@redhat.com>
1149
1150 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1151 invalid, return SP_REGNUM.
1152
009a9971 11532002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1154
1155 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1156 point registers without sign extension.
1157
135c175f
AC
11582002-09-17 Andrew Cagney <cagney@redhat.com>
1159
1160 * blockframe.c (deprecated_read_register_dummy): Rename
1161 generic_read_register_dummy.
1162 * frame.c (frame_unwind_signed_register): New function.
1163 (frame_unwind_unsigned_register): New function.
1164 * frame.h (frame_unwind_signed_register): Declare.
1165 (frame_unwind_unsigned_register): Declare.
1166 (deprecated_read_register_dummy): Rename
1167 generic_read_register_dummy.
1168
1169 * h8300-tdep.c (h8300_frame_chain): Update.
1170 (h8300_frame_saved_pc): Update.
1171 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1172 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1173 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1174 (s390_frame_chain): Update.
1175 * v850-tdep.c (v850_find_callers_reg): Update.
1176 (v850_frame_saved_pc): Update.
1177 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1178 (m32r_find_callers_reg): Update.
1179 (m32r_frame_saved_pc): Update.
1180 * sh-tdep.c (sh_find_callers_reg): Update.
1181 (sh64_get_saved_pr): Update.
1182 (sh_init_extra_frame_info): Update.
1183 (sh_init_extra_frame_info): Update.
1184 (sh64_init_extra_frame_info): Update.
1185 (sh64_init_extra_frame_info): Update.
1186 * mcore-tdep.c (mcore_find_callers_reg): Update.
1187 (mcore_frame_saved_pc): Update.
1188 (mcore_init_extra_frame_info): Update.
1189 * i386-tdep.c (i386_frame_saved_pc): Update.
1190 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1191 (ia64_init_extra_frame_info): Update.
1192 (ia64_init_extra_frame_info): Update.
1193 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1194 * cris-tdep.c (cris_init_extra_frame_info): Update.
1195 * avr-tdep.c (avr_frame_chain): Update.
1196 (avr_init_extra_frame_info): Update.
1197 (avr_frame_saved_pc): Update.
1198 * arm-tdep.c (arm_find_callers_reg): Update.
1199 (arm_init_extra_frame_info): Update.
1200 (arm_frame_saved_pc): Update.
1201
a741e514
TT
12022002-09-17 Tom Tromey <tromey@redhat.com>
1203
1204 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1205 is "'".
1206
d1a8e808
CV
12072002-09-17 Corinna Vinschen <vinschen@redhat.com>
1208
1209 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1210 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1211 NEXT_PROLOGUE_INSN.
1212 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1213 NEXT_PROLOGUE_INSN.
1214
d9025a18
JB
12152002-09-16 Joel Brobecker <brobecker@gnat.com>
1216
1217 * osfsolib.c: Remove file, replaced by solib-osf.c.
1218 * Makefile.in: Remove compilation rules for osfsolib.c.
1219
1b2ef1b6
DC
12202002-09-16 David Carlton <carlton@math.stanford.edu>
1221
1222 * cp-valprint.c (cp_print_class_method): Correct args to
1223 check_stub_method_group.
1224
928e48af
CV
12252002-09-16 Corinna Vinschen <vinschen@redhat.com>
1226
1227 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1228 `set architecture'. Unify naming convention of functions.
1229 (h8300_skip_prologue): Improve prologue analysis.
1230 (h8300_push_arguments): Rewritten to more closely match GCC's
1231 bizarre argument-passing behavior, along with the comment describing
1232 said behavior.
1233 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1234 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1235 sim, remote-e7000.c, remote-hms.c and remote.c
1236
5e3397bb
MK
12372002-09-15 Mark Kettenis <kettenis@gnu.org>
1238
1239 * i386-tdep.c (gdb_print_insn_i386): Removed.
1240 (i386_print_insn): New function.
1241 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1242 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1243 tm_print_insn_info.
1244
f710f4fc
MK
12452002-09-14 Mark Kettenis <kettenis@gnu.org>
1246
1247 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1248 zero.
1249
db54fef4
CV
12502002-09-14 Corinna Vinschen <vinschen@redhat.com>
1251
1252 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1253 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1254 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1255
2becadee
CF
12562002-09-13 Christopher Faylor <cgf@redhat.com>
1257
1258 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1259
de17c821
DJ
12602002-09-13 Daniel Jacobowitz <drow@mvista.com>
1261
1262 * gdbtypes.c (check_stub_method): Make static.
1263 (check_stub_method_group): New function.
1264 * gdbtypes.h: Update prototypes.
1265 * cp-support.c: New file.
1266 * cp-support.h: New file.
1267
1268 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1269 (update_method_name_from_physname): New function.
1270 (read_member_functions): Correct method names for operators
1271 and v3 constructors/destructors. Separate v2 constructors and
1272 destructors.
1273 * Makefile.in (stabsread.o): Update dependencies.
1274 (SFILES): Add cp-support.c.
1275 (COMMON_OBS): Add cp-support.o.
1276 (cp_support_h, cp-support.o): Add.
1277
1278 * cp-valprint.c (cp_print_class_method): Call
1279 check_stub_method_group instead of check_stub_method. Remove
1280 extraneous QUITs.
1281 * p-valprint.c (pascal_object_print_class_method): Likewise.
1282 * valops.c (search_struct_method): Likewise.
1283 (find_method_list, value_struct_elt_for_reference): Likewise.
1284
e76cff22
AC
12852002-09-13 Andrew Cagney <cagney@redhat.com>
1286
1287 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1288 * gdbarch.h, gdbarch.c: Regenerate.
1289
905abb3f
AC
12902002-09-13 Andrew Cagney <ac131313@redhat.com>
1291
1292 * frame.c (find_saved_register): Delete function.
1293 * frame.h (find_saved_register): Delete declaration.
1294 Fix PR gdb/631.
1295
64159455
AC
1296Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1297
1298 * mips-tdep.c (read_next_frame_reg): Re-hack using
1299 frame_register_unwind.
1300
795e1e11
AC
1301Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1302
1303 * mips-tdep.c (mips_get_saved_register): Re-hack using
1304 frame_register_unwind.
1305
5720643c
JB
13062002-09-12 Joel Brobecker <brobecker@gnat.com>
1307
1308 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1309 vector. Will be useful for Interix.
1310 * gdbarch.h, gdbarch.c: Regenerate.
1311
1312 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1313 name of the malloc function by NAME_OF_MALLOC.
1314
3bada2a2
JB
13152002-09-12 Joel Brobecker <brobecker@gnat.com>
1316
1317 * value.h (find_function_in_inferior): Add const keyword to
1318 one of the parameters. Allows us to invoke this function with
1319 a const char *.
1320 * valops.c (find_function_in_inferior): Likewise.
1321
3db26b01
JB
13222002-09-12 Joel Brobecker <brobecker@gnat.com>
1323
1324 * exec.c (xfer_memory): Fix compilation warning with old versions
1325 of GCC.
1326 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1327
17c5ed2c
DC
13282002-09-12 David Carlton <carlton@math.stanford.edu>
1329
1330 * symtab.h: Run through gdb_indent.h.
1331 Add 2002 to Copyright year list.
1332
ecd1107e
AM
13332002-09-12 Alan Modra <amodra@bigpond.net.au>
1334
1335 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1336 mach constants.
1337 * MAINTAINERS: Add myself to write after approval list.
1338
e64f66d1
JB
13392002-09-11 J. Brobecker <brobecker@gnat.com>
1340
1341 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1342
f9395794
JB
13432002-09-11 J. Brobecker <brobecker@gnat.com>
1344
1345 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1346 Interix.
1347
1a303dec
MS
13482002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1349
1350 * procfs.c (do_detach): Clear current signal, not just fault.
1351 Corrects problem with breakpoint trap signal leaking to detached
1352 process on Tru64.
1353
c0219d42
MS
13542002-09-10 Michael Snyder <msnyder@redhat.com>
1355
1356 * buildsym.c (finish_block): Protect against null pointer.
1357
9d84ac84
AC
13582002-09-10 Andrew Cagney <cagney@redhat.com>
1359
1360 * infcmd.c (default_print_registers_info): Send all output to
1361 ``file'' instead of ``gdb_stdout''.
1362
77d8f2b4
MS
13632002-09-10 Michael Snyder <msnyder@redhat.com>
1364
1365 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1366 LONGEST, and use signed register read (addresses are sign-
1367 extended for mips).
1368
99656a61
SC
13692002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1370
1371 * event-loop.c (gdb_do_one_event): Make public.
1372 * event-loop.h (gdb_do_one_event): Declare.
1373
da12f4d8
JL
13742002-09-10 Jeff Law <law@redhat.com>
1375
1376 * infttrace.c (child_resume): Simplify and rework to avoid
1377 TT_PROC_CONTINUE.
1378
d0aee0c4
FF
13792002-09-09 Fred Fish <fnf@intrinsity.com>
1380
1381 * printcmd.c (print_scalar_formatted): "len" is the number of
1382 target bytes, NOT the number of target bits.
1383
7cb3ec5e
EZ
13842002-09-09 Elena Zannoni <ezannoni@redhat.com>
1385
1386 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1387 * top.c (init_main): Set rl_terminal_name.
1388
4dc81987
AS
13892002-09-08 Aidan Skinner <aidan@velvet.net>
1390
1391 * ada-lang.c (ada_array_bound, ada_type_match,
1392 _initialize_ada_language): Fix K&R definitions.
1393 * ada-tasks.c (get_current_task): Fix K&R definitions.
1394 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1395
842330b4
CF
13962002-09-07 Christopher Faylor <cgf@redhat.com>
1397
1398 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1399 Add XP.
1400
43156d82
MK
14012002-09-06 Mark Kettenis <kettenis@gnu.org>
1402
66da5fd8
MK
1403 * i386-tdep.c (i386_register_virtual_type,
1404 i386_register_convertible, i386_register_convert_to_virtual,
1405 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1406 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1407 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1408 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1409 Don't set push_arguments twice.
1410
4b218c18
MK
1411 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1412 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1413 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1414 sigtramp_end to NULL.
1415 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1416 defines.
1417 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1418
4cc314d5
MK
1419 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1420 whitespace.
1421
43156d82
MK
1422 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1423 * gdbarch.h, gdbarch.c: Re-generate.
1424 * blockframe.c (find_pc_sect_partial_function): Convert to use
1425 SIGTRAMP_START_P predicate.
1426
6672060b
MS
14272002-09-05 Michael Snyder <msnyder@redhat.com>
1428
a90c3637
MS
1429 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1430 generic_dummy_frame method and old method. Also distinguish
1431 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1432 (arm_extract_return_value): Use new regcache method.
a90c3637 1433
6672060b
MS
1434 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1435 adjustment that doesn't conform to the ABI.
1436 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1437 saved regcache, not from current regcache.
1438
299ffc64
AC
14392002-09-05 Andrew Cagney <ac131313@redhat.com>
1440
1441 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1442 * README: Update.
1443
a3a2ee65
JT
14442002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1445
1446 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1447 if arm_apcs_32 is false.
1448
2bc7eea9
AC
14492002-09-04 Andrew Cagney <ac131313@redhat.com>
1450
1451 GDB 5.3 branch created.
1452
8a55a7c5
TR
14532002-09-03 Theodore A. Roth <troth@verinet.com>
1454
1455 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1456 generic_unwind_get_saved_register.
1457
e26fb1d7
DC
14582002-09-03 David Carlton <carlton@math.stanford.edu>
1459
1460 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1461 argument (PR gdb/653). Update call to smash_to_method_type.
1462 (read_structure_scope): Update call to dwarf2_add_member_fn.
1463
30d52491
ML
14642002-09-03 Michal Ludvig <mludvig@suse.cz>
1465
1466 * x86-64-linux-tdep.c: Include gdb_string.h
1467 * x86-64-linux-nat.c: Ditto.
1468
06891d83
JT
14692002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1470
1471 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1472 when YYDEBUG is set to 1.
1473 * c-exp.y: Likewise.
1474 * f-exp.y: Likewise.
1475 * jv-exp.y: Likewise.
1476 * m2-exp.y: Likewise.
1477 * p-exp.y: Likewise.
1478
7d400e77
JT
14792002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1480
1481 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1482 dependency list.
1483 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1484 solib_svr4_fetch_link_map_offsets to
1485 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1486 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1487 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1488 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1489 solib-svr4.o, and solib-legacy.o.
1490 * config/i386/tm-nbsd.h: Include solib.h.
1491
704a27c4
JT
14922002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1493
1494 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1495 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1496 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1497 comment noting that this needs its own target configuration.
1498 * config/i386/nbsd.mt: New file.
1499 * config/i386/nbsdaout.mt: Remove.
1500 * config/i386/nbsdelf.mt: Ditto.
1501 * config/i386/tm-nbsdaout.h: Ditto.
1502
d66198e1
JT
15032002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1504
1505 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1506 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1507 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1508 tdep->sigtramp_end.
1509 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1510 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1511 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1512
3cac699e
JT
15132002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1514
1515 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1516 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1517 * i386-tdep.h (i386bsd_init_abi): New prototype.
1518 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1519 function declaration.
1520 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1521 for NetBSD-a.out or NetBSD-ELF.
1522 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1523 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1524 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1525 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1526 and nbsd-tdep.h.
1527 (i386nbsd_pc_in_sigtramp): New function.
1528 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1529 i386nbsd_pc_in_sigtramp.
1530 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1531 and i386nbsdelf_init_abi OS ABI handlers.
1532 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1533 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1534
7010ca0a
MK
15352002-09-02 Mark Kettenis <kettenis@gnu.org>
1536
1537 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1538 registers if the target really has them.
1539
6dd93b72
JT
15402002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1541
1542 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1543 than nbsd-tdep.h.
1544
2ca8ae21
JT
15452002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1546
1547 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1548 list.
1549 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1550 (alphanbsd_skip_sigtramp_frame): New functions.
1551 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1552 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1553 to alphanbsd_sigcontext_addr.
1554
3d9b49b0
JT
15552002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1556
1557 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1558 list.
1559 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1560 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1561 nbsd_pc_in_sigtramp.
1562 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1563 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1564 * nbsd-tdep.c: Include gdb_string.h.
1565 (nbsd_pc_in_sigtramp): New function.
1566 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1567 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1568 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1569 ppcnbsd_pc_in_sigtramp.
1570 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1571 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1572 shnbsd_pc_in_sigtramp.
1573 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1574 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1575 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1576
c860120c
PM
15772002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1578
1579 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1580 watchpoints to NULL.
1581 (insert_breakpoints): set val field of watchpoints if NULL.
1582
1583
c7612d53
JB
15842002-08-29 Jim Blandy <jimb@redhat.com>
1585
1586 * symtab.c (lookup_symbol_aux): In the cases where we find a
1587 minimal symbol of an appropriate name and use its address to
1588 select a symtab to read and search, use `name' (as passed to us)
1589 as the demangled name when searching the symtab's global and
1590 static blocks, not the minsym's name.
1591
66609862
KS
15922002-08-29 Keith Seitz <keiths@redhat.com>
1593
1594 * stack.c (print_frame_info_base): Always set current_source_symtab
1595 and current_source_line.
1596
151fefe2
JB
15972002-08-29 Donn Terry <donnte@microsoft.com>
1598
1599 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1600
bfb3754e
KS
16012002-08-28 Keith Seitz <keiths@redhat.com>
1602
1603 * stack.c (select_frame): Add FIXME concerning selected-frame
1604 events.
1605 (select_frame_command): Send selected-frame-level-changed
1606 event notification, but only if the level actually changed.
1607 (up_silently_base): Add selected-frame-level-changed event
1608 notification.
1609 (down_silently_base): Likewise.
1610
e822a2a0
AC
16112002-08-28 Andrew Cagney <ac131313@redhat.com>
1612
1613 * Makefile.in: Update dependencies for all gdb/*.c files.
1614
309367d4
TT
16152002-08-27 Tom Tromey <tromey@redhat.com>
1616
1617 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1618 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1619 Update dependencies.
1620 * i387-tdep.c: Include gdb_string.h.
1621 * osabi.c: Likewise.
1622 * i386-linux-nat.c: Likewise.
1623 * lin-lwp.c: Likewise.
1624 * ax-gdb.c: Likewise.
1625 * signals/signals.c: Likewise.
1626 * jv-valprint.c: Likewise.
1627 * p-lang.c: Likewise.
1628 * c-valprint.c: Likewise.
1629 * cp-abi.c: Likewise.
1630
e1507482
EZ
16312002-08-27 Elena Zannoni <ezannoni@redhat.com>
1632
1633 * cli/cli-script.h (copy_command_lines): Export.
1634 * breakpoint.c: Include cli/cli-script.h.
1635 * Makefile.in (breakpoint.o): Update dependencies.
1636
c6510018
MS
16372002-08-26 Michael Snyder <msnyder@redhat.com>
1638
1639 * breakpoint.c (insert_breakpoints): Protect all references
1640 to 'process_warning'. Shorten long lines.
1641
c2b8ed2c
MS
16422002-08-26 Joel Brobecker <brobecker@gnat.com>
1643
1644 * cli/cli-script.c (copy_command_lines): New function.
1645 * defs.h (copy_command_lines): Export.
1646 * testsuite/gdb.base/commands.exp: New tests for commands
1647 attached to a temporary breakpoint, and for commands that
1648 delete the breakpoint they are attached to.
1649
16502002-08-26 Michael Snyder <msnyder@redhat.com>
1651
1652 * breakpoint.c (bpstat_stop_status): Instead of copying the
1653 pointer to the breakpoint commands struct, make a new copy
1654 of the struct and point to that.
1655 (bpstat_clear): Free the commands struct.
1656 (bpstat_clear_actions): Free the commands struct.
1657 (bpstat_do_actions): Free the command actions. Also execute
1658 the local cleanups, instead of deleting them.
1659 (delete_breakpoint): Leave the commands field of the bpstat
1660 chain alone -- it will be freed later.
1661
64b84175
KB
16622002-08-26 Kevin Buettner <kevinb@redhat.com>
1663
1664 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1665 deleted in 2002-08-20 commit. This function is still used by
1666 ppc-linux-nat.c.
1667
55970da6
KS
16682002-08-26 Keith Seitz <keiths@redhat.com>
1669
1670 * gdb-events.sh: Add selected-frame-level-changed event.
1671 * gdb-events.c: Regenerated.
1672 * gdb-events.h: Regenerated.
1673
a790ad35
SC
16742002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1675
1676 Fix PR gdb/393:
1677 * inflow.c (terminal_save_ours): New function to save terminal
1678 settings.
1679 * inferior.h (terminal_save_ours): Declare.
1680 * target.c (debug_to_terminal_save_ours): New function.
1681 (cleanup_target): Defaults to_terminal_save_ours.
1682 (update_current_target): Inherit to_terminal_save_ours.
1683 (setup_target_debug): Set to_terminal_save_ours.
1684 * target.h (target_terminal_save_ours): New to save terminal settings.
1685 (target_ops): New member to_terminal_save_ours.
1686 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1687 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1688 * inftarg.c (init_child_ops): Likewise.
1689 * m3-nat.c (init_m3_ops): Likewise.
1690 * procfs.c (init_procfs_ops): Likewise.
1691 * wince.c (init_child_ops): Likewise.
1692 * win32-nat.c (init_child_ops): Likewise.
1693 * sol-thread.c (init_sol_thread_ops): Likewise.
1694
c00dcbe9
MK
16952002-08-26 Mark Kettenis <kettenis@gnu.org>
1696
3d7f4f49
MK
1697 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1698 use regcache_* functions.
1699 (i386_gdbarch_init): Set store_return_value instead of
1700 deprecated_store_return_value.
1701
c00dcbe9
MK
1702 * regcache.c (regcache_raw_write_signed,
1703 regcache_raw_write_unsigned): New functions.
1704 * regcache.h (regcache_raw_write_signed,
1705 regcache_raw_write_unsigned): New prototypes.
1706
0e0d15ca
AC
17072002-08-25 Andrew Cagney <ac131313@redhat.com>
1708
1709 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1710 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1711 source file dependencies. Cleanup corresponding generator rules.
1712
d3b22ed5
AC
17132002-08-25 Andrew Cagney <ac131313@redhat.com>
1714
1715 * regcache.h (register_offset_hack): Declare.
1716 (regcache_cooked_read_using_offset_hack): Declare.
1717 (regcache_cooked_write_using_offset_hack): Declare.
1718
1719 * regcache.c (register_offset_hack): New function.
1720 (regcache_cooked_read_using_offset_hack): New function.
1721 (regcache_cooked_write_using_offset_hack): New function.
1722 (regcache_dump): Check that the registers, according to their
1723 offset, are packed hard against each other.
1724 (cooked_xfer_using_offset_hack): New function.
1725
bb425013
AC
17262002-08-25 Andrew Cagney <ac131313@redhat.com>
1727
1728 * regcache.c (struct regcache_descr): Add field register_type.
1729 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1730 in as a parameter
1731 (init_regcache_descr): Initialize register_type. Pass the descr
1732 to init_legacy_regcache_descr. Use register_type instead of
1733 REGISTER_VIRTUAL_TYPE.
1734 (register_type): New function.
1735 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1736 * regcache.h (register_type): Declare.
1737
d0403e00
AC
17382002-08-25 Andrew Cagney <ac131313@redhat.com>
1739
1740 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1741 instead of deprecated_store_return_value. Fix fallout from
1742 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1743
0ed04cce
AC
17442002-08-25 Andrew Cagney <ac131313@redhat.com>
1745
1746 * regcache.c (max_register_size): New function.
1747 (init_legacy_regcache_descr): Ensure that max_register_size is
1748 large enough for REGISTER_VIRTUAL_SIZE.
1749 * regcache.h (max_register_size): Declare.
1750
46d79c04
AC
17512002-08-24 Andrew Cagney <ac131313@redhat.com>
1752
1753 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1754 store_return_value.
1755 (e500_extract_return_value): Change type of valbuf pointer to
1756 void.
1757
853c7bd0
MK
17582002-08-24 Mark Kettenis <kettenis@gnu.org>
1759
cd87e769
MK
1760 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1761 workaround.
1762
853c7bd0
MK
1763 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1764 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1765 long long) to prevent compiler warning on 64-bit systems.
1766
ebba8386
AC
17672002-08-23 Andrew Cagney <cagney@redhat.com>
1768
1769 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1770 (DEPRECATED_STORE_RETURN_VALUE): New method.
1771 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1772 * gdbarch.h, gdbarch.c: Re-generate.
1773
1774 * values.c (set_return_value): Pass current_regcache to
1775 STORE_RETURN_VALUE.
1776 * arch-utils.h (legacy_store_return_value): Declare.
1777 * arch-utils.c (legacy_store_return_value): New function.
1778 (legacy_extract_return_value): Update parameters.
1779
1780 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1781 STORE_RETURN_VALUE.
1782 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1783 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1784 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1785 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1786 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1787 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1788 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1789 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1790 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1791 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1792
1793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1794 * i386-tdep.c (i386_extract_return_value): Update.
1795 * arch-utils.c (legacy_extract_return_value): Update.
1796 * frv-tdep.c (frv_gdbarch_init): Update.
1797 * cris-tdep.c (cris_gdbarch_init): Update.
1798 * d10v-tdep.c (d10v_gdbarch_init): Update.
1799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1800 * m68k-tdep.c (m68k_gdbarch_init): Update.
1801 * mcore-tdep.c (mcore_gdbarch_init): Update.
1802 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1803 * s390-tdep.c (s390_gdbarch_init): Update.
1804 * sparc-tdep.c (sparc_gdbarch_init): Update.
1805 * sh-tdep.c (sh_gdbarch_init): Update.
1806 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1807 * v850-tdep.c (v850_gdbarch_init): Update.
1808 * avr-tdep.c (avr_gdbarch_init): Update.
1809 * ia64-tdep.c (ia64_gdbarch_init): Update.
1810 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1811 * vax-tdep.c (vax_gdbarch_init): Update.
1812 * alpha-tdep.c (alpha_gdbarch_init): Update.
1813 * arm-tdep.c (arm_gdbarch_init): Update.
1814 * mips-tdep.c (mips_gdbarch_init): Update.
1815 * i386-tdep.c (i386_gdbarch_init): Update.
1816
5bd8c6d0
AC
18172002-08-23 Andrew Cagney <ac131313@redhat.com>
1818
1819 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1820 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1821
e73e1724
MK
18222002-08-24 Mark Kettenis <kettenis@gnu.org>
1823
1824 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1825 problems.
1826
3e6564e1
JB
18272002-08-23 Joel Brobecker <brobecker@gnat.com>
1828
1829 * infrun.c (handle_inferior_event): Move a comment outside of a
1830 function call, in order to avoid indent reformatting this part
1831 of the code in an unreadable way.
1832
81d0cc19
GS
18332002-08-23 Grace Sainsbury <graces@redhat.com>
1834
1835 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1836 when breakpoints fail. Move general breakpoint error messages to
1837 insert_breakpoints.
1838 * breakpoint.c (insert_breakpoints): Change warnings when
1839 breakpoints are nto inserted to specify the type. Remove call to
1840 memory_error when hardware breakpoints can't be inserted. Remove
1841 multiple calls to warning so all messages are sent to the user at
1842 once.
1843 (delete_breakpoints): Make insert error messsages more explicit.
1844
17574093
DJ
18452002-08-23 Daniel Jacobowitz <drow@mvista.com>
1846
1847 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1848 gdbserver/ChangeLog.
1849
8acc2935
MK
18502002-08-23 Mark Kettenis <kettenis@gnu.org>
1851
dfe01d39
MK
1852 * i386-tdep.c: Include "objfiles.h".
1853 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1854 skip_trampoline_code.
1855 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1856 (CPLUS_MARKER): Define to '.'.
1857
8acc2935
MK
1858 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1859 member.
1860 (linux_corefile_thread_callback): Increase args->num_notes.
1861 (linux_make_note_section): Initialize thread_args.num_notes, and
1862 use it to determine whether notes for any threads were created.
1863
151fefe2 18642002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1865
1866 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1867 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1868 and PCUNKILL.
1869 (write_with_trace): Conditionalize out the switch branch handling
1870 PCSHOLD if the corresponding macro is not defined. Likewise for
1871 PRSABORT and PRSTOP.
1872 This change will be needed by the Interix port.
1873
e1507482
EZ
18742002-08-22 Elena Zannoni <ezannoni@redhat.com>
1875
1876 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1877 write_register wherever possible instead of manipulating the
1878 register bytes directly.
1879 Assign VALUE_CONTENTS to a variable and use that.
1880 The GPR numbers are now dependent on the architecture.
1881
96ff0de4
EZ
18822002-08-22 Elena Zannoni <ezannoni@redhat.com>
1883
1884 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1885 ev_offset fields.
1886 (skip_prologue): Add support for BookE/e500 instructions.
1887 (e500_extract_return_value): New function.
1888 (frame_get_saved_regs): Add support for saving ev registers and
1889 pseudo gpr's.
1890 (e500_store_return_value): New function.
1891 (rs6000_gdbarch_init): Move up default intializations of
1892 deprecated_extract_return_value and store_return_value. Overwrite
1893 init of store_return_value with e500 specific version.
1894 Set extract_return_value for e500.
1895
fbefca5b
EZ
18962002-08-22 Elena Zannoni <ezannoni@redhat.com>
1897
1898 * blockframe.c (generic_call_dummy_register_unwind): Use
1899 regcache_cooked_read to catch cases in which the variable is
1900 stored in a pseudo register.
1901
4d210288
AC
19022002-08-22 Andrew Cagney <cagney@redhat.com>
1903
1904 * NEWS: Mention that the i960 has been made obsolete.
1905 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1906 i960-tdep.c
1907 (remote-nrom.o): Obsolete target.
1908 (remote-nindy.o, i960-tdep.o): Ditto.
1909 * remote-nrom.c: Make file obsolete.
1910 * remote-nindy.c, remote-vx960.c: Ditto.
1911 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1912 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1913 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1914 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1915 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1916 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1917 i960-*-vxworks* obsolete.
1918 * MAINTAINERS: Note that the i960 is obsolete.
1919
6c0c456d
CV
19202002-08-21 Corinna Vinschen <vinschen@redhat.com
1921
1922 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1923 detach to allow reinitialization.
1924
9f9d12b3
AC
19252002-08-22 Andrew Cagney <ac131313@redhat.com>
1926
1927 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1928 attempt).
1929
ebeb39fe
JB
19302002-08-22 Jim Blandy <jimb@redhat.com>
1931
1932 * coffread.c (coff_symfile_read): Don't try to read the line
1933 number table from disk if the image file doesn't have a symbol
1934 table; we'll never actually look at the info anyway, and Windows
1935 ships DLL's with bogus file offsets for the line number data.
1936
5bf1c677
EZ
19372002-08-21 Elena Zannoni <ezannoni@redhat.com>
1938
1939 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1940 an e500 executable.
1941
71b8ef93
MS
19422002-08-21 Michael Snyder <msnyder@redhat.com>
1943
1944 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1945 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1946 (DEFAULT_MIPS_TYPE): Delete unused macro.
1947 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1948 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1949
d174216d
JB
19502002-08-21 Jim Blandy <jimb@redhat.com>
1951
1952 * valops.c (value_cast): Simplify and correct logic for doing a
1953 static cast from a pointer to a base class to a pointer to a
1954 derived class.
1955
0ab7a791
AC
19562002-08-21 Andrew Cagney <ac131313@redhat.com>
1957
1958 * infcmd.c (default_print_registers_info): Replace
1959 do_registers_info.
1960 (registers_info): Use gdbarch_print_registers_info instead of
1961 DO_REGISTERS_INFO.
1962 * inferior.h (default_print_registers_info): Replace
1963 do_registers_info.
1964 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1965 (DO_REGISTERS_INFO): Change to a predicate function.
1966 * gdbarch.h, gdbarch.c: Regenerate.
1967
e23792cc
KS
19682002-08-21 Keith Seitz <keiths@redhat.com>
1969
1970 * gdb-events.sh: Add target-changed event.
1971 * gdb-events.c: Regenerated.
1972 * gdb-events.c: Regenerated.
1973 * valops.c (value_assign): Add target-changed event notification
1974 to inlval_register, lval_memory, and lval_reg_frame_relative.
1975
9fb14e79
JB
19762002-08-21 Joel Brobecker <brobecker@gnat.com>
1977
1978 * NEWS: Add an entry regarding the improvement of the next/step
1979 operation on Alpha Tru64 multi-processor machines.
1980
6d39a69f
AC
19812002-08-21 Andrew Cagney <ac131313@redhat.com>
1982
72acd513
AC
1983 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1984 directores.
342af04b 1985 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1986 * Makefile.in (install-gdbtk): Move to install section.
1987 (rdi-share/libangsd.a): Move to end of file.
1988
fa5f27c7
AC
19892002-08-19 Andrew Cagney <ac131313@redhat.com>
1990
1991 * frame.c (frame_register_unwind): When a register, set addrp to
1992 the register's byte.
1993
5a89d8aa
MS
19942002-08-20 Michael Snyder <msnyder@redhat.com>
1995
1996 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1997 used locally, so move them from the target machine header to here.
1998 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1999 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2000 Make static.
2001 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2002
822e978b
AC
20032002-08-20 Andrew Cagney <cagney@redhat.com>
2004
2005 * NEWS: Mention that the Apollo line was made obsolete.
2006 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2007 m68*-hp-hpux* obsolete.
2008 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2009 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2010 * buildsym.c (make_blockvector): Make static.
2011 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2012 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2013 (ALLDEPFILES): Remove dstread.c.
2014 (dstread.o): Obsolete make rule.
2015 * dstread.c: Makefile obsolete.
2016 * dst.h: Ditto.
2017 * config/m68k/hp300hpux.mt: Ditto.
2018 * config/m68k/hp300hpux.mh: Ditto.
2019 * config/m68k/hp300bsd.mt: Ditto.
2020 * config/m68k/hp300bsd.mh: Ditto.
2021 * config/m68k/apollo68b.mt: Ditto.
2022 * config/m68k/apollo68v.mh: Ditto.
2023 * config/m68k/apollo68b.mh: Ditto.
2024
e41b17f0
MS
20252002-08-20 Michael Snyder <msnyder@redhat.com>
2026
2027 * mips-tdep.c (mips_in_return_stub): Make static.
2028 (mips_gdbarch_init): Set in_solib_return_trampoline.
2029 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2030
d50355b6
MS
20312002-08-20 Michael Snyder <msnyder@redhat.com>
2032
2033 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2034 * gdbarch.c, gdbarch.h: Regenerate.
2035 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2036 Add.
2037 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2038
757a7cc6
MS
20392002-08-20 Michael Snyder <msnyder@redhat.com>
2040
2041 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2042 (mips_gdbarch_init): Set skip_trampoline_code,
2043 in_solib_call_trampoline.
2044 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2045 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2046
c8001721
EZ
20472002-08-20 Elena Zannoni <ezannoni@redhat.com>
2048
2049 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2050
2051 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2052 vector type for ev registers.
2053 (e500_pseudo_register_read): New function.
2054 (e500_pseudo_register_write): New function.
2055 (e500_dwarf2_reg_to_regnum): New function.
2056 (PPC_UISA_NOFP_SPRS): New macro.
2057 (PPC_EV_REGS): New macro.
2058 (PPC_GPRS_PSEUDO_REGS): New macro.
2059 (registers_e500): New register set for e500.
2060 (variants): Add e500 variant.
2061 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2062 before setting architectural dependent variations. Initialize ev
2063 registers numbers. Add case for e500 architecture. Set the
2064 number of pseudo registers.
2065
64366f1c
EZ
20662002-08-20 Elena Zannoni <ezannoni@redhat.com>
2067
2068 * rs6000-tdep.c: Clean up comments.
2069
7e78f0ca
AC
20702002-08-20 Andrew Cagney <cagney@redhat.com>
2071
2072 * h8300-tdep.c: Re-indent file.
2073
697f7479
JB
20742002-08-20 Jim Blandy <jimb@redhat.com>
2075
2076 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2077 default for this.
697f7479 2078
e86ae29f
KS
20792002-08-20 Keith Seitz <keiths@redhat.com>
2080
2081 * breakpoints.c (watch_command_1): Use internal breakpoint
2082 when setting a watchpoint_scope breakpoint.
2083
216b504f
EZ
20842002-08-20 Elena Zannoni <ezannoni@redhat.com>
2085
2086 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2087 (build_builtin_type_vec64i): Ditto.
2088 (build_builtin_type_vec128): Ditto.
2089 (build_builtin_type_vec128i): Ditto.
2090
f7ab6ec6
MS
20912002-08-19 Michael Snyder <msnyder@redhat.com>
2092
2093 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2094 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2095 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2096 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2097 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2098 CALL_DUMMY_ADDRESS): Delete.
2099 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2100 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2101 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2102 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2103 push_return_address.
2104 (mips_register_raw_size, mips_eabi_use_struct_convention,
2105 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2106 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2107 mips_init_extra_frame_info, mips_eabi_push_arguments,
2108 mips_n32n64_push_arguments, mips_push_return_address,
2109 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2110 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2111
b5d1566e
MS
21122002-08-19 Michael Snyder <msnyder@redhat.com>
2113
2114 * mips-tdep.c (mips_frame_num_args): New function.
2115 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2116 frame_saved_pc, frame_args_address, frame_locals_address,
2117 frame_num_args, and frame_args_skip.
2118 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2119 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2120 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2121 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2122
2f1488ce
MS
21232002-08-20 Michael Snyder <msnyder@redhat.com>
2124
2125 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2126 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2127 * mips-tdep.c (mips_store_struct_return): New function.
2128 (mips_extract_struct_value_address): New function.
2129 (mips_gdbarch_init): Set store_struct_return and
2130 extract_struct_value_address.
2131
41ff2da1
DC
21322002-08-20 David Carlton <carlton@math.stanford.edu>
2133
2134 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2135 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2136 (read_file_scope): Check that line_header is nonzero before
2137 decoding macro information.
2138
e5451d58
MK
21392002-08-20 Mark Kettenis <kettenis@gnu.org>
2140
2141 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2142 flag the general-purpose registers as floating-point on targets
2143 that don't support the floating-point registers.
2144
4a6daafa
EZ
21452002-08-20 Elena Zannoni <ezannoni@redhat.com>
2146
2147 * rs6000-tdep.c (altivec_register_p): Delete.
2148 (rs6000_do_altivec_registers): Delete.
2149 (rs6000_altivec_registers_info): Delete.
2150 (rs6000_do_registers_info): Delete.
2151 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2152 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2153
ab4327e0
EZ
21542002-08-20 Elena Zannoni <ezannoni@redhat.com>
2155
2156 * infcmd.c (do_registers_info): Print vector registers in hex
2157 format only.
2158 (print_vector_info): Check that printing registers
2159 makes sense.
2160 (print_float_info): Ditto.
2161
cb1d2653
AC
21622002-08-20 Andrew Cagney <ac131313@redhat.com>
2163
2164 * mips-tdep.c (mips_gdbarch_init): Update.
2165 (mips_o32_extract_return_value): Rewrite.
2166 (mips_o32_store_return_value): Rewrite.
2167 (mips_o32_xfer_return_value): New function.
2168 (mips_xfer_register): Tweak debug print message. Allow for
2169 buf_offset when dumping the value transfered.
2170
dfc3d9b2
AC
21712002-08-20 Andrew Cagney <ac131313@redhat.com>
2172
2173 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2174 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2175 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2176 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2177 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2178
7807aa61
MS
21792002-08-14 Michael Snyder <msnyder@redhat.com>
2180
2181 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2182
489461e2
EZ
21832002-08-19 Elena Zannoni <ezannoni@redhat.com>
2184
2185 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2186 register.
2187 (P): New macro to define a register as a pseudo register.
2188 (R, R4, R8, R16, FR32, R64, R0): Updated.
2189 (struct variant): Add new fields for number of pseudo registers
2190 and number of total registers.
2191 (tot_num_registers): New macro replacing....
2192 (num_registers): ...deleted macro.
2193 (num_registers): New function.
2194 (num_pseudo_registers): New function.
2195 (variants): Update all variants to intialize new fields correctly.
2196 Postpone initialization of number of pseudo regs and real regs.
2197 (init_variants): New function.
2198 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2199 registers offsets.
2200
fcaffe4c
DC
22012002-08-19 David Carlton <carlton@math.stanford.edu>
2202
2c2738a0
DC
2203 * valops.c (search_struct_field): Change error message to treat
2204 return value of 0 from value_static_field as meaning that field is
2205 optimized out.
2206 (value_struct_elt_for_reference): Ditto.
2207 * values.c (value_static_field): Treat an unresolved location the
2208 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2209 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2210 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2211 * MAINTAINERS: Add self to Write After Approval list.
2212
88658117
AC
22132002-08-19 Andrew Cagney <ac131313@redhat.com>
2214
2215 * mips-tdep.c (mips_xfer_register): New function.
2216 (mips_n32n64_extract_return_value): Rewrite.
2217 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2218 instead of deprecated_extract_return_value.
2219
21283beb
EZ
22202002-08-19 Elena Zannoni <ezannoni@redhat.com>
2221
2222 * rs6000-tdep.c (TDEP): Delete macro.
2223 (branch_dest): Replace use of TDEP macro with its body.
2224 (rs6000_pop_frame): Ditto.
2225 (rs6000_push_arguments): Ditto.
2226 (rs6000_skip_trampoline_code): Ditto.
2227 (rs6000_frame_saved_pc): Ditto.
2228 (rs6000_frame_chain): Ditto.
2229 (rs6000_register_name): Ditto.
2230 (rs6000_register_byte): Ditto.
2231 (rs6000_register_raw_size): Ditto.
2232 (rs6000_register_virtual_type): Ditto.
2233 (rs6000_register_convertible): Ditto.
2234 (rs6000_convert_from_func_ptr_addr): Ditto.
2235
bf072999
DJ
22362002-08-19 Daniel Jacobowitz <drow@mvista.com>
2237
2238 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2239 conditionally.
2240 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2241 MIPS_LINUX_JB_ELEMENT_SIZE.
2242 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2243 for MAX_REGISTER_RAW_SIZE arrays.
2244 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2245 MIPS_LINUX_JB_ELEMENT_SIZE.
2246
9b949a49
PM
22472002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2248
2249 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2250
6d3e79c6
AS
22512002-08-19 Aidan Skinner <aidan@velvet.net>
2252
2253 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2254 ada-valprint.c ada-tasks.c.
2255 (YYFILES): Add ada-exp.y.
2256 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2257 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2258 (ada-exp.tab.o): New target.
2259
06c0b04e
AC
22602002-08-18 Andrew Cagney <ac131313@redhat.com>
2261
2262 * regcache.c (regcache_xfer_part): New function.
2263 (regcache_raw_read_part): New function.
2264 (regcache_raw_write_part): New function.
2265 (regcache_cooked_read_part): New function.
2266 (regcache_cooked_write_part): New function.
2267 * regcache.h (regcache_raw_read_part): Declare.
2268 (regcache_raw_write_part): Declare.
2269 (regcache_cooked_read_part): Declare.
2270 (regcache_cooked_write_part): Declare.
2271
92d1e331
DJ
22722002-08-18 Daniel Jacobowitz <drow@mvista.com>
2273
2274 * remote.c (remote_open_1): Add async_p.
2275 (remote_async_open_1): Delete.
2276 (open_remote_target): Delete.
2277 (remote_open, extended_remote_open): Update calls to remote_open_1.
2278 (remote_async_open, extended_remote_async_open): Call
2279 remote_open_1 instead of remote_async_open_1.
2280
247055de
MK
22812002-08-19 Mark Kettenis <kettenis@gnu.org>
2282
2283 * blockframe.c: Fix a few coding standard violations.
2284
641eda39
MK
22852002-08-19 Mark Kettenis <kettenis@gnu.org>
2286
0b717710
MK
2287 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2288 here from ...
2289 * config/i386/tm-i386sco5.h: ... here. File removed.
2290 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2291
26d28e12 2292 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2293 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2294 (TM_FILE): Set to tm-i386.h.
2295 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2296 * config/i386/tm-i386v.h: Remove file.
2297 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2298 instead of "i386/tm-i386v.h".
2299 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2300 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2301 "i386/tm-i386v.h".
2302 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2303 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2304 "i386/tm-i386.h".
2305
d4e0bab4
MK
23062002-08-18 Mark Kettenis <kettenis@gnu.org>
2307
2308 * config/i386/nm-i386v.h: Add protection against
2309 multiple-inclusion.
2310 (i386_register_u_addr): Remove prototype.
2311 (register_u_addr): New prototype.
2312 (REGISTER_U_ADDR): Redefine accordingly.
2313 * i386v-nat.c: Improve several comments.
2314 (i386_register_u_addr): Change signature and rename to
2315 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2316 ubase variable.
2317
46cac009
AC
23182002-08-18 Andrew Cagney <ac131313@redhat.com>
2319
2320 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2321 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2322 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2323 deprecated_extract_return_value.
2324 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2325 rename mips_o32o64_push_arguments.
2326 (mips_gdbarch_init): Update.
2327 (mips_extract_return_value): Delete.
2328 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2329 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2330 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2331 (mips_n32n64_extract_return_value): Clone
2332 mips_extract_return_value.
2333 (mips_store_return_value): Delete.
2334 (mips_o32_store_return_value): Clone mips_store_return_value.
2335 (mips_o64_store_return_value): Clone mips_store_return_value.
2336 (mips_eabi_store_return_value): Clone mips_store_return_value.
2337 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2338
d2e4a39e
AS
23392002-08-18 Aidan Skinner <aidan@velvet.net>
2340
0c30c098
AS
2341 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2342 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2343
23442002-08-18 Aidan Skinner <aidan@velvet.net>
2345
2346 * ada-lang.c: Run through gdb_indent.sh.
2347 * ada-lang.h: Run through gdb_indent.sh.
2348 * ada-tasks.c: Run through gdb_indent.sh.
2349 * ada-typeprint.c: Run through gdb_indent.sh.
2350 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2351
01fc4e33
AC
23522002-08-18 Andrew Cagney <ac131313@redhat.com>
2353
2354 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2355 ABI.
2356
d8ee244c
MK
23572002-08-18 Mark Kettenis <kettenis@gnu.org>
2358
c38d8261
MK
2359 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2360
222db64c
MK
2361 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2362 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2363
c2848c82
MK
2364 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2365 write_register_gen instead of write_register_bytes.
2366
d8ee244c
MK
2367 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2368 i[3456]-*-osf1mk* configurations have been made obsolete.
2369 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2370 i[3456]86-*-osf1mk* hosts obsolete.
2371 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2372 targets obsolete.
2373 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2374 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2375 config/i386/i386m3.mt, config/i386/nm-m3.h,
2376 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2377 config/i386/i386mk.mh, config/i386/i386mk.mt,
2378 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2379 obsolete.
2380 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2381 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2382 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2383
61d8d407
AC
23842002-08-18 Andrew Cagney <ac131313@redhat.com>
2385
2386 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2387 (hppa_value_returned_from_stack): Declare.
2388 (hppa_extract_return_value): Declare.
2389 * config/pa/hppa.mt: New file.
2390 * configure.tgt: Recognize hppa*-*-*.
2391 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2392
0c52bd59
MK
23932002-08-18 Mark Kettenis <kettenis@gnu.org>
2394
2395 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2396 comment.
2397
b5686e99
MK
23982002-08-17 Mark Kettenis <kettenis@gnu.org>
2399
2400 * top.c (gdb_rl_operate_and_get_next): Make sure
2401 operate-and-get-next functions correctly even when the history
2402 list is completely filled.
2403
c1bab85b
AC
24042002-08-18 Andrew Cagney <ac131313@redhat.com>
2405
2406 * MAINTAINERS (Target Instruction Set Architectures): Rename
2407 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2408 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2409 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2410 already listed under Host/Native.
2411
2412 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2413 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2414 mips*-*-*.
2415
32089c7c
AC
24162002-08-17 Andrew Cagney <ac131313@redhat.com>
2417
2418 * config/ia64/ia64.mt: New file.
2419 * config/alpha/alpha.mt: New file.
2420 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2421 ia64-linux-gnu. Mention that ia64-elf is broken.
2422 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2423
b4671f85
MK
24242002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2425
2426 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2427 generic_func_frame_valid instead of func_frame_valid.
2428
c8edd8b4
JB
24292002-08-16 Joel Brobecker <brobecker@gnat.com>
2430
2431 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2432 procfs appears to be broken when debugging on multi-processor
2433 machines. So enable software single stepping in order to avoid
2434 using the procfs interface to do next/step operations, using
2435 internal breakpoints instead.
2436
2437 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2438 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2439 make this pc address equal to the value it would have if the
2440 system stepping capability was used. Also set a new flag used
2441 to ensure that we don't readjust the PC one more time later.
2442
2443 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2444 address by DECR_PC_AFTER_BREAK when software single step is
2445 in use for this architecture, as this has already been taken
2446 care of in handle_inferior_event().
2447
238617f6
JB
24482002-08-16 Joel Brobecker <brobecker@gnat.com>
2449
2450 * infrun.c (handle_inferior_event): Minor reformatting, to make
2451 a rather long condition expression easier to read.
2452
541a7aac
AC
24532002-08-16 Andrew Cagney <ac131313@redhat.com>
2454
2455 * Makefile.in (gdbtk.o): Move to end of file.
2456 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2457 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2458 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2459 (gdbtk-wrapper.o, gdbres.o): Ditto.
2460
f92d4a7b
AC
24612002-08-16 Andrew Cagney <ac131313@redhat.com>
2462
2463 * Makefile.in (copying.o): Separate out compile rule.
2464 (hpux-thread.o, procfs.o, signals.o): Ditto.
2465 (v850ice.o, z8k-tdep.o): Ditto.
2466 (tui-file.o): Move to TUI section.
2467 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2468 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2469
1cce71eb
JB
24702002-08-16 Joel Brobecker <brobecker@gnat.com>
2471
2472 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2473 skip_trampoline_code, for better namespace-proofing.
2474
2475 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2476
0851f23d
JB
24772002-08-16 Joel Brobecker <brobecker@gnat.com>
2478
2479 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2480
f8d40ec8
JB
24812002-08-16 Joel Brobecker <brobecker@gnat.com>
2482
2483 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2484 signal, check whether we hit a breakpoint before checking for a
2485 single step breakpoint. Otherwise, GDB fails to notice that a
2486 breakpoint has been hit when stepping onto a breakpoint.
2487
63d022e0
KS
24882002-08-16 Keith Seitz <keiths@redhat.com>
2489
2490 * gdb-events.sh (clear_gdb_event_hooks): New function.
2491 * gdb-events.c: Regenerate.
2492 * gdb-events.h: Regenerate.
2493
6e31adb3
AC
24942002-08-16 Andrew Cagney <ac131313@redhat.com>
2495
2496 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2497 not_a_sw_breakpoint.
2498 * breakpoint.h (bpstat_stop_status): Add parameter names.
2499
c8189ed1
GS
25002002-08-16 Grace Sainsbury <graces@redhat.com>
2501
2502 * remote.c (remote_insert_hw_breakpoint)
2503 (remote_remove_hw_breakpoint): Fix calculation of length field
2504 for Z-packet.
2505
d05285fa
MS
25062002-08-15 Michael Snyder <msnyder@redhat.com>
2507
466d7106
MS
2508 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2509 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2510 (supply_fpregset): Ditto.
2511
d05285fa
MS
2512 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2513 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2514 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2515 (TARGET_READ_SP): Delete.
bf1f5b4c 2516 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2517 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2518 Delete.
2519 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2520 from macros to functions.
bf1f5b4c 2521
d05285fa
MS
2522 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2523 (mips_register_convertible, mips_register_convert_to_virtual,
2524 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2525 (mips_read_sp): New function.
2526 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2527 (mips_do_registers_info): Make static.
2528 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2529 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2530 (mips_register_convert_from_type, mips_register_convert_to_type):
2531 New functions.
2532 (mips_gdbarch_init): Set up function_start_offset,
2533 register_virtual_size, pc_in_sigtramp.
d05285fa 2534
e76f1f2e
AC
25352002-08-15 Andrew Cagney <ac131313@redhat.com>
2536
2537 * infcmd.c (vector_info): New function.
2538 (_initialize_infcmd): Add command "info vector".
2539 (print_vector_info): New function.
2540
2541 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2542 * gdbarch.h, gdbarch.c: Regenerate.
2543
4782dc19
AC
25442002-08-15 Andrew Cagney <ac131313@redhat.com>
2545
2546 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2547 ``print_all''. Only print vector registers when ``print_all''.
2548
23e3a7ac
AC
25492002-08-15 Andrew Cagney <ac131313@redhat.com>
2550
8e186fd6
AC
2551 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2552 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2553
23e3a7ac
AC
2554 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2555 Add `args' parameter.
2556 * gdbarch.h, gdbarch.c: Regenerate.
2557
2558 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2559
2560 * infcmd.c (float_info): Call print_float_info.
2561 (print_float_info): New function. By default, print the
2562 floating-point registers.
2563
2564 * arch-utils.h (default_print_float_info): Delete declaration.
2565 * arch-utils.c (default_print_float_info): Delete function.
2566
e0ca2bb9
MK
25672002-08-16 Mark Kettenis <kettenis@gnu.org>
2568
3f733acc
MK
2569 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2570 out define.
2571
7d8d2918
MK
2572 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2573 FRAME.
2574
1c7cc583
MK
2575 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2576 * configure.host: Make i[3456]86-*-aix host obsolete.
2577 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2578 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2579 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2580 config/i386/xm-i386aix.h: Make files obsolete.
2581 * i386aix-nat.c: Make file obsolete.
2582 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2583 (i386aix-nat.o): Make target obsolete.
2584
e0ca2bb9
MK
2585 * config/i386/nm-gnu.h: Removed.
2586 * config/i386/nm-i386gnu.h: New file.
2587 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2588 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2589 Moved here from ...
2590 * config/i386/tm-i386gnu.h: ... here. Removed.
2591 * config/i386/xm-i386gnu.h: Removed.
2592 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2593 (NAT_FILE): Set to nm-i386gnu.h.
2594 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2595 * i386-tdep.c: New file.
2596 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2597 (i386gnu-tdep.o): Specify dependencies.
2598
16057ec7 25992002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2600
6b99ee2e
MK
2601 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2602 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2603 Adjust a few comments to reflect reality a bit closer.
2604 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2605 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2606 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2607 target_insert_watchpoint, target_remove_watchpoint):
2608 Move defines to ...
2609 * config/i386/nm-i386sco5.h: ... here.
2610 (kernel_u_size): Add prototype. Improve a few comments and add
2611 protection against multiple inclusion.
2612
d9a6f65c
MK
2613 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2614 out define.
2615
047eff6a
MK
2616 * uw-thread.c (SP_ARG0): Define if not already defined.
2617 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2618
dcdb1290
MK
2619 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2620
5d2d0b2a
MK
2621 * config/i386/tm-i386.h: Don't include "regcache.h".
2622
61113f8b
MK
2623 * i387-tdep.h (i387_print_float_info): New prototype.
2624 * i387-tdep.c (print_i387_value, print_i387_ext,
2625 print_i387_status_word, print_i387_control_word): Add `struct
2626 ui_file *' argument and use it for output.
2627 (i387_print_float_info): Renamed from i387_float_info. Add
2628 `struct gdbarch *' and `struct ui_file *' arguments and use the
2629 latter for output.
2630 * i386-tdep.c: Include "i387-tdep.h".
2631 (i386_gdbarch_init): Set print_float_info.
2632 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2633 (FLOAT_INFO): Remove define.
2634
46e0f506
MS
26352002-08-13 Michael Snyder <msnyder@redhat.com>
2636
2637 * mips-tdep.c (mips_push_arguments): Rename to
2638 mips_eabi_push_arguments, and tune for EABI.
2639 (MIPS_REGS_HAVE_HOME_P): Delete.
2640 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2641 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2642 Delete references to mips_regs_have_home_p.
2643
409268de
KS
26442002-08-14 Keith Seitz <keiths@redhat.com>
2645
2646 * Makefile.in (install-gdbtk): Create insight plugin directory.
2647 Install plugins.tcl file.
2648
ffc6a242
KS
26492002-08-14 Keith Seitz <keiths@redhat.com>
2650
2651 * configure.in: Move SUBDIRS to near top of the file so that
2652 --enable options may add things to it.
2653 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2654 * configure: Regenerate.
2655
ebafbe83
MS
26562002-08-13 Michael Snyder <msnyder@redhat.com>
2657
2658 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2659 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2660 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2661
32f6f25d
AC
26622002-08-13 Andrew Cagney <ac131313@redhat.com>
2663
2664 * vax-tdep.c (vax_get_saved_register): Delete function.
2665 (vax_gdbarch_init): Update.
2666 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2667 (ns32k_gdbarch_init): Update.
2668 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2669 (alpha_gdbarch_init): Update.
2670
53826de9
AC
26712002-08-13 Andrew Cagney <cagney@redhat.com>
2672
2673 * regcache.c (init_regcache_descr): Overallocate the
2674 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2675 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2676 nr_raw_registers.
2677 (set_register_cached): Add range checking assertions. Use
2678 current_regcache.
2679
16057ec7 26802002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2681
2682 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2683 numbers for MMX registers.
2684
7b4c2dce
AC
26852002-08-13 Andrew Cagney <cagney@redhat.com>
2686
2687 * i386-tdep.c (i386_gdbarch_init): Use
2688 generic_unwind_get_saved_register.
2689
1e03ad20
KB
26902002-08-13 Kevin Buettner <kevinb@redhat.com>
2691
2692 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2693 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2694 target vector.
2695 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2696 Delete. Add comment regarding this now-deleted target method.
2697
548bcbec
SC
26982002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2699
2700 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2701 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2702 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2703 real PC and the page number (if it's within the memory bank window).
2704 (m68hc11_pseudo_register_write): Likewise when saving.
2705 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2706 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2707 (m68hc11_register_raw_size): And use 32-bit for it.
2708 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2709 16K memory bank is used by the prog; also use the virtual pc.
2710
7df11f59
SC
27112002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2712
2713 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2714 (m68hc11_gdbarch_init): Install it in gdbarch.
2715 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2716 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2717 (MSYMBOL_SIZE): New for documentation.
2718 (insn_return_kind): Enum to specify how a function returns.
2719 (frame_extra_info): Cleanup and record the return mode.
2720 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2721 register in address computation.
2722 (m68hc11_get_return_insn): New to obtain the return instruction used
2723 by the function.
2724 (m68hc11_frame_init_saved_regs): Take into account the return
2725 instruction used by the function for far and interrupt functions.
2726 (m68hc11_init_extra_frame_info): Take into account page register.
2727 (m68hc11_frame_args_address): Adjust according to the return mode.
2728 (show_regs): Print page register only when it's used.
2729
5706502a
SC
27302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2731
2732 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2733 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2734 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2735 registers.
2736 (m68hc11_register_raw_size): Likewise.
2737
28fc6740
AC
27382002-08-13 Andrew Cagney <cagney@redhat.com>
2739
2740 * i386-tdep.c (i386_register_name): Handle mmx registers.
2741 (mmx_regnum_p): New function.
2742 (i386_mmx_names): New array.
2743 (mmx_num_regs): New variable.
2744 (i386_pseudo_register_read): New function.
2745 (i386_pseudo_register_write): New function.
2746 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2747
2748 * regcache.c (regcache_raw_read_unsigned): New function.
2749 (regcache_raw_read_signed): New function.
2750 * regcache.h (regcache_raw_read_unsigned): Declare.
2751 (regcache_raw_read_signed): Declare.
2752
a378f419
AC
27532002-08-13 Andrew Cagney <cagney@redhat.com>
2754
2755 * regcache.c (regcache_raw_read_as_address): Delete function.
2756 (regcache_cooked_read_signed): New function.
2757 (regcache_cooked_read_unsigned): New function.
2758 * regcache.h (regcache_cooked_read_signed): Declare.
2759 (regcache_cooked_read_unsigned): Declare.
2760 (regcache_raw_read_as_address): Delete declaration.
2761
2762 * blockframe.c (generic_read_register_dummy): Use
2763 regcache_cooked_read_unsigned.
2764 * i386-tdep.c (i386_extract_struct_value_address): Use
2765 regcache_cooked_read_unsigned.
2766
81967506
SC
27672002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2768
2769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2770 double sizes according to ELF ABI flags.
2771 (gdbarch_tdep): Record elf_flags.
2772
ffe1f3ee
SC
27732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2774
2775 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2776 (m6812_prolog): They can appear in 68HC12 function prologue.
2777 (m68hc11_frame_chain): Cleanup.
2778
98216c5d
AC
27792002-08-12 Andrew Cagney <cagney@redhat.com>
2780
2781 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2782 declarations.
2783 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2784 (i386_linux_register_raw_size): Delete function.
2785 (i386_linux_init_abi): Update.
2786 * i386-tdep.c (i386_register_raw_size): Delete function.
2787 (i386_register_byte): Delete function.
2788 (i386_gdbarch_init): Update.
2789 (i386_register_size): Delete array.
2790 (i386_register_offset): Delete array.
2791
2792 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2793 (REGISTER_RAW_SIZE): Delete macro.
2794 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2795 (REGISTER_BYTE): Delete macro.
2796
3b19021e
AS
27972002-08-11 Aidan Skinner <aidan@velvet.net>
2798
2799 * ada-lang.c (ada_lookup_partial_symbol)
2800 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2801 prototype names so that grep ^func works properly.
2802
2803 * ada-lang.c (ada_array_element_type)
2804 (ada_lookup_partial_symbol): Fix typos in parameter list.
2805
2806 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2807 Fix prototype names so that grep ^func works properly.
2808
b063e7a2
AC
28092002-08-10 Andrew Cagney <cagney@redhat.com>
2810 Elena Zannoni <ezannoni@redhat.com>
2811 Martin M. Hunt <hunt@redhat.com>
2812
2813 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2814 (build_builtin_type_vec128i): Set the vector bit.
2815 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2816 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2817 (build_builtin_type_vec64): New function.
2818 (build_builtin_type_vec64i): New function.
2819 (build_gdbtypes): Initialize builtin_type_vec64 and
2820 builtin_type_vec64i.
2821
a7e3c2ad
AC
28222002-08-09 Andrew Cagney <cagney@redhat.com>
2823
2824 * regcache.c (regcache_dump): Compare the register offset
2825 with REGISTER_BYTE.
2826 * arch-utils.c (generic_register_byte): New function.
2827 * arch-utils.h (generic_register_byte): Declare.
2828 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2829 * gdbarch.h, gdbarch.c: Regenerate.
2830
af030b9a
AC
28312002-08-09 Andrew Cagney <cagney@redhat.com>
2832
2833 * regcache.c: Include "gdbcmd.h"
2834 (_initialize_regcache): Add commands "maintenance print
2835 registers", "maintenance print raw-registers" and "maintenance
2836 print cooked-registers".
2837 (enum regcache_dump_what): Define.
2838 (dump_endian_bytes): New function.
2839 (regcache_dump): New function.
2840 (regcache_print): New function.
2841 (maintenance_print_registers): New function.
2842 (maintenance_print_raw_registers): New function.
2843 (maintenance_print_cooked_registers): New function.
2844 * Makefile.in (regcache.o): Update dependencies.
2845
cb3d25d1
MS
28462002-08-09 Michael Snyder <msnyder@redhat.com>
2847
2848 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2849 (mips_push_arguments): Correct some comments. Use paddr_nz
2850 for printing addresses in debug output. Replace static
2851 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2852 (mips_n32n64_push_arguments): New function, cloned from
2853 mips_push_arguments and tuned for the n32/n64 ABI.
2854 (mips_push_register): Buffer needs dynamic allocation.
2855 (mips_print_register): Ditto.
2856 (do_gp_register_row): Ditto.
2857 (mips_store_return_value): Ditto.
2858 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2859
2163ab9d
DH
28602002-08-09 Don Howard <dhoward@redhat.com>
2861
2862 * memattr.c (mem_info_command): Print special case of upper bound
2863 as max CORE_ADDR + 1.
2864
b78bcb18
MS
28652002-08-08 Michael Snyder <msnyder@redhat.com>
2866
2867 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2868 returns structs by ref if they're too big to fit in two registers.
2869
ffabd70d
KB
28702002-08-09 Kevin Buettner <kevinb@redhat.com>
2871
2872 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2873 saved regs value.
2874 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2875 mips_find_saved_regs().
2876 (mips_pop_frame): Likewise.
2877
fbcdb4a3
KB
28782002-08-09 Kevin Buettner <kevinb@redhat.com>
2879
2880 * blockframe.c (frame_saved_regs_register_unwind): Revise
2881 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2882 frames are in use.
2883
3c3bea1c
GS
28842002-08-09 Grace Sainsbury <graces@redhat.com>
2885
2886 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2887 T-packets; the 'a' is not taken as a register number.
2888 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2889 (remote_stopped_data_address): New functions; add to target
2890 vector.
2891 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2892 prototypes to match other implementations of this
2893 function. replace integer argument with pointer -- the length
2894 field in the Z-packet is the length of what is pointed to or 1 if
2895 pointer is null. Add to target vector.
2896 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2897 target vector.
2898
2899 From Mark Salter:
2900 * remote.c (remote_wait): Add support to extract optional
2901 watchpoint information from T-packet. Ignore unrecognized
2902 optional info in T-packet.
2903 (remote_async_wait): Ditto.
2904
5d1d95de
CV
29052002-08-09 Corinna Vinschen <vinschen@redhat.com>
2906
2907 * cli/cli-dump.c: Change fopen modes to use binary open modes
2908 as defined in include/fopen-bin.h throughout.
2909
c86b5b38
MS
29102002-08-08 Michael Snyder <msnyder@redhat.com>
2911
2912 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2913
b30590dc
KB
29142002-08-08 Kevin Buettner <kevinb@redhat.com>
2915
2916 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2917 assertion failure by returning early after a warning.
2918
498868ed
KB
29192002-08-08 Kevin Buettner <kevinb@redhat.com>
2920
2921 * mips-tdep.c (mips_find_saved_regs): Make static.
2922 (mips_frame_init_saved_regs): New function.
2923 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2924 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2925 (mips_find_saved_regs): Delete declaration.
2926
b2dd6311
GS
29272002-08-08 Grace Sainsbury <graces@redhat.com>
2928
3c3bea1c
GS
2929 * remote.c (remote_wait, remote_async_wait): Change
2930 thread_num from int to ULONGEST.
2931 (unpack_varlen_hex): Change result parameter from
2932 int * to ULONGEST *.
b2dd6311 2933
ea47855f
AC
29342002-08-08 Andrew Cagney <ac131313@redhat.com>
2935
2936 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2937 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2938 powerpc*-*-*.
2939 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2940
69db8bae
AC
29412002-08-08 Andrew Cagney <cagney@redhat.com>
2942
2943 * gcore.c (override_derive_stack_segment): Delete variable.
2944 (preempt_derive_stack_segment): Delete function.
2945 (derive_stack_segment): Delete function.
2946 (default_derive_stack_segment): Renamed to derive_stack_segment.
2947 (override_derive_heap_segment): Delete variable.
2948 (preempt_derive_heap_segment): Delete function.
2949 (derive_heap_segment): Delete function.
2950 (default_derive_heap_segment): Rename to derive_heap_segment.
2951
cb811fe7
MS
29522002-08-06 Michael Snyder <msnyder@redhat.com>
2953
2954 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2955 * mips-tdep.c (mips_EABI_use_struct_convention,
2956 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2957 New functions. (mips_use_struct_convention): Delete.
2958 (mips_gdbarch_init): set use_gdbarch_convention.
2959
8b389c40
MS
29602002-08-06 Michael Snyder <msnyder@redhat.com>
2961
2962 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2963 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2964 mips_o32_reg_struct_has_addr): New functions.
2965 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2966
5c27f28a
AC
29672002-08-07 Andrew Cagney <ac131313@redhat.com>
2968
2969 * regcache.c (pseudo_register): Delete function.
2970 (fetch_register): Delete function.
2971 (store_register): Delete function.
2972 (regcache_raw_read, legacy_read_register_gen): Use
2973 target_fetch_registers instead of fetch_register.
2974 (legacy_write_register_gen, regcache_raw_write): Use
2975 target_store_register instead of store_register.
2976 (write_register_bytes): Ditto.
2977
2978 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2979 (STORE_PSEUDO_REGISTER): Delete.
2980 * gdbarch.h, gdbarch.c: Regenerate.
2981
5b331675
CV
29822002-08-06 Corinna Vinschen <vinschen@redhat.com>
2983
2984 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2985 write dump file binary.
2986
6acdf5c7
MS
29872002-08-05 Michael Snyder <msnyder@redhat.com>
2988
2989 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2990 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2991 (mips_gdbarch_init): Set N32 target to be mips64.
2992
b2f01c35
KB
29932002-08-06 Kevin Buettner <kevinb@redhat.com>
2994
2995 * frame.c (find_saved_register): Break out of loop once saved
2996 register address is found. Don't mention sparc in loop comment
2997 anymore.
2998
63db5580
KB
29992002-08-06 Kevin Buettner <kevinb@redhat.com>
3000
3001 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3002 mips_default_saved_regsize to 8.
3003
5e34e75e
AC
30042002-08-06 Andrew Cagney <ac131313@redhat.com>
3005
3006 * gcore.c: Do not include <sys/procfs.h>.
3007 * Makefile.in (gcore.o): Update dependencies.
3008
eb4c54a2
AC
30092002-08-06 Andrew Cagney <cagney@redhat.com>
3010
3011 * configure.tgt: Make arc-*-* obsolete.
3012 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3013 * MAINTAINERS: Make arc-elf obsolete.
3014 * arc-tdep.c: Make file obsolete.
3015 * config/arc/arc.mt: Ditto.
3016 * config/arc/tm-arc.h: Ditto.
3017
ced15480
TR
30182002-08-05 Theodore A. Roth <troth@verinet.com>
3019
c1bab85b 3020 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3021
b4743822
AC
30222002-08-05 Andrew Cagney <ac131313@redhat.com>
3023
3024 * mcore-tdep.c (mcore_gdbarch_init): Use
3025 generic_unwind_get_saved_register instead of
3026 generic_get_saved_register.
3027 * v850-tdep.c (v850_gdbarch_init): Ditto.
3028 * frv-tdep.c (frv_gdbarch_init): Ditto.
3029 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3030 * s390-tdep.c (s390_gdbarch_init): Ditto.
3031 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3032 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3033 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3034
3956d554
JB
30352002-08-05 Joel Brobecker <brobecker@gnat.com>
3036
3037 * objfiles.h: Add missing #include "symfile.h"
3038
3039 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3040
8249c0d6
AC
30412002-08-04 Andrew Cagney <ac131313@redhat.com>
3042
3043 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3044 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3045 of FIELD_BITSIZE.
3046
b9d14705
DJ
30472002-08-04 Daniel Jacobowitz <drow@mvista.com>
3048
3049 * NEWS: Cleanup and nitpick.
3050
dd73b9bb
AC
30512002-08-03 Andrew Cagney <ac131313@redhat.com>
3052
3053 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3054
043a27f8
AC
30552002-08-03 Andrew Cagney <ac131313@redhat.com>
3056
3057 * Makefile.in (gdbtk-bp.o): Update dependencies.
3058 (gdbtk-register.o): Ditto.
3059 (gdbtk-varobj.o): Ditto.
3060
46ce284d
AC
30612002-08-03 Andrew Cagney <cagney@redhat.com>
3062
3063 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3064 m68hc11_fetch_pseudo_register.
3065 (m68hc11_pseudo_register_write): Replace
3066 m68hc11_store_pseudo_register.
3067 (m68hc11_gdbarch_init): Update.
3068
b66d6d2e
AC
3069Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3070
3071 * gdbarch.sh: Include "gdb_string.h".
3072 * gdbarch.c: Regenerate.
3073
3074 * regcache.c: Include "gdb_string.h".
3075 * ax-general.c: Ditto.
3076 * varobj.c: Ditto.
3077 * std-regs.c: Ditto.
3078 * fbsd-proc.c: Ditto.
3079 * thread.c: Ditto.
3080
3081 * Makefile.in (regcache.o): Update dependencies.
3082 (thread.o, gdbarch.o): Ditto.
3083 (ax-general.o, gdbarch.o): Ditto.
3084 (varobj.o, std-regs.o): Ditto.
3085 (fbsd-proc.o): Specify dependencies.
3086
29e1842b
AC
30872002-08-02 Andrew Cagney <cagney@redhat.com>
3088
3089 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3090 regnum.
3091 (regcache_cooked_write): Ditto.
3092
68365089
AC
30932002-08-02 Andrew Cagney <ac131313@redhat.com>
3094
3095 * regcache.c (regcache_cooked_read): New function.
3096 (regcache_cooked_write): New function.
3097 (read_register_gen): Rewrite using regcache_cooked_read.
3098 (write_register_gen): Rewrite using regcache_cooked_write.
3099
3100 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3101 Declare.
3102
d8124050
AC
31032002-08-02 Andrew Cagney <cagney@redhat.com>
3104
3105 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3106 Replace the architecture methods register_read and register_write.
3107 * gdbarch.h, gdbarch.c: Regenerate.
3108 * regcache.c (init_regcache_descr): Update.
3109 (read_register_gen): Update.
3110 (write_register_gen): Update.
3111 (supply_register): Update comment.
3112
3113 * sh-tdep.c (sh_gdbarch_init): Update.
3114 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3115 `regcache' and `gdbarch' parameters. Make `buffer' a void
3116 pointer. Update code.
3117 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3118 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3119 void pointer. Update code.
3120 (sh64_register_write): Delete.
3121 (sh4_register_read): Delete.
3122 (sh64_register_read): Delete.
3123 (sh4_register_write): Delete.
3124 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3125 void pointer, `to' parameter a void pointer.
3126 (sh_sh64_register_convert_to_raw): Ditto.
3127
a6425924
KB
31282002-08-01 Kevin Buettner <kevinb@redhat.com>
3129
3130 * mips-tdep.c (mips_register_virtual_type): Use architecture
3131 invariant return values.
3132
ff5922b5
AC
31332002-08-01 Andrew Cagney <cagney@redhat.com>
3134
3135 * linux-proc.c: Include "gdb_string.h".
3136 * Makefile.in (linux-proc.o): Update dependency list.
3137
32a6503c
KB
31382002-08-01 Kevin Buettner <kevinb@redhat.com>
3139
3140 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3141 comment.
3142
ccaa32c7
GS
31432002-08-01 Grace Sainsbury <graces@redhat.com>
3144
3145 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3146 to_insert_watchpoint, to_remove_watchpoint,
3147 to_stopped_by_watchpoint, to_stopped_data_address,
3148 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3149 target vecctor. Define their corresponding macros so they call
3150 them.
3151
3152 * target.c: Add default and debug versions of for
3153 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3154 to_insert_watchpoint, to_remove_watchpoint,
3155 to_stopped_by_watchpoint, to_stopped_data_address,
3156 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3157
78fde5f8
KB
31582002-08-01 Kevin Buettner <kevinb@redhat.com>
3159
3160 * mips-tdep.c (mips_register_virtual_type): New function.
3161 (mips_gdbarch_init): Register mips_register_virtual_type()
3162 with gdbarch machinery.
3163 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3164 this file instead of tm-bigmips.h.
3165 (MIPS_REGSIZE): Delete this macro.
3166 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3167 multiarch version in mips-tdep.c will be found.
3168
db034ac5
AC
31692002-08-01 Andrew Cagney <cagney@redhat.com>
3170
3171 * NEWS: Menion that CHILL has been made obsolete.
3172
3173 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3174 * stabsread.c (read_range_type): Ditto.
3175 * gdbtypes.h: Ditto.
3176 * language.c (binop_type_check): Ditto.
3177 (binop_result_type): Ditto.
3178 (integral_type): Ditto.
3179 (character_type): Ditto.
3180 (string_type): Ditto.
3181 (boolean_type): Ditto.
3182 (structured_type): Ditto.
3183 (lang_bool_type): Ditto.
3184 (binop_type_check): Ditto.
3185 * language.h (_LANG_chill): Ditto.
3186 * dwarfread.c (set_cu_language): Ditto.
3187 * dwarfread.c (CHILL_PRODUCER): Ditto.
3188 * dwarfread.c (handle_producer): Ditto.
3189 * expression.h (enum exp_opcode): Ditto.
3190 * eval.c: Ditto for comments.
3191 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3192 * expprint.c (print_subexp): Ditto.
3193 (print_subexp): Ditto.
3194 * valops.c (value_cast): Ditto.
3195 (search_struct_field): Ditto.
3196 * value.h (COERCE_VARYING_ARRAY): Ditto.
3197 * symfile.c (init_filename_language_table): Ditto.
3198 (add_psymbol_with_dem_name_to_list): Ditto.
3199 * valarith.c (value_binop): Ditto.
3200 (value_neg): Ditto.
3201 * valops.c (value_slice): Ditto.
3202 * symtab.h (union language_specific): Ditto.
3203 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3204 (SYMBOL_DEMANGLED_NAME): Ditto.
3205 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3206 * defs.h (enum language): Ditto.
3207 * symtab.c (got_symtab): Ditto.
3208 * utils.c (fprintf_symbol_filtered): Ditto.
3209
3210 * ch-typeprint.c: Make file obsolete.
3211 * ch-valprint.c: Make file obsolete.
3212 * ch-lang.h: Make file obsolete.
3213 * ch-exp.c: Make file obsolete.
3214 * ch-lang.c: Make file obsolete.
3215
3216 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3217 CHILL_LIB.
3218 (TARGET_FLAGS_TO_PASS): Ditto.
3219 (CHILLFLAGS): Obsolete.
3220 (CHILL): Obsolete.
3221 (CHILL_FOR_TARGET): Obsolete.
3222 (CHILL_LIB): Obsolete.
3223 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3224 ch-valprint.c.
3225 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3226 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3227 ch-lang.o.
3228 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3229 targets.
3230
8aaf0b47
JB
32312002-07-31 Joel Brobecker <brobecker@gnat.com>
3232
3233 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3234 This does not change anything at the moment, but will be helpful
3235 later when full Ada support is integrated.
3236
f3a7b3a5
KB
32372002-07-31 Kevin Buettner <kevinb@redhat.com>
3238
3239 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3240 help message.
3241
fb850278
KB
32422002-07-31 Kevin Buettner <kevinb@redhat.com>
3243
3244 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3245 and save it in a local variable. Use variable in later test.
3246
e3bddbfa
KB
32472002-07-31 Kevin Buettner <kevinb@redhat.com>
3248
3249 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3250 test. (Thanks to Daniel Jacobowitz.)
3251
28d169de
KB
32522002-07-31 Kevin Buettner <kevinb@redhat.com>
3253
3254 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3255 (mips_abi_strings): Add "n64".
3256 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3257
7fe7e44e
KB
32582002-07-31 Kevin Buettner <kevinb@redhat.com>
3259
3260 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3261 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3262
c6caf090
KB
32632002-07-31 Kevin Buettner <kevinb@redhat.com>
3264
3265 * utils.c (host_pointer_to_address, address_to_host_pointer):
3266 Use gdb_assert() instead of explicit call to internal_error().
3267
c41669e0
KB
32682002-07-30 Kevin Buettner <kevinb@redhat.com>
3269
3270 * Makefile.in (rs6000-nat.o): Update dependencies.
3271
3272 From Nicholas Duffek:
3273 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3274 (aix-thread.o): New rule.
3275 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3276 * config/powerpc/aix432.mh: New file.
3277
2fda4977
DJ
32782002-07-30 Daniel Jacobowitz <drow@mvista.com>
3279
3280 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3281 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3282 (fetch_core_registers, ppc_linux_supply_gregset)
3283 (ppc_linux_supply_fpregset): New functions.
3284 (ppc_linux_regset_core_fns): New.
3285 (_initialize_ppc_linux_tdep): Call add_core_fns.
3286 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3287 and ppc_linux_supply_gregset.
3288 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3289 (supply_fpregset): Call ppc_linux_supply_fpregset.
3290 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3291 corelow.o.
3292 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3293
729051e6
DJ
32942002-07-30 Daniel Jacobowitz <drow@mvista.com>
3295
3296 * symtab.c (lookup_symbol): Demangle before lowercasing.
3297
5f8a3188
AC
32982002-07-30 Andrew Cagney <ac131313@redhat.com>
3299
3300 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3301 declaration.
3302 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3303 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3304 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3305 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3306 "gdb_string.h".
3307 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3308 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3309 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3310 (avr-tdep.o, mon960-rom.o): Ditto.
3311 (aout_stabs_gnu_h): Define.
3312 (symtab_h): Remove $(gdb_obstack_h).
3313
67f07146
JB
33142002-07-30 Jim Blandy <jimb@redhat.com>
3315
3316 Patch from David Carlton <carlton@math.stanford.edu>:
3317 * gdbinit.in: Move the `dir' commands that add GDB's own source
3318 directory to the search path to the end, so that the `gdb' source
3319 directory will be searched first.
3320
04ea0df1
AC
33212002-07-29 Andrew Cagney <ac131313@redhat.com>
3322
3323 * gdb_obstack.h: New file.
3324 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3325 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3326 * objfiles.h: Include "gdb_obstack.h".
3327 * Makefile.in (gdb_obstack_h): Define.
3328 (symtab_h): Add $(gdb_obstack_h).
3329 (objfiles_h): Add $(gdb_obstack_h).
3330
3331 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3332 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3333 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3334 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3335 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3336 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3337 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3338 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3339
3340 * Makefile.in (bcache.o): Update dependencies.
3341 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3342 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3343 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3344 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3345 (stabsread.o, symfile.o, symmisc.o): Ditto.
3346 (symtab.o, typeprint.o, macroexp.o): Ditto.
3347 (macrotab.o, mdebugread.o): Ditto.
3348 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3349 (coff_ecoff_h, aout_aout64_h): Define.
3350 (aout_stabs_gnu_h, libaout_h): Define.
3351
d138e37a
AC
33522002-07-29 Andrew Cagney <cagney@redhat.com>
3353
3354 * regcache.c (struct regcache_descr): Rename nr_registers to
3355 nr_cooked_registers. Revise comments describing the structure
3356 member fields.
3357 (init_regcache_descr): Update.
3358 (init_legacy_regcache_descr): Update.
3359 (read_register_gen, write_register_gen): When a cooked register in
3360 the raw register range, directly access the value from the raw
3361 register cache.
3362
460e6ec3
AC
33632002-07-29 Andrew Cagney <ac131313@redhat.com>
3364
3365 * z8k-tdep.c: Do not include "obstack.h".
3366 * h8300-tdep.c, h8500-tdep.c: Ditto.
3367 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3368 * valprint.c, v850-tdep.c: Ditto.
3369 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3370 * mn10200-tdep.c: Ditto.
3371
3372 * Makefile.in (z8k-tdep.o): Update dependencies.
3373 (m68hc11-tdep.o, valprint.o): Ditto.
3374 (v850-tdep.o, d10v-tdep.o): Ditto.
3375 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3376 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3377 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3378 (sh_opc_h, gdb_sim_sh_h): Define.
3379 (elf_sh_h, elf_bfd_h): Define.
3380 (opcode_m68hc11_h): Define.
3381 (OPCODES_SRC, OPCODES_DIR): define.
3382 (OPCODES): Use $(OPCODES_DIR).
3383 (gdb_sim_d10v_h): Rename sim_d10v_h.
3384 (gdb_sim_arm_h): Rename sim_arm_h.
3385
790c9cf0
KB
33862002-07-26 Kevin Buettner <kevinb@redhat.com>
3387
3388 * utils.c (host_pointer_to_address, address_to_host_pointer):
3389 Change internal_error() message to indicate function responsible
3390 for the error.
3391
9647fa49
KB
33922002-07-26 Kevin Buettner <kevinb@redhat.com>
3393
3394 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3395 calls to local_hex_string_custom().
3396
dabbe2c0
KB
33972002-07-26 Kevin Buettner <kevinb@redhat.com>
3398
3399 * irix5-nat.c: Move IRIX shared library support from here...
3400 * solib-irix.c: ...to here. Revised substantially to work with
3401 generic solib framework.
3402
b96d0a4e
KB
3403 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3404 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3405 * mips-irix-tdep.c: New file.
3406
313fb2f6
KB
3407 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3408 (mips-irix-tdep.o, solib-irix.o): New rules.
3409 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3410 solib-irix.o.
3411 * config/mips/irix6.mt (TDEPFILES): Likewise.
3412 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3413
ab2eaf26
KB
34142002-07-26 Kevin Buettner <kevinb@redhat.com>
3415
177e4768 3416 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3417 disabled (via ``#if 0'') includes.
3418
7244546a
KB
34192002-07-26 Kevin Buettner <kevinb@redhat.com>
3420
3421 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3422 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3423 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3424 Add support for the fpscr register.
3425 * rs6000-nat.c (regmap, fetch_inferior_registers)
3426 (store_inferior_registers, fetch_core_registers): Likewise.
3427
dd7be90a
KB
34282002-07-26 Kevin Buettner <kevinb@redhat.com>
3429
3430 * rs6000-nat.c (language.h): Include.
3431 (special_regs): Delete this array.
3432 (regmap): New function.
3433 (fetch_register, store_register): Use regmap() to map gdb
3434 register numbers to ptrace register numbers. Also, use
3435 outputs from regmap() to make decisions regarding type of
3436 ptrace() call to make. In particular, don't compare against
3437 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3438 (fetch_inferior_registers, store_inferior_registers): Where
3439 possible, obtain register numbers from tdep struct. Don't
3440 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3441 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3442 (LAST_UISA_SP_REGNUM): Delete.
3443
11bf77db
KB
34442002-07-25 Kevin Buettner <kevinb@redhat.com>
3445
3446 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3447 (fetch_registers, store_register, fetch_core_registers): Don't
3448 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3449 regcache_collect() as appropriate.
3450 (find_toc_address): Format hex address with local_hex_string().
3451
06afebeb
AC
34522002-07-25 Andrew Cagney <ac131313@redhat.com>
3453
3454 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3455 bfd/elf32-frv.c.
3456
8c554d79
TT
34572002-07-24 Tom Tromey <tromey@redhat.com>
3458
3459 * jv-exp.y: Marked all strings with _().
3460 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3461 internal_error.
3462 (MethodInvocation, CastExpression, parse_number, yyerror,
3463 java_type_from_name, push_expression_name, yylex): Typo fixes.
3464
e4c242d9
DJ
34652002-07-24 Daniel Jacobowitz <drow@mvista.com>
3466
3467 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3468 (tee_file_flush, tee_file_write, tee_file_fputs)
3469 (tee_file_isatty): New.
3470 * ui-file.h (tee_file_new): Add prototype.
3471
ebf56fd3
AS
34722002-07-24 Aidan Skinner <aidan@velvet.net>
3473
3474 * ada-lang.c: Change k&r style function definitions to prototyped
3475 form.
3476 * ada-typeprint.c: Change k&r style function definitions to prototyped
3477 form.
3478 * ada-valprint.c: Change k&r style function definitions to prototyped
3479 form.
3480
7fb623f7
AC
34812002-07-24 Andrew Cagney <cagney@redhat.com>
3482
3483 * README: Remove reference to remote-bug.
3484 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3485 remote-bug.c.
3486 (m88k-nat.o): Delete rule.
3487 (m88k-tdep.o): Delete rule.
3488 (remote-bug.o): Delete rule.
3489 * MAINTAINERS: Mark as obsolete.
3490 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3491 * m88k-tdep.c: Make file obsolete.
3492 * config/m88k/m88k.mh: Ditto.
3493 * config/m88k/delta88v4.mh: Ditto.
3494 * config/m88k/delta88v4.mt: Ditto.
3495 * config/m88k/delta88.mt: Ditto.
3496 * config/m88k/delta88.mh: Ditto.
3497 * remote-bug.c: Ditto.
3498 * config/m88k/tm-delta88.h: Ditto.
3499 * config/m88k/nm-delta88v4.h: Ditto.
3500 * config/m88k/xm-delta88.h: Ditto.
3501 * config/m88k/xm-dgux.h: Ditto.
3502 * config/m88k/tm-m88k.h: Ditto.
3503 * config/m88k/nm-m88k.h: Ditto.
3504 * config/m88k/tm-delta88v4.h: Ditto.
3505 * m88k-nat.c: Ditto.
3506 * cxux-nat.c: Ditto.
3507 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3508 and m88*-*-* obsolete.
3509 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3510 m88*-*-* obsolete.
3511
37611a2b
AC
35122002-07-24 Andrew Cagney <cagney@redhat.com>
3513
3514 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3515 constant. Same for local pointer variables.
3516 (extract_signed_integer): Ditto.
3517 * defs.h (extract_unsigned_integer): Update.
3518 (extract_signed_integer): Update.
3519
1aaa5f99
AC
35202002-07-24 Andrew Cagney <cagney@redhat.com>
3521
3522 * regcache.c (regcache_raw_write): Change buf parameter to a
3523 constant void pointer.
3524 (regcache_raw_read): Change buf parameter to a void pointer.
3525 (legacy_write_register_gen): Change myaddr parameter a constant
3526 void pointer.
3527 (supply_register): Change val parameter to a const void pointer.
3528 * regcache.h (regcache_raw_write): Update declaration.
3529 (regcache_raw_read): Update declaration.
3530 (supply_register): Update declaration.
3531
b4f5539f
TT
35322002-07-24 Tom Tromey <tromey@redhat.com>
3533
3534 * defs.h (gdb_readline_wrapper): Declare.
3535 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3536 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3537 * top.c (gdb_readline_wrapper): New function.
3538 (command_line_input): Use it.
3539
0818c12a
AC
35402002-07-24 Andrew Cagney <cagney@redhat.com>
3541
3542 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3543 regcache_read and regcache_write.
3544 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3545 * regcache.c: Update.
3546 * sh-tdep.c (sh64_push_arguments): Update comment.
3547 (sh_pseudo_register_read): Update.
3548 (sh_pseudo_register_write): Update.
3549 (sh4_register_read): Update.
3550 (sh4_register_write): Update.
3551 (sh64_pseudo_register_read): Update.
3552 (sh64_pseudo_register_write): Update.
3553 (sh64_register_read): Update.
3554 (sh64_register_write): Update.
3555 * i386-tdep.c (i386_extract_return_value): Update.
3556 (i386_extract_struct_value_address): Update.
3557 (i386_extract_return_value): Update.
3558 * blockframe.c (generic_read_register_dummy): Update.
3559 (generic_call_dummy_register_unwind): Update
3560 * infrun.c (write_inferior_status_register): Update.
3561
f7321c06
JB
35622002-07-23 Jim Blandy <jimb@redhat.com>
3563
3564 * parser-defs.h (expression_context_pc): Make this extern.
3565 (Thanks to Michael Snyder.)
3566
2037aebb
AC
35672002-07-23 Andrew Cagney <ac131313@redhat.com>
3568
3569 GDB 5.2.1 released from 5.2 branch.
3570 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3571 * README: Update to mention 5.2.1.
3572
66504d44
MS
35732002-07-23 Mark Salter <msalter@redhat.com>
3574
3575 * remote.c (remote_read_bytes): Fix check for error.
3576
27bae383
KB
35772002-07-22 Kevin Buettner <kevinb@redhat.com>
3578
3579 * aix-thread.c (language.h): Include.
3580 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3581 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3582 Print newlines at end of debug messages.
3583 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3584 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3585
35862002-07-22 Kevin Buettner <kevinb@redhat.com>
3587
3588 * aix-thread.c (ppc-tdep.h): Include.
3589 (special_register_p): New function.
3590 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3591 (store_regs_user_thread): Use register number information from
3592 gdbarch_tdep struct instead of hardcoded offsets relative to
3593 FIRST_UISA_SP_REGNUM.
3594 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3595 special_register_p() instead of using FPLAST_REGNUM and
3596 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3597 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3598 will be MQ's register number.
3599
36002002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3601
3602 * aix-thread.c (ops): Rename to aix_thread_ops.
3603 (base_ops): Rename to base_target.
3604 (ops_attach): Rename to aix_thread_attach.
3605 (ops_detach): Rename to aix_thread_detach.
3606 (ops_resume): Rename to aix_thread_detach.
3607 (ops_wait): Rename to aix_thread_wait.
3608 (ops_kill): Rename to aix_thread_kill.
3609 (init_ops): Rename to init_aix_thread_ops.
3610 (ops_fetch_register): Rename to aix_thread_fetch_register.
3611 (ops_store_register): Rename to aix_thread_store_register.
3612 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3613 (ops_thread_alive): Rename to aix_thread_thread_alive.
3614 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3615 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3616 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3617 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3618 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3619 (store_regs_lib): Rename to store_regs_user_thread.
3620 (store_regs_kern): Rename to store_regs_kernel_thread.
3621
27bae383 36222002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3623
3624 * aix-thread.c (ops_prepare_to_store): Eliminate.
3625 (init_ops): Don't initialize ops.prepare_to_store.
3626 (store_regs_kern): Pre-fetch register buffers from child,
3627 because some registers may not be in the cache. Copy
3628 regs from register cache only if they are cached.
3629 (store_regs_lib): Copy regs from register cache only
3630 if they are cached.
3631 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3632 fill_gprs64): Ditto.
3633
61c5da0b
KB
36342002-07-22 Kevin Buettner <kevinb@redhat.com>
3635
3636 * aix-thread.c (gdb_assert.h): Include.
3637 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3638 register sizes (from register cache) match size of buffer holding
3639 register data.
3640 (fill_sprs32): Change parameter types to match those in the ptrace()
3641 buffer.
3642 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3643 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3644
36452002-07-22 Michael Snyder <msnyder@redhat.com>
3646
3647 * aix-thread.c (supply_sprs64): Cosmetic change.
3648 (supply_sprs32): Cosmetic change.
3649 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3650 (fill_sprs64): Use regcache_collect instead of read_register.
3651 (store_regs_lib): Use regcache_collect instead of
3652 read_register. Use fill_sprs32 instead of fill_sprs64,
3653 if debugging a 32-bit architecture.
3654 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3655 out of the register cache, instead of passing a pointer into
3656 the register cache directly to ptrace. Use regcache_collect
3657 insteaad of read_register.
3658 (ops_prepare_to_store): Use target_read_registers instead
3659 of read_register_bytes.
3660
36479eb1
AS
36612002-07-20 Aidan Skinner <aidan@velvet.net>
3662
3663 * MAINTAINERS: Add self under write after approval.
3664
80ae6ee2
AS
36652002-07-20 Aidan Skinner <aidan@velvet.net>
3666
3667 * ada-tasks.c: Change k&r style function definitions to prototyped
3668 form.
3669
8a8ab2b9
AC
36702002-07-19 Andrew Cagney <ac131313@redhat.com>
3671
3672 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3673 * x86-64-tdep.c: Include "objfiles.h".
3674 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3675 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3676
fb16b900
ML
36772002-07-17 Michal Ludvig <michal@suse.cz>
3678
3679 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3680 (update_context): Initialise cfa variable.
3681
0fe7bf7b
MS
36822002-07-17 Michael Snyder <msnyder@redhat.com>
3683
3684 * aix-thread.c: Shorten some long lines.
3685 Bring comments into line with code spec.
3686
488f131b
JB
36872002-07-18 Joel Brobecker <brobecker@gnat.com>
3688
3689 * infrun.c: Re-indent using gdb_indent.sh.
3690
46c415d2
JB
36912002-07-18 Joel Brobecker <brobecker@gnat.com>
3692
3693 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3694 Leave the indentation temporarily untouched, to minimize the diffs.
3695
cdecafbe
EZ
36962002-07-18 Elena Zannoni <ezannoni@redhat.com>
3697
3698 * stabsread.c: Make os9k sections of the code obsolete,
3699 for real this time.
3700 * stabsread.h: Make os9k sections of the code obsolete.
3701
7b6aa020
ML
37022002-07-18 Michal Ludvig <mludvig@suse.cz>
3703
09ec9b38
ML
3704 * linux-low.c (regsets_store_inferior_registers): Add free()
3705 at the end of a loop to prevent memory leak.
3706 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3707 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3708 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3709 line a comment.
4894ac5d 3710 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3711
233282cd
JB
37122002-07-17 Jim Blandy <jimb@redhat.com>
3713
3714 * macrocmd.c (info_macro_command): Remove newline from error
3715 message.
3716
7b6aa020 37172002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3718
3719 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3720 (sh_gdbarch_init): Use it for sh-dsp.
3721
f7ef9339
KB
37222002-07-16 Kevin Buettner <kevinb@redhat.com>
3723
3724 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3725 64-bit DWARF2 format.
3726
8dd72958
JB
37272002-07-16 Joel Brobecker <brobecker@gnat.com>
3728
3729 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3730 <sys/proc.h> when not available.
3731
a99a9e1b
AC
37322002-07-16 Andrew Cagney <ac131313@redhat.com>
3733
3734 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3735 * stabsread.c: Make os9k sections of the code obsolete.
3736 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3737 * config/i386/i386os9k.mt: Make file obsolete.
3738 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3739 (COMMON_OBS): Remove os9kread.o
3740 (SFILES): Remove os9kread.c.
3741 (os9kread.o, remote-os9k.o): Make target obsolete.
3742 * remote-os9k.c: Make file obsolete.
3743 * os9kread.c: Make file obsolete.
3744 * Makefile.in
3745
7a3085c1
AC
37462002-07-16 Andrew Cagney <ac131313@redhat.com>
3747
3748 * NEWS: Mention that the FR30 has been made obsolete.
3749 * fr30-tdep.c: Make file obsolete.
3750 * config/fr30/tm-fr30.h: Ditto.
3751 * config/fr30/fr30.mt: Ditto.
3752 * configure.tgt: Make fr30-*-elf obsolete.
3753 * MAINTAINERS: Make fr30-elf obsolete.
3754
28a93f5a
PM
37552002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3756
3757 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3758 found is not inside a section.
3759
be006b8b
KB
37602002-07-15 Kevin Buettner <kevinb@redhat.com>
3761
3762 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3763 strerror().
3764 (pdc_realloc): Use xrealloc() instead of realloc().
3765
14fa3751
KB
37662002-07-15 Kevin Buettner <kevinb@redhat.com>
3767
3768 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3769 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3770 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3771 macros.
3772
42cc437f
KB
37732002-07-15 Kevin Buettner <kevinb@redhat.com>
3774
3775 * aix-thread.c (ptrace_check): Eliminate goto.
3776 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3777 problem.
3778
8e2c28d4
KB
37792002-07-15 Kevin Buettner <kevinb@redhat.com>
3780
3781 * aix-thread.c (gdbcmd.h): Include.
3782 (DEBUG, DBG, DBG2, dbg): Eliminate.
3783 (debug_aix_thread): New static global.
3784 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3785 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3786 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3787 invocations to DBG and DBG2 macros to test against
3788 ``debug_aix_thread'' and call fprintf_unfiltered().
3789 (_initialize_aix_thread): Add new command "set debug aix-thread".
3790
30413464
AC
37912002-07-15 Andrew Cagney <ac131313@redhat.com>
3792
3793 From Gerhard Tonn <TON@de.ibm.com>:
3794 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3795 instead of supply_register.
3796
7c43edc1
AC
37972002-07-15 Andrew Cagney <ac131313@redhat.com>
3798
3799 * dwarf2cfi.c: Include "gdb_assert.h".
3800 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3801 non-NULL.
3802 (update_context): Do not use __func__. Add missing ``break''.
3803 (update_context): Do not use __func__.
3804
9364a0ef
EZ
38052002-07-15 Elena Zannoni <ezannoni@redhat.com>
3806
3807 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3808 and its setting. Set gdbarch instruction printing functions
3809 directly. For non-rs6000 case use new function
3810 gdb_print_insn_powerpc.
3811 (gdb_print_insn_powerpc): New function.
3812
3fbeef0b
AC
38132002-07-13 Andrew Cagney <ac131313@redhat.com>
3814
92eb23c5 3815 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3816 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3817 * configure.tgt: Mark d30v-*-* as obsolete.
3818 * d30v-tdep.c: Mark file as obsolete.
3819 * config/d30v/d30v.mt: Ditto.
3820 * config/d30v/tm-d30v.h: Ditto.
3821
aacb1f0a
AS
38222002-07-13 Aidan Skinner <aidan@velvet.net>
3823
3824 * ada-tasks.c (add_task_entry): replace calls to
3825 malloc() with xmalloc
3826 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3827
3828 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3829 ada_finish_decode_line_1, all_sals_for_line
3830 ada_breakpoint_rewrite): replace calls to free() with xfree()
3831
c11d79f2
KB
38322002-07-12 Kevin Buettner <kevinb@redhat.com>
3833
3834 From Nicholas Duffek (with minor changes by Martin Hunt,
3835 Louis Hamilton, and Kevin Buettner):
3836 * aix-thread.c: New file.
3837
8e19ed76
PS
38382002-07-12 Petr Sorfa <petrs@caldera.com>
3839
3840 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3841 complaint for invalid attribute class or form.
3842 (read_func_scope): DW_AT_frame_base
3843 better handling of DW_AT_block*.
3844 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3845 better handling of DW_AT_block*.
3846 (read_common_block): DW_AT_location
3847 better handling of DW_AT_block*.
3848 (read_partial_die): DW_AT_location better handling
3849 of DW_AT_block*.
3850 (new_symbol): DW_AT_external better handling of
3851 DW_AT_block*. Proper initialization of variable
3852 "addr".
3853 (attr_form_is_block): New function that returns true
3854 if the attribute's form is of DW_FORM_block*.
3855
295401f7
DJ
38562002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3857
3858 * valops.c (find_method_list): Remove comment about
3859 removed STATIC_MEMFUNCP argument.
3860 (value_find_oload_method_list): Likewise.
3861
e42dc924
KB
38622002-07-12 Kevin Buettner <kevinb@redhat.com>
3863
3864 From Nicholas Duffek:
3865 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3866 target_new_objfile_hook.
3867
6904b546
KB
38682002-07-12 Kevin Buettner <kevinb@redhat.com>
3869
3870 From Nicholas Duffek:
3871 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3872 csect.
3873
53fe9346
AC
38742002-07-12 Andrew Cagney <cagney@redhat.com>
3875
3876 * MAINTAINERS: Mention --enable-sim-build-warnings.
3877 (m68hc11-elf): Disable sim build warnings.
3878 (m32r-elf): Mark as broken obsolete candidate.
3879 (x86_64-linux-gnu): Mark as buildable with -Werror.
3880 (arm-elf): Change -w to ``,'' which enables warnings but not
3881 -Werror.
3882
af5f3db6
AC
38832002-07-12 Andrew Cagney <ac131313@redhat.com>
3884
3885 * bcache.h: Update copyright.
3886 (struct bstring, struct bcache): Move definition to "bcache.c".
3887 Replaced by opaque declaration.
3888 (bcache_xfree): Replace free_bcache.
3889 (bcache_xmalloc, bcache_memory_used): Declare.
3890
3891 * bcache.c: Update copyright.
3892 (struct bstring, struct bcache): Moved to here from "bcache.h".
3893 Update comments.
3894 (bcache_xmalloc, bcache_memory_used): New functions.
3895 (bcache_xfree): Replace function free_bcache.
3896
3897 * Makefile.in (objfiles.o): Add $(bcache_h).
3898 (objfiles_h): Remove $(bcache_h).
3899 (symfile.o): Add $(bcache_h).
3900
3901 * symmisc.c: Update copyright.
3902 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3903 (print_objfile_statistics): Use bcache_memory_used.
3904
3905 * symfile.c: Include "bcache.h".
3906 (reread_symbols): Use bcache_xfree.
3907 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3908 (add_psymbol_to_list): Pass psymbol_cache by value.
3909 (add_psymbol_with_dem_name_to_list): Ditto.
3910
3911 * objfiles.h: Update copyright.
3912 (struct bcache): Declare opaque. Do not include "bcache.h".
3913 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3914 bcache'' pointers.
3915 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3916
3917 * objfiles.c: Include "bcache.h". Update copyright.
3918 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3919 macro_cache.
3920 (free_objfile): Use bcache_xfree.
3921
444199e7
GS
39222002-07-11 Grace Sainsbury <graces@redhat.com>
3923
3924 * monitor.c (monitor_fetch_register): Make name a constant.
3925 (monitor_store_register): Same.
3926
261397f8
DJ
39272002-07-11 Daniel Jacobowitz <drow@mvista.com>
3928
3929 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3930 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3931 (finish_block) For non-function blocks, hash the symbol table. For
3932 function blocks, mark the symbol table as unhashed.
3933 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3934 (msymbol_hash_iw): Likewise.
3935 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3936 value.
3937 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3938 (lookup_minimal_symbol): Likewise for both.
3939 * symtab.h (struct block): Add `hashtable' flag. Comment the
3940 hashtable.
3941 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3942 (ALL_BLOCK_SYMBOLS): Update.
3943 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3944 (struct symbol): Add `hash_next' pointer.
3945 * symtab.c (lookup_block_symbol): Search using the hash table when
3946 possible.
3947 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3948 (search_symbols, find_addr_symbol): Likewise.
3949
3950 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3951 (read_dst_symtab): Likewise.
3952 * jv-lang.c (get_java_class_symtab): Likewise.
3953 * mdebugread.c: Include "gdb_assert.h".
3954 (shrink_block): Assert that the block being modified is not hashed.
3955 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3956 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3957 symbols.
3958 (dump_symtab): Recognize hashed blocks.
3959 * printcmd.c (print_frame_args): Assert that function blocks do not
3960 have hashed symbol tables.
3961 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3962 (fill_in_ada_prototype, debug_print_block): Likewise.
3963 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3964
6f0eaa01
CV
39652002-07-11 Corinna Vinschen <vinschen@redhat.com>
3966
3967 * stack.c (print_frame): Use result of frame_address_in_block()
3968 instead of fi->pc when evaluating symbols.
3969 (backtrace_command_1): Ditto.
3970
a208b0cb
AC
39712002-07-11 Andrew Cagney <cagney@redhat.com>
3972
3973 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3974 Make static.
3975
3976 * arm-tdep.c (arm_register_name): Make return type constant.
3977
a6b6b089
AC
39782002-07-10 Andrew Cagney <ac131313@redhat.com>
3979
5ae5f592
AC
3980 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3981 prototype.
3982 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3983 * s390-tdep.c (s390_fp_regnum): Ditto.
3984 (s390_read_fp): Ditto.
3985 (s390_pop_frame): Ditto.
3986 (_initialize_s390_tdep): Ditto.
3987 * remote.c (get_remote_state): Ditto.
3988 * procfs.c (mappingflags): Ditto.
3989 * memattr.c (_initialize_mem): Ditto.
3990 * mcore-tdep.c (mcore_pop_frame): Ditto.
3991 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3992 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3993 * language.c (set_case_str): Ditto.
3994 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3995 * frv-tdep.c (new_variant): Ditto.
3996 (frv_stopped_data_address): Ditto.
3997 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3998 (context_alloc): Ditto.
3999 (frame_state_alloc): Ditto.
4000 (unwind_tmp_obstack_init): Ditto.
4001 (unwind_tmp_obstack_free): Ditto.
4002 (cfi_read_fp): Ditto.
4003 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4004 (cris_pop_frame): Ditto.
4005 * c-lang.c (scanning_macro_expansion): Ditto.
4006 (finished_macro_expansion): Ditto.
4007 (c_preprocess_and_parse): Ditto.
4008 * gdbarch.sh: Ditto.
4009 * gdbarch.h, gdbarch.c: Regenerate.
4010 * config/mn10200/tm-mn10200.h: Adjust indentation.
4011 * target.c: Adjust indentation.
4012 * symtab.h: Adjust indentation.
4013 * stabsread.h: Adjust indentation.
4014 * remote-es.c: Adjust indentation.
4015 * os9kread.c: Adjust indentation.
4016
40172002-07-10 Andrew Cagney <ac131313@redhat.com>
4018
a6b6b089
AC
4019 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4020 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4021
a1789893
GS
40222002-07-10 Grace Sainsbury <graces@redhat.com>
4023
4024 * NEWS: Mention m68k, mcore multi-arching.
4025 * MAINTAINERS: Change status of m68k, mcore to reflect
4026 multi-arching.
4027
02f0d45d
DJ
40282002-07-10 Daniel Jacobowitz <drow@mvista.com>
4029
4030 * valops.c (find_overload_match): Free oload_syms.
4031
f15f768e
JB
40322002-07-09 Joel Brobecker <brobecker@gnat.com>
4033
4034 Define HAVE_SYS_PROC_H if sys/proc.h exists
4035 * configure.in: Add check for sys/proc.h
4036 * config.in: Regenerate.
4037 * configure: Regenerate.
4038
902a7139
GS
40392002-07-09 Grace Sainsbury <graces@redhat.com>
4040
4041 * config/m68k/tm-m68k.h: Remove macros wrapped in
4042 #if !GDB_MULTI_ARCH.
4043
a534e424
AC
40442002-07-08 Andrew Cagney <ac131313@redhat.com>
4045
4046 * config.in, configure: Regenerate.
4047
9b94f7bf
MK
40482002-07-08 Mark Kettenis <kettenis@gnu.org>
4049
4050 * dwarf2cfi.c: Include "gcore.h".
4051 (execute_stack_op): Fix implementation of the
4052 DW_OP_deref and DW_OP_deref_size operators by letting do their
4053 lookup in the target.
4054
1d34db41
MK
40552002-07-07 Mark Kettenis <kettenis@gnu.org>
4056
4057 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4058 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4059 tdep->sc_sp_offset.
4060
79d5b63a
DJ
40612002-07-05 Daniel Jacobowitz <drow@mvista.com>
4062
4063 Fix PR gdb/595, gdb/602
4064 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4065 Don't call value_cast, just read the vtable pointer; update comments
4066 to match.
4067
3bb912e8
GS
40682002-07-05 Grace Sainsbury <graces@redhat.com>
4069
4070 * config/mcore/tm-mcore.h: Remove file.
4071 * config/mcore/mcore.mt: Remove definition of TM_FILE
4072 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4073
ca39387d
MK
40742002-07-05 Mark Kettenis <kettenis@gnu.org>
4075
4076 * i386bsd-tdep.c: Include "gdb_string.h".
4077
efdc1108
GS
40782002-07-04 Grace Sainsbury <graces@redhat.com>
4079
4080 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4081 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4082 mcore-tdep.
4083 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4084 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4085 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4086 (RETVAL_REGNUM): Move macros from tm-mcore.h
4087 (mcore_reg_struct_has_addr): New function.
4088 (mcore_gdbarch_init): Added initializations for the macros removed
4089 from tm-mcore.h.
4090
bb21884d
MK
40912002-07-04 Mark Kettenis <kettenis@gnu.org>
4092
4093 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4094 traditonal string branding within the ELF header.
4095
228c6d41
DJ
40962002-07-04 Daniel Jacobowitz <drow@mvista.com>
4097
4098 * symtab.c (remove_params): New function.
4099 (make_symbol_overload_list): Use it instead of cplus_demangle.
4100 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4101
2404952e
MK
41022002-07-04 Mark Kettenis <kettenis@gnu.org>
4103
e5e4acad
MK
4104 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4105
baadce09
MK
4106 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4107 New variables.
4108 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4109 and tdep->sigtramp_end.
4110 * i386obsd-nat.c: New file.
4111 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4112
2404952e
MK
4113 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4114 Don't call get_current_frame().
4115
9b4f1ba7
PM
41162002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4117
4118 * i386-nat.c (child_post_startup_inferior): New function
4119 calling i386_cleanup_dregs if
4120 I386_USE_GENERIC_WATCHPOINTS is defined.
4121 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4122 conditional to acknowledge that i386-nat.c has its
4123 own child_post_startup_inferior function.
4124
c0d1d883
MK
41252002-07-04 Mark Kettenis <kettenis@gnu.org>
4126
00f8375e
MK
4127 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4128 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4129 instead of MAX_REGISTER_RAW_SIZE.
4130 (i386_extract_return_value, i386_extract_struct_value_address):
4131 Convert to use regcache.
4132 (i386_gdbarch_init): Set max_register_raw_size and
4133 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4134 Set extract_return_value and extract_struct_value_address instead
4135 of their deprecated variants.
4136
c0d1d883
MK
4137 Convert i386 target to generic dummy frames.
4138 * i386-tdep.c: Include "symfile.h".
4139 (i386_frameless_signal_p): Consider a function to be frameless if
4140 the pc points at the first instruction of the function.
4141 (i386_frame_chain): Handle (generic) call dummies.
4142 (i386_frame_saved_pc): Likewise.
4143 (i386_frame_init_saved_regs): Remove code dealing with call
4144 dummies on the stack.
4145 (i386_push_dummy_frame): Removed.
4146 (i386_call_dummy_words): Removed.
4147 (i386_fix_call_dummy): Removed.
4148 (i386_push_return_address): New function.
4149 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4150 parameter, and don't call get_current_frame.
4151 (i386_pop_frame): New function.
4152 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4153 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4154 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4155 call_dummy_length to 0, set call_dummy_words to NULL, set
4156 sizeof_call_dummy_words to 0, set fix_call_dummy to
4157 generic_fix_call_dummy, set pc_in_call_dummy to
4158 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4159 generic_push_dummy_frame, set push_return_address to
4160 i386_push_return_address and set frame_chain_valid to
4161 generic_file_frame_chain_valid.
4162
049ee0e4
AC
41632002-07-03 Andrew Cagney <ac131313@redhat.com>
4164
4165 * gdbarch.sh (struct regcache): Add opaque declaration.
4166 (EXTRACT_RETURN_VALUE): New architecture method.
4167 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4168 * gdbarch.h, gdbarch.c: Regenerate.
4169 * arch-utils.c (legacy_extract_return_value): New function.
4170 * arch-utils.h (legacy_extract_return_value): Declare.
4171 * values.c (value_being_returned): Re-enable code handling
4172 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4173 deprecated_grub_regcache_for_registers call to block handling
4174 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4175 (EXTRACT_RETURN_VALUE): Do not define.
4176
4e0d9804
GS
41772002-07-03 Grace Sainsbury <graces@redhat.com>
4178
4179 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4180 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4181 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4182 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4183 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4184 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4185 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4186 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4187 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4188 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4189 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4190 argument so the function fits the prototype in the architecture
4191 vector.
4192 (mcore_pop_frame): Remove argument so the function fits the
4193 prototype. Use get_current_frame instead of the argument.
4194 (mcore_push_arguments): Change type of struct_return so the
4195 function can be used in the architecture vector.
4196 (mcore_store_struct_return): Add.
4197 (mcore_frame_init_saved_regs): Add.
4198 (mcore_gdbarch_init): Add function calls to replace the macros
4199 removed from tm-mcore.h
4200
36160dc4
AC
42012002-07-03 Andrew Cagney <ac131313@redhat.com>
4202
4203 * infcmd.c (print_return_value): Remove compatibility code calling
4204 deprecated_grub_regcache_for_registers.
4205
4206 * values.c: Include "regcache.h".
4207 (value_being_returned): Update. Use
4208 deprecated_grub_regcache_for_registers to extract the register
4209 buffer address.
4210 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4211 ``struct regcache''.
4212 * Makefile.in (values.o): Add dependency on $(regcache_h).
4213
4214 * inferior.h (run_stack_dummy): Change type of second parameter to
4215 a ``struct regcache''.
4216 * valops.c (hand_function_call): Change type of retbuf to ``struct
4217 regcache''. Allocate using regcache_xmalloc, clean using
4218 make_cleanup_regcache_xfree.
4219 * infcmd.c (run_stack_dummy): Update. Use
4220 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4221
4222 * regcache.c (do_regcache_xfree): New function.
4223 (make_cleanup_regcache_xfree): New function.
4224 * regcache.h (make_cleanup_regcache_xfree): Declare.
4225
e64d9b3d
MH
42262002-07-03 Martin M. Hunt <hunt@redhat.com>
4227
4dd79c29
MH
4228 * event-top.c (command_line_handler): Don't read past
4229 beginning of buffer.
e64d9b3d 4230
4dd79c29
MH
42312002-07-03 Martin M. Hunt <hunt@redhat.com>
4232
e64d9b3d
MH
4233 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4234 struct frame_id.
4235 (varobj_create): Store frame_id for root.
4236 (varobj_gen_name): Use xasprintf.
4237 (varobj_update): Save and restore frame using get_frame_id() and
4238 frame_find_by_id().
4239 (create_child): Use xasprintf.
4240 (new_root_variable): Initialize frame_id.
4241 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4242 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4243 to prevent memory leak.
4244
26e6c56a
AC
42452002-07-03 Andrew Cagney <ac131313@redhat.com>
4246
4247 * valops.c (hand_function_call): Move declaration of retbuf to
4248 start of function, allocate using malloc, add a cleanup but before
4249 the inf_status cleanup, cleanup the buffer. Rename local variable
4250 old_chain to inf_status_cleanup.
4251
f436dd25
MH
42522002-07-03 Martin M. Hunt <hunt@redhat.com>
4253
4254 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4255
4256 * cli/cli-decode.c (cmd_func_p): New function.
4257 (cmd_func): New function.
4258
4259 * command.h: Add cmd_func() and cmd_func_p().
4260
4cfe2084
GS
42612002-07-03 Grace Sainsbury <graces@redhat.com>
4262
4263 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4264 (REGISTER_SIZE): Remove.
4265 (MAX_REGISTER_RAW_SIZE): Remove.
4266 (REGISTER_VIRTUAL_TYPE): Remove.
4267 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4268 (REGISTER_NAME): Remove.
4269 (USE_GENERIC_DUMMY_FRAMES): Remove.
4270 (CALL_DUMMY): Remove.
4271 (CALL_DUMMY_START_OFFSET): Remove.
4272 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4273 (CALL_DUMMY_LOCATION): Remove.
4274 (FIX_CALL_DUMMY): Remove.
4275 (CALL_DUMMY_ADDRESS): Remove.
4276 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4277 (SAVE_DUMMY_FRAME_TOS): Remove.
4278 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4279 (mcore_register_virtual_type): New function.
4280 (mcore_register_byte): New function.
4281 (mcore_register_size): New function.
4282 (mcore_register_name): New function.
4283 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4284 macros removed from tm-mcore.h.
4285 (mcore_dump_tdep): Add.
4286 (_initialize_mcore_tdep): Add gdbarch_register call.
4287
4fd667e9
MK
42882002-07-03 Mark Kettenis <kettenis@gnu.org>
4289
4290 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4291 frameless_look_for_prologue, such that we actually call this
4292 function.
4293
42f99ac2
JB
42942002-07-02 Joel Brobecker <brobecker@gnat.com>
4295
4296 * frame.h (frame_address_in_block): New function.
4297
4298 * blockframe.c (frame_address_in_block): New function extracted
4299 from get_frame_block().
4300 (get_frame_block): Use frame_address_in_block().
4301 (block_innermost_frame): Use frame_address_in_block() to match
4302 the frame pc address against the block boundaries rather than
4303 the frame pc directly. This prevents a failure when a frame pc
4304 is actually a return-address pointing immediately after the end
4305 of the given block.
4306
103a1597 43072002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4308
4309 * MAINTAINERS: Add self under write after approval.
4310
43112002-07-02 Grace Sainsbury <graces@redhat.com>
4312
103a1597
GS
4313 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4314 used in architecture vector. The default is
4315 m68k_local_breakpoint_from_pc.
4316 (m68k_local_breakpoint_from_pc): Add.
4317 (enum): Add register numbers from tm-m68k.h.
4318 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4319 vector.
4320 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4321 GDB_MULTI_ARCH_PARTIAL.
4322 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4323 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4324 m68k-tdep.c.
4325 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4326 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4327 to enum in m68k-tdep.c
4328
7a5a0534
JB
43292002-07-02 Joel Brobecker <brobecker@gnat.com>
4330
4331 * solib-osf.c (open_map): Compute the list of shared libraries
4332 loaded by the inferior, rather than the list of libraries loaded
4333 by GDB itself. Otherwise, GDB ends up reading the symbols from
4334 the wrong shared libraries...
4335
6f558d74
MK
43362002-07-02 Mark Kettenis <kettenis@gnu.org>
4337
b7d15bf7
MK
4338 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4339 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4340 macros.
4341 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4342 Remove functions.
4343 (FRAMELESS_SIGNAL): Remove function.
4344 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4345 i386_linux_saved_pc_after_call): Removed.
4346 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4347 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4348 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4349
6bff26de
MK
4350 * i386-tdep.c (i386_frameless_signal_p): New function.
4351 (i386_frame_chain): Deal with frameless signals.
4352 (i386_sigtramp_saved_sp): New function.
4353 (i386_frame_saved_pc): Deal with frameless signals.
4354 (i386_saved_pc_after_call): Make sure the correct value is
4355 returned just after entry into a sigtramp.
4356 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4357 i386fbsd4_sc_sp_offset): New variables.
4358 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4359 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4360 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4361 similiar to what we already did for sc_pc_offset.
4362 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4363 tdep->sc_sp_offset.
4364
6f558d74
MK
4365 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4366
145564b7
ML
43672002-07-02 Michal Ludvig <mludvig@suse.cz>
4368
4369 * config/i386/tm-x86-64linux.h: New.
4370 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4371 definitions.
4372 * config/i386/nm-x86-64.h: Rename to ...
4373 * config/i386/nm-x86-64linux.h: ... this one.
4374 * config/i386/x86-64linux.mh: Reflect the above change.
4375
3a1e71e3
MK
43762002-07-01 Mark Kettenis <kettenis@gnu.org>
4377
21d0e8a4
MK
4378 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4379 with sigcontext_addr. Add sc_sp_offset.
4380 (i386bsd_sigtramp_saved_pc): Remove prototype.
4381 (i386bsd_sicontext_addr): Add prototype.
4382 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4383 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4384 (i386_svr4_sigtramp_saved_pc): Removed.
4385 (i386_svr4_sigcontext_addr): New function.
4386 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4387 Initialize tdep->sigcontext_addr instead. Initialize
4388 tdep->sc_pc_offset and tdep->sc_sp_offset.
4389 (i386_gdbarch_init): Likewise.
4390 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4391 any more.
4392 (i386bsd_sigtramp_saved_pc): Remove function.
4393 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4394 Initialize tdep->sigcontext_addr instead. Initialize
4395 tdep->sc_pc_offset.
4396 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4397 of tdep->sigtramp_saved_pc.
4398 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4399 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4400 instead.
4401
3a1e71e3
MK
4402 * i386-tdep.c (i386_frameless_function_invocation,
4403 i386_frame_num_args, i386_frame_init_saved_regs,
4404 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4405 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4406 i386_extract_return_value, i386_store_return_value,
4407 i386_extract_struct_value_address, i386_register_virtual_type,
4408 i386_register_convertible, i386_register_convert_to_virtual,
4409 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4410 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4411 static.
4412
52e9098c
MK
44132002-07-01 Mark Kettenis <kettenis@gnu.org>
4414
77b13a25
MK
4415 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4416
52e9098c
MK
4417 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4418 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4419 this macro. Include "value.h".
4420
1b372fff
AS
44212002-06-30 Aidan Skinner <aidan@velvet.net>
4422
4423 * ada-exp.tab.c: remove as it's a generated file
4424 * ada-lex.c: remove as it's a generated file
4425
9c5045b5
MK
44262002-06-30 Mark Kettenis <kettenis@gnu.org>
4427
4a93c5bb
MK
4428 * config/i386/tm-i386.h (struct frame_info, struct
4429 frame_saved_regs, struct value, struct type): Remove forward
4430 declarations.
4431
322d4fe0
MK
4432 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4433 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4434 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4435 (FILL_FPXREGSET): Define.
4436
fdd8263d
MK
4437 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4438
482e577b
MK
4439 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4440 i[3456]86-*-netbsd* case.
4441 * config/i386/tm-obsd.h: Removed.
4442 * config/i386/obsd.mt: Removed.
4443 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4444 core-aout.o.
4445 (MH_CFLAGS): Add -DYYDEBUG=0.
4446
6916549a
MK
4447 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4448 i386nbsd_sc_pc_offset on OpenBSD too.
4449
9c5045b5
MK
4450 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4451 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4452 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4453 define.
4454 * i386bsd-tdep.c: Include "arch-utils.h".
4455 (i386bsd_aout_in_solib_call_trampoline): New function.
4456 (i386bsd_init_abi): Set in_solib_call_trampoline to
4457 i386bsd_aout_in_solib_call_trampoline.
4458 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4459 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4460
aa84d1bb
AC
44612002-06-28 Andrew Cagney <ac131313@redhat.com>
4462
4463 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4464 (struct obstack, struct bcache): Add opaque declarations.
4465 * Makefile.in (macrotab_h): Update
4466
b4d83933
AC
44672002-06-28 Andrew Cagney <ac131313@redhat.com>
4468
4469 * blockframe.c (generic_find_dummy_frame): Change return type to
4470 ``struct regcache''.
4471 (struct dummy_frame): Replace field ``registers'' with regcache, a
4472 struct regcache object.
4473 (generic_find_dummy_frame): Update.
4474 (generic_push_dummy_frame): Update. Use regcache_xfree,
4475 regcache_xmalloc and regcache_cpy.
4476 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4477 regcache_xfree.
4478 (deprecated_generic_find_dummy_frame): Update.
4479 (generic_read_register_dummy): Update. Use
4480 regcache_read_as_address.
4481 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4482 (generic_get_saved_register): Update. Use regcache_read.
4483
08c0b5bc
AC
44842002-06-28 Andrew Cagney <ac131313@redhat.com>
4485
4486 * Makefile.in (objfiles_h): Add $(bcache_h).
4487 * objfiles.h: Include "bcache.h".
4488
4489 * Makefile.in (symtab_h): Remove $(bcache_h).
4490 * symtab.h: Do not include "bcache.h".
4491
1f89801a
AC
44922002-06-28 Andrew Cagney <ac131313@redhat.com>
4493
4494 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4495 generic_func_frame_chain_valid.
4496
b9644b58
DB
44972002-06-28 David O'Brien <obrien@FreeBSD.org>
4498
4499 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4500 * config/i386/tm-fbsd.h: Likewise.
4501
dd486634
AC
45022002-06-28 Andrew Cagney <ac131313@redhat.com>
4503
4504 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4505 generic_unwind_get_saved_register.
4506
0b434a00
AC
45072002-06-27 Andrew Cagney <ac131313@redhat.com>
4508
4509 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4510 * regcache.c (supply_register): Add missing argument to
4511 register_buffer call.
4512
f30e5a77
AC
45132002-06-27 Andrew Cagney <ac131313@redhat.com>
4514
4515 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4516 Solaris /bin/grep does not not like it. From Peter Schauer.
4517
9f064c95
TT
45182002-06-26 Tom Tromey <tromey@redhat.com>
4519
4520 * command.h (add_setshow_cmd): Declare.
4521 (add_setshow_cmd_full): Declare.
4522 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4523 returns void. Use add_setshow_cmd_full.
4524 (add_setshow_cmd_full): New function.
4525 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4526 (add_setshow_boolean_cmd): Likewise.
4527
099c7589
JT
45282002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4529
4530 * config/vax/tm-vax.h: Protect from multiple inclusion.
4531 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4532 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4533 * config/vax/tm-vaxbsd.h: ...here. New file.
4534 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4535
1d049c5e
JT
45362002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4537
4538 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4539 (BELIEVE_PCC_PROMOTION): Remove.
4540 (AP_REGNUM): Move to...
4541 * config/vax/nm-vax.h: ...here.
4542 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4543 (vax_breakpoint_from_pc): New function.
4544 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4545 and gdbarch_believe_pcc_promotion.
4546
4791e091
JT
45472002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4548
4549 * Makefile.in (vax_tdep_h): Define.
4550 (vax-tdep.o): Use $(vax_tdep_h).
4551 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4552 (vax_dump_tdep): New function.
4553 (_initialize_vax_tdep): Register vax_dump_tdep.
4554 * vax-tdep.h: Include osabi.h.
4555 (struct gdbarch_tdep): New.
4556
da130f98
AC
45572002-06-26 Andrew Cagney <cagney@redhat.com>
4558
4559 * frame.h (deprecated_generic_find_dummy_frame): Rename
4560 generic_find_dummy_frame.
4561 * blockframe.c (generic_find_dummy_frame): Make static.
4562 (deprecated_generic_find_dummy_frame): New function.
4563 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4564 generic_find_dummy_frame with deprecated_find_dummy_frame.
4565 (sh64_nofp_frame_init_saved_regs): Ditto.
4566 (sh_fp_frame_init_saved_regs): Ditto.
4567 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4568 (s390_frame_chain): Ditto.
4569 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4570
6300c360
GS
45712002-06-26 Grace Sainsbury <graces@redhat.com>
4572
4573 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4574 gdbarch vector are at the top.
4575 (NUM_REGS): Remove.
4576 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4577 (FRAME_ARGS_ADDRESS): Remove.
4578 (FRAME_LOCALS_ADDRESS): Remove.
4579 (FRAME_NUM_ARGS): Remove.
4580 (FRAME_ARGS_SKIP): Remove.
4581 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4582 (m68k_gdbarch_init): Add gdbarch initializations for macros
4583 undefined in tm-m68k.h
4584
1c617db8
GS
45852002-06-26 Grace Sainsbury <graces@redhat.com>
4586
4587 * monitor.h: Add the function regname to monitor_ops
4588 structure. This way NUM_REGS does not have to be a constant.
4589 * monitor.c (monitor_fetch_register): Added support for regname
4590 function. The function is called if the array regnames is NULL.
4591 (monitor_store_register): Same.
da130f98
AC
4592 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4593 regnames array.
1c617db8
GS
4594 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4595 cpu32bug_cmds.regname to point to new function.
4596 * abug-rom.c (abug_regname): Same as above.
4597 (init_abug_cmds): Same.
4598 * dbug-rom.c (dbug_regname): Same as above.
4599 (init_dbug_cmds): Same.
4600 * remote-est.c (est_regname): Same.
4601 (init_est_cmds): Same.
4602 * rom68k-rom.c (rom68k_regname): Same.
4603 (init_rom68k_cmds): Same.
4604
ea9365bb
TT
46052002-06-25 Tom Tromey <tromey@redhat.com>
4606
4607 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4608
72cec141
AC
46092002-06-25 Andrew Cagney <cagney@redhat.com>
4610
4611 * infrun.c (stop_registers): Change variable's type to ``struct
4612 regcache'''.
4613 (xmalloc_inferior_status): Delete function.
4614 (free_inferior_status): Delete function.
4615 (normal_stop): Use regcache_cpy.
4616 (struct inferior_status): Change type of fields ``stop_registers''
4617 and ``registers'' to ``struct regcache''.
4618 (write_inferior_status_register): Use regcache_write.
4619 (save_inferior_status): Instead of calling
4620 xmalloc_inferior_status, allocate the inf_status buffer directly.
4621 Use regcache_dup_no_passthrough and regcache_dup to save the
4622 buffers.
4623 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4624 Replace the stop_registers regcache instead of overriding it. Use
4625 regcache_xfree. Instead of calling free_inferior_status, xfree
4626 the buffer directly.
4627 (discard_inferior_status): Use regcache_xfree. Instead of calling
4628 free_inferior_status, xfree the buffer directly.
4629 (build_infrun): Use regcache_xmalloc.
4630 (_initialize_infrun): Delete redundant call to build_infrun.
4631
4632 * Makefile.in (infcmd.o): Add $(regcache_h).
4633
4634 * infcmd.c: Include "regcache.h".
4635 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4636 obtain the address of `stop_registers' register buffer.
4637 (print_return_value): Ditto.
4638
4639 * inferior.h (struct regcache): Add opaque declaration.
4640 (stop_registers): Change variable's declared type to ``struct
4641 regcache''.
4642
defc6f8c
TT
46432002-06-24 Tom Tromey <tromey@redhat.com>
4644
c0e624e7
TT
4645 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4646 * target.c (initialize_targets): Fixed typo in
4647 trust-readonly-sections `show' documentation.
4648
defc6f8c
TT
4649 * main.c: Marked all strings with _().
4650
2b236d82
DH
46512002-06-24 Don Howard <dhoward@redhat.com>
4652
4653 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4654 that means max CORE_ADDR+1.
4655 (lookup_mem_region): Ditto.
4656 (mem_info_command): Ditto.
4657
942dc0e9
GS
46582002-06-24 Grace Sainsbury <graces@redhat.com>
4659
4660 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4661 (REGISTER_BYTES_OK): Remove.
4662 (REGISTER_BYTES): Remove.
4663 (STORE_STRUCT_RETURN): Remove.
4664 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4665 (STORE_RETURN_VALUE): Remove.
4666 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4667 (FRAME_CHAIN): Remove.
4668 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4669 (FRAME_SAVED_PC): Remove.
4670 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4671 (m68k_store_struct_return): Add.
4672 (m68k_deprecated_extract_return_value): Add.
4673 (m68k_deprecated_extract_struct_value_address): Add.
4674 (m68k_store_return_value): Add.
4675 (m68k_frame_chain): Add.
4676 (m68k_frameless_function_invocation): Add.
4677 (m68k_frame_saved_pc): Add.
4678 (m68k_gdbarch_init): added set_gdbarch calls for new
4679 functions and deleted macros.
4680
03c30d4d
TT
46812002-06-23 Tom Tromey <tromey@redhat.com>
4682
4683 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4684 (ALLDEPFILES): Likewise.
4685 (udiheaders): Removed.
4686 (udip2soc.o): Likewise.
4687 (udi2go32.o): Likewise.
4688 (udr.o): Likewise.
4689 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4690
37e71372
AC
46912002-06-22 Andrew Cagney <ac131313@redhat.com>
4692
06a6ac57
AC
4693 * infrun.c (_initialize_infrun): Delete unnecessary call to
4694 build_infrun.
4695
37e71372
AC
4696 * regcache.h: Update comments describing the regcache_cpy family
4697 of functions.
4698 (regcache_save, regcache_restore): Delete declaration.
4699 (regcache_save_no_passthrough): Delete declaration.
4700 (regcache_restore_no_passthrough): Delete declaration.
4701 * regcache.c (regcache_save): Delete function.
4702 (regcache_save_no_passthrough): Delete function.
4703 (regcache_restore): Delete function.
4704 (regcache_restore_no_passthrough): Delete function.
4705
78f6d055
AC
47062002-06-21 Andrew Cagney <ac131313@redhat.com>
4707
4708 * config/m68k/tm-m68k.h: Fix typo.
4709 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4710 (m68k_frame_init_saved_regs): Declare.
4711
78b119cb
JB
47122002-06-21 Jim Blandy <jimb@redhat.com>
4713
4714 Remove some vestiges of Harris 88k support.
4715 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4716 register numbering quirk.
4717 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4718 odd symbols occurring in Harris 88k ELF targets.
4719
0fbb3da7
TT
47202002-06-21 Tom Tromey <tromey@redhat.com>
4721
4722 * gdb_locale.h: New file.
4723 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4724 (defs_h): Added gdb_locale.h.
4725 * configure, config.in: Rebuilt.
4726 * configure.in (PACKAGE): Define.
4727 * defs.h: Include gdb_locale.h.
4728 * main.c (captured_main): Call setlocale, bindtextdomain,
4729 textdomain.
4730
456f8b9d
DB
47312002-06-21 Dave Brolley <brolley@redhat.com>
4732
4733 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4734 * config/frv/frv.mt: New file.
4735 * config/frv/tm-frv.h: New file.
4736 * configure.tgt: Support frv-*-*.
4737 * Makefile.in (frv-tdep.o): New target.
4738 * frv-tdep.c: New file.
4739 * NEWS: Mention frv.
4740
cdd463f9
DB
47412002-06-21 Dave Brolley <brolley@redhat.com>
4742
4743 * MAINTAINERS: Add self to "Write After Approval" list.
4744
5d3ed2e3
GS
47452002-06-21 Grace Sainsbury <graces@redhat.com>
4746
4747 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4748 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4749 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4750 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4751 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4752
4753 * m68k-tdep.c: Include arch-utils.h
4754 (m68k_register_raw_size): Add.
4755 (m68k_register_virtual_size): Add.
4756 (m68k_register_virtual_type): Add.
4757 (m68k_register_name): Add.
4758 (m68k_stack_align): Add.
4759 (m68k_register_byte): Add.
4760 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4761 tm-m68k.h.
4762
7f8e7424
GS
47632002-06-21 Grace Sainsbury <graces@redhat.com>
4764
a2c6a6d5 4765 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4766 m68k_find_saved_regs.
4767 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4768 references to it with frame->saved_regs.
7f8e7424
GS
4769 (m68k_gdbarch_init): Added function calls to initialize the
4770 gdbarch structure.
a2c6a6d5
GS
4771 (m68k_fix_call_dummy): Add.
4772 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4773 (CALL_DUMMY): Remove.
4774 (CALL_DUMMY_LENGTH): Remove.
4775 (CALL_DUMMY_START_OFFSET): Remove.
4776 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4777 (FIX_CALL_DUMMY): Remove.
4778 (PUSH_DUMMY_FRAME): Remove.
4779 (POP_FRAME): Remove.
7f8e7424 4780
f461f5cf
PM
47812002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4782
4783 * parse.c (parse_fprintf): New function used to avoid calls to
4784 fprintf in bison parser generated debug code.
4785 * parser-defs.h: Declaration of new parse_fprintf function.
4786 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4787 Set YYDEBUG to 1 by default.
4788 Set YYFPRINTF as parse_fprintf.
4789
7f0c12ed
ML
47902002-06-21 Michal Ludvig <mludvig@suse.cz>
4791
4792 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4793 encoding anymore.
4794 (pointer_encoding, enum ptr_encoding): New.
4795 (execute_cfa_program): Take care about pointer encoding.
4796 (dwarf2_build_frame_info): Only call parse_frame_info for
4797 .debug_frame and .eh_frame.
4798 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4799 fixed augmentation handling, added relative addressing,
4800 ignore duplicate FDEs. Added comments.
19d833a2 4801 * dwarf2cfi.c: Reindented.
7f0c12ed 4802
87c4a039
EZ
48032002-06-20 Elena Zannoni <ezannoni@redhat.com>
4804
4805 * event-top.c (command_handler): Don't use space_at_cmd_start
4806 unless there is sbrk() on the host. Assign time and space data
4807 to union fields of the appropriate length.
4808
1cf877ad
ML
48092002-06-20 Michal Ludvig <mludvig@suse.cz>
4810
4811 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4812 x86_64_register_name. Return type changed to 'const char *'.
4813 (x86_64_register_name2nr): Rename to x86_64_register_number.
4814 (x86_64_gdbarch_init): Update to reflect the change.
4815 * x86-64-tdep.h: Ditto.
4816 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4817 (supply_fpregset): Ditto.
4818
3fadccb3
AC
48192002-06-19 Andrew Cagney <cagney@redhat.com>
4820
4821 * regcache.h: Update copyright.
4822 (struct regcache, struct gdbarch): Add opaque declarations.
4823 (current_regcache): Declare global variable.
4824 (regcache_read, regcache_write): Add gdbarch parameter.
4825 (regcache_save, regcache_save_no_passthrough)
4826 (regcache_restore, regcache_restore_no_passthrough)
4827 (regcache_dup, regcache_dup_no_passthrough)
4828 (regcache_cpy, regcache_cpy_no_passthrough)
4829 (deprecated_grub_regcache_for_registers)
4830 (deprecated_grub_regcache_for_register_valid)
4831 (regcache_valid_p): Add function declarations.
4832
4833 * regcache.c: Update copyright.
4834 (regcache_descr_handle): New global variable.
4835 (struct regcache_descr): Define.
4836 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4837 (regcache_descr, xfree_regcache_descr): New functions.
4838 (struct regcache): Define.
4839 (regcache_xmalloc, regcache_xfree): New functions.
4840 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4841 (regcache_dup, regcache_dup_no_passthrough): New functions.
4842 (regcache_valid_p, regcache_read_as_address): New functions.
4843 (deprecated_grub_regcache_for_registers): New function.
4844 (deprecated_grub_regcache_for_register_valid): New function.
4845 (current_regcache): New global variable.
4846 (register_buffer): Add regcache parameter. Update calls.
4847 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4848 (read_register_gen, write_register_gen): Update register_buffer
4849 call. Test for legacy_p instead of gdbarch_register_read_p or
4850 gdbarch_register_write_p.
4851 (regcache_collect): Update register_buffer call.
4852 (build_regcache): Rewrite. Use deprecated grub functions.
4853 (regcache_save, regcache_save_no_passthrough): New functions.
4854 (regcache_restore, regcache_restore_no_passthrough): New
4855 functions.
4856 (_initialize_regcache): Create the regcache_data_handle. Swap
4857 current_regcache global variable.
4858
4859 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4860 parameter to regcache_read and regcache_write calls.
4861 (sh4_register_read): Ditto.
4862 (sh64_pseudo_register_read): Ditto.
4863 (sh64_register_read): Ditto.
4864 (sh_pseudo_register_write): Ditto.
4865 (sh4_register_write): Ditto.
4866 (sh64_pseudo_register_write): Ditto.
4867 (sh64_register_write): Ditto.
4868
4869 * defs.h (XCALLOC): Define.
4870
152d9db6
GS
48712002-06-19 Grace Sainsbury <graces@redhat.com>
4872
4873 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4874 * m68k-tdep.c (m68k_gdbarch_init): Added.
4875 (m68k_dump_tdep): Added.
4876
170911c7
DJ
48772002-06-19 Daniel Jacobowitz <drow@mvista.com>
4878
4879 * ada-lang.c (fill_in_ada_prototype): Update comment.
4880
2e4ebe70
DJ
48812002-06-19 Daniel Jacobowitz <drow@mvista.com>
4882
4883 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4884 MIPS_ABI_LAST.
4885 (mips_abi_string, mips_abi_strings): New.
4886 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4887 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4888 tdep->mips_abi_string. Honor mips_abi_string. Default to
4889 O32 if no ABI is found.
4890 (mips_dump_tdep): Use mips_abi_strings.
4891 (mips_abi_update): New function.
4892 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4893 ``set mips abi'' and ``show mips abi''. Check the size of
4894 mips_abi_strings.
4895
16775908
AC
48962002-06-19 Andrew Cagney <cagney@redhat.com>
4897
4898 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4899 constant.
4900
5051bfa4 49012002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4902
5051bfa4
JB
4903 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4904 current frame using only the first stack size adjustment. All
4905 subsequent size adjustments are not considered to be part of
4906 the "static" part of the current frame.
4907 Compute the address of the saved registers relative to the
4908 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4909 in use in this frame.
4910
56468235
DH
49112002-06-18 Don Howard <dhoward@redhat.com>
4912
4913 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4914 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4915 suggesting this solution.
4916
0b624158
AC
49172002-06-18 Andrew Cagney <ac131313@redhat.com>
4918
4919 * config/romp/xm-rtbsd.h: Delete file.
4920 * config/romp/rtbsd.mh: Delete file.
4921
221ea385
KS
49222002-06-18 Keith Seitz <keiths@redhat.com>
4923
4924 * breakpoint.c (condition_command): Post breakpoint_modify
4925 when a condition is added to an existing breakpoint.
4926 (commands_command): Likewise for commands.
4927 (set_ignore_count): Likewise for ignore counts.
4928 If no tty, do not simply return, still need to send event
4929 notification.
4930 (ignore_command): Only print a newline if the command came
4931 from a tty.
4932 Don't call breakpoints_changed, since this is now properly
4933 handled by set_ignore_count.
4934
5402eed1
AC
49352002-06-18 Andrew Cagney <cagney@redhat.com>
4936
4937 * MAINTAINERS: Note that cris-elf target can be compiled with
4938 -Werror.
4939 * cris-tdep.c (cris_register_name): Make return type constant.
4940 (cris_breakpoint_from_pc): Ditto.
4941
cc22880b
ML
49422002-06-18 Michal Ludvig <mludvig@suse.cz>
4943
4944 * frame.h (struct frame_info): Change type of context to
4945 'struct context'.
4946
fa88f677
AC
49472002-06-17 Andrew Cagney <cagney@redhat.com>
4948
4949 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4950 pointer.
4951 * gdbarch.h, gdbarch.c: Regenerate.
4952 * config/mips/tm-mips.h (mips_register_name): Update.
4953 * i386-tdep.h (i386_register_name): Update.
4954 * mips-tdep.c (mips_register_name): Update
4955 * alpha-tdep.c (alpha_register_name): Update.
4956 * arch-utils.c (legacy_register_name): Update.
4957 * arch-utils.h (legacy_register_name): Update.
4958 * avr-tdep.c (avr_register_name): Update.
4959 * ia64-tdep.c (ia64_register_name): Update.
4960 * i386-tdep.c (i386_register_name): Update.
4961 * sparc-tdep.c (sparc32_register_name): Update.
4962 (sparc64_register_name): Update.
4963 (sparclite_register_name): Update.
4964 (sparclet_register_name): Update.
4965 * sh-tdep.c (sh_generic_register_name): Update.
4966 (sh_sh_register_name): Update.
4967 (sh_sh3_register_name): Update.
4968 (sh_sh3e_register_name): Update.
4969 (sh_sh_dsp_register_name): Update.
4970 (sh_sh3_dsp_register_name): Update.
4971 (sh_sh4_register_name): Update.
4972 (sh_sh64_register_name): Update.
4973 * s390-tdep.c (s390_register_name): Update.
4974 * rs6000-tdep.c (rs6000_register_name): Update.
4975 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4976 (ns32k_register_name_32382): Update.
4977 * d10v-tdep.c (d10v_ts2_register_name): Update.
4978 (d10v_ts3_register_name): Update.
4979 * xstormy16-tdep.c (xstormy16_register_name): Update.
4980 * vax-tdep.c (vax_register_name): Update.
4981 * v850-tdep.c (v850_register_name): Update.
4982 * m68hc11-tdep.c (m68hc11_register_name): Update.
4983 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4984 (am33_register_name): Update.
4985
ea1e7ef6
GS
49862002-06-17 Grace Sainsbury <graces@redhat.com>
4987
4988 * m68k-tdep.c: Reindented.
4989
9b02dd1b
AC
49902002-06-17 Andrew Cagney <ac131313@redhat.com>
4991
4992 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4993 list of predefined types.
4994
8758dec1
MK
49952002-06-16 Mark Kettenis <kettenis@gnu.org>
4996
b6197528
MK
4997 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4998 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4999 REGISTER_CONVERT_TO_RAW): Remove defines.
5000 (i386_register_virtual_type, i386_register_convertible,
5001 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5002 Remove prototypes.
5003 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5004 macros mentioned above.
5005
82b47e62
MK
5006 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5007 (i386lynx_saved_pc_after_call): Remove prototype.
5008 * i386ly-tdep.c: Include "i386-tdep.h".
5009 (i386lynx_saved_pc_after_call): Make static. Use
5010 read_memory_nobpt instead of read_memory. Use
5011 read_memory_unsigned_integer instead of read_memory_integer.
5012 (i386lynx_init_abi): New function.
5013 (i386lynx_coff_osabi_sniffer): New function.
5014 (_initialize_i386bsd_tdep): New function.
5015
8758dec1
MK
5016 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5017 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5018 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5019 (i386_fix_call_dummy): Remove prototype.
5020 * i386-tdep.c (i386_call_dummy_words): New variable.
5021 (i386_gdbarch_init): Adjust for removal of the
5022 macros mentioned above.
5023
e9e68a56
AC
50242002-06-15 Andrew Cagney <ac131313@redhat.com>
5025
5026 * command.h (add_setshow_auto_boolean_cmd): Replace
5027 add_set_auto_boolean_cmd.
5028 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5029 add_set_auto_boolean_cmd.
5030 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5031 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5032 mask-address'' command.
5033 (show_mask_address): Add cmd parameter.
5034 * remote.c (add_packet_config_cmd): Update. Change type of
5035 set_func and show_func to cmd_sfunc_ftype.
5036 (_initialize_remote): Update `set remote Z-packet'
5037 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5038 (show_remote_protocol_e_packet_cmd): Ditto.
5039 (show_remote_protocol_E_packet_cmd): Ditto.
5040 (show_remote_protocol_P_packet_cmd): Ditto.
5041 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5042 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5043 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5044 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5045 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5046 (show_remote_protocol_Z_packet_cmd): Ditto.
5047 (show_remote_protocol_binary_download_cmd): Ditto.
5048 (show_remote_cmd): Pass NULL to all of above.
5049
fc08ec52
MK
50502002-06-15 Mark Kettenis <kettenis@gnu.org>
5051
5052 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5053 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5054 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5055 POP_FRAME): Remove defines.
5056 (i386_push_arguments, i386_store_struct_return,
5057 i386_extract_return_value, i386_store_return_value,
5058 i386_extract_struct_value_address, i386_push_dummy_frame,
5059 i386_pop_frame): Renove prototypes.
5060 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5061 macros mentioned above.
5062
e707bbc2
AC
50632002-06-15 Andrew Cagney <ac131313@redhat.com>
5064
5065 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5066 add_set_boolean_cmd.
5067 (add_setshow_cmd): New function.
5068 * command.h (add_setshow_boolean_cmd): Replace
5069 add_set_boolean_cmd.
5070 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5071 and ``set rdiromatzero''.
5072 * maint.c (_initialize_maint_cmds): Update commented out code.
5073 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5074 * target.c (initialize_targets): Update `set
5075 trust-readonly-sections'.
5076 * remote.c (_initialize_remote): Update `set remotebreak'.
5077
42fdc8df
MK
50782002-06-15 Mark Kettenis <kettenis@gnu.org>
5079
93924b6b
MK
5080 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5081 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5082 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5083 fit into multi-arch framework.
5084 (i386_breakpoint_from_pc): New function.
5085 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5086 above.
5087
42fdc8df
MK
5088 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5089 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5090 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5091 (i386_frameless_function_invocation, i386_frame_num_args,
5092 i386_frame_init_saved_regs): Remove prototypes.
5093 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5094 macros mentioned above.
5095
9773a94b
AC
50962002-06-15 Andrew Cagney <ac131313@redhat.com>
5097
5098 * cli/cli-decode.c (set_cmd_cfunc): Update.
5099 (set_cmd_sfunc): Update.
5100 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5101 (set_cmd_sfunc, set_cmd_cfunc): Update.
5102 * cli/cli-decode.h: Update.
5103
6e157172
MK
51042002-06-15 Mark Kettenis <kettenis@gnu.org>
5105
5106 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5107 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5108
7f19b9a2
AC
51092002-06-15 Andrew Cagney <ac131313@redhat.com>
5110
5111 * defs.h (auto_boolean): Declare enum.
5112 * command.h (cmd_auto_boolean): Delete enum.
5113 * mips-tdep.c (mask_address_var): Update.
5114 (mips_mask_address_p): Update.
5115 (show_mask_address): Update.
5116 * remote.c (struct packet_config): Update.
5117 (update_packet_config): Update.
5118 (show_packet_config_cmd): Update.
5119 (packet_ok): Update.
5120 (add_packet_config_cmd): Update.
5121 (_initialize_remote):
5122 * command.h: Update.
5123 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5124 (do_setshow_command): Update.
5125 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5126 * cli/cli-decode.h: Update.
5127
1cf88de5
MK
51282002-06-15 Mark Kettenis <kettenis@gnu.org>
5129
22ba8cf2
MK
5130 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5131 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5132 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5133 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5134 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5135 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5136
762c5349
MK
5137 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5138 list of DJGPP COFF targets.
5139
091198bb
MK
5140 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5141 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5142 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5143 (FP0_REGNUM): Remove define.
5144 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5145 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5146 (i386_register_virtual_size): Remove protoype.
5147 * i386-tdep.c (i386_register_virtual_size): Removed.
5148 (i386_extract_return_value, i386_store_return_value): Use
5149 FP0_REGNUM instead of NUM_FREGS to determine whether the
5150 floating-point registers are available.
5151 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5152 Adjust for removal of macros mentioned above.
5153
51542002-06-15 Mark Kettenis <kettenis@gnu.org>
5155
fcc9bf01
MK
5156 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5157 comments.
5158 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5159 Remove prototypes.
5160 (supply_gregset, fill_gregset): Remove use of register keyword and
5161 remove declaration for regmap. Use I386_NUM_GREGS instead of
5162 NUM_REGS and NUM_FREGS.
5163 (FPREGSET_FSAVE_OFFSET): Remove.
5164 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5165 NUM_FREGS to determine whether the floating-point registers are
5166 available.
5167
65e78234
MK
5168 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5169 gnu_store_registers): Replace usage of NUM_GREGS with
5170 I386_NUM_GREGS.
5171
98df6387
MK
5172 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5173 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5174 usage of NUM_GREGS with I386_NUM_GREGS.
5175
099a9414
MK
5176 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5177
57976e88
MK
5178 * i386bsd-nat.c: Include "i386-tdep.h".
5179 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5180 I386_NUM_GREGS.
5181
b335f4a6
MK
5182 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5183 and associated comment. They no longer make any sense, since we
5184 don't use this file anymore on Linux.
5185
1cf88de5
MK
5186 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5187 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5188 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5189 elements in these arrays.
5190 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5191 MAX_NUM_REGS.
5192
daa66587
MK
51932002-06-15 Mark Kettenis <kettenis@gnu.org>
5194
5195 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5196 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5197
26e9b323
AC
51982002-06-14 Andrew Cagney <cagney@redhat.com>
5199
5200 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5201 EXTRACT_RETURN_VALUE.
5202 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5203 EXTRACT_STRUCT_VALUE_ADDRESS.
5204 * gdbarch.h, gdbarch.c: Regenerate.
5205
5206 * values.c (value_being_returned): Handle
5207 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5208 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5209
5210 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5211 * arm-tdep.c (arm_gdbarch_init): Update.
5212 * avr-tdep.c (avr_gdbarch_init): Update.
5213 * cris-tdep.c (cris_gdbarch_init): Update.
5214 * d10v-tdep.c (d10v_gdbarch_init): Update.
5215 * ia64-tdep.c (ia64_gdbarch_init): Update.
5216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5218 * s390-tdep.c (s390_gdbarch_init): Update.
5219 * sh-tdep.c (sh_gdbarch_init): Update.
5220 * s390-tdep.c (s390_gdbarch_init): Update.
5221 * sparc-tdep.c (sparc_gdbarch_init): Update.
5222 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5223 * v850-tdep.c (v850_gdbarch_init): Update.
5224 * vax-tdep.c (vax_gdbarch_init): Update.
5225 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5227
5228 * config/arc/tm-arc.h: Update.
5229 * config/d30v/tm-d30v.h: Update.
5230 * config/fr30/tm-fr30.h: Update.
5231 * config/h8300/tm-h8300.h: Update.
5232 * config/h8500/tm-h8500.h: Update.
5233 * config/i386/tm-i386.h: Update.
5234 * config/i386/tm-ptx.h: Update.
5235 * config/i386/tm-symmetry.h: Update.
5236 * config/i960/tm-i960.h: Update.
5237 * config/m32r/tm-m32r.h: Update.
5238 * config/m68k/tm-delta68.h: Update.
5239 * config/m68k/tm-linux.h: Update.
5240 * config/m68k/tm-m68k.h: Update.
5241 * config/m88k/tm-m88k.h: Update.
5242 * config/mcore/tm-mcore.h: Update.
5243 * config/mips/tm-mips.h: Update.
5244 * config/mn10200/tm-mn10200.h: Update.
5245 * config/pa/tm-hppa.h: Update.
5246 * config/pa/tm-hppa64.h: Update.
5247 * config/sparc/tm-sp64.h: Update.
5248 * config/sparc/tm-sparc.h: Update.
5249 * config/sparc/tm-sparclet.h: Update.
5250 * config/z8k/tm-z8k.h: Update.
5251
5179e78f
AC
52522002-06-14 Andrew Cagney <cagney@redhat.com>
5253
5254 * Makefile.in (i386_linux_tdep_h): Define.
5255 (i386_tdep_h, i387_tdep_h): Define.
5256 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5257 $(i386_tdep_h) and $(i387_tdep_h).
5258 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5259
8201327c
MK
52602002-06-14 Mark Kettenis <kettenis@gnu.org>
5261
edf393ac
MK
5262 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5263 Already covered by the default.
5264
896fb97d
MK
5265 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5266 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5267 (i386_gdbarch_init): Initialize long_double_format and long_double
5268 bit.
5269
8201327c
MK
5270 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5271 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5272 Move these to ...
5273 * config/i386/i386sol2.mh: ... here.
5274 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5275 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5276 (SIGCONTEXT_PC_OFFSET): Remove define.
5277 (IN_SIGTRAMP): Remove define.
5278 * i386-sol2-tdep.c: New file.
5279
5280 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5281 * config/i386/tm-i386nw.h: Removed.
5282
5283 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5284 USE_STRUCT_CONVENTION): Remove defines.
5285 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5286 (get_longjmp_target): Remove prototype.
5287 (IN_SIGTRAMP): Remove define.
5288 (i386bsd_in_sigtramp): Remove prototype.
5289 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5290 function. Update comment accordingly
5291 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5292 (FRAME_SAVED_PC): Remove define.
5293 (i386bsd_frame_saved_pc): Remove prototype.
5294 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5295 GET_LONGJMP_TARGET): Remove defines.
5296 (get_longjmp_target): Remove prototype.
5297 (IN_SIGTRAMP): Remove define.
5298 (i386bsd_in_sigtramp): Remove prototype.
5299 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5300 function. Update comment accordingly
5301 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5302 (FRAME_SAVED_PC): Remove define.
5303 (i386bsd_frame_saved_pc): Remove prototype.
5304 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5305 Remove prototype.
5306 (USE_STRUCT_CONVENTION): Remove prototype.
5307 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5308 declaration.
5309 (_initialize_i386bsd_nat): Revise logic to determine some
5310 constants at compile time when compiling a native GDB. Warn if
5311 things don't match up with what we expect.
5312 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5313 Remove variables.
5314 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5315 to use date stored in `struct gdbarch_tdep'.
5316 (i386bsd_sigcontext_offset): Remove varaible.
5317 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5318 stored in `struct gdbarch_tdep'.
5319 (i386bsd_frame_saved_pc): Make static.
5320 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5321 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5322 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5323 i386fbsd4_sc_pc_offset): New variables.
5324 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5325 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5326 functions.
5327 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5328 functions.
5329 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5330 Modify the value of i386fbsd_sigtramp_start and
5331 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5332 i386fbsd_sigtramp_end.
5333 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5334 function.
5335
5336 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5337 define to i386-linux-tdep.h.
5338 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5339 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5340 defines.
5341 (i386_linux_register_name, i386_linux_register_byte,
5342 i386_linux_register_raw_size): Remove prototypes.
5343 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5344 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5345 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5346 TARGET_WRITE_PC): Remove defines.
5347 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5348 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5349 i386_linux_write_pc): Remove prototypes.
5350 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5351 (get_longjmp_target): Remove prototype.
5352 * i386-linux-tdep.h: New file.
5353 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5354 * i386-linux-tdep.c: Include "i386-tdep.h" and
5355 "i386-linux-tdep.h".
5356 (i386_linux_register_name, i386_linux_register_byte,
5357 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5358 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5359 Make static.
5360 (i386_linux_init_abi): New function.
5361 (_initialize_i386_linux_tdep): New function.
5362
5363 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5364 (i386_saved_pc_after_call): Remove prototype.
5365 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5366 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5367 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5368 (i386_register_name, i386_stab_reg_to_regnum,
5369 i386_dwarf_reg_to_regnum): Remove prototypes.
5370 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5371 SIZEOF_SSE_REGS): Remove defines.
5372 (REGISTER_BYTES): Remove define.
5373 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5374 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5375 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5376 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5377 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5378 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5379 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5380 (get_longjmp_target): Remove prototype.
5381 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5382 (sigtramp_saved_pc): Remove define.
5383 (i386v4_sigtramp_saved_pc): Remove prototype.
5384 * config/i386/tm-go32.h (FRAME_CHAIN,
5385 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5386 (i386go32_frame_saved_pc): Remove prototype.
5387 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5388 (get_longjmp_target): Remove prototype.
5389 * i386-tdep.h: Include "osabi.h".
5390 (enum i386_abi): Removed.
5391 (enum struct_return): New enum.
5392 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5393 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5394 sc_pc_offset members.
5395 (i386_gdbarch_register_os_abi): Remove prototype.
5396 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5397 I386_SSE_NUM_REGS): New defines.
5398 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5399 I386_SSE_SIZEOF_REGS): New defines.
5400 (i386_register_name, i386_register_byte, i386_register_raw_size):
5401 New prototypes.
5402 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5403 (i386bsd_sigtramp_saved_pc): New prototype.
5404 * i386-tdep.c: Don't include "elf-bfd.h".
5405 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5406 i386_frame_chain, i386_saved_pc_after_call): Make static.
5407 (i386_frame_saved_pc): Rewrite to call architecture dependent
5408 function to deal with signal handlers. Make static.
5409 (i386go32_frame_saved_pc): Removed.
5410 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5411 Removed.
5412 (i386_get_longjmp_target): New function.
5413 (default_struct_convention, pcc_struct_convention,
5414 reg_struct_convention, valid_conventions, struct_convention): New
5415 variables.
5416 (i386_use_struct_convention): New function.
5417 (i386v4_sigtramp_saved_pc): Renamed to
5418 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5419 (i386_pc_in_sigtramp): New function.
5420 (i386_abi_names): Removed.
5421 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5422 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5423 Removed.
5424 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5425 i386_gdbarch_register_os_abi): Removed.
5426 (struct i386_abi_handler): Removed.
5427 (i386_abi_handler_list): Removed.
5428 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5429 functions.
5430 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5431 i386_nw_init_abi): New functions.
5432 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5433 Use set_gdbarch_xxx() calls instead of relying on macros for a
5434 number of calls.
5435 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5436 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5437 Register the various architecture variants defined in this file.
5438
ad2f7632
DJ
54392002-06-14 Daniel Jacobowitz <drow@mvista.com>
5440
5441 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5442 (struct main_type): Remove arg_types member. Update comments for
5443 struct field.
5444 (TYPE_ARG_TYPES): Remove.
5445 (TYPE_FN_FIELD_ARGS): Update.
5446 (smash_to_method_type): Update prototype.
5447
5448 * c-typeprint.c (cp_type_print_method_args): Take method type
5449 instead of argument list. Use new argument layout. Simplify.
5450 (c_type_print_args): Use new argument layout. Simplify.
5451 (c_type_print_base): Update call to cp_type_print_method_args.
5452 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5453 argument; use die->type instead. Update call to
5454 smash_to_method_type.
5455 (read_structure_scope): Update call to dwarf2_add_member_fn.
5456 * gdbtypes.c (allocate_stub_method): Update comment.
5457 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5458 Use new argument layout.
5459 (check_stub_method): Use new argument layout. Don't count
5460 void as an argument.
5461 (print_arg_types): Update comments. Use new argument layout.
5462 (recursive_dump_type): Don't print arg_types member.
5463 * hpread.c (hpread_read_struct_type): Use new argument layout.
5464 (fixup_class_method_type): Likewise.
5465 (hpread_type_lookup): Likewise.
5466 * stabsread.c (read_type): Update calls to read_args and
5467 smash_to_method_type.
5468 (read_args): Use new argument layout. Simplify.
5469 * valops.c (typecmp): Use new argument layout. Update parameters
5470 and comments. Simplify.
5471 (hand_function_call): Use new argument layout.
5472 (search_struct_method): Update call to typecmp.
5473 (find_overload_match): Use new argument layout.
5474
6da02953
DJ
54752002-06-13 Daniel Jacobowitz <drow@mvista.com>
5476
5477 * NEWS: Mention multithreaded debug support for gdbserver.
5478
519b2366
DJ
54792002-06-13 Daniel Jacobowitz <drow@mvista.com>
5480
5481 * MAINTAINERS: Mention NEWS.
5482
6c0d6680
DJ
54832002-06-13 Daniel Jacobowitz <drow@mvista.com>
5484
5485 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5486 (struct mips_objfile_private, compare_pdr_entries): New.
5487 (non_heuristic_proc_desc): Read the ".pdr" section if it
5488 is present.
5489
6529d2dd
AC
54902002-06-12 Andrew Cagney <ac131313@redhat.com>
5491
5492 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5493 (arm_debug): New static variable.
5494 (_initialize_arm_tdep): Add ``set debug arm'' command.
5495
26216b98
AC
54962002-06-12 Andrew Cagney <ac131313@redhat.com>
5497
5498 * Makefile.in (sim_arm_h): Define.
5499 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5500 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5501 (arm_register_sim_regno): New function, map an internal REGNUM
5502 onto a simulator register number.
5503 (arm_gdbarch_init): Set register_sim_regno.
5504
814b3ba0
AH
55052002-06-09 Aldy Hernandez <aldyh@redhat.com>
5506
5507 * MAINTAINERS: Add self.
5508
475b0867
JB
55092002-06-11 Jim Blandy <jimb@redhat.com>
5510
919d772c
JB
5511 * source.c (source_info): Mention whether the symtab has
5512 information about preprocessor macros.
5513
475b0867
JB
5514 Call the command `info macro', not `show macro'.
5515 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5516 Fix error message.
5517 (_initialize_macrocmd): Register `info_macro_command' in
5518 `infolist', not `showlist'.
5519
9e364162
DJ
55202002-06-11 Daniel Jacobowitz <drow@mvista.com>
5521
5522 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5523 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5524 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5525 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5526 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5527 unconditionally.
5528 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5529 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5530 (_initialize_mips_tdep): Remove dead code.
5531 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5532 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5533 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5534 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5535 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5536 MIPS_LAST_FP_ARG_REGNUM): Remove.
5537
23aa4c72
ML
55382002-06-11 Michal Ludvig <mludvig@suse.cz>
5539
5540 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5541 (unwind_tmp_obstack_free, parse_frame_info)
5542 (update_context, cfi_read_fp, cfi_write_fp)
5543 (cfi_frame_chain, cfi_init_extra_frame_info)
5544 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5545 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5546
70eb15a4
CV
55472002-06-11 Corinna Vinschen <vinschen@redhat.com>
5548
5549 * v850-tdep.c (v850_type_is_scalar): New function.
5550 (v850_use_struct_convention): Match current gcc implementation
5551 as close as possible.
5552 (v850_push_arguments): Fix stack_offset handling. Don't write
5553 struct_addr into register. This is done by v850_store_struct_return.
5554 (v850_extract_return_value): Care for structs.
5555 (v850_store_return_value): Ditto.
5556 (v850_store_struct_return): Actually write address.
5557
482a4d06
ML
55582002-06-11 Michal Ludvig <mludvig@suse.cz>
5559
5560 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5561 without debug information too.
5562
d855c300
AC
55632002-06-10 Andrew Cagney <ac131313@redhat.com>
5564
5565 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5566 Make multi-arch pure.
5567 * gdbarch.h, gdbarch.c: Re-generate.
5568 * arm-tdep.c (arm_print_float_info): Update.
5569 * arch-utils.h (default_print_float_info): Update.
5570 * arch-utils.c (default_print_float_info): Update.
5571 * infcmd.c (float_info): Update call.
5572
dd12a101
AC
55732002-06-10 Andrew Cagney <ac131313@redhat.com>
5574
5575 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5576 the front of the initialize list.
5577
101dcfbe
AC
55782002-06-10 Andrew Cagney <ac131313@redhat.com>
5579
5580 * infrun.c (struct inferior_status): Replace fields
5581 selected_frame_address and selected_level with field
5582 selected_frame_id.
5583 (save_inferior_status): Update. Use get_frame_id.
5584 (struct restore_selected_frame_args): Delete.
5585 (restore_selected_frame): Update. Use frame_find_by_id.
5586 (restore_inferior_status): Update.
5587
5588 * breakpoint.h (struct breakpoint): Change type of
5589 watchpoint_frame to frame_id.
5590 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5591 call to get_current_frame.
5592 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5593 get_current_frame.
5594 (watchpoint_check): Use frame_find_by_id.
5595
5596 * frame.h (record_selected_frame): Delete declaration.
5597 * stack.c (record_selected_frame): Delete function.
5598
5599 * frame.h (struct frame_id): Define.
5600 (get_frame_id): Declare.
5601 (frame_find_by_id): Declare.
5602 * frame.c (frame_find_by_id): New function.
5603 (get_frame_id): New function.
5604
304270b6
AV
56052002-06-10 Andrey Volkov <avolkov@transas.com>
5606
5607 * ser-e7kpc.c: Fix duplicated define and call of
5608 _initialize_ser_e7000pc
5609
2f2cf184
DJ
56102002-06-09 Daniel Jacobowitz <drow@mvista.com>
5611
5612 * signals/signals.c (target_signal_from_host): Fix #ifdef
5613 SIGRTMIN case.
5614 (do_target_signal_to_host): Likewise.
5615
caaa3122
DJ
56162002-06-09 Daniel Jacobowitz <drow@mvista.com>
5617
5618 * mips-tdep.c (mips_find_abi_section): New function.
5619 (mips_gdbarch_init): Call it.
5620
6ac5df3a
MK
56212002-06-09 Mark Kettenis <kettenis@gnu.org>
5622
5623 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5624 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5625 after Andrew's 2002-06-08 gdbarch change.
5626
82ea117a
MK
56272002-06-09 Mark Kettenis <kettenis@gnu.org>
5628
5629 * i386-linux-nat.c (suppy_gregset): Don't supply
5630 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5631 register cache.
5632 (fill_gregset): Don't fetch it under the same circumstances.
5633
3c25f8c7
AC
56342002-06-09 Andrew Cagney <cagney@redhat.com>
5635
5636 * Makefile.in (callback_h): Define.
5637 (remote_sim_h): Update path to remote-sim.h.
5638 (remote-rdp.o): Add $(callback_h).
5639 (remote-sim.o): Use $(callback_h).
5640 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5641 * remote-rdp.c: Include "gdb/callback.h".
5642
1029b7fa
MK
56432002-06-09 Mark Kettenis <kettenis@gnu.org>
5644
5645 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5646 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5647
616675d3
AC
56482002-06-08 Andrew Cagney <ac131313@redhat.com>
5649
a3efda28
AC
5650 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5651 * rdi-share/serpardr.c: Ditto.
5652 * rdi-share/unixcomm.c: Ditto.
5653 * rdi-share/serdrv.c: Ditto.
5654 * rdi-share/hostchan.h: Ditto.
5655 * rdi-share/hostchan.c: Ditto.
5656 * rdi-share/host.h: Ditto.
5657 * rdi-share/devsw.c: Ditto.
5658
c5f10366
AC
5659 * objfiles.h: Change type of obj_private to void pointer.
5660 * pa64solib.c: Update copyright. Don't include "assert.h", use
5661 strcmp instead of STREQ, use LONGEST, do not use PTR
5662 * somsolib.c: Ditto.
5663
616675d3
AC
5664 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5665 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5666 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5667
e4b415d9
AC
56682002-06-08 Andrew Cagney <ac131313@redhat.com>
5669
5670 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5671 (default_get_saved_register): Delete function.
5672 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5673 generic_unwind_get_saved_register.
5674 * gdbarch.h, gdbarch.c: Re-generate.
5675
ca0d0b52
AC
56762002-06-08 Andrew Cagney <ac131313@redhat.com>
5677
5678 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5679 generic_func_frame_chain_valid.
5680 * gdbarch.h, gdbarch.c: Re-generate.
5681 * blockframe.c (generic_func_frame_chain_valid): Only check
5682 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5683 passing FP to PC_IN_CALL_DUMMY.
5684 Fix PR gdb/360.
5685
76860b5f
AC
56862002-06-08 Andrew Cagney <ac131313@redhat.com>
5687
5688 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5689 (register_gdbarch_data): Initialize init_p.
5690 (gdbarch_data): Initialize data pointer using the init function.
5691 (init_gdbarch_data): Delete function.
5692 (gdbarch_update_p): Update.
5693 (initialize_non_multiarch): Update.
5694 (struct gdbarch): Add field initialized_p.
5695 * gdbarch.h, gdbarch.c: Re-generate.
5696
8dda9770
ML
56972002-06-07 Michal Ludvig <mludvig@suse.cz>
5698
5699 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5700 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5701 better do the things actually here.
5702 * x86-64-tdep.c (x86_64_register_name2nr): New.
5703 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5704 (x86_64_gdbarch_init): Respect the above change.
5705 * x86-64-tdep.h (x86_64_register_name2nr)
5706 (x86_64_register_nr2name): Add prototypes.
5707 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5708
3d79a47c
MS
57092002-06-06 Michael Snyder <msnyder@redhat.com>
5710
7bd91a28
MS
5711 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5712 Delete extra braces and re-indent.
5713 (d10v_store_return_value): Char return values
3d79a47c
MS
5714 must be shifted over by one byte in R0.
5715 (d10v_extract_return_value): Delete extra braces, re-indent.
5716
095a4c96
EZ
57172002-06-06 Elena Zannoni <ezannoni@redhat.com>
5718
5719 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5720 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5721 (d10v_integer_to_address): Rewrite.
5722 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5723 the d10v specific functions which take care of converting to the
5724 correct space.
5725
e8a77ca4
EZ
57262002-06-06 Elena Zannoni <ezannoni@redhat.com>
5727
5728 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5729 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5730
4f2e4a4f
AC
57312002-06-02 Andrew Cagney <ac131313@redhat.com>
5732
5733 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5734 includes.
5735 * config/tm-linux.h: Ditto.
5736 * config/alpha/tm-alphalinux.h: Ditto.
5737 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5738 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5739 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5740 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5741 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5742 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5743 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5744 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5745 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5746 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5747 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5748 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5749 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5750 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5751 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5752 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5753 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5754 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5755 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5756 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5757 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5758 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5759 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5760 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5761 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5762 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5763 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5764 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5765 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5766 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5767 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5768 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5769 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5770 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5771 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5772 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5773 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5774
ae2ab2ce
AS
57752002-05-04 Aidan Skinner <aidan@velvet.net>
5776
5777 * ada-exp.tab.c: New file
5778 * ada-exp.y: New file
5779 * ada-lang.c: New file
5780 * ada-lang.h: New file
5781 * ada-lex.c: New file
5782 * ada-lex.l: New file
5783 * ada-tasks.c: New file
5784 * ada-typeprint.c: New file
5785 * ada-valprint.c: New file
5786
0ddd0135
JT
57872002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5788
5789 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5790 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5791
750fbacc
JT
57922002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5793
5794 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5795 insetead of ppc-linux-tdep.o.
5796 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5797 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5798
df94e18a
AC
57992002-06-02 Andrew Cagney <ac131313@redhat.com>
5800
5801 2002-05-07 Christian Groessler <chris@groessler.org>
5802 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5803 bit register contents for little endian hosts.
5804
1a38ab75
AC
58052002-06-01 Andrew Cagney <ac131313@redhat.com>
5806
5807 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5808 any maintainer.
5809
8b1632ac
AC
58102002-06-01 Andrew Cagney <ac131313@redhat.com>
5811
5812 * gdbarch.h: Regenerate.
5813
627054c8
AC
58142002-06-01 Andrew Cagney <ac131313@redhat.com>
5815
5816 * MAINTAINERS: Add everyone to write-after-approval list.
5817
4f460812
AC
58182002-06-01 Andrew Cagney <ac131313@redhat.com>
5819
5820 * stack.c (frame_info): Use frame_register_unwind instead of
5821 saved_regs. Mention when the SP is on the stack or in a register.
5822
5823 * frame.h (frame_register_unwind_ftype): Define. Document.
5824 (struct frame_info): Add field register_unwind and
5825 register_unwind_cache.
5826 (frame_register_unwind): Declare.
5827 (generic_unwind_get_saved_register): Declare.
5828
5829 * frame.c (frame_register_unwind): New function.
5830 (generic_unwind_get_saved_register): New function.
5831
5832 * blockframe.c (generic_call_dummy_register_unwind): New function.
5833 (frame_saved_regs_register_unwind): New function.
5834 (set_unwind_by_pc): New function.
5835 (create_new_frame): New function.
5836 (get_prev_frame): New function.
5837
de888f76
AC
58382002-05-30 Andrew Cagney <ac131313@redhat.com>
5839
5840 * a29k-share/: Delete directory.
5841 * remote-vx29k.c: Delete file.
5842
2f2c3626
JT
58432002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5844
5845 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5846 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5847
9ce5c36a
JT
58482002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5849
5850 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5851 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5852 (sparc64nbsd-nat.o)
5853 (sparcnbsd-nat.o)
5854 (sparcnbsd-tdep.o): New dependency lists.
5855 * NEWS: Note new UltraSPARC NetBSD native configuration.
5856 * configure.host (sparc64-*-netbsd*): New host.
5857 * configure.tgt (sparc-*-netbsdelf*)
5858 (sparc-*-netbsd*): Set gdb_target to nbsd.
5859 (sparc64-*-netbsd*): New target.
5860 * sparc64nbsd-nat.c: New file.
5861 * sparcnbsd-nat.c: New file.
5862 * sparcnbsd-tdep.c: New file.
5863 * sparcnbsd-tdep.h: New file.
5864 * config/sparc/nbsd.mt: New file.
5865 * config/sparc/nbsd64.mh: New file.
5866 * config/sparc/nbsd64.mt: New file.
5867 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5868 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5869 (HOST_IPC): Remove.
5870 * config/sparc/nbsdaout.mt: Remove.
5871 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5872 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5873 (HOST_IPC): Remove.
5874 * config/sparc/nbsdelf.mt: Remove.
5875 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5876 sparc-nat.c compatiblity defines.
5877 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5878 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5879 * config/sparc/tm-nbsd64.h: New file.
5880 * config/sparc/tm-nbsdaout.h: Remove.
5881 * config/sparc/xm-nbsd.h: Remove.
5882
ef3cf062
JT
58832002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5884
5885 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5886 * sparc-tdep.c: Include osabi.h.
5887 (gdbarch_tdep): Add osabi member.
5888 (_initialize_sparc_tdep): Use gdbarch_register.
5889 (sparc_gdbarch_init): Use generic OS ABI framework.
5890 (sparc_dump_tdep): New function.
5891
ee8ff470
KB
58922002-05-30 Kevin Buettner <kevinb@redhat.com>
5893
5894 * corefile.c (do_captured_read_memory_integer): Return non-zero
5895 result.
5896 (safe_read_memory_integer): Copy result of memory read when
5897 status is non-zero. Also, add comments.
5898
7b112f9c
JT
58992002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5900
5901 * Makefile.in (ppc_tdep_h): Define.
5902 (ppc-linux-nat.o)
5903 (ppc-linux-tdep.o)
5904 (rs6000-tdep.o): Use $(ppc_tdep_h).
5905 (ppc-sysv-tdep.o)
5906 (ppcnbsd-nat.o)
5907 (ppcnbsd-tdep.o): New dependency lists.
5908 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5909 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5910 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5911 (ppc_sysv_abi_broken_use_struct_convention)
5912 (ppc_sysv_abi_use_struct_convention)
5913 (ppc_sysv_abi_push_arguments): Move to...
5914 * ppc-sysv-tdep.c: ...here.
5915 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5916 * rs6000-tdep.c (process_note_abi_tag_sections)
5917 (get_elfosabi): Remove.
5918 (rs6000_gdbarch_init): Use generic OS ABI framework.
5919 (rs6000_dump_tdep): New function.
5920 (_initialize_rs6000_tdep): Use gdbarch_register.
5921 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5922 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5923 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5924 of ppc-linux-tdep.o.
5925 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5926 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5927 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5928 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5929 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5930 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5931
480dd42a
JB
59322002-05-29 Jim Blandy <jimb@redhat.com>
5933
5934 * macroscope.c (default_macro_scope): Put `void' in empty argument
5935 list.
5936
4182591f
AC
59372002-05-29 Andrew Cagney <ac131313@redhat.com>
5938
5939 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5940 * arch-utils.c: Include "sim-regno.h".
5941 * gdbarch.sh: Don't include "sim-regno.h".
5942 * gdbarch.h, gdbarch.c: Regenerate.
5943 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5944 here.
5945 * arch-utils.h (legacy_register_sim_regno): To here.
5946 * remote-sim.c (legacy_register_sim_regno): Move function from
5947 here.
5948 * arch-utils.c (legacy_register_sim_regno): To here.
5949
8238d0bf
AC
59502002-05-28 Andrew Cagney <ac131313@redhat.com>
5951
5952 * sim-regno.h: New file.
5953 * Makefile.in (sim_regno_h): Define.
5954 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5955 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5956 (legacy_register_sim_regno): New function.
5957 (one2one_register_sim_regno): New function.
5958 (gdbsim_fetch_register): Rewrite.
5959 (gdbsim_store_register): Only store a register when
5960 REGISTER_SIM_REGNO is valid.
5961 * d10v-tdep.c: Include "sim-regno.h".
5962 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5963 (d10v_ts3_register_sim_regno): Ditto.
5964 * gdbarch.sh: Include "sim-regno.h".
5965 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5966 * gdbarch.h, gdbarch.c: Regenerate.
5967 * arch-utils.h (default_register_sim_regno): Delete declaration.
5968 * arch-utils.c (default_register_sim_regno): Delete function.
5969
485721b1
JT
59702002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5971
5972 * ppcnbsd-nat.c: Rewrite.
5973 * ppcnbsd-tdep.c: New file.
5974 * ppcnbsd-tdep.h: New file.
5975 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5976 solib.o, and solib-svr4.o.
5977 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5978 nbsd-tdep.o, and corelow.o.
5979
697f244d
AC
59802002-05-28 Andrew Cagney <ac131313@redhat.com>
5981
5982 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5983 `tr' and `sed'. Mention that `broken' targets are not expected to
5984 build.
5985
f08caad1 59862002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5987
5988 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5989 Let PC point right after the prologue before looking up symbols.
5990
3139facc
MH
59912002-05-27 Martin M. Hunt <hunt@redhat.com>
5992
5993 * i386-tdep.c (i386_register_virtual_type): Return
5994 builtin_type_vec128i for SSE registers.
5995
5996 * gdbtypes.h (builtin_type_vec128i): Declare.
5997
5998 * gdbtypes.c (build_builtin_type_vec128i): New function.
5999 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6000 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6001 (build_gdbtypes): Initialize new builtin vector types.
6002 (_initialize_gdbtypes): Register new vector types with gdbarch.
6003
6e3ba3b8
JT
60042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6005
6006 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6007 since it has been multi-arch'd.
6008 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6009 Move Alpha and VAX multi-arch news entries to same section
6010 as other multi-arch news.
6011
93d5585d
JT
60122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6013
6014 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6015 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6016 static. Rename some register numbers to put them in ns32k-tdep
6017 private namespace.
6018 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6019 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6020 functions.
6021 (_initialize_ns32k_tdep): Use gdbarch_register.
6022 * ns32k-tdep.h: New file.
6023 * ns32knbsd-tdep.c: New file.
6024 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6025 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6026 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6027 REGISTER_BYTES, REGISTER_BYTE): Remove.
6028 * config/ns32k/tm-ns32k.h: New file.
6029 * config/ns32k/tm-umax.h: Remove.
6030
efb2c70e
JT
60312002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6032
6033 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6034 ns32k_store_struct_return, ns32k_extract_return_value,
6035 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6036 functions.
6037 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6038 ns32k_saved_pc_after_call.
6039 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6040 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6041 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6042 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6043 ns32k_extract_struct_value_address.
6044
7bcc927b
JT
60452002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6046
6047 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6048 ns32k_fix_call_dummy): New.
6049 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6050 ns32k_call_dummy_words.
6051 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6052 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6053 CALL_DUMMY_NARGS): Remove.
6054 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6055
78f9d765
JT
60562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6057
6058 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6059 ns32k_frame_saved_pc, ns32k_frame_args_address,
6060 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6061 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6062 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6063 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6064 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6065 (BREAKPOINT): Remove..
6066 (FRAME_CHAIN): Define as ns32k_frame_chain.
6067 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6068 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6069 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6070 (FRAME_FIND_SAVED_REGS): Remove.
6071 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6072 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6073 (POP_FRAME): Define as ns32k_pop_frame.
6074
f2c762e0
JT
60752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6076
6077 * ns32k-tdep.c (ns32k_register_byte_32082,
6078 ns32k_register_byte_32382, ns32k_register_raw_size,
6079 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6080 functions.
6081 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6082 ns32k_register_byte_32382.
6083 * config/ns32k/tm-umax.h: Update copyright years.
6084 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6085 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6086 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6087 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6088 (ns32k_get_enter_addr): Fix prototype.
6089
af137673
JT
60902002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6091
6092 * ns32k-tdep.c: Update copyright years.
6093 (ns32k_register_name_32082): New function.
6094 (ns32k_register_name_32382): Ditto.
6095 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6096 (REGISTER_NAME): Define as ns32k_register_name_32382.
6097 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6098 (REGISTER_NAME): Define as ns32k_register_name_32082.
6099
a8bc7b56
JB
61002002-05-24 Jim Blandy <jimb@redhat.com>
6101
6102 * dwarf2read.c (free_line_header): Use xfree, not free.
6103
83a45910
JT
61042002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6105
6106 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6107 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6108
0db71247
AC
61092002-05-23 Andrew Cagney <ac131313@redhat.com>
6110
6111 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6112
b9e5e4dd
AC
61132002-05-23 Andrew Cagney <ac131313@redhat.com>
6114
6115 From Ross Alexander at NEC Europe:
6116 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6117
de530e84
MS
61182002-05-23 Michael Snyder <msnyder@redhat.com>
6119
6120 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6121 for input, rather than parse_and_eval_address.
6122
b91b96f4
AC
61232002-05-23 Andrew Cagney <ac131313@redhat.com>
6124
6125 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6126 * Makefile.in (sim_d10v_h): Update definition.
6127
8b279e7a
AC
61282002-05-24 Andrew Cagney <cagney@redhat.com>
6129
6130 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6131 change `2002-05-22 Michael Snyder' below.
6132 (d10v_push_arguments): Ditto.
6133 (d10v_extract_return_value): Ditto.
6134
0a3d0425
JB
61352002-05-23 Jim Blandy <jimb@redhat.com>
6136
6137 * macrotab.c (check_for_redefinition): Don't complain if the new
6138 definition is the same as the previous one. Take more arguments
6139 to allow the comparison.
6140 (macro_define_object, macro_define_function): Pass more arguments
6141 to check_for_redefinition.
6142
78eac43e
MS
61432002-05-22 Michael Snyder <msnyder@redhat.com>
6144
6145 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6146 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6147 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6148 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6149 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6150 Add a temp variable to save a call (and a memory read).
6151 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6152 if possible (so that PC_IN_CALL_DUMMY will work).
6153
9bc1edb8
CV
61542002-05-22 Corinna Vinschen <vinschen@redhat.com>
6155
6156 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6157
005ef3d2
ML
61582002-05-22 Michal Ludvig <mludvig@suse.cz>
6159
6160 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6161 fde->cie_ptr.
6162 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6163 (dwarf2_build_frame_info): Add offset to fde->initial_location
6164 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6165 (execute_stack_op): Change type of 'result' from ULONGEST to
6166 CORE_ADDR.
005ef3d2 6167
fcf4f891
JT
61682002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6169
6170 * config/alpha/tm-nbsd.h: Include solib.h.
6171
cfef91e4
JT
61722002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6175 assumptions about the host's byte order.
6176
9964235a
JT
61772002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6178
6179 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6180 to dependency list.
6181 * alphanbsd-tdep.c: Include solib-svr4.h.
6182 * shnbsd-tdep.c: Ditto.
6183
9eeef8ef
JT
61842002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6185
6186 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6187 nbsd-tdep.h to dependency list.
6188 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6189 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6190 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6191 nbsdaout.mh and nbsdelf.mh consistently.
6192 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6193 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6194 nbsdaout.mt and nbsdelf.mh consistently.
6195 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6196 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6197 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6198 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6199 a.out shared library stuff from here...
6200 * config/nm-nbsdaout.h: ...to here.
6201 * config/tm-nbsd.h: Remove.
6202 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6203 * config/arm/nbsd.mh: Remove.
6204 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6205 nbsd-tdep.o.
6206 * config/arm/nbsdaout.mh: New file.
6207 * config/arm/nbsdelf.mh: New file.
6208 * config/arm/nm-nbsdaout.h: New file.
6209 * config/i386/nbsd.mh: Remove.
6210 * config/i386/nbsd.mt: Remove.
6211 * config/i386/nbsdaout.mh: New file.
6212 * config/i386/nbsdaout.mt: New file.
6213 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6214 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6215 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6216 i386_register_u_addr): Remove.
6217 * config/i386/nm-nbsdaout.h: New file.
6218 * config/i386/nm-nbsdelf.h: Remove.
6219 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6220 (USE_STRUCT_CONVENTION): Remove.
6221 * config/i386/tm-nbsdaout.h: New file.
6222 * config/i386/tm-nbsdelf.h: Remove.
6223 * config/m68k/nbsd.mh: Remove.
6224 * config/m68k/nbsd.mt: Remove.
6225 * config/m68k/nbsdaout.mh: New file.
6226 * config/m68k/nbsdaout.mt: New file.
6227 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6228 * config/m68k/nm-nbsdaout.h: New file.
6229 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6230 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6231 * config/ns32k/nbsd.mh: Remove.
6232 * config/ns32k/nbsd.mt: Remove.
6233 * config/ns32k/nbsdaout.mh: New file.
6234 * config/ns32k/nbsdaout.mt: New file.
6235 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6236 * config/ns32k/nm-nbsdaout.h: New file.
6237 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6238 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6239 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6240 (SVR4_SHARED_LIBS): Remove.
6241 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6242 * config/sparc/nbsd.mh: Remove.
6243 * config/sparc/nbsd.mt: Remove.
6244 * config/sparc/nbsdaout.mh: New file.
6245 * config/sparc/nbsdaout.mt: New file.
6246 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6247 * config/sparc/nbsdelf.mt: New file.
6248 * config/sparc/nm-nbsdaout.h: New file.
6249 * config/sparc/nm-nbsdelf.h: Remove.
6250 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6251 * config/sparc/tm-nbsdaout.h: New file.
6252
257ce470
JT
62532002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6256 mipsnbsd-tdep.c
6257 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6258
76a6d5fe
JT
62592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6260
6261 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6262 shnbsd-nat.c.
6263 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6264
45888261
JT
62652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6266
6267 * NEWS: Note new MIPS NetBSD native configuration.
6268 * configure.host (mips*-*-netbsd*): New host.
6269 * configure.tgt (mips*-*-netbsd*): New target.
6270 * mipsnbsd-nat.c: New file.
6271 * mipsnbsd-tdep.c: New file.
6272 * mipsnbsd-tdep.h: New file.
6273 * config/mips/nbsd.mh: New file.
6274 * config/mips/nbsd.mt: New file.
6275 * config/mips/nm-nbsd.h: New file.
6276 * config/mips/tm-nbsd.h: New file.
6277
70f80edf
JT
62782002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6279
6280 * Makefile.in (SFILES): Add osabi.c.
6281 (COMMON_OBS): Add osabi.o.
6282 (osabi.o): New dependency list.
6283 * osabi.c: New file.
6284 * osabi.h: New file.
6285 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6286
6287 * Makefile.in (alpha_tdep_h): Define and use instead of
6288 alpha-tdep.h.
6289 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6290 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6291 Remove.
6292 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6293 * alpha-tdep.h: Include osabi.h.
6294 (alpha_abi): Remove.
6295 (gdbarch_tdep): Use generic OS ABI framework.
6296 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6297 gdbarch_register_osabi.
6298 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6299 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6300 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6301
6302 * Makefile.in (sh_tdep_h): Add osabi.h.
6303 * sh-tdep.h (sh_osabi): Remove.
6304 (gdbarch_tdep): Use generic OS ABI framework.
6305 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6306 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6307 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6308 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6309
6310 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6311 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6312 gdbarch_register_osabi.
6313 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6314 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6315 (get_elfosabi): Rename to...
6316 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6317 ABI framework support routines.
6318 (arm_gdbarch_init): Use generic OS ABI framework.
6319 (arm_dump_tdep): Likewise.
6320 (_initialize_arm_tdep): Likewise.
6321 * arm-tdep.h: Include osabi.h.
6322 (arm_abi): Remove.
6323 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6324 osabi member.
6325 (arm_gdbarch_register_os_abi): Remove prototype.
6326 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6327 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6328
6329 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6330 * mips-tdep.c: Include osabi.h.
6331 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6332 OS ABI framework.
6333
d194345b
KH
63342002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6335
6336 * h8300-tdep.c: Fix formatting.
6337
70c6b0d1
EZ
63382002-05-20 Elena Zannoni <ezannoni@redhat.com>
6339
6340 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6341 printing vector registers.
6342
165b8e33
AC
63432002-05-19 Andrew Cagney <ac131313@redhat.com>
6344
6345 From Fernando Nasser:
6346 * remote.c (remote_async_open_1): Re-throw the exception when the
6347 connection fails.
6348 (remote_cisco_open): Ditto.
6349 (remote_open_1): Ditto.
6350
36918e70
AC
63512002-05-19 Andrew Cagney <ac131313@redhat.com>
6352
6353 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6354 (remote_start_remote): Add uiout parameter. Pass through to
6355 remote_start_remote_dummy.
6356 (remote_open_1): Use catch_exception instead of catch_errors.
6357 (remote_async_open_1): Ditto.
6358 (remote_cisco_open): Ditto.
6359
ae44c0c4
AC
63602002-05-19 Andrew Cagney <ac131313@redhat.com>
6361
6362 * remote.c (remote_start_remote): Replace PTR with void pointer.
6363 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6364 static.
6365
8efe637d
AC
63662002-05-18 Andrew Cagney <ac131313@redhat.com>
6367
6368 * gdb_indent.sh: Allow the script to be run in the sim directory.
6369
2f1b5984
MK
63702002-05-18 Mark Kettenis <kettenis@gnu.org>
6371
f0f625e2
MK
6372 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6373 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6374
2f1b5984
MK
6375 * corelow.c (core_open): Only call set_gdbarch_from_file if
6376 exec_bfd is NULL.
6377
fc974602
AV
63782002-05-17 Andrey Volkov <avolkov@transas.com>
6379
6380 * h8300-tdep.c: Add support of EXR register
6381 * config/h8300/tm-h8300.h: Ditto.
6382
906709f4
AV
63832002-05-17 Andrey Volkov <avolkov@transas.com>
6384
6385 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6386
6e591d68
AV
63872002-05-17 Andrey Volkov <avolkov@transas.com>
6388
6389 * h8300-tdep.c: Change literal regnums to REGNO.
6390
84f0252a
JB
63912002-05-17 Jim Blandy <jimb@redhat.com>
6392
e0e9281e
JB
6393 * NEWS: Note addition of macro support.
6394
84f0252a
JB
6395 Expand preprocessor macros in C expressions.
6396 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6397 (scan_macro_expansion, scanning_macro_expansion,
6398 finished_macro_expansion): New function declarations.
6399 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6400 variable declarations.
6401 * parser-defs.h (expression_context_pc): New declaration.
6402 * parse.c (expression_context_pc): New variable.
6403 (parse_exp_1): Set expression_context_pc, as well as
6404 expression_context_block.
6405 * c-exp.y (yylex): If we're not already reading the result of a
6406 macro expansion, try to macro-expand the next token. When we're
6407 done scanning a macro expansion, switch back to the mainline text.
6408 Commas and `if's in a macro's expansion don't terminate the input.
6409 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6410 (macro_original_text, macro_expanded_text,
6411 expression_macro_lookup_func, expression_macro_lookup_baton): New
6412 variables.
6413 (scan_macro_expansion, scanning_macro_expansion,
6414 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6415 c_preprocess_and_parse): New functions.
6416 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6417 c_preprocess_and_parse, instead of c_parse.
6418 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6419 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6420
1c509ca8
JR
6421Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6422
6423 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6424 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6425 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6426
2250ee0c
CV
64272002-05-17 Corinna Vinschen <vinschen@redhat.com>
6428
6429 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6430
ab3b8126
JT
64312002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6432
6433 * Makefile.in (sh_tdep_h): Define and use.
6434 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6435 register enum): Move to...
6436 * * sh-tdep.h: ...here.
6437 * sh-tdep.c: Include sh-tdep.h.
6438 * sh3-rom.c: Likewise.
6439 * shnbsd-tdep.c: Likewise.
6440
ed9d4749
MS
64412002-05-16 Michael Snyder <msnyder@redhat.com>
6442
6443 * arm-tdep.c: Spelling fix in comment.
6444
2e276125
JB
64452002-05-16 Jim Blandy <jimb@redhat.com>
6446
6821892e
JB
6447 Add commands for manually expanding macros and showing their
6448 definitions.
6449 * macrocmd.c, macroscope.c, macroscope.h: New files.
6450 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6451 (macroscope_h): New variable.
6452 (HFILES_NO_SRCDIR): Add macroscope.h.
6453 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6454 (macroscope.o, macrocmd.o): New rules.
6455
2e276125
JB
6456 Teach the Dwarf 2 reader to read macro information.
6457 * dwarf2read.c: #include "macrotab.h".
6458 (dwarf_macinfo_buffer): New variable.
6459 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6460 dwarf_macinfo_size.
6461 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6462 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6463 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6464 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6465 dwarf2_macro_spaces_in_definition): New complaints.
6466 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6467 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6468 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6469 the partial symbol table.
6470 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6471 from what's recorded in the partial symbol table.
6472 (read_file_scope): If the compilation unit has a
6473 `DW_AT_macro_info' attribute, read its macro information.
6474 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6475
2f53fe6c
DJ
64762002-05-16 Daniel Jacobowitz <drow@mvista.com>
6477
6478 Fix PR gdb/546
6479 * ser-tcp.c: Don't include <netinet/udp.h>.
6480
2be99286
SC
64812002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6482
6483 * MAINTAINERS: Update my email address.
6484
c9af212b 64852002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6486
6487 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6488 include file of the same name.
6489
bf5f1a52
CV
64902002-05-16 Corinna Vinschen <vinschen@redhat.com>
6491
6492 * configure.tgt: Mark v850 as multi-arched.
6493 * config/v850/tm-v850.h: Remove file.
6494 * config/v850/v850.mt: Eliminate TM_FILE.
6495
435e042a
CV
64962002-05-16 Corinna Vinschen <vinschen@redhat.com>
6497
6498 * v850-tdep.c: Full multi-arch.
6499 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6500 Define GDB_MULTI_ARCH to 2.
6501
9819c6c8
PM
65022002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6503
6504 * p-exp.y (current_type): New static variable.
6505 Carries the type of the expression at the position that is parsed.
6506 (push_current_type, pop_current_type): Two new functions. Used
6507 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6508 (search_field): New static variable. Set to one after parsing a point
6509 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6510 (FIELDNAME): New token. After a point only a token belonging to
6511 current_type type definition is allowed.
6512 (all over token rules): reset and change current_type according
6513 to rules.
6514 (exp '[' rule): insert implicit array index field if
6515 exp is a pascal string type.
6516
3a06899a
CV
65172002-05-16 Corinna Vinschen <vinschen@redhat.com>
6518
6519 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6520 frame info. Use frame_info's saved_regs instead of matching member
6521 in extra_frame_info throughout.
6522 (v850_frame_init_saved_regs): New function.
6523 (v850_init_extra_frame_info): Move most functionality into
6524 v850_frame_init_saved_regs().
6525 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6526 (v850_frame_find_saved_regs): Remove declaration.
6527 (FRAME_FIND_SAVED_REGS): Remove definition.
6528 (v850_frame_init_saved_regs): Add declaration.
6529 (FRAME_INIT_SAVED_REGS): Add definition.
6530
6ed14b0e
CV
65312002-05-16 Corinna Vinschen <vinschen@redhat.com>
6532
6533 * v850-tdep.c: Begin multi-arch'ing v850.
6534 (v850_target_architecture_hook): Remove function.
6535 (v850_gdbarch_init): New function. Add code previously in
6536 v850_target_architecture_hook().
6537 (_initialize_v850_tdep): Don't set target_architecture_hook.
6538 Call register_gdbarch_init() instead.
6539
42725910
DJ
65402002-05-16 Daniel Jacobowitz <drow@mvista.com>
6541
6542 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6543 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6544 (fixup_class_method_type): Likewise.
6545
99d9066e
JB
65462002-05-15 Jim Blandy <jimb@redhat.com>
6547
6548 Add macro structures to GDB's symbol tables. Nobody puts anything
6549 in them yet.
6550 * symtab.h (struct symtab): New member: `macro_table'.
6551 * buildsym.h (pending_macros): New global variable.
6552 * buildsym.c: #include "macrotab.h".
6553 (buildsym_init): Initialize `pending_macros'.
6554 (end_symtab): If we found macro information while reading a CU's
6555 debugging info, do build a symtab structure for it. Make the
6556 symtab point to the macro information, and clear the
6557 `pending_macros' pointer which held it while we were reading the
6558 debug info.
6559 (really_free_pendings): Free any pending macro table.
6560 * objfiles.h (struct objfile): New member: `macro_cache'.
6561 * objfiles.c (allocate_objfile): Set allocate and free functions
6562 for the macro cache's objstack.
6563 (free_objfile): Empty the macro cache's obstack.
6564 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6565 set new allocate and free functions for it.
6566 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6567 free functions for the macro cache's objstack. (Why is this
6568 function building its own objfile?)
6569 * symmisc.c (print_objfile_statistics): Print statistics on the
6570 macro bcache.
6571 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6572
c899585b
RE
65732002-05-15 Richard Earnshaw <rearnsha@arm.com>
6574
6575 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6576 (REGISTER_U_ADDR): Delete definition.
6577 (arm_register_u_addr): Delete declaration.
6578
a6cdd8c5
RE
65792002-05-15 Richard Earnshaw <rearnsha@arm.com>
6580
6581 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6582 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6583
c97dcfc7
AC
65842002-05-14 Andrew Cagney <ac131313@redhat.com>
6585
6586 * regcache.c (register_valid): Revise comments refering to "Not
6587 available" and "unavailable".
6588 * frame.c (frame_register_read): Ditto.
6589 * findvar.c (value_of_register): Ditto.
6590
93021b7d
AC
65912002-05-15 Andrew Cagney <cagney@redhat.com>
6592
6593 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6594 (remote-sim.o): Update dependencies.
6595 (d10v-tdep.o): Specify dependencies.
6596 (sim_d10v_h): Define.
6597
a86bc61c
JB
65982002-05-14 Jim Blandy <jimb@redhat.com>
6599
6600 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6601 * macrotab.c (macro_lookup_inclusion, find_definition,
6602 new_macro_table): Same.
6603
6604 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6605 not `! strcmp ()'. This is a dubious improvement.
6606 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6607
6608 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6609 although it's not necessary, to avoid a warning.
6610
2fdde8f8
DJ
66112002-05-14 Daniel Jacobowitz <drow@mvista.com>
6612
6613 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6614 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6615 TYPE_INSTANCE_FLAGS.
6616 (struct main_type): New.
6617 (struct type): Move most members to struct main_type. Change
6618 cv_type and as_type to new type_chain member. Add instance_flags.
6619 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6620 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6621 (finish_cv_type): Remove prototype.
6622 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6623 Set TYPE_CHAIN.
6624 (alloc_type_instance): New function.
6625 (smash_type): New function.
6626 (make_pointer_type, make_reference_type, make_function_type)
6627 (smash_to_member_type, smash_to_method_type): Call smash_type.
6628 (make_qualified_type): New function.
6629 (make_type_with_address_space): Call make_qualified_type.
6630 (make_cv_type): Likewise.
6631 (finish_cv_type): Remove unnecessary function.
6632 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6633 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6634 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6635 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6636 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6637 * hpread.c (hpread_read_struct_type): Likewise.
6638 * stabsread.c (read_struct_type): Likewise.
6639
843fedf4
EZ
66402002-05-14 Elena Zannoni <ezannoni@redhat.com>
6641
6642 * configure.tgt: Add a catch all sh* target, for cases like
6643 sh[2,3,4]-elf and sh-hms.
6644
05a6c72c
KS
66452002-05-14 Keith Seitz <keiths@redhat.com>
6646
6647 * event-loop.c (create_file_handler): Don't do anything but
6648 update data when we are given a fd which we are already
6649 monitoring.
6650
5d085aaf
ML
66512002-05-14 Michal Ludvig <mludvig@suse.cz>
6652
6653 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6654 (update_context): Use __func__ in warnings.
6655
9db8d71f
DJ
66562002-05-14 Daniel Jacobowitz <drow@mvista.com>
6657
6658 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6659 and tcp_close to net_open and net_close.
6660 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6661 using UDP if requested. Don't try to disable Nagle on UDP
6662 sockets.
6663 * remote.c (remote_serial_open): New function. Warn about UDP.
6664 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6665
5dbc6baa
EZ
66662002-05-13 Elena Zannoni <ezannoni@redhat.com>
6667
6668 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6669
cc3023f7
EZ
66702002-05-13 Elena Zannoni <ezannoni@redhat.com>
6671
6672 * configure.tgt: Remove sh-hms target.
6673 * MAINTAINERS: Don't list sh-hms as a separate target.
6674
ec2bcbe7
JB
66752002-05-13 Jim Blandy <jimb@redhat.com>
6676
6677 Add first preprocessor macro-expansion files.
6678 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6679 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6680 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6681 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6682 (COMMON_OBS): Add macrotab.o, macroexp.o.
6683 (macroexp.o, macrotab.o): New rules.
6684
6d531722
AC
66852002-05-13 Andrew Cagney <ac131313@redhat.com>
6686
6687 * config/m88k/tm-m88k.h: Update copyright.
6688 (m88k_target_write_pc): Declare
6689 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6690 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6691 (SHIFT_INST_REGS): Update definition.
6692 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6693 using old definition of TARGET_WRITE_PC.
6694 * regcache.c (generic_target_write_pc): Delete code handling
6695 NNPC_REGNUM.
6696 * gdbarch.sh (NNPC_REGNUM): Delete.
6697 * gdbarch.h, gdbarch.c: Regenerate.
6698
3e3f2739
RE
66992002-05-13 Richard Earnshaw <rearnsha@arm.com>
6700
6701 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6702 builtin reg number.
6703
0004e5a2
DJ
67042002-05-13 Daniel Jacobowitz <drow@mvista.com>
6705
6706 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6707 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6708 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6709 access macros.
6710 * c-typeprint.c (cp_type_print_method_args): Likewise.
6711 (c_type_print_args): Likewise.
6712 * d10v-tdep.c (d10v_push_arguments): Likewise.
6713 (d10v_extract_return_value): Likewise.
6714 * expprint.c (print_subexp): Likewise.
6715 * gdbtypes.c (lookup_primitive_typename): Likewise.
6716 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6717 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6718 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6719 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6720 (TYPE_VECTOR): Likewise.
6721 * hpread.c (hpread_read_struct_type)
6722 (fix_static_member_physnames, fixup_class_method_type)
6723 (hpread_type_lookup): Likewise.
6724 * mdebugread.c (parse_symbol, parse_type): Likewise.
6725 * p-lang.c (is_pascal_string_type): Likewise.
6726 * valops.c (hand_function_call): Likewise.
6727 * x86-64-tdep.c (classify_argument): Likewise.
6728
6729 * hpread.c (hpread_read_function_type)
6730 (hpread_read_doc_function_type): Call replace_type.
6731 * dstread.c (create_new_type): Delete.
6732 (decode_dst_structure, process_dst_function): Call alloc_type.
6733 Use type access macros.
6734
dff95cc7
MK
67352002-05-12 Mark Kettenis <kettenis@gnu.org>
6736
6737 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6738 the're not supported by the current architecture.
6739 (i387_fill_fxsave): Likewise.
6740
bbcd32ad
FF
67412002-05-12 Fred Fish <fnf@redhat.com>
6742
6743 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6744 sect_index_xxx members to index the first slot in section_offsets
6745 if all of the section_offsets are zero.
6746
89cf4787
MK
67472002-05-12 Mark Kettenis <kettenis@gnu.org>
6748
6749 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6750 checked in with last change.
6751
1f77ffc5
MK
67522002-05-12 Mark Kettenis <kettenis@gnu.org>
6753
6754 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6755 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6756 config.sub.
6757
89b8b4a9
DJ
67582002-05-12 Daniel Jacobowitz <drow@mvista.com>
6759
6760 * Makefile.in: Update dependencies.
6761
14a5e767
AC
67622002-05-11 Andrew Cagney <ac131313@redhat.com>
6763
6764 * language.c (local_hex_string_custom): Simplify. Do not depend
6765 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6766
6767 * memattr.c (mem_info_command): Replace calls to
6768 longest_local_hex_string and longest_local_hex_string_custom.
6769 * buildsym.c (make_blockvector): Ditto.
6770 * solib.c (info_sharedlibrary_command): Ditto.
6771 * tracepoint.c (tracepoints_info): Ditto.
6772 * symtab.c (print_msymbol_info): Ditto.
6773
6774 * language.c (local_hex_string): Delete.
6775 (local_hex_string_custom): Delete.
6776 (longest_local_hex_string): Rename to local_hex_string.
6777 (longest_local_hex_string_custom): Rename to
6778 local_hex_string_custom.
6779 * language.h (local_hex_string): Change parameter type to LONGEST.
6780 (local_hex_string_custom): Ditto.
6781 (longest_local_hex_string): Delete declaration.
6782 (longest_local_hex_string_custom): Ditto.
6783
6784 * solib.c: Update copyright.
6785 * memattr.c: Update copyright.
6786
13d01224
AC
67872002-05-11 Andrew Cagney <ac131313@redhat.com>
6788
6789 * arch-utils.h (legacy_register_to_value): Declare.
6790 (legacy_value_to_register): Declare.
6791 (legacy_convert_register_p): Declare.
6792 * arch-utils.c (legacy_register_to_value): New function.
6793 (legacy_value_to_register): New function.
6794 (legacy_convert_register_p): New function.
6795
6796 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6797 (VALUE_TO_REGISTER): Define.
6798 (CONVERT_REGISTER_P): Define.
6799 * gdbarch.h, gdbarch.c: Regenerate.
6800
6801 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6802 VALUE_TO_REGISTER.
6803 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6804 CONVERT_REGISTER_P.
6805
4a1970e4
DJ
68062005-05-11 Daniel Jacobowitz <drow@mvista.com>
6807 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6808
6809 * Makefile.in: Update dependencies for valops.c.
6810 * valops.c: Include "gdb_assert.h".
6811 (typecmp): Skip THIS parameter to methods.
6812 (find_method_list): Remove static_memfuncp argument,
6813 update callers. Check for stub methods.
6814 (find_value_oload_method_list): Don't set *static_memfuncp.
6815 (find_overload_match): Don't check for stub methods. Assert
6816 that methods are not stubbed. Handle static methods.
6817 (value_find_oload_method_list): Remove static_memfuncp argument.
6818 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6819 to the argument list for static stub methods.
6820 * value.h (value_find_oload_method_list): Update prototype.
6821
b2e75d78
AC
68222002-05-11 Andrew Cagney <ac131313@redhat.com>
6823
6824 * arch-utils.h (generic_register_size): Declare.
6825 (generic_register_raw_size, generic_register_virtual_size): Delete
6826 declarations.
6827 * arch-utils.c (generic_register_raw_size): Delete.
6828 (generic_register_size): New function.
6829 (generic_register_virtual_size): Delete.
6830
6831 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6832 default generic_register_size.
6833 * gdbarch.h, gdbarch.c: Re-generate.
6834
6835 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6836 register_virtual_size.
6837 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6838 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6839
451fbdda
AC
68402002-05-11 Andrew Cagney <ac131313@redhat.com>
6841
6842 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6843 * gdbarch.h, gdbarch.c: Regenerate.
6844 * gnu-v3-abi.c: Update copyright.
6845 (vtable_address_point_offset): Update.
6846 (gnuv3_rtti_type): Update.
6847 (gnuv3_baseclass_offset): Update.
6848 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6849 (init_fetch_link_map_offsets): Update.
6850 * remote.c (get_remote_state): Update.
6851
6d2f5cea
DJ
68522002-05-11 Daniel Jacobowitz <drow@mvista.com>
6853
6854 * TODO: Remove value_headof/value_from_vtable_info comment.
6855 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6856 * values.c (value_headof, value_from_vtable_info): Delete.
6857 * value.h (value_from_vtable_info): Delete prototype.
6858
d2324da4
AC
68592002-05-11 Andrew Cagney <ac131313@redhat.com>
6860
6861 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6862 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6863 $(gdb_regex_h).
6864 (gdb_assert_h): Define.
6865 (gdb_wait_h): Define.
6866 (gdb_regex_h): Define.
6867
5c717440
DJ
68682002-05-11 Daniel Jacobowitz <drow@mvista.com>
6869
6870 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6871 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6872
6c7861b3
JT
68732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6874
6875 * nbsd-tdep.c: Fix comment.
6876
ea5bc2a6
JT
68772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6878
6879 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6880 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6881 (nbsd-tdep.o): New dependency list.
6882 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6883 nbsd-tdep.h.
6884 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6885 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6886 * nbsd-tdep.c: New file.
6887 * nbsd-tdep.h: New file.
6888 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6889 nbsd-tdep.h.
6890 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6891 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6892 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6893 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6894
b28da865
JT
68952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6896
6897 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6898 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6899 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6900 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6901 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6902 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6903
4b8ff1fa
JT
69042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6905
6906 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6907 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6908 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6909 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6910 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6911 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6912 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6913
dfe6eb1f
JT
69142002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6915
6916 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6917 fetch_elfcore_registers to...
6918 * i386nbsd-tdep.c: ...here.
6919 (i386nbsd_use_struct_convention): Rename to...
6920 (i386nbsd_aout_use_struct_convention): ...this.
6921 (i386nbsd_supply_reg): New function.
6922 (i386nbsd_fill_reg): New function.
6923 (fetch_core_registers): Use i386nbsd_supply_reg.
6924 (fetch_elfcore_registers): Likewise.
6925 (_initialize_i386nbsd_tdep): New function.
6926 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6927 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6928 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6929 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6930 (i386nbsd_aout_use_struct_convention): ...this.
6931
20cb8cda
JT
69322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6933
6934 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6935 (store_inferior_registers): Use shnbsd_fill_reg.
6936 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6937 sh_nbsd_supply_register): Collapse into...
6938 (shnbsd_supply_reg): ...this.
6939 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6940 (shnbsd_fill_reg): ...this.
6941 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6942 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6943 (fetch_core_registers): Use shnbsd_supply_reg.
6944 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6945 (sh_nbsd_core_fns): Rename to...
6946 (shnbsd_core_fns): ...this.
6947 (sh_nbsd_elfcore_fns): Rename to...
6948 (shnbsd_elfcore_fns): ...this.
6949 (sh_nbsd_init_abi): Rename to...
6950 (shnbsd_init_abi): ...this.
6951 (_initialize_sh_nbsd_tdep): Rename to...
6952 (_initialize_shnbsd_tdep): ...this.
6953 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6954 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6955 sh_nbsd_fill_register): Remove prototypes.
6956 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6957
e750d25e
JT
69582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6959
6960 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6961 (i387-nat.o): Delete dependency list.
6962 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6963 (x86-64-linux-nat.o): Likewise.
6964 * i387-nat.c: Delete file, moving contents to...
6965 * i387-tdep.c: ...here.
6966 * i387-nat.h: Rename...
6967 * i387-tdep.h: ...to this.
6968 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6969 * i386-linux-nat.c: Likewise.
6970 * i386bsd-nat.c: Likewise.
6971 * i386gnu-nat.c: Likewise.
6972 * i386nbsd-nat.c: Likewise.
6973 * i386v4-nat.c: Likewise.
6974 * x86-64-linux-nat.c: Likewise.
6975 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6976 * config/i386/go32.mh (NATDEPFILES): Likewise.
6977 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6978 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6979 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6980 * config/i386/linux.mh (NATDEPFILES): Likewise.
6981 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6982 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6983 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6984 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6985
1aee598a
JT
69862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6987
6988 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6989 (alphanbsd-nat.o): Remove dependency list.
6990 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6991 * alphanbsd-nat.c: Delete. Contents moved to...
6992 * alphanbsd-tdep.c: ...here.
6993 (_initialize_alphanbsd_tdep): Register core functions.
6994 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6995
12bcb0fe
JT
69962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6997
6998 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6999 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7000 (alphanbsd-nat.o): Likewise.
7001 (alphabsd-tdep.o): New dependency list.
7002 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7003 (fill_gregset): Use alphabsd_fill_reg.
7004 (supply_fpregset): Use alphabsd_supply_fpreg.
7005 (fill_fpregset): Use alphabsd_fill_fpreg.
7006 (fetch_inferior_registers): Use struct reg and struct fpreg
7007 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7008 and alphabsd_supply_fpreg.
7009 (store_inferior_registers): Use struct reg and struct fpreg
7010 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7011 and alphabsd_fill_fpreg.
7012 * alphabsd-tdep.c: New file.
7013 * alphabsd-tdep.h: New file.
7014 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7015 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7016 alphabsd_supply_fpreg.
7017 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7018 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7019
361d1df0
EC
70202002-05-11 Eric Christopher <echristo@redhat.com>
7021
7022 * mips-tdep.c (mips_double_register_type): Fix thinko.
7023 (mips_single_register_type): Ditto.
7024 * MAINTAINERS: Add self.
7025
92dd7cee
MK
70262002-05-11 Mark Kettenis <kettenis@gnu.org>
7027
7028 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7029 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7030 right thing on architectures with different endianness and/or
7031 integer sizes.
7032
e27da16d
JT
70332002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7034
7035 From Christian Limpach <chris@Pin.LU>
7036 * configure.in: Change sed expression which comments out
7037 NATDEPFILES to also comment out continuation lines.
7038 * configure: Regenerate.
7039
ddde02bd
EZ
70402002-05-10 Elena Zannoni <ezannoni@redhat.com>
7041
7042 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7043 big patch.
7044
1c922164
EZ
70452002-05-10 Elena Zannoni <ezannoni@redhat.com>
7046
7047 * sh-tdep.c: Include correct file.
7048
283150cd
EZ
70492002-05-10 Elena Zannoni <ezannoni@redhat.com>
7050
7051 New support for sh64-elf (sh5) target.
7052
7053 * configure.tgt: For sh64-elf target, default to sh-elf.
7054
7055 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7056 (struct gdbarch_tdep): Add new fields for new registers and ABI
7057 info.
361d1df0 7058
283150cd
EZ
7059 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7060 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7061 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7062 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7063 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7064 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7065 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7066 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7067 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7068 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7069 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7070 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7071 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7072 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7073 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7074 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7075 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7076 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7077 sign_extend, sh64_nofp_frame_init_saved_regs,
7078 sh64_init_extra_frame_info, sh64_get_saved_register,
7079 sh64_extract_struct_value_address, sh64_pop_frame,
7080 sh64_push_arguments, sh64_extract_return_value,
7081 sh64_store_return_value, sh64_show_media_regs,
7082 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7083 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7084 sh_sh64_register_virtual_type,
7085 sh_sh64_register_convert_to_virtual,
7086 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7087 sh64_register_read, sh64_pseudo_register_write,
7088 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7089 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7090 sh64_do_pseudo_register, sh_compact_do_registers_info,
7091 sh64_do_registers_info, sh_gdbarch_init): New functions.
7092
3117ed25
EZ
70932002-05-10 Elena Zannoni <ezannoni@redhat.com>
7094
7095 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7096
2654e6d4
DJ
70972002-05-10 Daniel Jacobowitz <drow@mvista.com>
7098
7099 * linespec.c (decode_line_1): Check for a double quote after
7100 a filename correctly.
7101
9ab3e532
JB
71022002-05-10 Jim Blandy <jimb@redhat.com>
7103
7104 Properly track the size of the current objfile's .debug_line section.
7105 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7106 (DWARF_LINE_SIZE): New macro.
7107 (dwarf2_build_psymtabs_hard): Record the line section's size in
7108 the partial symbol table.
7109 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7110 symbol table.
7111
126fa72d
PS
71122002-05-10 Petr Sorfa <petrs@caldera.com>
7113
7114 * ia64-tdep.c: Handle breakpoints on L instruction type
7115 in MLX instruction bundle by moving the breakpoint to
7116 the third slot (X instruction type) as L holds only data.
7117
1f077a3e
KB
71182002-05-10 Kevin Buettner <kevinb@redhat.com>
7119
7120 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7121 (process_one_symbol): Complain about discarding local symbols
7122 due to a misplaced N_LBRAC entry.
7123
8120c9d5 71242002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7125
7126 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7127 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7128 decrease the depth we are at, in the case of templates.
361d1df0 7129
67b2c998
DJ
71302002-05-09 Daniel Jacobowitz <drow@mvista.com>
7131
7132 * mips-tdep.c (mips_float_register_type): New function.
7133 (mips_double_register_type): New function.
7134 (mips_print_register): Use them.
7135 (do_fp_register_row): Likewise.
7136
fd326606
DJ
71372002-05-09 Daniel Jacobowitz <drow@mvista.com>
7138
6609d9af 7139 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7140 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7141 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7142
bef35864
MS
71432002-05-09 Michael Snyder <msnyder@redhat.com>
7144
7145 * remote-rdp.c (remote_rdp_can_run): Remove.
7146
c55a3f73
TT
71472002-05-09 Tom Tromey <tromey@redhat.com>
7148
7149 * jv-valprint.c (java_val_print): Handle `char' as a special case
7150 of TYPE_CODE_INT.
7151
b8d5e71d
MS
71522002-05-09 Michael Snyder <msnyder@redhat.com>
7153
7154 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7155 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7156 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7157 str r(0123),[sp,#nn].
361d1df0 7158 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7159 order-independent by placing it in a loop.
7160
e2cd42dd
MS
71612002-05-06 Michael Snyder <msnyder@redhat.com>
7162
7163 * stabsread.c (read_type): Add recognition for new attribute:
7164 "@V;" means that an array type is actually a vector.
7165 This is analogous to the vector flag that's been added to dwarf2.
7166
3ce1502b
MK
71672002-05-09 Mark Kettenis <kettenis@gnu.org>
7168
7169 * i386-tdep.h (i386_abi): New enum.
7170 (struct gdbarch_tdep): Replace os_ident member with abi.
7171 (i386_gdbarch_register_os_abi): New prototype.
7172 * i386-tdep.c (i386_abi_names): New array.
7173 (process_note_abi_tag_sections): Removed.
7174 (process_note_sections): New function.
7175 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7176 (struct i386_abi_handler): New struct.
7177 (i386_abi_handler_list): New variable.
7178 (i386_gdbarch_register_os_abi): New function.
7179 (i386_gdbarch_init): Adapt for the changes given above.
7180
084c156a
DJ
71812002-05-08 Daniel Jacobowitz <drow@mvista.com>
7182
7183 * gregset.h: Say "GNU/Linux".
7184
6599f021
EZ
71852002-05-08 Elena Zannoni <ezannoni@redhat.com>
7186
7187 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7188 (build_gdbtypes): Build builtin_type_v2_float.
7189 (_initialize_gdbtypes): Register new builtin type.
7190
40af4b0c
AC
71912002-05-08 Andrew Cagney <ac131313@redhat.com>
7192
7193 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7194 (clear_gdbarch_swap): New function.
7195 (initialize_non_multiarch): Call.
7196 (gdbarch_update_p): Before calling init(), swap out and clear the
7197 existing architecture.
7198 * gdbarch.c: Regenerate.
7199
4fe84f46
JT
72002002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7201
7202 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7203 alphanbsd-tdep.c.
7204
4015edd1
JT
72052002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7206
7207 * sh-nbsd-nat.c: Rename to...
7208 * shnbsd-nat.c: ...this.
7209 * sh-nbsd-tdep.c: Rename to...
7210 * shnbsd-tdep.c: ...this.
7211 * sh-nbsd-tdep.h: Rename to...
7212 * shnbsd-tdep.h: ...this.
7213 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7214 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7215
0e2bd219
RE
72162002-05-08 Richard Earnshaw <rearnsha@arm.com>
7217
7218 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7219 concatenation for command help messages.
7220
13a38d45
JT
72212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7222
7223 * NEWS: Note new sh*-*-netbsdelf* configuration.
7224 * configure.host: Set gdb_host_cpu to sh for all sh*.
7225 (sh*-*-netbsdelf*): New host.
7226 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7227 (sh*-*-netbsdelf*): New target.
7228 * sh-nbsd-nat.c: New file.
7229 * sh-nbsd-tdep.c: New file.
7230 * sh-nbsd-tdep.h: New file.
7231 * config/sh/nbsd.mh: New file.
7232 * config/sh/nbsd.mt: New file.
7233 * config/sh/nm-nbsd.h: New file.
7234 * config/sh/tm-nbsd.h: New file.
7235
d658f924
JT
72362002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7237
7238 * sh-tdep.c (sh_osabi_names): Declare.
7239 (process_note_abi_tag_sections): New function.
7240 (get_elfosabi): Ditto.
7241 (sh_gdbarch_register_os_abi): Ditto.
7242 (sh_dump_tdep): Ditto.
7243 _initialize_sh_tdep): Use gdbarch_register to register
7244 sh_gdbarch_init and sh_dump_tdep.
7245 * config/sh/tm-sh.h (sh_osabi): Declare.
7246 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7247
848cfffb
AC
72482002-05-07 Andrew Cagney <ac131313@redhat.com>
7249
7250 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7251 (thumb_scan_prologue): Ditto.
7252 (arm_find_callers_reg): Ditto.
7253 (arm_frame_chain): Ditto.
7254 (arm_init_extra_frame_info): Ditto.
7255 (arm_frame_saved_pc): Ditto.
7256 (arm_pop_frame): Ditto.
7257 (arm_push_return_address): New function.
7258 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7259 call_dummy_location, call_dummy_breakpoint_offset_p,
7260 call_dummy_breakpoint_offset, call_dummy_p,
7261 call_dummy_stack_adjust_p, call_dummy_words,
7262 sizeof_call_dummy_words, call_dummy_start_offset,
7263 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7264 call_dummy_address, push_return_address and push_dummy_frame for
7265 generic dummy frames.
7266
e7d717c0
JT
72672002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7268
7269 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7270 size computation for alloca.
7271 (sh_fp_frame_init_saved_regs): Likewise.
7272
7bbcf283
RE
72732002-05-07 Richard Earnshaw <rearnsha@arm.com>
7274
7275 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7276 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7277 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7278 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7279 * remote-rdp.c (remote_rdp_fetch_register): Use
7280 ARM_MAX_REGISTER_RAW_SIZE.
7281 (remote_rdp_store_register): Likewise.
7282
4657573b
ML
72832002-05-07 Michal Ludvig <mludvig@suse.cz>
7284
361d1df0 7285 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7286 added default labels to switch {} statements.
7287 * x86-64-tdep.c: Ditto.
7288 * x86-64-linux-nat.c: Ditto.
7289
010f3b2f
JT
72902002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7291
7292 * solib.h: Protect against multiple inclusion.
7293
debd256d
JB
72942002-05-06 Jim Blandy <jimb@redhat.com>
7295
9ab3e532
JB
7296 Add first preprocessor macro-expansion files.
7297 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7298 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7299 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7300 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7301 (COMMON_OBS): Add macrotab.o, macroexp.o.
7302 (macroexp.o, macrotab.o): New rules.
7303
debd256d
JB
7304 Separate the job of reading the line number info statement program
7305 header (...expialidocious) out into its own function.
7306 * dwarf2read.c (struct line_head, struct filenames, struct
7307 directories): Replace with...
7308 (struct line_header): New structure, containing the full
7309 contents of the statement program header, including the
7310 include directory and file name tables.
7311 (read_file_scope): If we have line number info, instead of just
7312 calling dwarf_decode_lines to do all the work, call
7313 dwarf_decode_line_header first to get a `struct line_header'
7314 containing the data in the statement program header, and then
7315 pass that to dwarf_decode_lines, which will pick up where that
7316 left off. Be sure to clean up the `struct line_header' object.
7317 (dwarf_decode_line_header, free_line_header, add_include_dir,
7318 add_file_name): New functions.
7319 (dwarf_decode_lines): Move all the code to read the statement
7320 program header into dwarf_decode_line_header. Take the line
7321 header it built as the first argument, instead of the offset to
7322 the compilation unit's line number info. Use the new `struct
7323 line_header' type instead of the old structures. No need to do
7324 cleanups here now, since we don't allocate anything.
7325 (dwarf2_statement_list_fits_in_line_number_section,
7326 dwarf2_line_header_too_long): New complaints.
7327
ac3aafc7
EZ
73282002-05-06 Elena Zannoni <ezannoni@redhat.com>
7329
7330 * gdbtypes.c (init_vector_type): New function.
7331 (build_builtin_type_vec128): Simplify the representation of SIMD
7332 registers.
7333 (build_gdbtypes): Initialize new builtin vector types.
7334 (_initialize_gdbtypes): Register new vector types with gdbarch.
7335 (builtin_type_v4_float, builtin_type_v4_int32,
7336 builtin_type_v8_int16, builtin_type_v16_int8,
7337 builtin_type_v2_int32, builtin_type_v4_int16,
7338 builtin_type_v8_int8): New (renamed) SIMD types.
7339
13e49980
MK
73402002-05-06 Mark Kettenis <kettenis@gnu.org>
7341
7342 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7343 (i387_fill_fxsave): Likewise.
7344
997b20b8
AO
73452002-05-05 Alexandre Oliva <aoliva@redhat.com>
7346
7347 * alpha-tdep.c (alpha_extract_return_value): Don't use
7348 non-constant array size in prototype.
7349
535c96ce
AC
73502002-05-04 Andrew Cagney <ac131313@redhat.com>
7351
7352 From Brian Taylor <briant at model dot com>:
7353 * ui-out.c (ui_out_field_core_addr): Use the function
7354 longest_local_hex_string_custom'to format addresses > 32 bits
7355 wide.
7356
7357 * ui-out.c (ui_out_field_core_addr): Update comment.
7358
bedfa57b
AC
73592002-05-04 Andrew Cagney <ac131313@redhat.com>
7360
7361 * stack.c (select_and_print_frame): Make static. Delete the
7362 parameter `level'.
7363 (func_command): Update call.
7364 (select_frame_command): Delete code computing the frame level.
7365 * frame.h (select_and_print_frame): Delete declaration.
7366
f621c63e
AC
73672002-05-04 Andrew Cagney <ac131313@redhat.com>
7368
7369 * sparc-tdep.c (sparc_get_saved_register): Comment why
7370 get_prev_frame call is safe.
7371
0f7d239c
AC
73722002-05-04 Andrew Cagney <ac131313@redhat.com>
7373
7374 * frame.h (select_frame): Delete level parameter.
7375 * stack.c (select_frame): Update. Use frame_relative_level to
7376 obtain the frame's level.
7377 (select_and_print_frame): Update call.
7378 (select_frame_command): Ditto.
7379 (up_silently_base): Ditto.
7380 (down_silently_base): Ditto.
7381 * ocd.c (ocd_start_remote): Ditto.
7382 * remote-rdp.c (remote_rdp_open): Ditto.
7383 * remote-mips.c (mips_initialize): Ditto.
7384 (common_open): Ditto.
7385 * remote-e7000.c (e7000_start_remote): Ditto.
7386 * m3-nat.c (select_thread): Ditto.
7387 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7388 (child_get_current_exception_event): Ditto.
7389 * varobj.c (varobj_create): Ditto.
7390 (varobj_update): Ditto.
7391 (c_value_of_root): Ditto.
7392 * tracepoint.c (finish_tfind_command): Ditto.
7393 * corelow.c (core_open): Ditto.
7394 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7395 * thread.c (info_threads_command): Ditto.
7396 (switch_to_thread): Ditto.
7397 * infrun.c (normal_stop): Ditto.
7398 (restore_selected_frame): Ditto.
7399 (restore_inferior_status): Ditto.
7400 * breakpoint.c (insert_breakpoints): Ditto.
7401 (watchpoint_check): Ditto.
7402 (bpstat_stop_status): Ditto.
7403 (do_enable_breakpoint): Ditto.
7404 * blockframe.c (flush_cached_frames): Ditto.
7405 (reinit_frame_cache): Ditto.
7406
71d6c7b1
AC
74072002-05-04 Andrew Cagney <ac131313@redhat.com>
7408
7409 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7410 maintainer.
7411
cda6c68a
JB
74122002-05-04 Jim Blandy <jimb@redhat.com>
7413
7414 * gdbtypes.c (replace_type): Doc fix.
7415
5c1c87f0
AC
74162002-05-04 Andrew Cagney <ac131313@redhat.com>
7417
7418 * valprint.c (strcat_longest): Delete commented out function.
7419 Update copyright.
7420
cd9bfe15
AC
74212002-05-04 Andrew Cagney <ac131313@redhat.com>
7422
7423 * MAINTAINERS: Mark a29k as deleted.
7424 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7425 Move new configurations to the top.
7426 * configure.tgt: Remove a29k.
7427 * config/a29k/tm-vx29k.h: Delete.
7428 * config/a29k/vx29k.mt: Delete.
7429 * config/a29k/tm-a29k.h: Delete.
7430 * config/a29k/a29k-udi.mt: Delete.
7431 * config/a29k/a29k.mt: Delete.
7432 * a29k-tdep.c: Delete.
7433 * remote-udi.c: Delete.
7434 * remote-mm.c: Delete.
7435 * remote-eb.c: Delete.
7436 * remote-adapt.c: Delete.
7437 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7438 * config/s390/s390x.mt: Ditto.
7439 * config/s390/s390.mt: Ditto.
7440 * config/sparc/sparclynx.mh: Ditto.
7441 * config/sparc/linux.mh: Ditto.
7442 * config/pa/hppaosf.mh: Ditto.
7443 * config/pa/hppabsd.mh: Ditto.
7444 * config/ns32k/nbsd.mt: Ditto.
7445 * config/mips/vr5000.mt: Ditto.
7446 * config/m68k/sun3os4.mh: Ditto.
7447 * config/m68k/nbsd.mt: Ditto.
7448 * config/m68k/m68klynx.mh: Ditto.
7449 * config/m32r/m32r.mt: Ditto.
7450 * config/i386/x86-64linux.mt: Ditto.
7451 * config/i386/nbsdelf.mt: Ditto.
7452 * config/i386/nbsd.mt: Ditto.
7453 * config/i386/i386lynx.mh: Ditto.
7454
bf0c5130
AC
74552002-05-04 Andrew Cagney <ac131313@redhat.com>
7456
7457 * target.c (debug_print_register): New function. Handle oversize
7458 registers.
7459 (debug_to_fetch_registers): Call.
7460 (debug_to_store_registers): Call.
7461
2ae1c2d2
JB
74622002-05-03 Jim Blandy <jimb@redhat.com>
7463
13a393b0
JB
7464 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7465 (read_type): Doc fix.
7466 * gdbtypes.c (replace_type): Doc fix.
7467
2ae1c2d2
JB
7468 * stabsread.c (multiply_defined_struct): New complaint.
7469 (read_struct_type): If the type we were passed isn't empty, or
7470 incomplete, don't read the new struct type into it; complain,
7471 and return the original type unchanged. Take a new `type_code'
7472 argument, which is the type code for the new type.
7473 (read_type): Rather than storing the type's type code here, pass
7474 it as an argument to read_struct_type, and let that take care of
7475 storing it. That way, we don't overwrite the original type code,
7476 so read_struct_type can use it to decide whether we're overwriting
7477 something we shouldn't.
7478 (complain_about_struct_wipeout): New function.
7479
8de9bdc4
AC
74802002-05-03 Andrew Cagney <ac131313@redhat.com>
7481
7482 * gdbarch.sh: Assert that gdbarch is non-NULL.
7483 * gdbarch.c: Regenerate.
7484
f773fdbb
JM
74852002-05-03 Jason Merrill <jason@redhat.com>
7486
7487 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7488 and return NULL.
7489
0e04a514
ML
74902002-05-03 Michal Ludvig <mludvig@suse.cz>
7491
7492 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7493 (x86_64_dwarf2gdb_regno_map_length),
7494 (x86_64_dwarf2_reg_to_regnum): Added.
7495 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7496 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7497 (_initialize_x86_64_tdep): Synced with the change above.
7498 (x86_64_skip_prologue): Reformulated message.
7499
065432a8
PM
75002002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7501
7502 * f-exp.y: Also use new prev_lexptr variable
7503 to improve error reporting. Based on Michael Snyder
7504 2002-04-24 dated patch to c-exp.y.
7505 * jv-exp.y: Likewise.
7506 * m2-exp.y: Likewise.
7507
a3162708
EZ
75082002-05-02 Elena Zannoni <ezannoni@redhat.com>
7509
7510 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7511 we are dealing with vectors.
7512
03620c38
PM
75132002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7514
7515 * config/m68k/tm-nbsd.h: Obvious fix,
7516 correct machine name.
7517
6604db2e
PM
75182002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7519
7520 * p-typeprint.c (pascal_type_print_base): Add support
7521 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7522
0906b739
PM
75232002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7524
7525 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7526 for fondamental pascal 'char' type.
7527
e2625b33
PM
75282002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7529
7530 * p-lang.h (is_pascal_string_type): Declaration changed,
7531 new sixth argument of type char ** added.
361d1df0 7532 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7533 changed. Args length_pos, length_size, string_pos, char_size
7534 can now be NULL. New argument arrayname set to the field
7535 name of the char array. Return value set to char array
7536 field index plus one.
361d1df0 7537 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7538 is_pascal_string_type function.
7539
cf17c188
AC
75402002-05-02 Andrew Cagney <cagney@redhat.com>
7541
7542 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7543 <cagney@redhat.com> change.
7544 * gdbarch.c: Regenerate.
7545
52bca491
AC
75462002-05-02 Andrew Cagney <cagney@redhat.com>
7547
7548 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7549 before probing for a new one. Detect errorenous gdbarch_init
7550 functions.
7551 * gdbarch.c: Regenerate.
7552
d5e72505
AC
75532002-05-01 Andrew Cagney <cagney@redhat.com>
7554
7555 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7556 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7557 * config/v850/tm-v850.h: Ditto. Update copyright.
7558
af566d9f
AC
75592002-04-30 Andrew Cagney <ac131313@redhat.com>
7560
7561 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7562 current_gdbarch.
7563
880d85fa
MS
75642002-04-30 Michael Snyder <msnyder@redhat.com>
7565
94c30b78
MS
7566 * arm-tdep.c: Whitespace clean-ups.
7567 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7568 should have been removed as part of 4/24 change.
7569
6f5987a6
KB
75702002-04-30 Kevin Buettner <kevinb@redhat.com>
7571
7572 * rs6000-tdep.c: Added comment describing how fpscr register
7573 numbers were chosen.
7574
1a113c93
MS
75752002-04-30 Michael Snyder <msnyder@redhat.com>
7576
7577 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7578
9a6f53fe
EZ
75792002-04-29 Elena Zannoni <ezannoni@redhat.com>
7580
7581 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7582 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7583 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7584
11ed25ac
KB
75852002-04-29 Kevin Buettner <kevinb@redhat.com>
7586
7587 From Louis Hamilton <hamilton@redhat.com>:
7588 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7589 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7590 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7591 not bfd-private xcoff data, to determine wordsize.
7592 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7593
ae232405
AC
75942002-04-29 Andrew Cagney <ac131313@redhat.com>
7595
7596 GDB 5.2 released from 5.2 branch.
7597
91fd20f7
ML
75982002-04-29 Michal Ludvig <mludvig@suse.cz>
7599
7600 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7601 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7602 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7603
2dc5091b
EZ
76042002-04-29 Elena Zannoni <ezannoni@redhat.com>
7605
7606 * rs6000-tdep.c (rs6000_extract_return_value,
7607 rs6000_store_return_value): Handle returning vectors.
7608 (rs6000_gdbarch_init): Use
7609 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7610 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7611 New function.
7612 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7613 vectors.
7614 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7615 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7616
2b9848d8
PM
76172002-04-24 Pierre Muller <ics.u-strasbg.fr>
7618
7619 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7620 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7621 with fprintf_unfiltered (gdb_stderr,...).
7622
f8d17dc5
PM
76232002-04-24 Pierre Muller <ics.u-strasbg.fr>
7624
7625 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7626 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7627 Replace fprintf (stderr,...
7628 with fprintf_unfiltered (gdb_stderr,....
7629 * remote-es.c: Likewise.
7630 * remote-os9k.c: Likewise.
7631 * remote-st.c: Likewise.
7632
2f2f1ad1
AS
76332002-04-28 Andreas Schwab <schwab@suse.de>
7634
7635 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7636 linux-proc.o and gcore.o.
7637
b6779aa2
AC
76382002-04-26 Michal Ludvig <mludvig@suse.cz>
7639
7640 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7641 code without frame pointers.
7642
7e57f5f4
AC
76432002-04-26 Andrew Cagney <ac131313@redhat.com>
7644
7645 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7646 ON_STACK is needed.
7647
2ceb85d0
BE
76482002-04-26 Ben Elliston <bje@redhat.com>
7649
7650 * target.c (do_xfer_memory): Correct reference to the new option
7651 "trust-readonly-sections".
7652
f5f8a009
EZ
76532002-04-26 Elena Zannoni <ezannoni@redhat.com>
7654
7655 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7656 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7657 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7658 vectors.
7659 (read_array_type): Record the fact that this array type is really a
7660 vector (i.e. are passed in by value).
7661
5868c862
JT
76622002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7663
7664 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7665 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7666 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7667 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7668 * alpha-linux-tdep.c: Include frame.h.
7669 (alpha_linux_sigcontext_addr): New function.
7670 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7671 alpha_linux_sigcontext_addr.
7672 * alpha-osf1-tdep.c: Include gdbcore.h.
7673 (alpha_osf1_sigcontext_addr): New function.
7674 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7675 alpha_osf1_sigcontext_addr.
7676 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7677 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7678
bfb01f37
AC
76792002-04-26 Andrew Cagney <ac131313@redhat.com>
7680
361d1df0 7681 * stack.c (selected_frame_level):
bfb01f37
AC
7682 (select_frame): Do not set selected_frame_level.
7683 * frame.h (selected_frame_level): Delete declaration.
7684
15813d3f
AC
76852002-04-26 Andrew Cagney <ac131313@redhat.com>
7686
7687 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7688 convert_from_func_ptr-addr when AIX / PowerOpen.
7689
6096c27a
AC
76902002-04-25 Andrew Cagney <ac131313@redhat.com>
7691
7692 * valops.c (hand_function_call): Call
7693 generic_save_call_dummy_addr.
7694 * frame.h (generic_save_call_dummy_addr): Declare.
7695 * blockframe.c (struct dummy_frame): Add fields call_lo and
7696 call_hi.
7697 (generic_find_dummy_frame): Check for PC in range call_lo to
7698 call_hi instead of entry_point_address.
7699 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7700 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7701 (generic_save_call_dummy_addr): New function.
7702
f510d44e
DM
77032002-04-24 David S. Miller <davem@redhat.com>
7704
7705 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7706 sparc_skip_prologue.
7707 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7708 information to find prologue when possible.
7709 (sparc_prologue_frameless_p): Call examine_prologue directly.
7710 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7711 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7712 second argument.
7713 (SKIP_PROLOGUE): Likewise.
7714
15d72a92
JT
77152002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7716
7717 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7718 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7719 indicate that the condition it was testing is always true.
7720 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7721 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7722 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7723
accc6d1f
JT
77242002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7725
7726 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7727 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7728 tdep->jb_pc and tdep->jb_elt_size.
7729 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7730 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7731 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7732 * alpha-nat.c (get_longjmp_target): Remove.
7733 (JB_ELEMENT_SIZE): Ditto.
7734 (JB_PC): Ditto.
7735 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7736 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7737 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7738 to alpha_get_longjmp_target.
7739 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7740 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7741 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7742
1bfdc549
AC
77432002-04-25 Andrew Cagney <ac131313@redhat.com>
7744
7745 * README: Update to GDB 5.2.
7746
1bd316f0
AC
77472002-04-25 Andrew Cagney <ac131313@redhat.com>
7748
7749 * gdbarch.sh (LC_ALL): Set to `c'.
7750
2e5ff58c
TR
77512002-04-25 Theodore A. Roth <troth@verinet.com>
7752
7753 * avr-tdep.c: Ran through gdb_indent.sh.
7754
e33ce519
TR
77552002-04-25 Theodore A. Roth <troth@verinet.com>
7756
7757 * MAINTAINERS: Add myself as AVR maintainer.
7758 * NEWS: Note new target avr.
7759
8818c391
TR
77602002-04-25 Theodore A. Roth <troth@verinet.com>
7761
7762 * Makefile.in: Add support for AVR target.
7763 * configure.tgt: Add support for AVR target.
7764 * avr-tdep.c: New file
7765 * config/avr/avr.mt: New file.
7766
79509c2d
TR
77672002-04-25 Theodore A. Roth <troth@verinet.com>
7768
7769 * MAINTAINERS: Add myself to write-after-approval.
7770
dac8068e
PM
77712002-04-24 Pierre Muller <ics.u-strasbg.fr>
7772
7773 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7774 with fprintf_unfiltered (gdb_stderr,....
7775
25bf3106
PM
77762002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7777
7778 Fix PR gdb/508.
7779 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7780
24467a86
PM
77812002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7782
7783 * p-exp.y: Also use new prev_lexptr variable
7784 to improve error reporting. Based on Michael Snyder
7785 2002-04-24 dated patch to c-exp.y.
7786
95b80706
JT
77872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7788
7789 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7790 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7791 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7792 to 0.
7793 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7794 and struct value.
7795 (FUNCTION_START_OFFSET): Remove.
7796 (BREAKPOINT): Ditto.
7797
e90cc612
JT
77982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7799
7800 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7801 * NEWS: Ditto.
7802
6c72f9f9
JT
78032002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7804
7805 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7806 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7807 alpha_linux_pc_in_sigtramp.
7808 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7809 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7810 alpha_osf1_pc_in_sigtramp.
7811 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7812 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7813 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7814 alphafbsd_pc_in_sigtramp.
7815 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7816 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7817 alphanbsd_pc_in_sigtramp.
7818 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7819 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7820
5e4f3379
JT
78212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7822
7823 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7824
da8ca43d
JT
78252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7826
7827 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7828 alphanbsd-tdep.c.
7829 (alphanbsd-nat.o): New dependency list.
7830 (alphanbsd-tdep.o): Ditto.
7831 * NEWS: Note new native NetBSD/alpha configuration.
7832 * alphanbsd-nat.c: New file.
7833 * alphanbsd-tdep.c: Ditto.
7834 * configure.host (alpha*-*-netbsd*): New host.
7835 * configure.tgt (alpha*-*-netbsd*): New target.
7836 * config/alpha/nbsd.mh: New file.
7837 * config/alpha/nbsd.mt: Ditto.
7838 * config/alpha/nm-nbsd.h: Ditto.
7839 * config/alpha/tm-nbsd.h: Ditto.
7840
36a6271d
JT
78412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7842
7843 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7844 (alpha-osf1-tdep.o): New dependency list.
7845 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7846 and skip_sigtramp_frame members.
7847 * alpha-linux-tdep.c: Include gdbcore.h.
7848 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7849 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7850 * alpha-osf1-tdep.c: New file.
7851 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7852 alpha-osf1-dep.c.
7853 (alpha_frame_past_sigtramp_frame): New function.
7854 (alpha_dynamic_sigtramp_offset): Ditto.
7855 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7856 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7857 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7858 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7859 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7860 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7861 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7862 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7863 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7864 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7865 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7866 to find_solib_trampoline_target.
7867 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7868 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7869 (SKIP_TRAMPOLINE_CODE): Remove.
7870 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7871 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7872 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7873 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7874 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7875 (PROC_SIGTRAMP_MAGIC): Ditto.
7876 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7877 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7878 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7879 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7880 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7881
2f4bc57b
JT
78822002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7883
7884 * NEWS: Note that Alpha targets are now multi-arch.
7885
665132f9
MS
78862002-04-24 Michael Snyder <msnyder@redhat.com>
7887
7888 * parser-defs.h (prev_lexptr): New external variable.
7889 * parse.c (parse_exp_1): Set prev_lexptr to null before
7890 calling the language-specific parser.
7891 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7892 (yyerror): Use prev_lexptr in error reporting.
7893
32872fa7
DJ
78942002-04-24 Daniel Jacobowitz <drow@mvista.com>
7895
7896 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7897 * gregset.h: If FILL_FPXREGSET is defined, provide
7898 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7899 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7900 is defined, call fill_fpxregset.
7901
57e76fac
MS
79022002-04-24 Roland McGrath <roland@frob.com>
7903
7904 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7905 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7906 (supply_gregset, supply_fpregset): New functions.
7907
7908 * gnu-nat.c (gnu_find_memory_regions): New function.
7909 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7910 (gnu_xfer_memory): Add a cast.
7911
f43845b3
MS
79122002-04-24 Michael Snyder <msnyder@redhat.com>
7913
361d1df0 7914 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7915 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7916 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7917 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7918 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7919 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7920
a0abec03
AC
7921Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7922
7923 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7924 NUM_PSEUDO_REGS can be used.
7925
d7bd68ca
AC
79262002-04-24 Andrew Cagney <ac131313@redhat.com>
7927
7928 * arch-utils.h: Update copyright.
7929
7930 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7931 * gdbarch.h, gdbarch.c: Re-generate.
7932
7933 * inferior.h (IN_SIGTRAMP): Delete definition.
7934 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7935 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7936
7937 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7938 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7939 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7940 (find_proc_framesize): Ditto.
7941 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7942 (alpha_init_extra_frame_info): Ditto.
7943 * infrun.c (handle_inferior_event): Ditto.
7944 (handle_inferior_event): Ditto.
7945 (check_sigtramp2): Ditto.
7946 * blockframe.c (create_new_frame): Ditto.
7947 (get_prev_frame): Ditto.
7948 * ppc-linux-tdep.c: Update comments.
7949 * i386-linux-tdep.c: Update comments.
7950 * breakpoint.c (bpstat_what): Update comment.
7951
4867e41e
DM
79522002-04-24 David S. Miller <davem@redhat.com>
7953
21d83aa5
DM
7954 * i960-tdep.c (register_in_window_p): New function.
7955 (i960_find_saved_register): Use it instead of
7956 REGISTER_IN_WINDOW_P.
7957 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7958
4867e41e
DM
7959 * symtab.h (find_stab_function_addr): Kill extern.
7960 * minsyms.c (find_stab_function_addr): Remove from here...
7961 * dbxread.c: ... to here, and mark it static.
7962
69cdf6a2
DM
79632002-04-20 David S. Miller <davem@redhat.com>
7964
7965 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7966 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7967
5a595886
DM
79682002-04-21 David S. Miller <davem@redhat.com>
7969
7970 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7971 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7972 (vx_write_register): Likewise.
7973
1da1a192
JB
79742002-04-23 J. Brobecker <brobecker@gnat.com>
7975
7976 * source.c (is_regular_file): New function.
7977 (openp): Check wether file to open is a regular file
7978 to avoid opening directories.
7979
baa6f10b
JT
79802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7981
7982 * findvar.c (extract_signed_integer): Cast printf argument
7983 to suppress format warning.
7984 (extract_unsigned_integer): Likewise.
7985 * infcmd.c (registers_info): Likewise.
7986 * top.c (get_prompt_1): Likewise.
7987 * valops.c (value_assign): Likewise.
7988 * valprint.c (print_decimal): Likewise.
7989
b2c4da81
L
79902002-04-22 H.J. Lu (hjl@gnu.org)
7991
7992 * c-exp.y (typebase): Support
361d1df0 7993
b2c4da81
L
7994 [long|long long|short] [signed|unsigned] [int|]
7995
7996 and
7997
7998 signed [long|long long|short] int
7999
f267bd6a
JT
80002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8001
8002 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8003 and vax-tdep.h.
8004 * vax-tdep.h: New file.
8005 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8006 Make several routines static.
8007 (vax_get_saved_register): New function.
8008 (vax_gdbarch_init): New function.
8009 (_initialize_vax_tdep): Register vax_gdbarch_init.
8010 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8011 Remove macros now under the control of gdbarch.
8012
da3c6d4a
MS
80132002-04-22 Michael Snyder <msnyder@redhat.com>
8014
11d3b27d
MS
8015 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8016 Some whitespace and coding standards tweaks.
da3c6d4a 8017
a33f7558
JT
80182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8019
8020 * vax-tdep.c: Include regcache.h.
8021 (vax_call_dummy_words): New.
8022 (sizeof_vax_call_dummy_words): New.
8023 (vax_fix_call_dummy): New function.
8024 (vax_saved_pc_after_call): Ditto.
8025 * config/vax/tm-vax.h: Don't include regcache.h.
8026 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8027 (CALL_DUMMY): Remove.
8028 (CALL_DUMMY_WORDS): Define.
8029 (SIZEOF_CALL_DUMMY_WORDS): Define.
8030 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8031
47a73475
MS
80322002-04-18 Michael Snyder <msnyder@redhat.com>
8033
8034 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8035
52efde73
JT
80362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8037
8038 * vax-tdep.c (vax_frame_chain): New function.
8039 (vax_push_dummy_frame): Ditto.
8040 (vax_pop_frame): Ditto.
8041 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8042 (FRAMELESS_FUNCTION_INVOCATION): Use
8043 generic_frameless_function_invocation_not.
8044 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8045 (POP_FRAME): Use vax_pop_frame.
8046
ea74468c
JT
80472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8048
8049 * vax-tdep.c (vax_store_struct_return): New function.
8050 (vax_extract_return_value): Ditto.
8051 (vax_store_return_value): Ditto.
8052 (vax_extract_struct_value_address): Ditto.
8053 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8054 vax_store_struct_return.
8055 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8056 (STORE_RETURN_VALUE): Use vax_store_return_value.
8057 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8058
5516aa92
JT
80592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8060
8061 * vax-tdep.c (vax_frame_saved_pc): New function.
8062 (vax_frame_args_address_correct): Ditto.
8063 (vax_frame_args_address): Ditto.
8064 (vax_frame_locals_address): Ditto.
8065 (vax_frame_num_args): Move code to be in proximity to
8066 other frame-related functions.
8067 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8068 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8069 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8070 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8071 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8072
36af0b35
L
80732002-04-22 H.J. Lu (hjl@gnu.org)
8074
8075 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8076 includedir.
8077
ab62c900
JT
80782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8079
8080 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8081 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8082 (FRAME_INIT_SAVED_REGS): New macro.
8083
7232b100
JT
80842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8085
8086 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8087
b70d2aee
JT
80882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8091 where needed.
8092 (fetch_osf_core_registers): Likewise.
8093 (supply_gregset): Likewise.
8094
a0e8a2d1 80952002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8096
a0e8a2d1
JB
8097 * symfile.h (get_section_index): Define.
8098 * symfile.c (get_section_index): New function.
8099 * mdebugread.c (SC_IS_SBSS): New macro.
8100 (SC_IS_BSS): Return true for the scBss storage class only, as
8101 the scSBss storage class refers to the .sbss section.
8102 (parse_partial_symbols): Discard the symbols which associated
8103 section does not exist.
8104 Make sure to use the .sbss section index for symbols which
8105 storage class is scBss, rather than using the .bss section index.
8106
51eb8b08
JT
81072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8108
8109 * vax-tdep.c: Update copyright years.
8110 (vax_register_name): New function.
8111 (vax_register_byte): Ditto.
8112 (vax_register_raw_size): Ditto.
8113 (vax_register_virtual_size): Ditto.
8114 (vax_register_virtual_type): Ditto.
8115 * config/vax/tm-vax.h: Update copyright years.
8116 (REGISTER_NAMES): Remove.
8117 (REGISTER_NAME): Define.
8118 (REGISTER_BYTE): Use vax_register_byte.
8119 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8120 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8121 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8122
6cc1c0a8
AC
81232002-04-21 Andrew Cagney <ac131313@redhat.com>
8124
8125 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8126 declaration
8127 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8128
9319a2fe
DM
81292002-04-21 David S. Miller <davem@redhat.com>
8130
8131 * arch-utils.c (generic_prologue_frameless_p): Kill
8132 SKIP_PROLOGUE_FRAMELESS_P code.
8133 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8134 references.
8135 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8136 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8137 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8138 references.
8139 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8140 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8141 (sparc_gdbarch_init): Pass it to
8142 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8143
e9ed6d01
JT
81442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8147 (alphabsd-nat.o): New dependency list.
8148
36012033
JT
81492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8150
8151 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8152 alphafbsd-tdep.c.
8153 (alpha-linux-tdep.o): New dependency list.
8154 (alphafbsd-tdep.o): Likewise.
8155
3379287a
JT
81562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8157
8158 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8159 to here...
8160 * alpha-tdep.c: ...from here.
8161 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8162
4bcbd6cb
JT
81632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8164
8165 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8166 prototype from here...
8167 * alpha-tdep.h: ...to here.
8168
b31da25e
AC
81692002-04-21 Andrew Cagney <ac131313@redhat.com>
8170
8171 * frame.h (selected_frame_level): Document as deprecated.
8172 (frame_relative_level): Declare.
8173 * stack.c (frame_relative_level): New function.
8174 (selected_frame_level): Document as deprecated.
8175 (select_frame): Do not set the selected_frame_level.
8176
8177 * stack.c (frame_info, record_selected_frame): Update.
8178 (frame_command, current_frame_command): Update.
8179 (up_silently_base, up_command, down_silently_base): Update.
8180 (down_command): Update.
8181 * inflow.c (kill_command): Update.
8182 * tracepoint.c (finish_tfind_command): Update.
8183 * corelow.c (core_open): Update.
8184 * thread.c (info_threads_command): Update.
8185 (do_captured_thread_select): Update.
8186 * infcmd.c (finish_command): Update.
8187 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8188
9c1d6fe5
JT
81892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8190
8191 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8192
ab89facf
AC
81932002-04-21 Andrew Cagney <ac131313@redhat.com>
8194
8195 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8196 type const.
8197
82a4efa1
JT
81982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8199
8200 * alphafbsd-tdep.c: Update copyright years. Include
8201 alpha-tdep.h.
8202 (alphafbsd_use_struct_convention): Make static.
8203 (alphafbsd_init_abi): New function.
8204 (_initialize_alphafbsd_tdep): New function.
8205 * config/alpha/tm-fbsd.h: Update copyright years.
8206 (USE_STRUCT_CONVENTION): Remove.
8207
44dffaac
JT
82082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8209
8210 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8211 an Alpha ABI variant.
8212 (alpha_abi_handler_list): Declare.
8213 (alpha_gdbarch_register_os_abi): New function.
8214 (alpha_gdbarch_init): Give registered ABI variant handlers a
8215 chance to tweak the gdbarch once we have set up defaults.
8216 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8217
65585be4
JT
82182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8219
8220 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8221 to standard_coerce_float_to_double.
8222 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8223
d9b023cc
JT
82242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8225
8226 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8227 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8228 from gdbarch_tdep rather than a constant.
8229 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8230 the default text address for all Alpha Unix ABIs.
8231 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8232 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8233
dc129d82
JT
82342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8235
8236 * alpha-tdep.h: New file. Includes several Alpha target constants
8237 taken from...
8238 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8239 let gdbarch deal with.
8240 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8241 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8242 to dependency list.
8243 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8244 Alpha target register names.
8245 * alphabsd-nat.c: Likewise.
8246 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8247 Alpha target register names. Make serveral routines static.
8248 (alpha_get_saved_register): New function.
8249 (alpha_abi_names): New.
8250 (process_note_abi_tag_sections): New function.
8251 (get_elfosabi): New function.
8252 (alpha_gdbarch_init): New function.
8253 (alpha_dump_tdep): New function.
8254 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8255
d49d1e0a
AC
82562002-04-21 Andrew Cagney <ac131313@redhat.com>
8257
8258 * frame.c (find_saved_register): Delete #ifdef
8259 HAVE_REGISTER_WINDOWS code.
8260 * config/sparc/tm-sparc.h: Update comments.
8261 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8262
92e8c9ed
AC
82632002-04-21 Andrew Cagney <ac131313@redhat.com>
8264
8265 * i960-tdep.c (i960_find_saved_register): New function.
8266 (i960_get_saved_register): New function.
8267 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8268 (i960_get_saved_register): Declare.
8269 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8270
e1925118
DM
82712002-04-20 David S. Miller <davem@redhat.com>
8272
8273 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8274
29673b29
AC
82752002-04-20 Andrew Cagney <ac131313@redhat.com>
8276
8277 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8278 instead of NUM_PSEUDO_REGS.
8279
6c86dcd5
DM
82802002-04-20 David S. Miller <davem@redhat.com>
8281
8282 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8283 GDB_MULTI_ARCH_PARTIAL
8284 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8285 define, let tm-sp64.h do it.
8286
aa40ec90
JT
82872002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8288
8289 * frame.c (find_saved_register): Avoid a NULL pointer
8290 dereference and actually walk the frame list.
8291
0f79675b
AC
82922002-04-20 Andrew Cagney <ac131313@redhat.com>
8293
8294 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8295 sorted in most most-recent-used order. Document.
8296 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8297
f91305dd 82982002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8299
8300 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8301 instead of ->prev.
8302 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8303 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8304 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8305 instead of ->prev.
8306
73d322b1
EZ
83072002-04-19 Elena Zannoni <ezannoni@redhat.com>
8308
8309 Fix PR gdb/471.
8310 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8311 (build_builtin_type_vec128): Ditto.
8312 (append_composite_type_field): Fix calculation of type length in
8313 union case.
8314
ccd9a834
EZ
83152002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8316
8317 * config/djgpp/README: Update.
8318
8319 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8320 compiler warnings.
8321
a57f9e49
JT
83222002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8323
8324 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8325 (alpha_setup_arbitrary_frame): ...to this.
8326 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8327 for alpha_setup_arbitrary_frame.
8328
f4f9705a
AC
83292002-04-18 Andrew Cagney <cagney@redhat.com>
8330
8331 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8332 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8333
f4f9705a
AC
8334 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8335 * target.h (memory_breakpoint_from_pc): Update declaration.
8336 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8337
8338 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8339 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8340 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8341 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8342 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8343 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8344 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8345 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8346 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8347 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8348 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8349 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8350
8351 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8352 const pointer.
8353 * monitor.c (monitor_insert_breakpoint): Ditto.
8354 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8355
8356 * config/mcore/tm-mcore.h: Update copyright.
8357 * mem-break.c: Ditto.
8358 * xstormy16-tdep.c: Ditto.
8359
29f319b8
PM
83602002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8361
8362 * p-exp.y: Add precedence rule for '^' token.
8363 This removes the shift/reduce conflicts.
8364 Remove the comment concerning these shift/reduce conflicts.
8365
ebeac11a
EZ
83662002-04-18 Elena Zannoni <ezannoni@redhat.com>
8367
8368 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8369 (registers_powerpc_nofp): New register set for processors
8370 without floating point unit.
8371
27c31547
DM
83722002-04-18 David S. Miller <davem@redhat.com>
8373
8374 * MAINTAINERS: Add myself to write-after-approval.
8375
47a73475
MS
83762002-04-17 Michael Snyder <msnyder@redhat.com>
8377
8378 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8379
953836b2
AC
83802002-04-17 Andrew Cagney <ac131313@redhat.com>
8381
8382 * rs6000-tdep.c (frame_initial_stack_address): Use
8383 frame_register_read to read the alloca_reg.
8384
8b0d4340
AC
83852002-04-17 Andrew Cagney <ac131313@redhat.com>
8386
8387 * frame.c (find_saved_register): Find saved registers in the next
8388 not prev frame.
8389 Fix PR gdb/365.
8390
d8864532
AC
83912002-04-17 Andrew Cagney <ac131313@redhat.com>
8392
8393 * gdbarch.sh (LANG): Set to ``c''.
8394
36cc83a3 83952002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8396
36cc83a3 8397 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8398
2f4150cc 83992002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8400
8401 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8402 Update copyright.
8403
628703c6 8404 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8405 Also fix PR gdb/391.
361d1df0 8406
56157b4a
AC
84072002-04-14 Andrew Cagney <ac131313@redhat.com>
8408
8409 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8410 * aclocal.m4, configure: Re-generate.
8411 Fix PR gdb/391.
361d1df0 8412
6d1e3329
EZ
84132002-04-14 Elena Zannoni <ezannoni@redhat.com>
8414
8415 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8416 instead of tm_print_insn.
8417
cb06fa07
EZ
84182002-04-14 Elena Zannoni <ezannoni@redhat.com>
8419
8420 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8421
f208ba17
AC
84222002-04-14 Andrew Cagney <ac131313@redhat.com>
8423
8424 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8425 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8426 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8427
20f01a46
DH
84282002-04-12 Don Howard <dhoward@redhat.com>
8429
8430 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8431 max_user_call_depth.
8432 (init_cmd_lists): Initialize the new value;
8433 * cli/cli-script.c (execute_user_command): Limit the call depth of
8434 user defined commands. This avoids a core-dump when user commands
8435 are infinitly recursive.
8436
a88376a3
KB
84372002-04-12 Kevin Buettner <kevinb@redhat.com>
8438
8439 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8440 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8441 from tdep struct instead of DEFAULT_LR_SAVE.
8442 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8443 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8444 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8445
f2172603
MS
84462002-04-12 Michael Snyder <msnyder@redhat.com>
8447
694f61fb 8448 * Remote.c: Spelling fix.
20fe79c8
MS
8449 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8450 If no symbol found for "sbrk", try "_sbrk".
8451 (make_output_phdrs): Use bfd_section_name.
8452 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8453 * eval.c: Indentation fix-ups.
169a7369
MS
8454 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8455 in case it gets applied to an address that is already
8456 in the instruction space.
de74f71f
MS
8457 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8458 * symfile.c: Fix indentation, long lines.
f2172603
MS
8459 * source.c: White space fix-up.
8460
cda5a58a
AC
84612002-04-12 Andrew Cagney <cagney@redhat.com>
8462
8463 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8464 * frame.c (frame_register_read): New function. Return non-zero on
8465 success.
8466 (read_relative_register_raw_bytes_for_frame): Delete.
8467 (read_relative_register_raw_bytes): Delete.
8468 * frame.h (frame_register_read): Declare.
8469 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8470 * sh-tdep.c: Ditto.
8471 * infcmd.c (do_registers_info): Ditto.
8472 * hppa-tdep.c: Ditto.
8473 * rs6000-tdep.c: Ditto.
8474 * h8500-tdep.c: Ditto.
8475 * mips-tdep.c: Ditto.
8476 * h8300-tdep.c: Ditto.
8477 * z8k-tdep.c: Ditto.
8478
2ea5f656
KB
84792002-04-12 Kevin Buettner <kevinb@redhat.com>
8480
8481 From Jimi X <jimix@watson.ibm.com>:
8482 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8483 64-bit SysV ABI.
8484
27b15785
KB
84852002-04-12 Kevin Buettner <kevinb@redhat.com>
8486
8487 From Jimi X <jimix@watson.ibm.com>:
8488 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8489 bfd info.
8490
5d57ee30
KB
84912002-04-12 Kevin Buettner <kevinb@redhat.com>
8492
8493 From Jimi X <jimix@watson.ibm.com>:
8494 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8495 register sets for these processor variants.
8496
bc1e36ca
DJ
84972002-04-11 Daniel Jacobowitz <drow@mvista.com>
8498
bc1e36ca
DJ
8499 * regformats/reg-ppc.dat: Support FPSCR.
8500
e3f36dbd
KB
85012002-04-11 Kevin Buettner <kevinb@redhat.com>
8502
8503 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8504 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8505 Add fpscr as an invalid/unfetchable register.
8506 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8507 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8508 (fill_fpregset): Add support for register fpscr.
8509 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8510 (fill_gregset): Account for the fact that register ``mq'' might
8511 not exist.
8512 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8513 (registers_power): Add fpscr to register set at slot 71.
8514 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8515 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8516
943c9c25
MS
85172002-04-11 Michael Snyder <msnyder@redhat.com>
8518
8519 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8520 * configure: Regenerate.
8521 * config.in: Regenerate.
8522 * acconfig.h: Add define for _SYSCALL32.
8523 * core-sol2.c: Remove #define _SYSCALL32.
8524 * solib-legacy.c: Remove #define _SYSCALL32.
8525
d8c0a2e7
AC
85262002-04-10 Andrew Cagney <ac131313@redhat.com>
8527
8528 * stack.c (select_frame): Cleanup internal error message, do not
8529 use %p.
8530
7cc19214
AC
85312002-04-10 Andrew Cagney <ac131313@redhat.com>
8532
8533 * stack.c (select_frame): Check that selected_frame and the
8534 specified level are as expected.
8535 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8536 Update copyright.
8537 * frame.h (struct frame_info): Add field `level'. Update
8538 copyright.
8539 Work-in-progress PR gdb/464.
8540
67a2b77e
AC
85412002-04-10 Andrew Cagney <ac131313@redhat.com>
8542
8543 * maint.c (maint_print_section_info): Rename print_section_info.
8544 (print_bfd_section_info, print_objfile_section_info): Update.
8545 * inferior.h (struct gdbarch): Add opaque declaration.
8546 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8547 * gdbarch.h: Regenerate.
8548
8cfda98c
ML
85492002-04-10 Michal Ludvig <mludvig@suse.cz>
8550
8551 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8552 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8553 (kernel_u_size): Added.
8554 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8555 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8556
ca439ad2 85572002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8558
ca439ad2
JI
8559 * valarith.c (find_size_for_pointer_math): New function, either returns
8560 the size for a pointer's target, returns 1 for void *, or errors for
8561 incomplete types.
8562 (value_add, value_sub): use find_size_for_pointer_math.
8563
2f2893d9
DJ
85642002-04-09 Daniel Jacobowitz <drow@mvista.com>
8565
8566 * linux-low.c (linux_look_up_symbols): New hook.
8567 (linux_target_ops): Add linux_look_up_symbols.
8568 * remote-utils.c (decode_address): New function.
8569 (look_up_one_symbol): New function.
8570 * server.c (handle_query): Call target look_up_symbols hook.
8571 * server.h (look_up_one_symbol): Add prototype.
8572 * target.h (struct target_ops): Add look_up_symbols hook.
8573
96cb11df
AC
85742002-04-09 Andrew Cagney <ac131313@redhat.com>
8575
8576 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8577 override FP_REGNUM with frame->fp. Update copyright.
8578 * parse.c (num_std_regs, std_regs): Delete.
8579 (target_map_name_to_register): Do not search std_regs. Update
8580 function description.
8581 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8582 declarations. Update copyright.
8583 Fix PR gdb/251.
361d1df0 8584
97658e92
DJ
85852002-04-09 Daniel Jacobowitz <drow@mvista.com>
8586
8587 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8588 after the last symbol in a block.
8589
6044e3eb
PM
85902002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8591
8592 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8593 is non zero as a found symbol.
8594
0406ec40
AC
85952002-04-08 Andrew Cagney <ac131313@redhat.com>
8596
8597 * findvar.c: Include "builtin-regs.h".
8598 (value_of_register): Call value_of_builtin_reg when applicable.
8599 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8600 (target_map_name_to_register): Call
8601 builtin_reg_map_name_to_regnum.
8602 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8603 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8604 (builtin_regs_h): Define.
8605 (builtin-regs.o): New target.
8606 (findvar.o): Add $(builtin_regs_h).
8607 * builtin-regs.c, builtin-regs.h: New files.
8608 * std-regs.c: New file.
8609 Partial fix for PR gdb/251.
8610
56a6dfb9
KB
86112002-04-08 Kevin Buettner <kevinb@redhat.com>
8612
8613 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8614 it's no longer required.
8615
3a808432
AC
86162002-04-08 Andrew Cagney <ac131313@redhat.com>
8617
8618 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8619
7c40d541
KB
86202002-04-08 Kevin Buettner <kevinb@redhat.com>
8621
8622 From Jimi X <jimix@watson.ibm.com>:
8623 * rs6000-tdep.c (rs6000_software_single_step): Use
8624 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8625 and size. Use target_insert_breakpoint() and
8626 target_remove_breakpoint() to insert and remove breakpoints
8627 instead of explicit memory reads and writes.
8628
cc9836a8
KB
86292002-04-08 Kevin Buettner <kevinb@redhat.com>
8630
8631 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8632 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8633 ELF_OBJECT_FORMAT ifdef.
8634
7495d1dc
KB
86352002-04-08 Kevin Buettner <kevinb@redhat.com>
8636
8637 From Jimi X <jimix@watson.ibm.com>:
8638 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8639
4288e836
KB
86402002-04-08 Kevin Buettner <kevinb@redhat.com>
8641
8642 From Jimi X <jimix@watson.ibm.com>:
8643 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8644 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8645
a4e4e501
MK
86462002-04-07 Mark Kettenis <kettenis@gnu.org>
8647
8648 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8649 s/asprintf/xasprintf/.
8650 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8651
006defba
AC
86522002-04-07 Andrew Cagney <ac131313@redhat.com>
8653
8654 I believe Jeff Law denies responsability for this one:
8655 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8656 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8657 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8658 Work-around for PR gdb/366.
8659
7aa83cac
EZ
86602002-04-07 Elena Zannoni <ezannoni@redhat.com>
8661
8662 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8663 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8664 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8665
cf1fcca1
EZ
86662002-04-07 Elena Zannoni <ezannoni@redhat.com>
8667
8668 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8669 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8670 information.
8671
3f289e6f
AC
86722002-04-07 Andrew Cagney <ac131313@redhat.com>
8673
8674 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8675 maintainer.
8676
129188f6
AC
86772002-04-07 Andrew Cagney <ac131313@redhat.com>
8678
8679 * README (Reporting Bugs in GDB): Document the bug web page as the
8680 prefered way of submitting bugs.
8681 Fix PR gdb/402.
8682
1200cd6e
AC
86832002-04-06 Andrew Cagney <ac131313@redhat.com>
8684
8685 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8686 -1. Update comment.
8687 * gdbarch.h, gdbarch.c: Re-generate.
8688
2853c33c
AS
86892002-04-07 Andreas Schwab <schwab@suse.de>
8690
8691 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8692 buffer to regcache_collect.
8693
c2169756
AC
86942002-04-06 Andrew Cagney <ac131313@redhat.com>
8695
8696 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8697 * gdbarch.c, gdbarch.h: Re-generate.
8698
25f1b008
AC
86992002-04-06 Andrew Cagney <ac131313@redhat.com>
8700
8701 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8702 declaration. Fix -Werror.
8703
59263426
DJ
87042002-04-05 Daniel Jacobowitz <drow@mvista.com>
8705
8706 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8707 * gdbarch.c: Regenerate.
8708
f5db4da3
MS
87092002-04-05 Michael Snyder <msnyder@redhat.com>
8710
80f8a6eb
MS
8711 * breakpoint.c (clear_command): Rewrite middle section to
8712 combine two loops with identical control conditions.
8713 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8714 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8715
ad3dcc5c
L
87162002-04-05 H.J. Lu (hjl@gnu.org)
8717
8718 * solib-svr4.c (bkpt_names): Add "__start".
8719
f32e7a74
AC
87202002-04-04 Andrew Cagney <ac131313@redhat.com>
8721
8722 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8723 as test for 64 bit target.
8724
8227c0ff
AC
87252002-04-05 Andrew Cagney <ac131313@redhat.com>
8726
8727 * h8500-tdep.c (h8500_write_fp): Delete function.
8728 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8729 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8730 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8732 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8733 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8734 (s390_write_fp):
8735 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8736 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8737 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8738 (d10v_write_fp): Delete function.
8739 * inferior.h (write_fp, generic_target_write_fp): Delete
8740 declarations.
8741 * regcache.c (generic_target_write_fp): Delete function.
8742 (write_fp): Delete function.
8743 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8744 * gdbarch.h, gdbarch.c: Regenerate.
8745 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8746 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8747 (sparc64_write_fp): Delete declaration.
8748 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8749 (h8500_write_fp): Delete declaration.
8750
2757dd86
AC
87512002-04-04 Andrew Cagney <ac131313@redhat.com>
8752
8753 * sparc-tdep.c (sparc64_write_fp): Delete.
8754 (sparc_push_dummy_frame): Replace write_fp call with code to store
8755 the FP directly.
8756 (sparc_gdbarch_init): Do not initialize write_fp.
8757
c69255e1
KB
87582002-04-05 Kevin Buettner <kevinb@redhat.com>
8759
8760 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8761 clause.
8762
ae767bfb
JB
87632002-03-29 Jim Blandy <jimb@redhat.com>
8764
8765 * stack.c (get_selected_block): Add new argument `addr_in_block',
8766 used to return the exact code address we used to select the block,
8767 not just the block.
8768 * blockframe.c (get_frame_block, get_current_block): Same.
8769 * frame.h (get_frame_block, get_current_block,
8770 get_selected_block): Update declarations.
8771 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8772 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8773
84d2ac95
MS
87742002-04-05 Michael Snyder <msnyder@redhat.com>
8775
8776 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8777 warning message.
8778
596aa3bf
JB
87792002-04-05 J. Brobecker <brobecker@gnat.com>
8780
8781 * utils.c (xfullpath): New function.
8782 * defs.h (xfullpath): Add declaration.
8783 * source.c (openp): Use xfullpath in place of gdb_realpath to
8784 avoid resolving the basename part of filenames when the
8785 associated file is a symbolic link. This fixes a potential
8786 inconsistency between the filenames known to GDB and the
8787 filenames it prints in the annotations.
8788 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8789 to be able to match a filename with either the real filename, or
8790 the name of any symbolic link to this file.
8791 (lookup_partial_symtab): Ditto.
8792
c02f5703
MS
87932002-04-04 Michael Snyder <msnyder@redhat.com>
8794
8795 * breakpoint.c: Add support for hardware breakpoints in overlays.
8796 (overlay_events_enabled): New state variable.
8797 (insert_breakpoints): Use overlay_events_enabled to decide
8798 whether to attempt to set a breakpoint at the overlay load addr.
8799 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8800 (remove_breakpoint): Use overlay_events_enabled to decide
8801 whether breakpoints need to be removed from overlay load addr.
8802 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8803 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8804 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8805 disable_overlay_breakpoints): Update overlay_events_enabled.
8806
5fb290d7
DJ
88072002-04-04 Daniel Jacobowitz <drow@mvista.com>
8808
8809 * dwarf2read.c (struct function_range): New.
8810 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8811 (check_cu_functions): New.
8812 (read_file_scope): Initialize global function lists.
8813 Call dwarf_decode_line after processing children.
8814 (read_func_scope): Add to global function list.
8815 (dwarf_decode_lines): Call check_cu_functions everywhere
8816 record_line is called. Call record_line with a linenumber
8817 of 0 to mark sequence ends.
8818
7b3fabf0
ML
88192002-04-04 Michal Ludvig <mludvig@suse.cz>
8820
361d1df0 8821 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8822 change sync with glibc.
8823
bce58c09
JB
88242002-04-03 Jim Blandy <jimb@redhat.com>
8825
8826 * configure.in: Call AC_C_INLINE.
8827 * configure: Regenerated.
361d1df0 8828
2fccf04a
DJ
88292002-04-01 Daniel Jacobowitz <drow@mvista.com>
8830
8831 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8832 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8833
2d1bfe2e
MK
88342002-03-31 Mark Kettenis <kettenis@gnu.org>
8835
a5941fbf
MK
8836 * NEWS: Mention gcore support on FreeBSD/i386.
8837
a90cd31d
MK
8838 * fbsd-proc.c: New file.
8839 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8840 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8841
2d1bfe2e
MK
8842 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8843 while statement.
8844
9eb6e5a1
JB
88452002-03-29 Jim Blandy <jimb@redhat.com>
8846
8847 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8848 unescaped newlines in string literals, but newer ones don't. So
8849 escape them.
8850
f02df580
MS
88512002-03-26 Michael Snyder <msnyder@redhat.com>
8852 Andrew Cagney <cagney@redhat.com>
8853
361d1df0 8854 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8855 restore file to memory.
8856 * cli/cli-dump.h: New file.
8857 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8858 * NEWS: Mention new commands.
f02df580 8859
109f874e
MS
88602002-03-28 Michael Snyder <msnyder@redhat.com>
8861
8862 * symfile.c (symbol_file_add): Move test for null symbols to later.
8863
520f6ade
AC
88642002-03-27 Andrew Cagney <ac131313@redhat.com>
8865
8866 From veksler at il.ibm.com:
8867 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8868 the xstrduped original path.
8869 Fix PR gdb/417.
8870
d4654627
MS
88712002-03-27 Michael Snyder <msnyder@redhat.com>
8872
8873 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8874 * infcmd.c (_initialize_infcmd): Ditto.
8875 * language.c (_initialize_language): Ditto.
8876 * symfile.c (_initialize_symfile): Ditto.
8877 * top.c (_init_main): Ditto.
8878 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8879
6be8bc0c
EZ
88802002-03-27 Elena Zannoni <ezannoni@redhat.com>
8881
8882 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8883 vector registers handling.
8884 (skip_prologue): Handle new AltiVec instructions. Fill in new
8885 fields of frame data.
8886 (frame_get_saved_regs): Fill in information for AltiVec registers.
8887
12af6855
JB
88882002-03-27 Jim Blandy <jimb@redhat.com>
8889
8890 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8891 a function; leave this macro here to invoke that function.
8892 (symbol_init_mangled_name): Declaration for that function.
8893 * symtab.c (symbol_init_mangled_name): New function.
8894
dc672865
AC
88952002-03-27 Andrew Cagney <ac131313@redhat.com>
8896
8897 * valarith.c: Replace strerror with safe_strerror.
8898 * tracepoint.c: Ditto.
8899 * lin-lwp.c: Ditto.
8900 * go32-nat.c: Ditto.
8901 * inflow.c: Ditto.
8902 * gnu-nat.c: Ditto.
8903
d96429cd
AS
89042002-03-27 Andreas Schwab <schwab@suse.de>
8905
8906 * event-top.c (command_line_handler): Remove useless if.
8907
7e336ba1
AJ
89082002-03-27 Andreas Jaeger <aj@suse.de>
8909
8910 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8911 comment.
8912
de220d0f
ML
89132002-03-27 Michal Ludvig <mludvig@suse.cz>
8914
8915 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8916 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8917 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8918 (x86_64_linux_dr_get_status, supply_gregset),
8919 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8920 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8921 (x86_64_register_info_table): Add.
8922 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8923 (x86_64_register_raw_size, x86_64_register_virtual_type),
8924 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8925 general x86_64_register_info_table.
8926 (i386_gdbarch_init): gdbarch_register_bytes is now set
8927 dynamicaly during initialization.
8928 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8929 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8930
0e98d0a7
DJ
89312002-03-27 Daniel Jacobowitz <drow@mvista.com>
8932
8933 * gdbserver/server.c (main): Call target_signal_to_host_p
8934 and target_signal_to_host on signals received from the remote.
8935 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8936 target_signal_from_host on signals sent to the remote.
8937 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8938 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8939
3130066b
DJ
89402002-03-27 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * signals/signals.c: Include "server.h" in gdbserver build.
8943 (target_signal_from_name): Don't use STREQ.
8944 (_initialize_signals): Likewise. Don't include function in
8945 gdbserver build.
8946
9aedf4f4
DJ
89472002-03-27 Daniel Jacobowitz <drow@mvista.com>
8948
8949 * signals.c: Moved to...
8950 * signals/signals.c: Here.
7e336ba1 8951 * Makefile (signals.o): Update.
9aedf4f4 8952
3fa41cdb
JL
89532002-03-26 Jeff Law (law@redhat.com)
8954
8955 * somread.c (som_symtab_read): Remove some commented out code and
8956 updated related comments. Do not set the minimal symbol table to
8957 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8958 in a dynamic executable.
8959 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8960 where we are unable to find the minimal symbol for the given
8961 PC value.
8962
ee677e8d
MS
89632002-03-25 Jeff Law (law@redhat.com)
8964
8965 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8966
e76e1718
ML
89672002-03-25 Michal Ludvig <mludvig@suse.cz>
8968
8969 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8970
18a642a1
AC
89712002-03-23 Andrew Cagney <ac131313@redhat.com>
8972
8973 * command.h: Update copyright.
8974 (struct cmd_list_element): Replace definition with opaque
8975 declaration.
8976 (enum cmd_types): Document that it will eventually be moved to
8977 cli/cli-decode.h
8978 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8979 (MALLOCED_REPLACEMENT): Delete macro.
8980 * Makefile.in (cli_decode_h): Add $(command_h).
8981 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8982 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8983 * completer.c: Include "cli/cli-decode.h".
8984 * maint.c: Include "cli/cli-decode.h".
8985 * cli/cli-decode.h: Include "command.h".
8986 (enum command_class): Delete.
8987 (enum cmd_types): Comment out.
8988 (enum cmd_auto_boolean): Delete.
8989 (enum var_types): Delete.
8990
b2875cc0
AC
89912002-03-23 Andrew Cagney <ac131313@redhat.com>
8992
8993 * cli/cli-decode.c: Include "gdb_assert.h".
8994 (add_set_or_show_cmd): New static function.
8995 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8996 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8997 all fields, such as func, from the set command.
8998
3b45974e
AC
89992002-03-23 Andrew Cagney <ac131313@redhat.com>
9000
9001 * MAINTAINERS (sh-elf): Change warning flag to -w.
9002
823ca731
AC
90032002-03-23 Andrew Cagney <cagney@redhat.com>
9004
9005 * defs.h (error): Add printf format attribute.
9006 * thread-db.c (thread_from_lwp): Fix error format string.
9007 * stack.c (parse_frame_specification): Ditto.
9008 * cli/cli-decode.c (undef_cmd_error): Ditto.
9009 * scm-lang.c (scm_lookup_name): Ditto.
9010 * tracepoint.c (trace_error): Ditto.
9011 * remote-utils.c (usage): Ditto.
9012 * remote.c (compare_sections_command): Ditto.
9013 Fix PR gdb/328.
9014
0e101458
AC
90152002-03-22 Andrew Cagney <ac131313@redhat.com>
9016
9017 * gdbtypes.c (append_composite_type_field): New function.
9018 (init_composite_type): New function.
9019 * gdbtypes.h (append_composite_type_field): Declare.
9020 (init_composite_type): Ditto.
9021
8e0662df
EZ
90222002-03-22 Elena Zannoni <ezannoni@redhat.com>
9023
9024 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9025 function.
8e0662df
EZ
9026 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9027 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9028 structure returning convention for SYSV ABI case, but not
9029 for GNU/Linux, FreeBSD, or NetBSD.
9030
3121eff0
DJ
90312002-03-22 Daniel Jacobowitz <drow@mvista.com>
9032
9033 * symtab.h (lookup_block_symbol): Add mangled_name argument
9034 to prototype.
9035
9036 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9037 with new mangled_name argument.
9038 * linespec.c (decode_line_1): Likewise.
9039 * valops (value_of_this): Likewise.
9040 * symtab.c (lookup_transparent_type): Likewise.
9041 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9042 (lookup_symbol): If we are given a mangled name, pass it down
9043 to lookup_symbol_aux.
9044 (lookup_block_symbol): If we are given a mangled name to check
9045 against, only return symbols which match it.
9046
349b409f
CF
90472002-03-22 Christopher Faylor <cgf@redhat.com>
9048
9049 * win32-nat.c (child_create_inferior): Check for proper shell to use
9050 here, in case the user changes it on the fly.
9051 (_initialize_inftarg): Remove shell path considerations.
9052
2a873819
EZ
90532002-03-21 Elena Zannoni <ezannoni@redhat.com>
9054
9055 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9056 for gdbarch_max_register_raw_size and max_register_virtual_size.
9057 Adjust copyright year.
9058
a1b9830c
DJ
90592002-03-21 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9062 in a function to cover the entire beginning of the function
9063 as well if it does not already.
9064
8b5790f2
TR
90652002-03-21 Tom Rix <trix@redhat.com>
9066
9067 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9068 (rs6000_ptrace64): Renamed from ptrace64.
9069
bdbe5747
MH
90702002-03-20 Martin M. Hunt <hunt@redhat.com>
9071
9072 * gdbserver/remote-utils.c (remote_open): Don't call
9073 getprotobyname, we're all using TCP here so just use
9074 IPPROTO_TCP.
7e336ba1 9075 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9076
90772002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9078
bdbe5747
MH
9079 * regcache.c (_initialize_regcache): No need to call
9080 build_regcache() at this time; it gets called whenever
9081 the gdbarch changes.
9082
7781cd62
DB
90832002-03-20 David O'Brien <obrien@FreeBSD.org>
9084
9085 * sparc-nat.c: Include sys/param.h where possible.
9086
f65ca430
DJ
90872002-03-20 Daniel Jacobowitz <drow@mvista.com>
9088
9089 Fix PR gdb/422.
9090 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9091 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9092 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9093 complex types.
9094 * stabsread.c (rs6000_builtin_type): Likewise.
9095 (read_sun_floating_type): Likewise.
9096
0c867556
PS
90972002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9098
9099 * stabsread.c (read_member_functions): Remove skip code for duplicate
9100 constructor/destructor methods. Use standard parsing for these
9101 methods and just do not chain them to the list of methods after
9102 parsing.
9103
12b9c64f
AO
91042002-03-19 Alexandre Oliva <aoliva@redhat.com>
9105
9106 * coffread.c: Remove redundant static declarations. Replace
9107 occurrences of `PTR' with `void *'.
9108 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9109 * top.h (quit_cover): Likewise.
9110 * defs.h (catch_errors): Likewise.
9111
349c5d5f
AC
91122002-03-18 Andrew Cagney <ac131313@redhat.com>
9113
9114 * defs.h (XMALLOC): Define.
9115 * gdb-events.sh (XMALLOC): Delete macro.
9116 * gdb-events.c, gdb-events.h: Regenerate.
9117 * gdbarch.sh (XMALLOC): Delete macro.
9118 * gdbarch.c: Regenerate.
9119 * serial.c (XMALLOC): Delete macro.
9120 * ui-file.c (XMALLOC): Ditto.
9121 * ser-unix.h (XMALLOC): Ditto.
9122 * sh-tdep.c (XMALLOC): Ditto.
9123 * ui-out.c (XMALLOC): Ditto.
9124 * utils.c (XMALLOC): Ditto.
9125 * i386-tdep.c (XMALLOC): Ditto.
9126 * gdb-events.c (XMALLOC): Ditto.
9127 * d10v-tdep.c (XMALLOC): Ditto.
9128 * cli-out.c (XMALLOC): Ditto.
9129
9130 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9131 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9132 * ui-file.c, ui-out.c: Ditto.
9133
7d0766f3
AC
91342002-03-18 Andrew Cagney <ac131313@redhat.com>
9135
9136 * command.h (struct cmd_list_element): Add field context.
9137 (set_cmd_context, get_cmd_context): Declare.
9138 * cli/cli-decode.h: Ditto.
9139 * cli/cli-decode.c (get_cmd_context): New function.
9140 (set_cmd_context): New function.
9141 (add_cmd): Initialize context.
9142 Part of fixing PR gdb/145 and PR gdb/146.
9143
5913bcb0
AC
91442002-03-17 Andrew Cagney <ac131313@redhat.com>
9145
1868c04e
AC
9146 * cli/cli-decode.c (cmd_type): New function.
9147 * command.h (cmd_type): Declare.
9148 * infrun.c (set_schedlock_func): Call function cmd_type.
9149 * kod.c (kod_set_os): Call cmd_type.
9150 * cris-tdep.c (cris_version_update): Use function cmd_type.
9151 (cris_mode_update, cris_abi_update): Ditto.
9152
5913bcb0
AC
9153 * command.h: (execute_cmd_post_hook): Declare.
9154 (execute_cmd_pre_hook): Declare.
9155 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9156 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9157 functions. Execute pre/post hook while ensuring that afterwords
9158 hook_in is cleared.
9159 * top.c (execute_command): Use execute_cmd_post_hook, and
9160 execute_cmd_pre_hook to execute pre/post commands.
9161 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9162 hook_stop_stub.
9163 (hook_stop_stub): Call execute_cmd_pre_hook.
9164
b51450c9
AC
91652002-03-17 Andrew Cagney <ac131313@redhat.com>
9166
9167 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9168 set'' and this leads to a core dump. Move xstrdup of
9169 operating_system to after check that it is not NULL.
9170
f66c9f11
AC
91712002-03-17 Andrew Cagney <ac131313@redhat.com>
9172
8e694ecf
AC
9173 * kod.c (kod_set_os): Remove unnecessary check that
9174 ``command->type'' is set_cmd.
9175
f66c9f11
AC
9176 * valprint.c (set_input_radix): Use input_radix.
9177 (set_output_radix): Use output_radix.
9178 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9179 isn't reverted.
9180
9d01611c
AC
91812002-03-16 Andrew Cagney <ac131313@redhat.com>
9182
9183 * value.h (struct value): Delete field ``substring_addr''. Change
9184 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9185 force_core_addr_align and force_pointer_aligh.
9186
9187 * value.h (struct value): Fix typo in above change.
9d01611c 9188
4156bb53
PS
91892002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9190
9191 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9192 to fix internal_error from ``maintenance print architecture''.
9193
0e5e3ea6
PS
91942002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9195
9196 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9197 for gcc versions after gcc-2.8.1.
9198
9b013045
PS
91992002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9200
9201 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9202 for method resolution. Restore adjustment of ``this'' pointer after
9203 calling value_struct_elt, which was accidentally removed during the
9204 HP merge.
9205
376c9600
AC
92062002-03-15 Andrew Cagney <ac131313@redhat.com>
9207
9208 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9209 value_of_register.
9210 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9211 get_saved_register.
9212 * value.h (value_of_register): Update.
9213
a4db0f07
RH
92142002-03-14 Richard Henderson <rth@redhat.com>
9215
9216 * configure.in: Detect declaration for canonicalize_file_name.
9217 * utils.c (canonicalize_file_name): Declare, if needed.
9218 (gdb_realpath): Prefer realpath if available and usable.
9219 * config.in, configure: Rebuild.
9220
96383835
RH
92212002-03-14 Richard Henderson <rth@redhat.com>
9222
9223 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9224 a constant array bound.
9225
9226 * MAINTAINERS: Add myself to write-after-approval.
9227
75245b24
MS
92282002-03-14 Michael Snyder <msnyder@redhat.com>
9229
9230 * symfile.c (syms_from_objfile): Return immediately if no syms.
9231 (symbol_file_add): Return immediately if no syms.
9232 (find_sym_fns): Return immediately if no syms.
9233
e641a1ca
ML
92342002-03-13 Michal Ludvig <mludvig@suse.cz>
9235
9236 * gdbserver/remote-util.c (remote_open): Print remote-side's
9237 IP address when remote debugging over the network.
7e336ba1 9238
df08bfec
DB
92392002-03-12 David O'Brien <obrien@FreeBSD.org>
9240
9241 * config/sparc/fbsd.mh: Fix copyright.
9242 * config/sparc/fbsd.mt: Likewise.
9243
9a57864f
RE
92442002-03-11 Richard Earnshaw <rearnsha@arm.com>
9245
9246 * MAINTAINERS: Fix typo in name of gdb warnings option.
9247 (x86-64): Fix formating so that this can be parsed by awk.
9248
dd7bf85e
DJ
92492002-03-10 Daniel Jacobowitz <drow@mvista.com>
9250
9251 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9252 * defs.h: Include "gdb/signals.h".
9253 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9254
33a0a2ac
ML
92552002-03-10 Michal Ludvig <mludvig@suse.cz>
9256
9257 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9258 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9259 from x86-64-tdep.h
9260
dd824b04
DJ
92612002-03-10 Daniel Jacobowitz <drow@mvista.com>
9262 Don Howard <dhoward@redhat.com>
9263
9264 * mips-tdep.c (ST0_FR): Define.
9265 (mips2_fp_compat): New function, temporarily disabled.
9266 (mips_read_fp_register_single): New function.
9267 (mips_read_fp_register_double): New function.
9268 (mips_print_register): Use them.
9269 (do_fp_register_row): Likewise.
9270
6a41ff59
AC
92712002-03-09 Andrew Cagney <ac131313@redhat.com>
9272
9273 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9274 approval''.
9275
4ea09c10
PS
92762002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9277
9278 * stabsread.c (read_member_functions): Fix is_stub test for
9279 static member functions, improve comment.
9280
6ccc741d
RE
92812002-03-07 Richard Earnshaw <rearnsha@arm.com>
9282
9283 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9284 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9285 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9286 commands that set boolean values.
9287 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9288 (arm_rdi_resume): Always initialize PC.
9289 (arm_rdi_open): Don't use rslt as a boolean.
9290 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9291 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9292 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9293 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9294
438013df
AO
92952002-03-06 Alexandre Oliva <aoliva@redhat.com>
9296
9297 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9298 * configure: Rebuilt.
9299
70ed8774
SC
93002002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9301
9302 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9303 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9304
5ba2abeb
AC
93052002-03-06 Andrew Cagney <ac131313@redhat.com>
9306
9307 * cli/cli-decode.c (set_cmd_completer): New function.
9308 * command.h (set_cmd_completer): Declare.
9309 * cli/cli-decode.h (set_cmd_completer): Ditto.
9310
9311 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9312 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9313 * win32-nat.c (_initialize_inftarg): Ditto.
9314 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9315 * proc-api.c (_initialize_proc_api): Ditto.
9316 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9317 * source.c (_initialize_source): Ditto.
9318 * exec.c (_initialize_exec): Ditto.
9319 * solib.c (_initialize_solib): Ditto.
9320 * top.c (init_main): Ditto.
9321 * tracepoint.c (_initialize_tracepoint): Ditto.
9322 * symfile.c (_initialize_symfile): Ditto.
9323 * printcmd.c (_initialize_printcmd): Ditto.
9324 * infcmd.c (_initialize_infcmd): Ditto.
9325 * corefile.c (_initialize_core): Ditto.
9326
f779ca99
AC
93272002-03-05 Andrew Cagney <ac131313@redhat.com>
9328
9329 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9330
01a3934b
AC
93312002-03-05 Andrew Cagney <ac131313@redhat.com>
9332
9333 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9334
37057839
AC
93352002-03-05 Andrew Cagney <ac131313@redhat.com>
9336
9337 * NEWS: Update headings, 5.2 has branched.
9338
c6ecbae5
DJ
93392002-03-04 Daniel Jacobowitz <drow@mvista.com>
9340
9341 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9342 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9343 (register_addr, REGISTER_RAW_SIZE): Likewise.
9344 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9345 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9346
e9f30c21
ML
93472002-03-03 Michal Ludvig <mludvig@suse.cz>
9348
9349 * MAINTAINERS (x86-64): Add myself.
9350 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9351 changed value_ptr -> struct value *
9352
54394ac3
DB
93532002-03-01 David O'Brien <obrien@FreeBSD.org>
9354
9355 * configure.host (sparc64-*-freebsd): Add.
9356 * configure.tgt: Likewise.
9357 * config/sparc/fbsd.mh: New file.
9358 * config/sparc/fbsd.mt: Likewise.
9359 * config/sparc/nm-fbsd.h: Likewise.
9360 * config/sparc/tm-fbsd.h: Likewise.
9361
bfe95955
DJ
93622002-03-01 Daniel Jacobowitz <drow@mvista.com>
9363
9364 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9365 regformats/reg-s390x.dat.
9366
f33c6cbf
AC
93672002-03-01 Andrew Cagney <ac131313@redhat.com>
9368
9369 * utils.c: Add FIXME explaining true/false problem.
9370
5ecaa7dd
AC
93712002-02-28 Andrew Cagney <ac131313@redhat.com>
9372
9373 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9374
2a251cc2
MC
93752002-02-28 Michael Chastain <mec@shout.net>
9376
9377 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9378
6a8031a3 93792002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9380
9381 * gdbserver/linux-s390-low.c: New file.
9382 * regformats/reg-s390.dat: New file.
9383 * regformats/reg-s390x.dat: New file.
9384 * gdbserver/configure.srv: Add S/390.
9385 * gdbserver/Makefile.in: Add S/390.
9386 * configure.tgt: Enable gdbserver for S/390.
9387
ac469903
EZ
93882002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9389
9390 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9391 first line of the doc string for "info dos", except at the end of
9392 the sentence, since the short help stops at the first period.
9393
985cb1a3
JM
93942002-02-28 Jason Merrill <jason@redhat.com>
9395
9396 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9397
c570663e
FF
93982002-02-27 Fred Fish <fnf@redhat.com>
9399
9400 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9401 comment (dumy -> dummy).
9402
43630227
PS
94032002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9404
9405 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9406
b84911e8
RB
94072002-02-27 Rodney Brown <rbrown64@csc.com.au>
9408
9409 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9410
58caa3dc
DJ
94112002-02-27 Daniel Jacobowitz <drow@mvista.com>
9412
9413 * gdbserver/acconfig.h: New file.
9414 * gdbserver/i387-fp.c: New file.
9415 * gdbserver/i387-fp.h: New file.
9416 * gdbserver/linux-x86-64.c: New file.
9417 * regformats/reg-x86-64.dat: New file.
9418 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9419 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9420 * gdbserver/configure.in: Add support for regsets.
9421 * gdbserver/config.in: Regenerate.
9422 * gdbserver/configure: Regenerate.
9423 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9424 * gdbserver/linux-low.h: New file.
9425 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9426 for regsets.
9427 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9428 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9429 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9430 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9431 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9432 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9433 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9434 "i387-fp.h". Add PTRACE_GETREGS and friends.
9435 * gdbserver/regcache.c (supply_register): New function.
9436 (supply_register_by_name): New function.
9437 (collect_register): New function.
9438 (collect_register_by_name): New function.
9439
93652174
DJ
94402002-02-27 Daniel Jacobowitz <drow@mvista.com>
9441
9442 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9443 (config.status): Add configure.srv dependency.
9444 (server_h): Add config.h dependency.
9445
a02e4a61
DJ
94462002-02-27 Daniel Jacobowitz <drow@mvista.com>
9447
9448 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9449 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9450 * gdbserver/configure.srv: Change i386-*-linux* to use
9451 reg-i386-linux.o.
9452
ce0eebec
AC
94532002-02-26 Andrew Cagney <ac131313@redhat.com>
9454
9455 * x86-64-tdep.c: Re-indent. Update copyright date.
9456
82dbc5f7
AC
94572002-02-26 Andrew Cagney <ac131313@redhat.com>
9458
9459 From Michal Ludvig <mludvig@suse.cz>:
9460 * x86-64-tdep.c (value.h): Delete.
9461 (gdb_assert.h): Include.
9462 (x86_64_register_convert_to_virtual,
9463 x86_64_register_convert_to_raw ): Add check which lets only
9464 floating-point values to be converted.
9465 (value_push): Delete.
9466 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9467 (i386_gdbarch_init): Number of register_bytes fixed.
9468
e4621584
AC
94692002-02-26 Andrew Cagney <ac131313@redhat.com>
9470
9471 * MAINTAINERS: Add x86-64 target.
9472
81a9a963
AC
94732002-02-26 Andrew Cagney <ac131313@redhat.com>
9474
9475 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9476 * osfsolib.c (solib_map_sections): Ditto.
9477 * irix5-nat.c (solib_map_sections): Ditto.
9478 * corelow.c (gdb_check_format): Ditto.
9479 * symfile.c (symfile_bfd_open): Ditto.
9480 * solib.c (solib_map_sections): Ditto.
9481 Fix PR gdb/354.
7e336ba1 9482
0f017ab9
AC
94832002-02-26 Andrew Cagney <ac131313@redhat.com>
9484
9485 * remote.c (_initialize_remote): By default, disable ``e'' and
9486 ``E'' step out-of-range packets.
9487
75738c29
AS
94882002-02-26 Andreas Schwab <schwab@suse.de>
9489
9490 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9491 m68k_linux_frame_saved_pc.
9492 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9493 in_sigtramp.
9494 (SIGCONTEXT_PC_OFFSET): Remove.
9495 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9496 m68k_linux_sigtramp_saved_pc): New functions.
9497 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9498 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9499 (UCONTEXT_PC_OFFSET): Define.
9500 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9501 non-RT and RT signal trampolines.
9502
7e8ed687
RE
95032002-02-26 Richard Earnshaw <rearnsha@arm.com>
9504
9505 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9506 (TARGET_NBPG, STACK_END_ADDR): Delete
9507 (VARIABLES_INSIDE_BLOCK): Delete.
9508
6972bc8b
AC
95092002-02-25 Andrew Cagney <ac131313@redhat.com>
9510
9511 * utils.c (perror_with_name): Make string parameter constant.
9512 (print_sys_errmsg): Ditto.
9513 (query): Ditto.
9514 * defs.h (perror_with_name): Update.
9515 (print_sys_errmsg): Update.
9516 (query): Update.
9517
aa32f823
DJ
95182002-02-25 Daniel Jacobowitz <drow@mvista.com>
9519
9520 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9521 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9522
19caaa45
PS
95232002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9524
9525 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9526 if it already matches the current architecture from the exec file.
9527 Include arch-utils.h for gdbarch_info_init prototype.
9528 * Makefile.in (rs6000-nat.o): Update dependencies.
9529
d951901f
EZ
95302002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9531
9532 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9533 list of exported variables.
9534
7ea81414
DJ
95352002-02-24 Daniel Jacobowitz <drow@mvista.com>
9536
9537 * gdbserver/configure.srv: New file.
9538 * gdbserver/configure.in: Use configure.srv instead
9539 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9540 from it.
9541 * gdbserver/configure: Regenerated.
9542 * gdbserver/terminal.h: New file.
9543 * gdbserver/Makefile.in: Update for configure changes. Remove
9544 more unneeded include paths.
9545
080fe24b
AC
95462002-02-24 Andrew Cagney <ac131313@redhat.com>
9547
9548 From wiz at danbala:
9549 * config/sparc/tm-sp64.h: Fix grammar and typos.
9550 Fix PR gdb/287.
9551
8605d56e
AC
95522002-02-24 Andrew Cagney <ac131313@redhat.com>
9553
9554 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9555 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9556 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9557 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9558 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9559 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9560 * s390-tdep.c: Ditto.
92362027
AC
9561 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9562 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9563 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9564 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9565 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9566 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9567 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9568 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9569 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9570 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9571 Fix PR gdb/378.
7e336ba1 9572
8ed32cc0
AC
95732002-02-23 Andrew Cagney <ac131313@redhat.com>
9574
a3007b6f
AC
9575 * lin-thread.c: Delete file.
9576 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9577 to gdb_proc_service.h.
9578 * configure: Re-generate.
9579
50a9e2f1
AC
9580 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9581 * serial.c (serial_open): Delete check for "ocd".
9582 Fix PR gdb/349.
9583
8b6e7932
AC
9584 * Makefile.in (linux-thread.o): Delete target.
9585 * linux-thread.c: Delete file.
9586
d155c46b
AC
9587 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9588 renamed SH files to be consistent.
9589
8ed32cc0
AC
9590 * symtab.c (sort_search_symbols): Use xfree.
9591
0e18d038
RE
95922002-02-23 Richard Earnshaw <rearnsha@arm.com>
9593
9594 * arm-linux-tdep.c (arm_linux_init_abi): Register
9595 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9596 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9597 definition with undef, since we don't want the sysvr4 definition.
9598 (SKIP_TRAMPOLINE_CODE): Likewise.
9599
27aac7ff
AC
96002002-02-23 Andrew Cagney <ac131313@redhat.com>
9601
9602 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9603
9604 * configure.in: (AC_CHECK_FUNCS) Added test for
9605 canonicalize_file_name Regenerated.
9606 * config.in, configure: Regenerated.
9607 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9608 defined use canonicalize_file_name.
7e336ba1 9609
65a6e0ee
MC
96102002-02-23 Michael Chastain <mec@shout.net>
9611
9612 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9613
47b95330
AC
96142002-02-23 Andrew Cagney <ac131313@redhat.com>
9615
9616 * README: Remove references to cygnus.com.
9617 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9618 dot com'' form. Remove references to cygnus.com and sourceware.
9619
696f451b
AC
96202002-02-23 Andrew Cagney <ac131313@redhat.com>
9621
9622 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9623 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9624 1003.1-2001 no longer allows "head -1".
9625 * gdb/Makefile.in (version.c): Likewise.
9626 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9627 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9628 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9629
bbaca940
AC
96302002-02-23 Andrew Cagney <ac131313@redhat.com>
9631
9632 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9633 * command.h (cmd_cfunc_eq): Declare.
9634 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9635
9636 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9637 ``struct cmd_list_element *''.
9638 * cli/cli-cmds.c (is_complete_command): Update. Use
9639 cmd_cfunc_eq.
9640 * top.c (execute_command): Pass the command to
9641 is_complete_command.
9642 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9643
b8b8b047
AC
96442002-02-23 Andrew Cagney <ac131313@redhat.com>
9645
9646 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9647 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9648 architecture defines.
9649 * s390-tdep.c (s390_gdbarch_init): Likewise.
9650
19d3fc80
RE
96512002-02-23 Richard Earnshaw <rearnsha@arm.com>
9652
9653 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9654 (arm_linux_push_arguments): Likewise.
9655 (arm_linux_init_abi): Register them. Also register linux-specific
9656 call_dummy_words.
9657 (find_minsym_and_objfile): Use strcmp, not STREQ.
9658 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9659 (arm_linux_call_dummy_words): Delete declaration.
9660 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9661 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9662 declarations.
9663 (LOWEST_PC): Delete.
9664
3ab13650
PS
96652002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9666
9667 * maint.c (print_section_info): Do not prepend `0x' to filepos
9668 output, it will be handled by local_hex_string_custom.
9669
19d3fc80 96702002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9671
9672 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9673 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9674 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9675
d85a5daf
JB
96762002-02-22 Jim Blandy <jimb@redhat.com>
9677
9678 Indicate that the bcache functions don't change the strings
9679 they're passed.
9680 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9681 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9682
eeb25b8a
PM
96832002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9684
9685 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9686
6badb179
CF
96872002-02-21 Christopher Faylor <cgf@redhat.com>
9688
9689 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9690 find the complete path to a loaded DLL.
9691
e8717518
FF
96922002-02-21 Fred Fish <fnf@redhat.com>
9693
9694 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9695 that marks the end of the range of a function, enter a line number
9696 entry that has a line number of zero and a PC offset that matches
9697 the end of the function. This starts a range of PC's for which no
9698 line number information is known.
9699 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9700 PC's for which no line number info is found (line number is zero)
9701 then we didn't find any valid line information.
9702 * symtab.h: Document use of zero line number entry.
9703
9abe5450
EZ
97042002-02-21 Elena Zannoni <ezannoni@redhat.com>
9705
9706 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9707 (have_ptrace_getvrregs): Define for run time checks.
9708 (gdb_vrregset_t): New type for Altivec register handling.
9709 (fetch_register, store_register): Fetch/store altivec register
9710 when needed.
9711 (fetch_altivec_register, store_altivec_register): New functions.
9712 (supply_vrregset, fill_vrregset): New functions.
9713 (fetch_altivec_registers, store_altivec_registers): New functions.
9714 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9715 registers as well.
9716
aaa38bb5
AJ
97172002-02-21 Jiri Smid <smid@suse.cz>
9718
9719 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9720
b34db576
RE
97212002-02-21 Richard Earnshaw <rearnsha@arm.com>
9722
9723 * Makefile.in (armnbsd-nat.o): Update dependencies.
9724 * armnbsd-nat.c (supply_gregset): New function. Common code to
9725 supply the integer register set.
9726 (supply_fparegset): New function. Similar for FPA registers.
9727 (fetch_regs, fetch_fp_regs): Use them.
9728 (fetch_core_registers): Likewise.
9729 (fetch_elfcore_registers): New function.
9730 (arm_netbsd_elfcore_fns): New core-file type specification.
9731 (_initialize_arm_netbsd_nat): Register it.
9732
3e56fc4b
RE
97332002-02-21 Richard Earnshaw <rearnsha@arm.com>
9734
9735 * armnbsd-nat.c: Include gdbcore.h.
9736 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9737 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9738 'void' to declaration, to shut up ARI.
9739 (fetch_core_registers): Make static. Rewrite using supply_register.
9740 (arm_netbsd_core_fns): New core-file type specification.
9741 (_initialize_arm_netbsd_nat): New function.
9742
097f6b0b
CF
97432002-02-21 Christopher Faylor <cgf@redhat.com>
9744
9745 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9746 value.
9747
c914e0cc
CF
97482002-02-20 Christopher Faylor <cgf@redhat.com>
9749
9750 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9751 fails.
9752
385fa495
DJ
97532002-02-20 Daniel Jacobowitz <drow@mvista.com>
9754
9755 * jv-exp.y (parse_number): Change type of implicit longs
9756 to builtin_type_uint64.
9757
e5f1222d
DJ
97582002-02-20 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9761 to be an integer instead of a `union wait'.
9762
75c9abc6
DJ
97632002-02-20 Daniel Jacobowitz <drow@mvista.com>
9764
9765 * mips-linux-nat.c: Call the operating system GNU/Linux.
9766 * mips-linux-tdep.c: Likewise.
9767 * mips-tdep.c: Likewise.
9768
551792a5
DJ
97692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9770
9771 Fix PR gdb/265.
9772 * jv-exp.y (parse_number): Handle 64-bit integers.
9773
ee6e2b82
DJ
97742002-02-20 Daniel Jacobowitz <drow@mvista.com>
9775
9776 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9777 AC_STDC_HEADERS to AC_HEADER_STDC.
9778 * gdbserver/configure: Regenerated.
9779
a48442a0
RE
97802002-02-20 Richard Earnshaw <rearnsha@arm.com>
9781
9782 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9783 is defined.
9784 * sparc-tdep.c (get_longjmp_target): Likewise.
9785
fe419ffc
RE
97862002-02-20 Richard Earnshaw <rearnsha@arm.com>
9787
9788 * News: Add news about ARM and Multi-arch. Mention the new target
9789 arm*-*-netbsd*.
9790
5832ed7e
JB
97912002-02-19 Jim Blandy <jimb@redhat.com>
9792
9793 * stabsread.c (error_type_complaint): Improve error message.
9794
84563040
DJ
97952002-02-19 Daniel Jacobowitz <drow@mvista.com>
9796
9797 * gdbserver/README: Update documentation.
9798 * gdbserver/configure.in: Update configury to match documentation.
9799 * gdbserver/Makefile.in: Likewise.
9800 * gdbserver/configure: Regenerated.
9801 * gdbserver/aclocal.m4: New file, generated by aclocal.
9802 * gdbserver/config.in: New file, generated by autoheader.
9803
375fd65b
RE
98042002-02-19 Richard Earnshaw <rearnsha@arm.com>
9805
9806 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9807 armnbsd-nat.c.
9808
08216dd7
RE
98092002-02-19 Richard Earnshaw <rearnsha@arm.com>
9810
9811 * arm-tdep.h (enum arm_float_model): New enum.
9812 (struct gdbarch_tdep): Add fp_model.
9813 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9814 up floating-point conversions until we know the floating-point model
9815 in use by the inferior. Don't complain about being unable to
9816 determine the ABI of the inferior when we don't have one.
9817 (arm_extract_return_value): Support different floating-point models.
9818 (arm_store_return_value): Likewise.
aaa38bb5 9819 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9820 ARM_FLOAT_SOFT.
9821 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9822
65d6d66a
PS
98232002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9824
9825 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9826 of ``current_gdbarch''.
9827
47221191
RE
98282002-02-19 Richard Earnshaw <rearnsha@arm.com>
9829
9830 * armnbsd-nat.c : ANSIfy all function declarations.
9831 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9832 (fetch_inferior_registers): Re-implement in terms of above.
9833 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9834 (store_inferior_registers): Re-implement in terms of above.
9835
fdf39c9a
RE
98362002-02-19 Richard Earnshaw <rearnsha@arm.com>
9837
aaa38bb5 9838 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9839 kernel.
9840 * arm-linux-tdep.c: Likewise.
9841 * config/arm/tm-linux.h: Likewise.
9842
93247f88
RE
98432002-02-19 Richard Earnshaw <rearnsha@arm.com>
9844
9845 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9846 * config/arm/nbsd.mt (TM_FILE): Delete.
9847 * config/arm/tm-nbsd.h: Delete.
9848
d7b486e7
RE
98492002-02-19 Richard Earnshaw <rearnsha@arm.com>
9850
9851 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9852 Initialize CALL_DUMMY_LENGTH.
9853
41d39a95
RE
98542002-02-19 Richard Earnshaw <rearnsha@arm.com>
9855
9856 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9857 function.
9858 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9859 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9860 defines one thing and that is incorrect for this port.
9861 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9862
e1195560
PM
98632002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9864
9865 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9866
c1748f97
PM
98672002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9868
9869 * win32-nat.c (display_selector): New function. Displays information
9870 about the information returned by GetThreadSelectorEntry API function.
9871 (display_selectors): New function. Displays the infomation of
9872 the selector given as argument, or of CS, DS ans FS selectors
9873 if no argument is given.
9874 ( _initialize_inftarg): Add "w32" as info prefix command.
9875 Add "info w32 selector" as command calling display_selectors.
9876
e41e6bbf
PM
98772002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9878
9879 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9880 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9881 if not defined.
9882
0d3a9f48
RE
98832002-02-18 Richard Earnshaw <rearnsha@arm.com>
9884
9885 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9886
3fb4b924
RE
98872002-02-18 Richard Earnshaw <rearnsha@arm.com>
9888
9889 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9890 (arm_fix_call_dummy): Call it.
9891 (arm_call_dummy_breakpoint_offset): Delete.
9892 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9893 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9894
7f55af32
AC
98952002-02-18 Andrew Cagney <ac131313@redhat.com>
9896
9897 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9898 Default to func_frame_chain_valid.
9899 * gdbarch.h, gdbarch.c: Re-generate.
9900 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9901
05f13b9c
EZ
99022002-02-18 Elena Zannoni <ezannoni@redhat.com>
9903
9904 * ppc-linux-nat.c: Update copyright.
9905 (fetch_register, store_register): Add tid parameter, don't compute
9906 tid here.
9907 (fetch_ppc_registers, store_ppc_registers): Add tid
9908 parameter. Pass it along to callees.
9909 (fetch_inferior_registers, store_inferior_registers): Compute tid
9910 here, and pass it to calleed functions.
9911 (fill_gregset, supply_fpregset): Clean up formatting.
9912
d7afb4c9
RE
99132002-02-18 Richard Earnshaw <rearnsha@arm.com>
9914
9915 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9916 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9917
9df628e0
RE
99182002-02-18 Richard Earnshaw <rearnsha@arm.com>
9919
9920 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9921 * gdbarch.c gdbarch.h: Regenerate.
9922 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9923 function.
9924 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9925 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9926 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9927
9928 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9929 * arm-tdep.c (arm_get_longjmp_target): New function.
9930 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9931 this to a positive value register arm_get_longjmp_target as the
9932 longjmp handler.
9933 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9934 (arm_linux_init_abi): Set up longjmp description in tdep.
9935 * armnbsd-nat.c (get_longjmp_target): Delete.
9936 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9937 description in tdep.
9938 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9939 (get_longjmp_target): Delete declaration.
9940 (GET_LONGJMP_TARGET): Delete.
9941 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9942 (GET_LONGJMP_TARGET): Delete.
9943
57bc8964
KB
99442002-02-17 Kevin Buettner <kevinb@redhat.com>
9945
9946 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9947 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9948 of ``current_gdbarch''.
9949
83d31a92
TT
99502002-02-17 Tom Tromey <tromey@redhat.com>
9951
9952 * cli/cli-cmds.c (compare_strings): New function.
9953 (complete_command): Only print each unique item once.
9954 * completer.h (complete_line): Declare.
9955 * completer.c (complete_line): New function.
9956 (line_completion_function): Use it.
9957
17ef5d92
AC
99582002-02-16 Andrew Cagney <ac131313@redhat.com>
9959
9960 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9961 * gdbarch.h, gdbarch.c: Re-generate.
9962
491b8946
DJ
99632002-02-16 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9966
99672002-02-16 Daniel Jacobowitz <drow@mvista.com>
9968
9969 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9970 * valops.c (value_arg_coerce): Don't take the address of a reference
9971 to convert an argument to a reference.
9972
dfe7f3ac
CF
99732002-02-15 Christopher Faylor <cgf@redhat.com>
9974
9975 * win32-nat.c (get_image_name): New function.
9976 (handle_load_dll): Use get_image_name function.
9977 (get_child_debug_event): Avoid registering debug events until possibly
9978 execed process is started.
9979 (child_create_inferior): Allow invocation via shell so that command
9980 line redirection, etc. works ok.
9981 (_initialize_inftarg): Add new command: "set shell" to control whether
9982 a shell is used to start a process.
9983
1d33e73a
DJ
99842002-02-15 Daniel Jacobowitz <drow@mvista.com>
9985
9986 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9987 instead of find_register_by_number.
9988 (cannot_store_register): Likewise.
9989
48cd0caa
PM
99902002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9991
aaa38bb5 9992 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9993 fprintf_unfiltered (gdb_stderr, ...).
9994
8656e7d8
DJ
99952002-02-15 Daniel Jacobowitz <drow@mvista.com>
9996
9997 * gdbserver/gdbserver.1: Document --attach.
9998
66e810cd
RE
99992002-02-15 Richard Earnshaw <rearnsha@arm.com>
10000
10001 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10002 descriptions.
10003 * arm-tdep.c (arm_default_arm_le_breakpoint)
10004 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10005 (arm_default_thumb_be_breakpoint): New. Initialize them from
10006 traditional breakpoint defines.
10007 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10008 (arm_gdbarch_init): Initialize new breakpoint variables.
10009 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10010 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10011 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10012 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10013 code out to ...
10014 (arm_netbsd_init_abi_common): ... here; new function.
10015 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10016 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10017 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10018 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10019
97e03143
RE
100202002-02-15 Richard Earnshaw <rearnsha@arm.com>
10021
10022 * arm-tdep.h (enum arm_abi): New enum.
10023 (struct gdbarch_tdep): New structure.
10024 (LOWEST_PC): Provide a default.
10025 (arm_gdbarch_register_os_abi): Declare new function.
10026 * arm-tdep.c (arm_abi_names): New array.
10027 (process_note_abi_tag_sections): New function.
10028 (get_elfosabi): New function.
10029 (arm_gdbarch_register_os_abi): New function.
10030 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10031 support for that ABI has been built in, then call the appropriate
10032 configuration routine. Use gdbarch_num_regs() to get the number
10033 of registers.
10034 (arm_dump_tdep): New function.
10035 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10036 place-holder functions.
10037 (_initialize_arm_tdep): Register them.
10038 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10039
10040 * armnbsd-tdep.c: New file.
10041 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10042 * config/arm/nbsd.mt (TDEPFILES): Add it.
10043 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10044
10045 * armnbsd-nat.c: Include regcache.h.
10046 * Makefile.in (armnbsd-nat.o): Update dependency list.
10047
10048 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10049
ad68be46
DJ
100502002-02-14 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * gdbserver/Makefile.in: Fix typos in target rules.
10053
003d6d1d
DJ
100542002-02-14 Daniel Jacobowitz <drow@mvista.com>
10055
aaa38bb5 10056 Fix part of PR gdb/267.
003d6d1d
DJ
10057 * linespec.c (find_methods): Handle constructors specially for now.
10058
6b230f1b
CV
100592002-02-14 Corinna Vinschen <vinschen@redhat.com>
10060
10061 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10062 handling.
10063 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10064 standard_coerce_float_to_double().
10065
1ea98d12
CF
100662002-02-14 Christopher Faylor <cgf@redhat.com>
10067
10068 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10069 GDBINIT_FILENAME.
10070
dd47e6fd
EZ
100712002-02-14 Elena Zannoni <ezannoni@redhat.com>
10072
10073 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10074 find_variant_by_name, because it confuses the multiarch
10075 framework. Return NULL if there isn't an architecture with the
10076 user supplied name, instead of forcing a different one without
10077 recording the change with the multiarch machinery.
10078 (find_variant_by_name): Delete.
10079
d7e39b9e
PS
100802002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10081
10082 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10083 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10084
76e42a4f
MH
100852002-02-13 Martin M. Hunt <hunt@redhat.com>
10086
aaa38bb5 10087 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10088 print_frame_info_listing_hook, set current_source_symtab.
10089
0a30fbc4
DJ
100902002-02-14 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10093 and remove unused $(INCLUDE_DIR).
10094 Add regcache.c to OBS.
10095 Add generated register protocol files to clean target.
10096 Update dependencies for new objects, obsolete old target code.
10097
10098 * gdbserver/linux-low.c: Remove all platform-specific code to
10099 new files. Remove various dead code. Update to use regcache
10100 functionality.
10101 * gdbserver/remote-utils.c (fromhex): Add return statement
10102 to quiet warning.
10103 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10104 constant.
10105 (input_interrupt): Add integer parameter to match prototype
10106 of a signal handler.
10107 (outreg): Use register_data ().
10108 (prepare_resume_reply): Use gdbserver_expedite_regs.
10109 * gdbserver/server.c (main): Dynamically allocate own_buf because
10110 PBUFSIZ is no longer constant. Use registers_to_string () and
10111 registers_from_string ().
10112 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10113 for error (), fatal (), and warning (). Update definition of
10114 PBUFSIZ to use regcache functionality. Add include guard.
10115 * gdbserver/utils.c (fatal): Add missing ``const''.
10116 (warning): New function.
10117
10118 * regformats/regdat.sh: Include "regcache.h" in generated files.
10119 Provide init_registers () function.
10120 * regformats/regdef.h: Add prototype for set_register_cache ().
10121 Add include guard.
10122
10123 * gdbserver/linux-arm-low.c: New file.
10124 * gdbserver/linux-i386-low.c: New file.
10125 * gdbserver/linux-ia64-low.c: New file.
10126 * gdbserver/linux-m68k-low.c: New file.
10127 * gdbserver/linux-mips-low.c: New file.
10128 * gdbserver/linux-ppc-low.c: New file.
10129 * gdbserver/linux-sh-low.c: New file.
10130
10131 * gdbserver/regcache.c: New file.
10132 * gdbserver/regcache.h: New file.
10133
10134 * gdbserver/low-linux.c: Removed obsolete file.
10135
4cc841d0
DJ
101362002-02-14 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10139 * config/i386/linux.mt: Likewise.
10140 * config/ia64/linux.mt: Likewise.
10141 * config/m68k/linux.mh: Likewise.
10142 * config/powerpc/linux.mh: Likewise.
10143 * config/mips/linux.mt: Likewise.
10144
10145 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10146
10147 * config/i386/i386lynx.mh: Mark gdbserver variables
10148 as (currently) obsolete for this target.
10149 * config/i386/nbsd.mt: Likewise.
10150 * config/i386/nbsdelf.mt: Likewise.
10151 * config/m32r/m32r.mt: Likewise.
10152 * config/m68k/m68klynx.mh: Likewise.
10153 * config/m68k/nbsd.mt: Likewise.
10154 * config/m68k/sun3os4.mh: Likewise.
10155 * config/mips/vr5000.mt: Likewise.
10156 * config/ns32k/nbsd.mt: Likewise.
10157 * config/pa/hppabsd.mh: Likewise.
10158 * config/pa/hppaosf.mh: Likewise.
10159 * config/powerpc/nbsd.mt: Likewise.
10160 * config/rs6000/rs6000lynx.mh: Likewise.
10161 * config/s390/s390.mt: Likewise.
10162 * config/s390/s390x.mt: Likewise.
10163 * config/sparc/sparclynx.mh: Likewise.
10164 * config/sparc/sun4os4.mh: Likewise.
10165 * config/i386/x86-64linux.mt: Likewise.
10166 * config/sparc/linux.mh: Likewise.
10167
a85f51e7
DJ
101682002-02-14 Daniel Jacobowitz <drow@mvista.com>
10169
10170 * configure.tgt: Configure gdbserver only for known working
10171 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10172 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10173 SUBDIRS if it is configured. Update comment for ${nativefile}.
10174 * configure: Regenerated.
10175
65554fef
MS
101762002-02-13 Michael Snyder <msnyder@redhat.com>
10177
670a52db
MS
10178 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10179
6dbdc4a3
MS
10180 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10181 (default_gcore_mach): Just return 0, work around a problem in bfd.
10182 (default_gcore_target): OK to return NULL if exec_bfd is null.
10183 (make_mem_sec): Use a cast, avoid a warning.
10184
10185 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10186 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10187 sizeof (host pointer) != sizeof (target pointer)).
10188 (procfs_make_note_section): Avoid overflow in psargs string.
10189
aaa38bb5 10190 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10191 implementation return an error.
10192
101932002-02-13 Rodney Brown <rbrown64@csc.com.au>
10194
10195 * procfs.c (procfs_make_note_section): Provide a default definition
10196 (for alpha-dec-osf4.0f). Fix typos.
10197
1e4d76e7
EZ
101982002-02-13 Elena Zannoni <ezannoni@redhat.com>
10199
10200 * linux-proc.c: Add include of regcache.h.
10201 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10202
b6d1a1d5
AC
102032002-02-13 Andrew Cagney <ac131313@redhat.com>
10204
10205 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10206 * memattr.c (create_mem_region): Disallow useless empty region.
10207 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10208 non-overlapping.
b6d1a1d5 10209
6c6ea35e
MC
102102002-02-13 Michael Chastain <mec@shout.net>
10211
10212 * defs.h: Kill CONST_PTR.
10213 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10214 * c-lang.c (c_builtin_types): Likewise.
10215 * ch-lang.c (ch_builtin_types): Likewise.
10216 * f-lang.c (f_builtin_types): Likewise.
10217 * language.c (unknown_builtin_types): Likewise.
10218 * m2-lang.c (m2_builtin_types): Likewise.
10219 * p-lang.c (pascal_builtin_types): Likewise.
10220 * scm-lang.c (c_builtin_types): Likewise.
10221
3e0b0f48
KS
102222002-02-13 Keith Seitz <keiths@redhat.com>
10223
10224 * arm-tdep.h (arm_get_next_pc): Add declaration.
10225
67255d04
RE
102262002-02-13 Richard Earnshaw <rearnsha@arm.com>
10227
10228 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10229 with other related struct-returning functions.
10230 (arm_extract_struct_value_address): New function.
10231 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10232 initialize float_format, double_format and long_double_format as
10233 appropriate to the endianness of the target.
10234 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10235 (arm_use_struct_convention): Delete declaration.
10236 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10237
079777f6
KS
102382002-02-13 Keith Seitz <keiths@redhat.com>
10239
10240 * defs.h (core_addr_to_string_nz): New function.
10241
34588f23
MK
102422002-02-13 Mark Kettenis <kettenis@gnu.org>
10243
10244 Apply missing bits of 2002-01-15 patch.
10245 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10246 (fill_fpregset): Use i387_fill_fsave.
10247
49b563f9
KS
102482002-02-12 Keith Seitz <keiths@redhat.com>
10249
49b563f9
KS
10250 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10251 (core_addr_to_string_nz): New function.
10252
aeb98c60
RE
102532002-02-11 Richard Earnshaw <rearnsha@arm.com>
10254
10255 * arm-linux-nat.c: Really include arm-tdep.h.
10256 * config/arm/tm-linux.h (struct type, struct value): Declare.
10257
65554fef
MS
102582002-02-11 Michael Snyder <msnyder@redhat.com>
10259
10260 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10261 (gcore section): Ifdef for Solaris and Unixware only.
10262 (procfs_do_thread_registers): Unixware needs one lwpstatus
10263 per thread (not one prstatus or pstatus).
10264 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10265 not over all gdb threads. For unixware, call elfcore_write_pstatus
10266 once before iterating over threads.
10267
34e8f22d
RE
102682002-02-11 Richard Earnshaw <rearnsha@arm.com>
10269
10270 * arm-tdep.h: New file.
10271 * arm-tdep.c: Include arm-tdep.h.
10272 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10273 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10274 (arm_print_float_info, arm_register_type, convert_to_extended)
10275 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10276 (arm_extract_return_value, arm_register_name): Make static.
10277 (arm_software_single_step): Similarly. Fix types in declaration.
10278 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10279 (arm_store_return_value, arm_store_struct_return): New functions.
10280 (arm_gdbarch_init): Register the above functions. Also register
10281 call_dummy_start_offset, sizeof_call_dummy_words,
10282 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10283 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10284 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10285 prologue_cache.saved_regs here, rather than ...
10286 (_initialize_arm_tdep): ... here.
10287 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10288 declarations.
10289 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10290 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10291 (arm_print_float_info, arm_register_type, convert_to_extended)
10292 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10293 (arm_extract_return_value, arm_register_name): Delete declarations.
10294 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10295 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10296 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10297 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10298 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10299 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10300 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10301 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10302 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10303 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10304 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10305 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10306 interface.
10307 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10308 * remote-rdi.c remote-rdp.c: Likewise.
10309 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10310 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10311 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10312 definition.
10313
10314 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10315 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10316 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10317 from non-ARM_ prefixed definitions.
10318 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10319 all uses of above.
10320 * remote-rdi.c remote-rdp.c: Likewise.
10321 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10322
148754e5
RE
103232002-02-11 Richard Earnshaw <rearnsha@arm.com>
10324
10325 * arm-tdep.c (arm_frameless_function_invocation)
10326 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10327 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10328 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10329 (arm_pop_frame, arm_get_next_pc): Make static.
10330 (arm_gdbarch_init): Register above in gdbarch structure.
10331 (arm_read_fp): Renamed from arm_target_read_fp.
10332 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10333 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10334 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10335 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10336 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10337 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10338 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10339 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10340 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10341 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10342 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10343
434d2d4f
DJ
103442002-02-10 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * symtab.c (compare_search_syms): New function.
10347 (sort_search_symbols): New function.
10348 (search_symbols): Sort symbols after searching rather than
10349 before.
10350
55241689
AC
103512002-02-10 Andrew Cagney <ac131313@redhat.com>
10352
10353 * NEWS: Linux -> GNU/Linux.
10354
028c194b
AC
103552002-02-10 Andrew Cagney <ac131313@redhat.com>
10356
10357 * gdbarch.sh: For for level one methods, disallow a definition
10358 when partially multi-arched. Add comments explaining rationale.
10359 * gdbarch.h: Re-generate.
10360
6acf50cd
AC
103612002-02-10 Andrew Cagney <ac131313@redhat.com>
10362
10363 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10364 multi-arch partial.
aaa38bb5 10365
50248794
AC
103662002-02-10 Andrew Cagney <ac131313@redhat.com>
10367
10368 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10369 field. Use diff -u.
10370 * gdbarch.c: Re-generate.
10371
c30e0066
AC
103722002-02-10 Andrew Cagney <ac131313@redhat.com>
10373
9b56c5f3 10374 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10375 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10376 partial.
10377
6e6d6484
AC
103782002-02-10 Andrew Cagney <ac131313@redhat.com>
10379
10380 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10381 multi-arch partial.
10382 (PUSH_ARGUMENTS): Switch to using predefault.
10383 * gdbarch.c: Regenerate.
10384
c203844d
AC
103852002-02-10 Andrew Cagney <ac131313@redhat.com>
10386
10387 * valops.c (PUSH_ARGUMENTS): Delete definition.
10388 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10389 partial. Default to default_push_arguments.
10390 * gdbarch.h, gdbarch.c: Regenerate.
10391
b5a2688f
AC
103922002-02-09 Andrew Cagney <ac131313@redhat.com>
10393
10394 * defs.h (throw_exception): Rename return_to_top_level. Update
10395 comments.
10396 * utils.c (error_stream, internal_verror, quit): Ditto.
10397 * top.c (throw_exception, catcher): Ditto.
10398 * sparclet-rom.c (sparclet_load): Ditto.
10399 * remote.c (interrupt_query, minitelnet): Ditto.
10400 * remote-sds.c (interrupt_query): Ditto.
10401 * remote-mips.c (mips_error, mips_kill): Ditto.
10402 * ocd.c (interrupt_query): Ditto.
10403 * monitor.c (monitor_interrupt_query): Ditto.
10404 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10405 * target.h: Update comment.
aaa38bb5 10406
b5a2688f 10407 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10408
2fa5c1e0
AC
104092002-02-09 Andrew Cagney <ac131313@redhat.com>
10410
10411 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10412 default_double_format.
10413 * gdbarch.h, gdbarch.c: Re-generate.
10414 * findvar.c (floatformat_unknown): Delete variable definition.
10415 * doublest.h (floatformat_unknown): Delete variable declaration.
10416
da966255
JB
104172002-02-09 Jim Blandy <jimb@redhat.com>
10418
10419 * stabsread.c (read_type): Add code to parse Sun's syntax for
10420 prototyped function types.
10421
123a4891
AC
104222002-02-09 Andrew Cagney <ac131313@redhat.com>
10423
10424 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10425 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10426
fb39c8f3
PS
104272002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10428
10429 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10430 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10431 now _initialize_xcoffsolib gets called again and overrides the
10432 commands from solib.c in a native configuration.
10433
0b87a11d
MK
104342002-02-09 Mark Kettenis <kettenis@gnu.org>
10435
10436 * doublest.c (store_typed_floating): Don't try to return a value.
10437 Fixes PR gdb/290.
10438
bdc2fc72
JB
104392002-02-08 Jim Blandy <jimb@redhat.com>
10440
10441 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10442 is prototyped and has no arguments, print its argument list as
10443 `(void)'.
10444
da69bbcf
CD
104452002-02-08 Chris Demetriou <cgd@broadcom.com>
10446
10447 * MAINTAINERS (write-after-approval): Add myself.
10448 (paper-trail): I've escaped!
aaa38bb5 10449
b69571f5
CF
104502002-02-08 Christopher Faylor <cgf@redhat.com>
10451
10452 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10453 changes.
10454 (_initialize_check_for_gdb_ini): Ditto.
10455
f6871398
MH
104562002-02-08 Martin M. Hunt <hunt@redhat.com>
10457
10458 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10459 xaprintf -> xasprintf.
10460
4e52d31c
PM
104612002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10462
10463 * win32-nat.c: Remove use of printf and sprintf functions.
10464
39bbf761
RE
104652002-02-08 Richard Earnshaw <rearnsha@arm.com>
10466
10467 * arm-tdep.c (arm_frame_chain_valid): Make static.
10468 (arm_push_arguments): Likewise.
10469 (arm_gdbarch_init): New function.
10470 (_initialize_arm_tdep): Call it.
10471 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10472 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10473 (FRAME_CHAIN_VALID): Delete.
10474 (arm_frame_chain_valid): Delete declaration.
10475 (PUSH_ARGUMENTS): Delete.
10476 (arm_push_arguments): Delete declaration.
10477 (CALL_DUMMY_P): Delete.
10478
9c9532c9
CV
104792002-02-08 Andrew Cagney <ac131313@redhat.com>
10480 Corinna Vinschen <vinschen@redhat.com>
10481
10482 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10483 on builtin float types.
10484
4e8f7a8b
DJ
104852002-02-08 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * utils.c: Include <curses.h> before "bfd.h".
10488 * tui/tui-hooks.c: Likewise.
10489 * tui/tui.c: Likewise.
10490 * tui/tuiCommand.c: Likewise.
10491 * tui/tuiData.c: Likewise.
10492 * tui/tuiDataWin.c: Likewise.
10493 * tui/tuiDisassem.c: Likewise.
10494 * tui/tuiGeneralWin.c: Likewise.
10495 * tui/tuiIO.c: Likewise.
10496 * tui/tuiLayout.c: Likewise.
10497 * tui/tuiRegs.c: Likewise.
10498 * tui/tuiSource.c: Likewise.
10499 * tui/tuiSourceWin.c: Likewise.
10500 * tui/tuiStack.c: Likewise.
10501 * tui/tuiWin.c: Likewise.
10502
cd4bffcf
EZ
105032002-02-07 Elena Zannoni <ezannoni@redhat.com>
10504
10505 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10506 to include space for pseudoregs as well. Update loops accordingly.
10507 (sh_fp_frame_init_saved_regs): Ditto.
10508 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10509
26806ce2
AC
105102002-02-07 Andrew Cagney <ac131313@redhat.com>
10511
10512 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10513 Add Richard Earnshaw to Arm maintainers.
10514
97fdab62
AC
105152002-02-07 Andrew Cagney <ac131313@redhat.com>
10516
a6b98203
AC
10517 * defs.h (warning_begin): Delete declaration.
10518
97fdab62
AC
10519 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10520 Delete macro.
10521
78b29b40
MS
105222002-02-07 Michael Snyder <msnyder@redhat.com>
10523
aaa38bb5 10524 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10525 Logic bug, remove misplaced else.
10526
d8849953
KD
105272002-02-07 Klee Dienes <klee@apple.com>
10528
10529 * fork-inferior.c (fork_inferior): Add '!' to the list of
10530 characters that need to be quoted when building a string for the
10531 shell. Quote '!' specifically with a backslash, since CSH chokes
10532 when trying to evaluate "str!str".
aaa38bb5 10533
095778a0
NC
105342002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10535
10536 * rdi-share/host.h: Only provide a typedef for bool if it is not
10537 defined.
10538
1900040c
MS
105392002-02-04 Michael Snyder <msnyder@redhat.com>
10540
10541 * breakpoint.h (enum bptype): Add new overlay event bp type.
10542 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10543
1900040c
MS
10544 * breakpoint.c (create_internal_breakpoint): New function.
10545 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10546 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10547 (create_thread_event_breakpoint): Ditto.
10548 (create_solib_event_breakpoint): Ditto.
10549 (create_overlay_event_breakpoint): New function.
10550 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10551 (update_breakpoints_after_exec): Delete and re-initialize
10552 overlay event breakpoints after an exec. Add FIXME comment
10553 about longjmp breakpoint.
10554 (print_it_typical): Ignore overlay event breakpoints.
10555 (print_one_breakpoint): Ditto.
10556 (mention): Ditto.
10557 (bpstat_what): Do not stop for overlay event breakpoints.
10558 (delete_breakpoint): Don't delete overlay event breakpoints.
10559 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10560 (breakpoint_re_set): Re-create overlay event breakpoint.
10561
10562 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10563 (overlay_manual_command): Disable overlay breakpoints.
10564 (overlay_off_command): Disable overlay breakpoints.
10565
082fc60d
RE
105662002-02-06 Richard Earnshaw <rearnsha@arm.com>
10567
10568 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10569 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10570 to here from config/tm-arm.h.
10571 (coff_sym_is_thumb): Make static.
10572 (arm_elf_make_msymbol_special): New function.
10573 (arm_coff_make_msymbol_special): New function.
10574 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10575 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10576 (coff_sym_is_thumb): Delete declaration.
10577 (arm_elf_make_msymbol_special): Declare.
10578 (arm_coff_make_msymbol_special): Declare.
10579 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10580 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10581
039c5766
RE
105822002-02-06 Richard Earnshaw <rearnsha@arm.com>
10583
10584 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10585
105862002-02-06 Richard Earnshaw <rearnsha@arm.com>
10587
10588 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10589 * gdbarch.c gdbarch.h: Regenerate.
10590 * arch-utils.c (default_print_float_info): New function.
10591 * arch-utils.h (default_print_float_info): Prototype it.
10592 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10593 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10594 (PRINT_FLOAT_INFO): Document it.
10595
10596 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10597 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10598 (PRINT_FLOAT_INFO): Define.
10599
58fa08f0
PM
106002002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10601
aaa38bb5 10602 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10603 Add typecast to sprintf argument to suppress a warning.
10604
7393af7c
PM
106052002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10606
58fa08f0 10607 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10608 to allow easier handling of pass state.
10609 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10610 that gives exception name and address.
10611 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10612 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10613 exceptions added.
aaa38bb5
AJ
10614 (child_continue): Correctly report continue_status.
10615 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10616 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10617 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10618 the exception should be passed to debuggee or not.
10619
6af4589c
MS
106202002-02-05 Michael Snyder <msnyder@redhat.com>
10621
10622 * regcache.c (fetch_register): Call target_fetch_register
10623 only if we don't call FETCH_PSEUDO_REGISTER.
10624 (store_register): Call target_store_register only if we
10625 don't call STORE_PSEUDO_REGISTER.
10626
a2cf933a
EZ
106272002-02-05 Elena Zannoni <ezannoni@redhat.com>
10628
10629 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10630 ELF_MAKE_MSYMBOL_SPECIAL.
10631 * gdbarch.c, gdbarch.h: Regenerate.
10632 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10633 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10634 * elfread.c (elf_symtab_read): Compile use of
10635 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10636 multiarched.
10637 * coffread.c (coff_symtab_read): Ditto, for
10638 COFF_MAKE_MSYMBOL_SPECIAL.
10639
6bb7be43
JB
106402002-02-05 Jim Blandy <jimb@redhat.com>
10641
10642 * solib-svr4.c (svr4_truncate_ptr): New function.
10643 (svr4_relocate_section_addresses): Do the address arithmetic with
10644 the appropriate truncation for target addresses, even when
10645 CORE_ADDR is larger than a target address.
10646
e18651ec
DJ
106472002-02-05 Daniel Jacobowitz <drow@mvista.com>
10648
10649 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10650 to (int *).
10651
6b2725be
DJ
106522002-02-05 Daniel Jacobowitz <drow@mvista.com>
10653
10654 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10655 code.
10656
fca9e603
DJ
106572002-02-05 Daniel Jacobowitz <drow@mvista.com>
10658
10659 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10660
6c537a52
DJ
106612002-02-05 Daniel Jacobowitz <drow@mvista.com>
10662
10663 * gdbserver/linux-low.c: Remove unused include files.
10664
d844cde6
DJ
106652002-02-05 Daniel Jacobowitz <drow@mvista.com>
10666
10667 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10668 (read_inferior_memory): Use it.
10669 (write_inferior_memory): Likewise.
10670
d07c63e7
DJ
106712002-02-05 Daniel Jacobowitz <drow@mvista.com>
10672
10673 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10674 grubbing through sys_errlist.
10675
da6d8c04
DJ
106762002-02-05 Daniel Jacobowitz <drow@mvista.com>
10677
10678 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10679
5b421780
PM
106802002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10681 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10682
9f60d481
AC
106832002-02-04 Andrew Cagney <ac131313@redhat.com>
10684
10685 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10686 (do_sfunc, set_cmd_sfunc): New functions.
10687
10688 * command.h (struct cmd_list_element): Add field func.
10689 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10690 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10691 * cli/cli-decode.h: Ditto.
10692
10693 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10694 (help_all, help_cmd_list): Ditto.
10695 (find_cmd, complete_on_cmdlist): Ditto.
10696 * top.c (execute_command): Ditto.
10697
10698 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10699 function.sfunc.
10700
10701 * infcmd.c (notice_args_read): Fix function signature.
10702
10703 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10704 * cli/cli-decode.c (add_set_cmd): Ditto.
10705 * utils.c (initialize_utils): Ditto.
10706 * maint.c (_initialize_maint_cmds): Ditto.
10707 * infrun.c (_initialize_infrun): Ditto.
10708 * demangle.c (_initialize_demangler): Ditto.
10709 * remote.c (add_packet_config_cmd): Ditto.
10710 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10711 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10712 * proc-api.c (_initialize_proc_api): Ditto.
10713 * kod.c (_initialize_kod): Ditto.
10714 * valprint.c (_initialize_valprint): Ditto.
10715 * top.c (init_main): Ditto.
10716 * infcmd.c (_initialize_infcmd): Ditto.
10717 * corefile.c (_initialize_core): Ditto.
10718 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10719 * arch-utils.c (initialize_current_architecture): Ditto.
10720 (_initialize_gdbarch_utils): Ditto.
10721 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10722
10723 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10724 * wince.c (_initialize_inftarg): Ditto.
10725 * symfile.c (_initialize_symfile): Ditto.
10726 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10727 * language.c (_initialize_language): Ditto.
10728 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10729
f9ba0717
MS
107302002-02-04 Michael Snyder <msnyder@redhat.com>
10731
10732 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10733
0c74b2a7
DJ
107342002-02-04 Daniel Jacobowitz <drow@mvista.com>
10735
10736 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10737 Add rules for building the register data files.
10738
c638789f
DJ
107392002-02-04 Daniel Jacobowitz <drow@mvista.com>
10740
10741 * regformats/regdat.sh: Add braces to the definition of
10742 expedite_regs_${arch}.
10743
db253027
DJ
107442002-02-04 Daniel Jacobowitz <drow@mvista.com>
10745
10746 * regformats/regdef.h (struct reg): Add comment describing the
10747 requirements for offset and size fields.
10748
206be19c
AS
107492002-02-04 Andreas Schwab <schwab@suse.de>
10750
10751 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10752 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10753
181c1381
RE
107542002-02-04 Richard Earnshaw <rearnsha@arm.com>
10755
10756 * gdbarch.sh (copyright): Update years in generated header.
10757 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10758 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10759 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10760 * dbxread.c: Likewise.
10761 * dwarfread.c: Likewise.
10762 * elfread.c: Likewise.
10763 * somread.c: Likewise.
10764
10765 * arm-tdep.c (arm_smash_text_address): New function.
10766 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10767
fa4ba8da
PM
107682002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10769
10770 Add support for hardware watchpoints on win32 native.
aaa38bb5 10771 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10772 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10773 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10774 of debug registers.
10775 (debug_registers_changed): New variable. Reflects when debug registers
10776 are changed and need to be written to inferior.
aaa38bb5 10777 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10778 was set, used when new threads are created.
10779 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10780 i386-nat code.
10781 (thread_rec): Set dr array if id is the thread of current_event .
10782 (child_continue, child_resume): Change the debug registers for all
10783 threads if debug_registers_changed.
10784 (child_add_thread): Change the debug registers if debug_registers_used.
10785 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10786 Link nm.h to new nm-cygwin.h file.
10787 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10788 of hardware registers.
10789
a73c86fb
AC
107902002-02-03 Andrew Cagney <ac131313@redhat.com>
10791
10792 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10793 Restore behavour broken by 2002-01-20 Andrew Cagney
10794 <ac131313@redhat.com> IEEE_FLOAT removal.
10795
acf5ed49
DJ
107962002-02-03 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * c-valprint.c (c_val_print): Pass a proper valaddr to
10799 cp_print_class_method.
10800 * valops.c (search_struct_method): If there is only one method
10801 and args is NULL, return that method.
10802
493d28d5
DJ
108032002-02-03 Daniel Jacobowitz <drow@mvista.com>
10804
10805 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10806 accessing tag_name directly.
10807
7495dfdb
DJ
108082002-02-03 Daniel Jacobowitz <drow@mvista.com>
10809
10810 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10811 of accessing tag_name directly.
10812
dd6bda65
DJ
108132002-02-03 Daniel Jacobowitz <drow@mvista.com>
10814
10815 PR gdb/280
10816 * gdbtypes.c (replace_type): New function.
10817 * gdbtypes.h (replace_type): Add prototype.
10818 * stabsread.c (read_type): Use replace_type.
10819
88fe217c
RE
108202002-02-03 Richard Earnshaw <rearnsha@arm.com>
10821
10822 * Makefile.in (memattr.o): Add missing dependencies rule.
10823
e5d66720
PS
108242002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10825
10826 * breakpoint.c (break_at_finish_command): Really export.
10827 (break_at_finish_at_depth_command): Ditto.
10828 (tbreak_at_finish_command): Ditto.
10829 * hppa-tdep.c: Include completer.h.
10830 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10831 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10832
fffee0be
AC
108332002-02-01 Andrew Cagney <ac131313@redhat.com>
10834
10835 * utils.c (do_write): New function.
10836 (error_stream): Rewrite combining the code from error_begin and
10837 verror.
10838 (verror): Rewrite using error_stream.
10839 (error_begin): Delete function.
10840
255e7dbf
AC
108412002-02-01 Andrew Cagney <ac131313@redhat.com>
10842
10843 * utils.c (error_begin): Make static.
10844 * defs.h (error_begin): Delete declaration.
10845
10846 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10847 (decode_line_1): Use cplusplus_error instead of error_begin,
10848 cplusplus_hint and return_to_top_level.
10849 * coffread.c (coff_symfile_read): Use error instead of error_begin
10850 and return_to_top_level.
10851 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10852
ddfe3c15
AC
108532002-02-01 Andrew Cagney <ac131313@redhat.com>
10854
10855 * language.h (type_error, range_error): Make string parameter
10856 constant.
10857 * language.c (warning_pre_print): Delete extern declaration.
10858 * dwarfread.c (warning_pre_print): Ditto.
10859 * language.c (type_error, range_error): Rewrite to use verror and
10860 vwarning instead of warning_begin.
10861
03ac34d5
MS
108622002-02-01 Michael Snyder <msnyder@redhat.com>
10863
261c4ca2
MS
10864 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10865 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10866
e00d1dc8
AC
108672002-02-01 Andrew Cagney <ac131313@redhat.com>
10868
10869 * command.h (NO_FUNCTION): Delete macro.
10870 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10871 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10872 * tracepoint.c (_initialize_tracepoint): Ditto.
10873 * cli/cli-decode.c (add_set_cmd): Ditto.
10874 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10875
76b79d6e
DJ
108762002-02-01 Daniel Jacobowitz <drow@mvista.com>
10877
10878 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10879 Update ``this'' pointer when calling virtual functions.
10880
799f9e91
MS
108812002-02-01 Michael Snyder <msnyder@redhat.com>
10882
c7bd442c 10883 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10884 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10885
3cf384d4
DJ
108862002-02-01 Daniel Jacobowitz <drow@mvista.com>
10887
10888 * regformats/reg-arm.dat: New file.
10889 * regformats/reg-i386.dat: New file.
10890 * regformats/reg-ia64.dat: New file.
10891 * regformats/reg-m68k.dat: New file.
10892 * regformats/reg-mips.dat: New file.
10893 * regformats/reg-ppc.dat: New file.
10894 * regformats/reg-sh.dat: New file.
10895 * regformats/regdef.h: New file.
10896 * regformats/regdat.sh: New file.
10897
0defa245
RE
108982002-02-01 Richard Earnshaw <reanrsha@arm.com>
10899
10900 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10901 (arm_frame_args_address, arm_frame_locals_address): New functions.
10902 (arm_frame_num_args): New function.
10903 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10904 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10905 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10906
405f26e6
MS
109072002-01-31 Michael Snyder <msnyder@redhat.com>
10908
502fd408
MS
10909 * breakpoint.c (break_at_finish_command): Export.
10910 (break_at_finish_at_depth_command): Export.
10911 (tbreak_at_finish_command): Export.
d6020d45 10912 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10913 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10914 "txbreak" commands, which are HPPA specific.
502fd408 10915
7d35e135
MS
10916 * printcmd.c (disassemble_command): Remove an ancient
10917 artifact of an old merge.
10918
aaa38bb5 10919 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10920 Define enum constant values for overlay mode.
10921 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10922 (overlay_is_mapped, overlay_auto_command,
10923 overlay_manual_command): Ditto.
d874f1e2 10924
aaa38bb5
AJ
10925 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10926 breakpoint_here_p, breakpoint_inserted_here_p,
10927 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10928 describe_other_breakpoints, check_duplicates, clear_command):
10929 Coding standard fixes.
10930
8add0441 10931 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10932 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10933 code: check bfd SEC_READONLY flag for section.
10934
e351066e
AC
109352002-01-31 Andrew Cagney <ac131313@redhat.com>
10936
7d35e135 10937 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10938
8a48e967
DJ
109392002-01-30 Daniel Jacobowitz <drow@mvista.com>
10940
10941 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10942 data symbols, since we search based on textlow and texthigh.
10943 (find_pc_sect_symtab): Likewise.
10944
f5a96129
AC
109452002-01-30 Andrew Cagney <ac131313@redhat.com>
10946
10947 * defs.h (vwarning): Declare.
f5a96129
AC
10948 * utils.c (vwarning): New function.
10949 (warning): Call vwarning.
10950 (warning_begin): Delete function.
10951
10952 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10953 the warning message.
10954 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10955 warning_begin.
10956
cefd4ef5
MS
109572002-01-30 Michael Snyder <msnyder@redhat.com>
10958
1a703748
MS
10959 * NEWS: Mention "set trust-readonly-sections" command.
10960 Mention generate-core-file command.
cefd4ef5 10961
3a11626d
MS
109622002-01-15 Michael Snyder <msnyder@redhat.com>
10963
10964 * target.c: New command, "set trust-readonly-sections on".
10965 (do_xfer_memory): Honor the suggestion to trust readonly sections
10966 by reading them from the object file instead of from the target.
10967 (initialize_targets): Register command "set trust-readonly-sections".
10968
d1c7e53b
AC
109692002-01-29 Andrew Cagney <ac131313@redhat.com>
10970
10971 * parse.c (target_map_name_to_register): Simplify, search regs and
10972 pseudo-regs using a single loop.
10973
e2c9a72c
AC
109742002-01-30 Andrew Cagney <ac131313@redhat.com>
10975
10976 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10977
69824b4e
MK
109782002-01-15 Rodney Brown <rbrown64@csc.com.au>
10979
10980 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10981 * config/i386/i386v42mp.mh: Add i387-nat.o .
10982 * i386v4-nat.c: Include i387-nat.h.
10983 (supply_fpregset): Use i387_supply_fsave.
10984 (fill_fpregset): Use i387_fill_fsave.
10985
6eb69eab
RE
109862002-01-30 Richard Earnshaw <rearnsha@arm.com>
10987
10988 * arm-tdep.c (arm_call_dummy_words): Define.
10989 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10990 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10991 (CALL_DUMMY_WORDS): Define.
10992 (arm_call_dummy_words): Declare.
10993 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10994 (arm_linux_call_dummy_words): Declare.
10995
9852326a
AS
109962002-01-30 Andreas Schwab <schwab@suse.de>
10997
10998 * m68klinux-nat.c: Fix last change to use regcache_collect
10999 instead of referencing registers[] directly.
11000
977a3030
AC
110012002-01-29 Andrew Cagney <ac131313@redhat.com>
11002
11003 * parse.c (target_map_name_to_register): Delete code wrapped in
11004 #ifdef REGISTER_NAME_ALIAS_HOOK.
11005
2076c72b
MS
110062002-01-28 Michael Snyder <msnyder@redhat.com>
11007
11008 * regcache.c (legacy_read_register_gen): Need to be able to
11009 read pseudo-register as well as real register.
11010 (legacy_write_register_gen): Ditto.
11011
8fcc723b
AC
110122002-01-28 Andrew Cagney <ac131313@redhat.com>
11013
11014 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11015 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11016 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11017 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11018 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11019 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11020 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11021 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11022 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11023 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11024 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11025 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11026 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11027 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11028 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11029 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11030 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11031 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11032 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11033 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11034
afe64c1a
AC
110352002-01-28 Andrew Cagney <ac131313@redhat.com>
11036
11037 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11038 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11039 (initialize_current_architecture): Update target_byte_order using
11040 information from BFD.
aaa38bb5 11041 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11042 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11043
75bc7ddf
AC
110442002-01-28 Andrew Cagney <ac131313@redhat.com>
11045
11046 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11047 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11048
11049 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11050 #ifdef INVALID_FLOAT.
11051 * infcmd.c (do_registers_info): Ditto.
11052 * values.c (unpack_double): Ditto. Add comment.
11053
11054 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11055 already commented out.
11056
0280a90a
AS
110572002-01-26 Andreas Schwab <schwab@suse.de>
11058
11059 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11060 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11061 registers and add support for PTRACE_GETREGS.
11062
7072a954
AC
110632002-01-24 Andrew Cagney <ac131313@redhat.com>
11064
11065 GDB 5.1.1 released from 5.1 branch.
11066 * NEWS: Add 5.1.1 news.
11067 * README: Sync with 5.1 branch.
11068
86f902e0
FF
110692002-01-23 Fred Fish <fnf@redhat.com>
11070
11071 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11072 stabstring on initial malloc. Reallocing will copy it for us,
11073 if necessary.
11074
8af51c36
EZ
110752002-01-23 Elena Zannoni <ezannoni@redhat.com>
11076
aaa38bb5 11077 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11078 (HFILES_NO_SRCDIR): Remove hpread.h.
11079 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11080 (hpread.o): Update dependencies.
11081 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11082
11083 * hp-psymtab-read.c: Remove file.
11084 * hp-symtab-read.c: Remove file.
11085 * hpread.h: Remove file.
11086
11087 * hpread.c: Merge all contents of hp-psymtab-read.c,
11088 hp-symtab-read.c and hpread.h into this file, as it was prior to
11089 January 1999.
11090
11091 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11092 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11093 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11094 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11095
dc5cfeb6
EZ
110962002-01-23 Elena Zannoni <ezannoni@redhat.com>
11097
11098 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11099 fill_gregset): Call gdbarch_tdep() just once, assign result to
11100 variable and use that, instead of calling the function several
11101 times.
11102
ea87b71b
AO
111032002-01-24 Alexandre Oliva <aoliva@redhat.com>
11104
11105 * configure.host: Accept sparcv9 as alias for sparc64.
11106 * configure.tgt: Likewise.
11107
13fc0c2f
KB
111082002-01-22 Kevin Buettner <kevinb@redhat.com>
11109
11110 * solib-aix5.c (build_so_list_from_mapfile)
11111 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11112 arguments is not reversed.
11113 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11114 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11115
7bd872fe
EZ
111162002-01-22 Elena Zannoni <ezannoni@redhat.com>
11117
11118 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11119 modified version of obsolete sh_fetch_pseudo_register.
11120 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11121 (sh4_register_read): New function.
11122 (sh_pseudo_register_write): New function. Renamed and modified
11123 version of obsolete sh_store_pseudo_register.
11124 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11125 (sh4_register_write): New function.
11126 (sh_gdbarch_init): Remove setting of gdbarch function
11127 fetch_pseudo_register and store_pseudo_register. Remove setting of
11128 register_convert_to_raw, register_convert_to_virtual,
11129 register_convertible.
11130 (sh_sh4_register_convertible): Delete. No longer needed. All is
11131 taken care by architecture specific functions
11132 register_read/register_write.
11133 (sh_sh4_register_convert_to_virtual): Make static.
11134 (sh_sh4_register_convert_to_raw): Ditto.
11135
069e84fd
AC
111362002-01-22 Andrew Cagney <ac131313@redhat.com>
11137
11138 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11139 (floatformat_is_nan, floatformat_mantissa): Ditto.
11140
11141 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11142 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11143 builtin_type_ieee_double_little,
11144 builtin_type_ieee_double_littlebyte_bigword,
11145 builtin_type_m68881_ext, builtin_type_i960_ext,
11146 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11147 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11148 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11149 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11150
211a4f69
CV
111512002-01-22 Corinna Vinschen <vinschen@redhat.com>
11152
11153 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11154 parameter. Set frameless flag if it exists and depended of
11155 whether the scanned function is frameless or not.
11156 (xstormy16_skip_prologue): If function is frameless, return
11157 result of xstormy16_scan_prologue().
11158 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11159 call.
11160
f81353e4
EZ
111612002-01-21 Elena Zannoni <ezannoni@redhat.com>
11162
11163 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11164 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11165 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11166 sh_sh4_register_byte, sh_sh4_register_raw_size,
11167 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11168 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11169 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11170 sh_store_pseudo_register, sh_do_pseudo_register): Call
11171 gdbarch_tdep() just once, assign result to variable and use that,
11172 instead of calling the function several times.
11173
63c73a17
MK
111742002-01-20 Mark Kettenis <kettenis@gnu.org>
11175
11176 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11177 macros instead of LAST_FPU_CTRL_REGNUM.
11178 (store_register): Likewise.
11179
39ad761d
JB
111802002-01-21 Jim Blandy <jimb@redhat.com>
11181
11182 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11183 is up-to-date before running the program, not just when a program
11184 exits.
11185
3d74b771
FF
111862002-01-21 Fred Fish <fnf@redhat.com>
11187
11188 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11189 when we have found all instructions we are looking for.
11190
966fbf70
RE
111912002-01-21 Richard Earnshaw <rearnsha@arm.com>
11192
11193 * arm-tdep.c (arm_register_name): New function.
11194 (arm_registers_names): Make static.
11195 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11196 (arm_register_name): Declare.
11197 (REGISTER_NAME): Use it.
11198
c3b4394c
RE
111992002-01-21 Richard Earnshaw <rearnsha@arm.com>
11200 Kevin Buettner <kevinb@redhat.com>
11201
11202 Convert arm targets to new FRAME interface.
11203 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11204 (arm_frame_find_save_regs): Delete.
11205 (arm_frame_init_saved_regs): New.
11206 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11207 Allocate extra_info as required. Convert all uses of fsr.regs
11208 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11209 to use extra_info.
11210 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11211 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11212 (check_prologue_cache, save_prologue_cache): Likewise.
11213 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11214 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11215 (FRAME_FIND_SAVED_REGS): Delete.
11216 (arm_frame_find_saved_regs): Delete prototype.
11217 (arm_frame_init_saved_regs): New prototype.
11218 (FRAME_INIT_SAVED_REGS): Define.
11219
61d99182
AC
112202002-01-20 Andrew Cagney <ac131313@redhat.com>
11221
11222 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11223
6aaea291
AC
112242002-01-20 Andrew Cagney <ac131313@redhat.com>
11225
11226 From Jeff Law <law@redhat.com>:
11227 * infttrace.c: Include <sys/pstat.h>.
11228 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11229 exec file if the ttrace equivalent fails.
11230
15f698d2
AC
112312002-01-20 Andrew Cagney <ac131313@redhat.com>
11232
11233 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11234 (closeLogFile): Ditto.
11235
f86ddd7c
MC
112362002-01-20 Michael Chastain <mec@shout.net>
11237
11238 * top.c (print_gdb_version): Bump copyright year to 2002.
11239
904507ce
AC
112402002-01-20 Andrew Cagney <ac131313@redhat.com>
11241
11242 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11243 Zannoni and Eli Zaretskii.
11244
d7f0b9ce
DJ
112452002-01-20 Daniel Jacobowitz <drow@mvista.com>
11246
11247 * buildsym.c: Update copyright years.
11248 * c-typeprint.c: Likewise.
11249 * dwarf2read.c: Likewise.
11250 * f-typeprint.c: Likewise.
11251 * gdbtypes.c: Likewise.
11252 * gdbtypes.h: Likewise.
11253 * hp-symtab-read.c: Likewise.
11254 * hpread.c: Likewise.
11255 * mdebugread.c: Likewise.
11256 * p-typeprint.c: Likewise.
11257
3fd3d7d2
AC
112582002-01-20 Andrew Cagney <ac131313@redhat.com>
11259
11260 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11261 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11262 byte-order selectable.
11263 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11264 * arch-utils.c: Ditto.
11265 (set_endian): Ditto.
11266 (set_endian_from_file): Ditto.
11267 * gdbserver/low-sim.c (create_inferior): Ditto.
11268 * gdbarch.sh: Ditto.
11269 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11270 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11271 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11272 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11273 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11274 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11275 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11276 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11277 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11278 macro definition.
11279 * config/mips/tm-wince.h: Remove #undef of macro
11280 TARGET_BYTE_ORDER_SELECTABLE.
11281 * config/sh/tm-wince.h: Ditto.
11282
b02dede2
DJ
112832002-01-20 Daniel Jacobowitz <drow@mvista.com>
11284
11285 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11286 member function fields. Add accessor macro
11287 TYPE_FN_FIELD_ARTIFICIAL.
11288 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11289 * c-typeprint.c (c_type_print_base): Skip artificial member
11290 functions.
11291
c3643761
DJ
112922002-01-20 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * f-typeprint.c: Delete unused function f_type_print_args.
11295 * p-typeprint.c: Delete unused function pascal_type_print_args.
11296
8176bb6d
DJ
112972002-01-20 Daniel Jacobowitz <drow@mvista.com>
11298
11299 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11300 comment. Add ``artificial'' to ``union field_location''.
11301
11302 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11303
11304 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11305 * mdebugread.c (parse_symbol): Likewise.
11306 * stabsread.c (define_symbol): Likewise.
11307 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11308 initializing TYPE_FIELD_BITPOS to n (obsolete).
11309 (hpread_doc_function_type): Likewise.
11310 * hpread.c (hpread_function_type): Likewise.
11311
7fd60527
AC
113122002-01-20 Andrew Cagney <ac131313@redhat.com>
11313
11314 * configure.in (host_makefile_frag): Only require a host makefile
11315 fragment when a native build.
11316 * configure: Re-generate.
11317
c2f05ac9
AC
113182002-01-20 Andrew Cagney <ac131313@redhat.com>
11319
11320 * doublest.h (floatformat_from_type): Declare.
11321 * doublest.c (floatformat_from_type): New function.
11322 (convert_typed_floating): Use.
11323
11324 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11325 call to function floatformat_from_type.
11326
11327 * gdbarch.sh (IEEE_FLOAT): Delete.
11328 * gdbarch.h, gdbarch.c: Re-generate.
11329 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11330 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11331 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11332 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11333 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11334 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11335 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11336 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11337 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11338 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11339 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11340 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11341
11342 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11343 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11344 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11345 * sh-tdep.c (sh_gdbarch_init): Ditto.
11346 * mips-tdep.c (mips_gdbarch_init): Ditto.
11347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11348 * cris-tdep.c (cris_gdbarch_init): Ditto.
11349
abf22e64
AJ
113502002-01-20 Jiri Smid <smid@suse.cz>
11351
11352 * configure.host, configure.tgt: Support x86-64.
11353 * NEWS: Note new target x86-64.
11354
b7c4cbf8
AJ
11355 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11356 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11357 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11358 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11359 x86-64-linux-nat.o): Fix dependencies.
11360
82600034
AC
113612002-01-19 Andrew Cagney <ac131313@redhat.com>
11362
11363 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11364 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11365 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11366 * config/sparc/xm-sun4os4.h: Delete file.
11367 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11368
bbe5c628
AC
113692002-01-19 Andrew Cagney <ac131313@redhat.com>
11370
11371 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11372 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11373 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11374 * config/i386/i386lynx.mh (XM_FILE): Delete.
11375 * config/rs6000/xm-rs6000ly.h: Delete file.
11376 * config/sparc/xm-sparclynx.h: Delete file.
11377 * config/m68k/xm-m68klynx.h: Delete file.
11378 * config/i386/xm-i386lynx.h: Delete file.
11379 * config/xm-lynx.h: Delete file.
11380 * config/djgpp/fnchange.lst: Update.
11381
f8453e34
JT
113822002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11383
11384 * alpha-tdep.c (alpha_register_byte): New function.
11385 (alpha_register_raw_size): Ditto.
11386 (alpha_register_virtual_size): Ditto.
11387 (alpha_skip_prologue_internal): Renamed from
11388 alpha_skip_prologue.
11389 (alpha_skip_prologue): New version that calls
11390 alpha_skip_prologue_internal.
11391 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11392 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11393 second argument from alpha_skip_prologue.
11394 (REGISTER_BYTE): Use alpha_register_byte.
11395 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11396 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11397 (FRAMELESS_FUNCTION_INVOCATION): Use
11398 generic_frameless_function_invocation_not.
11399 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11400 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11401
52d9e613
AC
114022002-01-19 Andrew Cagney <ac131313@redhat.com>
11403
11404 * config/mips/xm-news-mips.h: Delete file.
11405 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11406
11407 * config/m88k/xm-m88k.h: Delete file.
11408 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11409 * config/m88k/xm-delta88v4.h: Ditto.
11410 * config/m88k/xm-delta88.h: Ditto.
11411
11412 * config/alpha/xm-fbsd.h: Delete file.
11413 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11414
11415 * config/sparc/xm-sparc.h: Delete file.
11416 * Makefile.in (xm-sun4os4.h): Delete dependency.
11417 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11418 * config/sparc/xm-sun4os4.h: Ditto.
11419 * config/sparc/xm-linux.h: Ditto.
11420
11421 * config/i386/xm-windows.h: Delete file.
11422
2d1b2124
AC
114232002-01-19 Andrew Cagney <ac131313@redhat.com>
11424
11425 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11426 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11427
ee1f65f0
JT
114282002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11429
11430 * alpha-tdep.c (alpha_call_dummy_words): New.
11431 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11432 (CALL_DUMMY_P): Define.
11433 (CALL_DUMMY_WORDS): Define.
11434 (SIZEOF_CALL_DUMMY_WORDS): Define.
11435
98081e55
PB
114362002-01-19 Per Bothner <per@bothner.com>
11437
11438 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11439 isn't NULL, which can happen with some gcj-3.x-produced code.
11440
0d056799
JT
114412002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11442
11443 * alpha-tdep.c (alpha_register_virtual_type): New function.
11444 (alpha_init_frame_pc_first): Ditto.
11445 (alpha_fix_call_dummy): Ditto.
11446 (alpha_store_struct_return): Ditto.
11447 (alpha_extract_struct_value_address): Ditto.
11448 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11449 alpha_register_virtual_type.
11450 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11451 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11452 alpha_extract_struct_value_address.
11453 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11454 (INIT_FRAME_PC): Use init_frame_pc_noop.
11455 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11456
4604bcad
MK
114572002-01-19 Mark Kettenis <kettenis@gnu.org>
11458
11459 * i386gnu-nat.c: Include "i386-tdep.h".
11460 (fetch_fpregs): Simplify code dealing with uninitialized floating
11461 point states such that it doesn't require FP7_REGNUM.
11462
140f9984
JT
114632002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11464
abf22e64
AJ
11465 * alpha-tdep.c (frame_extra_info): New.
11466 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11467 frame->extra_info.
11468 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11469 (alpha_frame_saved_pc): Use frame->extra_info.
11470 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11471 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11472 (init_extra_frame_info): Rename to...
11473 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11474 (alpha_print_extra_frame_info): New function.
140f9984
JT
11475 (alpha_frame_locals_address): Ditto.
11476 (alpha_frame_args_address): Ditto.
abf22e64 11477 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11478 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11479 alpha_frame_args_address.
abf22e64 11480 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11481 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11482 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11483 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11484 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11485 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11486
d734c450
JT
114872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11488
11489 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11490 (alpha_cannot_fetch_register): Ditto.
11491 (alpha_cannot_store_register): Ditto.
11492 (alpha_register_convertible): Ditto.
11493 (alpha_use_struct_convention): Ditto.
11494 * config/alpha/tm-alpha.h: Update copyright years.
11495 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11496 (INNER_THAN): Use core_addr_lessthan.
11497 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11498 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11499 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11500 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11501 (FRAME_CHAIN): Remove unnecessary cast.
11502
b4ceaee6
AC
115032002-01-18 Andrew Cagney <ac131313@redhat.com>
11504
11505 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11506 obsolete.
11507
0a65a603
AC
115082002-01-18 Andrew Cagney <ac131313@redhat.com>
11509
11510 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11511 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11512 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11513 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11514 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11515 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11516 * x86-64-linux-nat.c: Ditto.
11517
636a6dfc
JT
115182002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11519
abf22e64 11520 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11521 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11522 (REGISTER_NAME): Define.
11523
acceddb6
JT
115242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11525
11526 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11527
ec32e4be
JT
115282002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11529
11530 * alpha-tdep.c: Update copyright years.
11531 (alpha_next_pc): New function.
11532 (alpha_software_single_step): Ditto.
11533 * config/alpha/tm-alpha.h: Add prototype for
11534 alpha_software_single_step.
11535
e771a871
JT
115362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11537
11538 * alphabsd-nat.c: Update copyright years.
11539 (fill_gregset): Use regcache_collect.
11540 (fill_fpregset): Likewise.
11541 (fetch_inferior_registers): Only fetch integer registers
11542 if requested to do so.
11543 (store_inferior_registers): Only store integer registers
11544 if requested to do so.
11545
7708fa01
AC
115462002-01-17 Andrew Cagney <ac131313@redhat.com>
11547
11548 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11549 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11550 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11551 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11552 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11553 * config/arm/linux.mh (XDEPFILES): Delete.
11554 * config/arm/nbsd.mh (XDEPFILES): Delete.
11555 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11556 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11557 * config/i386/i386m3.mh (XDEPFILES): Delete.
11558 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11559 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11560 * config/i386/fbsd.mh (XDEPFILES): Delete.
11561 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11562 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11563 * config/i386/i386v4.mh (XDEPFILES): Delete.
11564 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11565 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11566 * config/i386/i386aix.mh (XDEPFILES): Delete.
11567 * config/i386/go32.mh (XDEPFILES): Delete.
11568 * config/i386/cygwin.mh (XDEPFILES): Delete.
11569 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11570 * config/i386/i386mach.mh (XDEPFILES): Delete.
11571 * config/i386/i386v32.mh (XDEPFILES): Delete.
11572 * config/i386/linux.mh (XDEPFILES): Delete.
11573 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11574 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11575 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11576 * config/i386/i386sco.mh (XDEPFILES): Delete.
11577 * config/i386/i386v.mh (XDEPFILES): Delete.
11578 * config/i386/nbsd.mh (XDEPFILES): Delete.
11579 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11580 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11581 * config/i386/symmetry.mh (XDEPFILES): Delete.
11582 * config/i386/obsd.mh (XDEPFILES): Delete.
11583 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11584 * config/ia64/linux.mh (XDEPFILES): Delete.
11585 * config/ia64/aix.mh (XDEPFILES): Delete.
11586 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11587 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11588 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11589 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11590 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11591 * config/m68k/linux.mh (XDEPFILES): Delete.
11592 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11593 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11594 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11595 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11596 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11597 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11598 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11599 * config/m88k/delta88.mh (XDEPFILES): Delete.
11600 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11601 * config/m88k/m88k.mh (XDEPFILES): Delete.
11602 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11603 * config/mips/linux.mh (XDEPFILES): Delete.
11604 * config/mips/irix6.mh (XDEPFILES): Delete.
11605 * config/mips/irix5.mh (XDEPFILES): Delete.
11606 * config/mips/irix4.mh (XDEPFILES): Delete.
11607 * config/mips/irix3.mh (XDEPFILES): Delete.
11608 * config/mips/decstation.mh (XDEPFILES): Delete.
11609 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11610 (NATDEPFILES): Move core-aout.o to here.
11611 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11612 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11613 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11614 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11615 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11616 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11617 * config/pa/hpux11.mh (XDEPFILES): Delete.
11618 * config/powerpc/aix.mh (XDEPFILES): Delete.
11619 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11620 * config/powerpc/linux.mh (XDEPFILES): Delete.
11621 * config/romp/rtbsd.mh: Rename XDEPFILES.
11622 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11623 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11624 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11625 * config/s390/s390.mh (XDEPFILES): Delete.
11626 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11627 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11628 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11629 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11630 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11631 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11632 * config/sparc/linux.mh (XDEPFILES): Delete.
11633 * config/vax/vaxult.mh (XDEPFILES): Delete.
11634 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11635 * Makefile.in (DEPFILES): Remove XDEPFILES.
11636
375fc983
AC
116372002-01-17 Andrew Cagney <ac131313@redhat.com>
11638
11639 * utils.c (internal_verror): Fix comments, default is yes not no.
11640 Update queries to match. Default to quit and dump core.
11641
8926118c
AC
116422002-01-17 Andrew Cagney <ac131313@redhat.com>
11643
11644 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11645 copyright.
11646 * defs.h, event-top.c, gdbcmd.h: Ditto.
11647 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11648 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11649 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11650 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11651 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11652 * mi/mi-main.c:Ditto.
11653
11654 * stack.c, symfile.c: Update copyright.
11655
45b7b345
DJ
116562002-01-17 Daniel Jacobowitz <drow@mvista.com>
11657
db728ff7
DJ
11658 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11659 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11660 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11661 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11662
db728ff7
DJ
116632002-01-17 Daniel Jacobowitz <drow@mvista.com>
11664
11665 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11666 * gdbserver/low-lynx.c (myattach): Likewise.
11667 * gdbserver/low-nbsd.c (myattach): Likewise.
11668 * gdbserver/low-sim.c (myattach): Likewise.
11669 * gdbserver/low-sparc.c (myattach): Likewise.
11670 * gdbserver/low-sun3.c (myattach): Likewise.
11671
11672 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11673
db728ff7 11674 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11675 (main): Handle "--attach".
11676
8de3c354
AC
116772002-01-16 Andrew Cagney <ac131313@redhat.com>
11678
11679 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11680 maintainer.
11681
b0129042
DJ
116822002-01-15 Daniel Jacobowitz <drow@mvista.com>
11683
11684 * c-typeprint.c (is_type_conversion_operator): Add additional
11685 check for non-conversion operators.
11686
ba8679fb 116872002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11688
11689 * linux-proc.c: Add "info proc" command, a la procfs.c.
11690 (read_mapping): New function, abstract and re-use code.
11691 (linux_find_memory_regions): Use new func read_mapping.
11692 (linux_info_proc_cmd): New function, implement "info proc".
11693 (_initialize_linux_proc): Add new command "info proc".
11694
e4f9b4d5
MS
116952002-01-15 Michael Snyder <msnyder@redhat.com>
11696
11697 * symfile.c (generic_load): Use bfd_map_over_sections method
11698 instead of manipulating bfd structure members directly.
11699 (add_section_size_callback): New function, bfd sections callback
11700 used by generic_load.
11701 (load_sections_callback): New function, bfd sections callback
11702 used by generic_load.
11703
08cf96df
EZ
117042002-01-15 Elena Zannoni <ezannoni@redhat.com>
11705
abf22e64 11706 [Based on work by Jim Blandy]
08cf96df
EZ
11707 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11708 (builtin_type_vec128): Export.
11709 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11710 types.
11711 (builtin_type_vec128): New builtin type for 128 bit vector
11712 registers.
11713 (build_gdbtypes): Initialize builtin_type_v16qi and
11714 builtin_type_v8hi. Create the vec128 register builtin type
11715 structure.
11716 (build_builtin_type_vec128): New function.
abf22e64 11717 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11718 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11719 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11720 AltiVec register to new builtin type.
11721
d7242108
DJ
117222001-01-15 Daniel Jacobowitz <drow@mvista.com>
11723
11724 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11725 to make_cv_type.
11726
4ee3352d
AC
117272002-01-14 Andrew Cagney <ac131313@redhat.com>
11728
11729 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11730 CLEAN_UP_REGISTER_VALUE.
11731 * regcache.c (supply_register): Update only call.
11732
f015b2e7
AC
117332002-01-14 Andrew Cagney <ac131313@redhat.com>
11734
11735 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11736 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11737 a29k-*-vxworks* targets as obsolete.
11738
356ae49d
MS
117392002-01-14 Michael Snyder <msnyder@redhat.com>
11740
11741 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11742 until we can resolve portability issues.
11743 * gregset.h: Remove references to fpxregs.
11744 * gcore.c (gcore_command): Initialize note_sec to NULL.
11745
ade8f45e
AC
117462002-01-13 Andrew Cagney <ac131313@redhat.com>
11747
11748 * signals.c (target_signal_to_name): Rewrite. Only use
11749 signals[].name when in bounds and non-NULL.
abf22e64 11750
89c49e7a
AC
117512002-01-13 Andrew Cagney <ac131313@redhat.com>
11752
11753 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11754 * signals.c (target_signal_to_name): Verify that SIG is within the
11755 bounds of the signals array.
11756
4daa9f9f
AC
117572002-01-13 Andrew Cagney <ac131313@redhat.com>
11758
11759 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11760
ba4bbdcb
KS
117612002-01-13 Keith Seitz <keiths@redhat.com>
11762
11763 * stack.c (print_frame_info_base): Print the frame's pc
11764 only if when print_frame_info_listing_hook is not defined.
11765
575bbeb6
KS
117662002-01-13 Keith Seitz <keiths@redhat.com>
11767
11768 * varobj.c (varobj_set_value): Make sure that there were no
11769 errors evaluating the object before attempting to set its
11770 value.
11771 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11772 so this offset adjustment is no longer necessary.
11773 (create_child): Don't set the error flag if the child is
11774 a CPLUS_FAKE_CHILD.
11775 (value_of_child): If value_fetch_lazy fails, return NULL
11776 so that callers will be notified that an error occurred.
11777 (c_value_of_variable): Delay check of variable's validity
11778 until later. We actually want all structs and unions to have
11779 the value "{...}".
11780 Do not return "???" for variables which could not be evaluated.
11781 This error condition must be returned to the caller so that it
11782 can get the error condition from gdb.
11783 (cplus_name_of_child): Adjust index for vptr before figuring
11784 out the name of the child.
11785 (cplus_value_of_child): If a child's (real) parent is not valid,
11786 don't even bother trying to give a value for it. Just return
11787 an error. Change all instances in this function.
11788 (cplus_type_of_child): If our parent is one of the "fake"
11789 parents, we need to get at the type of the real parent, and
11790 derive the child's true type using this information.
11791
b76898ab
AC
117922002-01-13 Andrew Cagney <ac131313@redhat.com>
11793
11794 From 2002-01-09 John Marshall <johnm@falch.net>:
11795 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11796 sources.redhat.com, and tweak some related URLs which had
11797 suffered from linkrot.
11798
b6649e88
AC
117992002-01-13 Andrew Cagney <ac131313@redhat.com>
11800
11801 From Jeff law:
11802 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11803 structures passed in registers.
11804
82cc5033
EZ
118052002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11806
11807 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11808 white space which prevented compilation. Reported by DSK
11809 <dsk@student.unsw.edu.au>.
11810
ba5f2f8a
MS
118112002-01-11 Michael Snyder <msnyder@redhat.com>
11812
fbd35540
MS
11813 * symfile.c (build_section_addr_info_from_section_tab):
11814 Use bfd access method instead of manipulating bfd directly.
11815 (syms_from_objfile): Ditto.
11816 (simple_overlay_update_1): Ditto.
11817 (simple_overlay_update): Ditto.
11818 (generic_load): Ditto.
11819 (overlay_unmapped_address): FIXME comment, bfd access methods.
11820 (sections_overlap): FIXME comment, bfd access methods.
11821 (pc_in_mapped_range): FIXME comment, bfd access methods.
11822 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11823 (section_is_mapped): FIXME comment, bfd access methods.
11824 (section_is_overlay): FIXME comment, bfd access methods.
11825
ba5f2f8a
MS
11826 * symfile.c (generic_load): Whitespace and long line cleanups.
11827 Remove duplicate variable, change several local variables to
11828 more appropriate data types.
11829 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11830
17df2af6
AC
118312002-01-12 Andrew Cagney <ac131313@redhat.com>
11832
11833 From Peter Schauer:
11834 * language.c (longest_local_hex_string_custom): Use phex_nz to
11835 convert NUM to a hex string.
11836
ec920329
EZ
118372002-01-12 Elena Zannoni <ezannoni@redhat.com>
11838
11839 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11840 the function.
538a76d6 11841 Update Copyright year.
ec920329 11842
3abd2e01
AC
118432002-01-12 Andrew Cagney <ac131313@redhat.com>
11844
11845 * language.c (longest_raw_hex_string): Delete unused function.
11846
b21b22e0
PS
118472002-01-11 Petr Sorfa <petrs@caldera.com>
11848
11849 * MAINTAINERS (write-after-approval): Add myself.
11850 * dwarf2read.c (read_tag_string_type): Handling of
11851 DW_AT_byte_size.
11852 (read_tag_string_type): FORTRAN fix to prevent propagation of
11853 first string size.
11854 (set_cu_language): Handling of DW_LANG_Fortran95
11855
747fe712
RE
118562002-01-11 Richard Earnshaw <rearnsha@arm.com>
11857
11858 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11859 GETPID(inferior_ptid).
11860 (store_inferior_registers): Likewise.
11861
f1bea926
JM
118622002-01-10 Jason Merrill <jason@redhat.com>
11863
11864 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11865 Fix DW_OP_minus.
11866
ae940673
AC
118672002-01-10 Andrew Cagney <ac131313@redhat.com>
11868
11869 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11870 and bfd/elf32-sh-nbsd.c.
11871
00546b04
MS
118722002-01-10 Michael Snyder <msnyder@redhat.com>
11873
352ed7b4
MS
11874 * NEWS: Mention --pid and corefile/proc-id behavior change.
11875
c18be923
MS
11876 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11877 * gcore.c: Include cli/cli-decode.h instead of command.h.
11878
00546b04
MS
11879 * main.c (captured_main): Add new command line option "--pid".
11880 If the second command line argument (following the symbol-file)
11881 begins with a digit, try to attach to it before trying to open
11882 it as a corefile.
11883 (print_gdb_help): Document the "--pid" argument.
11884
db60ec62
EZ
118852002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11886
11887 * completer.c (command_completer): New function.
11888
11889 * completer.h <command_completer>: Add prototype.
11890
11891 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11892 completer for the "help" command.
11893
39c22d1a
JM
118942002-01-09 Jason Merrill <jason@redhat.com>
11895
11896 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11897
c564377f
MS
118982002-01-09 Michael Snyder <msnyder@redhat.com>
11899
975aec09
MS
11900 * i386-linux-nat.c (fill_fpxregset): Make global.
11901 (store_fpxregset): Ditto.
11902
db4a10fa
MS
11903 * gregset.h (gdb_fpxregset_t): Define.
11904 (supply_fpxregset): Prototype.
11905 (fill_fpxregset): Prototype.
11906
c564377f
MS
11907 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11908
c3d45d70
RE
119092002-01-09 Richard Earnshaw <rearnsha@arm.com>
11910
11911 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11912 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11913 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11914
fcc87af1
AC
119152002-01-09 Andrew Cagney <ac131313@redhat.com>
11916
11917 * MAINTAINERS: Update target maintainer rules so that any
11918 Maintainer can approve a tested patch for a maintenance-only
11919 target.
11920
dd96c05b
RE
119212002-01-09 Richard Earnshaw <rearnsha@arm.com>
11922
d4297db9 11923 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11924
d4297db9 11925 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11926 IN_SIGTRAMP.
11927
145fdc6e
MS
119282002-01-08 Michael Snyder <msnyder@redhat.com>
11929
11930 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11931 real name of the executable, rather than the /proc name.
11932
be4d1333
MS
119332002-01-03 Michael Snyder <msnyder@redhat.com>
11934
11935 Implement a "generate-core-file" command in gdb, save target state.
11936 * gcore.c: New file. Implement new command 'generate-core-file'.
11937 Save a corefile image of the current state of the inferior.
11938 * linux-proc.c: Add linux-specific code for saving corefiles.
11939 * target.h (struct target_ops): Add new target vectors for saving
11940 corefiles; to_find_memory_regions and to_make_corefile_notes.
11941 (target_find_memory_regions): New macro.
11942 (target_make_corefile_notes): New macro.
11943 * target.c (update_current_target): Inherit new target methods.
11944 (dummy_find_memory_regions): New place-holder method.
11945 (dummy_make_corefile_notes): New place-holder method.
11946 (init_dummy_target): Initialize new dummy target vectors.
11947 * exec.c (exec_set_find_memory_regions): New function.
11948 Allow the exec_ops vector for memory regions to be taken over.
11949 (exec_make_note_section): New function, target vector method.
11950 * defs.h (exec_set_find_memory_regions): Export prototype.
11951 * procfs.c (proc_find_memory_regions): New function, corefile method.
11952 (procfs_make_note_section): New function, corefile method.
11953 (init_procfs_ops): Set new target vector pointers.
11954 (find_memory_regions_callback): New function.
11955 (procfs_do_thread_registers): New function.
11956 (procfs_corefile_thread_callback): New function.
11957 * sol-thread.c (sol_find_memory_regions): New function.
11958 (sol_make_note_section): New function.
11959 (init_sol_thread_ops): Initialize new target vectors.
11960 * inftarg.c (inftarg_set_find_memory_regions): New function.
11961 Allow to_find_memory_regions vector to be taken over.
11962 (inftarg_set_make_corefile_notes): New function.
11963 Allow to_make_corefile_notes vector to be taken over.
11964 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11965 interface layer if not target_has_execution (may be a corefile).
11966 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11967 * config/sparc/sun4sol2.mh: Ditto.
11968 * config/alpha/alpha-linux.mh: Ditto.
11969 * config/arm/linux.mh: Ditto.
11970 * config/i386/x86-64linux.mh: Ditto.
11971 * config/ia64/linux.mh: Ditto.
11972 * config/m68k/linux.mh: Ditto.
11973 * config/mips/linux.mh: Ditto.
11974 * config/powerpc/linux.mh: Ditto.
11975 * config/sparc/linux.mh: Ditto.
11976
c6b92abd
MS
119772002-01-07 Michael Snyder <msnyder@redhat.com>
11978
11979 * arm-linux-nat.c: Remove references to regcache.c internal data
11980 (registers[] and register_valid[]).
11981
4b09dc8c
MS
119822002-01-07 Michael Snyder <msnyder@redhat.com>
11983
abf22e64
AJ
11984 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11985 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11986 symbol file and shlibs.
11987 * Makefile.in: Add rule for linux-proc.o.
11988 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11989 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11990 * config/arm/linux.mh: Ditto.
11991 * config/i386/linux.mh: Ditto.
11992 * config/i386/x86-64linux.mh: Ditto.
11993 * config/ia64/linux.mh: Ditto.
11994 * config/m68k/linux.mh: Ditto.
11995 * config/mips/linux.mh: Ditto.
11996 * config/powerpc/linux.mh: Ditto.
11997 * config/sparc/linux.mh: Ditto.
11998
c25b74ac
PM
119992002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12000
12001 * win32-nat.c: Add i386-tdep.h dependency.
12002
94cd915f
MS
120032002-01-07 Michael Snyder <msnyder@redhat.com>
12004
c7cccb76
MS
12005 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12006 instead of bfd_get_arch_size. Don't bail out just because
12007 there's no exec_bfd.
abf22e64 12008
34c0bd93
MS
12009 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12010 * p-valprint.c (pascal_object_print_value): Ditto.
12011 * somread.c (som_symtab_read): Ditto.
12012 * symfile.c (simple_free_overlay_region_table): Ditto.
12013 * valops.c (value_assign): Ditto.
12014
21c1c920
MS
12015 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12016 use tilde_expand and strerror for opening save-tracepoints file.
12017
5bbd998e
MS
12018 * thread-db.c (thread_db_new_objfile): Indendation fix.
12019
94cd915f
MS
12020 * infptrace.c (GDB_MAX_ALLOCA): New define.
12021 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12022 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12023 can be overridden with whatever value is appropriate to the host).
12024 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12025 alloca to allocate potentially large buffer.
12026 * rs6000-nat.c (child_xfer_memory): Ditto.
12027 * symm-nat.c (child_xfer_memory): Ditto.
12028 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12029
494e8a93
JSC
120302002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12031
12032 From Nick Clifton <nickc@redhat.com>
12033 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12034
d0e1d48e
MS
120352002-01-07 Michael Snyder <msnyder@redhat.com>
12036
abf22e64 12037 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12038 Don't use exec_bfd if it's NULL.
12039
290b2c7a
MK
120402002-01-06 Mark Kettenis <kettenis@gnu.org>
12041
abf22e64 12042 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12043
aef21287
AC
120442002-01-06 Andrew Cagney <ac131313@redhat.com>
12045
12046 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12047 * gnu-nat.c: Ditto.
12048
30efa627
AC
120492002-01-06 Andrew Cagney <ac131313@redhat.com>
12050
12051 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12052 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12053 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12054 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12055 z8k-coff have not been multi-arched. Update z8k-coff build
12056 status.
12057
9b4ff276
AC
120582002-01-06 Andrew Cagney <ac131313@redhat.com>
12059
12060 * MAINTAINERS: Mark a29k target as obsolete.
12061 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12062 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12063 comments.
12064 * NEWS: Note that a29k targets are obsolete.
12065 * a29k-tdep.c: Mark as obsolete.
12066 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12067 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12068 a29k-*-vxworks* targets as obsolete.
12069 * remote-adapt.c: Obsolete.
12070 * remote-eb.c: Obsolete.
12071 * remote-mm.c: Obsolete.
12072 * remote-udi.c: Obsolete.
12073 * config/a29k/a29k-udi.mt: Obsolete.
12074 * config/a29k/a29k.mt: Obsolete.
12075 * config/a29k/tm-a29k.h: Obsolete.
12076 * config/a29k/tm-vx29k.h: Obsolete.
12077 * config/a29k/vx29k.mt: Obsolete.
12078
a9011d31
AC
120792002-01-05 Andrew Cagney <ac131313@redhat.com>
12080
12081 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12082 with BFD_ENDIAN_BIG.
12083
9299404e
AC
120842002-01-05 Andrew Cagney <ac131313@redhat.com>
12085
12086 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12087 * configure, config.in: Re-generate.
12088 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12089 * defs.h: Do not include <endian.h>.
12090
7e89e357
JT
120912002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12092
12093 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12094 * config.in: Regenerate.
12095 * configure.in: Update copyright years.
12096 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12097 * configure: Regenerate.
12098 * i386bsd-nat.c: Update copyright years.
12099 (fill_gregset): Use regcache_collect.
12100 (fetch_inferior_registers): Only fetch integer registers
12101 if requested to do so. Add support for XMM registers
12102 using PT_GETXMMREGS.
12103 (store_inferior_registers): Only store integer registers
12104 if requested to do so. Add support for XMM registers
12105 using PT_SETXMMREGS.
12106 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12107 (store_inferior_registers): Remove.
12108 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12109 (fetch_elfcore_registers): New function.
12110 (i386nbsd_elfcore_fns): New.
12111 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12112 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12113 i386bsd-nat.o.
12114 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12115 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12116 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12117 * config/i386/tm-nbsd.h: Update copyright years.
12118 (HAVE_SSE_REGS): Define.
12119 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12120 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12121 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12122 (SIGCONTEXT_PC_OFFSET): Remove.
12123 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12124
a752853e
AC
121252002-01-05 Andrew Cagney <ac131313@redhat.com>
12126
12127 * configure.tgt: Remove powerpc-*-macos* target.
12128 * config/m68k/xm-mpw.h: Delete file.
12129 * config/xm-mpw.h: Delete file.
12130 * ser-mac.c: Delete file.
12131 * mpw-make.sed: Delete file.
12132 * mpw-config.in: Delete file.
12133 * mac-xdep.c: Delete file.
12134 * mac-gdb.r: Delete file.
12135 * mac-defs.h: Delete file.
12136 * mac-nat.c: Delete file.
12137 * config/powerpc/macos.mh: Delete file.
12138 * config/powerpc/macos.mt: Delete file.
12139 * config/powerpc/nm-macos.h: Delete file.
12140 * config/powerpc/tm-macos.h: Delete file.
12141 * source.c (openp, open_source_file): Remove obsolete code.
12142 * top.c (gdb_readline): Ditto.
12143 * utils.c (query): Ditto.
12144 * event-top.c (display_gdb_prompt): Ditto.
12145 * Makefile.in (ser-mac.o): Delete obsolete target.
12146 * NEWS: Update.
12147
d7449b42
AC
121482002-01-04 Andrew Cagney <ac131313@redhat.com>
12149
12150 * defs.h (BIG_ENDIAN): Delete macro definition.
12151 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12152 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12153 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12154 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12155 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12156 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12157 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12158 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12159 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12160 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12161 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12162 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12163 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12164 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12165 * gdbarch.c: Re-generate.
12166
356374e8
DJ
121672002-01-04 Daniel Jacobowitz <drow@mvista.com>
12168
12169 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12170 for core files.
12171
a2b8f8f8
JT
121722002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12173
12174 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12175
12466af9
AC
121762002-01-04 Andrew Cagney <ac131313@redhat.com>
12177
12178 * value.h (value_ptr): Delete typedef.
12179
3549ab40
JT
121802002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12181
12182 * i386nbsd-nat.c: Update copyright years.
12183 Include i386-tdep.h.
12184
fedbd091
EZ
121852002-01-04 Elena Zannoni <ezannoni@redhat.com>
12186
12187 * stabsread.c: Update copyright years.
12188
12189 From Debashis Mahata <debashis.mahata@wipro.com>:
12190 (read_struct_fields): Deal with Sun C compiler erroneous stab
12191 output for structs and unions.
fec8b34f 12192 Fix PR gdb/269.
fedbd091 12193
eb43544b
DJ
121942002-01-04 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12197 prototype.
12198
1514d34e
DJ
121992002-01-04 Daniel Jacobowitz <drow@mvista.com>
12200
12201 * cp-abi.c: Fix whitespace.
12202 (baseclass_offset): New wrapper function.
12203 * cp-abi.h (baseclass_offset): Add prototype.
12204 (struct cp_abi_ops): Add baseclass_offset pointer.
12205
12206 * valops.c (vb_match): Move to...
12207 * gnu-v2-abi.c (vb_match): here.
12208 * valops.c (baseclass_offset): Move to...
12209 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12210
12211 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12212
12213 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12214 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12215 * hpacc-abi.c (init_hpacc_ops): Likewise.
12216
7f8c9282
DJ
122172002-01-04 Daniel Jacobowitz <drow@mvista.com>
12218
12219 * valops.c (find_overload_match): Accept obj as a
12220 reference parameter. Update it before returning.
12221 * value.h (find_overload_match): Update prototype.
12222 * eval.c (evaluate_subexp_standard): Pass object to
12223 find_overload_match by reference.
12224
f23631e4
AC
122252002-01-03 Andrew Cagney <ac131313@redhat.com>
12226
12227 * valarith.c: Replace value_ptr with struct value pointer. Remove
12228 register attribute from value declarations.
12229 * valops.c: Ditto.
12230 * value.h: Ditto.
12231 * scm-lang.c (scm_lookup_name): Ditto.
12232
79e10fab 122332002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12234
79e10fab
AC
12235 Abstract the functionality of iterating over mapped memory
12236 regions into a general purpose iterator function.
abf22e64 12237 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12238 iterator for memory sections.
12239 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12240 (solib_mappings_callback): New function, callback for above.
12241 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12242 (info_mappings_callback): New function, callback for above.
12243
12244 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12245
c5ad026a
MK
122462002-01-01 Mark Kettenis <kettenis@gnu.org>
12247
d2a7c97a
MK
12248 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12249 * i386-tdep.c: Include "elf-bfd.h".
12250 (process_note_abi_tag_sections): New function.
12251 (i386_gdbarch_init): Add code to recognize various OS/ABI
12252 combinations.
12253
c5ad026a
MK
12254 * maint.c (_initialize_maint_cmds): Add missing \ in
12255 string-literal.
12256
a1a5b71e 12257For older changes see ChangeLog-2001
c906108c
SS
12258\f
12259Local Variables:
12260mode: change-log
12261left-margin: 8
12262fill-column: 74
12263version-control: never
12264End: