* dwarf2cfi.c: Fix some formatting problems.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab91194c
MK
12002-10-26 Mark Kettenis <kettenis@gnu.org>
2
9f1549cc
MK
3 * dwarf2cfi.c: Fix some formatting problems.
4 (context_cpy, read_encoded_pointer): Clarify comments.
5
ab91194c
MK
6 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
7 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
8 i386 target back into x86_64_gdbarch_init. Add some comments and
9 remove meaningless ones.
10
72367fb4
AC
112002-10-25 Andrew Cagney <cagney@redhat.com>
12
13 * complaints.h (struct deprecated_complaint): Rename `struct
14 complaint'.
15 * complaints.c (complain): Update.
16 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
17 incorrect comment indicating that "symfile.h" was being included
18 for the `struct complaint' definition.
19 * remote-vx.c: Update.
20 * objc-lang.c: Update.
21 * xcoffread.c: Update.
22 * hpread.c: Update.
23 * mdebugread.c: Update.
24 * stabsread.c: Update.
25 * dwarf2read.c: Update.
26 * dwarfread.c: Update.
27 * elfread.c: Update.
28 * coffread.c: Update.
29 * stabsread.h: Update.
30 * dbxread.c: Update.
31 * buildsym.c: Update.
32 * gdbtypes.c: Update.
33 * macrotab.c: Update.
34
1f2baacc
MK
352002-10-25 Mark Kettenis <kettenis@gnu.org>
36
0c1a73d6
MK
37 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
38 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
39 (x86_64_init_abi): ...new function.
40
6aee4d54 41 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
42 * i386v-nat.c: Include "i386-tdep.h".
43
8f9cbe01
AC
442002-10-25 Andrew Cagney <cagney@redhat.com>
45
5f11f355
AC
46 * gdbtypes.c (address_space_name_to_int): Update.
47 (address_space_int_to_name): Update.
48 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
49 multi-arch predicate.
50 (address_class_name_to_type_flags): Ditto.
51 * gdbarch.h, gdbarch.c: Re-generate.
52
8f9cbe01
AC
53 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
54
e8d96a5d
MH
552002-10-24 Martin M. Hunt <hunt@redhat.com>
56
57 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
58
fe39c653
EZ
592002-10-24 Elena Zannoni <ezannoni@redhat.com>
60
61 * symtab.h (INIT_SAL): Delete macro.
62 (init_sal): Export.
63 * symtab.c (init_sal): New function.
64
65 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
66 to init_sal function call.
67 (find_sal_from_funcs_and_line): Ditto.
68 (all_sals_for_line): Ditto.
69 * breakpoint.c (create_internal_breakpoint): Ditto.
70 (create_fork_vfork_event_catchpoint): Ditto.
71 (create_exec_event_catchpoint): Ditto.
72 (parse_breakpoint_sals): Ditto.
73 (watch_command_1): Ditto.
74 (handle_gnu_4_16_catch_command): Ditto.
75 (clear_command): Ditto.
76 * hppa-tdep.c (child_enable_exception_callback): Ditto.
77 * infcmd.c (run_stack_dummy): Ditto.
78 * infrun.c (process_event_stop_test): Ditto.
79 (check_sigtramp2): Ditto.
80 (step_over_function): Ditto.
81 * linespec.c (decode_line_2): Ditto.
82 (decode_line_1): Ditto.
83 * source.c (line_info): Ditto.
84 * symtab.c (find_pc_sect_line): Ditto.
85
baed091b
ML
862002-10-24 Michal Ludvig <mludvig@suse.cz>
87
88 * dwarf2cfi.c (struct context)
89 (struct context_reg): Moved to dwarf2cfi.h
90 (context_alloc, frame_state_alloc, context_cpy):
91 Made extern instead of static, removed prototypes.
92 * dwarf2cfi.h (struct context)
93 (struct context_reg): New, moved from dwarf2cfi.c
94 (context_alloc, frame_state_alloc, context_cpy):
95 New prototypes.
96 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
97 Changed from static to extern.
98 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
99 (LINUX_SIGCONTEXT_FP_OFFSET)
100 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
101 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
102 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
103 * x86-64-tdep.c (x86_64_gdbarch_init): Several
104 set_gdbarch_*() calls now use x86-64 specific functions
105 instead of DWARF2 CFI ones.
106 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
107 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
108 (x86_64_init_extra_frame_info): New prototypes.
109
c38da1af
DC
1102002-10-23 David Carlton <carlton@math.stanford.edu>
111
112 * linespec.c: #include "parser-defs.h".
113 Delete prototype for find_template_name_end.
114 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
115
fb9b6b35
JJ
1162002-10-23 Jeff Johnston <jjohnstn@redhat.com>
117
118 * NEWS: add recent mi fixes.
119 * varobj.c (struct varobj): Add new "updated" flag.
120 (new_variable): Default "updated" flag to 0.
121 (varobj_set_value): Set "updated" flag to 1 if value
122 changes.
123 (varobj_update): Check varobj "updated" flag before
124 comparing old and refreshed values. Fix for
125 PR gdb/702.
126
8da065d5
DC
1272002-10-23 David Carlton <carlton@math.stanford.edu>
128
129 * parse.c (parse_exp_1): Use BLOCK_START.
130 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
131 SYMBOL_BLOCK_VALUE.
132 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
133
87f2f08c
DC
1342002-10-23 David Carlton <carlton@math.stanford.edu>
135
136 * symtab.c: Delete cplusplus_hint.
137 Delete prototype for find_template_name_end.
138
88cda038
EZ
1392002-10-23 Elena Zannoni <ezannoni@redhat.com>
140
141 * symtab.h: Update comment.
142
2625d86c
MS
1432002-10-23 Michael Snyder <msnyder@redhat.com>
144
145 * printcmd.c (address_info): Restore quotes in output.
146 * valops.c (value_of_local): Restore quotes in error message.
147
9cc0d196
EZ
1482002-10-23 Elena Zannoni <ezannoni@redhat.com>
149
150 * symtab.c (symbol_demangled_name): New function.
151 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
152 turning most of it into a function.
153 (symbol_demangled_name): Export.
154
19de93d0
MS
1552002-10-23 Michael Snyder <msnyder@redhat.com>
156
157 * valops.c (value_of_local): Restore quotes in error message.
158
89aad1f9
EZ
1592002-10-23 Elena Zannoni <ezannoni@redhat.com>
160
161 * symtab.c (symbol_init_language_specific): New function.
162 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
163 turning most of it into a function.
164 (symbol_init_language_specific): Export.
165
d9fa45fe
DC
1662002-10-23 David Carlton <carlton@math.stanford.edu>
167
168 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
169 (dwarf_attr_name): Ditto.
170 (dwarf_type_encoding_name): Ditto.
171 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
172 (process_die): Handle DW_TAG_namespace,
173 DW_TAG_imported_declaration, DW_TAG_imported_module.
174 (read_namespace): New function.
175
1045b512
JB
1762002-10-22 Joel Brobecker <brobecker@gnat.com>
177
178 * configure.in: Define NEW_PROC_API on Interix too.
179 * configure: Regenerate.
180
1812002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
182
183 * configure: Regenerate using the proper version of autoconf.
184
3987b9d4
EZ
1852002-10-21 Elena Zannoni <ezannoni@redhat.com>
186
187 * findvar.c (read_var_value): Temporarily disable TLS code, until
188 complete TLS support is added.
189
9d774e44
EZ
1902002-10-21 Jim Blandy <jimb@redhat.com>
191 Elena Zannoni <ezannoni@redhat.com>
192
193 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
194 for thread local storage locations.
195 (struct symbol): Add objfile field.
196 (SYMBOL_OBJFILE): Define.
197 * dwarf2read.c (is_thread_local): New static variable.
198 (new_symbol): If variable is in thread local fill in address class
199 and objfile appropriately.
200 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
201 stack operation.
202 * printcmd.c (address_info): Print the information for thread
203 local storage variable.
204 * findvar.c (read_var_value): In case of thread local variable,
205 defer to the target vector code to compute address.
206
bc4a16ae
EZ
2072002-10-21 Elena Zannoni <ezannoni@redhat.com>
208
209 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
210 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
211
407caf07
EZ
2122002-10-21 Elena Zannoni <ezannoni@redhat.com>
213
214 * symtab.h (address_class): Rename
215 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
216 * hpread.c (hpread_process_one_debug_symbol): Ditto.
217 * printcmd.c (address_info): Ditto.
218 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
219
005328e3
MK
2202002-10-20 Mark Kettenis <kettenis@gnu.org>
221
afdb036a
MK
222 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
223 DBREG_DRX macro to acces debug registers.
224
ca02e098
MK
225 * Makefile.in (i386obsd-tdep.o): New target.
226
03cc47f7
MK
227 * solib-sunos.c: Include "bcache.h" and "regcache.h".
228 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
229
005328e3
MK
230 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
231 * config/i386/obsd.mt: New file.
232 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
233 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
234 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
235 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
236 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
237 * i386obsd-tdep.c: New file.
238
9c96f9f2
AF
2392002-10-19 Adam Fedor <fedor@gnu.org>
240
241 * objc-exp.y (name_not_typename): Fix invalid comment.
242
ce1ed485
MK
2432002-10-20 Mark Kettenis <kettenis@gnu.org>
244
245 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
246 to allocate partial syms and macro byte caches.
247
1efc7aaa
DC
2482002-10-18 David Carlton <carlton@math.stanford.edu>
249
250 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
251
7e1d63ec
AF
2522002-10-18 Adam Fedor <fedor@gnu.org>
253
254 * stabsread.c (find_name_end): New function.
255 (define_symbol): Use it.
256
6e8d29a9
DJ
2572002-10-18 Daniel Jacobowitz <drow@mvista.com>
258
259 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
260 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
261 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
262 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
263
1efc7aaa 2642002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
265
266 * symfile.h: Add opaque declaration for struct obstack.
267 Declare obsavestring to take a const char *.
268 * symfile.c (obsavestring): Make first argument a const char *.
269
1aeae86e
AF
2702002-10-16 Adam Fedor <fedor@gnu.org>
271
272 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
273 names when matching breakpoints in current file.
274
8b2dbe47
KB
2752002-10-16 Kevin Buettner <kevinb@redhat.com>
276
277 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
278 (read_tag_pointer_type): Add address class support.
279 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
280 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
281 New methods.
282 * gdbarch.h, gdbarch.c: Regenerate.
283 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
284 (make_type_with_address_space, recursive_type_dump): Add address
285 class support.
286 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
287 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
288 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
289
74451869
KD
2902002-10-16 Klee Dienes <kdienes@apple.com>
291
292 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
293 to get the last character of a char[] buffer, not
294 name[sizeof(vptr_name)-1].
295
ff4cb3e8
AF
2962002-10-14 Adam Fedor <fedor@gnu.org>
297
298 * symtab.h: New objc_specific struct.
299 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
300 (SYMBOL_DEMANGLED_NAME): Likewise.
301
da2cf7e0
AF
3022002-10-14 Adam Fedor <fedor@gnu.org>
303
304 * symfile.c (init_filename_language_table): Add ObjC file extension.
305
4a351cef
AF
3062002-10-14 Adam Fedor <fedor@gnu.org>
307
308 * utils.c (puts_filtered_tabular): New function.
309 (fprintf_symbol_filtered): Get ObjC demangled name.
310 * defs.h (puts_filtered_tabular): Declared.
311
9750e763
KB
3122002-10-14 Kevin Buettner <kevinb@redhat.com>
313
314 * c-lang.h (c_type_print_varspec_prefix): Delete.
315 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
316 ``need_post_space'' parameter. Adjust all callers.
317
eee771c1
DJ
3182002-10-14 Daniel Jacobowitz <drow@mvista.com>
319
320 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
321 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
322 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
323 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
324
46c82446
AF
3252002-10-13 Adam Fedor <fedor@gnu.org>
326
327 * source.c (print_source_lines): Update comments.
328
d069f99d
AF
3292002-10-13 Adam Fedor <fedor@gnu.org>
330
331 * valops.c (value_of_local): New function.
332 (value_of_this): Use it.
333 * value.h (value_of_local): Declared.
334
53c551b7
AF
3352002-10-13 Adam Fedor <fedor@gnu.org>
336
337 * parse.c: (length_of_subexp, prefixify_subexp): Handle
338 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
339
eb392fbf
AF
3402002-10-12 Adam Fedor <fedor@gnu.org>
341
342 * language.c (binop_result_type): Add language_objc to case.
343 (integral_type): Likewise.
344 (character_type): Likewise.
345 (string_type): Likewise.
346 (boolean_type): Likewise.
347 (structured_type): Likewise.
348 (binop_type_check): Likewise.
349
e2b23ee9
AF
3502002-10-11 Adam Fedor <fedor@gnu.org>
351
352 * printcmd.c (address_info): Print 'self' for ObjC.
353
b01ab485
AF
3542002-10-11 Adam Fedor <fedor@gnu.org>
355
356 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
357 OP_SELF.
358
806e6073
AF
3592002-10-11 Adam Fedor <fedor@gnu.org>
360
361 * language.h (CAST_IS_CONVERSION): Add language_objc.
362
50f85cdf
AF
3632002-10-11 Adam Fedor <fedor@gnu.org>
364
365 * defs.h (enum language): Add language_objc.
366
0d540cdf
KD
3672002-10-11 Klee Dienes <kdienes@apple.com>
368
369 * findvar.c (read_memory_typed_address): New function.
370 * gdbcore.h (read_memory_typed_address): Add prototype.
371 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
372 to read a value destined for a CORE_ADDR, not read_memory_integer.
373 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
374 (f77_get_dynamic_lowerbound): Ditto.
375
d5dc7960
MH
3762002-10-11 Martin M. Hunt <hunt@redhat.com>
377
378 * utils.c (string_to_core_addr): After turning string into
379 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
380 which will do necessary sign-extension, etc.
381
8343f86c
DJ
3822002-10-11 Daniel Jacobowitz <drow@mvista.com>
383
384 * c-exp.y (THIS): Delete token and grammar rule.
385 (yylex): Don't return THIS.
386 * cp-valprint.c (vtbl_ptr_name_old): Delete.
387 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
388 * demangle.c (cplus_markers): Update comment. Put '$'
389 first. Remove CPLUS_MARKER.
390 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
391 * jv-exp.y (THIS): Delete token and grammar rule.
392 (yylex): Don't return THIS.
393 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
394 * objc-exp.y (THIS): Delete token and grammar rule.
395 (yylex): Don't return THIS.
396 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
397 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
398 (read_member_functions): Likewise for opname.
399 (read_tilde_fields): Use is_cplus_marker.
400
401 * defs.h (CPLUS_MARKER): Don't define.
402 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
403 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
404 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
405 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
406 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
407
408 * config/i386/tm-i386v4.h: Delete file.
409 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
410 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
411 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
412 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
413 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
414 * config/i386/i386sco5.mt (TM_FILE): Likewise.
415 * config/i386/i386v4.mt (TM_FILE): Likewise.
416 * config/i386/ncr3000.mt (TM_FILE): Likewise.
417
967c0d83
MM
4182002-10-10 Marko Mlinar <markom@opencores.org>
419
420 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
421 accidentially not commited 2002-10-09
422 * gdbarch.h, gdbarch.c: Re-generate.
423
f74fa174
MM
4242002-10-09 Marko Mlinar <markom@opencores.org>
425
426 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
427 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
428 * gdbarch.h, gdbarch.c: Re-generate.
429
57349743
JB
4302002-10-08 Petr Sorfa <petrs@caldera.com>
431
432 Revised and re-submitted by John Wolfe <jlw@caldera.com>
433
434 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
435 so we can work on more than one compilation unit at a time. This
436 helps prepare GDB to handle inter-CU die references.
437 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
438 the code to be defined before struct comp_unit_head.
439 (comp_unit_head): Added new members - offset, cu_head,
440 begin_die, next and dwarf2_abbrevs.
441 (dwarf2_abbrevs): Removed single static var; now member of
442 struct comp_unit_head.
443 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
444 members.
445 (psymtab_to_symtab_1): Changed to work with the new
446 struct comp_unit_head.
447 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
448 constructs the dwarf2_abbrevs[] inside the cu_header.
449 (dwarf2_empty_abbrev_table): Now expects a ptr to a
450 dwarf2_abbrev table to clean up.
451 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
452 handling of dwarf2_abbrevs inside the cu_header.
453 (read_partial_die): Now supports the call to the new
454 dwarf2_lookup_abbrev.
455 (read_full_die): Now supports the call to the new
456 dwarf2_lookup_abbrev.
457
4092aadb
CF
4582002-10-06 Christopher Faylor <cgf@redhat.com>
459
460 * Makefile.in (install-gdbtk): Add missing continuation backslash to
461 insure that shell variables, such as "transformed_name" are propagated
462 to later shell statements in rule.
463
af0b2512
MK
4642002-10-06 Mark Kettenis <kettenis@gnu.org>
465
466 * config/i386/nm-i386sco.h: Add protection against
467 multiple-inclusion. Include "i386/nm-i386v.h".
468 (REGISTER_U_ADDR): Remove define.
469 (i386_register_u_addr): Remove prototype.
470
d6020d45
MS
4712002-10-04 Michael Snyder <msnyder@redhat.com>
472
473 * m32r-stub.c (handle_exception): Make sure exception is "trap"
474 before treating it as a single-step event.
475
7248f48e
AF
4762002-10-03 Adam Fedor <fedor@gnu.org>
477
478 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
479 (objc_demangle): Remove assignment in if statements, Replace
480 free with xfree.
481 (add_msglist): Likewise.
482 (end_msglist): Likewise.
483 (complare_selectors): Likewise.
484 (selectors_info): Likewise.
485 (compare_classes): Likewise.
486 (classes_info): Likewise.
487 (print_object_command): Likewise.
488 (find_objc_msgcall_submethod): Replace PTR with void *.
489 * objc-lang.h: Remove check for __STDC__.
490
52c6a6ac
JJ
4912002-10-03 Jeff Johnston <jjohnstn@redhat.com>
492
493 * ui-out.h (ui_out_field_fmt_int): New prototype.
494 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
495 of field width and alignment.
496 * stack.c (print_frame_info_base): When printing frame level, use
497 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
498 PR gdb/192
499
7e3cec17
JJ
5002002-10-03 Jeff Johnston <jjohnstn@redhat.com>
501
502 * MAINTAINERS: Add self to Write After Approval list.
503
a58dd373
EZ
5042002-10-02 Elena Zannoni <ezannoni@redhat.com>
505
506 * infcmd.c (interrupt_target_command_wrapper): Delete.
507 (interrupt_target_command): Make non static.
508 (nofp_registers_info): Make static.
509 * stack.c (return_command_wrapper): Delete.
510 (return_command): Make non static.
511
cee6ddeb
EZ
5122002-10-02 Elena Zannoni <ezannoni@redhat.com>
513
514 * event-top.c (gdb_setup_readline): New function. Code moved from
515 _initialize_event_loop().
516 (_initialize_event_loop): Call gdb_setup_readline().
517
c4ed33b9
AC
5182002-10-02 Andrew Cagney <ac131313@redhat.com>
519
520 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
521 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
522 * gdbarch.h, gdbarch.c: Re-generate.
523
cef4f5dd
DJ
5242002-10-02 Daniel Jacobowitz <drow@mvista.com>
525
526 Fix PR gdb/778
527 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
528 before recursing.
529 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
530 of fill_in_vptr_fieldno.
531
36dc181b 5322002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 533
36dc181b
EZ
534 * inferior.h (registers_info, stepi_command, nexti_command,
535 continue_command, interrupt_target_command): Export from infcmd.c.
536 * frame.h (args_info, selected_frame_level_changed_hook,
537 return_command): Export from stack.c.
538 * v850ice.c (stepi_command, nexti_command, continue_command): use
539 prototypes from inferior.h.
540 * tracepoint.c (registers_info, args_info, locals_info): Use
541 prototypes from frame.h and inferior.h.
542 * Makefile.in (mi-main.o): Add dependency on frame.h.
543
6f99cb26
AC
5442002-10-02 Andrew Cagney <ac131313@redhat.com>
545
da3eff49
AC
546 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
547 value in register 3 adjusted by ppc_gp0_regnum.
548
6f99cb26
AC
549 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
550
da615bee
MM
5512002-10-02 Marko Mlinar <markom@opencores.org>
552
553 * MAINTAINERS: Add myself to the Write After Approval list.
554
d154bee2
AO
5552002-10-01 Alexandre Oliva <aoliva@redhat.com>
556
62a49b2c
AO
557 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
558 of the section for the N64 ABI, fixed.
559
d154bee2
AO
560 * config/mips/tm-irix6.h: Include solib.h.
561
ed348acc
EZ
5622002-10-01 Elena Zannoni <ezannoni@redhat.com>
563
564 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
565 GNU operators.
566
da0f9dcd
AC
5672002-10-01 Andrew Cagney <ac131313@redhat.com>
568
569 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
570 and that "mi0" syntax has been removed.
571
bdf64bac
DC
5722002-09-30 David Carlton <carlton@math.stanford.edu>
573
574 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
575 * ppc-sysv-tdep.c: #include "gdb_string.h".
576 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
577 pacify GCC.
578
54c2a1e6
AC
5792002-10-01 Andrew Cagney <ac131313@redhat.com>
580
581 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
582 "vrsave"'s register number.
583
cedea778
AC
5842002-09-30 Andrew Cagney <ac131313@redhat.com>
585
586 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
587 use frame_unwind_signed_register to obtain the PC.
588 (mips_frame_chain): Handle a generic dummy frame.
589 (mips_init_extra_frame_info): When a generic dummy frame, don't
590 re-compute the frame base.
591 (mips_pop_frame): Handle generic dummy frames.
592 (mips_gdbarch_init): When generic dummy frames, set
593 use_generic_dummy_frames, push_dummy_frame to
594 generic_push_dummy_frame, pc_in_call_dummy to
595 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
596 generic_save_dummy_frame_tos.
597
68315eb8
AC
5982002-09-30 Andrew Cagney <ac131313@redhat.com>
599
600 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
601 against TOP when TOP was explictly set.
602 (generic_push_dummy_frame): Set TOP to zero.
603
3b8630c3
EZ
6042002-09-30 Elena Zannoni <ezannoni@redhat.com>
605
606 * event-loop.c (start_event_loop): Rename variable 'result' to
607 'gdb_result', to avoid conflicts with upcoming intepreters changes.
608
28ee05e9
KS
6092002-09-30 Keith Seitz <keiths@redhat.com>
610
611 * gdb-events.sh (selected_thread_changed): New event.
612 * gdb-events.c: Regenerated.
613 * gdb-events.h: Regenerated.
614
6eecb1c8
HPN
6152002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
616
617 * MAINTAINERS: Add self to Write After Approval list.
618
92df71f0
FN
6192002-09-30 Fernando Nasser <fnasser@redhat.com>
620
3b8630c3
EZ
621 * disasm.c: New file.
622 * disasm.h: New file.
92df71f0
FN
623 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
624 (compare_lines): Ditto.
625 (dump_insns): Ditto.
3b8630c3
EZ
626 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
627 argument.
92df71f0 628 (do_assembly_only): Ditto.
3b8630c3
EZ
629 (do_disassembly): Renamed to gdb_disassembly and moved to
630 disasm.c. Sdded uiout argument.
631 * Makefile.in: Add new files. Reorder SFILES list. Update
632 dependencies. Include libgdb.a later in the insight executable.
92df71f0 633
0c22854d
AC
6342002-09-29 Andrew Cagney <ac131313@redhat.com>
635
636 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
637 bfd/elf64-alpha-fbsd.c.
638
e67f2023
AC
6392002-09-29 Andrew Cagney <ac131313@redhat.com>
640
641 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
642 i386gnu-tdep.c.
643
89396210
AC
6442002-09-29 Andrew Cagney <ac131313@redhat.com>
645
646 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
647 __FUNCTION__.
648 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
649 function name.
650 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
651 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
652 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
653 (S_msg_sig_post_reply): Ditto.
654
7079c36c
CV
6552002-09-28 Corinna Vinschen <vinschen@redhat.com>
656
89396210
AC
657 * sh-tdep.c (sh_use_struct_convention): Use definition according
658 to ABI.
7079c36c
CV
659 (sh_push_arguments): Store in register with correct endianess.
660 (sh_default_store_return_value): Ditto.
661 (sh_gdbarch_init): Set sizeof long double to 8.
662
975ac915
MK
6632002-09-27 Mark Kettenis <kettenis@gnu.org>
664
665 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
666 Fix some whitespace problems.
667
9bbe19fb
DC
6682002-09-27 David Carlton <carlton@math.stanford.edu>
669
670 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
671 (mcore-tdep.o): Ditto.
672 (ns32k-tdep.o): Ditto.
673 (ns32knbsd-tdep.o): Ditto.
674 (sh3-rom.o): Ditto.
675 (vax-tdep.o): Ditto.
676 * cris-tdep.c: #include "gdb_string.h"
677 * mcore-tdep.c: Ditto.
678 * ns32k-tdep.c: Ditto.
679 * ns32knbsd-tdep.c: Ditto.
680 * sh3-rom.c: Ditto.
681 * vax-tdep.c: Ditto.
682
43b2fdc7
DC
6832002-09-27 David Carlton <carlton@math.stanford.edu>
684
685 * config/djgpp/fnchange.lst: Add entries for
686 gdb/testsuite/gdb.c++/m-static files.
687
e8cfbbd9
JW
6882002-09-27 Jim Wilson <wilson@redhat.com>
689
690 * MAINTAINERS: Add myself to the Write After Approval list.
691
43b2fdc7 6922002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
693
694 * mips-tdep.c (find_proc_desc): Initialize startaddr.
695
696
9f3b7f07
AC
6972002-09-26 Andrew Cagney <ac131313@redhat.com>
698
699 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
700 frame.
701
11269d7e
AC
7022002-09-26 Andrew Cagney <ac131313@redhat.com>
703
704 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
705 (rs6000_struct_return_address): Delete variable.
706 (rs6000_store_struct_return): Update.
707 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
708 deprecated_extract_struct_value_address.
709 (rs6000_frame_align): New function.
710 (rs6000_gdbarch_init): Set frame_align.
711
f15ab4a7
AC
7122002-09-26 Andrew Cagney <ac131313@redhat.com>
713
714 From Grace Sainsbury <graces@redhat.com>:
715 * Makefile.in (gdbtk-main.o): New target.
716 (gdb.o): New target.
717 (main_h): Define.
718 (main.o): Update dependencies.
719 (gdb$(EXEEXT)): Add gdb.o.
720 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
721 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
722 (SUBDIR_GDBTK_CLEAN): Set.
723 (install-gdbtk): Install the insight binary.
724 (uninstall-gdbtk): New target.
725 (all-gdbtk, clean-gdbtk): New rule.
726 * top.c (use_windows): Default to zero.
727 * main.c: Include "main.h".
728 (main): Delete.
729 (struct captured_main_args): Delete.
730 (gdb_main): New function.
731 * main.h: New file.
732 * gdb.c: New File.
733
e36180d7
AC
7342002-09-25 Andrew Cagney <cagney@redhat.com>
735
736 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
737 (frame_map_regnum_to_name): New function.
738 (frame_map_name_to_regnum): New function.
739 * frame.h (frame_map_name_to_regnum): Declare.
740 (frame_map_regnum_to_name): Declare.
741 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
742 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
743 * parse.c: Do not include "builtin-regs.h".
744 (target_map_name_to_register): Delete function.
745 (write_dollar_variable): Use frame_map_name_to_regnum.
746 * parser-defs.h (target_map_name_to_register): Delete declaration.
747 * expprint.c: Include "frame.h".
748 (print_subexp): Use frame_map_regnum_to_name.
749 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
750 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
751
8b69000d
AC
7522002-09-25 Andrew Cagney <ac131313@redhat.com>
753
754 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
755 wasn't saved, and the next innermost frame is a dummy, return the
756 dummy frame's link register.
757
046ca86a
JB
7582002-09-24 Jim Blandy <jimb@redhat.com>
759
760 Fix from Paul Breed:
761 * main.c (captured_main): Add a `break' after the case for 'b'.
762
94b66fa7
KS
7632002-09-24 Keith Seitz <keiths@redhat.com>
764
765 * varobj.c (c_type_of_child): Use get_target_type instead
766 of TYPE_TARGET_TYPE.
767
c214a6fd
FN
7682002-09-22 Fernando Nasser <fnasser@redhat.com>
769
53cb0458
FN
770 * source.c (get_current_or_default_source_symtab_and_line): Remove
771 function.
772 (set_default_source_symtab_and_line): New function. Attempts to
773 determine a source file to list lines from if one is not currently
774 defined.
775 (get_current_source_symtab_and_line): Initialize sal.pc and
776 sal.end fields.
777 (set_current_source_symtab_and_line): Mark argument as const.
778 * source.h: Update declarations and comments.
779 * linespec.c (decode_line_1): Replace call to removed routine above.
780 * stack.c (print_frame_info_base): Ditto.
781 * cli/cli-cmds.c (edit_command): Ditto.
782 (list_command): Ditto.
783
7842002-09-22 Fernando Nasser <fnasser@redhat.com>
785
d6020d45 786 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 787 sal.pc and sal.end fields.
c214a6fd
FN
788 (get_current_or_default_source_symtab_and_line): Ditto.
789 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
790 so we do not cause a new source symtab to be searched for (reverting an
791 unintentional change from the 2002-09-20 patch).
792 * scm-lang.c (scm_unpac): Ditto.
793
cc3b68a5
AC
7942002-09-21 Andrew Cagney <cagney@redhat.com>
795
796 * complaints.c (symfile_explanations): Remove new-line from
797 ``isolated_message''.
798 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
799 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
800
5835abe7
NC
8012002-09-20 Nick Clifton <nickc@redhat.com>
802
803 * NEWS: Announce that V850EA ISA is no longer supported.
804 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
805
a15ef5f5
DC
8062002-09-20 David Carlton <carlton@math.stanford.edu>
807
06ba1b39
DC
808 * Makefile.in (c-lang.o): Correct dependencies.
809 (utils.o): Gather dependencies.
810 (charset.o): Move.
a15ef5f5
DC
811 * c-lang.c: #include "gdb_string.h"
812
87885426
FN
8132002-09-20 Fernando Nasser <fnasser@redhat.com>
814
815 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
816 * cli/cli-cmds.c (list_command): New function. Implements the new
817 cli edit command.
818 (_init_cli_cmds): Add new command definition.
819 * gdb.1: Document edit command.
820 * doc/gdb.texinfo: Document edit command.
821
8222002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
823
824 * source.c: Make global variables current_source_symtab and
825 current_source_line static.
826 (list_command): Moved to cli/cli-cmds.c.
827 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
828 (get_first_line_listed): New accessor function.
829 (get_lines_to_list): New accessor function.
830 (get_current_source_symtab_and_line): New function. Retrieves the
831 position in the source code that we consider current.
832 (get_current_or_default_source_symtab_and_line): New function.
833 Like the above but attempts to determine a default position if one
834 is not currently defined.
835 (set_current_source_symtab_and_line): New function. Sets the source
836 code position considered current and returns the previously set one.
837 (clear_current_source_symtab_and_line): Reset stored information about
838 a current source line.
839 (_initialize_source): Remove registration for the "list" command and
840 its alias.
841 * source.h: Add declarations for the new functions above.
842 * symtab.h: Remove declarations for the global variables mentioned
843 above.
844 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
845 obtain current source line.
846 * linespec.c (decode_line_1): Ditto.
847 * macroscope.c (default_macro_scope): Ditto.
848 * scm-lang.c (scm_unpac): Ditto.
849 * stack.c (print_frame_info_base): Ditto.
850 * symfile.c (clear_symtab_users): Ditto.
851 * symtab.c (decode_line_spec): Ditto.
852 * cli/cli-cmds.c (list_command): Moved here from source.c.
853 (ambiguous_line_spec): Moved here from source.c.
854 (_init_cli_cmds): Add definition for "list" and its alias.
855 * Makefile.in: Update dependencies.
856
ddd216ea
CV
8572002-09-20 Corinna Vinschen <vinschen@redhat.com>
858
859 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
860 with what gcc thinks is correct.
861
6d305052
CV
8622002-09-20 Corinna Vinschen <vinschen@redhat.com>
863
864 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
865 multiple register push instruction.
866
234b45d4
KB
8672002-09-19 Jim Blandy <jimb@redhat.com>
868
869 Add support for distinct host and target character sets.
870 * charset.c, charset.h: New files.
871 * c-exp.y: #include "charset.h".
872 (yylex): Convert character and string literals to the target
873 character set, before returning them as the semantic value of the
874 token.
875 * c-lang.c: #include "charset.h".
876 (c_emit_char): Use charset-specific methods to recognize
877 characters with backslash escape forms, to decide which characters
878 to print literally and which to print using numeric escape
879 sequences, and to convert target characters to host characters
880 before printing.
881 * utils.c: #include "charset.h".
882 (no_control_char_error): New function.
883 (parse_escape): Use charset-specific methods to recognize
884 backslash escapes, parse `control character' notation, and convert
885 characters from the host character set to the target character set.
886 * configure.in: Set the default host character set.
887 Check where to find iconv, and what its argument types might be.
888 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
889 * Makefile.in (SFILES): List charset.c.
890 (COMMON_OBS): List charset.o.
891 (charset.o): New rule.
892 (charset_h): New header dependency variable.
893 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
894 (LIBICONV): New variable, set by configure.
895 (CLIBS): Include $(LIBICONV) here.
896 * aclocal.m4, config.in, configure: Regenerated.
897
525d6a61
JB
8982002-09-19 Joel Brobecker <brobecker@gnat.com>
899
900 * ada-exp.y: Add missing semicolons to end rules. Fixes a
901 bison 1.35 warning.
902
3ed93867
RE
9032002-09-19 Richard Earnshaw <rearnsha@arm.com>
904
905 * gdb_mbuild.sh: New file.
906
437666f8
AC
9072002-09-19 Andrew Cagney <ac131313@redhat.com>
908
909 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
910
389e51db
AC
9112002-09-18 Andrew Cagney <ac131313@redhat.com>
912
913 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
914 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
915 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
916 valops.c, value.h: Revert previous change.
917
3b4efeaa
MS
9182002-09-18 Michael Snyder <msnyder@redhat.com>
919
920 Preliminary support for Objective-C:
921 * defs.h (language_objc): New enum value.
922 (puts_filtered_tabular): Declaration only, exported from utils.c.
923 (skip_quoted): Delete, declared in completer.h.
924 * c-exp.y: Include completer.h.
925 * p-exp.y: Ditto.
926 * jv-exp.y: Ditto.
927 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
928 New operator enum values.
929 * language.h (CAST_IS_CONVERSION): Test for language_objc.
930 * language.c (binop_result_type): Handle language_objc case.
931 (integral_type, character_type, string_type, boolean_type,
932 structured_type, binop_type_check): Ditto.
933 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
934 (struct objc_specific): Add to general_symbol_info.
935 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
936 (SYMBOL_DEMANGLED_NAME): Handle objc case.
937 * parser-defs.h (struct objc_class_str): New struct type.
938 (start_msglist, end_msglist, add_msglist): Declaration only,
939 exported from objc-lang.c.
940 * value.h (value_of_local, value_nsstring,
941 call_function_by_hand_expecting_type): Exported from valops.c.
942 * valops.c (find_function_addr): Export.
943 (call_function_by_hand_expecting_type): New function.
944 (value_of_local): New function.
945 * symfile.c (init_filename_language_table): Add ".m" extension
946 for Objective-C.
947 * utils.c (puts_filtered_tabular): New function.
948 (fprintf_symbol_filtered): Add objc demangling support (disabled).
949 (set/show demangle): Extend help-string to refer to ObjC.
950 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
951 * stabsread.c (symbol_reference_defined): Objective-C symbols
952 may contain colons: make allowances when scanning stabs strings
953 for colons.
954 (objc_find_colon): New function.
955 * printcmd.c (address_info): If language == objc then print
956 "self" instead of "this".
957 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
958 OP_NSSTRING, and OP_SELF.
959 (prefixify_subexp): Ditto.
960 * source.c (print_source_lines): Mention objc in comment.
961 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
962 method names.
963
b9caf505
AC
9642002-09-18 Andrew Cagney <ac131313@redhat.com>
965
966 * complaints.h: Update copyright.
967 (struct complaints): Declare.
968 (struct complaint): Make `message' constant.
969 (internal_complaint): Declare.
970 (complaint): Declare.
971 (complaint_root): Delete declaration.
972 (symfile_complaints): Delete declaration.
973 (struct complaints): Add opaque declaration.
974 (clear_complaints): Add a complaints parameter.
975 * complaints.c: Update copyright.
976 (enum complaint_series): Define.
977 (complaint_root): Delete.
978 (struct complaints): Define.
979 (complaint_sentinel, symfile_complaint_book): New variables.
980 (symfile_explanations, symfile_complaints): New variables.
981 New variables.
982 (get_complaints): New function.
983 (vcomplaint): New function.
984 (complaint): New function.
985 (internal_complaint): New function.
986 (complain): Call vcomplain with symfile_complaint.
987 (clear_complaints): Rewrite.
988 (_initialize_complaints): Use add_setshow_command.
989 * Makefile.in (complaints.o): Update dependencies.
990 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
991 to call to clear_complaints.
992 (new_symfile_objfile, reread_symbols): Ditto.
993 (oldsyms_complaint): Delete.
994 (empty_symtab_complaint, unknown_option_complaint): Delete.
995 (free_named_symtabs): Use complaint instead of complain.
996
d2e6263c
MS
9972002-09-18 Michael Snyder <msnyder@redhat.com>
998
5fb2031a
AC
999 Contributed by Apple Computer, Inc. Merged with current sources
1000 by Adam Fedor <fedor@doc.com> [cagney].
1001
d2e6263c
MS
1002 * objc-lang.c: First clean-up round: comments, indentation.
1003 * objc-lang.h: Ditto.
1004 * objc-lang.y: Ditto.
1005
dec43320
AC
10062002-09-18 Andrew Cagney <ac131313@redhat.com>
1007
1008 * maint.c (maintenance_internal_error): Print the parameter as the
1009 error message.
1010 (maintenance_internal_warning): New function.
1011 (_initialize_maint_cmds): Add command `maint internal-warning'.
1012
1013 * defs.h (internal_warning, internal_vwarning): Declare.
1014 * utils.c (struct internal_problem): Define.
1015 (internal_vproblem): New function.
1016 (internal_warning): New function.
1017 (internal_vwarning): New function.
1018 (internal_warning_problem, internal_error_problem): New variables.
1019 (internal_verror): Just call internal_vproblem.
1020
b81654f1
MS
10212002-09-18 Michael Snyder <msnyder@redhat.com>
1022
1023 * objc-lang.c: New file, support for Objective-C.
1024 Preliminary check-in, not yet integrated into gdb.
1025 * objc-lang.h: New file.
1026 * objc-exp.y: New file.
1027
0542c381
AC
10282002-09-18 Andrew Cagney <ac131313@redhat.com>
1029
7bda5e4a
AC
1030 * infrun.c (signal_stop_update): Convert definition to ISO C.
1031 (signal_print_update): Ditto.
1032 (signal_pass_update): Ditto.
1033 * inflow.c (terminal_save_ours): Ditto.
1034
5247b418
AC
1035 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1036 comments.
1037
fc60962c
AC
1038 * config/djgpp/fnchange.lst: Handle name clashes between
1039 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1040 bfd/coff-tic80.c.
1041
0542c381
AC
1042 * i386-linux-tdep.h: Fix tipo.
1043
5b924b9b
AF
10442002-09-18 Adam Fedor <fedor@gnu.org>
1045
1046 * MAINTAINERS: Add myself to the Write After Approval list.
1047
5afc051b
JB
10482002-09-18 Jim Blandy <jimb@redhat.com>
1049
1050 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1051 texthigh and textlow to reader-specific structs caused
1052 objfile_relocate to miss them. This is fixable, but the work that
1053 the change was supposed to prepare GDB for never got done anyway.
1054
eb944380
DC
10552002-09-18 David Carlton <carlton@math.stanford.edu>
1056
1057 * MAINTAINERS: Alphabetize Write After Approval list.
1058
948e66d9
DJ
10592002-09-18 Daniel Jacobowitz <drow@mvista.com>
1060
1061 Fix PR gdb/709
1062 * values.c (value_static_field): Call read_var_value.
1063
dc604539
AC
10642002-09-18 Andrew Cagney <ac131313@redhat.com>
1065
1066 * valops.c (hand_function_call): Align the initial stack pointer
1067 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1068 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1069 return value.
1070 * mips-tdep.c (mips_frame_align): New function.
1071 (mips_gdbarch_init): Set frame_align.
1072 * gdbarch.sh (FRAME_ALIGN): New method.
1073 * gdbarch.h, gdbarch.c: Re-generate.
1074
cb7e422f
ML
10752002-09-18 Michal Ludvig <mludvig@suse.cz>
1076
1077 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1078 registers.
1079
a094c6fb
AC
10802002-09-17 Andrew Cagney <ac131313@redhat.com>
1081
1082 * NEWS: Mention that MIPS $fp behavior changed.
1083 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1084 reference to FP_REGNUM.
1085 (mipsnbsd_cannot_store_register): Ditto.
1086 * mips-linux-nat.c: Update copyright.
1087 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1088 (mips_linux_cannot_store_register): Ditto.
1089 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1090 * config/mips/tm-mips.h: Update copyright.
1091 (FP_REGNUM): Delete macro.
1092 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1093 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1094 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1095 (mips_r3041_reg_names, mips_r3051_reg_names)
1096 (mips_r3081_reg_names): Replace "fp" with "".
1097 Fix PR gdb/480.
1098
45cf40d1
TR
10992002-09-17 Theodore A. Roth <troth@verinet.com>
1100
1101 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1102 generic_read_register_dummy() (PR gdb/703).
1103 (avr_push_return_address): #if 0 out unused vars.
1104 (avr_gdbarch_init): Enable use of avr_push_return_address().
1105
c7e701b5
MS
11062002-09-17 Michael Snyder <msnyder@redhat.com>
1107
d76ba2a5 1108 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1109 RTE will take care of it.
1110
20bcf01c
AC
11112002-09-17 Andrew Cagney <ac131313@redhat.com>
1112
1113 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1114 invalid, return SP_REGNUM.
1115
009a9971 11162002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1117
1118 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1119 point registers without sign extension.
1120
135c175f
AC
11212002-09-17 Andrew Cagney <cagney@redhat.com>
1122
1123 * blockframe.c (deprecated_read_register_dummy): Rename
1124 generic_read_register_dummy.
1125 * frame.c (frame_unwind_signed_register): New function.
1126 (frame_unwind_unsigned_register): New function.
1127 * frame.h (frame_unwind_signed_register): Declare.
1128 (frame_unwind_unsigned_register): Declare.
1129 (deprecated_read_register_dummy): Rename
1130 generic_read_register_dummy.
1131
1132 * h8300-tdep.c (h8300_frame_chain): Update.
1133 (h8300_frame_saved_pc): Update.
1134 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1135 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1136 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1137 (s390_frame_chain): Update.
1138 * v850-tdep.c (v850_find_callers_reg): Update.
1139 (v850_frame_saved_pc): Update.
1140 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1141 (m32r_find_callers_reg): Update.
1142 (m32r_frame_saved_pc): Update.
1143 * sh-tdep.c (sh_find_callers_reg): Update.
1144 (sh64_get_saved_pr): Update.
1145 (sh_init_extra_frame_info): Update.
1146 (sh_init_extra_frame_info): Update.
1147 (sh64_init_extra_frame_info): Update.
1148 (sh64_init_extra_frame_info): Update.
1149 * mcore-tdep.c (mcore_find_callers_reg): Update.
1150 (mcore_frame_saved_pc): Update.
1151 (mcore_init_extra_frame_info): Update.
1152 * i386-tdep.c (i386_frame_saved_pc): Update.
1153 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1154 (ia64_init_extra_frame_info): Update.
1155 (ia64_init_extra_frame_info): Update.
1156 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1157 * cris-tdep.c (cris_init_extra_frame_info): Update.
1158 * avr-tdep.c (avr_frame_chain): Update.
1159 (avr_init_extra_frame_info): Update.
1160 (avr_frame_saved_pc): Update.
1161 * arm-tdep.c (arm_find_callers_reg): Update.
1162 (arm_init_extra_frame_info): Update.
1163 (arm_frame_saved_pc): Update.
1164
a741e514
TT
11652002-09-17 Tom Tromey <tromey@redhat.com>
1166
1167 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1168 is "'".
1169
d1a8e808
CV
11702002-09-17 Corinna Vinschen <vinschen@redhat.com>
1171
1172 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1173 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1174 NEXT_PROLOGUE_INSN.
1175 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1176 NEXT_PROLOGUE_INSN.
1177
d9025a18
JB
11782002-09-16 Joel Brobecker <brobecker@gnat.com>
1179
1180 * osfsolib.c: Remove file, replaced by solib-osf.c.
1181 * Makefile.in: Remove compilation rules for osfsolib.c.
1182
1b2ef1b6
DC
11832002-09-16 David Carlton <carlton@math.stanford.edu>
1184
1185 * cp-valprint.c (cp_print_class_method): Correct args to
1186 check_stub_method_group.
1187
928e48af
CV
11882002-09-16 Corinna Vinschen <vinschen@redhat.com>
1189
1190 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1191 `set architecture'. Unify naming convention of functions.
1192 (h8300_skip_prologue): Improve prologue analysis.
1193 (h8300_push_arguments): Rewritten to more closely match GCC's
1194 bizarre argument-passing behavior, along with the comment describing
1195 said behavior.
1196 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1197 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1198 sim, remote-e7000.c, remote-hms.c and remote.c
1199
5e3397bb
MK
12002002-09-15 Mark Kettenis <kettenis@gnu.org>
1201
1202 * i386-tdep.c (gdb_print_insn_i386): Removed.
1203 (i386_print_insn): New function.
1204 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1205 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1206 tm_print_insn_info.
1207
f710f4fc
MK
12082002-09-14 Mark Kettenis <kettenis@gnu.org>
1209
1210 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1211 zero.
1212
db54fef4
CV
12132002-09-14 Corinna Vinschen <vinschen@redhat.com>
1214
1215 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1216 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1217 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1218
2becadee
CF
12192002-09-13 Christopher Faylor <cgf@redhat.com>
1220
1221 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1222
de17c821
DJ
12232002-09-13 Daniel Jacobowitz <drow@mvista.com>
1224
1225 * gdbtypes.c (check_stub_method): Make static.
1226 (check_stub_method_group): New function.
1227 * gdbtypes.h: Update prototypes.
1228 * cp-support.c: New file.
1229 * cp-support.h: New file.
1230
1231 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1232 (update_method_name_from_physname): New function.
1233 (read_member_functions): Correct method names for operators
1234 and v3 constructors/destructors. Separate v2 constructors and
1235 destructors.
1236 * Makefile.in (stabsread.o): Update dependencies.
1237 (SFILES): Add cp-support.c.
1238 (COMMON_OBS): Add cp-support.o.
1239 (cp_support_h, cp-support.o): Add.
1240
1241 * cp-valprint.c (cp_print_class_method): Call
1242 check_stub_method_group instead of check_stub_method. Remove
1243 extraneous QUITs.
1244 * p-valprint.c (pascal_object_print_class_method): Likewise.
1245 * valops.c (search_struct_method): Likewise.
1246 (find_method_list, value_struct_elt_for_reference): Likewise.
1247
e76cff22
AC
12482002-09-13 Andrew Cagney <cagney@redhat.com>
1249
1250 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1251 * gdbarch.h, gdbarch.c: Regenerate.
1252
905abb3f
AC
12532002-09-13 Andrew Cagney <ac131313@redhat.com>
1254
1255 * frame.c (find_saved_register): Delete function.
1256 * frame.h (find_saved_register): Delete declaration.
1257 Fix PR gdb/631.
1258
64159455
AC
1259Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1260
1261 * mips-tdep.c (read_next_frame_reg): Re-hack using
1262 frame_register_unwind.
1263
795e1e11
AC
1264Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1265
1266 * mips-tdep.c (mips_get_saved_register): Re-hack using
1267 frame_register_unwind.
1268
5720643c
JB
12692002-09-12 Joel Brobecker <brobecker@gnat.com>
1270
1271 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1272 vector. Will be useful for Interix.
1273 * gdbarch.h, gdbarch.c: Regenerate.
1274
1275 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1276 name of the malloc function by NAME_OF_MALLOC.
1277
3bada2a2
JB
12782002-09-12 Joel Brobecker <brobecker@gnat.com>
1279
1280 * value.h (find_function_in_inferior): Add const keyword to
1281 one of the parameters. Allows us to invoke this function with
1282 a const char *.
1283 * valops.c (find_function_in_inferior): Likewise.
1284
3db26b01
JB
12852002-09-12 Joel Brobecker <brobecker@gnat.com>
1286
1287 * exec.c (xfer_memory): Fix compilation warning with old versions
1288 of GCC.
1289 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1290
17c5ed2c
DC
12912002-09-12 David Carlton <carlton@math.stanford.edu>
1292
1293 * symtab.h: Run through gdb_indent.h.
1294 Add 2002 to Copyright year list.
1295
ecd1107e
AM
12962002-09-12 Alan Modra <amodra@bigpond.net.au>
1297
1298 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1299 mach constants.
1300 * MAINTAINERS: Add myself to write after approval list.
1301
e64f66d1
JB
13022002-09-11 J. Brobecker <brobecker@gnat.com>
1303
1304 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1305
f9395794
JB
13062002-09-11 J. Brobecker <brobecker@gnat.com>
1307
1308 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1309 Interix.
1310
1a303dec
MS
13112002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1312
1313 * procfs.c (do_detach): Clear current signal, not just fault.
1314 Corrects problem with breakpoint trap signal leaking to detached
1315 process on Tru64.
1316
c0219d42
MS
13172002-09-10 Michael Snyder <msnyder@redhat.com>
1318
1319 * buildsym.c (finish_block): Protect against null pointer.
1320
9d84ac84
AC
13212002-09-10 Andrew Cagney <cagney@redhat.com>
1322
1323 * infcmd.c (default_print_registers_info): Send all output to
1324 ``file'' instead of ``gdb_stdout''.
1325
77d8f2b4
MS
13262002-09-10 Michael Snyder <msnyder@redhat.com>
1327
1328 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1329 LONGEST, and use signed register read (addresses are sign-
1330 extended for mips).
1331
99656a61
SC
13322002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1333
1334 * event-loop.c (gdb_do_one_event): Make public.
1335 * event-loop.h (gdb_do_one_event): Declare.
1336
da12f4d8
JL
13372002-09-10 Jeff Law <law@redhat.com>
1338
1339 * infttrace.c (child_resume): Simplify and rework to avoid
1340 TT_PROC_CONTINUE.
1341
d0aee0c4
FF
13422002-09-09 Fred Fish <fnf@intrinsity.com>
1343
1344 * printcmd.c (print_scalar_formatted): "len" is the number of
1345 target bytes, NOT the number of target bits.
1346
7cb3ec5e
EZ
13472002-09-09 Elena Zannoni <ezannoni@redhat.com>
1348
1349 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1350 * top.c (init_main): Set rl_terminal_name.
1351
4dc81987
AS
13522002-09-08 Aidan Skinner <aidan@velvet.net>
1353
1354 * ada-lang.c (ada_array_bound, ada_type_match,
1355 _initialize_ada_language): Fix K&R definitions.
1356 * ada-tasks.c (get_current_task): Fix K&R definitions.
1357 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1358
842330b4
CF
13592002-09-07 Christopher Faylor <cgf@redhat.com>
1360
1361 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1362 Add XP.
1363
43156d82
MK
13642002-09-06 Mark Kettenis <kettenis@gnu.org>
1365
66da5fd8
MK
1366 * i386-tdep.c (i386_register_virtual_type,
1367 i386_register_convertible, i386_register_convert_to_virtual,
1368 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1369 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1370 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1371 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1372 Don't set push_arguments twice.
1373
4b218c18
MK
1374 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1375 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1376 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1377 sigtramp_end to NULL.
1378 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1379 defines.
1380 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1381
4cc314d5
MK
1382 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1383 whitespace.
1384
43156d82
MK
1385 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1386 * gdbarch.h, gdbarch.c: Re-generate.
1387 * blockframe.c (find_pc_sect_partial_function): Convert to use
1388 SIGTRAMP_START_P predicate.
1389
6672060b
MS
13902002-09-05 Michael Snyder <msnyder@redhat.com>
1391
a90c3637
MS
1392 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1393 generic_dummy_frame method and old method. Also distinguish
1394 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1395 (arm_extract_return_value): Use new regcache method.
a90c3637 1396
6672060b
MS
1397 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1398 adjustment that doesn't conform to the ABI.
1399 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1400 saved regcache, not from current regcache.
1401
299ffc64
AC
14022002-09-05 Andrew Cagney <ac131313@redhat.com>
1403
1404 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1405 * README: Update.
1406
a3a2ee65
JT
14072002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1408
1409 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1410 if arm_apcs_32 is false.
1411
2bc7eea9
AC
14122002-09-04 Andrew Cagney <ac131313@redhat.com>
1413
1414 GDB 5.3 branch created.
1415
8a55a7c5
TR
14162002-09-03 Theodore A. Roth <troth@verinet.com>
1417
1418 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1419 generic_unwind_get_saved_register.
1420
e26fb1d7
DC
14212002-09-03 David Carlton <carlton@math.stanford.edu>
1422
1423 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1424 argument (PR gdb/653). Update call to smash_to_method_type.
1425 (read_structure_scope): Update call to dwarf2_add_member_fn.
1426
30d52491
ML
14272002-09-03 Michal Ludvig <mludvig@suse.cz>
1428
1429 * x86-64-linux-tdep.c: Include gdb_string.h
1430 * x86-64-linux-nat.c: Ditto.
1431
06891d83
JT
14322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1433
1434 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1435 when YYDEBUG is set to 1.
1436 * c-exp.y: Likewise.
1437 * f-exp.y: Likewise.
1438 * jv-exp.y: Likewise.
1439 * m2-exp.y: Likewise.
1440 * p-exp.y: Likewise.
1441
7d400e77
JT
14422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1443
1444 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1445 dependency list.
1446 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1447 solib_svr4_fetch_link_map_offsets to
1448 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1449 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1450 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1451 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1452 solib-svr4.o, and solib-legacy.o.
1453 * config/i386/tm-nbsd.h: Include solib.h.
1454
704a27c4
JT
14552002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1456
1457 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1458 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1459 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1460 comment noting that this needs its own target configuration.
1461 * config/i386/nbsd.mt: New file.
1462 * config/i386/nbsdaout.mt: Remove.
1463 * config/i386/nbsdelf.mt: Ditto.
1464 * config/i386/tm-nbsdaout.h: Ditto.
1465
d66198e1
JT
14662002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1467
1468 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1469 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1470 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1471 tdep->sigtramp_end.
1472 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1473 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1474 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1475
3cac699e
JT
14762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1477
1478 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1479 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1480 * i386-tdep.h (i386bsd_init_abi): New prototype.
1481 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1482 function declaration.
1483 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1484 for NetBSD-a.out or NetBSD-ELF.
1485 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1486 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1487 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1488 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1489 and nbsd-tdep.h.
1490 (i386nbsd_pc_in_sigtramp): New function.
1491 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1492 i386nbsd_pc_in_sigtramp.
1493 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1494 and i386nbsdelf_init_abi OS ABI handlers.
1495 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1496 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1497
7010ca0a
MK
14982002-09-02 Mark Kettenis <kettenis@gnu.org>
1499
1500 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1501 registers if the target really has them.
1502
6dd93b72
JT
15032002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1504
1505 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1506 than nbsd-tdep.h.
1507
2ca8ae21
JT
15082002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1509
1510 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1511 list.
1512 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1513 (alphanbsd_skip_sigtramp_frame): New functions.
1514 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1515 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1516 to alphanbsd_sigcontext_addr.
1517
3d9b49b0
JT
15182002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1519
1520 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1521 list.
1522 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1523 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1524 nbsd_pc_in_sigtramp.
1525 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1526 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1527 * nbsd-tdep.c: Include gdb_string.h.
1528 (nbsd_pc_in_sigtramp): New function.
1529 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1530 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1531 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1532 ppcnbsd_pc_in_sigtramp.
1533 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1534 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1535 shnbsd_pc_in_sigtramp.
1536 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1537 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1538 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1539
c860120c
PM
15402002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1541
1542 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1543 watchpoints to NULL.
1544 (insert_breakpoints): set val field of watchpoints if NULL.
1545
1546
c7612d53
JB
15472002-08-29 Jim Blandy <jimb@redhat.com>
1548
1549 * symtab.c (lookup_symbol_aux): In the cases where we find a
1550 minimal symbol of an appropriate name and use its address to
1551 select a symtab to read and search, use `name' (as passed to us)
1552 as the demangled name when searching the symtab's global and
1553 static blocks, not the minsym's name.
1554
66609862
KS
15552002-08-29 Keith Seitz <keiths@redhat.com>
1556
1557 * stack.c (print_frame_info_base): Always set current_source_symtab
1558 and current_source_line.
1559
151fefe2
JB
15602002-08-29 Donn Terry <donnte@microsoft.com>
1561
1562 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1563
bfb3754e
KS
15642002-08-28 Keith Seitz <keiths@redhat.com>
1565
1566 * stack.c (select_frame): Add FIXME concerning selected-frame
1567 events.
1568 (select_frame_command): Send selected-frame-level-changed
1569 event notification, but only if the level actually changed.
1570 (up_silently_base): Add selected-frame-level-changed event
1571 notification.
1572 (down_silently_base): Likewise.
1573
e822a2a0
AC
15742002-08-28 Andrew Cagney <ac131313@redhat.com>
1575
1576 * Makefile.in: Update dependencies for all gdb/*.c files.
1577
309367d4
TT
15782002-08-27 Tom Tromey <tromey@redhat.com>
1579
1580 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1581 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1582 Update dependencies.
1583 * i387-tdep.c: Include gdb_string.h.
1584 * osabi.c: Likewise.
1585 * i386-linux-nat.c: Likewise.
1586 * lin-lwp.c: Likewise.
1587 * ax-gdb.c: Likewise.
1588 * signals/signals.c: Likewise.
1589 * jv-valprint.c: Likewise.
1590 * p-lang.c: Likewise.
1591 * c-valprint.c: Likewise.
1592 * cp-abi.c: Likewise.
1593
e1507482
EZ
15942002-08-27 Elena Zannoni <ezannoni@redhat.com>
1595
1596 * cli/cli-script.h (copy_command_lines): Export.
1597 * breakpoint.c: Include cli/cli-script.h.
1598 * Makefile.in (breakpoint.o): Update dependencies.
1599
c6510018
MS
16002002-08-26 Michael Snyder <msnyder@redhat.com>
1601
1602 * breakpoint.c (insert_breakpoints): Protect all references
1603 to 'process_warning'. Shorten long lines.
1604
c2b8ed2c
MS
16052002-08-26 Joel Brobecker <brobecker@gnat.com>
1606
1607 * cli/cli-script.c (copy_command_lines): New function.
1608 * defs.h (copy_command_lines): Export.
1609 * testsuite/gdb.base/commands.exp: New tests for commands
1610 attached to a temporary breakpoint, and for commands that
1611 delete the breakpoint they are attached to.
1612
16132002-08-26 Michael Snyder <msnyder@redhat.com>
1614
1615 * breakpoint.c (bpstat_stop_status): Instead of copying the
1616 pointer to the breakpoint commands struct, make a new copy
1617 of the struct and point to that.
1618 (bpstat_clear): Free the commands struct.
1619 (bpstat_clear_actions): Free the commands struct.
1620 (bpstat_do_actions): Free the command actions. Also execute
1621 the local cleanups, instead of deleting them.
1622 (delete_breakpoint): Leave the commands field of the bpstat
1623 chain alone -- it will be freed later.
1624
64b84175
KB
16252002-08-26 Kevin Buettner <kevinb@redhat.com>
1626
1627 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1628 deleted in 2002-08-20 commit. This function is still used by
1629 ppc-linux-nat.c.
1630
55970da6
KS
16312002-08-26 Keith Seitz <keiths@redhat.com>
1632
1633 * gdb-events.sh: Add selected-frame-level-changed event.
1634 * gdb-events.c: Regenerated.
1635 * gdb-events.h: Regenerated.
1636
a790ad35
SC
16372002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1638
1639 Fix PR gdb/393:
1640 * inflow.c (terminal_save_ours): New function to save terminal
1641 settings.
1642 * inferior.h (terminal_save_ours): Declare.
1643 * target.c (debug_to_terminal_save_ours): New function.
1644 (cleanup_target): Defaults to_terminal_save_ours.
1645 (update_current_target): Inherit to_terminal_save_ours.
1646 (setup_target_debug): Set to_terminal_save_ours.
1647 * target.h (target_terminal_save_ours): New to save terminal settings.
1648 (target_ops): New member to_terminal_save_ours.
1649 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1650 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1651 * inftarg.c (init_child_ops): Likewise.
1652 * m3-nat.c (init_m3_ops): Likewise.
1653 * procfs.c (init_procfs_ops): Likewise.
1654 * wince.c (init_child_ops): Likewise.
1655 * win32-nat.c (init_child_ops): Likewise.
1656 * sol-thread.c (init_sol_thread_ops): Likewise.
1657
c00dcbe9
MK
16582002-08-26 Mark Kettenis <kettenis@gnu.org>
1659
3d7f4f49
MK
1660 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1661 use regcache_* functions.
1662 (i386_gdbarch_init): Set store_return_value instead of
1663 deprecated_store_return_value.
1664
c00dcbe9
MK
1665 * regcache.c (regcache_raw_write_signed,
1666 regcache_raw_write_unsigned): New functions.
1667 * regcache.h (regcache_raw_write_signed,
1668 regcache_raw_write_unsigned): New prototypes.
1669
0e0d15ca
AC
16702002-08-25 Andrew Cagney <ac131313@redhat.com>
1671
1672 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1673 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1674 source file dependencies. Cleanup corresponding generator rules.
1675
d3b22ed5
AC
16762002-08-25 Andrew Cagney <ac131313@redhat.com>
1677
1678 * regcache.h (register_offset_hack): Declare.
1679 (regcache_cooked_read_using_offset_hack): Declare.
1680 (regcache_cooked_write_using_offset_hack): Declare.
1681
1682 * regcache.c (register_offset_hack): New function.
1683 (regcache_cooked_read_using_offset_hack): New function.
1684 (regcache_cooked_write_using_offset_hack): New function.
1685 (regcache_dump): Check that the registers, according to their
1686 offset, are packed hard against each other.
1687 (cooked_xfer_using_offset_hack): New function.
1688
bb425013
AC
16892002-08-25 Andrew Cagney <ac131313@redhat.com>
1690
1691 * regcache.c (struct regcache_descr): Add field register_type.
1692 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1693 in as a parameter
1694 (init_regcache_descr): Initialize register_type. Pass the descr
1695 to init_legacy_regcache_descr. Use register_type instead of
1696 REGISTER_VIRTUAL_TYPE.
1697 (register_type): New function.
1698 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1699 * regcache.h (register_type): Declare.
1700
d0403e00
AC
17012002-08-25 Andrew Cagney <ac131313@redhat.com>
1702
1703 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1704 instead of deprecated_store_return_value. Fix fallout from
1705 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1706
0ed04cce
AC
17072002-08-25 Andrew Cagney <ac131313@redhat.com>
1708
1709 * regcache.c (max_register_size): New function.
1710 (init_legacy_regcache_descr): Ensure that max_register_size is
1711 large enough for REGISTER_VIRTUAL_SIZE.
1712 * regcache.h (max_register_size): Declare.
1713
46d79c04
AC
17142002-08-24 Andrew Cagney <ac131313@redhat.com>
1715
1716 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1717 store_return_value.
1718 (e500_extract_return_value): Change type of valbuf pointer to
1719 void.
1720
853c7bd0
MK
17212002-08-24 Mark Kettenis <kettenis@gnu.org>
1722
cd87e769
MK
1723 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1724 workaround.
1725
853c7bd0
MK
1726 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1727 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1728 long long) to prevent compiler warning on 64-bit systems.
1729
ebba8386
AC
17302002-08-23 Andrew Cagney <cagney@redhat.com>
1731
1732 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1733 (DEPRECATED_STORE_RETURN_VALUE): New method.
1734 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1735 * gdbarch.h, gdbarch.c: Re-generate.
1736
1737 * values.c (set_return_value): Pass current_regcache to
1738 STORE_RETURN_VALUE.
1739 * arch-utils.h (legacy_store_return_value): Declare.
1740 * arch-utils.c (legacy_store_return_value): New function.
1741 (legacy_extract_return_value): Update parameters.
1742
1743 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1744 STORE_RETURN_VALUE.
1745 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1746 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1747 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1748 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1749 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1750 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1751 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1752 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1753 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1754 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1755
1756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1757 * i386-tdep.c (i386_extract_return_value): Update.
1758 * arch-utils.c (legacy_extract_return_value): Update.
1759 * frv-tdep.c (frv_gdbarch_init): Update.
1760 * cris-tdep.c (cris_gdbarch_init): Update.
1761 * d10v-tdep.c (d10v_gdbarch_init): Update.
1762 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1763 * m68k-tdep.c (m68k_gdbarch_init): Update.
1764 * mcore-tdep.c (mcore_gdbarch_init): Update.
1765 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1766 * s390-tdep.c (s390_gdbarch_init): Update.
1767 * sparc-tdep.c (sparc_gdbarch_init): Update.
1768 * sh-tdep.c (sh_gdbarch_init): Update.
1769 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1770 * v850-tdep.c (v850_gdbarch_init): Update.
1771 * avr-tdep.c (avr_gdbarch_init): Update.
1772 * ia64-tdep.c (ia64_gdbarch_init): Update.
1773 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1774 * vax-tdep.c (vax_gdbarch_init): Update.
1775 * alpha-tdep.c (alpha_gdbarch_init): Update.
1776 * arm-tdep.c (arm_gdbarch_init): Update.
1777 * mips-tdep.c (mips_gdbarch_init): Update.
1778 * i386-tdep.c (i386_gdbarch_init): Update.
1779
5bd8c6d0
AC
17802002-08-23 Andrew Cagney <ac131313@redhat.com>
1781
1782 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1783 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1784
e73e1724
MK
17852002-08-24 Mark Kettenis <kettenis@gnu.org>
1786
1787 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1788 problems.
1789
3e6564e1
JB
17902002-08-23 Joel Brobecker <brobecker@gnat.com>
1791
1792 * infrun.c (handle_inferior_event): Move a comment outside of a
1793 function call, in order to avoid indent reformatting this part
1794 of the code in an unreadable way.
1795
81d0cc19
GS
17962002-08-23 Grace Sainsbury <graces@redhat.com>
1797
1798 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1799 when breakpoints fail. Move general breakpoint error messages to
1800 insert_breakpoints.
1801 * breakpoint.c (insert_breakpoints): Change warnings when
1802 breakpoints are nto inserted to specify the type. Remove call to
1803 memory_error when hardware breakpoints can't be inserted. Remove
1804 multiple calls to warning so all messages are sent to the user at
1805 once.
1806 (delete_breakpoints): Make insert error messsages more explicit.
1807
17574093
DJ
18082002-08-23 Daniel Jacobowitz <drow@mvista.com>
1809
1810 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1811 gdbserver/ChangeLog.
1812
8acc2935
MK
18132002-08-23 Mark Kettenis <kettenis@gnu.org>
1814
dfe01d39
MK
1815 * i386-tdep.c: Include "objfiles.h".
1816 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1817 skip_trampoline_code.
1818 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1819 (CPLUS_MARKER): Define to '.'.
1820
8acc2935
MK
1821 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1822 member.
1823 (linux_corefile_thread_callback): Increase args->num_notes.
1824 (linux_make_note_section): Initialize thread_args.num_notes, and
1825 use it to determine whether notes for any threads were created.
1826
151fefe2 18272002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1828
1829 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1830 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1831 and PCUNKILL.
1832 (write_with_trace): Conditionalize out the switch branch handling
1833 PCSHOLD if the corresponding macro is not defined. Likewise for
1834 PRSABORT and PRSTOP.
1835 This change will be needed by the Interix port.
1836
e1507482
EZ
18372002-08-22 Elena Zannoni <ezannoni@redhat.com>
1838
1839 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1840 write_register wherever possible instead of manipulating the
1841 register bytes directly.
1842 Assign VALUE_CONTENTS to a variable and use that.
1843 The GPR numbers are now dependent on the architecture.
1844
96ff0de4
EZ
18452002-08-22 Elena Zannoni <ezannoni@redhat.com>
1846
1847 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1848 ev_offset fields.
1849 (skip_prologue): Add support for BookE/e500 instructions.
1850 (e500_extract_return_value): New function.
1851 (frame_get_saved_regs): Add support for saving ev registers and
1852 pseudo gpr's.
1853 (e500_store_return_value): New function.
1854 (rs6000_gdbarch_init): Move up default intializations of
1855 deprecated_extract_return_value and store_return_value. Overwrite
1856 init of store_return_value with e500 specific version.
1857 Set extract_return_value for e500.
1858
fbefca5b
EZ
18592002-08-22 Elena Zannoni <ezannoni@redhat.com>
1860
1861 * blockframe.c (generic_call_dummy_register_unwind): Use
1862 regcache_cooked_read to catch cases in which the variable is
1863 stored in a pseudo register.
1864
4d210288
AC
18652002-08-22 Andrew Cagney <cagney@redhat.com>
1866
1867 * NEWS: Mention that the i960 has been made obsolete.
1868 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1869 i960-tdep.c
1870 (remote-nrom.o): Obsolete target.
1871 (remote-nindy.o, i960-tdep.o): Ditto.
1872 * remote-nrom.c: Make file obsolete.
1873 * remote-nindy.c, remote-vx960.c: Ditto.
1874 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1875 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1876 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1877 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1878 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1879 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1880 i960-*-vxworks* obsolete.
1881 * MAINTAINERS: Note that the i960 is obsolete.
1882
6c0c456d
CV
18832002-08-21 Corinna Vinschen <vinschen@redhat.com
1884
1885 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1886 detach to allow reinitialization.
1887
9f9d12b3
AC
18882002-08-22 Andrew Cagney <ac131313@redhat.com>
1889
1890 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1891 attempt).
1892
ebeb39fe
JB
18932002-08-22 Jim Blandy <jimb@redhat.com>
1894
1895 * coffread.c (coff_symfile_read): Don't try to read the line
1896 number table from disk if the image file doesn't have a symbol
1897 table; we'll never actually look at the info anyway, and Windows
1898 ships DLL's with bogus file offsets for the line number data.
1899
5bf1c677
EZ
19002002-08-21 Elena Zannoni <ezannoni@redhat.com>
1901
1902 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1903 an e500 executable.
1904
71b8ef93
MS
19052002-08-21 Michael Snyder <msnyder@redhat.com>
1906
1907 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1908 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1909 (DEFAULT_MIPS_TYPE): Delete unused macro.
1910 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1911 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1912
d174216d
JB
19132002-08-21 Jim Blandy <jimb@redhat.com>
1914
1915 * valops.c (value_cast): Simplify and correct logic for doing a
1916 static cast from a pointer to a base class to a pointer to a
1917 derived class.
1918
0ab7a791
AC
19192002-08-21 Andrew Cagney <ac131313@redhat.com>
1920
1921 * infcmd.c (default_print_registers_info): Replace
1922 do_registers_info.
1923 (registers_info): Use gdbarch_print_registers_info instead of
1924 DO_REGISTERS_INFO.
1925 * inferior.h (default_print_registers_info): Replace
1926 do_registers_info.
1927 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1928 (DO_REGISTERS_INFO): Change to a predicate function.
1929 * gdbarch.h, gdbarch.c: Regenerate.
1930
e23792cc
KS
19312002-08-21 Keith Seitz <keiths@redhat.com>
1932
1933 * gdb-events.sh: Add target-changed event.
1934 * gdb-events.c: Regenerated.
1935 * gdb-events.c: Regenerated.
1936 * valops.c (value_assign): Add target-changed event notification
1937 to inlval_register, lval_memory, and lval_reg_frame_relative.
1938
9fb14e79
JB
19392002-08-21 Joel Brobecker <brobecker@gnat.com>
1940
1941 * NEWS: Add an entry regarding the improvement of the next/step
1942 operation on Alpha Tru64 multi-processor machines.
1943
6d39a69f
AC
19442002-08-21 Andrew Cagney <ac131313@redhat.com>
1945
72acd513
AC
1946 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1947 directores.
342af04b 1948 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1949 * Makefile.in (install-gdbtk): Move to install section.
1950 (rdi-share/libangsd.a): Move to end of file.
1951
fa5f27c7
AC
19522002-08-19 Andrew Cagney <ac131313@redhat.com>
1953
1954 * frame.c (frame_register_unwind): When a register, set addrp to
1955 the register's byte.
1956
5a89d8aa
MS
19572002-08-20 Michael Snyder <msnyder@redhat.com>
1958
1959 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1960 used locally, so move them from the target machine header to here.
1961 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1962 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1963 Make static.
1964 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1965
822e978b
AC
19662002-08-20 Andrew Cagney <cagney@redhat.com>
1967
1968 * NEWS: Mention that the Apollo line was made obsolete.
1969 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1970 m68*-hp-hpux* obsolete.
1971 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1972 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1973 * buildsym.c (make_blockvector): Make static.
1974 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1975 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1976 (ALLDEPFILES): Remove dstread.c.
1977 (dstread.o): Obsolete make rule.
1978 * dstread.c: Makefile obsolete.
1979 * dst.h: Ditto.
1980 * config/m68k/hp300hpux.mt: Ditto.
1981 * config/m68k/hp300hpux.mh: Ditto.
1982 * config/m68k/hp300bsd.mt: Ditto.
1983 * config/m68k/hp300bsd.mh: Ditto.
1984 * config/m68k/apollo68b.mt: Ditto.
1985 * config/m68k/apollo68v.mh: Ditto.
1986 * config/m68k/apollo68b.mh: Ditto.
1987
e41b17f0
MS
19882002-08-20 Michael Snyder <msnyder@redhat.com>
1989
1990 * mips-tdep.c (mips_in_return_stub): Make static.
1991 (mips_gdbarch_init): Set in_solib_return_trampoline.
1992 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1993
d50355b6
MS
19942002-08-20 Michael Snyder <msnyder@redhat.com>
1995
1996 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1997 * gdbarch.c, gdbarch.h: Regenerate.
1998 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1999 Add.
2000 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2001
757a7cc6
MS
20022002-08-20 Michael Snyder <msnyder@redhat.com>
2003
2004 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2005 (mips_gdbarch_init): Set skip_trampoline_code,
2006 in_solib_call_trampoline.
2007 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2008 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2009
c8001721
EZ
20102002-08-20 Elena Zannoni <ezannoni@redhat.com>
2011
2012 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2013
2014 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2015 vector type for ev registers.
2016 (e500_pseudo_register_read): New function.
2017 (e500_pseudo_register_write): New function.
2018 (e500_dwarf2_reg_to_regnum): New function.
2019 (PPC_UISA_NOFP_SPRS): New macro.
2020 (PPC_EV_REGS): New macro.
2021 (PPC_GPRS_PSEUDO_REGS): New macro.
2022 (registers_e500): New register set for e500.
2023 (variants): Add e500 variant.
2024 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2025 before setting architectural dependent variations. Initialize ev
2026 registers numbers. Add case for e500 architecture. Set the
2027 number of pseudo registers.
2028
64366f1c
EZ
20292002-08-20 Elena Zannoni <ezannoni@redhat.com>
2030
2031 * rs6000-tdep.c: Clean up comments.
2032
7e78f0ca
AC
20332002-08-20 Andrew Cagney <cagney@redhat.com>
2034
2035 * h8300-tdep.c: Re-indent file.
2036
697f7479
JB
20372002-08-20 Jim Blandy <jimb@redhat.com>
2038
2039 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2040 default for this.
697f7479 2041
e86ae29f
KS
20422002-08-20 Keith Seitz <keiths@redhat.com>
2043
2044 * breakpoints.c (watch_command_1): Use internal breakpoint
2045 when setting a watchpoint_scope breakpoint.
2046
216b504f
EZ
20472002-08-20 Elena Zannoni <ezannoni@redhat.com>
2048
2049 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2050 (build_builtin_type_vec64i): Ditto.
2051 (build_builtin_type_vec128): Ditto.
2052 (build_builtin_type_vec128i): Ditto.
2053
f7ab6ec6
MS
20542002-08-19 Michael Snyder <msnyder@redhat.com>
2055
2056 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2057 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2058 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2059 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2060 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2061 CALL_DUMMY_ADDRESS): Delete.
2062 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2063 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2064 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2065 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2066 push_return_address.
2067 (mips_register_raw_size, mips_eabi_use_struct_convention,
2068 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2069 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2070 mips_init_extra_frame_info, mips_eabi_push_arguments,
2071 mips_n32n64_push_arguments, mips_push_return_address,
2072 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2073 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2074
b5d1566e
MS
20752002-08-19 Michael Snyder <msnyder@redhat.com>
2076
2077 * mips-tdep.c (mips_frame_num_args): New function.
2078 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2079 frame_saved_pc, frame_args_address, frame_locals_address,
2080 frame_num_args, and frame_args_skip.
2081 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2082 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2083 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2084 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2085
2f1488ce
MS
20862002-08-20 Michael Snyder <msnyder@redhat.com>
2087
2088 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2089 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2090 * mips-tdep.c (mips_store_struct_return): New function.
2091 (mips_extract_struct_value_address): New function.
2092 (mips_gdbarch_init): Set store_struct_return and
2093 extract_struct_value_address.
2094
41ff2da1
DC
20952002-08-20 David Carlton <carlton@math.stanford.edu>
2096
2097 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2098 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2099 (read_file_scope): Check that line_header is nonzero before
2100 decoding macro information.
2101
e5451d58
MK
21022002-08-20 Mark Kettenis <kettenis@gnu.org>
2103
2104 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2105 flag the general-purpose registers as floating-point on targets
2106 that don't support the floating-point registers.
2107
4a6daafa
EZ
21082002-08-20 Elena Zannoni <ezannoni@redhat.com>
2109
2110 * rs6000-tdep.c (altivec_register_p): Delete.
2111 (rs6000_do_altivec_registers): Delete.
2112 (rs6000_altivec_registers_info): Delete.
2113 (rs6000_do_registers_info): Delete.
2114 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2115 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2116
ab4327e0
EZ
21172002-08-20 Elena Zannoni <ezannoni@redhat.com>
2118
2119 * infcmd.c (do_registers_info): Print vector registers in hex
2120 format only.
2121 (print_vector_info): Check that printing registers
2122 makes sense.
2123 (print_float_info): Ditto.
2124
cb1d2653
AC
21252002-08-20 Andrew Cagney <ac131313@redhat.com>
2126
2127 * mips-tdep.c (mips_gdbarch_init): Update.
2128 (mips_o32_extract_return_value): Rewrite.
2129 (mips_o32_store_return_value): Rewrite.
2130 (mips_o32_xfer_return_value): New function.
2131 (mips_xfer_register): Tweak debug print message. Allow for
2132 buf_offset when dumping the value transfered.
2133
dfc3d9b2
AC
21342002-08-20 Andrew Cagney <ac131313@redhat.com>
2135
2136 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2137 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2138 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2139 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2140 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2141
7807aa61
MS
21422002-08-14 Michael Snyder <msnyder@redhat.com>
2143
2144 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2145
489461e2
EZ
21462002-08-19 Elena Zannoni <ezannoni@redhat.com>
2147
2148 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2149 register.
2150 (P): New macro to define a register as a pseudo register.
2151 (R, R4, R8, R16, FR32, R64, R0): Updated.
2152 (struct variant): Add new fields for number of pseudo registers
2153 and number of total registers.
2154 (tot_num_registers): New macro replacing....
2155 (num_registers): ...deleted macro.
2156 (num_registers): New function.
2157 (num_pseudo_registers): New function.
2158 (variants): Update all variants to intialize new fields correctly.
2159 Postpone initialization of number of pseudo regs and real regs.
2160 (init_variants): New function.
2161 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2162 registers offsets.
2163
fcaffe4c
DC
21642002-08-19 David Carlton <carlton@math.stanford.edu>
2165
2c2738a0
DC
2166 * valops.c (search_struct_field): Change error message to treat
2167 return value of 0 from value_static_field as meaning that field is
2168 optimized out.
2169 (value_struct_elt_for_reference): Ditto.
2170 * values.c (value_static_field): Treat an unresolved location the
2171 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2172 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2173 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2174 * MAINTAINERS: Add self to Write After Approval list.
2175
88658117
AC
21762002-08-19 Andrew Cagney <ac131313@redhat.com>
2177
2178 * mips-tdep.c (mips_xfer_register): New function.
2179 (mips_n32n64_extract_return_value): Rewrite.
2180 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2181 instead of deprecated_extract_return_value.
2182
21283beb
EZ
21832002-08-19 Elena Zannoni <ezannoni@redhat.com>
2184
2185 * rs6000-tdep.c (TDEP): Delete macro.
2186 (branch_dest): Replace use of TDEP macro with its body.
2187 (rs6000_pop_frame): Ditto.
2188 (rs6000_push_arguments): Ditto.
2189 (rs6000_skip_trampoline_code): Ditto.
2190 (rs6000_frame_saved_pc): Ditto.
2191 (rs6000_frame_chain): Ditto.
2192 (rs6000_register_name): Ditto.
2193 (rs6000_register_byte): Ditto.
2194 (rs6000_register_raw_size): Ditto.
2195 (rs6000_register_virtual_type): Ditto.
2196 (rs6000_register_convertible): Ditto.
2197 (rs6000_convert_from_func_ptr_addr): Ditto.
2198
bf072999
DJ
21992002-08-19 Daniel Jacobowitz <drow@mvista.com>
2200
2201 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2202 conditionally.
2203 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2204 MIPS_LINUX_JB_ELEMENT_SIZE.
2205 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2206 for MAX_REGISTER_RAW_SIZE arrays.
2207 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2208 MIPS_LINUX_JB_ELEMENT_SIZE.
2209
9b949a49
PM
22102002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2211
2212 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2213
6d3e79c6
AS
22142002-08-19 Aidan Skinner <aidan@velvet.net>
2215
2216 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2217 ada-valprint.c ada-tasks.c.
2218 (YYFILES): Add ada-exp.y.
2219 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2220 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2221 (ada-exp.tab.o): New target.
2222
06c0b04e
AC
22232002-08-18 Andrew Cagney <ac131313@redhat.com>
2224
2225 * regcache.c (regcache_xfer_part): New function.
2226 (regcache_raw_read_part): New function.
2227 (regcache_raw_write_part): New function.
2228 (regcache_cooked_read_part): New function.
2229 (regcache_cooked_write_part): New function.
2230 * regcache.h (regcache_raw_read_part): Declare.
2231 (regcache_raw_write_part): Declare.
2232 (regcache_cooked_read_part): Declare.
2233 (regcache_cooked_write_part): Declare.
2234
92d1e331
DJ
22352002-08-18 Daniel Jacobowitz <drow@mvista.com>
2236
2237 * remote.c (remote_open_1): Add async_p.
2238 (remote_async_open_1): Delete.
2239 (open_remote_target): Delete.
2240 (remote_open, extended_remote_open): Update calls to remote_open_1.
2241 (remote_async_open, extended_remote_async_open): Call
2242 remote_open_1 instead of remote_async_open_1.
2243
247055de
MK
22442002-08-19 Mark Kettenis <kettenis@gnu.org>
2245
2246 * blockframe.c: Fix a few coding standard violations.
2247
641eda39
MK
22482002-08-19 Mark Kettenis <kettenis@gnu.org>
2249
0b717710
MK
2250 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2251 here from ...
2252 * config/i386/tm-i386sco5.h: ... here. File removed.
2253 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2254
26d28e12 2255 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2256 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2257 (TM_FILE): Set to tm-i386.h.
2258 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2259 * config/i386/tm-i386v.h: Remove file.
2260 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2261 instead of "i386/tm-i386v.h".
2262 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2263 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2264 "i386/tm-i386v.h".
2265 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2266 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2267 "i386/tm-i386.h".
2268
d4e0bab4
MK
22692002-08-18 Mark Kettenis <kettenis@gnu.org>
2270
2271 * config/i386/nm-i386v.h: Add protection against
2272 multiple-inclusion.
2273 (i386_register_u_addr): Remove prototype.
2274 (register_u_addr): New prototype.
2275 (REGISTER_U_ADDR): Redefine accordingly.
2276 * i386v-nat.c: Improve several comments.
2277 (i386_register_u_addr): Change signature and rename to
2278 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2279 ubase variable.
2280
46cac009
AC
22812002-08-18 Andrew Cagney <ac131313@redhat.com>
2282
2283 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2284 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2285 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2286 deprecated_extract_return_value.
2287 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2288 rename mips_o32o64_push_arguments.
2289 (mips_gdbarch_init): Update.
2290 (mips_extract_return_value): Delete.
2291 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2292 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2293 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2294 (mips_n32n64_extract_return_value): Clone
2295 mips_extract_return_value.
2296 (mips_store_return_value): Delete.
2297 (mips_o32_store_return_value): Clone mips_store_return_value.
2298 (mips_o64_store_return_value): Clone mips_store_return_value.
2299 (mips_eabi_store_return_value): Clone mips_store_return_value.
2300 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2301
d2e4a39e
AS
23022002-08-18 Aidan Skinner <aidan@velvet.net>
2303
0c30c098
AS
2304 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2305 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2306
23072002-08-18 Aidan Skinner <aidan@velvet.net>
2308
2309 * ada-lang.c: Run through gdb_indent.sh.
2310 * ada-lang.h: Run through gdb_indent.sh.
2311 * ada-tasks.c: Run through gdb_indent.sh.
2312 * ada-typeprint.c: Run through gdb_indent.sh.
2313 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2314
01fc4e33
AC
23152002-08-18 Andrew Cagney <ac131313@redhat.com>
2316
2317 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2318 ABI.
2319
d8ee244c
MK
23202002-08-18 Mark Kettenis <kettenis@gnu.org>
2321
c38d8261
MK
2322 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2323
222db64c
MK
2324 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2325 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2326
c2848c82
MK
2327 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2328 write_register_gen instead of write_register_bytes.
2329
d8ee244c
MK
2330 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2331 i[3456]-*-osf1mk* configurations have been made obsolete.
2332 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2333 i[3456]86-*-osf1mk* hosts obsolete.
2334 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2335 targets obsolete.
2336 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2337 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2338 config/i386/i386m3.mt, config/i386/nm-m3.h,
2339 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2340 config/i386/i386mk.mh, config/i386/i386mk.mt,
2341 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2342 obsolete.
2343 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2344 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2345 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2346
61d8d407
AC
23472002-08-18 Andrew Cagney <ac131313@redhat.com>
2348
2349 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2350 (hppa_value_returned_from_stack): Declare.
2351 (hppa_extract_return_value): Declare.
2352 * config/pa/hppa.mt: New file.
2353 * configure.tgt: Recognize hppa*-*-*.
2354 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2355
0c52bd59
MK
23562002-08-18 Mark Kettenis <kettenis@gnu.org>
2357
2358 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2359 comment.
2360
b5686e99
MK
23612002-08-17 Mark Kettenis <kettenis@gnu.org>
2362
2363 * top.c (gdb_rl_operate_and_get_next): Make sure
2364 operate-and-get-next functions correctly even when the history
2365 list is completely filled.
2366
c1bab85b
AC
23672002-08-18 Andrew Cagney <ac131313@redhat.com>
2368
2369 * MAINTAINERS (Target Instruction Set Architectures): Rename
2370 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2371 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2372 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2373 already listed under Host/Native.
2374
2375 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2376 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2377 mips*-*-*.
2378
32089c7c
AC
23792002-08-17 Andrew Cagney <ac131313@redhat.com>
2380
2381 * config/ia64/ia64.mt: New file.
2382 * config/alpha/alpha.mt: New file.
2383 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2384 ia64-linux-gnu. Mention that ia64-elf is broken.
2385 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2386
b4671f85
MK
23872002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2388
2389 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2390 generic_func_frame_valid instead of func_frame_valid.
2391
c8edd8b4
JB
23922002-08-16 Joel Brobecker <brobecker@gnat.com>
2393
2394 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2395 procfs appears to be broken when debugging on multi-processor
2396 machines. So enable software single stepping in order to avoid
2397 using the procfs interface to do next/step operations, using
2398 internal breakpoints instead.
2399
2400 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2401 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2402 make this pc address equal to the value it would have if the
2403 system stepping capability was used. Also set a new flag used
2404 to ensure that we don't readjust the PC one more time later.
2405
2406 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2407 address by DECR_PC_AFTER_BREAK when software single step is
2408 in use for this architecture, as this has already been taken
2409 care of in handle_inferior_event().
2410
238617f6
JB
24112002-08-16 Joel Brobecker <brobecker@gnat.com>
2412
2413 * infrun.c (handle_inferior_event): Minor reformatting, to make
2414 a rather long condition expression easier to read.
2415
541a7aac
AC
24162002-08-16 Andrew Cagney <ac131313@redhat.com>
2417
2418 * Makefile.in (gdbtk.o): Move to end of file.
2419 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2420 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2421 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2422 (gdbtk-wrapper.o, gdbres.o): Ditto.
2423
f92d4a7b
AC
24242002-08-16 Andrew Cagney <ac131313@redhat.com>
2425
2426 * Makefile.in (copying.o): Separate out compile rule.
2427 (hpux-thread.o, procfs.o, signals.o): Ditto.
2428 (v850ice.o, z8k-tdep.o): Ditto.
2429 (tui-file.o): Move to TUI section.
2430 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2431 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2432
1cce71eb
JB
24332002-08-16 Joel Brobecker <brobecker@gnat.com>
2434
2435 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2436 skip_trampoline_code, for better namespace-proofing.
2437
2438 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2439
0851f23d
JB
24402002-08-16 Joel Brobecker <brobecker@gnat.com>
2441
2442 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2443
f8d40ec8
JB
24442002-08-16 Joel Brobecker <brobecker@gnat.com>
2445
2446 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2447 signal, check whether we hit a breakpoint before checking for a
2448 single step breakpoint. Otherwise, GDB fails to notice that a
2449 breakpoint has been hit when stepping onto a breakpoint.
2450
63d022e0
KS
24512002-08-16 Keith Seitz <keiths@redhat.com>
2452
2453 * gdb-events.sh (clear_gdb_event_hooks): New function.
2454 * gdb-events.c: Regenerate.
2455 * gdb-events.h: Regenerate.
2456
6e31adb3
AC
24572002-08-16 Andrew Cagney <ac131313@redhat.com>
2458
2459 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2460 not_a_sw_breakpoint.
2461 * breakpoint.h (bpstat_stop_status): Add parameter names.
2462
c8189ed1
GS
24632002-08-16 Grace Sainsbury <graces@redhat.com>
2464
2465 * remote.c (remote_insert_hw_breakpoint)
2466 (remote_remove_hw_breakpoint): Fix calculation of length field
2467 for Z-packet.
2468
d05285fa
MS
24692002-08-15 Michael Snyder <msnyder@redhat.com>
2470
466d7106
MS
2471 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2472 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2473 (supply_fpregset): Ditto.
2474
d05285fa
MS
2475 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2476 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2477 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2478 (TARGET_READ_SP): Delete.
bf1f5b4c 2479 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2480 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2481 Delete.
2482 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2483 from macros to functions.
bf1f5b4c 2484
d05285fa
MS
2485 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2486 (mips_register_convertible, mips_register_convert_to_virtual,
2487 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2488 (mips_read_sp): New function.
2489 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2490 (mips_do_registers_info): Make static.
2491 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2492 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2493 (mips_register_convert_from_type, mips_register_convert_to_type):
2494 New functions.
2495 (mips_gdbarch_init): Set up function_start_offset,
2496 register_virtual_size, pc_in_sigtramp.
d05285fa 2497
e76f1f2e
AC
24982002-08-15 Andrew Cagney <ac131313@redhat.com>
2499
2500 * infcmd.c (vector_info): New function.
2501 (_initialize_infcmd): Add command "info vector".
2502 (print_vector_info): New function.
2503
2504 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2505 * gdbarch.h, gdbarch.c: Regenerate.
2506
4782dc19
AC
25072002-08-15 Andrew Cagney <ac131313@redhat.com>
2508
2509 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2510 ``print_all''. Only print vector registers when ``print_all''.
2511
23e3a7ac
AC
25122002-08-15 Andrew Cagney <ac131313@redhat.com>
2513
8e186fd6
AC
2514 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2515 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2516
23e3a7ac
AC
2517 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2518 Add `args' parameter.
2519 * gdbarch.h, gdbarch.c: Regenerate.
2520
2521 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2522
2523 * infcmd.c (float_info): Call print_float_info.
2524 (print_float_info): New function. By default, print the
2525 floating-point registers.
2526
2527 * arch-utils.h (default_print_float_info): Delete declaration.
2528 * arch-utils.c (default_print_float_info): Delete function.
2529
e0ca2bb9
MK
25302002-08-16 Mark Kettenis <kettenis@gnu.org>
2531
3f733acc
MK
2532 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2533 out define.
2534
7d8d2918
MK
2535 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2536 FRAME.
2537
1c7cc583
MK
2538 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2539 * configure.host: Make i[3456]86-*-aix host obsolete.
2540 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2541 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2542 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2543 config/i386/xm-i386aix.h: Make files obsolete.
2544 * i386aix-nat.c: Make file obsolete.
2545 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2546 (i386aix-nat.o): Make target obsolete.
2547
e0ca2bb9
MK
2548 * config/i386/nm-gnu.h: Removed.
2549 * config/i386/nm-i386gnu.h: New file.
2550 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2551 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2552 Moved here from ...
2553 * config/i386/tm-i386gnu.h: ... here. Removed.
2554 * config/i386/xm-i386gnu.h: Removed.
2555 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2556 (NAT_FILE): Set to nm-i386gnu.h.
2557 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2558 * i386-tdep.c: New file.
2559 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2560 (i386gnu-tdep.o): Specify dependencies.
2561
16057ec7 25622002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2563
6b99ee2e
MK
2564 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2565 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2566 Adjust a few comments to reflect reality a bit closer.
2567 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2568 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2569 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2570 target_insert_watchpoint, target_remove_watchpoint):
2571 Move defines to ...
2572 * config/i386/nm-i386sco5.h: ... here.
2573 (kernel_u_size): Add prototype. Improve a few comments and add
2574 protection against multiple inclusion.
2575
d9a6f65c
MK
2576 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2577 out define.
2578
047eff6a
MK
2579 * uw-thread.c (SP_ARG0): Define if not already defined.
2580 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2581
dcdb1290
MK
2582 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2583
5d2d0b2a
MK
2584 * config/i386/tm-i386.h: Don't include "regcache.h".
2585
61113f8b
MK
2586 * i387-tdep.h (i387_print_float_info): New prototype.
2587 * i387-tdep.c (print_i387_value, print_i387_ext,
2588 print_i387_status_word, print_i387_control_word): Add `struct
2589 ui_file *' argument and use it for output.
2590 (i387_print_float_info): Renamed from i387_float_info. Add
2591 `struct gdbarch *' and `struct ui_file *' arguments and use the
2592 latter for output.
2593 * i386-tdep.c: Include "i387-tdep.h".
2594 (i386_gdbarch_init): Set print_float_info.
2595 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2596 (FLOAT_INFO): Remove define.
2597
46e0f506
MS
25982002-08-13 Michael Snyder <msnyder@redhat.com>
2599
2600 * mips-tdep.c (mips_push_arguments): Rename to
2601 mips_eabi_push_arguments, and tune for EABI.
2602 (MIPS_REGS_HAVE_HOME_P): Delete.
2603 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2604 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2605 Delete references to mips_regs_have_home_p.
2606
409268de
KS
26072002-08-14 Keith Seitz <keiths@redhat.com>
2608
2609 * Makefile.in (install-gdbtk): Create insight plugin directory.
2610 Install plugins.tcl file.
2611
ffc6a242
KS
26122002-08-14 Keith Seitz <keiths@redhat.com>
2613
2614 * configure.in: Move SUBDIRS to near top of the file so that
2615 --enable options may add things to it.
2616 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2617 * configure: Regenerate.
2618
ebafbe83
MS
26192002-08-13 Michael Snyder <msnyder@redhat.com>
2620
2621 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2622 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2623 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2624
32f6f25d
AC
26252002-08-13 Andrew Cagney <ac131313@redhat.com>
2626
2627 * vax-tdep.c (vax_get_saved_register): Delete function.
2628 (vax_gdbarch_init): Update.
2629 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2630 (ns32k_gdbarch_init): Update.
2631 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2632 (alpha_gdbarch_init): Update.
2633
53826de9
AC
26342002-08-13 Andrew Cagney <cagney@redhat.com>
2635
2636 * regcache.c (init_regcache_descr): Overallocate the
2637 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2638 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2639 nr_raw_registers.
2640 (set_register_cached): Add range checking assertions. Use
2641 current_regcache.
2642
16057ec7 26432002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2644
2645 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2646 numbers for MMX registers.
2647
7b4c2dce
AC
26482002-08-13 Andrew Cagney <cagney@redhat.com>
2649
2650 * i386-tdep.c (i386_gdbarch_init): Use
2651 generic_unwind_get_saved_register.
2652
1e03ad20
KB
26532002-08-13 Kevin Buettner <kevinb@redhat.com>
2654
2655 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2656 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2657 target vector.
2658 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2659 Delete. Add comment regarding this now-deleted target method.
2660
548bcbec
SC
26612002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2662
2663 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2664 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2665 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2666 real PC and the page number (if it's within the memory bank window).
2667 (m68hc11_pseudo_register_write): Likewise when saving.
2668 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2669 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2670 (m68hc11_register_raw_size): And use 32-bit for it.
2671 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2672 16K memory bank is used by the prog; also use the virtual pc.
2673
7df11f59
SC
26742002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2675
2676 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2677 (m68hc11_gdbarch_init): Install it in gdbarch.
2678 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2679 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2680 (MSYMBOL_SIZE): New for documentation.
2681 (insn_return_kind): Enum to specify how a function returns.
2682 (frame_extra_info): Cleanup and record the return mode.
2683 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2684 register in address computation.
2685 (m68hc11_get_return_insn): New to obtain the return instruction used
2686 by the function.
2687 (m68hc11_frame_init_saved_regs): Take into account the return
2688 instruction used by the function for far and interrupt functions.
2689 (m68hc11_init_extra_frame_info): Take into account page register.
2690 (m68hc11_frame_args_address): Adjust according to the return mode.
2691 (show_regs): Print page register only when it's used.
2692
5706502a
SC
26932002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2694
2695 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2696 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2697 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2698 registers.
2699 (m68hc11_register_raw_size): Likewise.
2700
28fc6740
AC
27012002-08-13 Andrew Cagney <cagney@redhat.com>
2702
2703 * i386-tdep.c (i386_register_name): Handle mmx registers.
2704 (mmx_regnum_p): New function.
2705 (i386_mmx_names): New array.
2706 (mmx_num_regs): New variable.
2707 (i386_pseudo_register_read): New function.
2708 (i386_pseudo_register_write): New function.
2709 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2710
2711 * regcache.c (regcache_raw_read_unsigned): New function.
2712 (regcache_raw_read_signed): New function.
2713 * regcache.h (regcache_raw_read_unsigned): Declare.
2714 (regcache_raw_read_signed): Declare.
2715
a378f419
AC
27162002-08-13 Andrew Cagney <cagney@redhat.com>
2717
2718 * regcache.c (regcache_raw_read_as_address): Delete function.
2719 (regcache_cooked_read_signed): New function.
2720 (regcache_cooked_read_unsigned): New function.
2721 * regcache.h (regcache_cooked_read_signed): Declare.
2722 (regcache_cooked_read_unsigned): Declare.
2723 (regcache_raw_read_as_address): Delete declaration.
2724
2725 * blockframe.c (generic_read_register_dummy): Use
2726 regcache_cooked_read_unsigned.
2727 * i386-tdep.c (i386_extract_struct_value_address): Use
2728 regcache_cooked_read_unsigned.
2729
81967506
SC
27302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2731
2732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2733 double sizes according to ELF ABI flags.
2734 (gdbarch_tdep): Record elf_flags.
2735
ffe1f3ee
SC
27362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2737
2738 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2739 (m6812_prolog): They can appear in 68HC12 function prologue.
2740 (m68hc11_frame_chain): Cleanup.
2741
98216c5d
AC
27422002-08-12 Andrew Cagney <cagney@redhat.com>
2743
2744 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2745 declarations.
2746 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2747 (i386_linux_register_raw_size): Delete function.
2748 (i386_linux_init_abi): Update.
2749 * i386-tdep.c (i386_register_raw_size): Delete function.
2750 (i386_register_byte): Delete function.
2751 (i386_gdbarch_init): Update.
2752 (i386_register_size): Delete array.
2753 (i386_register_offset): Delete array.
2754
2755 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2756 (REGISTER_RAW_SIZE): Delete macro.
2757 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2758 (REGISTER_BYTE): Delete macro.
2759
3b19021e
AS
27602002-08-11 Aidan Skinner <aidan@velvet.net>
2761
2762 * ada-lang.c (ada_lookup_partial_symbol)
2763 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2764 prototype names so that grep ^func works properly.
2765
2766 * ada-lang.c (ada_array_element_type)
2767 (ada_lookup_partial_symbol): Fix typos in parameter list.
2768
2769 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2770 Fix prototype names so that grep ^func works properly.
2771
b063e7a2
AC
27722002-08-10 Andrew Cagney <cagney@redhat.com>
2773 Elena Zannoni <ezannoni@redhat.com>
2774 Martin M. Hunt <hunt@redhat.com>
2775
2776 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2777 (build_builtin_type_vec128i): Set the vector bit.
2778 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2779 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2780 (build_builtin_type_vec64): New function.
2781 (build_builtin_type_vec64i): New function.
2782 (build_gdbtypes): Initialize builtin_type_vec64 and
2783 builtin_type_vec64i.
2784
a7e3c2ad
AC
27852002-08-09 Andrew Cagney <cagney@redhat.com>
2786
2787 * regcache.c (regcache_dump): Compare the register offset
2788 with REGISTER_BYTE.
2789 * arch-utils.c (generic_register_byte): New function.
2790 * arch-utils.h (generic_register_byte): Declare.
2791 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2792 * gdbarch.h, gdbarch.c: Regenerate.
2793
af030b9a
AC
27942002-08-09 Andrew Cagney <cagney@redhat.com>
2795
2796 * regcache.c: Include "gdbcmd.h"
2797 (_initialize_regcache): Add commands "maintenance print
2798 registers", "maintenance print raw-registers" and "maintenance
2799 print cooked-registers".
2800 (enum regcache_dump_what): Define.
2801 (dump_endian_bytes): New function.
2802 (regcache_dump): New function.
2803 (regcache_print): New function.
2804 (maintenance_print_registers): New function.
2805 (maintenance_print_raw_registers): New function.
2806 (maintenance_print_cooked_registers): New function.
2807 * Makefile.in (regcache.o): Update dependencies.
2808
cb3d25d1
MS
28092002-08-09 Michael Snyder <msnyder@redhat.com>
2810
2811 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2812 (mips_push_arguments): Correct some comments. Use paddr_nz
2813 for printing addresses in debug output. Replace static
2814 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2815 (mips_n32n64_push_arguments): New function, cloned from
2816 mips_push_arguments and tuned for the n32/n64 ABI.
2817 (mips_push_register): Buffer needs dynamic allocation.
2818 (mips_print_register): Ditto.
2819 (do_gp_register_row): Ditto.
2820 (mips_store_return_value): Ditto.
2821 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2822
2163ab9d
DH
28232002-08-09 Don Howard <dhoward@redhat.com>
2824
2825 * memattr.c (mem_info_command): Print special case of upper bound
2826 as max CORE_ADDR + 1.
2827
b78bcb18
MS
28282002-08-08 Michael Snyder <msnyder@redhat.com>
2829
2830 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2831 returns structs by ref if they're too big to fit in two registers.
2832
ffabd70d
KB
28332002-08-09 Kevin Buettner <kevinb@redhat.com>
2834
2835 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2836 saved regs value.
2837 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2838 mips_find_saved_regs().
2839 (mips_pop_frame): Likewise.
2840
fbcdb4a3
KB
28412002-08-09 Kevin Buettner <kevinb@redhat.com>
2842
2843 * blockframe.c (frame_saved_regs_register_unwind): Revise
2844 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2845 frames are in use.
2846
3c3bea1c
GS
28472002-08-09 Grace Sainsbury <graces@redhat.com>
2848
2849 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2850 T-packets; the 'a' is not taken as a register number.
2851 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2852 (remote_stopped_data_address): New functions; add to target
2853 vector.
2854 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2855 prototypes to match other implementations of this
2856 function. replace integer argument with pointer -- the length
2857 field in the Z-packet is the length of what is pointed to or 1 if
2858 pointer is null. Add to target vector.
2859 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2860 target vector.
2861
2862 From Mark Salter:
2863 * remote.c (remote_wait): Add support to extract optional
2864 watchpoint information from T-packet. Ignore unrecognized
2865 optional info in T-packet.
2866 (remote_async_wait): Ditto.
2867
5d1d95de
CV
28682002-08-09 Corinna Vinschen <vinschen@redhat.com>
2869
2870 * cli/cli-dump.c: Change fopen modes to use binary open modes
2871 as defined in include/fopen-bin.h throughout.
2872
c86b5b38
MS
28732002-08-08 Michael Snyder <msnyder@redhat.com>
2874
2875 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2876
b30590dc
KB
28772002-08-08 Kevin Buettner <kevinb@redhat.com>
2878
2879 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2880 assertion failure by returning early after a warning.
2881
498868ed
KB
28822002-08-08 Kevin Buettner <kevinb@redhat.com>
2883
2884 * mips-tdep.c (mips_find_saved_regs): Make static.
2885 (mips_frame_init_saved_regs): New function.
2886 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2887 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2888 (mips_find_saved_regs): Delete declaration.
2889
b2dd6311
GS
28902002-08-08 Grace Sainsbury <graces@redhat.com>
2891
3c3bea1c
GS
2892 * remote.c (remote_wait, remote_async_wait): Change
2893 thread_num from int to ULONGEST.
2894 (unpack_varlen_hex): Change result parameter from
2895 int * to ULONGEST *.
b2dd6311 2896
ea47855f
AC
28972002-08-08 Andrew Cagney <ac131313@redhat.com>
2898
2899 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2900 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2901 powerpc*-*-*.
2902 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2903
69db8bae
AC
29042002-08-08 Andrew Cagney <cagney@redhat.com>
2905
2906 * gcore.c (override_derive_stack_segment): Delete variable.
2907 (preempt_derive_stack_segment): Delete function.
2908 (derive_stack_segment): Delete function.
2909 (default_derive_stack_segment): Renamed to derive_stack_segment.
2910 (override_derive_heap_segment): Delete variable.
2911 (preempt_derive_heap_segment): Delete function.
2912 (derive_heap_segment): Delete function.
2913 (default_derive_heap_segment): Rename to derive_heap_segment.
2914
cb811fe7
MS
29152002-08-06 Michael Snyder <msnyder@redhat.com>
2916
2917 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2918 * mips-tdep.c (mips_EABI_use_struct_convention,
2919 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2920 New functions. (mips_use_struct_convention): Delete.
2921 (mips_gdbarch_init): set use_gdbarch_convention.
2922
8b389c40
MS
29232002-08-06 Michael Snyder <msnyder@redhat.com>
2924
2925 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2926 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2927 mips_o32_reg_struct_has_addr): New functions.
2928 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2929
5c27f28a
AC
29302002-08-07 Andrew Cagney <ac131313@redhat.com>
2931
2932 * regcache.c (pseudo_register): Delete function.
2933 (fetch_register): Delete function.
2934 (store_register): Delete function.
2935 (regcache_raw_read, legacy_read_register_gen): Use
2936 target_fetch_registers instead of fetch_register.
2937 (legacy_write_register_gen, regcache_raw_write): Use
2938 target_store_register instead of store_register.
2939 (write_register_bytes): Ditto.
2940
2941 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2942 (STORE_PSEUDO_REGISTER): Delete.
2943 * gdbarch.h, gdbarch.c: Regenerate.
2944
5b331675
CV
29452002-08-06 Corinna Vinschen <vinschen@redhat.com>
2946
2947 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2948 write dump file binary.
2949
6acdf5c7
MS
29502002-08-05 Michael Snyder <msnyder@redhat.com>
2951
2952 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2953 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2954 (mips_gdbarch_init): Set N32 target to be mips64.
2955
b2f01c35
KB
29562002-08-06 Kevin Buettner <kevinb@redhat.com>
2957
2958 * frame.c (find_saved_register): Break out of loop once saved
2959 register address is found. Don't mention sparc in loop comment
2960 anymore.
2961
63db5580
KB
29622002-08-06 Kevin Buettner <kevinb@redhat.com>
2963
2964 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2965 mips_default_saved_regsize to 8.
2966
5e34e75e
AC
29672002-08-06 Andrew Cagney <ac131313@redhat.com>
2968
2969 * gcore.c: Do not include <sys/procfs.h>.
2970 * Makefile.in (gcore.o): Update dependencies.
2971
eb4c54a2
AC
29722002-08-06 Andrew Cagney <cagney@redhat.com>
2973
2974 * configure.tgt: Make arc-*-* obsolete.
2975 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2976 * MAINTAINERS: Make arc-elf obsolete.
2977 * arc-tdep.c: Make file obsolete.
2978 * config/arc/arc.mt: Ditto.
2979 * config/arc/tm-arc.h: Ditto.
2980
ced15480
TR
29812002-08-05 Theodore A. Roth <troth@verinet.com>
2982
c1bab85b 2983 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2984
b4743822
AC
29852002-08-05 Andrew Cagney <ac131313@redhat.com>
2986
2987 * mcore-tdep.c (mcore_gdbarch_init): Use
2988 generic_unwind_get_saved_register instead of
2989 generic_get_saved_register.
2990 * v850-tdep.c (v850_gdbarch_init): Ditto.
2991 * frv-tdep.c (frv_gdbarch_init): Ditto.
2992 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2993 * s390-tdep.c (s390_gdbarch_init): Ditto.
2994 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2995 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2996 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2997
3956d554
JB
29982002-08-05 Joel Brobecker <brobecker@gnat.com>
2999
3000 * objfiles.h: Add missing #include "symfile.h"
3001
3002 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3003
8249c0d6
AC
30042002-08-04 Andrew Cagney <ac131313@redhat.com>
3005
3006 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3007 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3008 of FIELD_BITSIZE.
3009
b9d14705
DJ
30102002-08-04 Daniel Jacobowitz <drow@mvista.com>
3011
3012 * NEWS: Cleanup and nitpick.
3013
dd73b9bb
AC
30142002-08-03 Andrew Cagney <ac131313@redhat.com>
3015
3016 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3017
043a27f8
AC
30182002-08-03 Andrew Cagney <ac131313@redhat.com>
3019
3020 * Makefile.in (gdbtk-bp.o): Update dependencies.
3021 (gdbtk-register.o): Ditto.
3022 (gdbtk-varobj.o): Ditto.
3023
46ce284d
AC
30242002-08-03 Andrew Cagney <cagney@redhat.com>
3025
3026 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3027 m68hc11_fetch_pseudo_register.
3028 (m68hc11_pseudo_register_write): Replace
3029 m68hc11_store_pseudo_register.
3030 (m68hc11_gdbarch_init): Update.
3031
b66d6d2e
AC
3032Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3033
3034 * gdbarch.sh: Include "gdb_string.h".
3035 * gdbarch.c: Regenerate.
3036
3037 * regcache.c: Include "gdb_string.h".
3038 * ax-general.c: Ditto.
3039 * varobj.c: Ditto.
3040 * std-regs.c: Ditto.
3041 * fbsd-proc.c: Ditto.
3042 * thread.c: Ditto.
3043
3044 * Makefile.in (regcache.o): Update dependencies.
3045 (thread.o, gdbarch.o): Ditto.
3046 (ax-general.o, gdbarch.o): Ditto.
3047 (varobj.o, std-regs.o): Ditto.
3048 (fbsd-proc.o): Specify dependencies.
3049
29e1842b
AC
30502002-08-02 Andrew Cagney <cagney@redhat.com>
3051
3052 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3053 regnum.
3054 (regcache_cooked_write): Ditto.
3055
68365089
AC
30562002-08-02 Andrew Cagney <ac131313@redhat.com>
3057
3058 * regcache.c (regcache_cooked_read): New function.
3059 (regcache_cooked_write): New function.
3060 (read_register_gen): Rewrite using regcache_cooked_read.
3061 (write_register_gen): Rewrite using regcache_cooked_write.
3062
3063 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3064 Declare.
3065
d8124050
AC
30662002-08-02 Andrew Cagney <cagney@redhat.com>
3067
3068 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3069 Replace the architecture methods register_read and register_write.
3070 * gdbarch.h, gdbarch.c: Regenerate.
3071 * regcache.c (init_regcache_descr): Update.
3072 (read_register_gen): Update.
3073 (write_register_gen): Update.
3074 (supply_register): Update comment.
3075
3076 * sh-tdep.c (sh_gdbarch_init): Update.
3077 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3078 `regcache' and `gdbarch' parameters. Make `buffer' a void
3079 pointer. Update code.
3080 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3081 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3082 void pointer. Update code.
3083 (sh64_register_write): Delete.
3084 (sh4_register_read): Delete.
3085 (sh64_register_read): Delete.
3086 (sh4_register_write): Delete.
3087 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3088 void pointer, `to' parameter a void pointer.
3089 (sh_sh64_register_convert_to_raw): Ditto.
3090
a6425924
KB
30912002-08-01 Kevin Buettner <kevinb@redhat.com>
3092
3093 * mips-tdep.c (mips_register_virtual_type): Use architecture
3094 invariant return values.
3095
ff5922b5
AC
30962002-08-01 Andrew Cagney <cagney@redhat.com>
3097
3098 * linux-proc.c: Include "gdb_string.h".
3099 * Makefile.in (linux-proc.o): Update dependency list.
3100
32a6503c
KB
31012002-08-01 Kevin Buettner <kevinb@redhat.com>
3102
3103 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3104 comment.
3105
ccaa32c7
GS
31062002-08-01 Grace Sainsbury <graces@redhat.com>
3107
3108 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3109 to_insert_watchpoint, to_remove_watchpoint,
3110 to_stopped_by_watchpoint, to_stopped_data_address,
3111 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3112 target vecctor. Define their corresponding macros so they call
3113 them.
3114
3115 * target.c: Add default and debug versions of for
3116 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3117 to_insert_watchpoint, to_remove_watchpoint,
3118 to_stopped_by_watchpoint, to_stopped_data_address,
3119 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3120
78fde5f8
KB
31212002-08-01 Kevin Buettner <kevinb@redhat.com>
3122
3123 * mips-tdep.c (mips_register_virtual_type): New function.
3124 (mips_gdbarch_init): Register mips_register_virtual_type()
3125 with gdbarch machinery.
3126 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3127 this file instead of tm-bigmips.h.
3128 (MIPS_REGSIZE): Delete this macro.
3129 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3130 multiarch version in mips-tdep.c will be found.
3131
db034ac5
AC
31322002-08-01 Andrew Cagney <cagney@redhat.com>
3133
3134 * NEWS: Menion that CHILL has been made obsolete.
3135
3136 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3137 * stabsread.c (read_range_type): Ditto.
3138 * gdbtypes.h: Ditto.
3139 * language.c (binop_type_check): Ditto.
3140 (binop_result_type): Ditto.
3141 (integral_type): Ditto.
3142 (character_type): Ditto.
3143 (string_type): Ditto.
3144 (boolean_type): Ditto.
3145 (structured_type): Ditto.
3146 (lang_bool_type): Ditto.
3147 (binop_type_check): Ditto.
3148 * language.h (_LANG_chill): Ditto.
3149 * dwarfread.c (set_cu_language): Ditto.
3150 * dwarfread.c (CHILL_PRODUCER): Ditto.
3151 * dwarfread.c (handle_producer): Ditto.
3152 * expression.h (enum exp_opcode): Ditto.
3153 * eval.c: Ditto for comments.
3154 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3155 * expprint.c (print_subexp): Ditto.
3156 (print_subexp): Ditto.
3157 * valops.c (value_cast): Ditto.
3158 (search_struct_field): Ditto.
3159 * value.h (COERCE_VARYING_ARRAY): Ditto.
3160 * symfile.c (init_filename_language_table): Ditto.
3161 (add_psymbol_with_dem_name_to_list): Ditto.
3162 * valarith.c (value_binop): Ditto.
3163 (value_neg): Ditto.
3164 * valops.c (value_slice): Ditto.
3165 * symtab.h (union language_specific): Ditto.
3166 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3167 (SYMBOL_DEMANGLED_NAME): Ditto.
3168 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3169 * defs.h (enum language): Ditto.
3170 * symtab.c (got_symtab): Ditto.
3171 * utils.c (fprintf_symbol_filtered): Ditto.
3172
3173 * ch-typeprint.c: Make file obsolete.
3174 * ch-valprint.c: Make file obsolete.
3175 * ch-lang.h: Make file obsolete.
3176 * ch-exp.c: Make file obsolete.
3177 * ch-lang.c: Make file obsolete.
3178
3179 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3180 CHILL_LIB.
3181 (TARGET_FLAGS_TO_PASS): Ditto.
3182 (CHILLFLAGS): Obsolete.
3183 (CHILL): Obsolete.
3184 (CHILL_FOR_TARGET): Obsolete.
3185 (CHILL_LIB): Obsolete.
3186 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3187 ch-valprint.c.
3188 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3189 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3190 ch-lang.o.
3191 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3192 targets.
3193
8aaf0b47
JB
31942002-07-31 Joel Brobecker <brobecker@gnat.com>
3195
3196 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3197 This does not change anything at the moment, but will be helpful
3198 later when full Ada support is integrated.
3199
f3a7b3a5
KB
32002002-07-31 Kevin Buettner <kevinb@redhat.com>
3201
3202 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3203 help message.
3204
fb850278
KB
32052002-07-31 Kevin Buettner <kevinb@redhat.com>
3206
3207 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3208 and save it in a local variable. Use variable in later test.
3209
e3bddbfa
KB
32102002-07-31 Kevin Buettner <kevinb@redhat.com>
3211
3212 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3213 test. (Thanks to Daniel Jacobowitz.)
3214
28d169de
KB
32152002-07-31 Kevin Buettner <kevinb@redhat.com>
3216
3217 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3218 (mips_abi_strings): Add "n64".
3219 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3220
7fe7e44e
KB
32212002-07-31 Kevin Buettner <kevinb@redhat.com>
3222
3223 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3224 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3225
c6caf090
KB
32262002-07-31 Kevin Buettner <kevinb@redhat.com>
3227
3228 * utils.c (host_pointer_to_address, address_to_host_pointer):
3229 Use gdb_assert() instead of explicit call to internal_error().
3230
c41669e0
KB
32312002-07-30 Kevin Buettner <kevinb@redhat.com>
3232
3233 * Makefile.in (rs6000-nat.o): Update dependencies.
3234
3235 From Nicholas Duffek:
3236 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3237 (aix-thread.o): New rule.
3238 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3239 * config/powerpc/aix432.mh: New file.
3240
2fda4977
DJ
32412002-07-30 Daniel Jacobowitz <drow@mvista.com>
3242
3243 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3244 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3245 (fetch_core_registers, ppc_linux_supply_gregset)
3246 (ppc_linux_supply_fpregset): New functions.
3247 (ppc_linux_regset_core_fns): New.
3248 (_initialize_ppc_linux_tdep): Call add_core_fns.
3249 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3250 and ppc_linux_supply_gregset.
3251 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3252 (supply_fpregset): Call ppc_linux_supply_fpregset.
3253 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3254 corelow.o.
3255 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3256
729051e6
DJ
32572002-07-30 Daniel Jacobowitz <drow@mvista.com>
3258
3259 * symtab.c (lookup_symbol): Demangle before lowercasing.
3260
5f8a3188
AC
32612002-07-30 Andrew Cagney <ac131313@redhat.com>
3262
3263 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3264 declaration.
3265 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3266 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3267 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3268 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3269 "gdb_string.h".
3270 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3271 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3272 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3273 (avr-tdep.o, mon960-rom.o): Ditto.
3274 (aout_stabs_gnu_h): Define.
3275 (symtab_h): Remove $(gdb_obstack_h).
3276
67f07146
JB
32772002-07-30 Jim Blandy <jimb@redhat.com>
3278
3279 Patch from David Carlton <carlton@math.stanford.edu>:
3280 * gdbinit.in: Move the `dir' commands that add GDB's own source
3281 directory to the search path to the end, so that the `gdb' source
3282 directory will be searched first.
3283
04ea0df1
AC
32842002-07-29 Andrew Cagney <ac131313@redhat.com>
3285
3286 * gdb_obstack.h: New file.
3287 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3288 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3289 * objfiles.h: Include "gdb_obstack.h".
3290 * Makefile.in (gdb_obstack_h): Define.
3291 (symtab_h): Add $(gdb_obstack_h).
3292 (objfiles_h): Add $(gdb_obstack_h).
3293
3294 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3295 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3296 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3297 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3298 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3299 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3300 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3301 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3302
3303 * Makefile.in (bcache.o): Update dependencies.
3304 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3305 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3306 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3307 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3308 (stabsread.o, symfile.o, symmisc.o): Ditto.
3309 (symtab.o, typeprint.o, macroexp.o): Ditto.
3310 (macrotab.o, mdebugread.o): Ditto.
3311 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3312 (coff_ecoff_h, aout_aout64_h): Define.
3313 (aout_stabs_gnu_h, libaout_h): Define.
3314
d138e37a
AC
33152002-07-29 Andrew Cagney <cagney@redhat.com>
3316
3317 * regcache.c (struct regcache_descr): Rename nr_registers to
3318 nr_cooked_registers. Revise comments describing the structure
3319 member fields.
3320 (init_regcache_descr): Update.
3321 (init_legacy_regcache_descr): Update.
3322 (read_register_gen, write_register_gen): When a cooked register in
3323 the raw register range, directly access the value from the raw
3324 register cache.
3325
460e6ec3
AC
33262002-07-29 Andrew Cagney <ac131313@redhat.com>
3327
3328 * z8k-tdep.c: Do not include "obstack.h".
3329 * h8300-tdep.c, h8500-tdep.c: Ditto.
3330 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3331 * valprint.c, v850-tdep.c: Ditto.
3332 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3333 * mn10200-tdep.c: Ditto.
3334
3335 * Makefile.in (z8k-tdep.o): Update dependencies.
3336 (m68hc11-tdep.o, valprint.o): Ditto.
3337 (v850-tdep.o, d10v-tdep.o): Ditto.
3338 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3339 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3340 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3341 (sh_opc_h, gdb_sim_sh_h): Define.
3342 (elf_sh_h, elf_bfd_h): Define.
3343 (opcode_m68hc11_h): Define.
3344 (OPCODES_SRC, OPCODES_DIR): define.
3345 (OPCODES): Use $(OPCODES_DIR).
3346 (gdb_sim_d10v_h): Rename sim_d10v_h.
3347 (gdb_sim_arm_h): Rename sim_arm_h.
3348
790c9cf0
KB
33492002-07-26 Kevin Buettner <kevinb@redhat.com>
3350
3351 * utils.c (host_pointer_to_address, address_to_host_pointer):
3352 Change internal_error() message to indicate function responsible
3353 for the error.
3354
9647fa49
KB
33552002-07-26 Kevin Buettner <kevinb@redhat.com>
3356
3357 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3358 calls to local_hex_string_custom().
3359
dabbe2c0
KB
33602002-07-26 Kevin Buettner <kevinb@redhat.com>
3361
3362 * irix5-nat.c: Move IRIX shared library support from here...
3363 * solib-irix.c: ...to here. Revised substantially to work with
3364 generic solib framework.
3365
b96d0a4e
KB
3366 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3367 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3368 * mips-irix-tdep.c: New file.
3369
313fb2f6
KB
3370 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3371 (mips-irix-tdep.o, solib-irix.o): New rules.
3372 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3373 solib-irix.o.
3374 * config/mips/irix6.mt (TDEPFILES): Likewise.
3375 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3376
ab2eaf26
KB
33772002-07-26 Kevin Buettner <kevinb@redhat.com>
3378
177e4768 3379 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3380 disabled (via ``#if 0'') includes.
3381
7244546a
KB
33822002-07-26 Kevin Buettner <kevinb@redhat.com>
3383
3384 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3385 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3386 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3387 Add support for the fpscr register.
3388 * rs6000-nat.c (regmap, fetch_inferior_registers)
3389 (store_inferior_registers, fetch_core_registers): Likewise.
3390
dd7be90a
KB
33912002-07-26 Kevin Buettner <kevinb@redhat.com>
3392
3393 * rs6000-nat.c (language.h): Include.
3394 (special_regs): Delete this array.
3395 (regmap): New function.
3396 (fetch_register, store_register): Use regmap() to map gdb
3397 register numbers to ptrace register numbers. Also, use
3398 outputs from regmap() to make decisions regarding type of
3399 ptrace() call to make. In particular, don't compare against
3400 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3401 (fetch_inferior_registers, store_inferior_registers): Where
3402 possible, obtain register numbers from tdep struct. Don't
3403 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3404 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3405 (LAST_UISA_SP_REGNUM): Delete.
3406
11bf77db
KB
34072002-07-25 Kevin Buettner <kevinb@redhat.com>
3408
3409 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3410 (fetch_registers, store_register, fetch_core_registers): Don't
3411 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3412 regcache_collect() as appropriate.
3413 (find_toc_address): Format hex address with local_hex_string().
3414
06afebeb
AC
34152002-07-25 Andrew Cagney <ac131313@redhat.com>
3416
3417 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3418 bfd/elf32-frv.c.
3419
8c554d79
TT
34202002-07-24 Tom Tromey <tromey@redhat.com>
3421
3422 * jv-exp.y: Marked all strings with _().
3423 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3424 internal_error.
3425 (MethodInvocation, CastExpression, parse_number, yyerror,
3426 java_type_from_name, push_expression_name, yylex): Typo fixes.
3427
e4c242d9
DJ
34282002-07-24 Daniel Jacobowitz <drow@mvista.com>
3429
3430 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3431 (tee_file_flush, tee_file_write, tee_file_fputs)
3432 (tee_file_isatty): New.
3433 * ui-file.h (tee_file_new): Add prototype.
3434
ebf56fd3
AS
34352002-07-24 Aidan Skinner <aidan@velvet.net>
3436
3437 * ada-lang.c: Change k&r style function definitions to prototyped
3438 form.
3439 * ada-typeprint.c: Change k&r style function definitions to prototyped
3440 form.
3441 * ada-valprint.c: Change k&r style function definitions to prototyped
3442 form.
3443
7fb623f7
AC
34442002-07-24 Andrew Cagney <cagney@redhat.com>
3445
3446 * README: Remove reference to remote-bug.
3447 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3448 remote-bug.c.
3449 (m88k-nat.o): Delete rule.
3450 (m88k-tdep.o): Delete rule.
3451 (remote-bug.o): Delete rule.
3452 * MAINTAINERS: Mark as obsolete.
3453 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3454 * m88k-tdep.c: Make file obsolete.
3455 * config/m88k/m88k.mh: Ditto.
3456 * config/m88k/delta88v4.mh: Ditto.
3457 * config/m88k/delta88v4.mt: Ditto.
3458 * config/m88k/delta88.mt: Ditto.
3459 * config/m88k/delta88.mh: Ditto.
3460 * remote-bug.c: Ditto.
3461 * config/m88k/tm-delta88.h: Ditto.
3462 * config/m88k/nm-delta88v4.h: Ditto.
3463 * config/m88k/xm-delta88.h: Ditto.
3464 * config/m88k/xm-dgux.h: Ditto.
3465 * config/m88k/tm-m88k.h: Ditto.
3466 * config/m88k/nm-m88k.h: Ditto.
3467 * config/m88k/tm-delta88v4.h: Ditto.
3468 * m88k-nat.c: Ditto.
3469 * cxux-nat.c: Ditto.
3470 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3471 and m88*-*-* obsolete.
3472 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3473 m88*-*-* obsolete.
3474
37611a2b
AC
34752002-07-24 Andrew Cagney <cagney@redhat.com>
3476
3477 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3478 constant. Same for local pointer variables.
3479 (extract_signed_integer): Ditto.
3480 * defs.h (extract_unsigned_integer): Update.
3481 (extract_signed_integer): Update.
3482
1aaa5f99
AC
34832002-07-24 Andrew Cagney <cagney@redhat.com>
3484
3485 * regcache.c (regcache_raw_write): Change buf parameter to a
3486 constant void pointer.
3487 (regcache_raw_read): Change buf parameter to a void pointer.
3488 (legacy_write_register_gen): Change myaddr parameter a constant
3489 void pointer.
3490 (supply_register): Change val parameter to a const void pointer.
3491 * regcache.h (regcache_raw_write): Update declaration.
3492 (regcache_raw_read): Update declaration.
3493 (supply_register): Update declaration.
3494
b4f5539f
TT
34952002-07-24 Tom Tromey <tromey@redhat.com>
3496
3497 * defs.h (gdb_readline_wrapper): Declare.
3498 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3499 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3500 * top.c (gdb_readline_wrapper): New function.
3501 (command_line_input): Use it.
3502
0818c12a
AC
35032002-07-24 Andrew Cagney <cagney@redhat.com>
3504
3505 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3506 regcache_read and regcache_write.
3507 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3508 * regcache.c: Update.
3509 * sh-tdep.c (sh64_push_arguments): Update comment.
3510 (sh_pseudo_register_read): Update.
3511 (sh_pseudo_register_write): Update.
3512 (sh4_register_read): Update.
3513 (sh4_register_write): Update.
3514 (sh64_pseudo_register_read): Update.
3515 (sh64_pseudo_register_write): Update.
3516 (sh64_register_read): Update.
3517 (sh64_register_write): Update.
3518 * i386-tdep.c (i386_extract_return_value): Update.
3519 (i386_extract_struct_value_address): Update.
3520 (i386_extract_return_value): Update.
3521 * blockframe.c (generic_read_register_dummy): Update.
3522 (generic_call_dummy_register_unwind): Update
3523 * infrun.c (write_inferior_status_register): Update.
3524
f7321c06
JB
35252002-07-23 Jim Blandy <jimb@redhat.com>
3526
3527 * parser-defs.h (expression_context_pc): Make this extern.
3528 (Thanks to Michael Snyder.)
3529
2037aebb
AC
35302002-07-23 Andrew Cagney <ac131313@redhat.com>
3531
3532 GDB 5.2.1 released from 5.2 branch.
3533 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3534 * README: Update to mention 5.2.1.
3535
66504d44
MS
35362002-07-23 Mark Salter <msalter@redhat.com>
3537
3538 * remote.c (remote_read_bytes): Fix check for error.
3539
27bae383
KB
35402002-07-22 Kevin Buettner <kevinb@redhat.com>
3541
3542 * aix-thread.c (language.h): Include.
3543 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3544 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3545 Print newlines at end of debug messages.
3546 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3547 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3548
35492002-07-22 Kevin Buettner <kevinb@redhat.com>
3550
3551 * aix-thread.c (ppc-tdep.h): Include.
3552 (special_register_p): New function.
3553 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3554 (store_regs_user_thread): Use register number information from
3555 gdbarch_tdep struct instead of hardcoded offsets relative to
3556 FIRST_UISA_SP_REGNUM.
3557 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3558 special_register_p() instead of using FPLAST_REGNUM and
3559 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3560 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3561 will be MQ's register number.
3562
35632002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3564
3565 * aix-thread.c (ops): Rename to aix_thread_ops.
3566 (base_ops): Rename to base_target.
3567 (ops_attach): Rename to aix_thread_attach.
3568 (ops_detach): Rename to aix_thread_detach.
3569 (ops_resume): Rename to aix_thread_detach.
3570 (ops_wait): Rename to aix_thread_wait.
3571 (ops_kill): Rename to aix_thread_kill.
3572 (init_ops): Rename to init_aix_thread_ops.
3573 (ops_fetch_register): Rename to aix_thread_fetch_register.
3574 (ops_store_register): Rename to aix_thread_store_register.
3575 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3576 (ops_thread_alive): Rename to aix_thread_thread_alive.
3577 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3578 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3579 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3580 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3581 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3582 (store_regs_lib): Rename to store_regs_user_thread.
3583 (store_regs_kern): Rename to store_regs_kernel_thread.
3584
27bae383 35852002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3586
3587 * aix-thread.c (ops_prepare_to_store): Eliminate.
3588 (init_ops): Don't initialize ops.prepare_to_store.
3589 (store_regs_kern): Pre-fetch register buffers from child,
3590 because some registers may not be in the cache. Copy
3591 regs from register cache only if they are cached.
3592 (store_regs_lib): Copy regs from register cache only
3593 if they are cached.
3594 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3595 fill_gprs64): Ditto.
3596
61c5da0b
KB
35972002-07-22 Kevin Buettner <kevinb@redhat.com>
3598
3599 * aix-thread.c (gdb_assert.h): Include.
3600 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3601 register sizes (from register cache) match size of buffer holding
3602 register data.
3603 (fill_sprs32): Change parameter types to match those in the ptrace()
3604 buffer.
3605 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3606 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3607
36082002-07-22 Michael Snyder <msnyder@redhat.com>
3609
3610 * aix-thread.c (supply_sprs64): Cosmetic change.
3611 (supply_sprs32): Cosmetic change.
3612 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3613 (fill_sprs64): Use regcache_collect instead of read_register.
3614 (store_regs_lib): Use regcache_collect instead of
3615 read_register. Use fill_sprs32 instead of fill_sprs64,
3616 if debugging a 32-bit architecture.
3617 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3618 out of the register cache, instead of passing a pointer into
3619 the register cache directly to ptrace. Use regcache_collect
3620 insteaad of read_register.
3621 (ops_prepare_to_store): Use target_read_registers instead
3622 of read_register_bytes.
3623
36479eb1
AS
36242002-07-20 Aidan Skinner <aidan@velvet.net>
3625
3626 * MAINTAINERS: Add self under write after approval.
3627
80ae6ee2
AS
36282002-07-20 Aidan Skinner <aidan@velvet.net>
3629
3630 * ada-tasks.c: Change k&r style function definitions to prototyped
3631 form.
3632
8a8ab2b9
AC
36332002-07-19 Andrew Cagney <ac131313@redhat.com>
3634
3635 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3636 * x86-64-tdep.c: Include "objfiles.h".
3637 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3638 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3639
fb16b900
ML
36402002-07-17 Michal Ludvig <michal@suse.cz>
3641
3642 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3643 (update_context): Initialise cfa variable.
3644
0fe7bf7b
MS
36452002-07-17 Michael Snyder <msnyder@redhat.com>
3646
3647 * aix-thread.c: Shorten some long lines.
3648 Bring comments into line with code spec.
3649
488f131b
JB
36502002-07-18 Joel Brobecker <brobecker@gnat.com>
3651
3652 * infrun.c: Re-indent using gdb_indent.sh.
3653
46c415d2
JB
36542002-07-18 Joel Brobecker <brobecker@gnat.com>
3655
3656 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3657 Leave the indentation temporarily untouched, to minimize the diffs.
3658
cdecafbe
EZ
36592002-07-18 Elena Zannoni <ezannoni@redhat.com>
3660
3661 * stabsread.c: Make os9k sections of the code obsolete,
3662 for real this time.
3663 * stabsread.h: Make os9k sections of the code obsolete.
3664
7b6aa020
ML
36652002-07-18 Michal Ludvig <mludvig@suse.cz>
3666
09ec9b38
ML
3667 * linux-low.c (regsets_store_inferior_registers): Add free()
3668 at the end of a loop to prevent memory leak.
3669 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3670 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3671 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3672 line a comment.
4894ac5d 3673 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3674
233282cd
JB
36752002-07-17 Jim Blandy <jimb@redhat.com>
3676
3677 * macrocmd.c (info_macro_command): Remove newline from error
3678 message.
3679
7b6aa020 36802002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3681
3682 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3683 (sh_gdbarch_init): Use it for sh-dsp.
3684
f7ef9339
KB
36852002-07-16 Kevin Buettner <kevinb@redhat.com>
3686
3687 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3688 64-bit DWARF2 format.
3689
8dd72958
JB
36902002-07-16 Joel Brobecker <brobecker@gnat.com>
3691
3692 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3693 <sys/proc.h> when not available.
3694
a99a9e1b
AC
36952002-07-16 Andrew Cagney <ac131313@redhat.com>
3696
3697 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3698 * stabsread.c: Make os9k sections of the code obsolete.
3699 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3700 * config/i386/i386os9k.mt: Make file obsolete.
3701 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3702 (COMMON_OBS): Remove os9kread.o
3703 (SFILES): Remove os9kread.c.
3704 (os9kread.o, remote-os9k.o): Make target obsolete.
3705 * remote-os9k.c: Make file obsolete.
3706 * os9kread.c: Make file obsolete.
3707 * Makefile.in
3708
7a3085c1
AC
37092002-07-16 Andrew Cagney <ac131313@redhat.com>
3710
3711 * NEWS: Mention that the FR30 has been made obsolete.
3712 * fr30-tdep.c: Make file obsolete.
3713 * config/fr30/tm-fr30.h: Ditto.
3714 * config/fr30/fr30.mt: Ditto.
3715 * configure.tgt: Make fr30-*-elf obsolete.
3716 * MAINTAINERS: Make fr30-elf obsolete.
3717
28a93f5a
PM
37182002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3719
3720 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3721 found is not inside a section.
3722
be006b8b
KB
37232002-07-15 Kevin Buettner <kevinb@redhat.com>
3724
3725 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3726 strerror().
3727 (pdc_realloc): Use xrealloc() instead of realloc().
3728
14fa3751
KB
37292002-07-15 Kevin Buettner <kevinb@redhat.com>
3730
3731 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3732 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3733 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3734 macros.
3735
42cc437f
KB
37362002-07-15 Kevin Buettner <kevinb@redhat.com>
3737
3738 * aix-thread.c (ptrace_check): Eliminate goto.
3739 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3740 problem.
3741
8e2c28d4
KB
37422002-07-15 Kevin Buettner <kevinb@redhat.com>
3743
3744 * aix-thread.c (gdbcmd.h): Include.
3745 (DEBUG, DBG, DBG2, dbg): Eliminate.
3746 (debug_aix_thread): New static global.
3747 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3748 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3749 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3750 invocations to DBG and DBG2 macros to test against
3751 ``debug_aix_thread'' and call fprintf_unfiltered().
3752 (_initialize_aix_thread): Add new command "set debug aix-thread".
3753
30413464
AC
37542002-07-15 Andrew Cagney <ac131313@redhat.com>
3755
3756 From Gerhard Tonn <TON@de.ibm.com>:
3757 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3758 instead of supply_register.
3759
7c43edc1
AC
37602002-07-15 Andrew Cagney <ac131313@redhat.com>
3761
3762 * dwarf2cfi.c: Include "gdb_assert.h".
3763 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3764 non-NULL.
3765 (update_context): Do not use __func__. Add missing ``break''.
3766 (update_context): Do not use __func__.
3767
9364a0ef
EZ
37682002-07-15 Elena Zannoni <ezannoni@redhat.com>
3769
3770 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3771 and its setting. Set gdbarch instruction printing functions
3772 directly. For non-rs6000 case use new function
3773 gdb_print_insn_powerpc.
3774 (gdb_print_insn_powerpc): New function.
3775
3fbeef0b
AC
37762002-07-13 Andrew Cagney <ac131313@redhat.com>
3777
92eb23c5 3778 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3779 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3780 * configure.tgt: Mark d30v-*-* as obsolete.
3781 * d30v-tdep.c: Mark file as obsolete.
3782 * config/d30v/d30v.mt: Ditto.
3783 * config/d30v/tm-d30v.h: Ditto.
3784
aacb1f0a
AS
37852002-07-13 Aidan Skinner <aidan@velvet.net>
3786
3787 * ada-tasks.c (add_task_entry): replace calls to
3788 malloc() with xmalloc
3789 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3790
3791 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3792 ada_finish_decode_line_1, all_sals_for_line
3793 ada_breakpoint_rewrite): replace calls to free() with xfree()
3794
c11d79f2
KB
37952002-07-12 Kevin Buettner <kevinb@redhat.com>
3796
3797 From Nicholas Duffek (with minor changes by Martin Hunt,
3798 Louis Hamilton, and Kevin Buettner):
3799 * aix-thread.c: New file.
3800
8e19ed76
PS
38012002-07-12 Petr Sorfa <petrs@caldera.com>
3802
3803 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3804 complaint for invalid attribute class or form.
3805 (read_func_scope): DW_AT_frame_base
3806 better handling of DW_AT_block*.
3807 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3808 better handling of DW_AT_block*.
3809 (read_common_block): DW_AT_location
3810 better handling of DW_AT_block*.
3811 (read_partial_die): DW_AT_location better handling
3812 of DW_AT_block*.
3813 (new_symbol): DW_AT_external better handling of
3814 DW_AT_block*. Proper initialization of variable
3815 "addr".
3816 (attr_form_is_block): New function that returns true
3817 if the attribute's form is of DW_FORM_block*.
3818
295401f7
DJ
38192002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3820
3821 * valops.c (find_method_list): Remove comment about
3822 removed STATIC_MEMFUNCP argument.
3823 (value_find_oload_method_list): Likewise.
3824
e42dc924
KB
38252002-07-12 Kevin Buettner <kevinb@redhat.com>
3826
3827 From Nicholas Duffek:
3828 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3829 target_new_objfile_hook.
3830
6904b546
KB
38312002-07-12 Kevin Buettner <kevinb@redhat.com>
3832
3833 From Nicholas Duffek:
3834 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3835 csect.
3836
53fe9346
AC
38372002-07-12 Andrew Cagney <cagney@redhat.com>
3838
3839 * MAINTAINERS: Mention --enable-sim-build-warnings.
3840 (m68hc11-elf): Disable sim build warnings.
3841 (m32r-elf): Mark as broken obsolete candidate.
3842 (x86_64-linux-gnu): Mark as buildable with -Werror.
3843 (arm-elf): Change -w to ``,'' which enables warnings but not
3844 -Werror.
3845
af5f3db6
AC
38462002-07-12 Andrew Cagney <ac131313@redhat.com>
3847
3848 * bcache.h: Update copyright.
3849 (struct bstring, struct bcache): Move definition to "bcache.c".
3850 Replaced by opaque declaration.
3851 (bcache_xfree): Replace free_bcache.
3852 (bcache_xmalloc, bcache_memory_used): Declare.
3853
3854 * bcache.c: Update copyright.
3855 (struct bstring, struct bcache): Moved to here from "bcache.h".
3856 Update comments.
3857 (bcache_xmalloc, bcache_memory_used): New functions.
3858 (bcache_xfree): Replace function free_bcache.
3859
3860 * Makefile.in (objfiles.o): Add $(bcache_h).
3861 (objfiles_h): Remove $(bcache_h).
3862 (symfile.o): Add $(bcache_h).
3863
3864 * symmisc.c: Update copyright.
3865 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3866 (print_objfile_statistics): Use bcache_memory_used.
3867
3868 * symfile.c: Include "bcache.h".
3869 (reread_symbols): Use bcache_xfree.
3870 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3871 (add_psymbol_to_list): Pass psymbol_cache by value.
3872 (add_psymbol_with_dem_name_to_list): Ditto.
3873
3874 * objfiles.h: Update copyright.
3875 (struct bcache): Declare opaque. Do not include "bcache.h".
3876 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3877 bcache'' pointers.
3878 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3879
3880 * objfiles.c: Include "bcache.h". Update copyright.
3881 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3882 macro_cache.
3883 (free_objfile): Use bcache_xfree.
3884
444199e7
GS
38852002-07-11 Grace Sainsbury <graces@redhat.com>
3886
3887 * monitor.c (monitor_fetch_register): Make name a constant.
3888 (monitor_store_register): Same.
3889
261397f8
DJ
38902002-07-11 Daniel Jacobowitz <drow@mvista.com>
3891
3892 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3893 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3894 (finish_block) For non-function blocks, hash the symbol table. For
3895 function blocks, mark the symbol table as unhashed.
3896 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3897 (msymbol_hash_iw): Likewise.
3898 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3899 value.
3900 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3901 (lookup_minimal_symbol): Likewise for both.
3902 * symtab.h (struct block): Add `hashtable' flag. Comment the
3903 hashtable.
3904 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3905 (ALL_BLOCK_SYMBOLS): Update.
3906 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3907 (struct symbol): Add `hash_next' pointer.
3908 * symtab.c (lookup_block_symbol): Search using the hash table when
3909 possible.
3910 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3911 (search_symbols, find_addr_symbol): Likewise.
3912
3913 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3914 (read_dst_symtab): Likewise.
3915 * jv-lang.c (get_java_class_symtab): Likewise.
3916 * mdebugread.c: Include "gdb_assert.h".
3917 (shrink_block): Assert that the block being modified is not hashed.
3918 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3919 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3920 symbols.
3921 (dump_symtab): Recognize hashed blocks.
3922 * printcmd.c (print_frame_args): Assert that function blocks do not
3923 have hashed symbol tables.
3924 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3925 (fill_in_ada_prototype, debug_print_block): Likewise.
3926 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3927
6f0eaa01
CV
39282002-07-11 Corinna Vinschen <vinschen@redhat.com>
3929
3930 * stack.c (print_frame): Use result of frame_address_in_block()
3931 instead of fi->pc when evaluating symbols.
3932 (backtrace_command_1): Ditto.
3933
a208b0cb
AC
39342002-07-11 Andrew Cagney <cagney@redhat.com>
3935
3936 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3937 Make static.
3938
3939 * arm-tdep.c (arm_register_name): Make return type constant.
3940
a6b6b089
AC
39412002-07-10 Andrew Cagney <ac131313@redhat.com>
3942
5ae5f592
AC
3943 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3944 prototype.
3945 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3946 * s390-tdep.c (s390_fp_regnum): Ditto.
3947 (s390_read_fp): Ditto.
3948 (s390_pop_frame): Ditto.
3949 (_initialize_s390_tdep): Ditto.
3950 * remote.c (get_remote_state): Ditto.
3951 * procfs.c (mappingflags): Ditto.
3952 * memattr.c (_initialize_mem): Ditto.
3953 * mcore-tdep.c (mcore_pop_frame): Ditto.
3954 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3955 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3956 * language.c (set_case_str): Ditto.
3957 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3958 * frv-tdep.c (new_variant): Ditto.
3959 (frv_stopped_data_address): Ditto.
3960 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3961 (context_alloc): Ditto.
3962 (frame_state_alloc): Ditto.
3963 (unwind_tmp_obstack_init): Ditto.
3964 (unwind_tmp_obstack_free): Ditto.
3965 (cfi_read_fp): Ditto.
3966 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3967 (cris_pop_frame): Ditto.
3968 * c-lang.c (scanning_macro_expansion): Ditto.
3969 (finished_macro_expansion): Ditto.
3970 (c_preprocess_and_parse): Ditto.
3971 * gdbarch.sh: Ditto.
3972 * gdbarch.h, gdbarch.c: Regenerate.
3973 * config/mn10200/tm-mn10200.h: Adjust indentation.
3974 * target.c: Adjust indentation.
3975 * symtab.h: Adjust indentation.
3976 * stabsread.h: Adjust indentation.
3977 * remote-es.c: Adjust indentation.
3978 * os9kread.c: Adjust indentation.
3979
39802002-07-10 Andrew Cagney <ac131313@redhat.com>
3981
a6b6b089
AC
3982 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3983 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3984
a1789893
GS
39852002-07-10 Grace Sainsbury <graces@redhat.com>
3986
3987 * NEWS: Mention m68k, mcore multi-arching.
3988 * MAINTAINERS: Change status of m68k, mcore to reflect
3989 multi-arching.
3990
02f0d45d
DJ
39912002-07-10 Daniel Jacobowitz <drow@mvista.com>
3992
3993 * valops.c (find_overload_match): Free oload_syms.
3994
f15f768e
JB
39952002-07-09 Joel Brobecker <brobecker@gnat.com>
3996
3997 Define HAVE_SYS_PROC_H if sys/proc.h exists
3998 * configure.in: Add check for sys/proc.h
3999 * config.in: Regenerate.
4000 * configure: Regenerate.
4001
902a7139
GS
40022002-07-09 Grace Sainsbury <graces@redhat.com>
4003
4004 * config/m68k/tm-m68k.h: Remove macros wrapped in
4005 #if !GDB_MULTI_ARCH.
4006
a534e424
AC
40072002-07-08 Andrew Cagney <ac131313@redhat.com>
4008
4009 * config.in, configure: Regenerate.
4010
9b94f7bf
MK
40112002-07-08 Mark Kettenis <kettenis@gnu.org>
4012
4013 * dwarf2cfi.c: Include "gcore.h".
4014 (execute_stack_op): Fix implementation of the
4015 DW_OP_deref and DW_OP_deref_size operators by letting do their
4016 lookup in the target.
4017
1d34db41
MK
40182002-07-07 Mark Kettenis <kettenis@gnu.org>
4019
4020 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4021 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4022 tdep->sc_sp_offset.
4023
79d5b63a
DJ
40242002-07-05 Daniel Jacobowitz <drow@mvista.com>
4025
4026 Fix PR gdb/595, gdb/602
4027 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4028 Don't call value_cast, just read the vtable pointer; update comments
4029 to match.
4030
3bb912e8
GS
40312002-07-05 Grace Sainsbury <graces@redhat.com>
4032
4033 * config/mcore/tm-mcore.h: Remove file.
4034 * config/mcore/mcore.mt: Remove definition of TM_FILE
4035 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4036
ca39387d
MK
40372002-07-05 Mark Kettenis <kettenis@gnu.org>
4038
4039 * i386bsd-tdep.c: Include "gdb_string.h".
4040
efdc1108
GS
40412002-07-04 Grace Sainsbury <graces@redhat.com>
4042
4043 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4044 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4045 mcore-tdep.
4046 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4047 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4048 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4049 (RETVAL_REGNUM): Move macros from tm-mcore.h
4050 (mcore_reg_struct_has_addr): New function.
4051 (mcore_gdbarch_init): Added initializations for the macros removed
4052 from tm-mcore.h.
4053
bb21884d
MK
40542002-07-04 Mark Kettenis <kettenis@gnu.org>
4055
4056 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4057 traditonal string branding within the ELF header.
4058
228c6d41
DJ
40592002-07-04 Daniel Jacobowitz <drow@mvista.com>
4060
4061 * symtab.c (remove_params): New function.
4062 (make_symbol_overload_list): Use it instead of cplus_demangle.
4063 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4064
2404952e
MK
40652002-07-04 Mark Kettenis <kettenis@gnu.org>
4066
e5e4acad
MK
4067 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4068
baadce09
MK
4069 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4070 New variables.
4071 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4072 and tdep->sigtramp_end.
4073 * i386obsd-nat.c: New file.
4074 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4075
2404952e
MK
4076 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4077 Don't call get_current_frame().
4078
9b4f1ba7
PM
40792002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4080
4081 * i386-nat.c (child_post_startup_inferior): New function
4082 calling i386_cleanup_dregs if
4083 I386_USE_GENERIC_WATCHPOINTS is defined.
4084 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4085 conditional to acknowledge that i386-nat.c has its
4086 own child_post_startup_inferior function.
4087
c0d1d883
MK
40882002-07-04 Mark Kettenis <kettenis@gnu.org>
4089
00f8375e
MK
4090 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4091 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4092 instead of MAX_REGISTER_RAW_SIZE.
4093 (i386_extract_return_value, i386_extract_struct_value_address):
4094 Convert to use regcache.
4095 (i386_gdbarch_init): Set max_register_raw_size and
4096 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4097 Set extract_return_value and extract_struct_value_address instead
4098 of their deprecated variants.
4099
c0d1d883
MK
4100 Convert i386 target to generic dummy frames.
4101 * i386-tdep.c: Include "symfile.h".
4102 (i386_frameless_signal_p): Consider a function to be frameless if
4103 the pc points at the first instruction of the function.
4104 (i386_frame_chain): Handle (generic) call dummies.
4105 (i386_frame_saved_pc): Likewise.
4106 (i386_frame_init_saved_regs): Remove code dealing with call
4107 dummies on the stack.
4108 (i386_push_dummy_frame): Removed.
4109 (i386_call_dummy_words): Removed.
4110 (i386_fix_call_dummy): Removed.
4111 (i386_push_return_address): New function.
4112 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4113 parameter, and don't call get_current_frame.
4114 (i386_pop_frame): New function.
4115 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4116 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4117 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4118 call_dummy_length to 0, set call_dummy_words to NULL, set
4119 sizeof_call_dummy_words to 0, set fix_call_dummy to
4120 generic_fix_call_dummy, set pc_in_call_dummy to
4121 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4122 generic_push_dummy_frame, set push_return_address to
4123 i386_push_return_address and set frame_chain_valid to
4124 generic_file_frame_chain_valid.
4125
049ee0e4
AC
41262002-07-03 Andrew Cagney <ac131313@redhat.com>
4127
4128 * gdbarch.sh (struct regcache): Add opaque declaration.
4129 (EXTRACT_RETURN_VALUE): New architecture method.
4130 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4131 * gdbarch.h, gdbarch.c: Regenerate.
4132 * arch-utils.c (legacy_extract_return_value): New function.
4133 * arch-utils.h (legacy_extract_return_value): Declare.
4134 * values.c (value_being_returned): Re-enable code handling
4135 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4136 deprecated_grub_regcache_for_registers call to block handling
4137 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4138 (EXTRACT_RETURN_VALUE): Do not define.
4139
4e0d9804
GS
41402002-07-03 Grace Sainsbury <graces@redhat.com>
4141
4142 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4143 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4144 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4145 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4146 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4147 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4148 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4149 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4150 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4151 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4152 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4153 argument so the function fits the prototype in the architecture
4154 vector.
4155 (mcore_pop_frame): Remove argument so the function fits the
4156 prototype. Use get_current_frame instead of the argument.
4157 (mcore_push_arguments): Change type of struct_return so the
4158 function can be used in the architecture vector.
4159 (mcore_store_struct_return): Add.
4160 (mcore_frame_init_saved_regs): Add.
4161 (mcore_gdbarch_init): Add function calls to replace the macros
4162 removed from tm-mcore.h
4163
36160dc4
AC
41642002-07-03 Andrew Cagney <ac131313@redhat.com>
4165
4166 * infcmd.c (print_return_value): Remove compatibility code calling
4167 deprecated_grub_regcache_for_registers.
4168
4169 * values.c: Include "regcache.h".
4170 (value_being_returned): Update. Use
4171 deprecated_grub_regcache_for_registers to extract the register
4172 buffer address.
4173 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4174 ``struct regcache''.
4175 * Makefile.in (values.o): Add dependency on $(regcache_h).
4176
4177 * inferior.h (run_stack_dummy): Change type of second parameter to
4178 a ``struct regcache''.
4179 * valops.c (hand_function_call): Change type of retbuf to ``struct
4180 regcache''. Allocate using regcache_xmalloc, clean using
4181 make_cleanup_regcache_xfree.
4182 * infcmd.c (run_stack_dummy): Update. Use
4183 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4184
4185 * regcache.c (do_regcache_xfree): New function.
4186 (make_cleanup_regcache_xfree): New function.
4187 * regcache.h (make_cleanup_regcache_xfree): Declare.
4188
e64d9b3d
MH
41892002-07-03 Martin M. Hunt <hunt@redhat.com>
4190
4dd79c29
MH
4191 * event-top.c (command_line_handler): Don't read past
4192 beginning of buffer.
e64d9b3d 4193
4dd79c29
MH
41942002-07-03 Martin M. Hunt <hunt@redhat.com>
4195
e64d9b3d
MH
4196 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4197 struct frame_id.
4198 (varobj_create): Store frame_id for root.
4199 (varobj_gen_name): Use xasprintf.
4200 (varobj_update): Save and restore frame using get_frame_id() and
4201 frame_find_by_id().
4202 (create_child): Use xasprintf.
4203 (new_root_variable): Initialize frame_id.
4204 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4205 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4206 to prevent memory leak.
4207
26e6c56a
AC
42082002-07-03 Andrew Cagney <ac131313@redhat.com>
4209
4210 * valops.c (hand_function_call): Move declaration of retbuf to
4211 start of function, allocate using malloc, add a cleanup but before
4212 the inf_status cleanup, cleanup the buffer. Rename local variable
4213 old_chain to inf_status_cleanup.
4214
f436dd25
MH
42152002-07-03 Martin M. Hunt <hunt@redhat.com>
4216
4217 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4218
4219 * cli/cli-decode.c (cmd_func_p): New function.
4220 (cmd_func): New function.
4221
4222 * command.h: Add cmd_func() and cmd_func_p().
4223
4cfe2084
GS
42242002-07-03 Grace Sainsbury <graces@redhat.com>
4225
4226 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4227 (REGISTER_SIZE): Remove.
4228 (MAX_REGISTER_RAW_SIZE): Remove.
4229 (REGISTER_VIRTUAL_TYPE): Remove.
4230 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4231 (REGISTER_NAME): Remove.
4232 (USE_GENERIC_DUMMY_FRAMES): Remove.
4233 (CALL_DUMMY): Remove.
4234 (CALL_DUMMY_START_OFFSET): Remove.
4235 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4236 (CALL_DUMMY_LOCATION): Remove.
4237 (FIX_CALL_DUMMY): Remove.
4238 (CALL_DUMMY_ADDRESS): Remove.
4239 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4240 (SAVE_DUMMY_FRAME_TOS): Remove.
4241 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4242 (mcore_register_virtual_type): New function.
4243 (mcore_register_byte): New function.
4244 (mcore_register_size): New function.
4245 (mcore_register_name): New function.
4246 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4247 macros removed from tm-mcore.h.
4248 (mcore_dump_tdep): Add.
4249 (_initialize_mcore_tdep): Add gdbarch_register call.
4250
4fd667e9
MK
42512002-07-03 Mark Kettenis <kettenis@gnu.org>
4252
4253 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4254 frameless_look_for_prologue, such that we actually call this
4255 function.
4256
42f99ac2
JB
42572002-07-02 Joel Brobecker <brobecker@gnat.com>
4258
4259 * frame.h (frame_address_in_block): New function.
4260
4261 * blockframe.c (frame_address_in_block): New function extracted
4262 from get_frame_block().
4263 (get_frame_block): Use frame_address_in_block().
4264 (block_innermost_frame): Use frame_address_in_block() to match
4265 the frame pc address against the block boundaries rather than
4266 the frame pc directly. This prevents a failure when a frame pc
4267 is actually a return-address pointing immediately after the end
4268 of the given block.
4269
103a1597 42702002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4271
4272 * MAINTAINERS: Add self under write after approval.
4273
42742002-07-02 Grace Sainsbury <graces@redhat.com>
4275
103a1597
GS
4276 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4277 used in architecture vector. The default is
4278 m68k_local_breakpoint_from_pc.
4279 (m68k_local_breakpoint_from_pc): Add.
4280 (enum): Add register numbers from tm-m68k.h.
4281 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4282 vector.
4283 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4284 GDB_MULTI_ARCH_PARTIAL.
4285 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4286 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4287 m68k-tdep.c.
4288 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4289 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4290 to enum in m68k-tdep.c
4291
7a5a0534
JB
42922002-07-02 Joel Brobecker <brobecker@gnat.com>
4293
4294 * solib-osf.c (open_map): Compute the list of shared libraries
4295 loaded by the inferior, rather than the list of libraries loaded
4296 by GDB itself. Otherwise, GDB ends up reading the symbols from
4297 the wrong shared libraries...
4298
6f558d74
MK
42992002-07-02 Mark Kettenis <kettenis@gnu.org>
4300
b7d15bf7
MK
4301 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4302 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4303 macros.
4304 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4305 Remove functions.
4306 (FRAMELESS_SIGNAL): Remove function.
4307 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4308 i386_linux_saved_pc_after_call): Removed.
4309 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4310 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4311 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4312
6bff26de
MK
4313 * i386-tdep.c (i386_frameless_signal_p): New function.
4314 (i386_frame_chain): Deal with frameless signals.
4315 (i386_sigtramp_saved_sp): New function.
4316 (i386_frame_saved_pc): Deal with frameless signals.
4317 (i386_saved_pc_after_call): Make sure the correct value is
4318 returned just after entry into a sigtramp.
4319 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4320 i386fbsd4_sc_sp_offset): New variables.
4321 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4322 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4323 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4324 similiar to what we already did for sc_pc_offset.
4325 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4326 tdep->sc_sp_offset.
4327
6f558d74
MK
4328 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4329
145564b7
ML
43302002-07-02 Michal Ludvig <mludvig@suse.cz>
4331
4332 * config/i386/tm-x86-64linux.h: New.
4333 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4334 definitions.
4335 * config/i386/nm-x86-64.h: Rename to ...
4336 * config/i386/nm-x86-64linux.h: ... this one.
4337 * config/i386/x86-64linux.mh: Reflect the above change.
4338
3a1e71e3
MK
43392002-07-01 Mark Kettenis <kettenis@gnu.org>
4340
21d0e8a4
MK
4341 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4342 with sigcontext_addr. Add sc_sp_offset.
4343 (i386bsd_sigtramp_saved_pc): Remove prototype.
4344 (i386bsd_sicontext_addr): Add prototype.
4345 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4346 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4347 (i386_svr4_sigtramp_saved_pc): Removed.
4348 (i386_svr4_sigcontext_addr): New function.
4349 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4350 Initialize tdep->sigcontext_addr instead. Initialize
4351 tdep->sc_pc_offset and tdep->sc_sp_offset.
4352 (i386_gdbarch_init): Likewise.
4353 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4354 any more.
4355 (i386bsd_sigtramp_saved_pc): Remove function.
4356 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4357 Initialize tdep->sigcontext_addr instead. Initialize
4358 tdep->sc_pc_offset.
4359 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4360 of tdep->sigtramp_saved_pc.
4361 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4362 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4363 instead.
4364
3a1e71e3
MK
4365 * i386-tdep.c (i386_frameless_function_invocation,
4366 i386_frame_num_args, i386_frame_init_saved_regs,
4367 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4368 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4369 i386_extract_return_value, i386_store_return_value,
4370 i386_extract_struct_value_address, i386_register_virtual_type,
4371 i386_register_convertible, i386_register_convert_to_virtual,
4372 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4373 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4374 static.
4375
52e9098c
MK
43762002-07-01 Mark Kettenis <kettenis@gnu.org>
4377
77b13a25
MK
4378 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4379
52e9098c
MK
4380 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4381 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4382 this macro. Include "value.h".
4383
1b372fff
AS
43842002-06-30 Aidan Skinner <aidan@velvet.net>
4385
4386 * ada-exp.tab.c: remove as it's a generated file
4387 * ada-lex.c: remove as it's a generated file
4388
9c5045b5
MK
43892002-06-30 Mark Kettenis <kettenis@gnu.org>
4390
4a93c5bb
MK
4391 * config/i386/tm-i386.h (struct frame_info, struct
4392 frame_saved_regs, struct value, struct type): Remove forward
4393 declarations.
4394
322d4fe0
MK
4395 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4396 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4397 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4398 (FILL_FPXREGSET): Define.
4399
fdd8263d
MK
4400 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4401
482e577b
MK
4402 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4403 i[3456]86-*-netbsd* case.
4404 * config/i386/tm-obsd.h: Removed.
4405 * config/i386/obsd.mt: Removed.
4406 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4407 core-aout.o.
4408 (MH_CFLAGS): Add -DYYDEBUG=0.
4409
6916549a
MK
4410 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4411 i386nbsd_sc_pc_offset on OpenBSD too.
4412
9c5045b5
MK
4413 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4414 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4415 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4416 define.
4417 * i386bsd-tdep.c: Include "arch-utils.h".
4418 (i386bsd_aout_in_solib_call_trampoline): New function.
4419 (i386bsd_init_abi): Set in_solib_call_trampoline to
4420 i386bsd_aout_in_solib_call_trampoline.
4421 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4422 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4423
aa84d1bb
AC
44242002-06-28 Andrew Cagney <ac131313@redhat.com>
4425
4426 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4427 (struct obstack, struct bcache): Add opaque declarations.
4428 * Makefile.in (macrotab_h): Update
4429
b4d83933
AC
44302002-06-28 Andrew Cagney <ac131313@redhat.com>
4431
4432 * blockframe.c (generic_find_dummy_frame): Change return type to
4433 ``struct regcache''.
4434 (struct dummy_frame): Replace field ``registers'' with regcache, a
4435 struct regcache object.
4436 (generic_find_dummy_frame): Update.
4437 (generic_push_dummy_frame): Update. Use regcache_xfree,
4438 regcache_xmalloc and regcache_cpy.
4439 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4440 regcache_xfree.
4441 (deprecated_generic_find_dummy_frame): Update.
4442 (generic_read_register_dummy): Update. Use
4443 regcache_read_as_address.
4444 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4445 (generic_get_saved_register): Update. Use regcache_read.
4446
08c0b5bc
AC
44472002-06-28 Andrew Cagney <ac131313@redhat.com>
4448
4449 * Makefile.in (objfiles_h): Add $(bcache_h).
4450 * objfiles.h: Include "bcache.h".
4451
4452 * Makefile.in (symtab_h): Remove $(bcache_h).
4453 * symtab.h: Do not include "bcache.h".
4454
1f89801a
AC
44552002-06-28 Andrew Cagney <ac131313@redhat.com>
4456
4457 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4458 generic_func_frame_chain_valid.
4459
b9644b58
DB
44602002-06-28 David O'Brien <obrien@FreeBSD.org>
4461
4462 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4463 * config/i386/tm-fbsd.h: Likewise.
4464
dd486634
AC
44652002-06-28 Andrew Cagney <ac131313@redhat.com>
4466
4467 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4468 generic_unwind_get_saved_register.
4469
0b434a00
AC
44702002-06-27 Andrew Cagney <ac131313@redhat.com>
4471
4472 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4473 * regcache.c (supply_register): Add missing argument to
4474 register_buffer call.
4475
f30e5a77
AC
44762002-06-27 Andrew Cagney <ac131313@redhat.com>
4477
4478 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4479 Solaris /bin/grep does not not like it. From Peter Schauer.
4480
9f064c95
TT
44812002-06-26 Tom Tromey <tromey@redhat.com>
4482
4483 * command.h (add_setshow_cmd): Declare.
4484 (add_setshow_cmd_full): Declare.
4485 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4486 returns void. Use add_setshow_cmd_full.
4487 (add_setshow_cmd_full): New function.
4488 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4489 (add_setshow_boolean_cmd): Likewise.
4490
099c7589
JT
44912002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4492
4493 * config/vax/tm-vax.h: Protect from multiple inclusion.
4494 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4495 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4496 * config/vax/tm-vaxbsd.h: ...here. New file.
4497 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4498
1d049c5e
JT
44992002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4500
4501 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4502 (BELIEVE_PCC_PROMOTION): Remove.
4503 (AP_REGNUM): Move to...
4504 * config/vax/nm-vax.h: ...here.
4505 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4506 (vax_breakpoint_from_pc): New function.
4507 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4508 and gdbarch_believe_pcc_promotion.
4509
4791e091
JT
45102002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4511
4512 * Makefile.in (vax_tdep_h): Define.
4513 (vax-tdep.o): Use $(vax_tdep_h).
4514 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4515 (vax_dump_tdep): New function.
4516 (_initialize_vax_tdep): Register vax_dump_tdep.
4517 * vax-tdep.h: Include osabi.h.
4518 (struct gdbarch_tdep): New.
4519
da130f98
AC
45202002-06-26 Andrew Cagney <cagney@redhat.com>
4521
4522 * frame.h (deprecated_generic_find_dummy_frame): Rename
4523 generic_find_dummy_frame.
4524 * blockframe.c (generic_find_dummy_frame): Make static.
4525 (deprecated_generic_find_dummy_frame): New function.
4526 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4527 generic_find_dummy_frame with deprecated_find_dummy_frame.
4528 (sh64_nofp_frame_init_saved_regs): Ditto.
4529 (sh_fp_frame_init_saved_regs): Ditto.
4530 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4531 (s390_frame_chain): Ditto.
4532 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4533
6300c360
GS
45342002-06-26 Grace Sainsbury <graces@redhat.com>
4535
4536 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4537 gdbarch vector are at the top.
4538 (NUM_REGS): Remove.
4539 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4540 (FRAME_ARGS_ADDRESS): Remove.
4541 (FRAME_LOCALS_ADDRESS): Remove.
4542 (FRAME_NUM_ARGS): Remove.
4543 (FRAME_ARGS_SKIP): Remove.
4544 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4545 (m68k_gdbarch_init): Add gdbarch initializations for macros
4546 undefined in tm-m68k.h
4547
1c617db8
GS
45482002-06-26 Grace Sainsbury <graces@redhat.com>
4549
4550 * monitor.h: Add the function regname to monitor_ops
4551 structure. This way NUM_REGS does not have to be a constant.
4552 * monitor.c (monitor_fetch_register): Added support for regname
4553 function. The function is called if the array regnames is NULL.
4554 (monitor_store_register): Same.
da130f98
AC
4555 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4556 regnames array.
1c617db8
GS
4557 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4558 cpu32bug_cmds.regname to point to new function.
4559 * abug-rom.c (abug_regname): Same as above.
4560 (init_abug_cmds): Same.
4561 * dbug-rom.c (dbug_regname): Same as above.
4562 (init_dbug_cmds): Same.
4563 * remote-est.c (est_regname): Same.
4564 (init_est_cmds): Same.
4565 * rom68k-rom.c (rom68k_regname): Same.
4566 (init_rom68k_cmds): Same.
4567
ea9365bb
TT
45682002-06-25 Tom Tromey <tromey@redhat.com>
4569
4570 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4571
72cec141
AC
45722002-06-25 Andrew Cagney <cagney@redhat.com>
4573
4574 * infrun.c (stop_registers): Change variable's type to ``struct
4575 regcache'''.
4576 (xmalloc_inferior_status): Delete function.
4577 (free_inferior_status): Delete function.
4578 (normal_stop): Use regcache_cpy.
4579 (struct inferior_status): Change type of fields ``stop_registers''
4580 and ``registers'' to ``struct regcache''.
4581 (write_inferior_status_register): Use regcache_write.
4582 (save_inferior_status): Instead of calling
4583 xmalloc_inferior_status, allocate the inf_status buffer directly.
4584 Use regcache_dup_no_passthrough and regcache_dup to save the
4585 buffers.
4586 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4587 Replace the stop_registers regcache instead of overriding it. Use
4588 regcache_xfree. Instead of calling free_inferior_status, xfree
4589 the buffer directly.
4590 (discard_inferior_status): Use regcache_xfree. Instead of calling
4591 free_inferior_status, xfree the buffer directly.
4592 (build_infrun): Use regcache_xmalloc.
4593 (_initialize_infrun): Delete redundant call to build_infrun.
4594
4595 * Makefile.in (infcmd.o): Add $(regcache_h).
4596
4597 * infcmd.c: Include "regcache.h".
4598 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4599 obtain the address of `stop_registers' register buffer.
4600 (print_return_value): Ditto.
4601
4602 * inferior.h (struct regcache): Add opaque declaration.
4603 (stop_registers): Change variable's declared type to ``struct
4604 regcache''.
4605
defc6f8c
TT
46062002-06-24 Tom Tromey <tromey@redhat.com>
4607
c0e624e7
TT
4608 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4609 * target.c (initialize_targets): Fixed typo in
4610 trust-readonly-sections `show' documentation.
4611
defc6f8c
TT
4612 * main.c: Marked all strings with _().
4613
2b236d82
DH
46142002-06-24 Don Howard <dhoward@redhat.com>
4615
4616 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4617 that means max CORE_ADDR+1.
4618 (lookup_mem_region): Ditto.
4619 (mem_info_command): Ditto.
4620
942dc0e9
GS
46212002-06-24 Grace Sainsbury <graces@redhat.com>
4622
4623 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4624 (REGISTER_BYTES_OK): Remove.
4625 (REGISTER_BYTES): Remove.
4626 (STORE_STRUCT_RETURN): Remove.
4627 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4628 (STORE_RETURN_VALUE): Remove.
4629 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4630 (FRAME_CHAIN): Remove.
4631 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4632 (FRAME_SAVED_PC): Remove.
4633 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4634 (m68k_store_struct_return): Add.
4635 (m68k_deprecated_extract_return_value): Add.
4636 (m68k_deprecated_extract_struct_value_address): Add.
4637 (m68k_store_return_value): Add.
4638 (m68k_frame_chain): Add.
4639 (m68k_frameless_function_invocation): Add.
4640 (m68k_frame_saved_pc): Add.
4641 (m68k_gdbarch_init): added set_gdbarch calls for new
4642 functions and deleted macros.
4643
03c30d4d
TT
46442002-06-23 Tom Tromey <tromey@redhat.com>
4645
4646 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4647 (ALLDEPFILES): Likewise.
4648 (udiheaders): Removed.
4649 (udip2soc.o): Likewise.
4650 (udi2go32.o): Likewise.
4651 (udr.o): Likewise.
4652 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4653
37e71372
AC
46542002-06-22 Andrew Cagney <ac131313@redhat.com>
4655
06a6ac57
AC
4656 * infrun.c (_initialize_infrun): Delete unnecessary call to
4657 build_infrun.
4658
37e71372
AC
4659 * regcache.h: Update comments describing the regcache_cpy family
4660 of functions.
4661 (regcache_save, regcache_restore): Delete declaration.
4662 (regcache_save_no_passthrough): Delete declaration.
4663 (regcache_restore_no_passthrough): Delete declaration.
4664 * regcache.c (regcache_save): Delete function.
4665 (regcache_save_no_passthrough): Delete function.
4666 (regcache_restore): Delete function.
4667 (regcache_restore_no_passthrough): Delete function.
4668
78f6d055
AC
46692002-06-21 Andrew Cagney <ac131313@redhat.com>
4670
4671 * config/m68k/tm-m68k.h: Fix typo.
4672 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4673 (m68k_frame_init_saved_regs): Declare.
4674
78b119cb
JB
46752002-06-21 Jim Blandy <jimb@redhat.com>
4676
4677 Remove some vestiges of Harris 88k support.
4678 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4679 register numbering quirk.
4680 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4681 odd symbols occurring in Harris 88k ELF targets.
4682
0fbb3da7
TT
46832002-06-21 Tom Tromey <tromey@redhat.com>
4684
4685 * gdb_locale.h: New file.
4686 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4687 (defs_h): Added gdb_locale.h.
4688 * configure, config.in: Rebuilt.
4689 * configure.in (PACKAGE): Define.
4690 * defs.h: Include gdb_locale.h.
4691 * main.c (captured_main): Call setlocale, bindtextdomain,
4692 textdomain.
4693
456f8b9d
DB
46942002-06-21 Dave Brolley <brolley@redhat.com>
4695
4696 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4697 * config/frv/frv.mt: New file.
4698 * config/frv/tm-frv.h: New file.
4699 * configure.tgt: Support frv-*-*.
4700 * Makefile.in (frv-tdep.o): New target.
4701 * frv-tdep.c: New file.
4702 * NEWS: Mention frv.
4703
cdd463f9
DB
47042002-06-21 Dave Brolley <brolley@redhat.com>
4705
4706 * MAINTAINERS: Add self to "Write After Approval" list.
4707
5d3ed2e3
GS
47082002-06-21 Grace Sainsbury <graces@redhat.com>
4709
4710 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4711 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4712 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4713 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4714 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4715
4716 * m68k-tdep.c: Include arch-utils.h
4717 (m68k_register_raw_size): Add.
4718 (m68k_register_virtual_size): Add.
4719 (m68k_register_virtual_type): Add.
4720 (m68k_register_name): Add.
4721 (m68k_stack_align): Add.
4722 (m68k_register_byte): Add.
4723 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4724 tm-m68k.h.
4725
7f8e7424
GS
47262002-06-21 Grace Sainsbury <graces@redhat.com>
4727
a2c6a6d5 4728 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4729 m68k_find_saved_regs.
4730 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4731 references to it with frame->saved_regs.
7f8e7424
GS
4732 (m68k_gdbarch_init): Added function calls to initialize the
4733 gdbarch structure.
a2c6a6d5
GS
4734 (m68k_fix_call_dummy): Add.
4735 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4736 (CALL_DUMMY): Remove.
4737 (CALL_DUMMY_LENGTH): Remove.
4738 (CALL_DUMMY_START_OFFSET): Remove.
4739 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4740 (FIX_CALL_DUMMY): Remove.
4741 (PUSH_DUMMY_FRAME): Remove.
4742 (POP_FRAME): Remove.
7f8e7424 4743
f461f5cf
PM
47442002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4745
4746 * parse.c (parse_fprintf): New function used to avoid calls to
4747 fprintf in bison parser generated debug code.
4748 * parser-defs.h: Declaration of new parse_fprintf function.
4749 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4750 Set YYDEBUG to 1 by default.
4751 Set YYFPRINTF as parse_fprintf.
4752
7f0c12ed
ML
47532002-06-21 Michal Ludvig <mludvig@suse.cz>
4754
4755 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4756 encoding anymore.
4757 (pointer_encoding, enum ptr_encoding): New.
4758 (execute_cfa_program): Take care about pointer encoding.
4759 (dwarf2_build_frame_info): Only call parse_frame_info for
4760 .debug_frame and .eh_frame.
4761 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4762 fixed augmentation handling, added relative addressing,
4763 ignore duplicate FDEs. Added comments.
19d833a2 4764 * dwarf2cfi.c: Reindented.
7f0c12ed 4765
87c4a039
EZ
47662002-06-20 Elena Zannoni <ezannoni@redhat.com>
4767
4768 * event-top.c (command_handler): Don't use space_at_cmd_start
4769 unless there is sbrk() on the host. Assign time and space data
4770 to union fields of the appropriate length.
4771
1cf877ad
ML
47722002-06-20 Michal Ludvig <mludvig@suse.cz>
4773
4774 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4775 x86_64_register_name. Return type changed to 'const char *'.
4776 (x86_64_register_name2nr): Rename to x86_64_register_number.
4777 (x86_64_gdbarch_init): Update to reflect the change.
4778 * x86-64-tdep.h: Ditto.
4779 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4780 (supply_fpregset): Ditto.
4781
3fadccb3
AC
47822002-06-19 Andrew Cagney <cagney@redhat.com>
4783
4784 * regcache.h: Update copyright.
4785 (struct regcache, struct gdbarch): Add opaque declarations.
4786 (current_regcache): Declare global variable.
4787 (regcache_read, regcache_write): Add gdbarch parameter.
4788 (regcache_save, regcache_save_no_passthrough)
4789 (regcache_restore, regcache_restore_no_passthrough)
4790 (regcache_dup, regcache_dup_no_passthrough)
4791 (regcache_cpy, regcache_cpy_no_passthrough)
4792 (deprecated_grub_regcache_for_registers)
4793 (deprecated_grub_regcache_for_register_valid)
4794 (regcache_valid_p): Add function declarations.
4795
4796 * regcache.c: Update copyright.
4797 (regcache_descr_handle): New global variable.
4798 (struct regcache_descr): Define.
4799 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4800 (regcache_descr, xfree_regcache_descr): New functions.
4801 (struct regcache): Define.
4802 (regcache_xmalloc, regcache_xfree): New functions.
4803 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4804 (regcache_dup, regcache_dup_no_passthrough): New functions.
4805 (regcache_valid_p, regcache_read_as_address): New functions.
4806 (deprecated_grub_regcache_for_registers): New function.
4807 (deprecated_grub_regcache_for_register_valid): New function.
4808 (current_regcache): New global variable.
4809 (register_buffer): Add regcache parameter. Update calls.
4810 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4811 (read_register_gen, write_register_gen): Update register_buffer
4812 call. Test for legacy_p instead of gdbarch_register_read_p or
4813 gdbarch_register_write_p.
4814 (regcache_collect): Update register_buffer call.
4815 (build_regcache): Rewrite. Use deprecated grub functions.
4816 (regcache_save, regcache_save_no_passthrough): New functions.
4817 (regcache_restore, regcache_restore_no_passthrough): New
4818 functions.
4819 (_initialize_regcache): Create the regcache_data_handle. Swap
4820 current_regcache global variable.
4821
4822 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4823 parameter to regcache_read and regcache_write calls.
4824 (sh4_register_read): Ditto.
4825 (sh64_pseudo_register_read): Ditto.
4826 (sh64_register_read): Ditto.
4827 (sh_pseudo_register_write): Ditto.
4828 (sh4_register_write): Ditto.
4829 (sh64_pseudo_register_write): Ditto.
4830 (sh64_register_write): Ditto.
4831
4832 * defs.h (XCALLOC): Define.
4833
152d9db6
GS
48342002-06-19 Grace Sainsbury <graces@redhat.com>
4835
4836 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4837 * m68k-tdep.c (m68k_gdbarch_init): Added.
4838 (m68k_dump_tdep): Added.
4839
170911c7
DJ
48402002-06-19 Daniel Jacobowitz <drow@mvista.com>
4841
4842 * ada-lang.c (fill_in_ada_prototype): Update comment.
4843
2e4ebe70
DJ
48442002-06-19 Daniel Jacobowitz <drow@mvista.com>
4845
4846 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4847 MIPS_ABI_LAST.
4848 (mips_abi_string, mips_abi_strings): New.
4849 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4850 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4851 tdep->mips_abi_string. Honor mips_abi_string. Default to
4852 O32 if no ABI is found.
4853 (mips_dump_tdep): Use mips_abi_strings.
4854 (mips_abi_update): New function.
4855 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4856 ``set mips abi'' and ``show mips abi''. Check the size of
4857 mips_abi_strings.
4858
16775908
AC
48592002-06-19 Andrew Cagney <cagney@redhat.com>
4860
4861 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4862 constant.
4863
5051bfa4 48642002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4865
5051bfa4
JB
4866 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4867 current frame using only the first stack size adjustment. All
4868 subsequent size adjustments are not considered to be part of
4869 the "static" part of the current frame.
4870 Compute the address of the saved registers relative to the
4871 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4872 in use in this frame.
4873
56468235
DH
48742002-06-18 Don Howard <dhoward@redhat.com>
4875
4876 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4877 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4878 suggesting this solution.
4879
0b624158
AC
48802002-06-18 Andrew Cagney <ac131313@redhat.com>
4881
4882 * config/romp/xm-rtbsd.h: Delete file.
4883 * config/romp/rtbsd.mh: Delete file.
4884
221ea385
KS
48852002-06-18 Keith Seitz <keiths@redhat.com>
4886
4887 * breakpoint.c (condition_command): Post breakpoint_modify
4888 when a condition is added to an existing breakpoint.
4889 (commands_command): Likewise for commands.
4890 (set_ignore_count): Likewise for ignore counts.
4891 If no tty, do not simply return, still need to send event
4892 notification.
4893 (ignore_command): Only print a newline if the command came
4894 from a tty.
4895 Don't call breakpoints_changed, since this is now properly
4896 handled by set_ignore_count.
4897
5402eed1
AC
48982002-06-18 Andrew Cagney <cagney@redhat.com>
4899
4900 * MAINTAINERS: Note that cris-elf target can be compiled with
4901 -Werror.
4902 * cris-tdep.c (cris_register_name): Make return type constant.
4903 (cris_breakpoint_from_pc): Ditto.
4904
cc22880b
ML
49052002-06-18 Michal Ludvig <mludvig@suse.cz>
4906
4907 * frame.h (struct frame_info): Change type of context to
4908 'struct context'.
4909
fa88f677
AC
49102002-06-17 Andrew Cagney <cagney@redhat.com>
4911
4912 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4913 pointer.
4914 * gdbarch.h, gdbarch.c: Regenerate.
4915 * config/mips/tm-mips.h (mips_register_name): Update.
4916 * i386-tdep.h (i386_register_name): Update.
4917 * mips-tdep.c (mips_register_name): Update
4918 * alpha-tdep.c (alpha_register_name): Update.
4919 * arch-utils.c (legacy_register_name): Update.
4920 * arch-utils.h (legacy_register_name): Update.
4921 * avr-tdep.c (avr_register_name): Update.
4922 * ia64-tdep.c (ia64_register_name): Update.
4923 * i386-tdep.c (i386_register_name): Update.
4924 * sparc-tdep.c (sparc32_register_name): Update.
4925 (sparc64_register_name): Update.
4926 (sparclite_register_name): Update.
4927 (sparclet_register_name): Update.
4928 * sh-tdep.c (sh_generic_register_name): Update.
4929 (sh_sh_register_name): Update.
4930 (sh_sh3_register_name): Update.
4931 (sh_sh3e_register_name): Update.
4932 (sh_sh_dsp_register_name): Update.
4933 (sh_sh3_dsp_register_name): Update.
4934 (sh_sh4_register_name): Update.
4935 (sh_sh64_register_name): Update.
4936 * s390-tdep.c (s390_register_name): Update.
4937 * rs6000-tdep.c (rs6000_register_name): Update.
4938 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4939 (ns32k_register_name_32382): Update.
4940 * d10v-tdep.c (d10v_ts2_register_name): Update.
4941 (d10v_ts3_register_name): Update.
4942 * xstormy16-tdep.c (xstormy16_register_name): Update.
4943 * vax-tdep.c (vax_register_name): Update.
4944 * v850-tdep.c (v850_register_name): Update.
4945 * m68hc11-tdep.c (m68hc11_register_name): Update.
4946 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4947 (am33_register_name): Update.
4948
ea1e7ef6
GS
49492002-06-17 Grace Sainsbury <graces@redhat.com>
4950
4951 * m68k-tdep.c: Reindented.
4952
9b02dd1b
AC
49532002-06-17 Andrew Cagney <ac131313@redhat.com>
4954
4955 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4956 list of predefined types.
4957
8758dec1
MK
49582002-06-16 Mark Kettenis <kettenis@gnu.org>
4959
b6197528
MK
4960 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4961 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4962 REGISTER_CONVERT_TO_RAW): Remove defines.
4963 (i386_register_virtual_type, i386_register_convertible,
4964 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4965 Remove prototypes.
4966 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4967 macros mentioned above.
4968
82b47e62
MK
4969 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4970 (i386lynx_saved_pc_after_call): Remove prototype.
4971 * i386ly-tdep.c: Include "i386-tdep.h".
4972 (i386lynx_saved_pc_after_call): Make static. Use
4973 read_memory_nobpt instead of read_memory. Use
4974 read_memory_unsigned_integer instead of read_memory_integer.
4975 (i386lynx_init_abi): New function.
4976 (i386lynx_coff_osabi_sniffer): New function.
4977 (_initialize_i386bsd_tdep): New function.
4978
8758dec1
MK
4979 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4980 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4981 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4982 (i386_fix_call_dummy): Remove prototype.
4983 * i386-tdep.c (i386_call_dummy_words): New variable.
4984 (i386_gdbarch_init): Adjust for removal of the
4985 macros mentioned above.
4986
e9e68a56
AC
49872002-06-15 Andrew Cagney <ac131313@redhat.com>
4988
4989 * command.h (add_setshow_auto_boolean_cmd): Replace
4990 add_set_auto_boolean_cmd.
4991 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4992 add_set_auto_boolean_cmd.
4993 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4994 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4995 mask-address'' command.
4996 (show_mask_address): Add cmd parameter.
4997 * remote.c (add_packet_config_cmd): Update. Change type of
4998 set_func and show_func to cmd_sfunc_ftype.
4999 (_initialize_remote): Update `set remote Z-packet'
5000 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5001 (show_remote_protocol_e_packet_cmd): Ditto.
5002 (show_remote_protocol_E_packet_cmd): Ditto.
5003 (show_remote_protocol_P_packet_cmd): Ditto.
5004 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5005 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5006 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5007 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5008 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5009 (show_remote_protocol_Z_packet_cmd): Ditto.
5010 (show_remote_protocol_binary_download_cmd): Ditto.
5011 (show_remote_cmd): Pass NULL to all of above.
5012
fc08ec52
MK
50132002-06-15 Mark Kettenis <kettenis@gnu.org>
5014
5015 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5016 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5017 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5018 POP_FRAME): Remove defines.
5019 (i386_push_arguments, i386_store_struct_return,
5020 i386_extract_return_value, i386_store_return_value,
5021 i386_extract_struct_value_address, i386_push_dummy_frame,
5022 i386_pop_frame): Renove prototypes.
5023 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5024 macros mentioned above.
5025
e707bbc2
AC
50262002-06-15 Andrew Cagney <ac131313@redhat.com>
5027
5028 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5029 add_set_boolean_cmd.
5030 (add_setshow_cmd): New function.
5031 * command.h (add_setshow_boolean_cmd): Replace
5032 add_set_boolean_cmd.
5033 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5034 and ``set rdiromatzero''.
5035 * maint.c (_initialize_maint_cmds): Update commented out code.
5036 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5037 * target.c (initialize_targets): Update `set
5038 trust-readonly-sections'.
5039 * remote.c (_initialize_remote): Update `set remotebreak'.
5040
42fdc8df
MK
50412002-06-15 Mark Kettenis <kettenis@gnu.org>
5042
93924b6b
MK
5043 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5044 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5045 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5046 fit into multi-arch framework.
5047 (i386_breakpoint_from_pc): New function.
5048 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5049 above.
5050
42fdc8df
MK
5051 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5052 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5053 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5054 (i386_frameless_function_invocation, i386_frame_num_args,
5055 i386_frame_init_saved_regs): Remove prototypes.
5056 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5057 macros mentioned above.
5058
9773a94b
AC
50592002-06-15 Andrew Cagney <ac131313@redhat.com>
5060
5061 * cli/cli-decode.c (set_cmd_cfunc): Update.
5062 (set_cmd_sfunc): Update.
5063 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5064 (set_cmd_sfunc, set_cmd_cfunc): Update.
5065 * cli/cli-decode.h: Update.
5066
6e157172
MK
50672002-06-15 Mark Kettenis <kettenis@gnu.org>
5068
5069 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5070 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5071
7f19b9a2
AC
50722002-06-15 Andrew Cagney <ac131313@redhat.com>
5073
5074 * defs.h (auto_boolean): Declare enum.
5075 * command.h (cmd_auto_boolean): Delete enum.
5076 * mips-tdep.c (mask_address_var): Update.
5077 (mips_mask_address_p): Update.
5078 (show_mask_address): Update.
5079 * remote.c (struct packet_config): Update.
5080 (update_packet_config): Update.
5081 (show_packet_config_cmd): Update.
5082 (packet_ok): Update.
5083 (add_packet_config_cmd): Update.
5084 (_initialize_remote):
5085 * command.h: Update.
5086 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5087 (do_setshow_command): Update.
5088 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5089 * cli/cli-decode.h: Update.
5090
1cf88de5
MK
50912002-06-15 Mark Kettenis <kettenis@gnu.org>
5092
22ba8cf2
MK
5093 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5094 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5095 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5096 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5097 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5098 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5099
762c5349
MK
5100 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5101 list of DJGPP COFF targets.
5102
091198bb
MK
5103 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5104 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5105 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5106 (FP0_REGNUM): Remove define.
5107 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5108 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5109 (i386_register_virtual_size): Remove protoype.
5110 * i386-tdep.c (i386_register_virtual_size): Removed.
5111 (i386_extract_return_value, i386_store_return_value): Use
5112 FP0_REGNUM instead of NUM_FREGS to determine whether the
5113 floating-point registers are available.
5114 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5115 Adjust for removal of macros mentioned above.
5116
51172002-06-15 Mark Kettenis <kettenis@gnu.org>
5118
fcc9bf01
MK
5119 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5120 comments.
5121 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5122 Remove prototypes.
5123 (supply_gregset, fill_gregset): Remove use of register keyword and
5124 remove declaration for regmap. Use I386_NUM_GREGS instead of
5125 NUM_REGS and NUM_FREGS.
5126 (FPREGSET_FSAVE_OFFSET): Remove.
5127 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5128 NUM_FREGS to determine whether the floating-point registers are
5129 available.
5130
65e78234
MK
5131 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5132 gnu_store_registers): Replace usage of NUM_GREGS with
5133 I386_NUM_GREGS.
5134
98df6387
MK
5135 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5136 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5137 usage of NUM_GREGS with I386_NUM_GREGS.
5138
099a9414
MK
5139 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5140
57976e88
MK
5141 * i386bsd-nat.c: Include "i386-tdep.h".
5142 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5143 I386_NUM_GREGS.
5144
b335f4a6
MK
5145 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5146 and associated comment. They no longer make any sense, since we
5147 don't use this file anymore on Linux.
5148
1cf88de5
MK
5149 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5150 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5151 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5152 elements in these arrays.
5153 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5154 MAX_NUM_REGS.
5155
daa66587
MK
51562002-06-15 Mark Kettenis <kettenis@gnu.org>
5157
5158 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5159 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5160
26e9b323
AC
51612002-06-14 Andrew Cagney <cagney@redhat.com>
5162
5163 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5164 EXTRACT_RETURN_VALUE.
5165 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5166 EXTRACT_STRUCT_VALUE_ADDRESS.
5167 * gdbarch.h, gdbarch.c: Regenerate.
5168
5169 * values.c (value_being_returned): Handle
5170 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5171 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5172
5173 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5174 * arm-tdep.c (arm_gdbarch_init): Update.
5175 * avr-tdep.c (avr_gdbarch_init): Update.
5176 * cris-tdep.c (cris_gdbarch_init): Update.
5177 * d10v-tdep.c (d10v_gdbarch_init): Update.
5178 * ia64-tdep.c (ia64_gdbarch_init): Update.
5179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5180 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5181 * s390-tdep.c (s390_gdbarch_init): Update.
5182 * sh-tdep.c (sh_gdbarch_init): Update.
5183 * s390-tdep.c (s390_gdbarch_init): Update.
5184 * sparc-tdep.c (sparc_gdbarch_init): Update.
5185 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5186 * v850-tdep.c (v850_gdbarch_init): Update.
5187 * vax-tdep.c (vax_gdbarch_init): Update.
5188 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5190
5191 * config/arc/tm-arc.h: Update.
5192 * config/d30v/tm-d30v.h: Update.
5193 * config/fr30/tm-fr30.h: Update.
5194 * config/h8300/tm-h8300.h: Update.
5195 * config/h8500/tm-h8500.h: Update.
5196 * config/i386/tm-i386.h: Update.
5197 * config/i386/tm-ptx.h: Update.
5198 * config/i386/tm-symmetry.h: Update.
5199 * config/i960/tm-i960.h: Update.
5200 * config/m32r/tm-m32r.h: Update.
5201 * config/m68k/tm-delta68.h: Update.
5202 * config/m68k/tm-linux.h: Update.
5203 * config/m68k/tm-m68k.h: Update.
5204 * config/m88k/tm-m88k.h: Update.
5205 * config/mcore/tm-mcore.h: Update.
5206 * config/mips/tm-mips.h: Update.
5207 * config/mn10200/tm-mn10200.h: Update.
5208 * config/pa/tm-hppa.h: Update.
5209 * config/pa/tm-hppa64.h: Update.
5210 * config/sparc/tm-sp64.h: Update.
5211 * config/sparc/tm-sparc.h: Update.
5212 * config/sparc/tm-sparclet.h: Update.
5213 * config/z8k/tm-z8k.h: Update.
5214
5179e78f
AC
52152002-06-14 Andrew Cagney <cagney@redhat.com>
5216
5217 * Makefile.in (i386_linux_tdep_h): Define.
5218 (i386_tdep_h, i387_tdep_h): Define.
5219 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5220 $(i386_tdep_h) and $(i387_tdep_h).
5221 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5222
8201327c
MK
52232002-06-14 Mark Kettenis <kettenis@gnu.org>
5224
edf393ac
MK
5225 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5226 Already covered by the default.
5227
896fb97d
MK
5228 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5229 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5230 (i386_gdbarch_init): Initialize long_double_format and long_double
5231 bit.
5232
8201327c
MK
5233 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5234 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5235 Move these to ...
5236 * config/i386/i386sol2.mh: ... here.
5237 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5238 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5239 (SIGCONTEXT_PC_OFFSET): Remove define.
5240 (IN_SIGTRAMP): Remove define.
5241 * i386-sol2-tdep.c: New file.
5242
5243 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5244 * config/i386/tm-i386nw.h: Removed.
5245
5246 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5247 USE_STRUCT_CONVENTION): Remove defines.
5248 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5249 (get_longjmp_target): Remove prototype.
5250 (IN_SIGTRAMP): Remove define.
5251 (i386bsd_in_sigtramp): Remove prototype.
5252 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5253 function. Update comment accordingly
5254 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5255 (FRAME_SAVED_PC): Remove define.
5256 (i386bsd_frame_saved_pc): Remove prototype.
5257 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5258 GET_LONGJMP_TARGET): Remove defines.
5259 (get_longjmp_target): Remove prototype.
5260 (IN_SIGTRAMP): Remove define.
5261 (i386bsd_in_sigtramp): Remove prototype.
5262 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5263 function. Update comment accordingly
5264 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5265 (FRAME_SAVED_PC): Remove define.
5266 (i386bsd_frame_saved_pc): Remove prototype.
5267 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5268 Remove prototype.
5269 (USE_STRUCT_CONVENTION): Remove prototype.
5270 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5271 declaration.
5272 (_initialize_i386bsd_nat): Revise logic to determine some
5273 constants at compile time when compiling a native GDB. Warn if
5274 things don't match up with what we expect.
5275 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5276 Remove variables.
5277 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5278 to use date stored in `struct gdbarch_tdep'.
5279 (i386bsd_sigcontext_offset): Remove varaible.
5280 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5281 stored in `struct gdbarch_tdep'.
5282 (i386bsd_frame_saved_pc): Make static.
5283 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5284 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5285 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5286 i386fbsd4_sc_pc_offset): New variables.
5287 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5288 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5289 functions.
5290 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5291 functions.
5292 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5293 Modify the value of i386fbsd_sigtramp_start and
5294 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5295 i386fbsd_sigtramp_end.
5296 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5297 function.
5298
5299 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5300 define to i386-linux-tdep.h.
5301 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5302 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5303 defines.
5304 (i386_linux_register_name, i386_linux_register_byte,
5305 i386_linux_register_raw_size): Remove prototypes.
5306 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5307 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5308 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5309 TARGET_WRITE_PC): Remove defines.
5310 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5311 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5312 i386_linux_write_pc): Remove prototypes.
5313 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5314 (get_longjmp_target): Remove prototype.
5315 * i386-linux-tdep.h: New file.
5316 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5317 * i386-linux-tdep.c: Include "i386-tdep.h" and
5318 "i386-linux-tdep.h".
5319 (i386_linux_register_name, i386_linux_register_byte,
5320 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5321 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5322 Make static.
5323 (i386_linux_init_abi): New function.
5324 (_initialize_i386_linux_tdep): New function.
5325
5326 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5327 (i386_saved_pc_after_call): Remove prototype.
5328 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5329 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5330 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5331 (i386_register_name, i386_stab_reg_to_regnum,
5332 i386_dwarf_reg_to_regnum): Remove prototypes.
5333 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5334 SIZEOF_SSE_REGS): Remove defines.
5335 (REGISTER_BYTES): Remove define.
5336 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5337 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5338 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5339 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5340 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5341 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5342 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5343 (get_longjmp_target): Remove prototype.
5344 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5345 (sigtramp_saved_pc): Remove define.
5346 (i386v4_sigtramp_saved_pc): Remove prototype.
5347 * config/i386/tm-go32.h (FRAME_CHAIN,
5348 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5349 (i386go32_frame_saved_pc): Remove prototype.
5350 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5351 (get_longjmp_target): Remove prototype.
5352 * i386-tdep.h: Include "osabi.h".
5353 (enum i386_abi): Removed.
5354 (enum struct_return): New enum.
5355 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5356 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5357 sc_pc_offset members.
5358 (i386_gdbarch_register_os_abi): Remove prototype.
5359 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5360 I386_SSE_NUM_REGS): New defines.
5361 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5362 I386_SSE_SIZEOF_REGS): New defines.
5363 (i386_register_name, i386_register_byte, i386_register_raw_size):
5364 New prototypes.
5365 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5366 (i386bsd_sigtramp_saved_pc): New prototype.
5367 * i386-tdep.c: Don't include "elf-bfd.h".
5368 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5369 i386_frame_chain, i386_saved_pc_after_call): Make static.
5370 (i386_frame_saved_pc): Rewrite to call architecture dependent
5371 function to deal with signal handlers. Make static.
5372 (i386go32_frame_saved_pc): Removed.
5373 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5374 Removed.
5375 (i386_get_longjmp_target): New function.
5376 (default_struct_convention, pcc_struct_convention,
5377 reg_struct_convention, valid_conventions, struct_convention): New
5378 variables.
5379 (i386_use_struct_convention): New function.
5380 (i386v4_sigtramp_saved_pc): Renamed to
5381 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5382 (i386_pc_in_sigtramp): New function.
5383 (i386_abi_names): Removed.
5384 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5385 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5386 Removed.
5387 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5388 i386_gdbarch_register_os_abi): Removed.
5389 (struct i386_abi_handler): Removed.
5390 (i386_abi_handler_list): Removed.
5391 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5392 functions.
5393 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5394 i386_nw_init_abi): New functions.
5395 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5396 Use set_gdbarch_xxx() calls instead of relying on macros for a
5397 number of calls.
5398 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5399 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5400 Register the various architecture variants defined in this file.
5401
ad2f7632
DJ
54022002-06-14 Daniel Jacobowitz <drow@mvista.com>
5403
5404 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5405 (struct main_type): Remove arg_types member. Update comments for
5406 struct field.
5407 (TYPE_ARG_TYPES): Remove.
5408 (TYPE_FN_FIELD_ARGS): Update.
5409 (smash_to_method_type): Update prototype.
5410
5411 * c-typeprint.c (cp_type_print_method_args): Take method type
5412 instead of argument list. Use new argument layout. Simplify.
5413 (c_type_print_args): Use new argument layout. Simplify.
5414 (c_type_print_base): Update call to cp_type_print_method_args.
5415 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5416 argument; use die->type instead. Update call to
5417 smash_to_method_type.
5418 (read_structure_scope): Update call to dwarf2_add_member_fn.
5419 * gdbtypes.c (allocate_stub_method): Update comment.
5420 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5421 Use new argument layout.
5422 (check_stub_method): Use new argument layout. Don't count
5423 void as an argument.
5424 (print_arg_types): Update comments. Use new argument layout.
5425 (recursive_dump_type): Don't print arg_types member.
5426 * hpread.c (hpread_read_struct_type): Use new argument layout.
5427 (fixup_class_method_type): Likewise.
5428 (hpread_type_lookup): Likewise.
5429 * stabsread.c (read_type): Update calls to read_args and
5430 smash_to_method_type.
5431 (read_args): Use new argument layout. Simplify.
5432 * valops.c (typecmp): Use new argument layout. Update parameters
5433 and comments. Simplify.
5434 (hand_function_call): Use new argument layout.
5435 (search_struct_method): Update call to typecmp.
5436 (find_overload_match): Use new argument layout.
5437
6da02953
DJ
54382002-06-13 Daniel Jacobowitz <drow@mvista.com>
5439
5440 * NEWS: Mention multithreaded debug support for gdbserver.
5441
519b2366
DJ
54422002-06-13 Daniel Jacobowitz <drow@mvista.com>
5443
5444 * MAINTAINERS: Mention NEWS.
5445
6c0d6680
DJ
54462002-06-13 Daniel Jacobowitz <drow@mvista.com>
5447
5448 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5449 (struct mips_objfile_private, compare_pdr_entries): New.
5450 (non_heuristic_proc_desc): Read the ".pdr" section if it
5451 is present.
5452
6529d2dd
AC
54532002-06-12 Andrew Cagney <ac131313@redhat.com>
5454
5455 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5456 (arm_debug): New static variable.
5457 (_initialize_arm_tdep): Add ``set debug arm'' command.
5458
26216b98
AC
54592002-06-12 Andrew Cagney <ac131313@redhat.com>
5460
5461 * Makefile.in (sim_arm_h): Define.
5462 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5463 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5464 (arm_register_sim_regno): New function, map an internal REGNUM
5465 onto a simulator register number.
5466 (arm_gdbarch_init): Set register_sim_regno.
5467
814b3ba0
AH
54682002-06-09 Aldy Hernandez <aldyh@redhat.com>
5469
5470 * MAINTAINERS: Add self.
5471
475b0867
JB
54722002-06-11 Jim Blandy <jimb@redhat.com>
5473
919d772c
JB
5474 * source.c (source_info): Mention whether the symtab has
5475 information about preprocessor macros.
5476
475b0867
JB
5477 Call the command `info macro', not `show macro'.
5478 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5479 Fix error message.
5480 (_initialize_macrocmd): Register `info_macro_command' in
5481 `infolist', not `showlist'.
5482
9e364162
DJ
54832002-06-11 Daniel Jacobowitz <drow@mvista.com>
5484
5485 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5486 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5487 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5488 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5489 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5490 unconditionally.
5491 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5492 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5493 (_initialize_mips_tdep): Remove dead code.
5494 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5495 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5496 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5497 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5498 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5499 MIPS_LAST_FP_ARG_REGNUM): Remove.
5500
23aa4c72
ML
55012002-06-11 Michal Ludvig <mludvig@suse.cz>
5502
5503 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5504 (unwind_tmp_obstack_free, parse_frame_info)
5505 (update_context, cfi_read_fp, cfi_write_fp)
5506 (cfi_frame_chain, cfi_init_extra_frame_info)
5507 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5508 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5509
70eb15a4
CV
55102002-06-11 Corinna Vinschen <vinschen@redhat.com>
5511
5512 * v850-tdep.c (v850_type_is_scalar): New function.
5513 (v850_use_struct_convention): Match current gcc implementation
5514 as close as possible.
5515 (v850_push_arguments): Fix stack_offset handling. Don't write
5516 struct_addr into register. This is done by v850_store_struct_return.
5517 (v850_extract_return_value): Care for structs.
5518 (v850_store_return_value): Ditto.
5519 (v850_store_struct_return): Actually write address.
5520
482a4d06
ML
55212002-06-11 Michal Ludvig <mludvig@suse.cz>
5522
5523 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5524 without debug information too.
5525
d855c300
AC
55262002-06-10 Andrew Cagney <ac131313@redhat.com>
5527
5528 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5529 Make multi-arch pure.
5530 * gdbarch.h, gdbarch.c: Re-generate.
5531 * arm-tdep.c (arm_print_float_info): Update.
5532 * arch-utils.h (default_print_float_info): Update.
5533 * arch-utils.c (default_print_float_info): Update.
5534 * infcmd.c (float_info): Update call.
5535
dd12a101
AC
55362002-06-10 Andrew Cagney <ac131313@redhat.com>
5537
5538 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5539 the front of the initialize list.
5540
101dcfbe
AC
55412002-06-10 Andrew Cagney <ac131313@redhat.com>
5542
5543 * infrun.c (struct inferior_status): Replace fields
5544 selected_frame_address and selected_level with field
5545 selected_frame_id.
5546 (save_inferior_status): Update. Use get_frame_id.
5547 (struct restore_selected_frame_args): Delete.
5548 (restore_selected_frame): Update. Use frame_find_by_id.
5549 (restore_inferior_status): Update.
5550
5551 * breakpoint.h (struct breakpoint): Change type of
5552 watchpoint_frame to frame_id.
5553 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5554 call to get_current_frame.
5555 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5556 get_current_frame.
5557 (watchpoint_check): Use frame_find_by_id.
5558
5559 * frame.h (record_selected_frame): Delete declaration.
5560 * stack.c (record_selected_frame): Delete function.
5561
5562 * frame.h (struct frame_id): Define.
5563 (get_frame_id): Declare.
5564 (frame_find_by_id): Declare.
5565 * frame.c (frame_find_by_id): New function.
5566 (get_frame_id): New function.
5567
304270b6
AV
55682002-06-10 Andrey Volkov <avolkov@transas.com>
5569
5570 * ser-e7kpc.c: Fix duplicated define and call of
5571 _initialize_ser_e7000pc
5572
2f2cf184
DJ
55732002-06-09 Daniel Jacobowitz <drow@mvista.com>
5574
5575 * signals/signals.c (target_signal_from_host): Fix #ifdef
5576 SIGRTMIN case.
5577 (do_target_signal_to_host): Likewise.
5578
caaa3122
DJ
55792002-06-09 Daniel Jacobowitz <drow@mvista.com>
5580
5581 * mips-tdep.c (mips_find_abi_section): New function.
5582 (mips_gdbarch_init): Call it.
5583
6ac5df3a
MK
55842002-06-09 Mark Kettenis <kettenis@gnu.org>
5585
5586 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5587 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5588 after Andrew's 2002-06-08 gdbarch change.
5589
82ea117a
MK
55902002-06-09 Mark Kettenis <kettenis@gnu.org>
5591
5592 * i386-linux-nat.c (suppy_gregset): Don't supply
5593 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5594 register cache.
5595 (fill_gregset): Don't fetch it under the same circumstances.
5596
3c25f8c7
AC
55972002-06-09 Andrew Cagney <cagney@redhat.com>
5598
5599 * Makefile.in (callback_h): Define.
5600 (remote_sim_h): Update path to remote-sim.h.
5601 (remote-rdp.o): Add $(callback_h).
5602 (remote-sim.o): Use $(callback_h).
5603 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5604 * remote-rdp.c: Include "gdb/callback.h".
5605
1029b7fa
MK
56062002-06-09 Mark Kettenis <kettenis@gnu.org>
5607
5608 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5609 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5610
616675d3
AC
56112002-06-08 Andrew Cagney <ac131313@redhat.com>
5612
a3efda28
AC
5613 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5614 * rdi-share/serpardr.c: Ditto.
5615 * rdi-share/unixcomm.c: Ditto.
5616 * rdi-share/serdrv.c: Ditto.
5617 * rdi-share/hostchan.h: Ditto.
5618 * rdi-share/hostchan.c: Ditto.
5619 * rdi-share/host.h: Ditto.
5620 * rdi-share/devsw.c: Ditto.
5621
c5f10366
AC
5622 * objfiles.h: Change type of obj_private to void pointer.
5623 * pa64solib.c: Update copyright. Don't include "assert.h", use
5624 strcmp instead of STREQ, use LONGEST, do not use PTR
5625 * somsolib.c: Ditto.
5626
616675d3
AC
5627 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5628 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5629 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5630
e4b415d9
AC
56312002-06-08 Andrew Cagney <ac131313@redhat.com>
5632
5633 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5634 (default_get_saved_register): Delete function.
5635 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5636 generic_unwind_get_saved_register.
5637 * gdbarch.h, gdbarch.c: Re-generate.
5638
ca0d0b52
AC
56392002-06-08 Andrew Cagney <ac131313@redhat.com>
5640
5641 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5642 generic_func_frame_chain_valid.
5643 * gdbarch.h, gdbarch.c: Re-generate.
5644 * blockframe.c (generic_func_frame_chain_valid): Only check
5645 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5646 passing FP to PC_IN_CALL_DUMMY.
5647 Fix PR gdb/360.
5648
76860b5f
AC
56492002-06-08 Andrew Cagney <ac131313@redhat.com>
5650
5651 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5652 (register_gdbarch_data): Initialize init_p.
5653 (gdbarch_data): Initialize data pointer using the init function.
5654 (init_gdbarch_data): Delete function.
5655 (gdbarch_update_p): Update.
5656 (initialize_non_multiarch): Update.
5657 (struct gdbarch): Add field initialized_p.
5658 * gdbarch.h, gdbarch.c: Re-generate.
5659
8dda9770
ML
56602002-06-07 Michal Ludvig <mludvig@suse.cz>
5661
5662 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5663 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5664 better do the things actually here.
5665 * x86-64-tdep.c (x86_64_register_name2nr): New.
5666 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5667 (x86_64_gdbarch_init): Respect the above change.
5668 * x86-64-tdep.h (x86_64_register_name2nr)
5669 (x86_64_register_nr2name): Add prototypes.
5670 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5671
3d79a47c
MS
56722002-06-06 Michael Snyder <msnyder@redhat.com>
5673
7bd91a28
MS
5674 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5675 Delete extra braces and re-indent.
5676 (d10v_store_return_value): Char return values
3d79a47c
MS
5677 must be shifted over by one byte in R0.
5678 (d10v_extract_return_value): Delete extra braces, re-indent.
5679
095a4c96
EZ
56802002-06-06 Elena Zannoni <ezannoni@redhat.com>
5681
5682 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5683 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5684 (d10v_integer_to_address): Rewrite.
5685 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5686 the d10v specific functions which take care of converting to the
5687 correct space.
5688
e8a77ca4
EZ
56892002-06-06 Elena Zannoni <ezannoni@redhat.com>
5690
5691 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5692 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5693
4f2e4a4f
AC
56942002-06-02 Andrew Cagney <ac131313@redhat.com>
5695
5696 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5697 includes.
5698 * config/tm-linux.h: Ditto.
5699 * config/alpha/tm-alphalinux.h: Ditto.
5700 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5701 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5702 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5703 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5704 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5705 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5706 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5707 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5708 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5709 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5710 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5711 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5712 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5713 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5714 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5715 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5716 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5717 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5718 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5719 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5720 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5721 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5722 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5723 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5724 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5725 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5726 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5727 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5728 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5729 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5730 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5731 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5732 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5733 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5734 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5735 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5736 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5737
ae2ab2ce
AS
57382002-05-04 Aidan Skinner <aidan@velvet.net>
5739
5740 * ada-exp.tab.c: New file
5741 * ada-exp.y: New file
5742 * ada-lang.c: New file
5743 * ada-lang.h: New file
5744 * ada-lex.c: New file
5745 * ada-lex.l: New file
5746 * ada-tasks.c: New file
5747 * ada-typeprint.c: New file
5748 * ada-valprint.c: New file
5749
0ddd0135
JT
57502002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5751
5752 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5753 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5754
750fbacc
JT
57552002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5756
5757 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5758 insetead of ppc-linux-tdep.o.
5759 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5760 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5761
df94e18a
AC
57622002-06-02 Andrew Cagney <ac131313@redhat.com>
5763
5764 2002-05-07 Christian Groessler <chris@groessler.org>
5765 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5766 bit register contents for little endian hosts.
5767
1a38ab75
AC
57682002-06-01 Andrew Cagney <ac131313@redhat.com>
5769
5770 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5771 any maintainer.
5772
8b1632ac
AC
57732002-06-01 Andrew Cagney <ac131313@redhat.com>
5774
5775 * gdbarch.h: Regenerate.
5776
627054c8
AC
57772002-06-01 Andrew Cagney <ac131313@redhat.com>
5778
5779 * MAINTAINERS: Add everyone to write-after-approval list.
5780
4f460812
AC
57812002-06-01 Andrew Cagney <ac131313@redhat.com>
5782
5783 * stack.c (frame_info): Use frame_register_unwind instead of
5784 saved_regs. Mention when the SP is on the stack or in a register.
5785
5786 * frame.h (frame_register_unwind_ftype): Define. Document.
5787 (struct frame_info): Add field register_unwind and
5788 register_unwind_cache.
5789 (frame_register_unwind): Declare.
5790 (generic_unwind_get_saved_register): Declare.
5791
5792 * frame.c (frame_register_unwind): New function.
5793 (generic_unwind_get_saved_register): New function.
5794
5795 * blockframe.c (generic_call_dummy_register_unwind): New function.
5796 (frame_saved_regs_register_unwind): New function.
5797 (set_unwind_by_pc): New function.
5798 (create_new_frame): New function.
5799 (get_prev_frame): New function.
5800
de888f76
AC
58012002-05-30 Andrew Cagney <ac131313@redhat.com>
5802
5803 * a29k-share/: Delete directory.
5804 * remote-vx29k.c: Delete file.
5805
2f2c3626
JT
58062002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5807
5808 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5809 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5810
9ce5c36a
JT
58112002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5812
5813 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5814 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5815 (sparc64nbsd-nat.o)
5816 (sparcnbsd-nat.o)
5817 (sparcnbsd-tdep.o): New dependency lists.
5818 * NEWS: Note new UltraSPARC NetBSD native configuration.
5819 * configure.host (sparc64-*-netbsd*): New host.
5820 * configure.tgt (sparc-*-netbsdelf*)
5821 (sparc-*-netbsd*): Set gdb_target to nbsd.
5822 (sparc64-*-netbsd*): New target.
5823 * sparc64nbsd-nat.c: New file.
5824 * sparcnbsd-nat.c: New file.
5825 * sparcnbsd-tdep.c: New file.
5826 * sparcnbsd-tdep.h: New file.
5827 * config/sparc/nbsd.mt: New file.
5828 * config/sparc/nbsd64.mh: New file.
5829 * config/sparc/nbsd64.mt: New file.
5830 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5831 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5832 (HOST_IPC): Remove.
5833 * config/sparc/nbsdaout.mt: Remove.
5834 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5835 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5836 (HOST_IPC): Remove.
5837 * config/sparc/nbsdelf.mt: Remove.
5838 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5839 sparc-nat.c compatiblity defines.
5840 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5841 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5842 * config/sparc/tm-nbsd64.h: New file.
5843 * config/sparc/tm-nbsdaout.h: Remove.
5844 * config/sparc/xm-nbsd.h: Remove.
5845
ef3cf062
JT
58462002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5847
5848 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5849 * sparc-tdep.c: Include osabi.h.
5850 (gdbarch_tdep): Add osabi member.
5851 (_initialize_sparc_tdep): Use gdbarch_register.
5852 (sparc_gdbarch_init): Use generic OS ABI framework.
5853 (sparc_dump_tdep): New function.
5854
ee8ff470
KB
58552002-05-30 Kevin Buettner <kevinb@redhat.com>
5856
5857 * corefile.c (do_captured_read_memory_integer): Return non-zero
5858 result.
5859 (safe_read_memory_integer): Copy result of memory read when
5860 status is non-zero. Also, add comments.
5861
7b112f9c
JT
58622002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5863
5864 * Makefile.in (ppc_tdep_h): Define.
5865 (ppc-linux-nat.o)
5866 (ppc-linux-tdep.o)
5867 (rs6000-tdep.o): Use $(ppc_tdep_h).
5868 (ppc-sysv-tdep.o)
5869 (ppcnbsd-nat.o)
5870 (ppcnbsd-tdep.o): New dependency lists.
5871 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5872 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5873 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5874 (ppc_sysv_abi_broken_use_struct_convention)
5875 (ppc_sysv_abi_use_struct_convention)
5876 (ppc_sysv_abi_push_arguments): Move to...
5877 * ppc-sysv-tdep.c: ...here.
5878 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5879 * rs6000-tdep.c (process_note_abi_tag_sections)
5880 (get_elfosabi): Remove.
5881 (rs6000_gdbarch_init): Use generic OS ABI framework.
5882 (rs6000_dump_tdep): New function.
5883 (_initialize_rs6000_tdep): Use gdbarch_register.
5884 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5885 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5886 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5887 of ppc-linux-tdep.o.
5888 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5889 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5890 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5891 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5892 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5893 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5894
480dd42a
JB
58952002-05-29 Jim Blandy <jimb@redhat.com>
5896
5897 * macroscope.c (default_macro_scope): Put `void' in empty argument
5898 list.
5899
4182591f
AC
59002002-05-29 Andrew Cagney <ac131313@redhat.com>
5901
5902 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5903 * arch-utils.c: Include "sim-regno.h".
5904 * gdbarch.sh: Don't include "sim-regno.h".
5905 * gdbarch.h, gdbarch.c: Regenerate.
5906 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5907 here.
5908 * arch-utils.h (legacy_register_sim_regno): To here.
5909 * remote-sim.c (legacy_register_sim_regno): Move function from
5910 here.
5911 * arch-utils.c (legacy_register_sim_regno): To here.
5912
8238d0bf
AC
59132002-05-28 Andrew Cagney <ac131313@redhat.com>
5914
5915 * sim-regno.h: New file.
5916 * Makefile.in (sim_regno_h): Define.
5917 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5918 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5919 (legacy_register_sim_regno): New function.
5920 (one2one_register_sim_regno): New function.
5921 (gdbsim_fetch_register): Rewrite.
5922 (gdbsim_store_register): Only store a register when
5923 REGISTER_SIM_REGNO is valid.
5924 * d10v-tdep.c: Include "sim-regno.h".
5925 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5926 (d10v_ts3_register_sim_regno): Ditto.
5927 * gdbarch.sh: Include "sim-regno.h".
5928 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5929 * gdbarch.h, gdbarch.c: Regenerate.
5930 * arch-utils.h (default_register_sim_regno): Delete declaration.
5931 * arch-utils.c (default_register_sim_regno): Delete function.
5932
485721b1
JT
59332002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5934
5935 * ppcnbsd-nat.c: Rewrite.
5936 * ppcnbsd-tdep.c: New file.
5937 * ppcnbsd-tdep.h: New file.
5938 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5939 solib.o, and solib-svr4.o.
5940 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5941 nbsd-tdep.o, and corelow.o.
5942
697f244d
AC
59432002-05-28 Andrew Cagney <ac131313@redhat.com>
5944
5945 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5946 `tr' and `sed'. Mention that `broken' targets are not expected to
5947 build.
5948
f08caad1 59492002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5950
5951 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5952 Let PC point right after the prologue before looking up symbols.
5953
3139facc
MH
59542002-05-27 Martin M. Hunt <hunt@redhat.com>
5955
5956 * i386-tdep.c (i386_register_virtual_type): Return
5957 builtin_type_vec128i for SSE registers.
5958
5959 * gdbtypes.h (builtin_type_vec128i): Declare.
5960
5961 * gdbtypes.c (build_builtin_type_vec128i): New function.
5962 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5963 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5964 (build_gdbtypes): Initialize new builtin vector types.
5965 (_initialize_gdbtypes): Register new vector types with gdbarch.
5966
6e3ba3b8
JT
59672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5968
5969 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5970 since it has been multi-arch'd.
5971 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5972 Move Alpha and VAX multi-arch news entries to same section
5973 as other multi-arch news.
5974
93d5585d
JT
59752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5976
5977 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5978 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5979 static. Rename some register numbers to put them in ns32k-tdep
5980 private namespace.
5981 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5982 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5983 functions.
5984 (_initialize_ns32k_tdep): Use gdbarch_register.
5985 * ns32k-tdep.h: New file.
5986 * ns32knbsd-tdep.c: New file.
5987 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5988 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5989 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5990 REGISTER_BYTES, REGISTER_BYTE): Remove.
5991 * config/ns32k/tm-ns32k.h: New file.
5992 * config/ns32k/tm-umax.h: Remove.
5993
efb2c70e
JT
59942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5995
5996 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5997 ns32k_store_struct_return, ns32k_extract_return_value,
5998 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5999 functions.
6000 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6001 ns32k_saved_pc_after_call.
6002 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6003 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6004 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6005 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6006 ns32k_extract_struct_value_address.
6007
7bcc927b
JT
60082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6009
6010 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6011 ns32k_fix_call_dummy): New.
6012 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6013 ns32k_call_dummy_words.
6014 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6015 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6016 CALL_DUMMY_NARGS): Remove.
6017 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6018
78f9d765
JT
60192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6020
6021 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6022 ns32k_frame_saved_pc, ns32k_frame_args_address,
6023 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6024 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6025 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6026 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6027 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6028 (BREAKPOINT): Remove..
6029 (FRAME_CHAIN): Define as ns32k_frame_chain.
6030 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6031 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6032 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6033 (FRAME_FIND_SAVED_REGS): Remove.
6034 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6035 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6036 (POP_FRAME): Define as ns32k_pop_frame.
6037
f2c762e0
JT
60382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6039
6040 * ns32k-tdep.c (ns32k_register_byte_32082,
6041 ns32k_register_byte_32382, ns32k_register_raw_size,
6042 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6043 functions.
6044 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6045 ns32k_register_byte_32382.
6046 * config/ns32k/tm-umax.h: Update copyright years.
6047 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6048 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6049 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6050 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6051 (ns32k_get_enter_addr): Fix prototype.
6052
af137673
JT
60532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6054
6055 * ns32k-tdep.c: Update copyright years.
6056 (ns32k_register_name_32082): New function.
6057 (ns32k_register_name_32382): Ditto.
6058 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6059 (REGISTER_NAME): Define as ns32k_register_name_32382.
6060 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6061 (REGISTER_NAME): Define as ns32k_register_name_32082.
6062
a8bc7b56
JB
60632002-05-24 Jim Blandy <jimb@redhat.com>
6064
6065 * dwarf2read.c (free_line_header): Use xfree, not free.
6066
83a45910
JT
60672002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6068
6069 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6070 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6071
0db71247
AC
60722002-05-23 Andrew Cagney <ac131313@redhat.com>
6073
6074 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6075
b9e5e4dd
AC
60762002-05-23 Andrew Cagney <ac131313@redhat.com>
6077
6078 From Ross Alexander at NEC Europe:
6079 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6080
de530e84
MS
60812002-05-23 Michael Snyder <msnyder@redhat.com>
6082
6083 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6084 for input, rather than parse_and_eval_address.
6085
b91b96f4
AC
60862002-05-23 Andrew Cagney <ac131313@redhat.com>
6087
6088 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6089 * Makefile.in (sim_d10v_h): Update definition.
6090
8b279e7a
AC
60912002-05-24 Andrew Cagney <cagney@redhat.com>
6092
6093 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6094 change `2002-05-22 Michael Snyder' below.
6095 (d10v_push_arguments): Ditto.
6096 (d10v_extract_return_value): Ditto.
6097
0a3d0425
JB
60982002-05-23 Jim Blandy <jimb@redhat.com>
6099
6100 * macrotab.c (check_for_redefinition): Don't complain if the new
6101 definition is the same as the previous one. Take more arguments
6102 to allow the comparison.
6103 (macro_define_object, macro_define_function): Pass more arguments
6104 to check_for_redefinition.
6105
78eac43e
MS
61062002-05-22 Michael Snyder <msnyder@redhat.com>
6107
6108 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6109 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6110 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6111 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6112 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6113 Add a temp variable to save a call (and a memory read).
6114 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6115 if possible (so that PC_IN_CALL_DUMMY will work).
6116
9bc1edb8
CV
61172002-05-22 Corinna Vinschen <vinschen@redhat.com>
6118
6119 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6120
005ef3d2
ML
61212002-05-22 Michal Ludvig <mludvig@suse.cz>
6122
6123 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6124 fde->cie_ptr.
6125 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6126 (dwarf2_build_frame_info): Add offset to fde->initial_location
6127 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6128 (execute_stack_op): Change type of 'result' from ULONGEST to
6129 CORE_ADDR.
005ef3d2 6130
fcf4f891
JT
61312002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6132
6133 * config/alpha/tm-nbsd.h: Include solib.h.
6134
cfef91e4
JT
61352002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6136
6137 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6138 assumptions about the host's byte order.
6139
9964235a
JT
61402002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6143 to dependency list.
6144 * alphanbsd-tdep.c: Include solib-svr4.h.
6145 * shnbsd-tdep.c: Ditto.
6146
9eeef8ef
JT
61472002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6148
6149 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6150 nbsd-tdep.h to dependency list.
6151 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6152 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6153 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6154 nbsdaout.mh and nbsdelf.mh consistently.
6155 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6156 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6157 nbsdaout.mt and nbsdelf.mh consistently.
6158 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6159 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6160 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6161 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6162 a.out shared library stuff from here...
6163 * config/nm-nbsdaout.h: ...to here.
6164 * config/tm-nbsd.h: Remove.
6165 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6166 * config/arm/nbsd.mh: Remove.
6167 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6168 nbsd-tdep.o.
6169 * config/arm/nbsdaout.mh: New file.
6170 * config/arm/nbsdelf.mh: New file.
6171 * config/arm/nm-nbsdaout.h: New file.
6172 * config/i386/nbsd.mh: Remove.
6173 * config/i386/nbsd.mt: Remove.
6174 * config/i386/nbsdaout.mh: New file.
6175 * config/i386/nbsdaout.mt: New file.
6176 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6177 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6178 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6179 i386_register_u_addr): Remove.
6180 * config/i386/nm-nbsdaout.h: New file.
6181 * config/i386/nm-nbsdelf.h: Remove.
6182 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6183 (USE_STRUCT_CONVENTION): Remove.
6184 * config/i386/tm-nbsdaout.h: New file.
6185 * config/i386/tm-nbsdelf.h: Remove.
6186 * config/m68k/nbsd.mh: Remove.
6187 * config/m68k/nbsd.mt: Remove.
6188 * config/m68k/nbsdaout.mh: New file.
6189 * config/m68k/nbsdaout.mt: New file.
6190 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6191 * config/m68k/nm-nbsdaout.h: New file.
6192 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6193 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6194 * config/ns32k/nbsd.mh: Remove.
6195 * config/ns32k/nbsd.mt: Remove.
6196 * config/ns32k/nbsdaout.mh: New file.
6197 * config/ns32k/nbsdaout.mt: New file.
6198 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6199 * config/ns32k/nm-nbsdaout.h: New file.
6200 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6201 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6202 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6203 (SVR4_SHARED_LIBS): Remove.
6204 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6205 * config/sparc/nbsd.mh: Remove.
6206 * config/sparc/nbsd.mt: Remove.
6207 * config/sparc/nbsdaout.mh: New file.
6208 * config/sparc/nbsdaout.mt: New file.
6209 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6210 * config/sparc/nbsdelf.mt: New file.
6211 * config/sparc/nm-nbsdaout.h: New file.
6212 * config/sparc/nm-nbsdelf.h: Remove.
6213 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6214 * config/sparc/tm-nbsdaout.h: New file.
6215
257ce470
JT
62162002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6217
6218 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6219 mipsnbsd-tdep.c
6220 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6221
76a6d5fe
JT
62222002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6223
6224 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6225 shnbsd-nat.c.
6226 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6227
45888261
JT
62282002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6229
6230 * NEWS: Note new MIPS NetBSD native configuration.
6231 * configure.host (mips*-*-netbsd*): New host.
6232 * configure.tgt (mips*-*-netbsd*): New target.
6233 * mipsnbsd-nat.c: New file.
6234 * mipsnbsd-tdep.c: New file.
6235 * mipsnbsd-tdep.h: New file.
6236 * config/mips/nbsd.mh: New file.
6237 * config/mips/nbsd.mt: New file.
6238 * config/mips/nm-nbsd.h: New file.
6239 * config/mips/tm-nbsd.h: New file.
6240
70f80edf
JT
62412002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6242
6243 * Makefile.in (SFILES): Add osabi.c.
6244 (COMMON_OBS): Add osabi.o.
6245 (osabi.o): New dependency list.
6246 * osabi.c: New file.
6247 * osabi.h: New file.
6248 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6249
6250 * Makefile.in (alpha_tdep_h): Define and use instead of
6251 alpha-tdep.h.
6252 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6253 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6254 Remove.
6255 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6256 * alpha-tdep.h: Include osabi.h.
6257 (alpha_abi): Remove.
6258 (gdbarch_tdep): Use generic OS ABI framework.
6259 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6260 gdbarch_register_osabi.
6261 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6262 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6263 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6264
6265 * Makefile.in (sh_tdep_h): Add osabi.h.
6266 * sh-tdep.h (sh_osabi): Remove.
6267 (gdbarch_tdep): Use generic OS ABI framework.
6268 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6269 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6270 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6271 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6272
6273 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6274 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6275 gdbarch_register_osabi.
6276 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6277 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6278 (get_elfosabi): Rename to...
6279 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6280 ABI framework support routines.
6281 (arm_gdbarch_init): Use generic OS ABI framework.
6282 (arm_dump_tdep): Likewise.
6283 (_initialize_arm_tdep): Likewise.
6284 * arm-tdep.h: Include osabi.h.
6285 (arm_abi): Remove.
6286 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6287 osabi member.
6288 (arm_gdbarch_register_os_abi): Remove prototype.
6289 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6290 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6291
6292 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6293 * mips-tdep.c: Include osabi.h.
6294 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6295 OS ABI framework.
6296
d194345b
KH
62972002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6298
6299 * h8300-tdep.c: Fix formatting.
6300
70c6b0d1
EZ
63012002-05-20 Elena Zannoni <ezannoni@redhat.com>
6302
6303 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6304 printing vector registers.
6305
165b8e33
AC
63062002-05-19 Andrew Cagney <ac131313@redhat.com>
6307
6308 From Fernando Nasser:
6309 * remote.c (remote_async_open_1): Re-throw the exception when the
6310 connection fails.
6311 (remote_cisco_open): Ditto.
6312 (remote_open_1): Ditto.
6313
36918e70
AC
63142002-05-19 Andrew Cagney <ac131313@redhat.com>
6315
6316 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6317 (remote_start_remote): Add uiout parameter. Pass through to
6318 remote_start_remote_dummy.
6319 (remote_open_1): Use catch_exception instead of catch_errors.
6320 (remote_async_open_1): Ditto.
6321 (remote_cisco_open): Ditto.
6322
ae44c0c4
AC
63232002-05-19 Andrew Cagney <ac131313@redhat.com>
6324
6325 * remote.c (remote_start_remote): Replace PTR with void pointer.
6326 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6327 static.
6328
8efe637d
AC
63292002-05-18 Andrew Cagney <ac131313@redhat.com>
6330
6331 * gdb_indent.sh: Allow the script to be run in the sim directory.
6332
2f1b5984
MK
63332002-05-18 Mark Kettenis <kettenis@gnu.org>
6334
f0f625e2
MK
6335 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6336 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6337
2f1b5984
MK
6338 * corelow.c (core_open): Only call set_gdbarch_from_file if
6339 exec_bfd is NULL.
6340
fc974602
AV
63412002-05-17 Andrey Volkov <avolkov@transas.com>
6342
6343 * h8300-tdep.c: Add support of EXR register
6344 * config/h8300/tm-h8300.h: Ditto.
6345
906709f4
AV
63462002-05-17 Andrey Volkov <avolkov@transas.com>
6347
6348 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6349
6e591d68
AV
63502002-05-17 Andrey Volkov <avolkov@transas.com>
6351
6352 * h8300-tdep.c: Change literal regnums to REGNO.
6353
84f0252a
JB
63542002-05-17 Jim Blandy <jimb@redhat.com>
6355
e0e9281e
JB
6356 * NEWS: Note addition of macro support.
6357
84f0252a
JB
6358 Expand preprocessor macros in C expressions.
6359 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6360 (scan_macro_expansion, scanning_macro_expansion,
6361 finished_macro_expansion): New function declarations.
6362 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6363 variable declarations.
6364 * parser-defs.h (expression_context_pc): New declaration.
6365 * parse.c (expression_context_pc): New variable.
6366 (parse_exp_1): Set expression_context_pc, as well as
6367 expression_context_block.
6368 * c-exp.y (yylex): If we're not already reading the result of a
6369 macro expansion, try to macro-expand the next token. When we're
6370 done scanning a macro expansion, switch back to the mainline text.
6371 Commas and `if's in a macro's expansion don't terminate the input.
6372 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6373 (macro_original_text, macro_expanded_text,
6374 expression_macro_lookup_func, expression_macro_lookup_baton): New
6375 variables.
6376 (scan_macro_expansion, scanning_macro_expansion,
6377 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6378 c_preprocess_and_parse): New functions.
6379 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6380 c_preprocess_and_parse, instead of c_parse.
6381 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6382 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6383
1c509ca8
JR
6384Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6385
6386 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6387 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6388 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6389
2250ee0c
CV
63902002-05-17 Corinna Vinschen <vinschen@redhat.com>
6391
6392 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6393
ab3b8126
JT
63942002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6395
6396 * Makefile.in (sh_tdep_h): Define and use.
6397 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6398 register enum): Move to...
6399 * * sh-tdep.h: ...here.
6400 * sh-tdep.c: Include sh-tdep.h.
6401 * sh3-rom.c: Likewise.
6402 * shnbsd-tdep.c: Likewise.
6403
ed9d4749
MS
64042002-05-16 Michael Snyder <msnyder@redhat.com>
6405
6406 * arm-tdep.c: Spelling fix in comment.
6407
2e276125
JB
64082002-05-16 Jim Blandy <jimb@redhat.com>
6409
6821892e
JB
6410 Add commands for manually expanding macros and showing their
6411 definitions.
6412 * macrocmd.c, macroscope.c, macroscope.h: New files.
6413 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6414 (macroscope_h): New variable.
6415 (HFILES_NO_SRCDIR): Add macroscope.h.
6416 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6417 (macroscope.o, macrocmd.o): New rules.
6418
2e276125
JB
6419 Teach the Dwarf 2 reader to read macro information.
6420 * dwarf2read.c: #include "macrotab.h".
6421 (dwarf_macinfo_buffer): New variable.
6422 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6423 dwarf_macinfo_size.
6424 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6425 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6426 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6427 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6428 dwarf2_macro_spaces_in_definition): New complaints.
6429 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6430 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6431 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6432 the partial symbol table.
6433 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6434 from what's recorded in the partial symbol table.
6435 (read_file_scope): If the compilation unit has a
6436 `DW_AT_macro_info' attribute, read its macro information.
6437 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6438
2f53fe6c
DJ
64392002-05-16 Daniel Jacobowitz <drow@mvista.com>
6440
6441 Fix PR gdb/546
6442 * ser-tcp.c: Don't include <netinet/udp.h>.
6443
2be99286
SC
64442002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6445
6446 * MAINTAINERS: Update my email address.
6447
c9af212b 64482002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6449
6450 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6451 include file of the same name.
6452
bf5f1a52
CV
64532002-05-16 Corinna Vinschen <vinschen@redhat.com>
6454
6455 * configure.tgt: Mark v850 as multi-arched.
6456 * config/v850/tm-v850.h: Remove file.
6457 * config/v850/v850.mt: Eliminate TM_FILE.
6458
435e042a
CV
64592002-05-16 Corinna Vinschen <vinschen@redhat.com>
6460
6461 * v850-tdep.c: Full multi-arch.
6462 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6463 Define GDB_MULTI_ARCH to 2.
6464
9819c6c8
PM
64652002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6466
6467 * p-exp.y (current_type): New static variable.
6468 Carries the type of the expression at the position that is parsed.
6469 (push_current_type, pop_current_type): Two new functions. Used
6470 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6471 (search_field): New static variable. Set to one after parsing a point
6472 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6473 (FIELDNAME): New token. After a point only a token belonging to
6474 current_type type definition is allowed.
6475 (all over token rules): reset and change current_type according
6476 to rules.
6477 (exp '[' rule): insert implicit array index field if
6478 exp is a pascal string type.
6479
3a06899a
CV
64802002-05-16 Corinna Vinschen <vinschen@redhat.com>
6481
6482 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6483 frame info. Use frame_info's saved_regs instead of matching member
6484 in extra_frame_info throughout.
6485 (v850_frame_init_saved_regs): New function.
6486 (v850_init_extra_frame_info): Move most functionality into
6487 v850_frame_init_saved_regs().
6488 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6489 (v850_frame_find_saved_regs): Remove declaration.
6490 (FRAME_FIND_SAVED_REGS): Remove definition.
6491 (v850_frame_init_saved_regs): Add declaration.
6492 (FRAME_INIT_SAVED_REGS): Add definition.
6493
6ed14b0e
CV
64942002-05-16 Corinna Vinschen <vinschen@redhat.com>
6495
6496 * v850-tdep.c: Begin multi-arch'ing v850.
6497 (v850_target_architecture_hook): Remove function.
6498 (v850_gdbarch_init): New function. Add code previously in
6499 v850_target_architecture_hook().
6500 (_initialize_v850_tdep): Don't set target_architecture_hook.
6501 Call register_gdbarch_init() instead.
6502
42725910
DJ
65032002-05-16 Daniel Jacobowitz <drow@mvista.com>
6504
6505 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6506 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6507 (fixup_class_method_type): Likewise.
6508
99d9066e
JB
65092002-05-15 Jim Blandy <jimb@redhat.com>
6510
6511 Add macro structures to GDB's symbol tables. Nobody puts anything
6512 in them yet.
6513 * symtab.h (struct symtab): New member: `macro_table'.
6514 * buildsym.h (pending_macros): New global variable.
6515 * buildsym.c: #include "macrotab.h".
6516 (buildsym_init): Initialize `pending_macros'.
6517 (end_symtab): If we found macro information while reading a CU's
6518 debugging info, do build a symtab structure for it. Make the
6519 symtab point to the macro information, and clear the
6520 `pending_macros' pointer which held it while we were reading the
6521 debug info.
6522 (really_free_pendings): Free any pending macro table.
6523 * objfiles.h (struct objfile): New member: `macro_cache'.
6524 * objfiles.c (allocate_objfile): Set allocate and free functions
6525 for the macro cache's objstack.
6526 (free_objfile): Empty the macro cache's obstack.
6527 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6528 set new allocate and free functions for it.
6529 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6530 free functions for the macro cache's objstack. (Why is this
6531 function building its own objfile?)
6532 * symmisc.c (print_objfile_statistics): Print statistics on the
6533 macro bcache.
6534 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6535
c899585b
RE
65362002-05-15 Richard Earnshaw <rearnsha@arm.com>
6537
6538 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6539 (REGISTER_U_ADDR): Delete definition.
6540 (arm_register_u_addr): Delete declaration.
6541
a6cdd8c5
RE
65422002-05-15 Richard Earnshaw <rearnsha@arm.com>
6543
6544 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6545 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6546
c97dcfc7
AC
65472002-05-14 Andrew Cagney <ac131313@redhat.com>
6548
6549 * regcache.c (register_valid): Revise comments refering to "Not
6550 available" and "unavailable".
6551 * frame.c (frame_register_read): Ditto.
6552 * findvar.c (value_of_register): Ditto.
6553
93021b7d
AC
65542002-05-15 Andrew Cagney <cagney@redhat.com>
6555
6556 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6557 (remote-sim.o): Update dependencies.
6558 (d10v-tdep.o): Specify dependencies.
6559 (sim_d10v_h): Define.
6560
a86bc61c
JB
65612002-05-14 Jim Blandy <jimb@redhat.com>
6562
6563 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6564 * macrotab.c (macro_lookup_inclusion, find_definition,
6565 new_macro_table): Same.
6566
6567 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6568 not `! strcmp ()'. This is a dubious improvement.
6569 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6570
6571 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6572 although it's not necessary, to avoid a warning.
6573
2fdde8f8
DJ
65742002-05-14 Daniel Jacobowitz <drow@mvista.com>
6575
6576 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6577 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6578 TYPE_INSTANCE_FLAGS.
6579 (struct main_type): New.
6580 (struct type): Move most members to struct main_type. Change
6581 cv_type and as_type to new type_chain member. Add instance_flags.
6582 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6583 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6584 (finish_cv_type): Remove prototype.
6585 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6586 Set TYPE_CHAIN.
6587 (alloc_type_instance): New function.
6588 (smash_type): New function.
6589 (make_pointer_type, make_reference_type, make_function_type)
6590 (smash_to_member_type, smash_to_method_type): Call smash_type.
6591 (make_qualified_type): New function.
6592 (make_type_with_address_space): Call make_qualified_type.
6593 (make_cv_type): Likewise.
6594 (finish_cv_type): Remove unnecessary function.
6595 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6596 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6597 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6598 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6599 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6600 * hpread.c (hpread_read_struct_type): Likewise.
6601 * stabsread.c (read_struct_type): Likewise.
6602
843fedf4
EZ
66032002-05-14 Elena Zannoni <ezannoni@redhat.com>
6604
6605 * configure.tgt: Add a catch all sh* target, for cases like
6606 sh[2,3,4]-elf and sh-hms.
6607
05a6c72c
KS
66082002-05-14 Keith Seitz <keiths@redhat.com>
6609
6610 * event-loop.c (create_file_handler): Don't do anything but
6611 update data when we are given a fd which we are already
6612 monitoring.
6613
5d085aaf
ML
66142002-05-14 Michal Ludvig <mludvig@suse.cz>
6615
6616 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6617 (update_context): Use __func__ in warnings.
6618
9db8d71f
DJ
66192002-05-14 Daniel Jacobowitz <drow@mvista.com>
6620
6621 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6622 and tcp_close to net_open and net_close.
6623 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6624 using UDP if requested. Don't try to disable Nagle on UDP
6625 sockets.
6626 * remote.c (remote_serial_open): New function. Warn about UDP.
6627 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6628
5dbc6baa
EZ
66292002-05-13 Elena Zannoni <ezannoni@redhat.com>
6630
6631 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6632
cc3023f7
EZ
66332002-05-13 Elena Zannoni <ezannoni@redhat.com>
6634
6635 * configure.tgt: Remove sh-hms target.
6636 * MAINTAINERS: Don't list sh-hms as a separate target.
6637
ec2bcbe7
JB
66382002-05-13 Jim Blandy <jimb@redhat.com>
6639
6640 Add first preprocessor macro-expansion files.
6641 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6642 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6643 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6644 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6645 (COMMON_OBS): Add macrotab.o, macroexp.o.
6646 (macroexp.o, macrotab.o): New rules.
6647
6d531722
AC
66482002-05-13 Andrew Cagney <ac131313@redhat.com>
6649
6650 * config/m88k/tm-m88k.h: Update copyright.
6651 (m88k_target_write_pc): Declare
6652 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6653 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6654 (SHIFT_INST_REGS): Update definition.
6655 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6656 using old definition of TARGET_WRITE_PC.
6657 * regcache.c (generic_target_write_pc): Delete code handling
6658 NNPC_REGNUM.
6659 * gdbarch.sh (NNPC_REGNUM): Delete.
6660 * gdbarch.h, gdbarch.c: Regenerate.
6661
3e3f2739
RE
66622002-05-13 Richard Earnshaw <rearnsha@arm.com>
6663
6664 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6665 builtin reg number.
6666
0004e5a2
DJ
66672002-05-13 Daniel Jacobowitz <drow@mvista.com>
6668
6669 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6670 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6671 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6672 access macros.
6673 * c-typeprint.c (cp_type_print_method_args): Likewise.
6674 (c_type_print_args): Likewise.
6675 * d10v-tdep.c (d10v_push_arguments): Likewise.
6676 (d10v_extract_return_value): Likewise.
6677 * expprint.c (print_subexp): Likewise.
6678 * gdbtypes.c (lookup_primitive_typename): Likewise.
6679 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6680 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6681 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6682 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6683 (TYPE_VECTOR): Likewise.
6684 * hpread.c (hpread_read_struct_type)
6685 (fix_static_member_physnames, fixup_class_method_type)
6686 (hpread_type_lookup): Likewise.
6687 * mdebugread.c (parse_symbol, parse_type): Likewise.
6688 * p-lang.c (is_pascal_string_type): Likewise.
6689 * valops.c (hand_function_call): Likewise.
6690 * x86-64-tdep.c (classify_argument): Likewise.
6691
6692 * hpread.c (hpread_read_function_type)
6693 (hpread_read_doc_function_type): Call replace_type.
6694 * dstread.c (create_new_type): Delete.
6695 (decode_dst_structure, process_dst_function): Call alloc_type.
6696 Use type access macros.
6697
dff95cc7
MK
66982002-05-12 Mark Kettenis <kettenis@gnu.org>
6699
6700 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6701 the're not supported by the current architecture.
6702 (i387_fill_fxsave): Likewise.
6703
bbcd32ad
FF
67042002-05-12 Fred Fish <fnf@redhat.com>
6705
6706 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6707 sect_index_xxx members to index the first slot in section_offsets
6708 if all of the section_offsets are zero.
6709
89cf4787
MK
67102002-05-12 Mark Kettenis <kettenis@gnu.org>
6711
6712 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6713 checked in with last change.
6714
1f77ffc5
MK
67152002-05-12 Mark Kettenis <kettenis@gnu.org>
6716
6717 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6718 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6719 config.sub.
6720
89b8b4a9
DJ
67212002-05-12 Daniel Jacobowitz <drow@mvista.com>
6722
6723 * Makefile.in: Update dependencies.
6724
14a5e767
AC
67252002-05-11 Andrew Cagney <ac131313@redhat.com>
6726
6727 * language.c (local_hex_string_custom): Simplify. Do not depend
6728 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6729
6730 * memattr.c (mem_info_command): Replace calls to
6731 longest_local_hex_string and longest_local_hex_string_custom.
6732 * buildsym.c (make_blockvector): Ditto.
6733 * solib.c (info_sharedlibrary_command): Ditto.
6734 * tracepoint.c (tracepoints_info): Ditto.
6735 * symtab.c (print_msymbol_info): Ditto.
6736
6737 * language.c (local_hex_string): Delete.
6738 (local_hex_string_custom): Delete.
6739 (longest_local_hex_string): Rename to local_hex_string.
6740 (longest_local_hex_string_custom): Rename to
6741 local_hex_string_custom.
6742 * language.h (local_hex_string): Change parameter type to LONGEST.
6743 (local_hex_string_custom): Ditto.
6744 (longest_local_hex_string): Delete declaration.
6745 (longest_local_hex_string_custom): Ditto.
6746
6747 * solib.c: Update copyright.
6748 * memattr.c: Update copyright.
6749
13d01224
AC
67502002-05-11 Andrew Cagney <ac131313@redhat.com>
6751
6752 * arch-utils.h (legacy_register_to_value): Declare.
6753 (legacy_value_to_register): Declare.
6754 (legacy_convert_register_p): Declare.
6755 * arch-utils.c (legacy_register_to_value): New function.
6756 (legacy_value_to_register): New function.
6757 (legacy_convert_register_p): New function.
6758
6759 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6760 (VALUE_TO_REGISTER): Define.
6761 (CONVERT_REGISTER_P): Define.
6762 * gdbarch.h, gdbarch.c: Regenerate.
6763
6764 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6765 VALUE_TO_REGISTER.
6766 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6767 CONVERT_REGISTER_P.
6768
4a1970e4
DJ
67692005-05-11 Daniel Jacobowitz <drow@mvista.com>
6770 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6771
6772 * Makefile.in: Update dependencies for valops.c.
6773 * valops.c: Include "gdb_assert.h".
6774 (typecmp): Skip THIS parameter to methods.
6775 (find_method_list): Remove static_memfuncp argument,
6776 update callers. Check for stub methods.
6777 (find_value_oload_method_list): Don't set *static_memfuncp.
6778 (find_overload_match): Don't check for stub methods. Assert
6779 that methods are not stubbed. Handle static methods.
6780 (value_find_oload_method_list): Remove static_memfuncp argument.
6781 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6782 to the argument list for static stub methods.
6783 * value.h (value_find_oload_method_list): Update prototype.
6784
b2e75d78
AC
67852002-05-11 Andrew Cagney <ac131313@redhat.com>
6786
6787 * arch-utils.h (generic_register_size): Declare.
6788 (generic_register_raw_size, generic_register_virtual_size): Delete
6789 declarations.
6790 * arch-utils.c (generic_register_raw_size): Delete.
6791 (generic_register_size): New function.
6792 (generic_register_virtual_size): Delete.
6793
6794 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6795 default generic_register_size.
6796 * gdbarch.h, gdbarch.c: Re-generate.
6797
6798 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6799 register_virtual_size.
6800 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6801 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6802
451fbdda
AC
68032002-05-11 Andrew Cagney <ac131313@redhat.com>
6804
6805 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6806 * gdbarch.h, gdbarch.c: Regenerate.
6807 * gnu-v3-abi.c: Update copyright.
6808 (vtable_address_point_offset): Update.
6809 (gnuv3_rtti_type): Update.
6810 (gnuv3_baseclass_offset): Update.
6811 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6812 (init_fetch_link_map_offsets): Update.
6813 * remote.c (get_remote_state): Update.
6814
6d2f5cea
DJ
68152002-05-11 Daniel Jacobowitz <drow@mvista.com>
6816
6817 * TODO: Remove value_headof/value_from_vtable_info comment.
6818 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6819 * values.c (value_headof, value_from_vtable_info): Delete.
6820 * value.h (value_from_vtable_info): Delete prototype.
6821
d2324da4
AC
68222002-05-11 Andrew Cagney <ac131313@redhat.com>
6823
6824 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6825 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6826 $(gdb_regex_h).
6827 (gdb_assert_h): Define.
6828 (gdb_wait_h): Define.
6829 (gdb_regex_h): Define.
6830
5c717440
DJ
68312002-05-11 Daniel Jacobowitz <drow@mvista.com>
6832
6833 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6834 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6835
6c7861b3
JT
68362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6837
6838 * nbsd-tdep.c: Fix comment.
6839
ea5bc2a6
JT
68402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6841
6842 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6843 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6844 (nbsd-tdep.o): New dependency list.
6845 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6846 nbsd-tdep.h.
6847 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6848 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6849 * nbsd-tdep.c: New file.
6850 * nbsd-tdep.h: New file.
6851 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6852 nbsd-tdep.h.
6853 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6854 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6855 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6856 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6857
b28da865
JT
68582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6859
6860 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6861 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6862 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6863 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6864 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6865 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6866
4b8ff1fa
JT
68672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6868
6869 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6870 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6871 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6872 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6873 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6874 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6875 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6876
dfe6eb1f
JT
68772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6878
6879 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6880 fetch_elfcore_registers to...
6881 * i386nbsd-tdep.c: ...here.
6882 (i386nbsd_use_struct_convention): Rename to...
6883 (i386nbsd_aout_use_struct_convention): ...this.
6884 (i386nbsd_supply_reg): New function.
6885 (i386nbsd_fill_reg): New function.
6886 (fetch_core_registers): Use i386nbsd_supply_reg.
6887 (fetch_elfcore_registers): Likewise.
6888 (_initialize_i386nbsd_tdep): New function.
6889 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6890 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6891 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6892 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6893 (i386nbsd_aout_use_struct_convention): ...this.
6894
20cb8cda
JT
68952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6896
6897 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6898 (store_inferior_registers): Use shnbsd_fill_reg.
6899 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6900 sh_nbsd_supply_register): Collapse into...
6901 (shnbsd_supply_reg): ...this.
6902 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6903 (shnbsd_fill_reg): ...this.
6904 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6905 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6906 (fetch_core_registers): Use shnbsd_supply_reg.
6907 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6908 (sh_nbsd_core_fns): Rename to...
6909 (shnbsd_core_fns): ...this.
6910 (sh_nbsd_elfcore_fns): Rename to...
6911 (shnbsd_elfcore_fns): ...this.
6912 (sh_nbsd_init_abi): Rename to...
6913 (shnbsd_init_abi): ...this.
6914 (_initialize_sh_nbsd_tdep): Rename to...
6915 (_initialize_shnbsd_tdep): ...this.
6916 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6917 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6918 sh_nbsd_fill_register): Remove prototypes.
6919 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6920
e750d25e
JT
69212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6922
6923 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6924 (i387-nat.o): Delete dependency list.
6925 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6926 (x86-64-linux-nat.o): Likewise.
6927 * i387-nat.c: Delete file, moving contents to...
6928 * i387-tdep.c: ...here.
6929 * i387-nat.h: Rename...
6930 * i387-tdep.h: ...to this.
6931 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6932 * i386-linux-nat.c: Likewise.
6933 * i386bsd-nat.c: Likewise.
6934 * i386gnu-nat.c: Likewise.
6935 * i386nbsd-nat.c: Likewise.
6936 * i386v4-nat.c: Likewise.
6937 * x86-64-linux-nat.c: Likewise.
6938 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6939 * config/i386/go32.mh (NATDEPFILES): Likewise.
6940 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6941 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6942 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6943 * config/i386/linux.mh (NATDEPFILES): Likewise.
6944 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6945 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6946 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6947 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6948
1aee598a
JT
69492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6950
6951 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6952 (alphanbsd-nat.o): Remove dependency list.
6953 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6954 * alphanbsd-nat.c: Delete. Contents moved to...
6955 * alphanbsd-tdep.c: ...here.
6956 (_initialize_alphanbsd_tdep): Register core functions.
6957 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6958
12bcb0fe
JT
69592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6960
6961 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6962 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6963 (alphanbsd-nat.o): Likewise.
6964 (alphabsd-tdep.o): New dependency list.
6965 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6966 (fill_gregset): Use alphabsd_fill_reg.
6967 (supply_fpregset): Use alphabsd_supply_fpreg.
6968 (fill_fpregset): Use alphabsd_fill_fpreg.
6969 (fetch_inferior_registers): Use struct reg and struct fpreg
6970 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6971 and alphabsd_supply_fpreg.
6972 (store_inferior_registers): Use struct reg and struct fpreg
6973 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6974 and alphabsd_fill_fpreg.
6975 * alphabsd-tdep.c: New file.
6976 * alphabsd-tdep.h: New file.
6977 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6978 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6979 alphabsd_supply_fpreg.
6980 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6981 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6982
361d1df0
EC
69832002-05-11 Eric Christopher <echristo@redhat.com>
6984
6985 * mips-tdep.c (mips_double_register_type): Fix thinko.
6986 (mips_single_register_type): Ditto.
6987 * MAINTAINERS: Add self.
6988
92dd7cee
MK
69892002-05-11 Mark Kettenis <kettenis@gnu.org>
6990
6991 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6992 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6993 right thing on architectures with different endianness and/or
6994 integer sizes.
6995
e27da16d
JT
69962002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6997
6998 From Christian Limpach <chris@Pin.LU>
6999 * configure.in: Change sed expression which comments out
7000 NATDEPFILES to also comment out continuation lines.
7001 * configure: Regenerate.
7002
ddde02bd
EZ
70032002-05-10 Elena Zannoni <ezannoni@redhat.com>
7004
7005 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7006 big patch.
7007
1c922164
EZ
70082002-05-10 Elena Zannoni <ezannoni@redhat.com>
7009
7010 * sh-tdep.c: Include correct file.
7011
283150cd
EZ
70122002-05-10 Elena Zannoni <ezannoni@redhat.com>
7013
7014 New support for sh64-elf (sh5) target.
7015
7016 * configure.tgt: For sh64-elf target, default to sh-elf.
7017
7018 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7019 (struct gdbarch_tdep): Add new fields for new registers and ABI
7020 info.
361d1df0 7021
283150cd
EZ
7022 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7023 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7024 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7025 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7026 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7027 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7028 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7029 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7030 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7031 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7032 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7033 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7034 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7035 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7036 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7037 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7038 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7039 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7040 sign_extend, sh64_nofp_frame_init_saved_regs,
7041 sh64_init_extra_frame_info, sh64_get_saved_register,
7042 sh64_extract_struct_value_address, sh64_pop_frame,
7043 sh64_push_arguments, sh64_extract_return_value,
7044 sh64_store_return_value, sh64_show_media_regs,
7045 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7046 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7047 sh_sh64_register_virtual_type,
7048 sh_sh64_register_convert_to_virtual,
7049 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7050 sh64_register_read, sh64_pseudo_register_write,
7051 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7052 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7053 sh64_do_pseudo_register, sh_compact_do_registers_info,
7054 sh64_do_registers_info, sh_gdbarch_init): New functions.
7055
3117ed25
EZ
70562002-05-10 Elena Zannoni <ezannoni@redhat.com>
7057
7058 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7059
2654e6d4
DJ
70602002-05-10 Daniel Jacobowitz <drow@mvista.com>
7061
7062 * linespec.c (decode_line_1): Check for a double quote after
7063 a filename correctly.
7064
9ab3e532
JB
70652002-05-10 Jim Blandy <jimb@redhat.com>
7066
7067 Properly track the size of the current objfile's .debug_line section.
7068 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7069 (DWARF_LINE_SIZE): New macro.
7070 (dwarf2_build_psymtabs_hard): Record the line section's size in
7071 the partial symbol table.
7072 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7073 symbol table.
7074
126fa72d
PS
70752002-05-10 Petr Sorfa <petrs@caldera.com>
7076
7077 * ia64-tdep.c: Handle breakpoints on L instruction type
7078 in MLX instruction bundle by moving the breakpoint to
7079 the third slot (X instruction type) as L holds only data.
7080
1f077a3e
KB
70812002-05-10 Kevin Buettner <kevinb@redhat.com>
7082
7083 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7084 (process_one_symbol): Complain about discarding local symbols
7085 due to a misplaced N_LBRAC entry.
7086
8120c9d5 70872002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7088
7089 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7090 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7091 decrease the depth we are at, in the case of templates.
361d1df0 7092
67b2c998
DJ
70932002-05-09 Daniel Jacobowitz <drow@mvista.com>
7094
7095 * mips-tdep.c (mips_float_register_type): New function.
7096 (mips_double_register_type): New function.
7097 (mips_print_register): Use them.
7098 (do_fp_register_row): Likewise.
7099
fd326606
DJ
71002002-05-09 Daniel Jacobowitz <drow@mvista.com>
7101
6609d9af 7102 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7103 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7104 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7105
bef35864
MS
71062002-05-09 Michael Snyder <msnyder@redhat.com>
7107
7108 * remote-rdp.c (remote_rdp_can_run): Remove.
7109
c55a3f73
TT
71102002-05-09 Tom Tromey <tromey@redhat.com>
7111
7112 * jv-valprint.c (java_val_print): Handle `char' as a special case
7113 of TYPE_CODE_INT.
7114
b8d5e71d
MS
71152002-05-09 Michael Snyder <msnyder@redhat.com>
7116
7117 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7118 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7119 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7120 str r(0123),[sp,#nn].
361d1df0 7121 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7122 order-independent by placing it in a loop.
7123
e2cd42dd
MS
71242002-05-06 Michael Snyder <msnyder@redhat.com>
7125
7126 * stabsread.c (read_type): Add recognition for new attribute:
7127 "@V;" means that an array type is actually a vector.
7128 This is analogous to the vector flag that's been added to dwarf2.
7129
3ce1502b
MK
71302002-05-09 Mark Kettenis <kettenis@gnu.org>
7131
7132 * i386-tdep.h (i386_abi): New enum.
7133 (struct gdbarch_tdep): Replace os_ident member with abi.
7134 (i386_gdbarch_register_os_abi): New prototype.
7135 * i386-tdep.c (i386_abi_names): New array.
7136 (process_note_abi_tag_sections): Removed.
7137 (process_note_sections): New function.
7138 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7139 (struct i386_abi_handler): New struct.
7140 (i386_abi_handler_list): New variable.
7141 (i386_gdbarch_register_os_abi): New function.
7142 (i386_gdbarch_init): Adapt for the changes given above.
7143
084c156a
DJ
71442002-05-08 Daniel Jacobowitz <drow@mvista.com>
7145
7146 * gregset.h: Say "GNU/Linux".
7147
6599f021
EZ
71482002-05-08 Elena Zannoni <ezannoni@redhat.com>
7149
7150 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7151 (build_gdbtypes): Build builtin_type_v2_float.
7152 (_initialize_gdbtypes): Register new builtin type.
7153
40af4b0c
AC
71542002-05-08 Andrew Cagney <ac131313@redhat.com>
7155
7156 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7157 (clear_gdbarch_swap): New function.
7158 (initialize_non_multiarch): Call.
7159 (gdbarch_update_p): Before calling init(), swap out and clear the
7160 existing architecture.
7161 * gdbarch.c: Regenerate.
7162
4fe84f46
JT
71632002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7164
7165 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7166 alphanbsd-tdep.c.
7167
4015edd1
JT
71682002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7169
7170 * sh-nbsd-nat.c: Rename to...
7171 * shnbsd-nat.c: ...this.
7172 * sh-nbsd-tdep.c: Rename to...
7173 * shnbsd-tdep.c: ...this.
7174 * sh-nbsd-tdep.h: Rename to...
7175 * shnbsd-tdep.h: ...this.
7176 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7177 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7178
0e2bd219
RE
71792002-05-08 Richard Earnshaw <rearnsha@arm.com>
7180
7181 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7182 concatenation for command help messages.
7183
13a38d45
JT
71842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7185
7186 * NEWS: Note new sh*-*-netbsdelf* configuration.
7187 * configure.host: Set gdb_host_cpu to sh for all sh*.
7188 (sh*-*-netbsdelf*): New host.
7189 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7190 (sh*-*-netbsdelf*): New target.
7191 * sh-nbsd-nat.c: New file.
7192 * sh-nbsd-tdep.c: New file.
7193 * sh-nbsd-tdep.h: New file.
7194 * config/sh/nbsd.mh: New file.
7195 * config/sh/nbsd.mt: New file.
7196 * config/sh/nm-nbsd.h: New file.
7197 * config/sh/tm-nbsd.h: New file.
7198
d658f924
JT
71992002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7200
7201 * sh-tdep.c (sh_osabi_names): Declare.
7202 (process_note_abi_tag_sections): New function.
7203 (get_elfosabi): Ditto.
7204 (sh_gdbarch_register_os_abi): Ditto.
7205 (sh_dump_tdep): Ditto.
7206 _initialize_sh_tdep): Use gdbarch_register to register
7207 sh_gdbarch_init and sh_dump_tdep.
7208 * config/sh/tm-sh.h (sh_osabi): Declare.
7209 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7210
848cfffb
AC
72112002-05-07 Andrew Cagney <ac131313@redhat.com>
7212
7213 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7214 (thumb_scan_prologue): Ditto.
7215 (arm_find_callers_reg): Ditto.
7216 (arm_frame_chain): Ditto.
7217 (arm_init_extra_frame_info): Ditto.
7218 (arm_frame_saved_pc): Ditto.
7219 (arm_pop_frame): Ditto.
7220 (arm_push_return_address): New function.
7221 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7222 call_dummy_location, call_dummy_breakpoint_offset_p,
7223 call_dummy_breakpoint_offset, call_dummy_p,
7224 call_dummy_stack_adjust_p, call_dummy_words,
7225 sizeof_call_dummy_words, call_dummy_start_offset,
7226 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7227 call_dummy_address, push_return_address and push_dummy_frame for
7228 generic dummy frames.
7229
e7d717c0
JT
72302002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7231
7232 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7233 size computation for alloca.
7234 (sh_fp_frame_init_saved_regs): Likewise.
7235
7bbcf283
RE
72362002-05-07 Richard Earnshaw <rearnsha@arm.com>
7237
7238 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7239 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7240 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7241 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7242 * remote-rdp.c (remote_rdp_fetch_register): Use
7243 ARM_MAX_REGISTER_RAW_SIZE.
7244 (remote_rdp_store_register): Likewise.
7245
4657573b
ML
72462002-05-07 Michal Ludvig <mludvig@suse.cz>
7247
361d1df0 7248 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7249 added default labels to switch {} statements.
7250 * x86-64-tdep.c: Ditto.
7251 * x86-64-linux-nat.c: Ditto.
7252
010f3b2f
JT
72532002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7254
7255 * solib.h: Protect against multiple inclusion.
7256
debd256d
JB
72572002-05-06 Jim Blandy <jimb@redhat.com>
7258
9ab3e532
JB
7259 Add first preprocessor macro-expansion files.
7260 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7261 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7262 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7263 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7264 (COMMON_OBS): Add macrotab.o, macroexp.o.
7265 (macroexp.o, macrotab.o): New rules.
7266
debd256d
JB
7267 Separate the job of reading the line number info statement program
7268 header (...expialidocious) out into its own function.
7269 * dwarf2read.c (struct line_head, struct filenames, struct
7270 directories): Replace with...
7271 (struct line_header): New structure, containing the full
7272 contents of the statement program header, including the
7273 include directory and file name tables.
7274 (read_file_scope): If we have line number info, instead of just
7275 calling dwarf_decode_lines to do all the work, call
7276 dwarf_decode_line_header first to get a `struct line_header'
7277 containing the data in the statement program header, and then
7278 pass that to dwarf_decode_lines, which will pick up where that
7279 left off. Be sure to clean up the `struct line_header' object.
7280 (dwarf_decode_line_header, free_line_header, add_include_dir,
7281 add_file_name): New functions.
7282 (dwarf_decode_lines): Move all the code to read the statement
7283 program header into dwarf_decode_line_header. Take the line
7284 header it built as the first argument, instead of the offset to
7285 the compilation unit's line number info. Use the new `struct
7286 line_header' type instead of the old structures. No need to do
7287 cleanups here now, since we don't allocate anything.
7288 (dwarf2_statement_list_fits_in_line_number_section,
7289 dwarf2_line_header_too_long): New complaints.
7290
ac3aafc7
EZ
72912002-05-06 Elena Zannoni <ezannoni@redhat.com>
7292
7293 * gdbtypes.c (init_vector_type): New function.
7294 (build_builtin_type_vec128): Simplify the representation of SIMD
7295 registers.
7296 (build_gdbtypes): Initialize new builtin vector types.
7297 (_initialize_gdbtypes): Register new vector types with gdbarch.
7298 (builtin_type_v4_float, builtin_type_v4_int32,
7299 builtin_type_v8_int16, builtin_type_v16_int8,
7300 builtin_type_v2_int32, builtin_type_v4_int16,
7301 builtin_type_v8_int8): New (renamed) SIMD types.
7302
13e49980
MK
73032002-05-06 Mark Kettenis <kettenis@gnu.org>
7304
7305 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7306 (i387_fill_fxsave): Likewise.
7307
997b20b8
AO
73082002-05-05 Alexandre Oliva <aoliva@redhat.com>
7309
7310 * alpha-tdep.c (alpha_extract_return_value): Don't use
7311 non-constant array size in prototype.
7312
535c96ce
AC
73132002-05-04 Andrew Cagney <ac131313@redhat.com>
7314
7315 From Brian Taylor <briant at model dot com>:
7316 * ui-out.c (ui_out_field_core_addr): Use the function
7317 longest_local_hex_string_custom'to format addresses > 32 bits
7318 wide.
7319
7320 * ui-out.c (ui_out_field_core_addr): Update comment.
7321
bedfa57b
AC
73222002-05-04 Andrew Cagney <ac131313@redhat.com>
7323
7324 * stack.c (select_and_print_frame): Make static. Delete the
7325 parameter `level'.
7326 (func_command): Update call.
7327 (select_frame_command): Delete code computing the frame level.
7328 * frame.h (select_and_print_frame): Delete declaration.
7329
f621c63e
AC
73302002-05-04 Andrew Cagney <ac131313@redhat.com>
7331
7332 * sparc-tdep.c (sparc_get_saved_register): Comment why
7333 get_prev_frame call is safe.
7334
0f7d239c
AC
73352002-05-04 Andrew Cagney <ac131313@redhat.com>
7336
7337 * frame.h (select_frame): Delete level parameter.
7338 * stack.c (select_frame): Update. Use frame_relative_level to
7339 obtain the frame's level.
7340 (select_and_print_frame): Update call.
7341 (select_frame_command): Ditto.
7342 (up_silently_base): Ditto.
7343 (down_silently_base): Ditto.
7344 * ocd.c (ocd_start_remote): Ditto.
7345 * remote-rdp.c (remote_rdp_open): Ditto.
7346 * remote-mips.c (mips_initialize): Ditto.
7347 (common_open): Ditto.
7348 * remote-e7000.c (e7000_start_remote): Ditto.
7349 * m3-nat.c (select_thread): Ditto.
7350 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7351 (child_get_current_exception_event): Ditto.
7352 * varobj.c (varobj_create): Ditto.
7353 (varobj_update): Ditto.
7354 (c_value_of_root): Ditto.
7355 * tracepoint.c (finish_tfind_command): Ditto.
7356 * corelow.c (core_open): Ditto.
7357 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7358 * thread.c (info_threads_command): Ditto.
7359 (switch_to_thread): Ditto.
7360 * infrun.c (normal_stop): Ditto.
7361 (restore_selected_frame): Ditto.
7362 (restore_inferior_status): Ditto.
7363 * breakpoint.c (insert_breakpoints): Ditto.
7364 (watchpoint_check): Ditto.
7365 (bpstat_stop_status): Ditto.
7366 (do_enable_breakpoint): Ditto.
7367 * blockframe.c (flush_cached_frames): Ditto.
7368 (reinit_frame_cache): Ditto.
7369
71d6c7b1
AC
73702002-05-04 Andrew Cagney <ac131313@redhat.com>
7371
7372 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7373 maintainer.
7374
cda6c68a
JB
73752002-05-04 Jim Blandy <jimb@redhat.com>
7376
7377 * gdbtypes.c (replace_type): Doc fix.
7378
5c1c87f0
AC
73792002-05-04 Andrew Cagney <ac131313@redhat.com>
7380
7381 * valprint.c (strcat_longest): Delete commented out function.
7382 Update copyright.
7383
cd9bfe15
AC
73842002-05-04 Andrew Cagney <ac131313@redhat.com>
7385
7386 * MAINTAINERS: Mark a29k as deleted.
7387 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7388 Move new configurations to the top.
7389 * configure.tgt: Remove a29k.
7390 * config/a29k/tm-vx29k.h: Delete.
7391 * config/a29k/vx29k.mt: Delete.
7392 * config/a29k/tm-a29k.h: Delete.
7393 * config/a29k/a29k-udi.mt: Delete.
7394 * config/a29k/a29k.mt: Delete.
7395 * a29k-tdep.c: Delete.
7396 * remote-udi.c: Delete.
7397 * remote-mm.c: Delete.
7398 * remote-eb.c: Delete.
7399 * remote-adapt.c: Delete.
7400 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7401 * config/s390/s390x.mt: Ditto.
7402 * config/s390/s390.mt: Ditto.
7403 * config/sparc/sparclynx.mh: Ditto.
7404 * config/sparc/linux.mh: Ditto.
7405 * config/pa/hppaosf.mh: Ditto.
7406 * config/pa/hppabsd.mh: Ditto.
7407 * config/ns32k/nbsd.mt: Ditto.
7408 * config/mips/vr5000.mt: Ditto.
7409 * config/m68k/sun3os4.mh: Ditto.
7410 * config/m68k/nbsd.mt: Ditto.
7411 * config/m68k/m68klynx.mh: Ditto.
7412 * config/m32r/m32r.mt: Ditto.
7413 * config/i386/x86-64linux.mt: Ditto.
7414 * config/i386/nbsdelf.mt: Ditto.
7415 * config/i386/nbsd.mt: Ditto.
7416 * config/i386/i386lynx.mh: Ditto.
7417
bf0c5130
AC
74182002-05-04 Andrew Cagney <ac131313@redhat.com>
7419
7420 * target.c (debug_print_register): New function. Handle oversize
7421 registers.
7422 (debug_to_fetch_registers): Call.
7423 (debug_to_store_registers): Call.
7424
2ae1c2d2
JB
74252002-05-03 Jim Blandy <jimb@redhat.com>
7426
13a393b0
JB
7427 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7428 (read_type): Doc fix.
7429 * gdbtypes.c (replace_type): Doc fix.
7430
2ae1c2d2
JB
7431 * stabsread.c (multiply_defined_struct): New complaint.
7432 (read_struct_type): If the type we were passed isn't empty, or
7433 incomplete, don't read the new struct type into it; complain,
7434 and return the original type unchanged. Take a new `type_code'
7435 argument, which is the type code for the new type.
7436 (read_type): Rather than storing the type's type code here, pass
7437 it as an argument to read_struct_type, and let that take care of
7438 storing it. That way, we don't overwrite the original type code,
7439 so read_struct_type can use it to decide whether we're overwriting
7440 something we shouldn't.
7441 (complain_about_struct_wipeout): New function.
7442
8de9bdc4
AC
74432002-05-03 Andrew Cagney <ac131313@redhat.com>
7444
7445 * gdbarch.sh: Assert that gdbarch is non-NULL.
7446 * gdbarch.c: Regenerate.
7447
f773fdbb
JM
74482002-05-03 Jason Merrill <jason@redhat.com>
7449
7450 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7451 and return NULL.
7452
0e04a514
ML
74532002-05-03 Michal Ludvig <mludvig@suse.cz>
7454
7455 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7456 (x86_64_dwarf2gdb_regno_map_length),
7457 (x86_64_dwarf2_reg_to_regnum): Added.
7458 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7459 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7460 (_initialize_x86_64_tdep): Synced with the change above.
7461 (x86_64_skip_prologue): Reformulated message.
7462
065432a8
PM
74632002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7464
7465 * f-exp.y: Also use new prev_lexptr variable
7466 to improve error reporting. Based on Michael Snyder
7467 2002-04-24 dated patch to c-exp.y.
7468 * jv-exp.y: Likewise.
7469 * m2-exp.y: Likewise.
7470
a3162708
EZ
74712002-05-02 Elena Zannoni <ezannoni@redhat.com>
7472
7473 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7474 we are dealing with vectors.
7475
03620c38
PM
74762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7477
7478 * config/m68k/tm-nbsd.h: Obvious fix,
7479 correct machine name.
7480
6604db2e
PM
74812002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7482
7483 * p-typeprint.c (pascal_type_print_base): Add support
7484 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7485
0906b739
PM
74862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7487
7488 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7489 for fondamental pascal 'char' type.
7490
e2625b33
PM
74912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7492
7493 * p-lang.h (is_pascal_string_type): Declaration changed,
7494 new sixth argument of type char ** added.
361d1df0 7495 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7496 changed. Args length_pos, length_size, string_pos, char_size
7497 can now be NULL. New argument arrayname set to the field
7498 name of the char array. Return value set to char array
7499 field index plus one.
361d1df0 7500 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7501 is_pascal_string_type function.
7502
cf17c188
AC
75032002-05-02 Andrew Cagney <cagney@redhat.com>
7504
7505 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7506 <cagney@redhat.com> change.
7507 * gdbarch.c: Regenerate.
7508
52bca491
AC
75092002-05-02 Andrew Cagney <cagney@redhat.com>
7510
7511 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7512 before probing for a new one. Detect errorenous gdbarch_init
7513 functions.
7514 * gdbarch.c: Regenerate.
7515
d5e72505
AC
75162002-05-01 Andrew Cagney <cagney@redhat.com>
7517
7518 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7519 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7520 * config/v850/tm-v850.h: Ditto. Update copyright.
7521
af566d9f
AC
75222002-04-30 Andrew Cagney <ac131313@redhat.com>
7523
7524 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7525 current_gdbarch.
7526
880d85fa
MS
75272002-04-30 Michael Snyder <msnyder@redhat.com>
7528
94c30b78
MS
7529 * arm-tdep.c: Whitespace clean-ups.
7530 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7531 should have been removed as part of 4/24 change.
7532
6f5987a6
KB
75332002-04-30 Kevin Buettner <kevinb@redhat.com>
7534
7535 * rs6000-tdep.c: Added comment describing how fpscr register
7536 numbers were chosen.
7537
1a113c93
MS
75382002-04-30 Michael Snyder <msnyder@redhat.com>
7539
7540 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7541
9a6f53fe
EZ
75422002-04-29 Elena Zannoni <ezannoni@redhat.com>
7543
7544 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7545 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7546 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7547
11ed25ac
KB
75482002-04-29 Kevin Buettner <kevinb@redhat.com>
7549
7550 From Louis Hamilton <hamilton@redhat.com>:
7551 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7552 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7553 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7554 not bfd-private xcoff data, to determine wordsize.
7555 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7556
ae232405
AC
75572002-04-29 Andrew Cagney <ac131313@redhat.com>
7558
7559 GDB 5.2 released from 5.2 branch.
7560
91fd20f7
ML
75612002-04-29 Michal Ludvig <mludvig@suse.cz>
7562
7563 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7564 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7565 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7566
2dc5091b
EZ
75672002-04-29 Elena Zannoni <ezannoni@redhat.com>
7568
7569 * rs6000-tdep.c (rs6000_extract_return_value,
7570 rs6000_store_return_value): Handle returning vectors.
7571 (rs6000_gdbarch_init): Use
7572 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7573 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7574 New function.
7575 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7576 vectors.
7577 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7578 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7579
2b9848d8
PM
75802002-04-24 Pierre Muller <ics.u-strasbg.fr>
7581
7582 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7583 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7584 with fprintf_unfiltered (gdb_stderr,...).
7585
f8d17dc5
PM
75862002-04-24 Pierre Muller <ics.u-strasbg.fr>
7587
7588 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7589 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7590 Replace fprintf (stderr,...
7591 with fprintf_unfiltered (gdb_stderr,....
7592 * remote-es.c: Likewise.
7593 * remote-os9k.c: Likewise.
7594 * remote-st.c: Likewise.
7595
2f2f1ad1
AS
75962002-04-28 Andreas Schwab <schwab@suse.de>
7597
7598 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7599 linux-proc.o and gcore.o.
7600
b6779aa2
AC
76012002-04-26 Michal Ludvig <mludvig@suse.cz>
7602
7603 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7604 code without frame pointers.
7605
7e57f5f4
AC
76062002-04-26 Andrew Cagney <ac131313@redhat.com>
7607
7608 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7609 ON_STACK is needed.
7610
2ceb85d0
BE
76112002-04-26 Ben Elliston <bje@redhat.com>
7612
7613 * target.c (do_xfer_memory): Correct reference to the new option
7614 "trust-readonly-sections".
7615
f5f8a009
EZ
76162002-04-26 Elena Zannoni <ezannoni@redhat.com>
7617
7618 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7619 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7620 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7621 vectors.
7622 (read_array_type): Record the fact that this array type is really a
7623 vector (i.e. are passed in by value).
7624
5868c862
JT
76252002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7626
7627 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7628 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7629 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7630 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7631 * alpha-linux-tdep.c: Include frame.h.
7632 (alpha_linux_sigcontext_addr): New function.
7633 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7634 alpha_linux_sigcontext_addr.
7635 * alpha-osf1-tdep.c: Include gdbcore.h.
7636 (alpha_osf1_sigcontext_addr): New function.
7637 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7638 alpha_osf1_sigcontext_addr.
7639 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7640 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7641
bfb01f37
AC
76422002-04-26 Andrew Cagney <ac131313@redhat.com>
7643
361d1df0 7644 * stack.c (selected_frame_level):
bfb01f37
AC
7645 (select_frame): Do not set selected_frame_level.
7646 * frame.h (selected_frame_level): Delete declaration.
7647
15813d3f
AC
76482002-04-26 Andrew Cagney <ac131313@redhat.com>
7649
7650 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7651 convert_from_func_ptr-addr when AIX / PowerOpen.
7652
6096c27a
AC
76532002-04-25 Andrew Cagney <ac131313@redhat.com>
7654
7655 * valops.c (hand_function_call): Call
7656 generic_save_call_dummy_addr.
7657 * frame.h (generic_save_call_dummy_addr): Declare.
7658 * blockframe.c (struct dummy_frame): Add fields call_lo and
7659 call_hi.
7660 (generic_find_dummy_frame): Check for PC in range call_lo to
7661 call_hi instead of entry_point_address.
7662 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7663 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7664 (generic_save_call_dummy_addr): New function.
7665
f510d44e
DM
76662002-04-24 David S. Miller <davem@redhat.com>
7667
7668 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7669 sparc_skip_prologue.
7670 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7671 information to find prologue when possible.
7672 (sparc_prologue_frameless_p): Call examine_prologue directly.
7673 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7674 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7675 second argument.
7676 (SKIP_PROLOGUE): Likewise.
7677
15d72a92
JT
76782002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7679
7680 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7681 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7682 indicate that the condition it was testing is always true.
7683 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7684 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7685 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7686
accc6d1f
JT
76872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7688
7689 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7690 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7691 tdep->jb_pc and tdep->jb_elt_size.
7692 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7693 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7694 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7695 * alpha-nat.c (get_longjmp_target): Remove.
7696 (JB_ELEMENT_SIZE): Ditto.
7697 (JB_PC): Ditto.
7698 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7699 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7700 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7701 to alpha_get_longjmp_target.
7702 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7703 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7704 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7705
1bfdc549
AC
77062002-04-25 Andrew Cagney <ac131313@redhat.com>
7707
7708 * README: Update to GDB 5.2.
7709
1bd316f0
AC
77102002-04-25 Andrew Cagney <ac131313@redhat.com>
7711
7712 * gdbarch.sh (LC_ALL): Set to `c'.
7713
2e5ff58c
TR
77142002-04-25 Theodore A. Roth <troth@verinet.com>
7715
7716 * avr-tdep.c: Ran through gdb_indent.sh.
7717
e33ce519
TR
77182002-04-25 Theodore A. Roth <troth@verinet.com>
7719
7720 * MAINTAINERS: Add myself as AVR maintainer.
7721 * NEWS: Note new target avr.
7722
8818c391
TR
77232002-04-25 Theodore A. Roth <troth@verinet.com>
7724
7725 * Makefile.in: Add support for AVR target.
7726 * configure.tgt: Add support for AVR target.
7727 * avr-tdep.c: New file
7728 * config/avr/avr.mt: New file.
7729
79509c2d
TR
77302002-04-25 Theodore A. Roth <troth@verinet.com>
7731
7732 * MAINTAINERS: Add myself to write-after-approval.
7733
dac8068e
PM
77342002-04-24 Pierre Muller <ics.u-strasbg.fr>
7735
7736 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7737 with fprintf_unfiltered (gdb_stderr,....
7738
25bf3106
PM
77392002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7740
7741 Fix PR gdb/508.
7742 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7743
24467a86
PM
77442002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7745
7746 * p-exp.y: Also use new prev_lexptr variable
7747 to improve error reporting. Based on Michael Snyder
7748 2002-04-24 dated patch to c-exp.y.
7749
95b80706
JT
77502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7751
7752 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7753 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7754 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7755 to 0.
7756 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7757 and struct value.
7758 (FUNCTION_START_OFFSET): Remove.
7759 (BREAKPOINT): Ditto.
7760
e90cc612
JT
77612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7762
7763 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7764 * NEWS: Ditto.
7765
6c72f9f9
JT
77662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7767
7768 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7769 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7770 alpha_linux_pc_in_sigtramp.
7771 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7772 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7773 alpha_osf1_pc_in_sigtramp.
7774 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7775 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7776 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7777 alphafbsd_pc_in_sigtramp.
7778 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7779 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7780 alphanbsd_pc_in_sigtramp.
7781 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7782 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7783
5e4f3379
JT
77842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7785
7786 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7787
da8ca43d
JT
77882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7789
7790 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7791 alphanbsd-tdep.c.
7792 (alphanbsd-nat.o): New dependency list.
7793 (alphanbsd-tdep.o): Ditto.
7794 * NEWS: Note new native NetBSD/alpha configuration.
7795 * alphanbsd-nat.c: New file.
7796 * alphanbsd-tdep.c: Ditto.
7797 * configure.host (alpha*-*-netbsd*): New host.
7798 * configure.tgt (alpha*-*-netbsd*): New target.
7799 * config/alpha/nbsd.mh: New file.
7800 * config/alpha/nbsd.mt: Ditto.
7801 * config/alpha/nm-nbsd.h: Ditto.
7802 * config/alpha/tm-nbsd.h: Ditto.
7803
36a6271d
JT
78042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7805
7806 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7807 (alpha-osf1-tdep.o): New dependency list.
7808 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7809 and skip_sigtramp_frame members.
7810 * alpha-linux-tdep.c: Include gdbcore.h.
7811 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7812 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7813 * alpha-osf1-tdep.c: New file.
7814 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7815 alpha-osf1-dep.c.
7816 (alpha_frame_past_sigtramp_frame): New function.
7817 (alpha_dynamic_sigtramp_offset): Ditto.
7818 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7819 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7820 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7821 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7822 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7823 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7824 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7825 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7826 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7827 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7828 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7829 to find_solib_trampoline_target.
7830 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7831 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7832 (SKIP_TRAMPOLINE_CODE): Remove.
7833 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7834 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7835 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7836 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7837 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7838 (PROC_SIGTRAMP_MAGIC): Ditto.
7839 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7840 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7841 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7842 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7843 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7844
2f4bc57b
JT
78452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7846
7847 * NEWS: Note that Alpha targets are now multi-arch.
7848
665132f9
MS
78492002-04-24 Michael Snyder <msnyder@redhat.com>
7850
7851 * parser-defs.h (prev_lexptr): New external variable.
7852 * parse.c (parse_exp_1): Set prev_lexptr to null before
7853 calling the language-specific parser.
7854 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7855 (yyerror): Use prev_lexptr in error reporting.
7856
32872fa7
DJ
78572002-04-24 Daniel Jacobowitz <drow@mvista.com>
7858
7859 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7860 * gregset.h: If FILL_FPXREGSET is defined, provide
7861 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7862 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7863 is defined, call fill_fpxregset.
7864
57e76fac
MS
78652002-04-24 Roland McGrath <roland@frob.com>
7866
7867 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7868 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7869 (supply_gregset, supply_fpregset): New functions.
7870
7871 * gnu-nat.c (gnu_find_memory_regions): New function.
7872 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7873 (gnu_xfer_memory): Add a cast.
7874
f43845b3
MS
78752002-04-24 Michael Snyder <msnyder@redhat.com>
7876
361d1df0 7877 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7878 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7879 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7880 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7881 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7882 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7883
a0abec03
AC
7884Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7885
7886 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7887 NUM_PSEUDO_REGS can be used.
7888
d7bd68ca
AC
78892002-04-24 Andrew Cagney <ac131313@redhat.com>
7890
7891 * arch-utils.h: Update copyright.
7892
7893 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7894 * gdbarch.h, gdbarch.c: Re-generate.
7895
7896 * inferior.h (IN_SIGTRAMP): Delete definition.
7897 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7898 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7899
7900 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7901 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7902 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7903 (find_proc_framesize): Ditto.
7904 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7905 (alpha_init_extra_frame_info): Ditto.
7906 * infrun.c (handle_inferior_event): Ditto.
7907 (handle_inferior_event): Ditto.
7908 (check_sigtramp2): Ditto.
7909 * blockframe.c (create_new_frame): Ditto.
7910 (get_prev_frame): Ditto.
7911 * ppc-linux-tdep.c: Update comments.
7912 * i386-linux-tdep.c: Update comments.
7913 * breakpoint.c (bpstat_what): Update comment.
7914
4867e41e
DM
79152002-04-24 David S. Miller <davem@redhat.com>
7916
21d83aa5
DM
7917 * i960-tdep.c (register_in_window_p): New function.
7918 (i960_find_saved_register): Use it instead of
7919 REGISTER_IN_WINDOW_P.
7920 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7921
4867e41e
DM
7922 * symtab.h (find_stab_function_addr): Kill extern.
7923 * minsyms.c (find_stab_function_addr): Remove from here...
7924 * dbxread.c: ... to here, and mark it static.
7925
69cdf6a2
DM
79262002-04-20 David S. Miller <davem@redhat.com>
7927
7928 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7929 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7930
5a595886
DM
79312002-04-21 David S. Miller <davem@redhat.com>
7932
7933 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7934 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7935 (vx_write_register): Likewise.
7936
1da1a192
JB
79372002-04-23 J. Brobecker <brobecker@gnat.com>
7938
7939 * source.c (is_regular_file): New function.
7940 (openp): Check wether file to open is a regular file
7941 to avoid opening directories.
7942
baa6f10b
JT
79432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7944
7945 * findvar.c (extract_signed_integer): Cast printf argument
7946 to suppress format warning.
7947 (extract_unsigned_integer): Likewise.
7948 * infcmd.c (registers_info): Likewise.
7949 * top.c (get_prompt_1): Likewise.
7950 * valops.c (value_assign): Likewise.
7951 * valprint.c (print_decimal): Likewise.
7952
b2c4da81
L
79532002-04-22 H.J. Lu (hjl@gnu.org)
7954
7955 * c-exp.y (typebase): Support
361d1df0 7956
b2c4da81
L
7957 [long|long long|short] [signed|unsigned] [int|]
7958
7959 and
7960
7961 signed [long|long long|short] int
7962
f267bd6a
JT
79632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7964
7965 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7966 and vax-tdep.h.
7967 * vax-tdep.h: New file.
7968 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7969 Make several routines static.
7970 (vax_get_saved_register): New function.
7971 (vax_gdbarch_init): New function.
7972 (_initialize_vax_tdep): Register vax_gdbarch_init.
7973 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7974 Remove macros now under the control of gdbarch.
7975
da3c6d4a
MS
79762002-04-22 Michael Snyder <msnyder@redhat.com>
7977
11d3b27d
MS
7978 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7979 Some whitespace and coding standards tweaks.
da3c6d4a 7980
a33f7558
JT
79812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7982
7983 * vax-tdep.c: Include regcache.h.
7984 (vax_call_dummy_words): New.
7985 (sizeof_vax_call_dummy_words): New.
7986 (vax_fix_call_dummy): New function.
7987 (vax_saved_pc_after_call): Ditto.
7988 * config/vax/tm-vax.h: Don't include regcache.h.
7989 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7990 (CALL_DUMMY): Remove.
7991 (CALL_DUMMY_WORDS): Define.
7992 (SIZEOF_CALL_DUMMY_WORDS): Define.
7993 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7994
47a73475
MS
79952002-04-18 Michael Snyder <msnyder@redhat.com>
7996
7997 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7998
52efde73
JT
79992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8000
8001 * vax-tdep.c (vax_frame_chain): New function.
8002 (vax_push_dummy_frame): Ditto.
8003 (vax_pop_frame): Ditto.
8004 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8005 (FRAMELESS_FUNCTION_INVOCATION): Use
8006 generic_frameless_function_invocation_not.
8007 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8008 (POP_FRAME): Use vax_pop_frame.
8009
ea74468c
JT
80102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8011
8012 * vax-tdep.c (vax_store_struct_return): New function.
8013 (vax_extract_return_value): Ditto.
8014 (vax_store_return_value): Ditto.
8015 (vax_extract_struct_value_address): Ditto.
8016 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8017 vax_store_struct_return.
8018 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8019 (STORE_RETURN_VALUE): Use vax_store_return_value.
8020 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8021
5516aa92
JT
80222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8023
8024 * vax-tdep.c (vax_frame_saved_pc): New function.
8025 (vax_frame_args_address_correct): Ditto.
8026 (vax_frame_args_address): Ditto.
8027 (vax_frame_locals_address): Ditto.
8028 (vax_frame_num_args): Move code to be in proximity to
8029 other frame-related functions.
8030 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8031 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8032 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8033 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8034 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8035
36af0b35
L
80362002-04-22 H.J. Lu (hjl@gnu.org)
8037
8038 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8039 includedir.
8040
ab62c900
JT
80412002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8042
8043 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8044 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8045 (FRAME_INIT_SAVED_REGS): New macro.
8046
7232b100
JT
80472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8048
8049 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8050
b70d2aee
JT
80512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8052
8053 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8054 where needed.
8055 (fetch_osf_core_registers): Likewise.
8056 (supply_gregset): Likewise.
8057
a0e8a2d1 80582002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8059
a0e8a2d1
JB
8060 * symfile.h (get_section_index): Define.
8061 * symfile.c (get_section_index): New function.
8062 * mdebugread.c (SC_IS_SBSS): New macro.
8063 (SC_IS_BSS): Return true for the scBss storage class only, as
8064 the scSBss storage class refers to the .sbss section.
8065 (parse_partial_symbols): Discard the symbols which associated
8066 section does not exist.
8067 Make sure to use the .sbss section index for symbols which
8068 storage class is scBss, rather than using the .bss section index.
8069
51eb8b08
JT
80702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8071
8072 * vax-tdep.c: Update copyright years.
8073 (vax_register_name): New function.
8074 (vax_register_byte): Ditto.
8075 (vax_register_raw_size): Ditto.
8076 (vax_register_virtual_size): Ditto.
8077 (vax_register_virtual_type): Ditto.
8078 * config/vax/tm-vax.h: Update copyright years.
8079 (REGISTER_NAMES): Remove.
8080 (REGISTER_NAME): Define.
8081 (REGISTER_BYTE): Use vax_register_byte.
8082 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8083 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8084 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8085
6cc1c0a8
AC
80862002-04-21 Andrew Cagney <ac131313@redhat.com>
8087
8088 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8089 declaration
8090 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8091
9319a2fe
DM
80922002-04-21 David S. Miller <davem@redhat.com>
8093
8094 * arch-utils.c (generic_prologue_frameless_p): Kill
8095 SKIP_PROLOGUE_FRAMELESS_P code.
8096 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8097 references.
8098 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8099 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8100 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8101 references.
8102 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8103 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8104 (sparc_gdbarch_init): Pass it to
8105 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8106
e9ed6d01
JT
81072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8108
8109 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8110 (alphabsd-nat.o): New dependency list.
8111
36012033
JT
81122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8113
8114 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8115 alphafbsd-tdep.c.
8116 (alpha-linux-tdep.o): New dependency list.
8117 (alphafbsd-tdep.o): Likewise.
8118
3379287a
JT
81192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8120
8121 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8122 to here...
8123 * alpha-tdep.c: ...from here.
8124 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8125
4bcbd6cb
JT
81262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8127
8128 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8129 prototype from here...
8130 * alpha-tdep.h: ...to here.
8131
b31da25e
AC
81322002-04-21 Andrew Cagney <ac131313@redhat.com>
8133
8134 * frame.h (selected_frame_level): Document as deprecated.
8135 (frame_relative_level): Declare.
8136 * stack.c (frame_relative_level): New function.
8137 (selected_frame_level): Document as deprecated.
8138 (select_frame): Do not set the selected_frame_level.
8139
8140 * stack.c (frame_info, record_selected_frame): Update.
8141 (frame_command, current_frame_command): Update.
8142 (up_silently_base, up_command, down_silently_base): Update.
8143 (down_command): Update.
8144 * inflow.c (kill_command): Update.
8145 * tracepoint.c (finish_tfind_command): Update.
8146 * corelow.c (core_open): Update.
8147 * thread.c (info_threads_command): Update.
8148 (do_captured_thread_select): Update.
8149 * infcmd.c (finish_command): Update.
8150 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8151
9c1d6fe5
JT
81522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8153
8154 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8155
ab89facf
AC
81562002-04-21 Andrew Cagney <ac131313@redhat.com>
8157
8158 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8159 type const.
8160
82a4efa1
JT
81612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8162
8163 * alphafbsd-tdep.c: Update copyright years. Include
8164 alpha-tdep.h.
8165 (alphafbsd_use_struct_convention): Make static.
8166 (alphafbsd_init_abi): New function.
8167 (_initialize_alphafbsd_tdep): New function.
8168 * config/alpha/tm-fbsd.h: Update copyright years.
8169 (USE_STRUCT_CONVENTION): Remove.
8170
44dffaac
JT
81712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8172
8173 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8174 an Alpha ABI variant.
8175 (alpha_abi_handler_list): Declare.
8176 (alpha_gdbarch_register_os_abi): New function.
8177 (alpha_gdbarch_init): Give registered ABI variant handlers a
8178 chance to tweak the gdbarch once we have set up defaults.
8179 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8180
65585be4
JT
81812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8182
8183 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8184 to standard_coerce_float_to_double.
8185 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8186
d9b023cc
JT
81872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8188
8189 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8190 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8191 from gdbarch_tdep rather than a constant.
8192 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8193 the default text address for all Alpha Unix ABIs.
8194 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8195 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8196
dc129d82
JT
81972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8198
8199 * alpha-tdep.h: New file. Includes several Alpha target constants
8200 taken from...
8201 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8202 let gdbarch deal with.
8203 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8204 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8205 to dependency list.
8206 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8207 Alpha target register names.
8208 * alphabsd-nat.c: Likewise.
8209 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8210 Alpha target register names. Make serveral routines static.
8211 (alpha_get_saved_register): New function.
8212 (alpha_abi_names): New.
8213 (process_note_abi_tag_sections): New function.
8214 (get_elfosabi): New function.
8215 (alpha_gdbarch_init): New function.
8216 (alpha_dump_tdep): New function.
8217 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8218
d49d1e0a
AC
82192002-04-21 Andrew Cagney <ac131313@redhat.com>
8220
8221 * frame.c (find_saved_register): Delete #ifdef
8222 HAVE_REGISTER_WINDOWS code.
8223 * config/sparc/tm-sparc.h: Update comments.
8224 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8225
92e8c9ed
AC
82262002-04-21 Andrew Cagney <ac131313@redhat.com>
8227
8228 * i960-tdep.c (i960_find_saved_register): New function.
8229 (i960_get_saved_register): New function.
8230 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8231 (i960_get_saved_register): Declare.
8232 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8233
e1925118
DM
82342002-04-20 David S. Miller <davem@redhat.com>
8235
8236 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8237
29673b29
AC
82382002-04-20 Andrew Cagney <ac131313@redhat.com>
8239
8240 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8241 instead of NUM_PSEUDO_REGS.
8242
6c86dcd5
DM
82432002-04-20 David S. Miller <davem@redhat.com>
8244
8245 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8246 GDB_MULTI_ARCH_PARTIAL
8247 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8248 define, let tm-sp64.h do it.
8249
aa40ec90
JT
82502002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8251
8252 * frame.c (find_saved_register): Avoid a NULL pointer
8253 dereference and actually walk the frame list.
8254
0f79675b
AC
82552002-04-20 Andrew Cagney <ac131313@redhat.com>
8256
8257 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8258 sorted in most most-recent-used order. Document.
8259 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8260
f91305dd 82612002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8262
8263 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8264 instead of ->prev.
8265 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8266 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8267 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8268 instead of ->prev.
8269
73d322b1
EZ
82702002-04-19 Elena Zannoni <ezannoni@redhat.com>
8271
8272 Fix PR gdb/471.
8273 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8274 (build_builtin_type_vec128): Ditto.
8275 (append_composite_type_field): Fix calculation of type length in
8276 union case.
8277
ccd9a834
EZ
82782002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8279
8280 * config/djgpp/README: Update.
8281
8282 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8283 compiler warnings.
8284
a57f9e49
JT
82852002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8286
8287 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8288 (alpha_setup_arbitrary_frame): ...to this.
8289 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8290 for alpha_setup_arbitrary_frame.
8291
f4f9705a
AC
82922002-04-18 Andrew Cagney <cagney@redhat.com>
8293
8294 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8295 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8296
f4f9705a
AC
8297 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8298 * target.h (memory_breakpoint_from_pc): Update declaration.
8299 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8300
8301 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8302 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8303 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8304 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8305 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8306 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8307 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8308 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8309 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8310 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8311 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8312 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8313
8314 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8315 const pointer.
8316 * monitor.c (monitor_insert_breakpoint): Ditto.
8317 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8318
8319 * config/mcore/tm-mcore.h: Update copyright.
8320 * mem-break.c: Ditto.
8321 * xstormy16-tdep.c: Ditto.
8322
29f319b8
PM
83232002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8324
8325 * p-exp.y: Add precedence rule for '^' token.
8326 This removes the shift/reduce conflicts.
8327 Remove the comment concerning these shift/reduce conflicts.
8328
ebeac11a
EZ
83292002-04-18 Elena Zannoni <ezannoni@redhat.com>
8330
8331 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8332 (registers_powerpc_nofp): New register set for processors
8333 without floating point unit.
8334
27c31547
DM
83352002-04-18 David S. Miller <davem@redhat.com>
8336
8337 * MAINTAINERS: Add myself to write-after-approval.
8338
47a73475
MS
83392002-04-17 Michael Snyder <msnyder@redhat.com>
8340
8341 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8342
953836b2
AC
83432002-04-17 Andrew Cagney <ac131313@redhat.com>
8344
8345 * rs6000-tdep.c (frame_initial_stack_address): Use
8346 frame_register_read to read the alloca_reg.
8347
8b0d4340
AC
83482002-04-17 Andrew Cagney <ac131313@redhat.com>
8349
8350 * frame.c (find_saved_register): Find saved registers in the next
8351 not prev frame.
8352 Fix PR gdb/365.
8353
d8864532
AC
83542002-04-17 Andrew Cagney <ac131313@redhat.com>
8355
8356 * gdbarch.sh (LANG): Set to ``c''.
8357
36cc83a3 83582002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8359
36cc83a3 8360 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8361
2f4150cc 83622002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8363
8364 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8365 Update copyright.
8366
628703c6 8367 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8368 Also fix PR gdb/391.
361d1df0 8369
56157b4a
AC
83702002-04-14 Andrew Cagney <ac131313@redhat.com>
8371
8372 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8373 * aclocal.m4, configure: Re-generate.
8374 Fix PR gdb/391.
361d1df0 8375
6d1e3329
EZ
83762002-04-14 Elena Zannoni <ezannoni@redhat.com>
8377
8378 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8379 instead of tm_print_insn.
8380
cb06fa07
EZ
83812002-04-14 Elena Zannoni <ezannoni@redhat.com>
8382
8383 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8384
f208ba17
AC
83852002-04-14 Andrew Cagney <ac131313@redhat.com>
8386
8387 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8388 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8389 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8390
20f01a46
DH
83912002-04-12 Don Howard <dhoward@redhat.com>
8392
8393 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8394 max_user_call_depth.
8395 (init_cmd_lists): Initialize the new value;
8396 * cli/cli-script.c (execute_user_command): Limit the call depth of
8397 user defined commands. This avoids a core-dump when user commands
8398 are infinitly recursive.
8399
a88376a3
KB
84002002-04-12 Kevin Buettner <kevinb@redhat.com>
8401
8402 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8403 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8404 from tdep struct instead of DEFAULT_LR_SAVE.
8405 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8406 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8407 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8408
f2172603
MS
84092002-04-12 Michael Snyder <msnyder@redhat.com>
8410
694f61fb 8411 * Remote.c: Spelling fix.
20fe79c8
MS
8412 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8413 If no symbol found for "sbrk", try "_sbrk".
8414 (make_output_phdrs): Use bfd_section_name.
8415 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8416 * eval.c: Indentation fix-ups.
169a7369
MS
8417 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8418 in case it gets applied to an address that is already
8419 in the instruction space.
de74f71f
MS
8420 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8421 * symfile.c: Fix indentation, long lines.
f2172603
MS
8422 * source.c: White space fix-up.
8423
cda5a58a
AC
84242002-04-12 Andrew Cagney <cagney@redhat.com>
8425
8426 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8427 * frame.c (frame_register_read): New function. Return non-zero on
8428 success.
8429 (read_relative_register_raw_bytes_for_frame): Delete.
8430 (read_relative_register_raw_bytes): Delete.
8431 * frame.h (frame_register_read): Declare.
8432 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8433 * sh-tdep.c: Ditto.
8434 * infcmd.c (do_registers_info): Ditto.
8435 * hppa-tdep.c: Ditto.
8436 * rs6000-tdep.c: Ditto.
8437 * h8500-tdep.c: Ditto.
8438 * mips-tdep.c: Ditto.
8439 * h8300-tdep.c: Ditto.
8440 * z8k-tdep.c: Ditto.
8441
2ea5f656
KB
84422002-04-12 Kevin Buettner <kevinb@redhat.com>
8443
8444 From Jimi X <jimix@watson.ibm.com>:
8445 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8446 64-bit SysV ABI.
8447
27b15785
KB
84482002-04-12 Kevin Buettner <kevinb@redhat.com>
8449
8450 From Jimi X <jimix@watson.ibm.com>:
8451 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8452 bfd info.
8453
5d57ee30
KB
84542002-04-12 Kevin Buettner <kevinb@redhat.com>
8455
8456 From Jimi X <jimix@watson.ibm.com>:
8457 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8458 register sets for these processor variants.
8459
bc1e36ca
DJ
84602002-04-11 Daniel Jacobowitz <drow@mvista.com>
8461
bc1e36ca
DJ
8462 * regformats/reg-ppc.dat: Support FPSCR.
8463
e3f36dbd
KB
84642002-04-11 Kevin Buettner <kevinb@redhat.com>
8465
8466 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8467 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8468 Add fpscr as an invalid/unfetchable register.
8469 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8470 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8471 (fill_fpregset): Add support for register fpscr.
8472 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8473 (fill_gregset): Account for the fact that register ``mq'' might
8474 not exist.
8475 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8476 (registers_power): Add fpscr to register set at slot 71.
8477 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8478 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8479
943c9c25
MS
84802002-04-11 Michael Snyder <msnyder@redhat.com>
8481
8482 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8483 * configure: Regenerate.
8484 * config.in: Regenerate.
8485 * acconfig.h: Add define for _SYSCALL32.
8486 * core-sol2.c: Remove #define _SYSCALL32.
8487 * solib-legacy.c: Remove #define _SYSCALL32.
8488
d8c0a2e7
AC
84892002-04-10 Andrew Cagney <ac131313@redhat.com>
8490
8491 * stack.c (select_frame): Cleanup internal error message, do not
8492 use %p.
8493
7cc19214
AC
84942002-04-10 Andrew Cagney <ac131313@redhat.com>
8495
8496 * stack.c (select_frame): Check that selected_frame and the
8497 specified level are as expected.
8498 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8499 Update copyright.
8500 * frame.h (struct frame_info): Add field `level'. Update
8501 copyright.
8502 Work-in-progress PR gdb/464.
8503
67a2b77e
AC
85042002-04-10 Andrew Cagney <ac131313@redhat.com>
8505
8506 * maint.c (maint_print_section_info): Rename print_section_info.
8507 (print_bfd_section_info, print_objfile_section_info): Update.
8508 * inferior.h (struct gdbarch): Add opaque declaration.
8509 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8510 * gdbarch.h: Regenerate.
8511
8cfda98c
ML
85122002-04-10 Michal Ludvig <mludvig@suse.cz>
8513
8514 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8515 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8516 (kernel_u_size): Added.
8517 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8518 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8519
ca439ad2 85202002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8521
ca439ad2
JI
8522 * valarith.c (find_size_for_pointer_math): New function, either returns
8523 the size for a pointer's target, returns 1 for void *, or errors for
8524 incomplete types.
8525 (value_add, value_sub): use find_size_for_pointer_math.
8526
2f2893d9
DJ
85272002-04-09 Daniel Jacobowitz <drow@mvista.com>
8528
8529 * linux-low.c (linux_look_up_symbols): New hook.
8530 (linux_target_ops): Add linux_look_up_symbols.
8531 * remote-utils.c (decode_address): New function.
8532 (look_up_one_symbol): New function.
8533 * server.c (handle_query): Call target look_up_symbols hook.
8534 * server.h (look_up_one_symbol): Add prototype.
8535 * target.h (struct target_ops): Add look_up_symbols hook.
8536
96cb11df
AC
85372002-04-09 Andrew Cagney <ac131313@redhat.com>
8538
8539 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8540 override FP_REGNUM with frame->fp. Update copyright.
8541 * parse.c (num_std_regs, std_regs): Delete.
8542 (target_map_name_to_register): Do not search std_regs. Update
8543 function description.
8544 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8545 declarations. Update copyright.
8546 Fix PR gdb/251.
361d1df0 8547
97658e92
DJ
85482002-04-09 Daniel Jacobowitz <drow@mvista.com>
8549
8550 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8551 after the last symbol in a block.
8552
6044e3eb
PM
85532002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8554
8555 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8556 is non zero as a found symbol.
8557
0406ec40
AC
85582002-04-08 Andrew Cagney <ac131313@redhat.com>
8559
8560 * findvar.c: Include "builtin-regs.h".
8561 (value_of_register): Call value_of_builtin_reg when applicable.
8562 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8563 (target_map_name_to_register): Call
8564 builtin_reg_map_name_to_regnum.
8565 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8566 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8567 (builtin_regs_h): Define.
8568 (builtin-regs.o): New target.
8569 (findvar.o): Add $(builtin_regs_h).
8570 * builtin-regs.c, builtin-regs.h: New files.
8571 * std-regs.c: New file.
8572 Partial fix for PR gdb/251.
8573
56a6dfb9
KB
85742002-04-08 Kevin Buettner <kevinb@redhat.com>
8575
8576 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8577 it's no longer required.
8578
3a808432
AC
85792002-04-08 Andrew Cagney <ac131313@redhat.com>
8580
8581 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8582
7c40d541
KB
85832002-04-08 Kevin Buettner <kevinb@redhat.com>
8584
8585 From Jimi X <jimix@watson.ibm.com>:
8586 * rs6000-tdep.c (rs6000_software_single_step): Use
8587 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8588 and size. Use target_insert_breakpoint() and
8589 target_remove_breakpoint() to insert and remove breakpoints
8590 instead of explicit memory reads and writes.
8591
cc9836a8
KB
85922002-04-08 Kevin Buettner <kevinb@redhat.com>
8593
8594 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8595 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8596 ELF_OBJECT_FORMAT ifdef.
8597
7495d1dc
KB
85982002-04-08 Kevin Buettner <kevinb@redhat.com>
8599
8600 From Jimi X <jimix@watson.ibm.com>:
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8602
4288e836
KB
86032002-04-08 Kevin Buettner <kevinb@redhat.com>
8604
8605 From Jimi X <jimix@watson.ibm.com>:
8606 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8607 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8608
a4e4e501
MK
86092002-04-07 Mark Kettenis <kettenis@gnu.org>
8610
8611 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8612 s/asprintf/xasprintf/.
8613 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8614
006defba
AC
86152002-04-07 Andrew Cagney <ac131313@redhat.com>
8616
8617 I believe Jeff Law denies responsability for this one:
8618 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8619 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8620 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8621 Work-around for PR gdb/366.
8622
7aa83cac
EZ
86232002-04-07 Elena Zannoni <ezannoni@redhat.com>
8624
8625 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8626 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8627 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8628
cf1fcca1
EZ
86292002-04-07 Elena Zannoni <ezannoni@redhat.com>
8630
8631 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8632 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8633 information.
8634
3f289e6f
AC
86352002-04-07 Andrew Cagney <ac131313@redhat.com>
8636
8637 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8638 maintainer.
8639
129188f6
AC
86402002-04-07 Andrew Cagney <ac131313@redhat.com>
8641
8642 * README (Reporting Bugs in GDB): Document the bug web page as the
8643 prefered way of submitting bugs.
8644 Fix PR gdb/402.
8645
1200cd6e
AC
86462002-04-06 Andrew Cagney <ac131313@redhat.com>
8647
8648 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8649 -1. Update comment.
8650 * gdbarch.h, gdbarch.c: Re-generate.
8651
2853c33c
AS
86522002-04-07 Andreas Schwab <schwab@suse.de>
8653
8654 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8655 buffer to regcache_collect.
8656
c2169756
AC
86572002-04-06 Andrew Cagney <ac131313@redhat.com>
8658
8659 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8660 * gdbarch.c, gdbarch.h: Re-generate.
8661
25f1b008
AC
86622002-04-06 Andrew Cagney <ac131313@redhat.com>
8663
8664 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8665 declaration. Fix -Werror.
8666
59263426
DJ
86672002-04-05 Daniel Jacobowitz <drow@mvista.com>
8668
8669 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8670 * gdbarch.c: Regenerate.
8671
f5db4da3
MS
86722002-04-05 Michael Snyder <msnyder@redhat.com>
8673
80f8a6eb
MS
8674 * breakpoint.c (clear_command): Rewrite middle section to
8675 combine two loops with identical control conditions.
8676 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8677 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8678
ad3dcc5c
L
86792002-04-05 H.J. Lu (hjl@gnu.org)
8680
8681 * solib-svr4.c (bkpt_names): Add "__start".
8682
f32e7a74
AC
86832002-04-04 Andrew Cagney <ac131313@redhat.com>
8684
8685 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8686 as test for 64 bit target.
8687
8227c0ff
AC
86882002-04-05 Andrew Cagney <ac131313@redhat.com>
8689
8690 * h8500-tdep.c (h8500_write_fp): Delete function.
8691 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8692 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8693 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8695 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8696 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8697 (s390_write_fp):
8698 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8699 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8700 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8701 (d10v_write_fp): Delete function.
8702 * inferior.h (write_fp, generic_target_write_fp): Delete
8703 declarations.
8704 * regcache.c (generic_target_write_fp): Delete function.
8705 (write_fp): Delete function.
8706 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8707 * gdbarch.h, gdbarch.c: Regenerate.
8708 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8709 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8710 (sparc64_write_fp): Delete declaration.
8711 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8712 (h8500_write_fp): Delete declaration.
8713
2757dd86
AC
87142002-04-04 Andrew Cagney <ac131313@redhat.com>
8715
8716 * sparc-tdep.c (sparc64_write_fp): Delete.
8717 (sparc_push_dummy_frame): Replace write_fp call with code to store
8718 the FP directly.
8719 (sparc_gdbarch_init): Do not initialize write_fp.
8720
c69255e1
KB
87212002-04-05 Kevin Buettner <kevinb@redhat.com>
8722
8723 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8724 clause.
8725
ae767bfb
JB
87262002-03-29 Jim Blandy <jimb@redhat.com>
8727
8728 * stack.c (get_selected_block): Add new argument `addr_in_block',
8729 used to return the exact code address we used to select the block,
8730 not just the block.
8731 * blockframe.c (get_frame_block, get_current_block): Same.
8732 * frame.h (get_frame_block, get_current_block,
8733 get_selected_block): Update declarations.
8734 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8735 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8736
84d2ac95
MS
87372002-04-05 Michael Snyder <msnyder@redhat.com>
8738
8739 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8740 warning message.
8741
596aa3bf
JB
87422002-04-05 J. Brobecker <brobecker@gnat.com>
8743
8744 * utils.c (xfullpath): New function.
8745 * defs.h (xfullpath): Add declaration.
8746 * source.c (openp): Use xfullpath in place of gdb_realpath to
8747 avoid resolving the basename part of filenames when the
8748 associated file is a symbolic link. This fixes a potential
8749 inconsistency between the filenames known to GDB and the
8750 filenames it prints in the annotations.
8751 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8752 to be able to match a filename with either the real filename, or
8753 the name of any symbolic link to this file.
8754 (lookup_partial_symtab): Ditto.
8755
c02f5703
MS
87562002-04-04 Michael Snyder <msnyder@redhat.com>
8757
8758 * breakpoint.c: Add support for hardware breakpoints in overlays.
8759 (overlay_events_enabled): New state variable.
8760 (insert_breakpoints): Use overlay_events_enabled to decide
8761 whether to attempt to set a breakpoint at the overlay load addr.
8762 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8763 (remove_breakpoint): Use overlay_events_enabled to decide
8764 whether breakpoints need to be removed from overlay load addr.
8765 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8766 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8767 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8768 disable_overlay_breakpoints): Update overlay_events_enabled.
8769
5fb290d7
DJ
87702002-04-04 Daniel Jacobowitz <drow@mvista.com>
8771
8772 * dwarf2read.c (struct function_range): New.
8773 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8774 (check_cu_functions): New.
8775 (read_file_scope): Initialize global function lists.
8776 Call dwarf_decode_line after processing children.
8777 (read_func_scope): Add to global function list.
8778 (dwarf_decode_lines): Call check_cu_functions everywhere
8779 record_line is called. Call record_line with a linenumber
8780 of 0 to mark sequence ends.
8781
7b3fabf0
ML
87822002-04-04 Michal Ludvig <mludvig@suse.cz>
8783
361d1df0 8784 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8785 change sync with glibc.
8786
bce58c09
JB
87872002-04-03 Jim Blandy <jimb@redhat.com>
8788
8789 * configure.in: Call AC_C_INLINE.
8790 * configure: Regenerated.
361d1df0 8791
2fccf04a
DJ
87922002-04-01 Daniel Jacobowitz <drow@mvista.com>
8793
8794 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8795 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8796
2d1bfe2e
MK
87972002-03-31 Mark Kettenis <kettenis@gnu.org>
8798
a5941fbf
MK
8799 * NEWS: Mention gcore support on FreeBSD/i386.
8800
a90cd31d
MK
8801 * fbsd-proc.c: New file.
8802 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8803 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8804
2d1bfe2e
MK
8805 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8806 while statement.
8807
9eb6e5a1
JB
88082002-03-29 Jim Blandy <jimb@redhat.com>
8809
8810 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8811 unescaped newlines in string literals, but newer ones don't. So
8812 escape them.
8813
f02df580
MS
88142002-03-26 Michael Snyder <msnyder@redhat.com>
8815 Andrew Cagney <cagney@redhat.com>
8816
361d1df0 8817 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8818 restore file to memory.
8819 * cli/cli-dump.h: New file.
8820 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8821 * NEWS: Mention new commands.
f02df580 8822
109f874e
MS
88232002-03-28 Michael Snyder <msnyder@redhat.com>
8824
8825 * symfile.c (symbol_file_add): Move test for null symbols to later.
8826
520f6ade
AC
88272002-03-27 Andrew Cagney <ac131313@redhat.com>
8828
8829 From veksler at il.ibm.com:
8830 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8831 the xstrduped original path.
8832 Fix PR gdb/417.
8833
d4654627
MS
88342002-03-27 Michael Snyder <msnyder@redhat.com>
8835
8836 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8837 * infcmd.c (_initialize_infcmd): Ditto.
8838 * language.c (_initialize_language): Ditto.
8839 * symfile.c (_initialize_symfile): Ditto.
8840 * top.c (_init_main): Ditto.
8841 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8842
6be8bc0c
EZ
88432002-03-27 Elena Zannoni <ezannoni@redhat.com>
8844
8845 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8846 vector registers handling.
8847 (skip_prologue): Handle new AltiVec instructions. Fill in new
8848 fields of frame data.
8849 (frame_get_saved_regs): Fill in information for AltiVec registers.
8850
12af6855
JB
88512002-03-27 Jim Blandy <jimb@redhat.com>
8852
8853 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8854 a function; leave this macro here to invoke that function.
8855 (symbol_init_mangled_name): Declaration for that function.
8856 * symtab.c (symbol_init_mangled_name): New function.
8857
dc672865
AC
88582002-03-27 Andrew Cagney <ac131313@redhat.com>
8859
8860 * valarith.c: Replace strerror with safe_strerror.
8861 * tracepoint.c: Ditto.
8862 * lin-lwp.c: Ditto.
8863 * go32-nat.c: Ditto.
8864 * inflow.c: Ditto.
8865 * gnu-nat.c: Ditto.
8866
d96429cd
AS
88672002-03-27 Andreas Schwab <schwab@suse.de>
8868
8869 * event-top.c (command_line_handler): Remove useless if.
8870
7e336ba1
AJ
88712002-03-27 Andreas Jaeger <aj@suse.de>
8872
8873 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8874 comment.
8875
de220d0f
ML
88762002-03-27 Michal Ludvig <mludvig@suse.cz>
8877
8878 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8879 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8880 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8881 (x86_64_linux_dr_get_status, supply_gregset),
8882 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8883 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8884 (x86_64_register_info_table): Add.
8885 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8886 (x86_64_register_raw_size, x86_64_register_virtual_type),
8887 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8888 general x86_64_register_info_table.
8889 (i386_gdbarch_init): gdbarch_register_bytes is now set
8890 dynamicaly during initialization.
8891 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8892 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8893
0e98d0a7
DJ
88942002-03-27 Daniel Jacobowitz <drow@mvista.com>
8895
8896 * gdbserver/server.c (main): Call target_signal_to_host_p
8897 and target_signal_to_host on signals received from the remote.
8898 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8899 target_signal_from_host on signals sent to the remote.
8900 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8901 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8902
3130066b
DJ
89032002-03-27 Daniel Jacobowitz <drow@mvista.com>
8904
8905 * signals/signals.c: Include "server.h" in gdbserver build.
8906 (target_signal_from_name): Don't use STREQ.
8907 (_initialize_signals): Likewise. Don't include function in
8908 gdbserver build.
8909
9aedf4f4
DJ
89102002-03-27 Daniel Jacobowitz <drow@mvista.com>
8911
8912 * signals.c: Moved to...
8913 * signals/signals.c: Here.
7e336ba1 8914 * Makefile (signals.o): Update.
9aedf4f4 8915
3fa41cdb
JL
89162002-03-26 Jeff Law (law@redhat.com)
8917
8918 * somread.c (som_symtab_read): Remove some commented out code and
8919 updated related comments. Do not set the minimal symbol table to
8920 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8921 in a dynamic executable.
8922 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8923 where we are unable to find the minimal symbol for the given
8924 PC value.
8925
ee677e8d
MS
89262002-03-25 Jeff Law (law@redhat.com)
8927
8928 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8929
e76e1718
ML
89302002-03-25 Michal Ludvig <mludvig@suse.cz>
8931
8932 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8933
18a642a1
AC
89342002-03-23 Andrew Cagney <ac131313@redhat.com>
8935
8936 * command.h: Update copyright.
8937 (struct cmd_list_element): Replace definition with opaque
8938 declaration.
8939 (enum cmd_types): Document that it will eventually be moved to
8940 cli/cli-decode.h
8941 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8942 (MALLOCED_REPLACEMENT): Delete macro.
8943 * Makefile.in (cli_decode_h): Add $(command_h).
8944 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8945 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8946 * completer.c: Include "cli/cli-decode.h".
8947 * maint.c: Include "cli/cli-decode.h".
8948 * cli/cli-decode.h: Include "command.h".
8949 (enum command_class): Delete.
8950 (enum cmd_types): Comment out.
8951 (enum cmd_auto_boolean): Delete.
8952 (enum var_types): Delete.
8953
b2875cc0
AC
89542002-03-23 Andrew Cagney <ac131313@redhat.com>
8955
8956 * cli/cli-decode.c: Include "gdb_assert.h".
8957 (add_set_or_show_cmd): New static function.
8958 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8959 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8960 all fields, such as func, from the set command.
8961
3b45974e
AC
89622002-03-23 Andrew Cagney <ac131313@redhat.com>
8963
8964 * MAINTAINERS (sh-elf): Change warning flag to -w.
8965
823ca731
AC
89662002-03-23 Andrew Cagney <cagney@redhat.com>
8967
8968 * defs.h (error): Add printf format attribute.
8969 * thread-db.c (thread_from_lwp): Fix error format string.
8970 * stack.c (parse_frame_specification): Ditto.
8971 * cli/cli-decode.c (undef_cmd_error): Ditto.
8972 * scm-lang.c (scm_lookup_name): Ditto.
8973 * tracepoint.c (trace_error): Ditto.
8974 * remote-utils.c (usage): Ditto.
8975 * remote.c (compare_sections_command): Ditto.
8976 Fix PR gdb/328.
8977
0e101458
AC
89782002-03-22 Andrew Cagney <ac131313@redhat.com>
8979
8980 * gdbtypes.c (append_composite_type_field): New function.
8981 (init_composite_type): New function.
8982 * gdbtypes.h (append_composite_type_field): Declare.
8983 (init_composite_type): Ditto.
8984
8e0662df
EZ
89852002-03-22 Elena Zannoni <ezannoni@redhat.com>
8986
8987 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8988 function.
8e0662df
EZ
8989 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8990 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8991 structure returning convention for SYSV ABI case, but not
8992 for GNU/Linux, FreeBSD, or NetBSD.
8993
3121eff0
DJ
89942002-03-22 Daniel Jacobowitz <drow@mvista.com>
8995
8996 * symtab.h (lookup_block_symbol): Add mangled_name argument
8997 to prototype.
8998
8999 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9000 with new mangled_name argument.
9001 * linespec.c (decode_line_1): Likewise.
9002 * valops (value_of_this): Likewise.
9003 * symtab.c (lookup_transparent_type): Likewise.
9004 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9005 (lookup_symbol): If we are given a mangled name, pass it down
9006 to lookup_symbol_aux.
9007 (lookup_block_symbol): If we are given a mangled name to check
9008 against, only return symbols which match it.
9009
349b409f
CF
90102002-03-22 Christopher Faylor <cgf@redhat.com>
9011
9012 * win32-nat.c (child_create_inferior): Check for proper shell to use
9013 here, in case the user changes it on the fly.
9014 (_initialize_inftarg): Remove shell path considerations.
9015
2a873819
EZ
90162002-03-21 Elena Zannoni <ezannoni@redhat.com>
9017
9018 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9019 for gdbarch_max_register_raw_size and max_register_virtual_size.
9020 Adjust copyright year.
9021
a1b9830c
DJ
90222002-03-21 Daniel Jacobowitz <drow@mvista.com>
9023
9024 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9025 in a function to cover the entire beginning of the function
9026 as well if it does not already.
9027
8b5790f2
TR
90282002-03-21 Tom Rix <trix@redhat.com>
9029
9030 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9031 (rs6000_ptrace64): Renamed from ptrace64.
9032
bdbe5747
MH
90332002-03-20 Martin M. Hunt <hunt@redhat.com>
9034
9035 * gdbserver/remote-utils.c (remote_open): Don't call
9036 getprotobyname, we're all using TCP here so just use
9037 IPPROTO_TCP.
7e336ba1 9038 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9039
90402002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9041
bdbe5747
MH
9042 * regcache.c (_initialize_regcache): No need to call
9043 build_regcache() at this time; it gets called whenever
9044 the gdbarch changes.
9045
7781cd62
DB
90462002-03-20 David O'Brien <obrien@FreeBSD.org>
9047
9048 * sparc-nat.c: Include sys/param.h where possible.
9049
f65ca430
DJ
90502002-03-20 Daniel Jacobowitz <drow@mvista.com>
9051
9052 Fix PR gdb/422.
9053 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9054 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9055 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9056 complex types.
9057 * stabsread.c (rs6000_builtin_type): Likewise.
9058 (read_sun_floating_type): Likewise.
9059
0c867556
PS
90602002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9061
9062 * stabsread.c (read_member_functions): Remove skip code for duplicate
9063 constructor/destructor methods. Use standard parsing for these
9064 methods and just do not chain them to the list of methods after
9065 parsing.
9066
12b9c64f
AO
90672002-03-19 Alexandre Oliva <aoliva@redhat.com>
9068
9069 * coffread.c: Remove redundant static declarations. Replace
9070 occurrences of `PTR' with `void *'.
9071 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9072 * top.h (quit_cover): Likewise.
9073 * defs.h (catch_errors): Likewise.
9074
349c5d5f
AC
90752002-03-18 Andrew Cagney <ac131313@redhat.com>
9076
9077 * defs.h (XMALLOC): Define.
9078 * gdb-events.sh (XMALLOC): Delete macro.
9079 * gdb-events.c, gdb-events.h: Regenerate.
9080 * gdbarch.sh (XMALLOC): Delete macro.
9081 * gdbarch.c: Regenerate.
9082 * serial.c (XMALLOC): Delete macro.
9083 * ui-file.c (XMALLOC): Ditto.
9084 * ser-unix.h (XMALLOC): Ditto.
9085 * sh-tdep.c (XMALLOC): Ditto.
9086 * ui-out.c (XMALLOC): Ditto.
9087 * utils.c (XMALLOC): Ditto.
9088 * i386-tdep.c (XMALLOC): Ditto.
9089 * gdb-events.c (XMALLOC): Ditto.
9090 * d10v-tdep.c (XMALLOC): Ditto.
9091 * cli-out.c (XMALLOC): Ditto.
9092
9093 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9094 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9095 * ui-file.c, ui-out.c: Ditto.
9096
7d0766f3
AC
90972002-03-18 Andrew Cagney <ac131313@redhat.com>
9098
9099 * command.h (struct cmd_list_element): Add field context.
9100 (set_cmd_context, get_cmd_context): Declare.
9101 * cli/cli-decode.h: Ditto.
9102 * cli/cli-decode.c (get_cmd_context): New function.
9103 (set_cmd_context): New function.
9104 (add_cmd): Initialize context.
9105 Part of fixing PR gdb/145 and PR gdb/146.
9106
5913bcb0
AC
91072002-03-17 Andrew Cagney <ac131313@redhat.com>
9108
1868c04e
AC
9109 * cli/cli-decode.c (cmd_type): New function.
9110 * command.h (cmd_type): Declare.
9111 * infrun.c (set_schedlock_func): Call function cmd_type.
9112 * kod.c (kod_set_os): Call cmd_type.
9113 * cris-tdep.c (cris_version_update): Use function cmd_type.
9114 (cris_mode_update, cris_abi_update): Ditto.
9115
5913bcb0
AC
9116 * command.h: (execute_cmd_post_hook): Declare.
9117 (execute_cmd_pre_hook): Declare.
9118 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9119 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9120 functions. Execute pre/post hook while ensuring that afterwords
9121 hook_in is cleared.
9122 * top.c (execute_command): Use execute_cmd_post_hook, and
9123 execute_cmd_pre_hook to execute pre/post commands.
9124 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9125 hook_stop_stub.
9126 (hook_stop_stub): Call execute_cmd_pre_hook.
9127
b51450c9
AC
91282002-03-17 Andrew Cagney <ac131313@redhat.com>
9129
9130 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9131 set'' and this leads to a core dump. Move xstrdup of
9132 operating_system to after check that it is not NULL.
9133
f66c9f11
AC
91342002-03-17 Andrew Cagney <ac131313@redhat.com>
9135
8e694ecf
AC
9136 * kod.c (kod_set_os): Remove unnecessary check that
9137 ``command->type'' is set_cmd.
9138
f66c9f11
AC
9139 * valprint.c (set_input_radix): Use input_radix.
9140 (set_output_radix): Use output_radix.
9141 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9142 isn't reverted.
9143
9d01611c
AC
91442002-03-16 Andrew Cagney <ac131313@redhat.com>
9145
9146 * value.h (struct value): Delete field ``substring_addr''. Change
9147 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9148 force_core_addr_align and force_pointer_aligh.
9149
9150 * value.h (struct value): Fix typo in above change.
9d01611c 9151
4156bb53
PS
91522002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9153
9154 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9155 to fix internal_error from ``maintenance print architecture''.
9156
0e5e3ea6
PS
91572002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9158
9159 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9160 for gcc versions after gcc-2.8.1.
9161
9b013045
PS
91622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9163
9164 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9165 for method resolution. Restore adjustment of ``this'' pointer after
9166 calling value_struct_elt, which was accidentally removed during the
9167 HP merge.
9168
376c9600
AC
91692002-03-15 Andrew Cagney <ac131313@redhat.com>
9170
9171 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9172 value_of_register.
9173 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9174 get_saved_register.
9175 * value.h (value_of_register): Update.
9176
a4db0f07
RH
91772002-03-14 Richard Henderson <rth@redhat.com>
9178
9179 * configure.in: Detect declaration for canonicalize_file_name.
9180 * utils.c (canonicalize_file_name): Declare, if needed.
9181 (gdb_realpath): Prefer realpath if available and usable.
9182 * config.in, configure: Rebuild.
9183
96383835
RH
91842002-03-14 Richard Henderson <rth@redhat.com>
9185
9186 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9187 a constant array bound.
9188
9189 * MAINTAINERS: Add myself to write-after-approval.
9190
75245b24
MS
91912002-03-14 Michael Snyder <msnyder@redhat.com>
9192
9193 * symfile.c (syms_from_objfile): Return immediately if no syms.
9194 (symbol_file_add): Return immediately if no syms.
9195 (find_sym_fns): Return immediately if no syms.
9196
e641a1ca
ML
91972002-03-13 Michal Ludvig <mludvig@suse.cz>
9198
9199 * gdbserver/remote-util.c (remote_open): Print remote-side's
9200 IP address when remote debugging over the network.
7e336ba1 9201
df08bfec
DB
92022002-03-12 David O'Brien <obrien@FreeBSD.org>
9203
9204 * config/sparc/fbsd.mh: Fix copyright.
9205 * config/sparc/fbsd.mt: Likewise.
9206
9a57864f
RE
92072002-03-11 Richard Earnshaw <rearnsha@arm.com>
9208
9209 * MAINTAINERS: Fix typo in name of gdb warnings option.
9210 (x86-64): Fix formating so that this can be parsed by awk.
9211
dd7bf85e
DJ
92122002-03-10 Daniel Jacobowitz <drow@mvista.com>
9213
9214 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9215 * defs.h: Include "gdb/signals.h".
9216 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9217
33a0a2ac
ML
92182002-03-10 Michal Ludvig <mludvig@suse.cz>
9219
9220 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9221 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9222 from x86-64-tdep.h
9223
dd824b04
DJ
92242002-03-10 Daniel Jacobowitz <drow@mvista.com>
9225 Don Howard <dhoward@redhat.com>
9226
9227 * mips-tdep.c (ST0_FR): Define.
9228 (mips2_fp_compat): New function, temporarily disabled.
9229 (mips_read_fp_register_single): New function.
9230 (mips_read_fp_register_double): New function.
9231 (mips_print_register): Use them.
9232 (do_fp_register_row): Likewise.
9233
6a41ff59
AC
92342002-03-09 Andrew Cagney <ac131313@redhat.com>
9235
9236 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9237 approval''.
9238
4ea09c10
PS
92392002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9240
9241 * stabsread.c (read_member_functions): Fix is_stub test for
9242 static member functions, improve comment.
9243
6ccc741d
RE
92442002-03-07 Richard Earnshaw <rearnsha@arm.com>
9245
9246 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9247 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9248 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9249 commands that set boolean values.
9250 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9251 (arm_rdi_resume): Always initialize PC.
9252 (arm_rdi_open): Don't use rslt as a boolean.
9253 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9254 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9255 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9256 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9257
438013df
AO
92582002-03-06 Alexandre Oliva <aoliva@redhat.com>
9259
9260 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9261 * configure: Rebuilt.
9262
70ed8774
SC
92632002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9264
9265 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9266 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9267
5ba2abeb
AC
92682002-03-06 Andrew Cagney <ac131313@redhat.com>
9269
9270 * cli/cli-decode.c (set_cmd_completer): New function.
9271 * command.h (set_cmd_completer): Declare.
9272 * cli/cli-decode.h (set_cmd_completer): Ditto.
9273
9274 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9275 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9276 * win32-nat.c (_initialize_inftarg): Ditto.
9277 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9278 * proc-api.c (_initialize_proc_api): Ditto.
9279 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9280 * source.c (_initialize_source): Ditto.
9281 * exec.c (_initialize_exec): Ditto.
9282 * solib.c (_initialize_solib): Ditto.
9283 * top.c (init_main): Ditto.
9284 * tracepoint.c (_initialize_tracepoint): Ditto.
9285 * symfile.c (_initialize_symfile): Ditto.
9286 * printcmd.c (_initialize_printcmd): Ditto.
9287 * infcmd.c (_initialize_infcmd): Ditto.
9288 * corefile.c (_initialize_core): Ditto.
9289
f779ca99
AC
92902002-03-05 Andrew Cagney <ac131313@redhat.com>
9291
9292 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9293
01a3934b
AC
92942002-03-05 Andrew Cagney <ac131313@redhat.com>
9295
9296 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9297
37057839
AC
92982002-03-05 Andrew Cagney <ac131313@redhat.com>
9299
9300 * NEWS: Update headings, 5.2 has branched.
9301
c6ecbae5
DJ
93022002-03-04 Daniel Jacobowitz <drow@mvista.com>
9303
9304 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9305 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9306 (register_addr, REGISTER_RAW_SIZE): Likewise.
9307 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9308 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9309
e9f30c21
ML
93102002-03-03 Michal Ludvig <mludvig@suse.cz>
9311
9312 * MAINTAINERS (x86-64): Add myself.
9313 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9314 changed value_ptr -> struct value *
9315
54394ac3
DB
93162002-03-01 David O'Brien <obrien@FreeBSD.org>
9317
9318 * configure.host (sparc64-*-freebsd): Add.
9319 * configure.tgt: Likewise.
9320 * config/sparc/fbsd.mh: New file.
9321 * config/sparc/fbsd.mt: Likewise.
9322 * config/sparc/nm-fbsd.h: Likewise.
9323 * config/sparc/tm-fbsd.h: Likewise.
9324
bfe95955
DJ
93252002-03-01 Daniel Jacobowitz <drow@mvista.com>
9326
9327 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9328 regformats/reg-s390x.dat.
9329
f33c6cbf
AC
93302002-03-01 Andrew Cagney <ac131313@redhat.com>
9331
9332 * utils.c: Add FIXME explaining true/false problem.
9333
5ecaa7dd
AC
93342002-02-28 Andrew Cagney <ac131313@redhat.com>
9335
9336 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9337
2a251cc2
MC
93382002-02-28 Michael Chastain <mec@shout.net>
9339
9340 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9341
6a8031a3 93422002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9343
9344 * gdbserver/linux-s390-low.c: New file.
9345 * regformats/reg-s390.dat: New file.
9346 * regformats/reg-s390x.dat: New file.
9347 * gdbserver/configure.srv: Add S/390.
9348 * gdbserver/Makefile.in: Add S/390.
9349 * configure.tgt: Enable gdbserver for S/390.
9350
ac469903
EZ
93512002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9352
9353 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9354 first line of the doc string for "info dos", except at the end of
9355 the sentence, since the short help stops at the first period.
9356
985cb1a3
JM
93572002-02-28 Jason Merrill <jason@redhat.com>
9358
9359 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9360
c570663e
FF
93612002-02-27 Fred Fish <fnf@redhat.com>
9362
9363 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9364 comment (dumy -> dummy).
9365
43630227
PS
93662002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9367
9368 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9369
b84911e8
RB
93702002-02-27 Rodney Brown <rbrown64@csc.com.au>
9371
9372 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9373
58caa3dc
DJ
93742002-02-27 Daniel Jacobowitz <drow@mvista.com>
9375
9376 * gdbserver/acconfig.h: New file.
9377 * gdbserver/i387-fp.c: New file.
9378 * gdbserver/i387-fp.h: New file.
9379 * gdbserver/linux-x86-64.c: New file.
9380 * regformats/reg-x86-64.dat: New file.
9381 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9382 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9383 * gdbserver/configure.in: Add support for regsets.
9384 * gdbserver/config.in: Regenerate.
9385 * gdbserver/configure: Regenerate.
9386 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9387 * gdbserver/linux-low.h: New file.
9388 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9389 for regsets.
9390 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9391 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9392 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9393 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9394 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9395 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9396 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9397 "i387-fp.h". Add PTRACE_GETREGS and friends.
9398 * gdbserver/regcache.c (supply_register): New function.
9399 (supply_register_by_name): New function.
9400 (collect_register): New function.
9401 (collect_register_by_name): New function.
9402
93652174
DJ
94032002-02-27 Daniel Jacobowitz <drow@mvista.com>
9404
9405 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9406 (config.status): Add configure.srv dependency.
9407 (server_h): Add config.h dependency.
9408
a02e4a61
DJ
94092002-02-27 Daniel Jacobowitz <drow@mvista.com>
9410
9411 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9412 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9413 * gdbserver/configure.srv: Change i386-*-linux* to use
9414 reg-i386-linux.o.
9415
ce0eebec
AC
94162002-02-26 Andrew Cagney <ac131313@redhat.com>
9417
9418 * x86-64-tdep.c: Re-indent. Update copyright date.
9419
82dbc5f7
AC
94202002-02-26 Andrew Cagney <ac131313@redhat.com>
9421
9422 From Michal Ludvig <mludvig@suse.cz>:
9423 * x86-64-tdep.c (value.h): Delete.
9424 (gdb_assert.h): Include.
9425 (x86_64_register_convert_to_virtual,
9426 x86_64_register_convert_to_raw ): Add check which lets only
9427 floating-point values to be converted.
9428 (value_push): Delete.
9429 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9430 (i386_gdbarch_init): Number of register_bytes fixed.
9431
e4621584
AC
94322002-02-26 Andrew Cagney <ac131313@redhat.com>
9433
9434 * MAINTAINERS: Add x86-64 target.
9435
81a9a963
AC
94362002-02-26 Andrew Cagney <ac131313@redhat.com>
9437
9438 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9439 * osfsolib.c (solib_map_sections): Ditto.
9440 * irix5-nat.c (solib_map_sections): Ditto.
9441 * corelow.c (gdb_check_format): Ditto.
9442 * symfile.c (symfile_bfd_open): Ditto.
9443 * solib.c (solib_map_sections): Ditto.
9444 Fix PR gdb/354.
7e336ba1 9445
0f017ab9
AC
94462002-02-26 Andrew Cagney <ac131313@redhat.com>
9447
9448 * remote.c (_initialize_remote): By default, disable ``e'' and
9449 ``E'' step out-of-range packets.
9450
75738c29
AS
94512002-02-26 Andreas Schwab <schwab@suse.de>
9452
9453 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9454 m68k_linux_frame_saved_pc.
9455 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9456 in_sigtramp.
9457 (SIGCONTEXT_PC_OFFSET): Remove.
9458 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9459 m68k_linux_sigtramp_saved_pc): New functions.
9460 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9461 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9462 (UCONTEXT_PC_OFFSET): Define.
9463 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9464 non-RT and RT signal trampolines.
9465
7e8ed687
RE
94662002-02-26 Richard Earnshaw <rearnsha@arm.com>
9467
9468 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9469 (TARGET_NBPG, STACK_END_ADDR): Delete
9470 (VARIABLES_INSIDE_BLOCK): Delete.
9471
6972bc8b
AC
94722002-02-25 Andrew Cagney <ac131313@redhat.com>
9473
9474 * utils.c (perror_with_name): Make string parameter constant.
9475 (print_sys_errmsg): Ditto.
9476 (query): Ditto.
9477 * defs.h (perror_with_name): Update.
9478 (print_sys_errmsg): Update.
9479 (query): Update.
9480
aa32f823
DJ
94812002-02-25 Daniel Jacobowitz <drow@mvista.com>
9482
9483 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9484 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9485
19caaa45
PS
94862002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9487
9488 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9489 if it already matches the current architecture from the exec file.
9490 Include arch-utils.h for gdbarch_info_init prototype.
9491 * Makefile.in (rs6000-nat.o): Update dependencies.
9492
d951901f
EZ
94932002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9494
9495 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9496 list of exported variables.
9497
7ea81414
DJ
94982002-02-24 Daniel Jacobowitz <drow@mvista.com>
9499
9500 * gdbserver/configure.srv: New file.
9501 * gdbserver/configure.in: Use configure.srv instead
9502 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9503 from it.
9504 * gdbserver/configure: Regenerated.
9505 * gdbserver/terminal.h: New file.
9506 * gdbserver/Makefile.in: Update for configure changes. Remove
9507 more unneeded include paths.
9508
080fe24b
AC
95092002-02-24 Andrew Cagney <ac131313@redhat.com>
9510
9511 From wiz at danbala:
9512 * config/sparc/tm-sp64.h: Fix grammar and typos.
9513 Fix PR gdb/287.
9514
8605d56e
AC
95152002-02-24 Andrew Cagney <ac131313@redhat.com>
9516
9517 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9518 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9519 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9520 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9521 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9522 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9523 * s390-tdep.c: Ditto.
92362027
AC
9524 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9525 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9526 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9527 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9528 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9529 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9530 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9531 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9532 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9533 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9534 Fix PR gdb/378.
7e336ba1 9535
8ed32cc0
AC
95362002-02-23 Andrew Cagney <ac131313@redhat.com>
9537
a3007b6f
AC
9538 * lin-thread.c: Delete file.
9539 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9540 to gdb_proc_service.h.
9541 * configure: Re-generate.
9542
50a9e2f1
AC
9543 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9544 * serial.c (serial_open): Delete check for "ocd".
9545 Fix PR gdb/349.
9546
8b6e7932
AC
9547 * Makefile.in (linux-thread.o): Delete target.
9548 * linux-thread.c: Delete file.
9549
d155c46b
AC
9550 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9551 renamed SH files to be consistent.
9552
8ed32cc0
AC
9553 * symtab.c (sort_search_symbols): Use xfree.
9554
0e18d038
RE
95552002-02-23 Richard Earnshaw <rearnsha@arm.com>
9556
9557 * arm-linux-tdep.c (arm_linux_init_abi): Register
9558 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9559 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9560 definition with undef, since we don't want the sysvr4 definition.
9561 (SKIP_TRAMPOLINE_CODE): Likewise.
9562
27aac7ff
AC
95632002-02-23 Andrew Cagney <ac131313@redhat.com>
9564
9565 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9566
9567 * configure.in: (AC_CHECK_FUNCS) Added test for
9568 canonicalize_file_name Regenerated.
9569 * config.in, configure: Regenerated.
9570 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9571 defined use canonicalize_file_name.
7e336ba1 9572
65a6e0ee
MC
95732002-02-23 Michael Chastain <mec@shout.net>
9574
9575 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9576
47b95330
AC
95772002-02-23 Andrew Cagney <ac131313@redhat.com>
9578
9579 * README: Remove references to cygnus.com.
9580 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9581 dot com'' form. Remove references to cygnus.com and sourceware.
9582
696f451b
AC
95832002-02-23 Andrew Cagney <ac131313@redhat.com>
9584
9585 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9586 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9587 1003.1-2001 no longer allows "head -1".
9588 * gdb/Makefile.in (version.c): Likewise.
9589 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9590 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9591 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9592
bbaca940
AC
95932002-02-23 Andrew Cagney <ac131313@redhat.com>
9594
9595 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9596 * command.h (cmd_cfunc_eq): Declare.
9597 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9598
9599 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9600 ``struct cmd_list_element *''.
9601 * cli/cli-cmds.c (is_complete_command): Update. Use
9602 cmd_cfunc_eq.
9603 * top.c (execute_command): Pass the command to
9604 is_complete_command.
9605 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9606
b8b8b047
AC
96072002-02-23 Andrew Cagney <ac131313@redhat.com>
9608
9609 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9610 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9611 architecture defines.
9612 * s390-tdep.c (s390_gdbarch_init): Likewise.
9613
19d3fc80
RE
96142002-02-23 Richard Earnshaw <rearnsha@arm.com>
9615
9616 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9617 (arm_linux_push_arguments): Likewise.
9618 (arm_linux_init_abi): Register them. Also register linux-specific
9619 call_dummy_words.
9620 (find_minsym_and_objfile): Use strcmp, not STREQ.
9621 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9622 (arm_linux_call_dummy_words): Delete declaration.
9623 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9624 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9625 declarations.
9626 (LOWEST_PC): Delete.
9627
3ab13650
PS
96282002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9629
9630 * maint.c (print_section_info): Do not prepend `0x' to filepos
9631 output, it will be handled by local_hex_string_custom.
9632
19d3fc80 96332002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9634
9635 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9636 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9637 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9638
d85a5daf
JB
96392002-02-22 Jim Blandy <jimb@redhat.com>
9640
9641 Indicate that the bcache functions don't change the strings
9642 they're passed.
9643 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9644 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9645
eeb25b8a
PM
96462002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9647
9648 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9649
6badb179
CF
96502002-02-21 Christopher Faylor <cgf@redhat.com>
9651
9652 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9653 find the complete path to a loaded DLL.
9654
e8717518
FF
96552002-02-21 Fred Fish <fnf@redhat.com>
9656
9657 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9658 that marks the end of the range of a function, enter a line number
9659 entry that has a line number of zero and a PC offset that matches
9660 the end of the function. This starts a range of PC's for which no
9661 line number information is known.
9662 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9663 PC's for which no line number info is found (line number is zero)
9664 then we didn't find any valid line information.
9665 * symtab.h: Document use of zero line number entry.
9666
9abe5450
EZ
96672002-02-21 Elena Zannoni <ezannoni@redhat.com>
9668
9669 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9670 (have_ptrace_getvrregs): Define for run time checks.
9671 (gdb_vrregset_t): New type for Altivec register handling.
9672 (fetch_register, store_register): Fetch/store altivec register
9673 when needed.
9674 (fetch_altivec_register, store_altivec_register): New functions.
9675 (supply_vrregset, fill_vrregset): New functions.
9676 (fetch_altivec_registers, store_altivec_registers): New functions.
9677 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9678 registers as well.
9679
aaa38bb5
AJ
96802002-02-21 Jiri Smid <smid@suse.cz>
9681
9682 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9683
b34db576
RE
96842002-02-21 Richard Earnshaw <rearnsha@arm.com>
9685
9686 * Makefile.in (armnbsd-nat.o): Update dependencies.
9687 * armnbsd-nat.c (supply_gregset): New function. Common code to
9688 supply the integer register set.
9689 (supply_fparegset): New function. Similar for FPA registers.
9690 (fetch_regs, fetch_fp_regs): Use them.
9691 (fetch_core_registers): Likewise.
9692 (fetch_elfcore_registers): New function.
9693 (arm_netbsd_elfcore_fns): New core-file type specification.
9694 (_initialize_arm_netbsd_nat): Register it.
9695
3e56fc4b
RE
96962002-02-21 Richard Earnshaw <rearnsha@arm.com>
9697
9698 * armnbsd-nat.c: Include gdbcore.h.
9699 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9700 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9701 'void' to declaration, to shut up ARI.
9702 (fetch_core_registers): Make static. Rewrite using supply_register.
9703 (arm_netbsd_core_fns): New core-file type specification.
9704 (_initialize_arm_netbsd_nat): New function.
9705
097f6b0b
CF
97062002-02-21 Christopher Faylor <cgf@redhat.com>
9707
9708 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9709 value.
9710
c914e0cc
CF
97112002-02-20 Christopher Faylor <cgf@redhat.com>
9712
9713 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9714 fails.
9715
385fa495
DJ
97162002-02-20 Daniel Jacobowitz <drow@mvista.com>
9717
9718 * jv-exp.y (parse_number): Change type of implicit longs
9719 to builtin_type_uint64.
9720
e5f1222d
DJ
97212002-02-20 Daniel Jacobowitz <drow@mvista.com>
9722
9723 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9724 to be an integer instead of a `union wait'.
9725
75c9abc6
DJ
97262002-02-20 Daniel Jacobowitz <drow@mvista.com>
9727
9728 * mips-linux-nat.c: Call the operating system GNU/Linux.
9729 * mips-linux-tdep.c: Likewise.
9730 * mips-tdep.c: Likewise.
9731
551792a5
DJ
97322002-02-20 Daniel Jacobowitz <drow@mvista.com>
9733
9734 Fix PR gdb/265.
9735 * jv-exp.y (parse_number): Handle 64-bit integers.
9736
ee6e2b82
DJ
97372002-02-20 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9740 AC_STDC_HEADERS to AC_HEADER_STDC.
9741 * gdbserver/configure: Regenerated.
9742
a48442a0
RE
97432002-02-20 Richard Earnshaw <rearnsha@arm.com>
9744
9745 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9746 is defined.
9747 * sparc-tdep.c (get_longjmp_target): Likewise.
9748
fe419ffc
RE
97492002-02-20 Richard Earnshaw <rearnsha@arm.com>
9750
9751 * News: Add news about ARM and Multi-arch. Mention the new target
9752 arm*-*-netbsd*.
9753
5832ed7e
JB
97542002-02-19 Jim Blandy <jimb@redhat.com>
9755
9756 * stabsread.c (error_type_complaint): Improve error message.
9757
84563040
DJ
97582002-02-19 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * gdbserver/README: Update documentation.
9761 * gdbserver/configure.in: Update configury to match documentation.
9762 * gdbserver/Makefile.in: Likewise.
9763 * gdbserver/configure: Regenerated.
9764 * gdbserver/aclocal.m4: New file, generated by aclocal.
9765 * gdbserver/config.in: New file, generated by autoheader.
9766
375fd65b
RE
97672002-02-19 Richard Earnshaw <rearnsha@arm.com>
9768
9769 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9770 armnbsd-nat.c.
9771
08216dd7
RE
97722002-02-19 Richard Earnshaw <rearnsha@arm.com>
9773
9774 * arm-tdep.h (enum arm_float_model): New enum.
9775 (struct gdbarch_tdep): Add fp_model.
9776 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9777 up floating-point conversions until we know the floating-point model
9778 in use by the inferior. Don't complain about being unable to
9779 determine the ABI of the inferior when we don't have one.
9780 (arm_extract_return_value): Support different floating-point models.
9781 (arm_store_return_value): Likewise.
aaa38bb5 9782 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9783 ARM_FLOAT_SOFT.
9784 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9785
65d6d66a
PS
97862002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9787
9788 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9789 of ``current_gdbarch''.
9790
47221191
RE
97912002-02-19 Richard Earnshaw <rearnsha@arm.com>
9792
9793 * armnbsd-nat.c : ANSIfy all function declarations.
9794 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9795 (fetch_inferior_registers): Re-implement in terms of above.
9796 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9797 (store_inferior_registers): Re-implement in terms of above.
9798
fdf39c9a
RE
97992002-02-19 Richard Earnshaw <rearnsha@arm.com>
9800
aaa38bb5 9801 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9802 kernel.
9803 * arm-linux-tdep.c: Likewise.
9804 * config/arm/tm-linux.h: Likewise.
9805
93247f88
RE
98062002-02-19 Richard Earnshaw <rearnsha@arm.com>
9807
9808 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9809 * config/arm/nbsd.mt (TM_FILE): Delete.
9810 * config/arm/tm-nbsd.h: Delete.
9811
d7b486e7
RE
98122002-02-19 Richard Earnshaw <rearnsha@arm.com>
9813
9814 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9815 Initialize CALL_DUMMY_LENGTH.
9816
41d39a95
RE
98172002-02-19 Richard Earnshaw <rearnsha@arm.com>
9818
9819 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9820 function.
9821 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9822 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9823 defines one thing and that is incorrect for this port.
9824 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9825
e1195560
PM
98262002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9827
9828 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9829
c1748f97
PM
98302002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9831
9832 * win32-nat.c (display_selector): New function. Displays information
9833 about the information returned by GetThreadSelectorEntry API function.
9834 (display_selectors): New function. Displays the infomation of
9835 the selector given as argument, or of CS, DS ans FS selectors
9836 if no argument is given.
9837 ( _initialize_inftarg): Add "w32" as info prefix command.
9838 Add "info w32 selector" as command calling display_selectors.
9839
e41e6bbf
PM
98402002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9841
9842 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9843 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9844 if not defined.
9845
0d3a9f48
RE
98462002-02-18 Richard Earnshaw <rearnsha@arm.com>
9847
9848 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9849
3fb4b924
RE
98502002-02-18 Richard Earnshaw <rearnsha@arm.com>
9851
9852 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9853 (arm_fix_call_dummy): Call it.
9854 (arm_call_dummy_breakpoint_offset): Delete.
9855 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9856 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9857
7f55af32
AC
98582002-02-18 Andrew Cagney <ac131313@redhat.com>
9859
9860 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9861 Default to func_frame_chain_valid.
9862 * gdbarch.h, gdbarch.c: Re-generate.
9863 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9864
05f13b9c
EZ
98652002-02-18 Elena Zannoni <ezannoni@redhat.com>
9866
9867 * ppc-linux-nat.c: Update copyright.
9868 (fetch_register, store_register): Add tid parameter, don't compute
9869 tid here.
9870 (fetch_ppc_registers, store_ppc_registers): Add tid
9871 parameter. Pass it along to callees.
9872 (fetch_inferior_registers, store_inferior_registers): Compute tid
9873 here, and pass it to calleed functions.
9874 (fill_gregset, supply_fpregset): Clean up formatting.
9875
d7afb4c9
RE
98762002-02-18 Richard Earnshaw <rearnsha@arm.com>
9877
9878 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9879 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9880
9df628e0
RE
98812002-02-18 Richard Earnshaw <rearnsha@arm.com>
9882
9883 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9884 * gdbarch.c gdbarch.h: Regenerate.
9885 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9886 function.
9887 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9888 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9889 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9890
9891 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9892 * arm-tdep.c (arm_get_longjmp_target): New function.
9893 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9894 this to a positive value register arm_get_longjmp_target as the
9895 longjmp handler.
9896 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9897 (arm_linux_init_abi): Set up longjmp description in tdep.
9898 * armnbsd-nat.c (get_longjmp_target): Delete.
9899 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9900 description in tdep.
9901 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9902 (get_longjmp_target): Delete declaration.
9903 (GET_LONGJMP_TARGET): Delete.
9904 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9905 (GET_LONGJMP_TARGET): Delete.
9906
57bc8964
KB
99072002-02-17 Kevin Buettner <kevinb@redhat.com>
9908
9909 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9910 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9911 of ``current_gdbarch''.
9912
83d31a92
TT
99132002-02-17 Tom Tromey <tromey@redhat.com>
9914
9915 * cli/cli-cmds.c (compare_strings): New function.
9916 (complete_command): Only print each unique item once.
9917 * completer.h (complete_line): Declare.
9918 * completer.c (complete_line): New function.
9919 (line_completion_function): Use it.
9920
17ef5d92
AC
99212002-02-16 Andrew Cagney <ac131313@redhat.com>
9922
9923 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9924 * gdbarch.h, gdbarch.c: Re-generate.
9925
491b8946
DJ
99262002-02-16 Daniel Jacobowitz <drow@mvista.com>
9927
9928 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9929
99302002-02-16 Daniel Jacobowitz <drow@mvista.com>
9931
9932 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9933 * valops.c (value_arg_coerce): Don't take the address of a reference
9934 to convert an argument to a reference.
9935
dfe7f3ac
CF
99362002-02-15 Christopher Faylor <cgf@redhat.com>
9937
9938 * win32-nat.c (get_image_name): New function.
9939 (handle_load_dll): Use get_image_name function.
9940 (get_child_debug_event): Avoid registering debug events until possibly
9941 execed process is started.
9942 (child_create_inferior): Allow invocation via shell so that command
9943 line redirection, etc. works ok.
9944 (_initialize_inftarg): Add new command: "set shell" to control whether
9945 a shell is used to start a process.
9946
1d33e73a
DJ
99472002-02-15 Daniel Jacobowitz <drow@mvista.com>
9948
9949 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9950 instead of find_register_by_number.
9951 (cannot_store_register): Likewise.
9952
48cd0caa
PM
99532002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9954
aaa38bb5 9955 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9956 fprintf_unfiltered (gdb_stderr, ...).
9957
8656e7d8
DJ
99582002-02-15 Daniel Jacobowitz <drow@mvista.com>
9959
9960 * gdbserver/gdbserver.1: Document --attach.
9961
66e810cd
RE
99622002-02-15 Richard Earnshaw <rearnsha@arm.com>
9963
9964 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9965 descriptions.
9966 * arm-tdep.c (arm_default_arm_le_breakpoint)
9967 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9968 (arm_default_thumb_be_breakpoint): New. Initialize them from
9969 traditional breakpoint defines.
9970 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9971 (arm_gdbarch_init): Initialize new breakpoint variables.
9972 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9973 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9974 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9975 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9976 code out to ...
9977 (arm_netbsd_init_abi_common): ... here; new function.
9978 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9979 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9980 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9981 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9982
97e03143
RE
99832002-02-15 Richard Earnshaw <rearnsha@arm.com>
9984
9985 * arm-tdep.h (enum arm_abi): New enum.
9986 (struct gdbarch_tdep): New structure.
9987 (LOWEST_PC): Provide a default.
9988 (arm_gdbarch_register_os_abi): Declare new function.
9989 * arm-tdep.c (arm_abi_names): New array.
9990 (process_note_abi_tag_sections): New function.
9991 (get_elfosabi): New function.
9992 (arm_gdbarch_register_os_abi): New function.
9993 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9994 support for that ABI has been built in, then call the appropriate
9995 configuration routine. Use gdbarch_num_regs() to get the number
9996 of registers.
9997 (arm_dump_tdep): New function.
9998 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9999 place-holder functions.
10000 (_initialize_arm_tdep): Register them.
10001 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10002
10003 * armnbsd-tdep.c: New file.
10004 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10005 * config/arm/nbsd.mt (TDEPFILES): Add it.
10006 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10007
10008 * armnbsd-nat.c: Include regcache.h.
10009 * Makefile.in (armnbsd-nat.o): Update dependency list.
10010
10011 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10012
ad68be46
DJ
100132002-02-14 Daniel Jacobowitz <drow@mvista.com>
10014
10015 * gdbserver/Makefile.in: Fix typos in target rules.
10016
003d6d1d
DJ
100172002-02-14 Daniel Jacobowitz <drow@mvista.com>
10018
aaa38bb5 10019 Fix part of PR gdb/267.
003d6d1d
DJ
10020 * linespec.c (find_methods): Handle constructors specially for now.
10021
6b230f1b
CV
100222002-02-14 Corinna Vinschen <vinschen@redhat.com>
10023
10024 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10025 handling.
10026 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10027 standard_coerce_float_to_double().
10028
1ea98d12
CF
100292002-02-14 Christopher Faylor <cgf@redhat.com>
10030
10031 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10032 GDBINIT_FILENAME.
10033
dd47e6fd
EZ
100342002-02-14 Elena Zannoni <ezannoni@redhat.com>
10035
10036 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10037 find_variant_by_name, because it confuses the multiarch
10038 framework. Return NULL if there isn't an architecture with the
10039 user supplied name, instead of forcing a different one without
10040 recording the change with the multiarch machinery.
10041 (find_variant_by_name): Delete.
10042
d7e39b9e
PS
100432002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10044
10045 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10046 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10047
76e42a4f
MH
100482002-02-13 Martin M. Hunt <hunt@redhat.com>
10049
aaa38bb5 10050 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10051 print_frame_info_listing_hook, set current_source_symtab.
10052
0a30fbc4
DJ
100532002-02-14 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10056 and remove unused $(INCLUDE_DIR).
10057 Add regcache.c to OBS.
10058 Add generated register protocol files to clean target.
10059 Update dependencies for new objects, obsolete old target code.
10060
10061 * gdbserver/linux-low.c: Remove all platform-specific code to
10062 new files. Remove various dead code. Update to use regcache
10063 functionality.
10064 * gdbserver/remote-utils.c (fromhex): Add return statement
10065 to quiet warning.
10066 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10067 constant.
10068 (input_interrupt): Add integer parameter to match prototype
10069 of a signal handler.
10070 (outreg): Use register_data ().
10071 (prepare_resume_reply): Use gdbserver_expedite_regs.
10072 * gdbserver/server.c (main): Dynamically allocate own_buf because
10073 PBUFSIZ is no longer constant. Use registers_to_string () and
10074 registers_from_string ().
10075 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10076 for error (), fatal (), and warning (). Update definition of
10077 PBUFSIZ to use regcache functionality. Add include guard.
10078 * gdbserver/utils.c (fatal): Add missing ``const''.
10079 (warning): New function.
10080
10081 * regformats/regdat.sh: Include "regcache.h" in generated files.
10082 Provide init_registers () function.
10083 * regformats/regdef.h: Add prototype for set_register_cache ().
10084 Add include guard.
10085
10086 * gdbserver/linux-arm-low.c: New file.
10087 * gdbserver/linux-i386-low.c: New file.
10088 * gdbserver/linux-ia64-low.c: New file.
10089 * gdbserver/linux-m68k-low.c: New file.
10090 * gdbserver/linux-mips-low.c: New file.
10091 * gdbserver/linux-ppc-low.c: New file.
10092 * gdbserver/linux-sh-low.c: New file.
10093
10094 * gdbserver/regcache.c: New file.
10095 * gdbserver/regcache.h: New file.
10096
10097 * gdbserver/low-linux.c: Removed obsolete file.
10098
4cc841d0
DJ
100992002-02-14 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10102 * config/i386/linux.mt: Likewise.
10103 * config/ia64/linux.mt: Likewise.
10104 * config/m68k/linux.mh: Likewise.
10105 * config/powerpc/linux.mh: Likewise.
10106 * config/mips/linux.mt: Likewise.
10107
10108 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10109
10110 * config/i386/i386lynx.mh: Mark gdbserver variables
10111 as (currently) obsolete for this target.
10112 * config/i386/nbsd.mt: Likewise.
10113 * config/i386/nbsdelf.mt: Likewise.
10114 * config/m32r/m32r.mt: Likewise.
10115 * config/m68k/m68klynx.mh: Likewise.
10116 * config/m68k/nbsd.mt: Likewise.
10117 * config/m68k/sun3os4.mh: Likewise.
10118 * config/mips/vr5000.mt: Likewise.
10119 * config/ns32k/nbsd.mt: Likewise.
10120 * config/pa/hppabsd.mh: Likewise.
10121 * config/pa/hppaosf.mh: Likewise.
10122 * config/powerpc/nbsd.mt: Likewise.
10123 * config/rs6000/rs6000lynx.mh: Likewise.
10124 * config/s390/s390.mt: Likewise.
10125 * config/s390/s390x.mt: Likewise.
10126 * config/sparc/sparclynx.mh: Likewise.
10127 * config/sparc/sun4os4.mh: Likewise.
10128 * config/i386/x86-64linux.mt: Likewise.
10129 * config/sparc/linux.mh: Likewise.
10130
a85f51e7
DJ
101312002-02-14 Daniel Jacobowitz <drow@mvista.com>
10132
10133 * configure.tgt: Configure gdbserver only for known working
10134 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10135 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10136 SUBDIRS if it is configured. Update comment for ${nativefile}.
10137 * configure: Regenerated.
10138
65554fef
MS
101392002-02-13 Michael Snyder <msnyder@redhat.com>
10140
670a52db
MS
10141 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10142
6dbdc4a3
MS
10143 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10144 (default_gcore_mach): Just return 0, work around a problem in bfd.
10145 (default_gcore_target): OK to return NULL if exec_bfd is null.
10146 (make_mem_sec): Use a cast, avoid a warning.
10147
10148 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10149 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10150 sizeof (host pointer) != sizeof (target pointer)).
10151 (procfs_make_note_section): Avoid overflow in psargs string.
10152
aaa38bb5 10153 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10154 implementation return an error.
10155
101562002-02-13 Rodney Brown <rbrown64@csc.com.au>
10157
10158 * procfs.c (procfs_make_note_section): Provide a default definition
10159 (for alpha-dec-osf4.0f). Fix typos.
10160
1e4d76e7
EZ
101612002-02-13 Elena Zannoni <ezannoni@redhat.com>
10162
10163 * linux-proc.c: Add include of regcache.h.
10164 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10165
b6d1a1d5
AC
101662002-02-13 Andrew Cagney <ac131313@redhat.com>
10167
10168 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10169 * memattr.c (create_mem_region): Disallow useless empty region.
10170 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10171 non-overlapping.
b6d1a1d5 10172
6c6ea35e
MC
101732002-02-13 Michael Chastain <mec@shout.net>
10174
10175 * defs.h: Kill CONST_PTR.
10176 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10177 * c-lang.c (c_builtin_types): Likewise.
10178 * ch-lang.c (ch_builtin_types): Likewise.
10179 * f-lang.c (f_builtin_types): Likewise.
10180 * language.c (unknown_builtin_types): Likewise.
10181 * m2-lang.c (m2_builtin_types): Likewise.
10182 * p-lang.c (pascal_builtin_types): Likewise.
10183 * scm-lang.c (c_builtin_types): Likewise.
10184
3e0b0f48
KS
101852002-02-13 Keith Seitz <keiths@redhat.com>
10186
10187 * arm-tdep.h (arm_get_next_pc): Add declaration.
10188
67255d04
RE
101892002-02-13 Richard Earnshaw <rearnsha@arm.com>
10190
10191 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10192 with other related struct-returning functions.
10193 (arm_extract_struct_value_address): New function.
10194 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10195 initialize float_format, double_format and long_double_format as
10196 appropriate to the endianness of the target.
10197 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10198 (arm_use_struct_convention): Delete declaration.
10199 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10200
079777f6
KS
102012002-02-13 Keith Seitz <keiths@redhat.com>
10202
10203 * defs.h (core_addr_to_string_nz): New function.
10204
34588f23
MK
102052002-02-13 Mark Kettenis <kettenis@gnu.org>
10206
10207 Apply missing bits of 2002-01-15 patch.
10208 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10209 (fill_fpregset): Use i387_fill_fsave.
10210
49b563f9
KS
102112002-02-12 Keith Seitz <keiths@redhat.com>
10212
49b563f9
KS
10213 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10214 (core_addr_to_string_nz): New function.
10215
aeb98c60
RE
102162002-02-11 Richard Earnshaw <rearnsha@arm.com>
10217
10218 * arm-linux-nat.c: Really include arm-tdep.h.
10219 * config/arm/tm-linux.h (struct type, struct value): Declare.
10220
65554fef
MS
102212002-02-11 Michael Snyder <msnyder@redhat.com>
10222
10223 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10224 (gcore section): Ifdef for Solaris and Unixware only.
10225 (procfs_do_thread_registers): Unixware needs one lwpstatus
10226 per thread (not one prstatus or pstatus).
10227 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10228 not over all gdb threads. For unixware, call elfcore_write_pstatus
10229 once before iterating over threads.
10230
34e8f22d
RE
102312002-02-11 Richard Earnshaw <rearnsha@arm.com>
10232
10233 * arm-tdep.h: New file.
10234 * arm-tdep.c: Include arm-tdep.h.
10235 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10236 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10237 (arm_print_float_info, arm_register_type, convert_to_extended)
10238 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10239 (arm_extract_return_value, arm_register_name): Make static.
10240 (arm_software_single_step): Similarly. Fix types in declaration.
10241 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10242 (arm_store_return_value, arm_store_struct_return): New functions.
10243 (arm_gdbarch_init): Register the above functions. Also register
10244 call_dummy_start_offset, sizeof_call_dummy_words,
10245 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10246 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10247 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10248 prologue_cache.saved_regs here, rather than ...
10249 (_initialize_arm_tdep): ... here.
10250 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10251 declarations.
10252 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10253 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10254 (arm_print_float_info, arm_register_type, convert_to_extended)
10255 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10256 (arm_extract_return_value, arm_register_name): Delete declarations.
10257 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10258 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10259 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10260 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10261 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10262 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10263 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10264 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10265 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10266 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10267 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10268 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10269 interface.
10270 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10271 * remote-rdi.c remote-rdp.c: Likewise.
10272 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10273 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10274 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10275 definition.
10276
10277 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10278 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10279 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10280 from non-ARM_ prefixed definitions.
10281 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10282 all uses of above.
10283 * remote-rdi.c remote-rdp.c: Likewise.
10284 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10285
148754e5
RE
102862002-02-11 Richard Earnshaw <rearnsha@arm.com>
10287
10288 * arm-tdep.c (arm_frameless_function_invocation)
10289 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10290 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10291 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10292 (arm_pop_frame, arm_get_next_pc): Make static.
10293 (arm_gdbarch_init): Register above in gdbarch structure.
10294 (arm_read_fp): Renamed from arm_target_read_fp.
10295 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10296 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10297 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10298 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10299 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10300 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10301 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10302 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10303 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10304 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10305 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10306
434d2d4f
DJ
103072002-02-10 Daniel Jacobowitz <drow@mvista.com>
10308
10309 * symtab.c (compare_search_syms): New function.
10310 (sort_search_symbols): New function.
10311 (search_symbols): Sort symbols after searching rather than
10312 before.
10313
55241689
AC
103142002-02-10 Andrew Cagney <ac131313@redhat.com>
10315
10316 * NEWS: Linux -> GNU/Linux.
10317
028c194b
AC
103182002-02-10 Andrew Cagney <ac131313@redhat.com>
10319
10320 * gdbarch.sh: For for level one methods, disallow a definition
10321 when partially multi-arched. Add comments explaining rationale.
10322 * gdbarch.h: Re-generate.
10323
6acf50cd
AC
103242002-02-10 Andrew Cagney <ac131313@redhat.com>
10325
10326 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10327 multi-arch partial.
aaa38bb5 10328
50248794
AC
103292002-02-10 Andrew Cagney <ac131313@redhat.com>
10330
10331 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10332 field. Use diff -u.
10333 * gdbarch.c: Re-generate.
10334
c30e0066
AC
103352002-02-10 Andrew Cagney <ac131313@redhat.com>
10336
9b56c5f3 10337 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10338 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10339 partial.
10340
6e6d6484
AC
103412002-02-10 Andrew Cagney <ac131313@redhat.com>
10342
10343 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10344 multi-arch partial.
10345 (PUSH_ARGUMENTS): Switch to using predefault.
10346 * gdbarch.c: Regenerate.
10347
c203844d
AC
103482002-02-10 Andrew Cagney <ac131313@redhat.com>
10349
10350 * valops.c (PUSH_ARGUMENTS): Delete definition.
10351 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10352 partial. Default to default_push_arguments.
10353 * gdbarch.h, gdbarch.c: Regenerate.
10354
b5a2688f
AC
103552002-02-09 Andrew Cagney <ac131313@redhat.com>
10356
10357 * defs.h (throw_exception): Rename return_to_top_level. Update
10358 comments.
10359 * utils.c (error_stream, internal_verror, quit): Ditto.
10360 * top.c (throw_exception, catcher): Ditto.
10361 * sparclet-rom.c (sparclet_load): Ditto.
10362 * remote.c (interrupt_query, minitelnet): Ditto.
10363 * remote-sds.c (interrupt_query): Ditto.
10364 * remote-mips.c (mips_error, mips_kill): Ditto.
10365 * ocd.c (interrupt_query): Ditto.
10366 * monitor.c (monitor_interrupt_query): Ditto.
10367 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10368 * target.h: Update comment.
aaa38bb5 10369
b5a2688f 10370 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10371
2fa5c1e0
AC
103722002-02-09 Andrew Cagney <ac131313@redhat.com>
10373
10374 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10375 default_double_format.
10376 * gdbarch.h, gdbarch.c: Re-generate.
10377 * findvar.c (floatformat_unknown): Delete variable definition.
10378 * doublest.h (floatformat_unknown): Delete variable declaration.
10379
da966255
JB
103802002-02-09 Jim Blandy <jimb@redhat.com>
10381
10382 * stabsread.c (read_type): Add code to parse Sun's syntax for
10383 prototyped function types.
10384
123a4891
AC
103852002-02-09 Andrew Cagney <ac131313@redhat.com>
10386
10387 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10388 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10389
fb39c8f3
PS
103902002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10391
10392 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10393 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10394 now _initialize_xcoffsolib gets called again and overrides the
10395 commands from solib.c in a native configuration.
10396
0b87a11d
MK
103972002-02-09 Mark Kettenis <kettenis@gnu.org>
10398
10399 * doublest.c (store_typed_floating): Don't try to return a value.
10400 Fixes PR gdb/290.
10401
bdc2fc72
JB
104022002-02-08 Jim Blandy <jimb@redhat.com>
10403
10404 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10405 is prototyped and has no arguments, print its argument list as
10406 `(void)'.
10407
da69bbcf
CD
104082002-02-08 Chris Demetriou <cgd@broadcom.com>
10409
10410 * MAINTAINERS (write-after-approval): Add myself.
10411 (paper-trail): I've escaped!
aaa38bb5 10412
b69571f5
CF
104132002-02-08 Christopher Faylor <cgf@redhat.com>
10414
10415 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10416 changes.
10417 (_initialize_check_for_gdb_ini): Ditto.
10418
f6871398
MH
104192002-02-08 Martin M. Hunt <hunt@redhat.com>
10420
10421 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10422 xaprintf -> xasprintf.
10423
4e52d31c
PM
104242002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10425
10426 * win32-nat.c: Remove use of printf and sprintf functions.
10427
39bbf761
RE
104282002-02-08 Richard Earnshaw <rearnsha@arm.com>
10429
10430 * arm-tdep.c (arm_frame_chain_valid): Make static.
10431 (arm_push_arguments): Likewise.
10432 (arm_gdbarch_init): New function.
10433 (_initialize_arm_tdep): Call it.
10434 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10435 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10436 (FRAME_CHAIN_VALID): Delete.
10437 (arm_frame_chain_valid): Delete declaration.
10438 (PUSH_ARGUMENTS): Delete.
10439 (arm_push_arguments): Delete declaration.
10440 (CALL_DUMMY_P): Delete.
10441
9c9532c9
CV
104422002-02-08 Andrew Cagney <ac131313@redhat.com>
10443 Corinna Vinschen <vinschen@redhat.com>
10444
10445 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10446 on builtin float types.
10447
4e8f7a8b
DJ
104482002-02-08 Daniel Jacobowitz <drow@mvista.com>
10449
10450 * utils.c: Include <curses.h> before "bfd.h".
10451 * tui/tui-hooks.c: Likewise.
10452 * tui/tui.c: Likewise.
10453 * tui/tuiCommand.c: Likewise.
10454 * tui/tuiData.c: Likewise.
10455 * tui/tuiDataWin.c: Likewise.
10456 * tui/tuiDisassem.c: Likewise.
10457 * tui/tuiGeneralWin.c: Likewise.
10458 * tui/tuiIO.c: Likewise.
10459 * tui/tuiLayout.c: Likewise.
10460 * tui/tuiRegs.c: Likewise.
10461 * tui/tuiSource.c: Likewise.
10462 * tui/tuiSourceWin.c: Likewise.
10463 * tui/tuiStack.c: Likewise.
10464 * tui/tuiWin.c: Likewise.
10465
cd4bffcf
EZ
104662002-02-07 Elena Zannoni <ezannoni@redhat.com>
10467
10468 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10469 to include space for pseudoregs as well. Update loops accordingly.
10470 (sh_fp_frame_init_saved_regs): Ditto.
10471 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10472
26806ce2
AC
104732002-02-07 Andrew Cagney <ac131313@redhat.com>
10474
10475 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10476 Add Richard Earnshaw to Arm maintainers.
10477
97fdab62
AC
104782002-02-07 Andrew Cagney <ac131313@redhat.com>
10479
a6b98203
AC
10480 * defs.h (warning_begin): Delete declaration.
10481
97fdab62
AC
10482 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10483 Delete macro.
10484
78b29b40
MS
104852002-02-07 Michael Snyder <msnyder@redhat.com>
10486
aaa38bb5 10487 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10488 Logic bug, remove misplaced else.
10489
d8849953
KD
104902002-02-07 Klee Dienes <klee@apple.com>
10491
10492 * fork-inferior.c (fork_inferior): Add '!' to the list of
10493 characters that need to be quoted when building a string for the
10494 shell. Quote '!' specifically with a backslash, since CSH chokes
10495 when trying to evaluate "str!str".
aaa38bb5 10496
095778a0
NC
104972002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10498
10499 * rdi-share/host.h: Only provide a typedef for bool if it is not
10500 defined.
10501
1900040c
MS
105022002-02-04 Michael Snyder <msnyder@redhat.com>
10503
10504 * breakpoint.h (enum bptype): Add new overlay event bp type.
10505 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10506
1900040c
MS
10507 * breakpoint.c (create_internal_breakpoint): New function.
10508 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10509 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10510 (create_thread_event_breakpoint): Ditto.
10511 (create_solib_event_breakpoint): Ditto.
10512 (create_overlay_event_breakpoint): New function.
10513 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10514 (update_breakpoints_after_exec): Delete and re-initialize
10515 overlay event breakpoints after an exec. Add FIXME comment
10516 about longjmp breakpoint.
10517 (print_it_typical): Ignore overlay event breakpoints.
10518 (print_one_breakpoint): Ditto.
10519 (mention): Ditto.
10520 (bpstat_what): Do not stop for overlay event breakpoints.
10521 (delete_breakpoint): Don't delete overlay event breakpoints.
10522 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10523 (breakpoint_re_set): Re-create overlay event breakpoint.
10524
10525 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10526 (overlay_manual_command): Disable overlay breakpoints.
10527 (overlay_off_command): Disable overlay breakpoints.
10528
082fc60d
RE
105292002-02-06 Richard Earnshaw <rearnsha@arm.com>
10530
10531 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10532 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10533 to here from config/tm-arm.h.
10534 (coff_sym_is_thumb): Make static.
10535 (arm_elf_make_msymbol_special): New function.
10536 (arm_coff_make_msymbol_special): New function.
10537 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10538 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10539 (coff_sym_is_thumb): Delete declaration.
10540 (arm_elf_make_msymbol_special): Declare.
10541 (arm_coff_make_msymbol_special): Declare.
10542 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10543 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10544
039c5766
RE
105452002-02-06 Richard Earnshaw <rearnsha@arm.com>
10546
10547 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10548
105492002-02-06 Richard Earnshaw <rearnsha@arm.com>
10550
10551 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10552 * gdbarch.c gdbarch.h: Regenerate.
10553 * arch-utils.c (default_print_float_info): New function.
10554 * arch-utils.h (default_print_float_info): Prototype it.
10555 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10556 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10557 (PRINT_FLOAT_INFO): Document it.
10558
10559 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10560 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10561 (PRINT_FLOAT_INFO): Define.
10562
58fa08f0
PM
105632002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10564
aaa38bb5 10565 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10566 Add typecast to sprintf argument to suppress a warning.
10567
7393af7c
PM
105682002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10569
58fa08f0 10570 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10571 to allow easier handling of pass state.
10572 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10573 that gives exception name and address.
10574 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10575 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10576 exceptions added.
aaa38bb5
AJ
10577 (child_continue): Correctly report continue_status.
10578 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10579 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10580 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10581 the exception should be passed to debuggee or not.
10582
6af4589c
MS
105832002-02-05 Michael Snyder <msnyder@redhat.com>
10584
10585 * regcache.c (fetch_register): Call target_fetch_register
10586 only if we don't call FETCH_PSEUDO_REGISTER.
10587 (store_register): Call target_store_register only if we
10588 don't call STORE_PSEUDO_REGISTER.
10589
a2cf933a
EZ
105902002-02-05 Elena Zannoni <ezannoni@redhat.com>
10591
10592 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10593 ELF_MAKE_MSYMBOL_SPECIAL.
10594 * gdbarch.c, gdbarch.h: Regenerate.
10595 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10596 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10597 * elfread.c (elf_symtab_read): Compile use of
10598 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10599 multiarched.
10600 * coffread.c (coff_symtab_read): Ditto, for
10601 COFF_MAKE_MSYMBOL_SPECIAL.
10602
6bb7be43
JB
106032002-02-05 Jim Blandy <jimb@redhat.com>
10604
10605 * solib-svr4.c (svr4_truncate_ptr): New function.
10606 (svr4_relocate_section_addresses): Do the address arithmetic with
10607 the appropriate truncation for target addresses, even when
10608 CORE_ADDR is larger than a target address.
10609
e18651ec
DJ
106102002-02-05 Daniel Jacobowitz <drow@mvista.com>
10611
10612 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10613 to (int *).
10614
6b2725be
DJ
106152002-02-05 Daniel Jacobowitz <drow@mvista.com>
10616
10617 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10618 code.
10619
fca9e603
DJ
106202002-02-05 Daniel Jacobowitz <drow@mvista.com>
10621
10622 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10623
6c537a52
DJ
106242002-02-05 Daniel Jacobowitz <drow@mvista.com>
10625
10626 * gdbserver/linux-low.c: Remove unused include files.
10627
d844cde6
DJ
106282002-02-05 Daniel Jacobowitz <drow@mvista.com>
10629
10630 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10631 (read_inferior_memory): Use it.
10632 (write_inferior_memory): Likewise.
10633
d07c63e7
DJ
106342002-02-05 Daniel Jacobowitz <drow@mvista.com>
10635
10636 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10637 grubbing through sys_errlist.
10638
da6d8c04
DJ
106392002-02-05 Daniel Jacobowitz <drow@mvista.com>
10640
10641 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10642
5b421780
PM
106432002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10644 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10645
9f60d481
AC
106462002-02-04 Andrew Cagney <ac131313@redhat.com>
10647
10648 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10649 (do_sfunc, set_cmd_sfunc): New functions.
10650
10651 * command.h (struct cmd_list_element): Add field func.
10652 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10653 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10654 * cli/cli-decode.h: Ditto.
10655
10656 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10657 (help_all, help_cmd_list): Ditto.
10658 (find_cmd, complete_on_cmdlist): Ditto.
10659 * top.c (execute_command): Ditto.
10660
10661 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10662 function.sfunc.
10663
10664 * infcmd.c (notice_args_read): Fix function signature.
10665
10666 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10667 * cli/cli-decode.c (add_set_cmd): Ditto.
10668 * utils.c (initialize_utils): Ditto.
10669 * maint.c (_initialize_maint_cmds): Ditto.
10670 * infrun.c (_initialize_infrun): Ditto.
10671 * demangle.c (_initialize_demangler): Ditto.
10672 * remote.c (add_packet_config_cmd): Ditto.
10673 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10674 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10675 * proc-api.c (_initialize_proc_api): Ditto.
10676 * kod.c (_initialize_kod): Ditto.
10677 * valprint.c (_initialize_valprint): Ditto.
10678 * top.c (init_main): Ditto.
10679 * infcmd.c (_initialize_infcmd): Ditto.
10680 * corefile.c (_initialize_core): Ditto.
10681 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10682 * arch-utils.c (initialize_current_architecture): Ditto.
10683 (_initialize_gdbarch_utils): Ditto.
10684 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10685
10686 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10687 * wince.c (_initialize_inftarg): Ditto.
10688 * symfile.c (_initialize_symfile): Ditto.
10689 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10690 * language.c (_initialize_language): Ditto.
10691 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10692
f9ba0717
MS
106932002-02-04 Michael Snyder <msnyder@redhat.com>
10694
10695 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10696
0c74b2a7
DJ
106972002-02-04 Daniel Jacobowitz <drow@mvista.com>
10698
10699 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10700 Add rules for building the register data files.
10701
c638789f
DJ
107022002-02-04 Daniel Jacobowitz <drow@mvista.com>
10703
10704 * regformats/regdat.sh: Add braces to the definition of
10705 expedite_regs_${arch}.
10706
db253027
DJ
107072002-02-04 Daniel Jacobowitz <drow@mvista.com>
10708
10709 * regformats/regdef.h (struct reg): Add comment describing the
10710 requirements for offset and size fields.
10711
206be19c
AS
107122002-02-04 Andreas Schwab <schwab@suse.de>
10713
10714 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10715 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10716
181c1381
RE
107172002-02-04 Richard Earnshaw <rearnsha@arm.com>
10718
10719 * gdbarch.sh (copyright): Update years in generated header.
10720 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10721 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10722 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10723 * dbxread.c: Likewise.
10724 * dwarfread.c: Likewise.
10725 * elfread.c: Likewise.
10726 * somread.c: Likewise.
10727
10728 * arm-tdep.c (arm_smash_text_address): New function.
10729 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10730
fa4ba8da
PM
107312002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10732
10733 Add support for hardware watchpoints on win32 native.
aaa38bb5 10734 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10735 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10736 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10737 of debug registers.
10738 (debug_registers_changed): New variable. Reflects when debug registers
10739 are changed and need to be written to inferior.
aaa38bb5 10740 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10741 was set, used when new threads are created.
10742 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10743 i386-nat code.
10744 (thread_rec): Set dr array if id is the thread of current_event .
10745 (child_continue, child_resume): Change the debug registers for all
10746 threads if debug_registers_changed.
10747 (child_add_thread): Change the debug registers if debug_registers_used.
10748 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10749 Link nm.h to new nm-cygwin.h file.
10750 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10751 of hardware registers.
10752
a73c86fb
AC
107532002-02-03 Andrew Cagney <ac131313@redhat.com>
10754
10755 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10756 Restore behavour broken by 2002-01-20 Andrew Cagney
10757 <ac131313@redhat.com> IEEE_FLOAT removal.
10758
acf5ed49
DJ
107592002-02-03 Daniel Jacobowitz <drow@mvista.com>
10760
10761 * c-valprint.c (c_val_print): Pass a proper valaddr to
10762 cp_print_class_method.
10763 * valops.c (search_struct_method): If there is only one method
10764 and args is NULL, return that method.
10765
493d28d5
DJ
107662002-02-03 Daniel Jacobowitz <drow@mvista.com>
10767
10768 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10769 accessing tag_name directly.
10770
7495dfdb
DJ
107712002-02-03 Daniel Jacobowitz <drow@mvista.com>
10772
10773 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10774 of accessing tag_name directly.
10775
dd6bda65
DJ
107762002-02-03 Daniel Jacobowitz <drow@mvista.com>
10777
10778 PR gdb/280
10779 * gdbtypes.c (replace_type): New function.
10780 * gdbtypes.h (replace_type): Add prototype.
10781 * stabsread.c (read_type): Use replace_type.
10782
88fe217c
RE
107832002-02-03 Richard Earnshaw <rearnsha@arm.com>
10784
10785 * Makefile.in (memattr.o): Add missing dependencies rule.
10786
e5d66720
PS
107872002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10788
10789 * breakpoint.c (break_at_finish_command): Really export.
10790 (break_at_finish_at_depth_command): Ditto.
10791 (tbreak_at_finish_command): Ditto.
10792 * hppa-tdep.c: Include completer.h.
10793 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10794 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10795
fffee0be
AC
107962002-02-01 Andrew Cagney <ac131313@redhat.com>
10797
10798 * utils.c (do_write): New function.
10799 (error_stream): Rewrite combining the code from error_begin and
10800 verror.
10801 (verror): Rewrite using error_stream.
10802 (error_begin): Delete function.
10803
255e7dbf
AC
108042002-02-01 Andrew Cagney <ac131313@redhat.com>
10805
10806 * utils.c (error_begin): Make static.
10807 * defs.h (error_begin): Delete declaration.
10808
10809 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10810 (decode_line_1): Use cplusplus_error instead of error_begin,
10811 cplusplus_hint and return_to_top_level.
10812 * coffread.c (coff_symfile_read): Use error instead of error_begin
10813 and return_to_top_level.
10814 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10815
ddfe3c15
AC
108162002-02-01 Andrew Cagney <ac131313@redhat.com>
10817
10818 * language.h (type_error, range_error): Make string parameter
10819 constant.
10820 * language.c (warning_pre_print): Delete extern declaration.
10821 * dwarfread.c (warning_pre_print): Ditto.
10822 * language.c (type_error, range_error): Rewrite to use verror and
10823 vwarning instead of warning_begin.
10824
03ac34d5
MS
108252002-02-01 Michael Snyder <msnyder@redhat.com>
10826
261c4ca2
MS
10827 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10828 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10829
e00d1dc8
AC
108302002-02-01 Andrew Cagney <ac131313@redhat.com>
10831
10832 * command.h (NO_FUNCTION): Delete macro.
10833 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10834 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10835 * tracepoint.c (_initialize_tracepoint): Ditto.
10836 * cli/cli-decode.c (add_set_cmd): Ditto.
10837 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10838
76b79d6e
DJ
108392002-02-01 Daniel Jacobowitz <drow@mvista.com>
10840
10841 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10842 Update ``this'' pointer when calling virtual functions.
10843
799f9e91
MS
108442002-02-01 Michael Snyder <msnyder@redhat.com>
10845
c7bd442c 10846 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10847 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10848
3cf384d4
DJ
108492002-02-01 Daniel Jacobowitz <drow@mvista.com>
10850
10851 * regformats/reg-arm.dat: New file.
10852 * regformats/reg-i386.dat: New file.
10853 * regformats/reg-ia64.dat: New file.
10854 * regformats/reg-m68k.dat: New file.
10855 * regformats/reg-mips.dat: New file.
10856 * regformats/reg-ppc.dat: New file.
10857 * regformats/reg-sh.dat: New file.
10858 * regformats/regdef.h: New file.
10859 * regformats/regdat.sh: New file.
10860
0defa245
RE
108612002-02-01 Richard Earnshaw <reanrsha@arm.com>
10862
10863 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10864 (arm_frame_args_address, arm_frame_locals_address): New functions.
10865 (arm_frame_num_args): New function.
10866 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10867 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10868 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10869
405f26e6
MS
108702002-01-31 Michael Snyder <msnyder@redhat.com>
10871
502fd408
MS
10872 * breakpoint.c (break_at_finish_command): Export.
10873 (break_at_finish_at_depth_command): Export.
10874 (tbreak_at_finish_command): Export.
d6020d45 10875 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10876 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10877 "txbreak" commands, which are HPPA specific.
502fd408 10878
7d35e135
MS
10879 * printcmd.c (disassemble_command): Remove an ancient
10880 artifact of an old merge.
10881
aaa38bb5 10882 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10883 Define enum constant values for overlay mode.
10884 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10885 (overlay_is_mapped, overlay_auto_command,
10886 overlay_manual_command): Ditto.
d874f1e2 10887
aaa38bb5
AJ
10888 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10889 breakpoint_here_p, breakpoint_inserted_here_p,
10890 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10891 describe_other_breakpoints, check_duplicates, clear_command):
10892 Coding standard fixes.
10893
8add0441 10894 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10895 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10896 code: check bfd SEC_READONLY flag for section.
10897
e351066e
AC
108982002-01-31 Andrew Cagney <ac131313@redhat.com>
10899
7d35e135 10900 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10901
8a48e967
DJ
109022002-01-30 Daniel Jacobowitz <drow@mvista.com>
10903
10904 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10905 data symbols, since we search based on textlow and texthigh.
10906 (find_pc_sect_symtab): Likewise.
10907
f5a96129
AC
109082002-01-30 Andrew Cagney <ac131313@redhat.com>
10909
10910 * defs.h (vwarning): Declare.
f5a96129
AC
10911 * utils.c (vwarning): New function.
10912 (warning): Call vwarning.
10913 (warning_begin): Delete function.
10914
10915 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10916 the warning message.
10917 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10918 warning_begin.
10919
cefd4ef5
MS
109202002-01-30 Michael Snyder <msnyder@redhat.com>
10921
1a703748
MS
10922 * NEWS: Mention "set trust-readonly-sections" command.
10923 Mention generate-core-file command.
cefd4ef5 10924
3a11626d
MS
109252002-01-15 Michael Snyder <msnyder@redhat.com>
10926
10927 * target.c: New command, "set trust-readonly-sections on".
10928 (do_xfer_memory): Honor the suggestion to trust readonly sections
10929 by reading them from the object file instead of from the target.
10930 (initialize_targets): Register command "set trust-readonly-sections".
10931
d1c7e53b
AC
109322002-01-29 Andrew Cagney <ac131313@redhat.com>
10933
10934 * parse.c (target_map_name_to_register): Simplify, search regs and
10935 pseudo-regs using a single loop.
10936
e2c9a72c
AC
109372002-01-30 Andrew Cagney <ac131313@redhat.com>
10938
10939 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10940
69824b4e
MK
109412002-01-15 Rodney Brown <rbrown64@csc.com.au>
10942
10943 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10944 * config/i386/i386v42mp.mh: Add i387-nat.o .
10945 * i386v4-nat.c: Include i387-nat.h.
10946 (supply_fpregset): Use i387_supply_fsave.
10947 (fill_fpregset): Use i387_fill_fsave.
10948
6eb69eab
RE
109492002-01-30 Richard Earnshaw <rearnsha@arm.com>
10950
10951 * arm-tdep.c (arm_call_dummy_words): Define.
10952 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10953 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10954 (CALL_DUMMY_WORDS): Define.
10955 (arm_call_dummy_words): Declare.
10956 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10957 (arm_linux_call_dummy_words): Declare.
10958
9852326a
AS
109592002-01-30 Andreas Schwab <schwab@suse.de>
10960
10961 * m68klinux-nat.c: Fix last change to use regcache_collect
10962 instead of referencing registers[] directly.
10963
977a3030
AC
109642002-01-29 Andrew Cagney <ac131313@redhat.com>
10965
10966 * parse.c (target_map_name_to_register): Delete code wrapped in
10967 #ifdef REGISTER_NAME_ALIAS_HOOK.
10968
2076c72b
MS
109692002-01-28 Michael Snyder <msnyder@redhat.com>
10970
10971 * regcache.c (legacy_read_register_gen): Need to be able to
10972 read pseudo-register as well as real register.
10973 (legacy_write_register_gen): Ditto.
10974
8fcc723b
AC
109752002-01-28 Andrew Cagney <ac131313@redhat.com>
10976
10977 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10978 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10979 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10980 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10981 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10982 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10983 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10984 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10985 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10986 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10987 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10988 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10989 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10990 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10991 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10992 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10993 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10994 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10995 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10996 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10997
afe64c1a
AC
109982002-01-28 Andrew Cagney <ac131313@redhat.com>
10999
11000 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11001 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11002 (initialize_current_architecture): Update target_byte_order using
11003 information from BFD.
aaa38bb5 11004 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11005 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11006
75bc7ddf
AC
110072002-01-28 Andrew Cagney <ac131313@redhat.com>
11008
11009 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11010 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11011
11012 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11013 #ifdef INVALID_FLOAT.
11014 * infcmd.c (do_registers_info): Ditto.
11015 * values.c (unpack_double): Ditto. Add comment.
11016
11017 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11018 already commented out.
11019
0280a90a
AS
110202002-01-26 Andreas Schwab <schwab@suse.de>
11021
11022 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11023 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11024 registers and add support for PTRACE_GETREGS.
11025
7072a954
AC
110262002-01-24 Andrew Cagney <ac131313@redhat.com>
11027
11028 GDB 5.1.1 released from 5.1 branch.
11029 * NEWS: Add 5.1.1 news.
11030 * README: Sync with 5.1 branch.
11031
86f902e0
FF
110322002-01-23 Fred Fish <fnf@redhat.com>
11033
11034 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11035 stabstring on initial malloc. Reallocing will copy it for us,
11036 if necessary.
11037
8af51c36
EZ
110382002-01-23 Elena Zannoni <ezannoni@redhat.com>
11039
aaa38bb5 11040 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11041 (HFILES_NO_SRCDIR): Remove hpread.h.
11042 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11043 (hpread.o): Update dependencies.
11044 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11045
11046 * hp-psymtab-read.c: Remove file.
11047 * hp-symtab-read.c: Remove file.
11048 * hpread.h: Remove file.
11049
11050 * hpread.c: Merge all contents of hp-psymtab-read.c,
11051 hp-symtab-read.c and hpread.h into this file, as it was prior to
11052 January 1999.
11053
11054 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11055 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11056 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11057 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11058
dc5cfeb6
EZ
110592002-01-23 Elena Zannoni <ezannoni@redhat.com>
11060
11061 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11062 fill_gregset): Call gdbarch_tdep() just once, assign result to
11063 variable and use that, instead of calling the function several
11064 times.
11065
ea87b71b
AO
110662002-01-24 Alexandre Oliva <aoliva@redhat.com>
11067
11068 * configure.host: Accept sparcv9 as alias for sparc64.
11069 * configure.tgt: Likewise.
11070
13fc0c2f
KB
110712002-01-22 Kevin Buettner <kevinb@redhat.com>
11072
11073 * solib-aix5.c (build_so_list_from_mapfile)
11074 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11075 arguments is not reversed.
11076 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11077 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11078
7bd872fe
EZ
110792002-01-22 Elena Zannoni <ezannoni@redhat.com>
11080
11081 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11082 modified version of obsolete sh_fetch_pseudo_register.
11083 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11084 (sh4_register_read): New function.
11085 (sh_pseudo_register_write): New function. Renamed and modified
11086 version of obsolete sh_store_pseudo_register.
11087 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11088 (sh4_register_write): New function.
11089 (sh_gdbarch_init): Remove setting of gdbarch function
11090 fetch_pseudo_register and store_pseudo_register. Remove setting of
11091 register_convert_to_raw, register_convert_to_virtual,
11092 register_convertible.
11093 (sh_sh4_register_convertible): Delete. No longer needed. All is
11094 taken care by architecture specific functions
11095 register_read/register_write.
11096 (sh_sh4_register_convert_to_virtual): Make static.
11097 (sh_sh4_register_convert_to_raw): Ditto.
11098
069e84fd
AC
110992002-01-22 Andrew Cagney <ac131313@redhat.com>
11100
11101 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11102 (floatformat_is_nan, floatformat_mantissa): Ditto.
11103
11104 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11105 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11106 builtin_type_ieee_double_little,
11107 builtin_type_ieee_double_littlebyte_bigword,
11108 builtin_type_m68881_ext, builtin_type_i960_ext,
11109 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11110 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11111 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11112 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11113
211a4f69
CV
111142002-01-22 Corinna Vinschen <vinschen@redhat.com>
11115
11116 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11117 parameter. Set frameless flag if it exists and depended of
11118 whether the scanned function is frameless or not.
11119 (xstormy16_skip_prologue): If function is frameless, return
11120 result of xstormy16_scan_prologue().
11121 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11122 call.
11123
f81353e4
EZ
111242002-01-21 Elena Zannoni <ezannoni@redhat.com>
11125
11126 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11127 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11128 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11129 sh_sh4_register_byte, sh_sh4_register_raw_size,
11130 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11131 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11132 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11133 sh_store_pseudo_register, sh_do_pseudo_register): Call
11134 gdbarch_tdep() just once, assign result to variable and use that,
11135 instead of calling the function several times.
11136
63c73a17
MK
111372002-01-20 Mark Kettenis <kettenis@gnu.org>
11138
11139 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11140 macros instead of LAST_FPU_CTRL_REGNUM.
11141 (store_register): Likewise.
11142
39ad761d
JB
111432002-01-21 Jim Blandy <jimb@redhat.com>
11144
11145 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11146 is up-to-date before running the program, not just when a program
11147 exits.
11148
3d74b771
FF
111492002-01-21 Fred Fish <fnf@redhat.com>
11150
11151 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11152 when we have found all instructions we are looking for.
11153
966fbf70
RE
111542002-01-21 Richard Earnshaw <rearnsha@arm.com>
11155
11156 * arm-tdep.c (arm_register_name): New function.
11157 (arm_registers_names): Make static.
11158 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11159 (arm_register_name): Declare.
11160 (REGISTER_NAME): Use it.
11161
c3b4394c
RE
111622002-01-21 Richard Earnshaw <rearnsha@arm.com>
11163 Kevin Buettner <kevinb@redhat.com>
11164
11165 Convert arm targets to new FRAME interface.
11166 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11167 (arm_frame_find_save_regs): Delete.
11168 (arm_frame_init_saved_regs): New.
11169 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11170 Allocate extra_info as required. Convert all uses of fsr.regs
11171 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11172 to use extra_info.
11173 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11174 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11175 (check_prologue_cache, save_prologue_cache): Likewise.
11176 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11177 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11178 (FRAME_FIND_SAVED_REGS): Delete.
11179 (arm_frame_find_saved_regs): Delete prototype.
11180 (arm_frame_init_saved_regs): New prototype.
11181 (FRAME_INIT_SAVED_REGS): Define.
11182
61d99182
AC
111832002-01-20 Andrew Cagney <ac131313@redhat.com>
11184
11185 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11186
6aaea291
AC
111872002-01-20 Andrew Cagney <ac131313@redhat.com>
11188
11189 From Jeff Law <law@redhat.com>:
11190 * infttrace.c: Include <sys/pstat.h>.
11191 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11192 exec file if the ttrace equivalent fails.
11193
15f698d2
AC
111942002-01-20 Andrew Cagney <ac131313@redhat.com>
11195
11196 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11197 (closeLogFile): Ditto.
11198
f86ddd7c
MC
111992002-01-20 Michael Chastain <mec@shout.net>
11200
11201 * top.c (print_gdb_version): Bump copyright year to 2002.
11202
904507ce
AC
112032002-01-20 Andrew Cagney <ac131313@redhat.com>
11204
11205 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11206 Zannoni and Eli Zaretskii.
11207
d7f0b9ce
DJ
112082002-01-20 Daniel Jacobowitz <drow@mvista.com>
11209
11210 * buildsym.c: Update copyright years.
11211 * c-typeprint.c: Likewise.
11212 * dwarf2read.c: Likewise.
11213 * f-typeprint.c: Likewise.
11214 * gdbtypes.c: Likewise.
11215 * gdbtypes.h: Likewise.
11216 * hp-symtab-read.c: Likewise.
11217 * hpread.c: Likewise.
11218 * mdebugread.c: Likewise.
11219 * p-typeprint.c: Likewise.
11220
3fd3d7d2
AC
112212002-01-20 Andrew Cagney <ac131313@redhat.com>
11222
11223 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11224 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11225 byte-order selectable.
11226 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11227 * arch-utils.c: Ditto.
11228 (set_endian): Ditto.
11229 (set_endian_from_file): Ditto.
11230 * gdbserver/low-sim.c (create_inferior): Ditto.
11231 * gdbarch.sh: Ditto.
11232 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11233 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11234 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11235 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11236 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11237 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11238 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11239 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11240 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11241 macro definition.
11242 * config/mips/tm-wince.h: Remove #undef of macro
11243 TARGET_BYTE_ORDER_SELECTABLE.
11244 * config/sh/tm-wince.h: Ditto.
11245
b02dede2
DJ
112462002-01-20 Daniel Jacobowitz <drow@mvista.com>
11247
11248 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11249 member function fields. Add accessor macro
11250 TYPE_FN_FIELD_ARTIFICIAL.
11251 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11252 * c-typeprint.c (c_type_print_base): Skip artificial member
11253 functions.
11254
c3643761
DJ
112552002-01-20 Daniel Jacobowitz <drow@mvista.com>
11256
11257 * f-typeprint.c: Delete unused function f_type_print_args.
11258 * p-typeprint.c: Delete unused function pascal_type_print_args.
11259
8176bb6d
DJ
112602002-01-20 Daniel Jacobowitz <drow@mvista.com>
11261
11262 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11263 comment. Add ``artificial'' to ``union field_location''.
11264
11265 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11266
11267 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11268 * mdebugread.c (parse_symbol): Likewise.
11269 * stabsread.c (define_symbol): Likewise.
11270 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11271 initializing TYPE_FIELD_BITPOS to n (obsolete).
11272 (hpread_doc_function_type): Likewise.
11273 * hpread.c (hpread_function_type): Likewise.
11274
7fd60527
AC
112752002-01-20 Andrew Cagney <ac131313@redhat.com>
11276
11277 * configure.in (host_makefile_frag): Only require a host makefile
11278 fragment when a native build.
11279 * configure: Re-generate.
11280
c2f05ac9
AC
112812002-01-20 Andrew Cagney <ac131313@redhat.com>
11282
11283 * doublest.h (floatformat_from_type): Declare.
11284 * doublest.c (floatformat_from_type): New function.
11285 (convert_typed_floating): Use.
11286
11287 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11288 call to function floatformat_from_type.
11289
11290 * gdbarch.sh (IEEE_FLOAT): Delete.
11291 * gdbarch.h, gdbarch.c: Re-generate.
11292 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11293 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11294 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11295 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11296 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11297 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11298 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11299 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11300 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11301 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11302 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11303 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11304
11305 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11306 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11307 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11308 * sh-tdep.c (sh_gdbarch_init): Ditto.
11309 * mips-tdep.c (mips_gdbarch_init): Ditto.
11310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11311 * cris-tdep.c (cris_gdbarch_init): Ditto.
11312
abf22e64
AJ
113132002-01-20 Jiri Smid <smid@suse.cz>
11314
11315 * configure.host, configure.tgt: Support x86-64.
11316 * NEWS: Note new target x86-64.
11317
b7c4cbf8
AJ
11318 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11319 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11320 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11321 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11322 x86-64-linux-nat.o): Fix dependencies.
11323
82600034
AC
113242002-01-19 Andrew Cagney <ac131313@redhat.com>
11325
11326 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11327 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11328 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11329 * config/sparc/xm-sun4os4.h: Delete file.
11330 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11331
bbe5c628
AC
113322002-01-19 Andrew Cagney <ac131313@redhat.com>
11333
11334 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11335 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11336 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11337 * config/i386/i386lynx.mh (XM_FILE): Delete.
11338 * config/rs6000/xm-rs6000ly.h: Delete file.
11339 * config/sparc/xm-sparclynx.h: Delete file.
11340 * config/m68k/xm-m68klynx.h: Delete file.
11341 * config/i386/xm-i386lynx.h: Delete file.
11342 * config/xm-lynx.h: Delete file.
11343 * config/djgpp/fnchange.lst: Update.
11344
f8453e34
JT
113452002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11346
11347 * alpha-tdep.c (alpha_register_byte): New function.
11348 (alpha_register_raw_size): Ditto.
11349 (alpha_register_virtual_size): Ditto.
11350 (alpha_skip_prologue_internal): Renamed from
11351 alpha_skip_prologue.
11352 (alpha_skip_prologue): New version that calls
11353 alpha_skip_prologue_internal.
11354 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11355 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11356 second argument from alpha_skip_prologue.
11357 (REGISTER_BYTE): Use alpha_register_byte.
11358 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11359 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11360 (FRAMELESS_FUNCTION_INVOCATION): Use
11361 generic_frameless_function_invocation_not.
11362 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11363 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11364
52d9e613
AC
113652002-01-19 Andrew Cagney <ac131313@redhat.com>
11366
11367 * config/mips/xm-news-mips.h: Delete file.
11368 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11369
11370 * config/m88k/xm-m88k.h: Delete file.
11371 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11372 * config/m88k/xm-delta88v4.h: Ditto.
11373 * config/m88k/xm-delta88.h: Ditto.
11374
11375 * config/alpha/xm-fbsd.h: Delete file.
11376 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11377
11378 * config/sparc/xm-sparc.h: Delete file.
11379 * Makefile.in (xm-sun4os4.h): Delete dependency.
11380 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11381 * config/sparc/xm-sun4os4.h: Ditto.
11382 * config/sparc/xm-linux.h: Ditto.
11383
11384 * config/i386/xm-windows.h: Delete file.
11385
2d1b2124
AC
113862002-01-19 Andrew Cagney <ac131313@redhat.com>
11387
11388 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11389 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11390
ee1f65f0
JT
113912002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11392
11393 * alpha-tdep.c (alpha_call_dummy_words): New.
11394 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11395 (CALL_DUMMY_P): Define.
11396 (CALL_DUMMY_WORDS): Define.
11397 (SIZEOF_CALL_DUMMY_WORDS): Define.
11398
98081e55
PB
113992002-01-19 Per Bothner <per@bothner.com>
11400
11401 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11402 isn't NULL, which can happen with some gcj-3.x-produced code.
11403
0d056799
JT
114042002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11405
11406 * alpha-tdep.c (alpha_register_virtual_type): New function.
11407 (alpha_init_frame_pc_first): Ditto.
11408 (alpha_fix_call_dummy): Ditto.
11409 (alpha_store_struct_return): Ditto.
11410 (alpha_extract_struct_value_address): Ditto.
11411 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11412 alpha_register_virtual_type.
11413 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11414 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11415 alpha_extract_struct_value_address.
11416 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11417 (INIT_FRAME_PC): Use init_frame_pc_noop.
11418 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11419
4604bcad
MK
114202002-01-19 Mark Kettenis <kettenis@gnu.org>
11421
11422 * i386gnu-nat.c: Include "i386-tdep.h".
11423 (fetch_fpregs): Simplify code dealing with uninitialized floating
11424 point states such that it doesn't require FP7_REGNUM.
11425
140f9984
JT
114262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11427
abf22e64
AJ
11428 * alpha-tdep.c (frame_extra_info): New.
11429 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11430 frame->extra_info.
11431 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11432 (alpha_frame_saved_pc): Use frame->extra_info.
11433 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11434 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11435 (init_extra_frame_info): Rename to...
11436 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11437 (alpha_print_extra_frame_info): New function.
140f9984
JT
11438 (alpha_frame_locals_address): Ditto.
11439 (alpha_frame_args_address): Ditto.
abf22e64 11440 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11441 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11442 alpha_frame_args_address.
abf22e64 11443 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11444 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11445 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11446 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11447 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11448 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11449
d734c450
JT
114502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11451
11452 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11453 (alpha_cannot_fetch_register): Ditto.
11454 (alpha_cannot_store_register): Ditto.
11455 (alpha_register_convertible): Ditto.
11456 (alpha_use_struct_convention): Ditto.
11457 * config/alpha/tm-alpha.h: Update copyright years.
11458 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11459 (INNER_THAN): Use core_addr_lessthan.
11460 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11461 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11462 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11463 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11464 (FRAME_CHAIN): Remove unnecessary cast.
11465
b4ceaee6
AC
114662002-01-18 Andrew Cagney <ac131313@redhat.com>
11467
11468 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11469 obsolete.
11470
0a65a603
AC
114712002-01-18 Andrew Cagney <ac131313@redhat.com>
11472
11473 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11474 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11475 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11476 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11477 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11478 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11479 * x86-64-linux-nat.c: Ditto.
11480
636a6dfc
JT
114812002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11482
abf22e64 11483 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11484 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11485 (REGISTER_NAME): Define.
11486
acceddb6
JT
114872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11488
11489 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11490
ec32e4be
JT
114912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11492
11493 * alpha-tdep.c: Update copyright years.
11494 (alpha_next_pc): New function.
11495 (alpha_software_single_step): Ditto.
11496 * config/alpha/tm-alpha.h: Add prototype for
11497 alpha_software_single_step.
11498
e771a871
JT
114992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11500
11501 * alphabsd-nat.c: Update copyright years.
11502 (fill_gregset): Use regcache_collect.
11503 (fill_fpregset): Likewise.
11504 (fetch_inferior_registers): Only fetch integer registers
11505 if requested to do so.
11506 (store_inferior_registers): Only store integer registers
11507 if requested to do so.
11508
7708fa01
AC
115092002-01-17 Andrew Cagney <ac131313@redhat.com>
11510
11511 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11512 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11513 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11514 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11515 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11516 * config/arm/linux.mh (XDEPFILES): Delete.
11517 * config/arm/nbsd.mh (XDEPFILES): Delete.
11518 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11519 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11520 * config/i386/i386m3.mh (XDEPFILES): Delete.
11521 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11522 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11523 * config/i386/fbsd.mh (XDEPFILES): Delete.
11524 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11525 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11526 * config/i386/i386v4.mh (XDEPFILES): Delete.
11527 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11528 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11529 * config/i386/i386aix.mh (XDEPFILES): Delete.
11530 * config/i386/go32.mh (XDEPFILES): Delete.
11531 * config/i386/cygwin.mh (XDEPFILES): Delete.
11532 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11533 * config/i386/i386mach.mh (XDEPFILES): Delete.
11534 * config/i386/i386v32.mh (XDEPFILES): Delete.
11535 * config/i386/linux.mh (XDEPFILES): Delete.
11536 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11537 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11538 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11539 * config/i386/i386sco.mh (XDEPFILES): Delete.
11540 * config/i386/i386v.mh (XDEPFILES): Delete.
11541 * config/i386/nbsd.mh (XDEPFILES): Delete.
11542 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11543 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11544 * config/i386/symmetry.mh (XDEPFILES): Delete.
11545 * config/i386/obsd.mh (XDEPFILES): Delete.
11546 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11547 * config/ia64/linux.mh (XDEPFILES): Delete.
11548 * config/ia64/aix.mh (XDEPFILES): Delete.
11549 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11550 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11551 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11552 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11553 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11554 * config/m68k/linux.mh (XDEPFILES): Delete.
11555 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11556 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11557 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11558 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11559 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11560 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11561 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11562 * config/m88k/delta88.mh (XDEPFILES): Delete.
11563 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11564 * config/m88k/m88k.mh (XDEPFILES): Delete.
11565 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11566 * config/mips/linux.mh (XDEPFILES): Delete.
11567 * config/mips/irix6.mh (XDEPFILES): Delete.
11568 * config/mips/irix5.mh (XDEPFILES): Delete.
11569 * config/mips/irix4.mh (XDEPFILES): Delete.
11570 * config/mips/irix3.mh (XDEPFILES): Delete.
11571 * config/mips/decstation.mh (XDEPFILES): Delete.
11572 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11573 (NATDEPFILES): Move core-aout.o to here.
11574 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11575 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11576 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11577 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11578 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11579 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11580 * config/pa/hpux11.mh (XDEPFILES): Delete.
11581 * config/powerpc/aix.mh (XDEPFILES): Delete.
11582 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11583 * config/powerpc/linux.mh (XDEPFILES): Delete.
11584 * config/romp/rtbsd.mh: Rename XDEPFILES.
11585 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11586 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11587 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11588 * config/s390/s390.mh (XDEPFILES): Delete.
11589 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11590 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11591 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11592 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11593 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11594 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11595 * config/sparc/linux.mh (XDEPFILES): Delete.
11596 * config/vax/vaxult.mh (XDEPFILES): Delete.
11597 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11598 * Makefile.in (DEPFILES): Remove XDEPFILES.
11599
375fc983
AC
116002002-01-17 Andrew Cagney <ac131313@redhat.com>
11601
11602 * utils.c (internal_verror): Fix comments, default is yes not no.
11603 Update queries to match. Default to quit and dump core.
11604
8926118c
AC
116052002-01-17 Andrew Cagney <ac131313@redhat.com>
11606
11607 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11608 copyright.
11609 * defs.h, event-top.c, gdbcmd.h: Ditto.
11610 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11611 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11612 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11613 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11614 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11615 * mi/mi-main.c:Ditto.
11616
11617 * stack.c, symfile.c: Update copyright.
11618
45b7b345
DJ
116192002-01-17 Daniel Jacobowitz <drow@mvista.com>
11620
db728ff7
DJ
11621 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11622 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11623 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11624 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11625
db728ff7
DJ
116262002-01-17 Daniel Jacobowitz <drow@mvista.com>
11627
11628 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11629 * gdbserver/low-lynx.c (myattach): Likewise.
11630 * gdbserver/low-nbsd.c (myattach): Likewise.
11631 * gdbserver/low-sim.c (myattach): Likewise.
11632 * gdbserver/low-sparc.c (myattach): Likewise.
11633 * gdbserver/low-sun3.c (myattach): Likewise.
11634
11635 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11636
db728ff7 11637 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11638 (main): Handle "--attach".
11639
8de3c354
AC
116402002-01-16 Andrew Cagney <ac131313@redhat.com>
11641
11642 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11643 maintainer.
11644
b0129042
DJ
116452002-01-15 Daniel Jacobowitz <drow@mvista.com>
11646
11647 * c-typeprint.c (is_type_conversion_operator): Add additional
11648 check for non-conversion operators.
11649
ba8679fb 116502002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11651
11652 * linux-proc.c: Add "info proc" command, a la procfs.c.
11653 (read_mapping): New function, abstract and re-use code.
11654 (linux_find_memory_regions): Use new func read_mapping.
11655 (linux_info_proc_cmd): New function, implement "info proc".
11656 (_initialize_linux_proc): Add new command "info proc".
11657
e4f9b4d5
MS
116582002-01-15 Michael Snyder <msnyder@redhat.com>
11659
11660 * symfile.c (generic_load): Use bfd_map_over_sections method
11661 instead of manipulating bfd structure members directly.
11662 (add_section_size_callback): New function, bfd sections callback
11663 used by generic_load.
11664 (load_sections_callback): New function, bfd sections callback
11665 used by generic_load.
11666
08cf96df
EZ
116672002-01-15 Elena Zannoni <ezannoni@redhat.com>
11668
abf22e64 11669 [Based on work by Jim Blandy]
08cf96df
EZ
11670 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11671 (builtin_type_vec128): Export.
11672 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11673 types.
11674 (builtin_type_vec128): New builtin type for 128 bit vector
11675 registers.
11676 (build_gdbtypes): Initialize builtin_type_v16qi and
11677 builtin_type_v8hi. Create the vec128 register builtin type
11678 structure.
11679 (build_builtin_type_vec128): New function.
abf22e64 11680 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11681 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11682 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11683 AltiVec register to new builtin type.
11684
d7242108
DJ
116852001-01-15 Daniel Jacobowitz <drow@mvista.com>
11686
11687 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11688 to make_cv_type.
11689
4ee3352d
AC
116902002-01-14 Andrew Cagney <ac131313@redhat.com>
11691
11692 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11693 CLEAN_UP_REGISTER_VALUE.
11694 * regcache.c (supply_register): Update only call.
11695
f015b2e7
AC
116962002-01-14 Andrew Cagney <ac131313@redhat.com>
11697
11698 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11699 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11700 a29k-*-vxworks* targets as obsolete.
11701
356ae49d
MS
117022002-01-14 Michael Snyder <msnyder@redhat.com>
11703
11704 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11705 until we can resolve portability issues.
11706 * gregset.h: Remove references to fpxregs.
11707 * gcore.c (gcore_command): Initialize note_sec to NULL.
11708
ade8f45e
AC
117092002-01-13 Andrew Cagney <ac131313@redhat.com>
11710
11711 * signals.c (target_signal_to_name): Rewrite. Only use
11712 signals[].name when in bounds and non-NULL.
abf22e64 11713
89c49e7a
AC
117142002-01-13 Andrew Cagney <ac131313@redhat.com>
11715
11716 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11717 * signals.c (target_signal_to_name): Verify that SIG is within the
11718 bounds of the signals array.
11719
4daa9f9f
AC
117202002-01-13 Andrew Cagney <ac131313@redhat.com>
11721
11722 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11723
ba4bbdcb
KS
117242002-01-13 Keith Seitz <keiths@redhat.com>
11725
11726 * stack.c (print_frame_info_base): Print the frame's pc
11727 only if when print_frame_info_listing_hook is not defined.
11728
575bbeb6
KS
117292002-01-13 Keith Seitz <keiths@redhat.com>
11730
11731 * varobj.c (varobj_set_value): Make sure that there were no
11732 errors evaluating the object before attempting to set its
11733 value.
11734 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11735 so this offset adjustment is no longer necessary.
11736 (create_child): Don't set the error flag if the child is
11737 a CPLUS_FAKE_CHILD.
11738 (value_of_child): If value_fetch_lazy fails, return NULL
11739 so that callers will be notified that an error occurred.
11740 (c_value_of_variable): Delay check of variable's validity
11741 until later. We actually want all structs and unions to have
11742 the value "{...}".
11743 Do not return "???" for variables which could not be evaluated.
11744 This error condition must be returned to the caller so that it
11745 can get the error condition from gdb.
11746 (cplus_name_of_child): Adjust index for vptr before figuring
11747 out the name of the child.
11748 (cplus_value_of_child): If a child's (real) parent is not valid,
11749 don't even bother trying to give a value for it. Just return
11750 an error. Change all instances in this function.
11751 (cplus_type_of_child): If our parent is one of the "fake"
11752 parents, we need to get at the type of the real parent, and
11753 derive the child's true type using this information.
11754
b76898ab
AC
117552002-01-13 Andrew Cagney <ac131313@redhat.com>
11756
11757 From 2002-01-09 John Marshall <johnm@falch.net>:
11758 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11759 sources.redhat.com, and tweak some related URLs which had
11760 suffered from linkrot.
11761
b6649e88
AC
117622002-01-13 Andrew Cagney <ac131313@redhat.com>
11763
11764 From Jeff law:
11765 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11766 structures passed in registers.
11767
82cc5033
EZ
117682002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11769
11770 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11771 white space which prevented compilation. Reported by DSK
11772 <dsk@student.unsw.edu.au>.
11773
ba5f2f8a
MS
117742002-01-11 Michael Snyder <msnyder@redhat.com>
11775
fbd35540
MS
11776 * symfile.c (build_section_addr_info_from_section_tab):
11777 Use bfd access method instead of manipulating bfd directly.
11778 (syms_from_objfile): Ditto.
11779 (simple_overlay_update_1): Ditto.
11780 (simple_overlay_update): Ditto.
11781 (generic_load): Ditto.
11782 (overlay_unmapped_address): FIXME comment, bfd access methods.
11783 (sections_overlap): FIXME comment, bfd access methods.
11784 (pc_in_mapped_range): FIXME comment, bfd access methods.
11785 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11786 (section_is_mapped): FIXME comment, bfd access methods.
11787 (section_is_overlay): FIXME comment, bfd access methods.
11788
ba5f2f8a
MS
11789 * symfile.c (generic_load): Whitespace and long line cleanups.
11790 Remove duplicate variable, change several local variables to
11791 more appropriate data types.
11792 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11793
17df2af6
AC
117942002-01-12 Andrew Cagney <ac131313@redhat.com>
11795
11796 From Peter Schauer:
11797 * language.c (longest_local_hex_string_custom): Use phex_nz to
11798 convert NUM to a hex string.
11799
ec920329
EZ
118002002-01-12 Elena Zannoni <ezannoni@redhat.com>
11801
11802 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11803 the function.
538a76d6 11804 Update Copyright year.
ec920329 11805
3abd2e01
AC
118062002-01-12 Andrew Cagney <ac131313@redhat.com>
11807
11808 * language.c (longest_raw_hex_string): Delete unused function.
11809
b21b22e0
PS
118102002-01-11 Petr Sorfa <petrs@caldera.com>
11811
11812 * MAINTAINERS (write-after-approval): Add myself.
11813 * dwarf2read.c (read_tag_string_type): Handling of
11814 DW_AT_byte_size.
11815 (read_tag_string_type): FORTRAN fix to prevent propagation of
11816 first string size.
11817 (set_cu_language): Handling of DW_LANG_Fortran95
11818
747fe712
RE
118192002-01-11 Richard Earnshaw <rearnsha@arm.com>
11820
11821 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11822 GETPID(inferior_ptid).
11823 (store_inferior_registers): Likewise.
11824
f1bea926
JM
118252002-01-10 Jason Merrill <jason@redhat.com>
11826
11827 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11828 Fix DW_OP_minus.
11829
ae940673
AC
118302002-01-10 Andrew Cagney <ac131313@redhat.com>
11831
11832 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11833 and bfd/elf32-sh-nbsd.c.
11834
00546b04
MS
118352002-01-10 Michael Snyder <msnyder@redhat.com>
11836
352ed7b4
MS
11837 * NEWS: Mention --pid and corefile/proc-id behavior change.
11838
c18be923
MS
11839 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11840 * gcore.c: Include cli/cli-decode.h instead of command.h.
11841
00546b04
MS
11842 * main.c (captured_main): Add new command line option "--pid".
11843 If the second command line argument (following the symbol-file)
11844 begins with a digit, try to attach to it before trying to open
11845 it as a corefile.
11846 (print_gdb_help): Document the "--pid" argument.
11847
db60ec62
EZ
118482002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11849
11850 * completer.c (command_completer): New function.
11851
11852 * completer.h <command_completer>: Add prototype.
11853
11854 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11855 completer for the "help" command.
11856
39c22d1a
JM
118572002-01-09 Jason Merrill <jason@redhat.com>
11858
11859 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11860
c564377f
MS
118612002-01-09 Michael Snyder <msnyder@redhat.com>
11862
975aec09
MS
11863 * i386-linux-nat.c (fill_fpxregset): Make global.
11864 (store_fpxregset): Ditto.
11865
db4a10fa
MS
11866 * gregset.h (gdb_fpxregset_t): Define.
11867 (supply_fpxregset): Prototype.
11868 (fill_fpxregset): Prototype.
11869
c564377f
MS
11870 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11871
c3d45d70
RE
118722002-01-09 Richard Earnshaw <rearnsha@arm.com>
11873
11874 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11875 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11876 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11877
fcc87af1
AC
118782002-01-09 Andrew Cagney <ac131313@redhat.com>
11879
11880 * MAINTAINERS: Update target maintainer rules so that any
11881 Maintainer can approve a tested patch for a maintenance-only
11882 target.
11883
dd96c05b
RE
118842002-01-09 Richard Earnshaw <rearnsha@arm.com>
11885
d4297db9 11886 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11887
d4297db9 11888 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11889 IN_SIGTRAMP.
11890
145fdc6e
MS
118912002-01-08 Michael Snyder <msnyder@redhat.com>
11892
11893 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11894 real name of the executable, rather than the /proc name.
11895
be4d1333
MS
118962002-01-03 Michael Snyder <msnyder@redhat.com>
11897
11898 Implement a "generate-core-file" command in gdb, save target state.
11899 * gcore.c: New file. Implement new command 'generate-core-file'.
11900 Save a corefile image of the current state of the inferior.
11901 * linux-proc.c: Add linux-specific code for saving corefiles.
11902 * target.h (struct target_ops): Add new target vectors for saving
11903 corefiles; to_find_memory_regions and to_make_corefile_notes.
11904 (target_find_memory_regions): New macro.
11905 (target_make_corefile_notes): New macro.
11906 * target.c (update_current_target): Inherit new target methods.
11907 (dummy_find_memory_regions): New place-holder method.
11908 (dummy_make_corefile_notes): New place-holder method.
11909 (init_dummy_target): Initialize new dummy target vectors.
11910 * exec.c (exec_set_find_memory_regions): New function.
11911 Allow the exec_ops vector for memory regions to be taken over.
11912 (exec_make_note_section): New function, target vector method.
11913 * defs.h (exec_set_find_memory_regions): Export prototype.
11914 * procfs.c (proc_find_memory_regions): New function, corefile method.
11915 (procfs_make_note_section): New function, corefile method.
11916 (init_procfs_ops): Set new target vector pointers.
11917 (find_memory_regions_callback): New function.
11918 (procfs_do_thread_registers): New function.
11919 (procfs_corefile_thread_callback): New function.
11920 * sol-thread.c (sol_find_memory_regions): New function.
11921 (sol_make_note_section): New function.
11922 (init_sol_thread_ops): Initialize new target vectors.
11923 * inftarg.c (inftarg_set_find_memory_regions): New function.
11924 Allow to_find_memory_regions vector to be taken over.
11925 (inftarg_set_make_corefile_notes): New function.
11926 Allow to_make_corefile_notes vector to be taken over.
11927 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11928 interface layer if not target_has_execution (may be a corefile).
11929 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11930 * config/sparc/sun4sol2.mh: Ditto.
11931 * config/alpha/alpha-linux.mh: Ditto.
11932 * config/arm/linux.mh: Ditto.
11933 * config/i386/x86-64linux.mh: Ditto.
11934 * config/ia64/linux.mh: Ditto.
11935 * config/m68k/linux.mh: Ditto.
11936 * config/mips/linux.mh: Ditto.
11937 * config/powerpc/linux.mh: Ditto.
11938 * config/sparc/linux.mh: Ditto.
11939
c6b92abd
MS
119402002-01-07 Michael Snyder <msnyder@redhat.com>
11941
11942 * arm-linux-nat.c: Remove references to regcache.c internal data
11943 (registers[] and register_valid[]).
11944
4b09dc8c
MS
119452002-01-07 Michael Snyder <msnyder@redhat.com>
11946
abf22e64
AJ
11947 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11948 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11949 symbol file and shlibs.
11950 * Makefile.in: Add rule for linux-proc.o.
11951 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11952 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11953 * config/arm/linux.mh: Ditto.
11954 * config/i386/linux.mh: Ditto.
11955 * config/i386/x86-64linux.mh: Ditto.
11956 * config/ia64/linux.mh: Ditto.
11957 * config/m68k/linux.mh: Ditto.
11958 * config/mips/linux.mh: Ditto.
11959 * config/powerpc/linux.mh: Ditto.
11960 * config/sparc/linux.mh: Ditto.
11961
c25b74ac
PM
119622002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11963
11964 * win32-nat.c: Add i386-tdep.h dependency.
11965
94cd915f
MS
119662002-01-07 Michael Snyder <msnyder@redhat.com>
11967
c7cccb76
MS
11968 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11969 instead of bfd_get_arch_size. Don't bail out just because
11970 there's no exec_bfd.
abf22e64 11971
34c0bd93
MS
11972 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11973 * p-valprint.c (pascal_object_print_value): Ditto.
11974 * somread.c (som_symtab_read): Ditto.
11975 * symfile.c (simple_free_overlay_region_table): Ditto.
11976 * valops.c (value_assign): Ditto.
11977
21c1c920
MS
11978 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11979 use tilde_expand and strerror for opening save-tracepoints file.
11980
5bbd998e
MS
11981 * thread-db.c (thread_db_new_objfile): Indendation fix.
11982
94cd915f
MS
11983 * infptrace.c (GDB_MAX_ALLOCA): New define.
11984 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11985 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11986 can be overridden with whatever value is appropriate to the host).
11987 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11988 alloca to allocate potentially large buffer.
11989 * rs6000-nat.c (child_xfer_memory): Ditto.
11990 * symm-nat.c (child_xfer_memory): Ditto.
11991 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11992
494e8a93
JSC
119932002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11994
11995 From Nick Clifton <nickc@redhat.com>
11996 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11997
d0e1d48e
MS
119982002-01-07 Michael Snyder <msnyder@redhat.com>
11999
abf22e64 12000 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12001 Don't use exec_bfd if it's NULL.
12002
290b2c7a
MK
120032002-01-06 Mark Kettenis <kettenis@gnu.org>
12004
abf22e64 12005 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12006
aef21287
AC
120072002-01-06 Andrew Cagney <ac131313@redhat.com>
12008
12009 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12010 * gnu-nat.c: Ditto.
12011
30efa627
AC
120122002-01-06 Andrew Cagney <ac131313@redhat.com>
12013
12014 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12015 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12016 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12017 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12018 z8k-coff have not been multi-arched. Update z8k-coff build
12019 status.
12020
9b4ff276
AC
120212002-01-06 Andrew Cagney <ac131313@redhat.com>
12022
12023 * MAINTAINERS: Mark a29k target as obsolete.
12024 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12025 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12026 comments.
12027 * NEWS: Note that a29k targets are obsolete.
12028 * a29k-tdep.c: Mark as obsolete.
12029 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12030 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12031 a29k-*-vxworks* targets as obsolete.
12032 * remote-adapt.c: Obsolete.
12033 * remote-eb.c: Obsolete.
12034 * remote-mm.c: Obsolete.
12035 * remote-udi.c: Obsolete.
12036 * config/a29k/a29k-udi.mt: Obsolete.
12037 * config/a29k/a29k.mt: Obsolete.
12038 * config/a29k/tm-a29k.h: Obsolete.
12039 * config/a29k/tm-vx29k.h: Obsolete.
12040 * config/a29k/vx29k.mt: Obsolete.
12041
a9011d31
AC
120422002-01-05 Andrew Cagney <ac131313@redhat.com>
12043
12044 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12045 with BFD_ENDIAN_BIG.
12046
9299404e
AC
120472002-01-05 Andrew Cagney <ac131313@redhat.com>
12048
12049 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12050 * configure, config.in: Re-generate.
12051 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12052 * defs.h: Do not include <endian.h>.
12053
7e89e357
JT
120542002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12055
12056 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12057 * config.in: Regenerate.
12058 * configure.in: Update copyright years.
12059 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12060 * configure: Regenerate.
12061 * i386bsd-nat.c: Update copyright years.
12062 (fill_gregset): Use regcache_collect.
12063 (fetch_inferior_registers): Only fetch integer registers
12064 if requested to do so. Add support for XMM registers
12065 using PT_GETXMMREGS.
12066 (store_inferior_registers): Only store integer registers
12067 if requested to do so. Add support for XMM registers
12068 using PT_SETXMMREGS.
12069 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12070 (store_inferior_registers): Remove.
12071 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12072 (fetch_elfcore_registers): New function.
12073 (i386nbsd_elfcore_fns): New.
12074 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12075 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12076 i386bsd-nat.o.
12077 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12078 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12079 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12080 * config/i386/tm-nbsd.h: Update copyright years.
12081 (HAVE_SSE_REGS): Define.
12082 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12083 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12084 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12085 (SIGCONTEXT_PC_OFFSET): Remove.
12086 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12087
a752853e
AC
120882002-01-05 Andrew Cagney <ac131313@redhat.com>
12089
12090 * configure.tgt: Remove powerpc-*-macos* target.
12091 * config/m68k/xm-mpw.h: Delete file.
12092 * config/xm-mpw.h: Delete file.
12093 * ser-mac.c: Delete file.
12094 * mpw-make.sed: Delete file.
12095 * mpw-config.in: Delete file.
12096 * mac-xdep.c: Delete file.
12097 * mac-gdb.r: Delete file.
12098 * mac-defs.h: Delete file.
12099 * mac-nat.c: Delete file.
12100 * config/powerpc/macos.mh: Delete file.
12101 * config/powerpc/macos.mt: Delete file.
12102 * config/powerpc/nm-macos.h: Delete file.
12103 * config/powerpc/tm-macos.h: Delete file.
12104 * source.c (openp, open_source_file): Remove obsolete code.
12105 * top.c (gdb_readline): Ditto.
12106 * utils.c (query): Ditto.
12107 * event-top.c (display_gdb_prompt): Ditto.
12108 * Makefile.in (ser-mac.o): Delete obsolete target.
12109 * NEWS: Update.
12110
d7449b42
AC
121112002-01-04 Andrew Cagney <ac131313@redhat.com>
12112
12113 * defs.h (BIG_ENDIAN): Delete macro definition.
12114 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12115 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12116 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12117 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12118 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12119 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12120 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12121 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12122 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12123 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12124 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12125 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12126 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12127 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12128 * gdbarch.c: Re-generate.
12129
356374e8
DJ
121302002-01-04 Daniel Jacobowitz <drow@mvista.com>
12131
12132 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12133 for core files.
12134
a2b8f8f8
JT
121352002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12136
12137 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12138
12466af9
AC
121392002-01-04 Andrew Cagney <ac131313@redhat.com>
12140
12141 * value.h (value_ptr): Delete typedef.
12142
3549ab40
JT
121432002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12144
12145 * i386nbsd-nat.c: Update copyright years.
12146 Include i386-tdep.h.
12147
fedbd091
EZ
121482002-01-04 Elena Zannoni <ezannoni@redhat.com>
12149
12150 * stabsread.c: Update copyright years.
12151
12152 From Debashis Mahata <debashis.mahata@wipro.com>:
12153 (read_struct_fields): Deal with Sun C compiler erroneous stab
12154 output for structs and unions.
fec8b34f 12155 Fix PR gdb/269.
fedbd091 12156
eb43544b
DJ
121572002-01-04 Daniel Jacobowitz <drow@mvista.com>
12158
12159 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12160 prototype.
12161
1514d34e
DJ
121622002-01-04 Daniel Jacobowitz <drow@mvista.com>
12163
12164 * cp-abi.c: Fix whitespace.
12165 (baseclass_offset): New wrapper function.
12166 * cp-abi.h (baseclass_offset): Add prototype.
12167 (struct cp_abi_ops): Add baseclass_offset pointer.
12168
12169 * valops.c (vb_match): Move to...
12170 * gnu-v2-abi.c (vb_match): here.
12171 * valops.c (baseclass_offset): Move to...
12172 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12173
12174 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12175
12176 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12177 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12178 * hpacc-abi.c (init_hpacc_ops): Likewise.
12179
7f8c9282
DJ
121802002-01-04 Daniel Jacobowitz <drow@mvista.com>
12181
12182 * valops.c (find_overload_match): Accept obj as a
12183 reference parameter. Update it before returning.
12184 * value.h (find_overload_match): Update prototype.
12185 * eval.c (evaluate_subexp_standard): Pass object to
12186 find_overload_match by reference.
12187
f23631e4
AC
121882002-01-03 Andrew Cagney <ac131313@redhat.com>
12189
12190 * valarith.c: Replace value_ptr with struct value pointer. Remove
12191 register attribute from value declarations.
12192 * valops.c: Ditto.
12193 * value.h: Ditto.
12194 * scm-lang.c (scm_lookup_name): Ditto.
12195
79e10fab 121962002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12197
79e10fab
AC
12198 Abstract the functionality of iterating over mapped memory
12199 regions into a general purpose iterator function.
abf22e64 12200 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12201 iterator for memory sections.
12202 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12203 (solib_mappings_callback): New function, callback for above.
12204 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12205 (info_mappings_callback): New function, callback for above.
12206
12207 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12208
c5ad026a
MK
122092002-01-01 Mark Kettenis <kettenis@gnu.org>
12210
d2a7c97a
MK
12211 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12212 * i386-tdep.c: Include "elf-bfd.h".
12213 (process_note_abi_tag_sections): New function.
12214 (i386_gdbarch_init): Add code to recognize various OS/ABI
12215 combinations.
12216
c5ad026a
MK
12217 * maint.c (_initialize_maint_cmds): Add missing \ in
12218 string-literal.
12219
a1a5b71e 12220For older changes see ChangeLog-2001
c906108c
SS
12221\f
12222Local Variables:
12223mode: change-log
12224left-margin: 8
12225fill-column: 74
12226version-control: never
12227End:
This page took 0.871387 seconds and 4 git commands to generate.