* x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab91194c
MK
12002-10-26 Mark Kettenis <kettenis@gnu.org>
2
e3033f15
MK
3 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
4 cfi_init_extra_frame_info.
5 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
6 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
7
b83b026c
MK
8 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
9 target where necessary. Add more comments and remove the ones
10 that don't provide any useful information.
11
267bf4bb
MK
12 * i386-tdep.c (i386_frame_saved_pc): Replace call to
13 deprecated_read_register_dummy with
14 frame_unwind_unsigned_register.
15
751f1375
MK
16 * i386-tdep.c (i386_extract_struct_value_address): Use
17 regcache_raw_read_unsigned instead of
18 regcache_cooked_read_unsigned since we know that the register
19 we're reading isn't a pseudo register. Rename variable 'val' into
20 the more descriptive 'addr'.
21
26abbdc4
MK
22 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
23 (x86_64_push_return_address): Add comment.
24 (x86_64_pop_frame): Make static.
25 (examine_argument): Clarify comment.
26 (x86_64_skip_prologue): Make prolog_expact variable static.
27
9f1549cc
MK
28 * dwarf2cfi.c: Fix some formatting problems.
29 (context_cpy, read_encoded_pointer): Clarify comments.
30
ab91194c
MK
31 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
32 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
33 i386 target back into x86_64_gdbarch_init. Add some comments and
34 remove meaningless ones.
35
72367fb4
AC
362002-10-25 Andrew Cagney <cagney@redhat.com>
37
38 * complaints.h (struct deprecated_complaint): Rename `struct
39 complaint'.
40 * complaints.c (complain): Update.
41 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
42 incorrect comment indicating that "symfile.h" was being included
43 for the `struct complaint' definition.
44 * remote-vx.c: Update.
45 * objc-lang.c: Update.
46 * xcoffread.c: Update.
47 * hpread.c: Update.
48 * mdebugread.c: Update.
49 * stabsread.c: Update.
50 * dwarf2read.c: Update.
51 * dwarfread.c: Update.
52 * elfread.c: Update.
53 * coffread.c: Update.
54 * stabsread.h: Update.
55 * dbxread.c: Update.
56 * buildsym.c: Update.
57 * gdbtypes.c: Update.
58 * macrotab.c: Update.
59
1f2baacc
MK
602002-10-25 Mark Kettenis <kettenis@gnu.org>
61
0c1a73d6
MK
62 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
63 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
64 (x86_64_init_abi): ...new function.
65
6aee4d54 66 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
67 * i386v-nat.c: Include "i386-tdep.h".
68
8f9cbe01
AC
692002-10-25 Andrew Cagney <cagney@redhat.com>
70
5f11f355
AC
71 * gdbtypes.c (address_space_name_to_int): Update.
72 (address_space_int_to_name): Update.
73 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
74 multi-arch predicate.
75 (address_class_name_to_type_flags): Ditto.
76 * gdbarch.h, gdbarch.c: Re-generate.
77
8f9cbe01
AC
78 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
79
e8d96a5d
MH
802002-10-24 Martin M. Hunt <hunt@redhat.com>
81
82 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
83
fe39c653
EZ
842002-10-24 Elena Zannoni <ezannoni@redhat.com>
85
86 * symtab.h (INIT_SAL): Delete macro.
87 (init_sal): Export.
88 * symtab.c (init_sal): New function.
89
90 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
91 to init_sal function call.
92 (find_sal_from_funcs_and_line): Ditto.
93 (all_sals_for_line): Ditto.
94 * breakpoint.c (create_internal_breakpoint): Ditto.
95 (create_fork_vfork_event_catchpoint): Ditto.
96 (create_exec_event_catchpoint): Ditto.
97 (parse_breakpoint_sals): Ditto.
98 (watch_command_1): Ditto.
99 (handle_gnu_4_16_catch_command): Ditto.
100 (clear_command): Ditto.
101 * hppa-tdep.c (child_enable_exception_callback): Ditto.
102 * infcmd.c (run_stack_dummy): Ditto.
103 * infrun.c (process_event_stop_test): Ditto.
104 (check_sigtramp2): Ditto.
105 (step_over_function): Ditto.
106 * linespec.c (decode_line_2): Ditto.
107 (decode_line_1): Ditto.
108 * source.c (line_info): Ditto.
109 * symtab.c (find_pc_sect_line): Ditto.
110
baed091b
ML
1112002-10-24 Michal Ludvig <mludvig@suse.cz>
112
113 * dwarf2cfi.c (struct context)
114 (struct context_reg): Moved to dwarf2cfi.h
115 (context_alloc, frame_state_alloc, context_cpy):
116 Made extern instead of static, removed prototypes.
117 * dwarf2cfi.h (struct context)
118 (struct context_reg): New, moved from dwarf2cfi.c
119 (context_alloc, frame_state_alloc, context_cpy):
120 New prototypes.
121 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
122 Changed from static to extern.
123 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
124 (LINUX_SIGCONTEXT_FP_OFFSET)
125 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
126 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
127 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
128 * x86-64-tdep.c (x86_64_gdbarch_init): Several
129 set_gdbarch_*() calls now use x86-64 specific functions
130 instead of DWARF2 CFI ones.
131 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
132 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
133 (x86_64_init_extra_frame_info): New prototypes.
134
c38da1af
DC
1352002-10-23 David Carlton <carlton@math.stanford.edu>
136
137 * linespec.c: #include "parser-defs.h".
138 Delete prototype for find_template_name_end.
139 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
140
fb9b6b35
JJ
1412002-10-23 Jeff Johnston <jjohnstn@redhat.com>
142
143 * NEWS: add recent mi fixes.
144 * varobj.c (struct varobj): Add new "updated" flag.
145 (new_variable): Default "updated" flag to 0.
146 (varobj_set_value): Set "updated" flag to 1 if value
147 changes.
148 (varobj_update): Check varobj "updated" flag before
149 comparing old and refreshed values. Fix for
150 PR gdb/702.
151
8da065d5
DC
1522002-10-23 David Carlton <carlton@math.stanford.edu>
153
154 * parse.c (parse_exp_1): Use BLOCK_START.
155 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
156 SYMBOL_BLOCK_VALUE.
157 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
158
87f2f08c
DC
1592002-10-23 David Carlton <carlton@math.stanford.edu>
160
161 * symtab.c: Delete cplusplus_hint.
162 Delete prototype for find_template_name_end.
163
88cda038
EZ
1642002-10-23 Elena Zannoni <ezannoni@redhat.com>
165
166 * symtab.h: Update comment.
167
2625d86c
MS
1682002-10-23 Michael Snyder <msnyder@redhat.com>
169
170 * printcmd.c (address_info): Restore quotes in output.
171 * valops.c (value_of_local): Restore quotes in error message.
172
9cc0d196
EZ
1732002-10-23 Elena Zannoni <ezannoni@redhat.com>
174
175 * symtab.c (symbol_demangled_name): New function.
176 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
177 turning most of it into a function.
178 (symbol_demangled_name): Export.
179
19de93d0
MS
1802002-10-23 Michael Snyder <msnyder@redhat.com>
181
182 * valops.c (value_of_local): Restore quotes in error message.
183
89aad1f9
EZ
1842002-10-23 Elena Zannoni <ezannoni@redhat.com>
185
186 * symtab.c (symbol_init_language_specific): New function.
187 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
188 turning most of it into a function.
189 (symbol_init_language_specific): Export.
190
d9fa45fe
DC
1912002-10-23 David Carlton <carlton@math.stanford.edu>
192
193 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
194 (dwarf_attr_name): Ditto.
195 (dwarf_type_encoding_name): Ditto.
196 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
197 (process_die): Handle DW_TAG_namespace,
198 DW_TAG_imported_declaration, DW_TAG_imported_module.
199 (read_namespace): New function.
200
1045b512
JB
2012002-10-22 Joel Brobecker <brobecker@gnat.com>
202
203 * configure.in: Define NEW_PROC_API on Interix too.
204 * configure: Regenerate.
205
2062002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
207
208 * configure: Regenerate using the proper version of autoconf.
209
3987b9d4
EZ
2102002-10-21 Elena Zannoni <ezannoni@redhat.com>
211
212 * findvar.c (read_var_value): Temporarily disable TLS code, until
213 complete TLS support is added.
214
9d774e44
EZ
2152002-10-21 Jim Blandy <jimb@redhat.com>
216 Elena Zannoni <ezannoni@redhat.com>
217
218 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
219 for thread local storage locations.
220 (struct symbol): Add objfile field.
221 (SYMBOL_OBJFILE): Define.
222 * dwarf2read.c (is_thread_local): New static variable.
223 (new_symbol): If variable is in thread local fill in address class
224 and objfile appropriately.
225 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
226 stack operation.
227 * printcmd.c (address_info): Print the information for thread
228 local storage variable.
229 * findvar.c (read_var_value): In case of thread local variable,
230 defer to the target vector code to compute address.
231
bc4a16ae
EZ
2322002-10-21 Elena Zannoni <ezannoni@redhat.com>
233
234 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
235 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
236
407caf07
EZ
2372002-10-21 Elena Zannoni <ezannoni@redhat.com>
238
239 * symtab.h (address_class): Rename
240 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
241 * hpread.c (hpread_process_one_debug_symbol): Ditto.
242 * printcmd.c (address_info): Ditto.
243 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
244
005328e3
MK
2452002-10-20 Mark Kettenis <kettenis@gnu.org>
246
afdb036a
MK
247 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
248 DBREG_DRX macro to acces debug registers.
249
ca02e098
MK
250 * Makefile.in (i386obsd-tdep.o): New target.
251
03cc47f7
MK
252 * solib-sunos.c: Include "bcache.h" and "regcache.h".
253 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
254
005328e3
MK
255 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
256 * config/i386/obsd.mt: New file.
257 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
258 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
259 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
260 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
261 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
262 * i386obsd-tdep.c: New file.
263
9c96f9f2
AF
2642002-10-19 Adam Fedor <fedor@gnu.org>
265
266 * objc-exp.y (name_not_typename): Fix invalid comment.
267
ce1ed485
MK
2682002-10-20 Mark Kettenis <kettenis@gnu.org>
269
270 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
271 to allocate partial syms and macro byte caches.
272
1efc7aaa
DC
2732002-10-18 David Carlton <carlton@math.stanford.edu>
274
275 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
276
7e1d63ec
AF
2772002-10-18 Adam Fedor <fedor@gnu.org>
278
279 * stabsread.c (find_name_end): New function.
280 (define_symbol): Use it.
281
6e8d29a9
DJ
2822002-10-18 Daniel Jacobowitz <drow@mvista.com>
283
284 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
285 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
286 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
287 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
288
1efc7aaa 2892002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
290
291 * symfile.h: Add opaque declaration for struct obstack.
292 Declare obsavestring to take a const char *.
293 * symfile.c (obsavestring): Make first argument a const char *.
294
1aeae86e
AF
2952002-10-16 Adam Fedor <fedor@gnu.org>
296
297 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
298 names when matching breakpoints in current file.
299
8b2dbe47
KB
3002002-10-16 Kevin Buettner <kevinb@redhat.com>
301
302 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
303 (read_tag_pointer_type): Add address class support.
304 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
305 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
306 New methods.
307 * gdbarch.h, gdbarch.c: Regenerate.
308 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
309 (make_type_with_address_space, recursive_type_dump): Add address
310 class support.
311 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
312 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
313 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
314
74451869
KD
3152002-10-16 Klee Dienes <kdienes@apple.com>
316
317 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
318 to get the last character of a char[] buffer, not
319 name[sizeof(vptr_name)-1].
320
ff4cb3e8
AF
3212002-10-14 Adam Fedor <fedor@gnu.org>
322
323 * symtab.h: New objc_specific struct.
324 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
325 (SYMBOL_DEMANGLED_NAME): Likewise.
326
da2cf7e0
AF
3272002-10-14 Adam Fedor <fedor@gnu.org>
328
329 * symfile.c (init_filename_language_table): Add ObjC file extension.
330
4a351cef
AF
3312002-10-14 Adam Fedor <fedor@gnu.org>
332
333 * utils.c (puts_filtered_tabular): New function.
334 (fprintf_symbol_filtered): Get ObjC demangled name.
335 * defs.h (puts_filtered_tabular): Declared.
336
9750e763
KB
3372002-10-14 Kevin Buettner <kevinb@redhat.com>
338
339 * c-lang.h (c_type_print_varspec_prefix): Delete.
340 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
341 ``need_post_space'' parameter. Adjust all callers.
342
eee771c1
DJ
3432002-10-14 Daniel Jacobowitz <drow@mvista.com>
344
345 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
346 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
347 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
348 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
349
46c82446
AF
3502002-10-13 Adam Fedor <fedor@gnu.org>
351
352 * source.c (print_source_lines): Update comments.
353
d069f99d
AF
3542002-10-13 Adam Fedor <fedor@gnu.org>
355
356 * valops.c (value_of_local): New function.
357 (value_of_this): Use it.
358 * value.h (value_of_local): Declared.
359
53c551b7
AF
3602002-10-13 Adam Fedor <fedor@gnu.org>
361
362 * parse.c: (length_of_subexp, prefixify_subexp): Handle
363 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
364
eb392fbf
AF
3652002-10-12 Adam Fedor <fedor@gnu.org>
366
367 * language.c (binop_result_type): Add language_objc to case.
368 (integral_type): Likewise.
369 (character_type): Likewise.
370 (string_type): Likewise.
371 (boolean_type): Likewise.
372 (structured_type): Likewise.
373 (binop_type_check): Likewise.
374
e2b23ee9
AF
3752002-10-11 Adam Fedor <fedor@gnu.org>
376
377 * printcmd.c (address_info): Print 'self' for ObjC.
378
b01ab485
AF
3792002-10-11 Adam Fedor <fedor@gnu.org>
380
381 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
382 OP_SELF.
383
806e6073
AF
3842002-10-11 Adam Fedor <fedor@gnu.org>
385
386 * language.h (CAST_IS_CONVERSION): Add language_objc.
387
50f85cdf
AF
3882002-10-11 Adam Fedor <fedor@gnu.org>
389
390 * defs.h (enum language): Add language_objc.
391
0d540cdf
KD
3922002-10-11 Klee Dienes <kdienes@apple.com>
393
394 * findvar.c (read_memory_typed_address): New function.
395 * gdbcore.h (read_memory_typed_address): Add prototype.
396 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
397 to read a value destined for a CORE_ADDR, not read_memory_integer.
398 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
399 (f77_get_dynamic_lowerbound): Ditto.
400
d5dc7960
MH
4012002-10-11 Martin M. Hunt <hunt@redhat.com>
402
403 * utils.c (string_to_core_addr): After turning string into
404 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
405 which will do necessary sign-extension, etc.
406
8343f86c
DJ
4072002-10-11 Daniel Jacobowitz <drow@mvista.com>
408
409 * c-exp.y (THIS): Delete token and grammar rule.
410 (yylex): Don't return THIS.
411 * cp-valprint.c (vtbl_ptr_name_old): Delete.
412 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
413 * demangle.c (cplus_markers): Update comment. Put '$'
414 first. Remove CPLUS_MARKER.
415 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
416 * jv-exp.y (THIS): Delete token and grammar rule.
417 (yylex): Don't return THIS.
418 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
419 * objc-exp.y (THIS): Delete token and grammar rule.
420 (yylex): Don't return THIS.
421 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
422 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
423 (read_member_functions): Likewise for opname.
424 (read_tilde_fields): Use is_cplus_marker.
425
426 * defs.h (CPLUS_MARKER): Don't define.
427 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
428 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
429 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
430 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
431 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
432
433 * config/i386/tm-i386v4.h: Delete file.
434 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
435 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
436 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
437 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
438 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
439 * config/i386/i386sco5.mt (TM_FILE): Likewise.
440 * config/i386/i386v4.mt (TM_FILE): Likewise.
441 * config/i386/ncr3000.mt (TM_FILE): Likewise.
442
967c0d83
MM
4432002-10-10 Marko Mlinar <markom@opencores.org>
444
445 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
446 accidentially not commited 2002-10-09
447 * gdbarch.h, gdbarch.c: Re-generate.
448
f74fa174
MM
4492002-10-09 Marko Mlinar <markom@opencores.org>
450
451 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
452 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
453 * gdbarch.h, gdbarch.c: Re-generate.
454
57349743
JB
4552002-10-08 Petr Sorfa <petrs@caldera.com>
456
457 Revised and re-submitted by John Wolfe <jlw@caldera.com>
458
459 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
460 so we can work on more than one compilation unit at a time. This
461 helps prepare GDB to handle inter-CU die references.
462 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
463 the code to be defined before struct comp_unit_head.
464 (comp_unit_head): Added new members - offset, cu_head,
465 begin_die, next and dwarf2_abbrevs.
466 (dwarf2_abbrevs): Removed single static var; now member of
467 struct comp_unit_head.
468 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
469 members.
470 (psymtab_to_symtab_1): Changed to work with the new
471 struct comp_unit_head.
472 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
473 constructs the dwarf2_abbrevs[] inside the cu_header.
474 (dwarf2_empty_abbrev_table): Now expects a ptr to a
475 dwarf2_abbrev table to clean up.
476 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
477 handling of dwarf2_abbrevs inside the cu_header.
478 (read_partial_die): Now supports the call to the new
479 dwarf2_lookup_abbrev.
480 (read_full_die): Now supports the call to the new
481 dwarf2_lookup_abbrev.
482
4092aadb
CF
4832002-10-06 Christopher Faylor <cgf@redhat.com>
484
485 * Makefile.in (install-gdbtk): Add missing continuation backslash to
486 insure that shell variables, such as "transformed_name" are propagated
487 to later shell statements in rule.
488
af0b2512
MK
4892002-10-06 Mark Kettenis <kettenis@gnu.org>
490
491 * config/i386/nm-i386sco.h: Add protection against
492 multiple-inclusion. Include "i386/nm-i386v.h".
493 (REGISTER_U_ADDR): Remove define.
494 (i386_register_u_addr): Remove prototype.
495
d6020d45
MS
4962002-10-04 Michael Snyder <msnyder@redhat.com>
497
498 * m32r-stub.c (handle_exception): Make sure exception is "trap"
499 before treating it as a single-step event.
500
7248f48e
AF
5012002-10-03 Adam Fedor <fedor@gnu.org>
502
503 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
504 (objc_demangle): Remove assignment in if statements, Replace
505 free with xfree.
506 (add_msglist): Likewise.
507 (end_msglist): Likewise.
508 (complare_selectors): Likewise.
509 (selectors_info): Likewise.
510 (compare_classes): Likewise.
511 (classes_info): Likewise.
512 (print_object_command): Likewise.
513 (find_objc_msgcall_submethod): Replace PTR with void *.
514 * objc-lang.h: Remove check for __STDC__.
515
52c6a6ac
JJ
5162002-10-03 Jeff Johnston <jjohnstn@redhat.com>
517
518 * ui-out.h (ui_out_field_fmt_int): New prototype.
519 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
520 of field width and alignment.
521 * stack.c (print_frame_info_base): When printing frame level, use
522 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
523 PR gdb/192
524
7e3cec17
JJ
5252002-10-03 Jeff Johnston <jjohnstn@redhat.com>
526
527 * MAINTAINERS: Add self to Write After Approval list.
528
a58dd373
EZ
5292002-10-02 Elena Zannoni <ezannoni@redhat.com>
530
531 * infcmd.c (interrupt_target_command_wrapper): Delete.
532 (interrupt_target_command): Make non static.
533 (nofp_registers_info): Make static.
534 * stack.c (return_command_wrapper): Delete.
535 (return_command): Make non static.
536
cee6ddeb
EZ
5372002-10-02 Elena Zannoni <ezannoni@redhat.com>
538
539 * event-top.c (gdb_setup_readline): New function. Code moved from
540 _initialize_event_loop().
541 (_initialize_event_loop): Call gdb_setup_readline().
542
c4ed33b9
AC
5432002-10-02 Andrew Cagney <ac131313@redhat.com>
544
545 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
546 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
547 * gdbarch.h, gdbarch.c: Re-generate.
548
cef4f5dd
DJ
5492002-10-02 Daniel Jacobowitz <drow@mvista.com>
550
551 Fix PR gdb/778
552 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
553 before recursing.
554 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
555 of fill_in_vptr_fieldno.
556
36dc181b 5572002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 558
36dc181b
EZ
559 * inferior.h (registers_info, stepi_command, nexti_command,
560 continue_command, interrupt_target_command): Export from infcmd.c.
561 * frame.h (args_info, selected_frame_level_changed_hook,
562 return_command): Export from stack.c.
563 * v850ice.c (stepi_command, nexti_command, continue_command): use
564 prototypes from inferior.h.
565 * tracepoint.c (registers_info, args_info, locals_info): Use
566 prototypes from frame.h and inferior.h.
567 * Makefile.in (mi-main.o): Add dependency on frame.h.
568
6f99cb26
AC
5692002-10-02 Andrew Cagney <ac131313@redhat.com>
570
da3eff49
AC
571 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
572 value in register 3 adjusted by ppc_gp0_regnum.
573
6f99cb26
AC
574 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
575
da615bee
MM
5762002-10-02 Marko Mlinar <markom@opencores.org>
577
578 * MAINTAINERS: Add myself to the Write After Approval list.
579
d154bee2
AO
5802002-10-01 Alexandre Oliva <aoliva@redhat.com>
581
62a49b2c
AO
582 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
583 of the section for the N64 ABI, fixed.
584
d154bee2
AO
585 * config/mips/tm-irix6.h: Include solib.h.
586
ed348acc
EZ
5872002-10-01 Elena Zannoni <ezannoni@redhat.com>
588
589 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
590 GNU operators.
591
da0f9dcd
AC
5922002-10-01 Andrew Cagney <ac131313@redhat.com>
593
594 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
595 and that "mi0" syntax has been removed.
596
bdf64bac
DC
5972002-09-30 David Carlton <carlton@math.stanford.edu>
598
599 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
600 * ppc-sysv-tdep.c: #include "gdb_string.h".
601 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
602 pacify GCC.
603
54c2a1e6
AC
6042002-10-01 Andrew Cagney <ac131313@redhat.com>
605
606 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
607 "vrsave"'s register number.
608
cedea778
AC
6092002-09-30 Andrew Cagney <ac131313@redhat.com>
610
611 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
612 use frame_unwind_signed_register to obtain the PC.
613 (mips_frame_chain): Handle a generic dummy frame.
614 (mips_init_extra_frame_info): When a generic dummy frame, don't
615 re-compute the frame base.
616 (mips_pop_frame): Handle generic dummy frames.
617 (mips_gdbarch_init): When generic dummy frames, set
618 use_generic_dummy_frames, push_dummy_frame to
619 generic_push_dummy_frame, pc_in_call_dummy to
620 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
621 generic_save_dummy_frame_tos.
622
68315eb8
AC
6232002-09-30 Andrew Cagney <ac131313@redhat.com>
624
625 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
626 against TOP when TOP was explictly set.
627 (generic_push_dummy_frame): Set TOP to zero.
628
3b8630c3
EZ
6292002-09-30 Elena Zannoni <ezannoni@redhat.com>
630
631 * event-loop.c (start_event_loop): Rename variable 'result' to
632 'gdb_result', to avoid conflicts with upcoming intepreters changes.
633
28ee05e9
KS
6342002-09-30 Keith Seitz <keiths@redhat.com>
635
636 * gdb-events.sh (selected_thread_changed): New event.
637 * gdb-events.c: Regenerated.
638 * gdb-events.h: Regenerated.
639
6eecb1c8
HPN
6402002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
641
642 * MAINTAINERS: Add self to Write After Approval list.
643
92df71f0
FN
6442002-09-30 Fernando Nasser <fnasser@redhat.com>
645
3b8630c3
EZ
646 * disasm.c: New file.
647 * disasm.h: New file.
92df71f0
FN
648 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
649 (compare_lines): Ditto.
650 (dump_insns): Ditto.
3b8630c3
EZ
651 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
652 argument.
92df71f0 653 (do_assembly_only): Ditto.
3b8630c3
EZ
654 (do_disassembly): Renamed to gdb_disassembly and moved to
655 disasm.c. Sdded uiout argument.
656 * Makefile.in: Add new files. Reorder SFILES list. Update
657 dependencies. Include libgdb.a later in the insight executable.
92df71f0 658
0c22854d
AC
6592002-09-29 Andrew Cagney <ac131313@redhat.com>
660
661 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
662 bfd/elf64-alpha-fbsd.c.
663
e67f2023
AC
6642002-09-29 Andrew Cagney <ac131313@redhat.com>
665
666 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
667 i386gnu-tdep.c.
668
89396210
AC
6692002-09-29 Andrew Cagney <ac131313@redhat.com>
670
671 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
672 __FUNCTION__.
673 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
674 function name.
675 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
676 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
677 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
678 (S_msg_sig_post_reply): Ditto.
679
7079c36c
CV
6802002-09-28 Corinna Vinschen <vinschen@redhat.com>
681
89396210
AC
682 * sh-tdep.c (sh_use_struct_convention): Use definition according
683 to ABI.
7079c36c
CV
684 (sh_push_arguments): Store in register with correct endianess.
685 (sh_default_store_return_value): Ditto.
686 (sh_gdbarch_init): Set sizeof long double to 8.
687
975ac915
MK
6882002-09-27 Mark Kettenis <kettenis@gnu.org>
689
690 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
691 Fix some whitespace problems.
692
9bbe19fb
DC
6932002-09-27 David Carlton <carlton@math.stanford.edu>
694
695 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
696 (mcore-tdep.o): Ditto.
697 (ns32k-tdep.o): Ditto.
698 (ns32knbsd-tdep.o): Ditto.
699 (sh3-rom.o): Ditto.
700 (vax-tdep.o): Ditto.
701 * cris-tdep.c: #include "gdb_string.h"
702 * mcore-tdep.c: Ditto.
703 * ns32k-tdep.c: Ditto.
704 * ns32knbsd-tdep.c: Ditto.
705 * sh3-rom.c: Ditto.
706 * vax-tdep.c: Ditto.
707
43b2fdc7
DC
7082002-09-27 David Carlton <carlton@math.stanford.edu>
709
710 * config/djgpp/fnchange.lst: Add entries for
711 gdb/testsuite/gdb.c++/m-static files.
712
e8cfbbd9
JW
7132002-09-27 Jim Wilson <wilson@redhat.com>
714
715 * MAINTAINERS: Add myself to the Write After Approval list.
716
43b2fdc7 7172002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
718
719 * mips-tdep.c (find_proc_desc): Initialize startaddr.
720
721
9f3b7f07
AC
7222002-09-26 Andrew Cagney <ac131313@redhat.com>
723
724 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
725 frame.
726
11269d7e
AC
7272002-09-26 Andrew Cagney <ac131313@redhat.com>
728
729 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
730 (rs6000_struct_return_address): Delete variable.
731 (rs6000_store_struct_return): Update.
732 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
733 deprecated_extract_struct_value_address.
734 (rs6000_frame_align): New function.
735 (rs6000_gdbarch_init): Set frame_align.
736
f15ab4a7
AC
7372002-09-26 Andrew Cagney <ac131313@redhat.com>
738
739 From Grace Sainsbury <graces@redhat.com>:
740 * Makefile.in (gdbtk-main.o): New target.
741 (gdb.o): New target.
742 (main_h): Define.
743 (main.o): Update dependencies.
744 (gdb$(EXEEXT)): Add gdb.o.
745 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
746 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
747 (SUBDIR_GDBTK_CLEAN): Set.
748 (install-gdbtk): Install the insight binary.
749 (uninstall-gdbtk): New target.
750 (all-gdbtk, clean-gdbtk): New rule.
751 * top.c (use_windows): Default to zero.
752 * main.c: Include "main.h".
753 (main): Delete.
754 (struct captured_main_args): Delete.
755 (gdb_main): New function.
756 * main.h: New file.
757 * gdb.c: New File.
758
e36180d7
AC
7592002-09-25 Andrew Cagney <cagney@redhat.com>
760
761 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
762 (frame_map_regnum_to_name): New function.
763 (frame_map_name_to_regnum): New function.
764 * frame.h (frame_map_name_to_regnum): Declare.
765 (frame_map_regnum_to_name): Declare.
766 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
767 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
768 * parse.c: Do not include "builtin-regs.h".
769 (target_map_name_to_register): Delete function.
770 (write_dollar_variable): Use frame_map_name_to_regnum.
771 * parser-defs.h (target_map_name_to_register): Delete declaration.
772 * expprint.c: Include "frame.h".
773 (print_subexp): Use frame_map_regnum_to_name.
774 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
775 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
776
8b69000d
AC
7772002-09-25 Andrew Cagney <ac131313@redhat.com>
778
779 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
780 wasn't saved, and the next innermost frame is a dummy, return the
781 dummy frame's link register.
782
046ca86a
JB
7832002-09-24 Jim Blandy <jimb@redhat.com>
784
785 Fix from Paul Breed:
786 * main.c (captured_main): Add a `break' after the case for 'b'.
787
94b66fa7
KS
7882002-09-24 Keith Seitz <keiths@redhat.com>
789
790 * varobj.c (c_type_of_child): Use get_target_type instead
791 of TYPE_TARGET_TYPE.
792
c214a6fd
FN
7932002-09-22 Fernando Nasser <fnasser@redhat.com>
794
53cb0458
FN
795 * source.c (get_current_or_default_source_symtab_and_line): Remove
796 function.
797 (set_default_source_symtab_and_line): New function. Attempts to
798 determine a source file to list lines from if one is not currently
799 defined.
800 (get_current_source_symtab_and_line): Initialize sal.pc and
801 sal.end fields.
802 (set_current_source_symtab_and_line): Mark argument as const.
803 * source.h: Update declarations and comments.
804 * linespec.c (decode_line_1): Replace call to removed routine above.
805 * stack.c (print_frame_info_base): Ditto.
806 * cli/cli-cmds.c (edit_command): Ditto.
807 (list_command): Ditto.
808
8092002-09-22 Fernando Nasser <fnasser@redhat.com>
810
d6020d45 811 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 812 sal.pc and sal.end fields.
c214a6fd
FN
813 (get_current_or_default_source_symtab_and_line): Ditto.
814 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
815 so we do not cause a new source symtab to be searched for (reverting an
816 unintentional change from the 2002-09-20 patch).
817 * scm-lang.c (scm_unpac): Ditto.
818
cc3b68a5
AC
8192002-09-21 Andrew Cagney <cagney@redhat.com>
820
821 * complaints.c (symfile_explanations): Remove new-line from
822 ``isolated_message''.
823 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
824 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
825
5835abe7
NC
8262002-09-20 Nick Clifton <nickc@redhat.com>
827
828 * NEWS: Announce that V850EA ISA is no longer supported.
829 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
830
a15ef5f5
DC
8312002-09-20 David Carlton <carlton@math.stanford.edu>
832
06ba1b39
DC
833 * Makefile.in (c-lang.o): Correct dependencies.
834 (utils.o): Gather dependencies.
835 (charset.o): Move.
a15ef5f5
DC
836 * c-lang.c: #include "gdb_string.h"
837
87885426
FN
8382002-09-20 Fernando Nasser <fnasser@redhat.com>
839
840 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
841 * cli/cli-cmds.c (list_command): New function. Implements the new
842 cli edit command.
843 (_init_cli_cmds): Add new command definition.
844 * gdb.1: Document edit command.
845 * doc/gdb.texinfo: Document edit command.
846
8472002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
848
849 * source.c: Make global variables current_source_symtab and
850 current_source_line static.
851 (list_command): Moved to cli/cli-cmds.c.
852 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
853 (get_first_line_listed): New accessor function.
854 (get_lines_to_list): New accessor function.
855 (get_current_source_symtab_and_line): New function. Retrieves the
856 position in the source code that we consider current.
857 (get_current_or_default_source_symtab_and_line): New function.
858 Like the above but attempts to determine a default position if one
859 is not currently defined.
860 (set_current_source_symtab_and_line): New function. Sets the source
861 code position considered current and returns the previously set one.
862 (clear_current_source_symtab_and_line): Reset stored information about
863 a current source line.
864 (_initialize_source): Remove registration for the "list" command and
865 its alias.
866 * source.h: Add declarations for the new functions above.
867 * symtab.h: Remove declarations for the global variables mentioned
868 above.
869 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
870 obtain current source line.
871 * linespec.c (decode_line_1): Ditto.
872 * macroscope.c (default_macro_scope): Ditto.
873 * scm-lang.c (scm_unpac): Ditto.
874 * stack.c (print_frame_info_base): Ditto.
875 * symfile.c (clear_symtab_users): Ditto.
876 * symtab.c (decode_line_spec): Ditto.
877 * cli/cli-cmds.c (list_command): Moved here from source.c.
878 (ambiguous_line_spec): Moved here from source.c.
879 (_init_cli_cmds): Add definition for "list" and its alias.
880 * Makefile.in: Update dependencies.
881
ddd216ea
CV
8822002-09-20 Corinna Vinschen <vinschen@redhat.com>
883
884 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
885 with what gcc thinks is correct.
886
6d305052
CV
8872002-09-20 Corinna Vinschen <vinschen@redhat.com>
888
889 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
890 multiple register push instruction.
891
234b45d4
KB
8922002-09-19 Jim Blandy <jimb@redhat.com>
893
894 Add support for distinct host and target character sets.
895 * charset.c, charset.h: New files.
896 * c-exp.y: #include "charset.h".
897 (yylex): Convert character and string literals to the target
898 character set, before returning them as the semantic value of the
899 token.
900 * c-lang.c: #include "charset.h".
901 (c_emit_char): Use charset-specific methods to recognize
902 characters with backslash escape forms, to decide which characters
903 to print literally and which to print using numeric escape
904 sequences, and to convert target characters to host characters
905 before printing.
906 * utils.c: #include "charset.h".
907 (no_control_char_error): New function.
908 (parse_escape): Use charset-specific methods to recognize
909 backslash escapes, parse `control character' notation, and convert
910 characters from the host character set to the target character set.
911 * configure.in: Set the default host character set.
912 Check where to find iconv, and what its argument types might be.
913 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
914 * Makefile.in (SFILES): List charset.c.
915 (COMMON_OBS): List charset.o.
916 (charset.o): New rule.
917 (charset_h): New header dependency variable.
918 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
919 (LIBICONV): New variable, set by configure.
920 (CLIBS): Include $(LIBICONV) here.
921 * aclocal.m4, config.in, configure: Regenerated.
922
525d6a61
JB
9232002-09-19 Joel Brobecker <brobecker@gnat.com>
924
925 * ada-exp.y: Add missing semicolons to end rules. Fixes a
926 bison 1.35 warning.
927
3ed93867
RE
9282002-09-19 Richard Earnshaw <rearnsha@arm.com>
929
930 * gdb_mbuild.sh: New file.
931
437666f8
AC
9322002-09-19 Andrew Cagney <ac131313@redhat.com>
933
934 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
935
389e51db
AC
9362002-09-18 Andrew Cagney <ac131313@redhat.com>
937
938 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
939 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
940 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
941 valops.c, value.h: Revert previous change.
942
3b4efeaa
MS
9432002-09-18 Michael Snyder <msnyder@redhat.com>
944
945 Preliminary support for Objective-C:
946 * defs.h (language_objc): New enum value.
947 (puts_filtered_tabular): Declaration only, exported from utils.c.
948 (skip_quoted): Delete, declared in completer.h.
949 * c-exp.y: Include completer.h.
950 * p-exp.y: Ditto.
951 * jv-exp.y: Ditto.
952 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
953 New operator enum values.
954 * language.h (CAST_IS_CONVERSION): Test for language_objc.
955 * language.c (binop_result_type): Handle language_objc case.
956 (integral_type, character_type, string_type, boolean_type,
957 structured_type, binop_type_check): Ditto.
958 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
959 (struct objc_specific): Add to general_symbol_info.
960 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
961 (SYMBOL_DEMANGLED_NAME): Handle objc case.
962 * parser-defs.h (struct objc_class_str): New struct type.
963 (start_msglist, end_msglist, add_msglist): Declaration only,
964 exported from objc-lang.c.
965 * value.h (value_of_local, value_nsstring,
966 call_function_by_hand_expecting_type): Exported from valops.c.
967 * valops.c (find_function_addr): Export.
968 (call_function_by_hand_expecting_type): New function.
969 (value_of_local): New function.
970 * symfile.c (init_filename_language_table): Add ".m" extension
971 for Objective-C.
972 * utils.c (puts_filtered_tabular): New function.
973 (fprintf_symbol_filtered): Add objc demangling support (disabled).
974 (set/show demangle): Extend help-string to refer to ObjC.
975 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
976 * stabsread.c (symbol_reference_defined): Objective-C symbols
977 may contain colons: make allowances when scanning stabs strings
978 for colons.
979 (objc_find_colon): New function.
980 * printcmd.c (address_info): If language == objc then print
981 "self" instead of "this".
982 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
983 OP_NSSTRING, and OP_SELF.
984 (prefixify_subexp): Ditto.
985 * source.c (print_source_lines): Mention objc in comment.
986 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
987 method names.
988
b9caf505
AC
9892002-09-18 Andrew Cagney <ac131313@redhat.com>
990
991 * complaints.h: Update copyright.
992 (struct complaints): Declare.
993 (struct complaint): Make `message' constant.
994 (internal_complaint): Declare.
995 (complaint): Declare.
996 (complaint_root): Delete declaration.
997 (symfile_complaints): Delete declaration.
998 (struct complaints): Add opaque declaration.
999 (clear_complaints): Add a complaints parameter.
1000 * complaints.c: Update copyright.
1001 (enum complaint_series): Define.
1002 (complaint_root): Delete.
1003 (struct complaints): Define.
1004 (complaint_sentinel, symfile_complaint_book): New variables.
1005 (symfile_explanations, symfile_complaints): New variables.
1006 New variables.
1007 (get_complaints): New function.
1008 (vcomplaint): New function.
1009 (complaint): New function.
1010 (internal_complaint): New function.
1011 (complain): Call vcomplain with symfile_complaint.
1012 (clear_complaints): Rewrite.
1013 (_initialize_complaints): Use add_setshow_command.
1014 * Makefile.in (complaints.o): Update dependencies.
1015 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1016 to call to clear_complaints.
1017 (new_symfile_objfile, reread_symbols): Ditto.
1018 (oldsyms_complaint): Delete.
1019 (empty_symtab_complaint, unknown_option_complaint): Delete.
1020 (free_named_symtabs): Use complaint instead of complain.
1021
d2e6263c
MS
10222002-09-18 Michael Snyder <msnyder@redhat.com>
1023
5fb2031a
AC
1024 Contributed by Apple Computer, Inc. Merged with current sources
1025 by Adam Fedor <fedor@doc.com> [cagney].
1026
d2e6263c
MS
1027 * objc-lang.c: First clean-up round: comments, indentation.
1028 * objc-lang.h: Ditto.
1029 * objc-lang.y: Ditto.
1030
dec43320
AC
10312002-09-18 Andrew Cagney <ac131313@redhat.com>
1032
1033 * maint.c (maintenance_internal_error): Print the parameter as the
1034 error message.
1035 (maintenance_internal_warning): New function.
1036 (_initialize_maint_cmds): Add command `maint internal-warning'.
1037
1038 * defs.h (internal_warning, internal_vwarning): Declare.
1039 * utils.c (struct internal_problem): Define.
1040 (internal_vproblem): New function.
1041 (internal_warning): New function.
1042 (internal_vwarning): New function.
1043 (internal_warning_problem, internal_error_problem): New variables.
1044 (internal_verror): Just call internal_vproblem.
1045
b81654f1
MS
10462002-09-18 Michael Snyder <msnyder@redhat.com>
1047
1048 * objc-lang.c: New file, support for Objective-C.
1049 Preliminary check-in, not yet integrated into gdb.
1050 * objc-lang.h: New file.
1051 * objc-exp.y: New file.
1052
0542c381
AC
10532002-09-18 Andrew Cagney <ac131313@redhat.com>
1054
7bda5e4a
AC
1055 * infrun.c (signal_stop_update): Convert definition to ISO C.
1056 (signal_print_update): Ditto.
1057 (signal_pass_update): Ditto.
1058 * inflow.c (terminal_save_ours): Ditto.
1059
5247b418
AC
1060 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1061 comments.
1062
fc60962c
AC
1063 * config/djgpp/fnchange.lst: Handle name clashes between
1064 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1065 bfd/coff-tic80.c.
1066
0542c381
AC
1067 * i386-linux-tdep.h: Fix tipo.
1068
5b924b9b
AF
10692002-09-18 Adam Fedor <fedor@gnu.org>
1070
1071 * MAINTAINERS: Add myself to the Write After Approval list.
1072
5afc051b
JB
10732002-09-18 Jim Blandy <jimb@redhat.com>
1074
1075 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1076 texthigh and textlow to reader-specific structs caused
1077 objfile_relocate to miss them. This is fixable, but the work that
1078 the change was supposed to prepare GDB for never got done anyway.
1079
eb944380
DC
10802002-09-18 David Carlton <carlton@math.stanford.edu>
1081
1082 * MAINTAINERS: Alphabetize Write After Approval list.
1083
948e66d9
DJ
10842002-09-18 Daniel Jacobowitz <drow@mvista.com>
1085
1086 Fix PR gdb/709
1087 * values.c (value_static_field): Call read_var_value.
1088
dc604539
AC
10892002-09-18 Andrew Cagney <ac131313@redhat.com>
1090
1091 * valops.c (hand_function_call): Align the initial stack pointer
1092 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1093 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1094 return value.
1095 * mips-tdep.c (mips_frame_align): New function.
1096 (mips_gdbarch_init): Set frame_align.
1097 * gdbarch.sh (FRAME_ALIGN): New method.
1098 * gdbarch.h, gdbarch.c: Re-generate.
1099
cb7e422f
ML
11002002-09-18 Michal Ludvig <mludvig@suse.cz>
1101
1102 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1103 registers.
1104
a094c6fb
AC
11052002-09-17 Andrew Cagney <ac131313@redhat.com>
1106
1107 * NEWS: Mention that MIPS $fp behavior changed.
1108 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1109 reference to FP_REGNUM.
1110 (mipsnbsd_cannot_store_register): Ditto.
1111 * mips-linux-nat.c: Update copyright.
1112 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1113 (mips_linux_cannot_store_register): Ditto.
1114 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1115 * config/mips/tm-mips.h: Update copyright.
1116 (FP_REGNUM): Delete macro.
1117 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1118 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1119 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1120 (mips_r3041_reg_names, mips_r3051_reg_names)
1121 (mips_r3081_reg_names): Replace "fp" with "".
1122 Fix PR gdb/480.
1123
45cf40d1
TR
11242002-09-17 Theodore A. Roth <troth@verinet.com>
1125
1126 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1127 generic_read_register_dummy() (PR gdb/703).
1128 (avr_push_return_address): #if 0 out unused vars.
1129 (avr_gdbarch_init): Enable use of avr_push_return_address().
1130
c7e701b5
MS
11312002-09-17 Michael Snyder <msnyder@redhat.com>
1132
d76ba2a5 1133 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1134 RTE will take care of it.
1135
20bcf01c
AC
11362002-09-17 Andrew Cagney <ac131313@redhat.com>
1137
1138 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1139 invalid, return SP_REGNUM.
1140
009a9971 11412002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1142
1143 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1144 point registers without sign extension.
1145
135c175f
AC
11462002-09-17 Andrew Cagney <cagney@redhat.com>
1147
1148 * blockframe.c (deprecated_read_register_dummy): Rename
1149 generic_read_register_dummy.
1150 * frame.c (frame_unwind_signed_register): New function.
1151 (frame_unwind_unsigned_register): New function.
1152 * frame.h (frame_unwind_signed_register): Declare.
1153 (frame_unwind_unsigned_register): Declare.
1154 (deprecated_read_register_dummy): Rename
1155 generic_read_register_dummy.
1156
1157 * h8300-tdep.c (h8300_frame_chain): Update.
1158 (h8300_frame_saved_pc): Update.
1159 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1160 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1161 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1162 (s390_frame_chain): Update.
1163 * v850-tdep.c (v850_find_callers_reg): Update.
1164 (v850_frame_saved_pc): Update.
1165 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1166 (m32r_find_callers_reg): Update.
1167 (m32r_frame_saved_pc): Update.
1168 * sh-tdep.c (sh_find_callers_reg): Update.
1169 (sh64_get_saved_pr): Update.
1170 (sh_init_extra_frame_info): Update.
1171 (sh_init_extra_frame_info): Update.
1172 (sh64_init_extra_frame_info): Update.
1173 (sh64_init_extra_frame_info): Update.
1174 * mcore-tdep.c (mcore_find_callers_reg): Update.
1175 (mcore_frame_saved_pc): Update.
1176 (mcore_init_extra_frame_info): Update.
1177 * i386-tdep.c (i386_frame_saved_pc): Update.
1178 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1179 (ia64_init_extra_frame_info): Update.
1180 (ia64_init_extra_frame_info): Update.
1181 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1182 * cris-tdep.c (cris_init_extra_frame_info): Update.
1183 * avr-tdep.c (avr_frame_chain): Update.
1184 (avr_init_extra_frame_info): Update.
1185 (avr_frame_saved_pc): Update.
1186 * arm-tdep.c (arm_find_callers_reg): Update.
1187 (arm_init_extra_frame_info): Update.
1188 (arm_frame_saved_pc): Update.
1189
a741e514
TT
11902002-09-17 Tom Tromey <tromey@redhat.com>
1191
1192 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1193 is "'".
1194
d1a8e808
CV
11952002-09-17 Corinna Vinschen <vinschen@redhat.com>
1196
1197 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1198 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1199 NEXT_PROLOGUE_INSN.
1200 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1201 NEXT_PROLOGUE_INSN.
1202
d9025a18
JB
12032002-09-16 Joel Brobecker <brobecker@gnat.com>
1204
1205 * osfsolib.c: Remove file, replaced by solib-osf.c.
1206 * Makefile.in: Remove compilation rules for osfsolib.c.
1207
1b2ef1b6
DC
12082002-09-16 David Carlton <carlton@math.stanford.edu>
1209
1210 * cp-valprint.c (cp_print_class_method): Correct args to
1211 check_stub_method_group.
1212
928e48af
CV
12132002-09-16 Corinna Vinschen <vinschen@redhat.com>
1214
1215 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1216 `set architecture'. Unify naming convention of functions.
1217 (h8300_skip_prologue): Improve prologue analysis.
1218 (h8300_push_arguments): Rewritten to more closely match GCC's
1219 bizarre argument-passing behavior, along with the comment describing
1220 said behavior.
1221 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1222 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1223 sim, remote-e7000.c, remote-hms.c and remote.c
1224
5e3397bb
MK
12252002-09-15 Mark Kettenis <kettenis@gnu.org>
1226
1227 * i386-tdep.c (gdb_print_insn_i386): Removed.
1228 (i386_print_insn): New function.
1229 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1230 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1231 tm_print_insn_info.
1232
f710f4fc
MK
12332002-09-14 Mark Kettenis <kettenis@gnu.org>
1234
1235 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1236 zero.
1237
db54fef4
CV
12382002-09-14 Corinna Vinschen <vinschen@redhat.com>
1239
1240 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1241 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1242 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1243
2becadee
CF
12442002-09-13 Christopher Faylor <cgf@redhat.com>
1245
1246 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1247
de17c821
DJ
12482002-09-13 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * gdbtypes.c (check_stub_method): Make static.
1251 (check_stub_method_group): New function.
1252 * gdbtypes.h: Update prototypes.
1253 * cp-support.c: New file.
1254 * cp-support.h: New file.
1255
1256 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1257 (update_method_name_from_physname): New function.
1258 (read_member_functions): Correct method names for operators
1259 and v3 constructors/destructors. Separate v2 constructors and
1260 destructors.
1261 * Makefile.in (stabsread.o): Update dependencies.
1262 (SFILES): Add cp-support.c.
1263 (COMMON_OBS): Add cp-support.o.
1264 (cp_support_h, cp-support.o): Add.
1265
1266 * cp-valprint.c (cp_print_class_method): Call
1267 check_stub_method_group instead of check_stub_method. Remove
1268 extraneous QUITs.
1269 * p-valprint.c (pascal_object_print_class_method): Likewise.
1270 * valops.c (search_struct_method): Likewise.
1271 (find_method_list, value_struct_elt_for_reference): Likewise.
1272
e76cff22
AC
12732002-09-13 Andrew Cagney <cagney@redhat.com>
1274
1275 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1276 * gdbarch.h, gdbarch.c: Regenerate.
1277
905abb3f
AC
12782002-09-13 Andrew Cagney <ac131313@redhat.com>
1279
1280 * frame.c (find_saved_register): Delete function.
1281 * frame.h (find_saved_register): Delete declaration.
1282 Fix PR gdb/631.
1283
64159455
AC
1284Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1285
1286 * mips-tdep.c (read_next_frame_reg): Re-hack using
1287 frame_register_unwind.
1288
795e1e11
AC
1289Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1290
1291 * mips-tdep.c (mips_get_saved_register): Re-hack using
1292 frame_register_unwind.
1293
5720643c
JB
12942002-09-12 Joel Brobecker <brobecker@gnat.com>
1295
1296 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1297 vector. Will be useful for Interix.
1298 * gdbarch.h, gdbarch.c: Regenerate.
1299
1300 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1301 name of the malloc function by NAME_OF_MALLOC.
1302
3bada2a2
JB
13032002-09-12 Joel Brobecker <brobecker@gnat.com>
1304
1305 * value.h (find_function_in_inferior): Add const keyword to
1306 one of the parameters. Allows us to invoke this function with
1307 a const char *.
1308 * valops.c (find_function_in_inferior): Likewise.
1309
3db26b01
JB
13102002-09-12 Joel Brobecker <brobecker@gnat.com>
1311
1312 * exec.c (xfer_memory): Fix compilation warning with old versions
1313 of GCC.
1314 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1315
17c5ed2c
DC
13162002-09-12 David Carlton <carlton@math.stanford.edu>
1317
1318 * symtab.h: Run through gdb_indent.h.
1319 Add 2002 to Copyright year list.
1320
ecd1107e
AM
13212002-09-12 Alan Modra <amodra@bigpond.net.au>
1322
1323 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1324 mach constants.
1325 * MAINTAINERS: Add myself to write after approval list.
1326
e64f66d1
JB
13272002-09-11 J. Brobecker <brobecker@gnat.com>
1328
1329 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1330
f9395794
JB
13312002-09-11 J. Brobecker <brobecker@gnat.com>
1332
1333 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1334 Interix.
1335
1a303dec
MS
13362002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1337
1338 * procfs.c (do_detach): Clear current signal, not just fault.
1339 Corrects problem with breakpoint trap signal leaking to detached
1340 process on Tru64.
1341
c0219d42
MS
13422002-09-10 Michael Snyder <msnyder@redhat.com>
1343
1344 * buildsym.c (finish_block): Protect against null pointer.
1345
9d84ac84
AC
13462002-09-10 Andrew Cagney <cagney@redhat.com>
1347
1348 * infcmd.c (default_print_registers_info): Send all output to
1349 ``file'' instead of ``gdb_stdout''.
1350
77d8f2b4
MS
13512002-09-10 Michael Snyder <msnyder@redhat.com>
1352
1353 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1354 LONGEST, and use signed register read (addresses are sign-
1355 extended for mips).
1356
99656a61
SC
13572002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1358
1359 * event-loop.c (gdb_do_one_event): Make public.
1360 * event-loop.h (gdb_do_one_event): Declare.
1361
da12f4d8
JL
13622002-09-10 Jeff Law <law@redhat.com>
1363
1364 * infttrace.c (child_resume): Simplify and rework to avoid
1365 TT_PROC_CONTINUE.
1366
d0aee0c4
FF
13672002-09-09 Fred Fish <fnf@intrinsity.com>
1368
1369 * printcmd.c (print_scalar_formatted): "len" is the number of
1370 target bytes, NOT the number of target bits.
1371
7cb3ec5e
EZ
13722002-09-09 Elena Zannoni <ezannoni@redhat.com>
1373
1374 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1375 * top.c (init_main): Set rl_terminal_name.
1376
4dc81987
AS
13772002-09-08 Aidan Skinner <aidan@velvet.net>
1378
1379 * ada-lang.c (ada_array_bound, ada_type_match,
1380 _initialize_ada_language): Fix K&R definitions.
1381 * ada-tasks.c (get_current_task): Fix K&R definitions.
1382 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1383
842330b4
CF
13842002-09-07 Christopher Faylor <cgf@redhat.com>
1385
1386 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1387 Add XP.
1388
43156d82
MK
13892002-09-06 Mark Kettenis <kettenis@gnu.org>
1390
66da5fd8
MK
1391 * i386-tdep.c (i386_register_virtual_type,
1392 i386_register_convertible, i386_register_convert_to_virtual,
1393 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1394 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1395 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1396 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1397 Don't set push_arguments twice.
1398
4b218c18
MK
1399 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1400 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1401 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1402 sigtramp_end to NULL.
1403 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1404 defines.
1405 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1406
4cc314d5
MK
1407 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1408 whitespace.
1409
43156d82
MK
1410 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1411 * gdbarch.h, gdbarch.c: Re-generate.
1412 * blockframe.c (find_pc_sect_partial_function): Convert to use
1413 SIGTRAMP_START_P predicate.
1414
6672060b
MS
14152002-09-05 Michael Snyder <msnyder@redhat.com>
1416
a90c3637
MS
1417 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1418 generic_dummy_frame method and old method. Also distinguish
1419 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1420 (arm_extract_return_value): Use new regcache method.
a90c3637 1421
6672060b
MS
1422 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1423 adjustment that doesn't conform to the ABI.
1424 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1425 saved regcache, not from current regcache.
1426
299ffc64
AC
14272002-09-05 Andrew Cagney <ac131313@redhat.com>
1428
1429 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1430 * README: Update.
1431
a3a2ee65
JT
14322002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1433
1434 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1435 if arm_apcs_32 is false.
1436
2bc7eea9
AC
14372002-09-04 Andrew Cagney <ac131313@redhat.com>
1438
1439 GDB 5.3 branch created.
1440
8a55a7c5
TR
14412002-09-03 Theodore A. Roth <troth@verinet.com>
1442
1443 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1444 generic_unwind_get_saved_register.
1445
e26fb1d7
DC
14462002-09-03 David Carlton <carlton@math.stanford.edu>
1447
1448 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1449 argument (PR gdb/653). Update call to smash_to_method_type.
1450 (read_structure_scope): Update call to dwarf2_add_member_fn.
1451
30d52491
ML
14522002-09-03 Michal Ludvig <mludvig@suse.cz>
1453
1454 * x86-64-linux-tdep.c: Include gdb_string.h
1455 * x86-64-linux-nat.c: Ditto.
1456
06891d83
JT
14572002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1458
1459 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1460 when YYDEBUG is set to 1.
1461 * c-exp.y: Likewise.
1462 * f-exp.y: Likewise.
1463 * jv-exp.y: Likewise.
1464 * m2-exp.y: Likewise.
1465 * p-exp.y: Likewise.
1466
7d400e77
JT
14672002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1468
1469 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1470 dependency list.
1471 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1472 solib_svr4_fetch_link_map_offsets to
1473 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1474 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1475 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1476 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1477 solib-svr4.o, and solib-legacy.o.
1478 * config/i386/tm-nbsd.h: Include solib.h.
1479
704a27c4
JT
14802002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1481
1482 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1483 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1484 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1485 comment noting that this needs its own target configuration.
1486 * config/i386/nbsd.mt: New file.
1487 * config/i386/nbsdaout.mt: Remove.
1488 * config/i386/nbsdelf.mt: Ditto.
1489 * config/i386/tm-nbsdaout.h: Ditto.
1490
d66198e1
JT
14912002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1492
1493 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1494 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1495 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1496 tdep->sigtramp_end.
1497 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1498 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1499 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1500
3cac699e
JT
15012002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1502
1503 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1504 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1505 * i386-tdep.h (i386bsd_init_abi): New prototype.
1506 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1507 function declaration.
1508 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1509 for NetBSD-a.out or NetBSD-ELF.
1510 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1511 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1512 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1513 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1514 and nbsd-tdep.h.
1515 (i386nbsd_pc_in_sigtramp): New function.
1516 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1517 i386nbsd_pc_in_sigtramp.
1518 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1519 and i386nbsdelf_init_abi OS ABI handlers.
1520 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1521 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1522
7010ca0a
MK
15232002-09-02 Mark Kettenis <kettenis@gnu.org>
1524
1525 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1526 registers if the target really has them.
1527
6dd93b72
JT
15282002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1529
1530 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1531 than nbsd-tdep.h.
1532
2ca8ae21
JT
15332002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1534
1535 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1536 list.
1537 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1538 (alphanbsd_skip_sigtramp_frame): New functions.
1539 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1540 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1541 to alphanbsd_sigcontext_addr.
1542
3d9b49b0
JT
15432002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1544
1545 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1546 list.
1547 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1548 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1549 nbsd_pc_in_sigtramp.
1550 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1551 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1552 * nbsd-tdep.c: Include gdb_string.h.
1553 (nbsd_pc_in_sigtramp): New function.
1554 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1555 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1556 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1557 ppcnbsd_pc_in_sigtramp.
1558 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1559 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1560 shnbsd_pc_in_sigtramp.
1561 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1562 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1563 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1564
c860120c
PM
15652002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1566
1567 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1568 watchpoints to NULL.
1569 (insert_breakpoints): set val field of watchpoints if NULL.
1570
1571
c7612d53
JB
15722002-08-29 Jim Blandy <jimb@redhat.com>
1573
1574 * symtab.c (lookup_symbol_aux): In the cases where we find a
1575 minimal symbol of an appropriate name and use its address to
1576 select a symtab to read and search, use `name' (as passed to us)
1577 as the demangled name when searching the symtab's global and
1578 static blocks, not the minsym's name.
1579
66609862
KS
15802002-08-29 Keith Seitz <keiths@redhat.com>
1581
1582 * stack.c (print_frame_info_base): Always set current_source_symtab
1583 and current_source_line.
1584
151fefe2
JB
15852002-08-29 Donn Terry <donnte@microsoft.com>
1586
1587 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1588
bfb3754e
KS
15892002-08-28 Keith Seitz <keiths@redhat.com>
1590
1591 * stack.c (select_frame): Add FIXME concerning selected-frame
1592 events.
1593 (select_frame_command): Send selected-frame-level-changed
1594 event notification, but only if the level actually changed.
1595 (up_silently_base): Add selected-frame-level-changed event
1596 notification.
1597 (down_silently_base): Likewise.
1598
e822a2a0
AC
15992002-08-28 Andrew Cagney <ac131313@redhat.com>
1600
1601 * Makefile.in: Update dependencies for all gdb/*.c files.
1602
309367d4
TT
16032002-08-27 Tom Tromey <tromey@redhat.com>
1604
1605 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1606 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1607 Update dependencies.
1608 * i387-tdep.c: Include gdb_string.h.
1609 * osabi.c: Likewise.
1610 * i386-linux-nat.c: Likewise.
1611 * lin-lwp.c: Likewise.
1612 * ax-gdb.c: Likewise.
1613 * signals/signals.c: Likewise.
1614 * jv-valprint.c: Likewise.
1615 * p-lang.c: Likewise.
1616 * c-valprint.c: Likewise.
1617 * cp-abi.c: Likewise.
1618
e1507482
EZ
16192002-08-27 Elena Zannoni <ezannoni@redhat.com>
1620
1621 * cli/cli-script.h (copy_command_lines): Export.
1622 * breakpoint.c: Include cli/cli-script.h.
1623 * Makefile.in (breakpoint.o): Update dependencies.
1624
c6510018
MS
16252002-08-26 Michael Snyder <msnyder@redhat.com>
1626
1627 * breakpoint.c (insert_breakpoints): Protect all references
1628 to 'process_warning'. Shorten long lines.
1629
c2b8ed2c
MS
16302002-08-26 Joel Brobecker <brobecker@gnat.com>
1631
1632 * cli/cli-script.c (copy_command_lines): New function.
1633 * defs.h (copy_command_lines): Export.
1634 * testsuite/gdb.base/commands.exp: New tests for commands
1635 attached to a temporary breakpoint, and for commands that
1636 delete the breakpoint they are attached to.
1637
16382002-08-26 Michael Snyder <msnyder@redhat.com>
1639
1640 * breakpoint.c (bpstat_stop_status): Instead of copying the
1641 pointer to the breakpoint commands struct, make a new copy
1642 of the struct and point to that.
1643 (bpstat_clear): Free the commands struct.
1644 (bpstat_clear_actions): Free the commands struct.
1645 (bpstat_do_actions): Free the command actions. Also execute
1646 the local cleanups, instead of deleting them.
1647 (delete_breakpoint): Leave the commands field of the bpstat
1648 chain alone -- it will be freed later.
1649
64b84175
KB
16502002-08-26 Kevin Buettner <kevinb@redhat.com>
1651
1652 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1653 deleted in 2002-08-20 commit. This function is still used by
1654 ppc-linux-nat.c.
1655
55970da6
KS
16562002-08-26 Keith Seitz <keiths@redhat.com>
1657
1658 * gdb-events.sh: Add selected-frame-level-changed event.
1659 * gdb-events.c: Regenerated.
1660 * gdb-events.h: Regenerated.
1661
a790ad35
SC
16622002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1663
1664 Fix PR gdb/393:
1665 * inflow.c (terminal_save_ours): New function to save terminal
1666 settings.
1667 * inferior.h (terminal_save_ours): Declare.
1668 * target.c (debug_to_terminal_save_ours): New function.
1669 (cleanup_target): Defaults to_terminal_save_ours.
1670 (update_current_target): Inherit to_terminal_save_ours.
1671 (setup_target_debug): Set to_terminal_save_ours.
1672 * target.h (target_terminal_save_ours): New to save terminal settings.
1673 (target_ops): New member to_terminal_save_ours.
1674 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1675 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1676 * inftarg.c (init_child_ops): Likewise.
1677 * m3-nat.c (init_m3_ops): Likewise.
1678 * procfs.c (init_procfs_ops): Likewise.
1679 * wince.c (init_child_ops): Likewise.
1680 * win32-nat.c (init_child_ops): Likewise.
1681 * sol-thread.c (init_sol_thread_ops): Likewise.
1682
c00dcbe9
MK
16832002-08-26 Mark Kettenis <kettenis@gnu.org>
1684
3d7f4f49
MK
1685 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1686 use regcache_* functions.
1687 (i386_gdbarch_init): Set store_return_value instead of
1688 deprecated_store_return_value.
1689
c00dcbe9
MK
1690 * regcache.c (regcache_raw_write_signed,
1691 regcache_raw_write_unsigned): New functions.
1692 * regcache.h (regcache_raw_write_signed,
1693 regcache_raw_write_unsigned): New prototypes.
1694
0e0d15ca
AC
16952002-08-25 Andrew Cagney <ac131313@redhat.com>
1696
1697 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1698 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1699 source file dependencies. Cleanup corresponding generator rules.
1700
d3b22ed5
AC
17012002-08-25 Andrew Cagney <ac131313@redhat.com>
1702
1703 * regcache.h (register_offset_hack): Declare.
1704 (regcache_cooked_read_using_offset_hack): Declare.
1705 (regcache_cooked_write_using_offset_hack): Declare.
1706
1707 * regcache.c (register_offset_hack): New function.
1708 (regcache_cooked_read_using_offset_hack): New function.
1709 (regcache_cooked_write_using_offset_hack): New function.
1710 (regcache_dump): Check that the registers, according to their
1711 offset, are packed hard against each other.
1712 (cooked_xfer_using_offset_hack): New function.
1713
bb425013
AC
17142002-08-25 Andrew Cagney <ac131313@redhat.com>
1715
1716 * regcache.c (struct regcache_descr): Add field register_type.
1717 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1718 in as a parameter
1719 (init_regcache_descr): Initialize register_type. Pass the descr
1720 to init_legacy_regcache_descr. Use register_type instead of
1721 REGISTER_VIRTUAL_TYPE.
1722 (register_type): New function.
1723 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1724 * regcache.h (register_type): Declare.
1725
d0403e00
AC
17262002-08-25 Andrew Cagney <ac131313@redhat.com>
1727
1728 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1729 instead of deprecated_store_return_value. Fix fallout from
1730 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1731
0ed04cce
AC
17322002-08-25 Andrew Cagney <ac131313@redhat.com>
1733
1734 * regcache.c (max_register_size): New function.
1735 (init_legacy_regcache_descr): Ensure that max_register_size is
1736 large enough for REGISTER_VIRTUAL_SIZE.
1737 * regcache.h (max_register_size): Declare.
1738
46d79c04
AC
17392002-08-24 Andrew Cagney <ac131313@redhat.com>
1740
1741 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1742 store_return_value.
1743 (e500_extract_return_value): Change type of valbuf pointer to
1744 void.
1745
853c7bd0
MK
17462002-08-24 Mark Kettenis <kettenis@gnu.org>
1747
cd87e769
MK
1748 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1749 workaround.
1750
853c7bd0
MK
1751 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1752 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1753 long long) to prevent compiler warning on 64-bit systems.
1754
ebba8386
AC
17552002-08-23 Andrew Cagney <cagney@redhat.com>
1756
1757 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1758 (DEPRECATED_STORE_RETURN_VALUE): New method.
1759 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1760 * gdbarch.h, gdbarch.c: Re-generate.
1761
1762 * values.c (set_return_value): Pass current_regcache to
1763 STORE_RETURN_VALUE.
1764 * arch-utils.h (legacy_store_return_value): Declare.
1765 * arch-utils.c (legacy_store_return_value): New function.
1766 (legacy_extract_return_value): Update parameters.
1767
1768 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1769 STORE_RETURN_VALUE.
1770 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1771 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1772 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1773 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1774 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1775 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1776 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1777 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1778 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1779 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1780
1781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1782 * i386-tdep.c (i386_extract_return_value): Update.
1783 * arch-utils.c (legacy_extract_return_value): Update.
1784 * frv-tdep.c (frv_gdbarch_init): Update.
1785 * cris-tdep.c (cris_gdbarch_init): Update.
1786 * d10v-tdep.c (d10v_gdbarch_init): Update.
1787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1788 * m68k-tdep.c (m68k_gdbarch_init): Update.
1789 * mcore-tdep.c (mcore_gdbarch_init): Update.
1790 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1791 * s390-tdep.c (s390_gdbarch_init): Update.
1792 * sparc-tdep.c (sparc_gdbarch_init): Update.
1793 * sh-tdep.c (sh_gdbarch_init): Update.
1794 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1795 * v850-tdep.c (v850_gdbarch_init): Update.
1796 * avr-tdep.c (avr_gdbarch_init): Update.
1797 * ia64-tdep.c (ia64_gdbarch_init): Update.
1798 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1799 * vax-tdep.c (vax_gdbarch_init): Update.
1800 * alpha-tdep.c (alpha_gdbarch_init): Update.
1801 * arm-tdep.c (arm_gdbarch_init): Update.
1802 * mips-tdep.c (mips_gdbarch_init): Update.
1803 * i386-tdep.c (i386_gdbarch_init): Update.
1804
5bd8c6d0
AC
18052002-08-23 Andrew Cagney <ac131313@redhat.com>
1806
1807 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1808 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1809
e73e1724
MK
18102002-08-24 Mark Kettenis <kettenis@gnu.org>
1811
1812 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1813 problems.
1814
3e6564e1
JB
18152002-08-23 Joel Brobecker <brobecker@gnat.com>
1816
1817 * infrun.c (handle_inferior_event): Move a comment outside of a
1818 function call, in order to avoid indent reformatting this part
1819 of the code in an unreadable way.
1820
81d0cc19
GS
18212002-08-23 Grace Sainsbury <graces@redhat.com>
1822
1823 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1824 when breakpoints fail. Move general breakpoint error messages to
1825 insert_breakpoints.
1826 * breakpoint.c (insert_breakpoints): Change warnings when
1827 breakpoints are nto inserted to specify the type. Remove call to
1828 memory_error when hardware breakpoints can't be inserted. Remove
1829 multiple calls to warning so all messages are sent to the user at
1830 once.
1831 (delete_breakpoints): Make insert error messsages more explicit.
1832
17574093
DJ
18332002-08-23 Daniel Jacobowitz <drow@mvista.com>
1834
1835 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1836 gdbserver/ChangeLog.
1837
8acc2935
MK
18382002-08-23 Mark Kettenis <kettenis@gnu.org>
1839
dfe01d39
MK
1840 * i386-tdep.c: Include "objfiles.h".
1841 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1842 skip_trampoline_code.
1843 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1844 (CPLUS_MARKER): Define to '.'.
1845
8acc2935
MK
1846 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1847 member.
1848 (linux_corefile_thread_callback): Increase args->num_notes.
1849 (linux_make_note_section): Initialize thread_args.num_notes, and
1850 use it to determine whether notes for any threads were created.
1851
151fefe2 18522002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1853
1854 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1855 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1856 and PCUNKILL.
1857 (write_with_trace): Conditionalize out the switch branch handling
1858 PCSHOLD if the corresponding macro is not defined. Likewise for
1859 PRSABORT and PRSTOP.
1860 This change will be needed by the Interix port.
1861
e1507482
EZ
18622002-08-22 Elena Zannoni <ezannoni@redhat.com>
1863
1864 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1865 write_register wherever possible instead of manipulating the
1866 register bytes directly.
1867 Assign VALUE_CONTENTS to a variable and use that.
1868 The GPR numbers are now dependent on the architecture.
1869
96ff0de4
EZ
18702002-08-22 Elena Zannoni <ezannoni@redhat.com>
1871
1872 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1873 ev_offset fields.
1874 (skip_prologue): Add support for BookE/e500 instructions.
1875 (e500_extract_return_value): New function.
1876 (frame_get_saved_regs): Add support for saving ev registers and
1877 pseudo gpr's.
1878 (e500_store_return_value): New function.
1879 (rs6000_gdbarch_init): Move up default intializations of
1880 deprecated_extract_return_value and store_return_value. Overwrite
1881 init of store_return_value with e500 specific version.
1882 Set extract_return_value for e500.
1883
fbefca5b
EZ
18842002-08-22 Elena Zannoni <ezannoni@redhat.com>
1885
1886 * blockframe.c (generic_call_dummy_register_unwind): Use
1887 regcache_cooked_read to catch cases in which the variable is
1888 stored in a pseudo register.
1889
4d210288
AC
18902002-08-22 Andrew Cagney <cagney@redhat.com>
1891
1892 * NEWS: Mention that the i960 has been made obsolete.
1893 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1894 i960-tdep.c
1895 (remote-nrom.o): Obsolete target.
1896 (remote-nindy.o, i960-tdep.o): Ditto.
1897 * remote-nrom.c: Make file obsolete.
1898 * remote-nindy.c, remote-vx960.c: Ditto.
1899 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1900 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1901 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1902 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1903 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1904 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1905 i960-*-vxworks* obsolete.
1906 * MAINTAINERS: Note that the i960 is obsolete.
1907
6c0c456d
CV
19082002-08-21 Corinna Vinschen <vinschen@redhat.com
1909
1910 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1911 detach to allow reinitialization.
1912
9f9d12b3
AC
19132002-08-22 Andrew Cagney <ac131313@redhat.com>
1914
1915 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1916 attempt).
1917
ebeb39fe
JB
19182002-08-22 Jim Blandy <jimb@redhat.com>
1919
1920 * coffread.c (coff_symfile_read): Don't try to read the line
1921 number table from disk if the image file doesn't have a symbol
1922 table; we'll never actually look at the info anyway, and Windows
1923 ships DLL's with bogus file offsets for the line number data.
1924
5bf1c677
EZ
19252002-08-21 Elena Zannoni <ezannoni@redhat.com>
1926
1927 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1928 an e500 executable.
1929
71b8ef93
MS
19302002-08-21 Michael Snyder <msnyder@redhat.com>
1931
1932 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1933 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1934 (DEFAULT_MIPS_TYPE): Delete unused macro.
1935 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1936 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1937
d174216d
JB
19382002-08-21 Jim Blandy <jimb@redhat.com>
1939
1940 * valops.c (value_cast): Simplify and correct logic for doing a
1941 static cast from a pointer to a base class to a pointer to a
1942 derived class.
1943
0ab7a791
AC
19442002-08-21 Andrew Cagney <ac131313@redhat.com>
1945
1946 * infcmd.c (default_print_registers_info): Replace
1947 do_registers_info.
1948 (registers_info): Use gdbarch_print_registers_info instead of
1949 DO_REGISTERS_INFO.
1950 * inferior.h (default_print_registers_info): Replace
1951 do_registers_info.
1952 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1953 (DO_REGISTERS_INFO): Change to a predicate function.
1954 * gdbarch.h, gdbarch.c: Regenerate.
1955
e23792cc
KS
19562002-08-21 Keith Seitz <keiths@redhat.com>
1957
1958 * gdb-events.sh: Add target-changed event.
1959 * gdb-events.c: Regenerated.
1960 * gdb-events.c: Regenerated.
1961 * valops.c (value_assign): Add target-changed event notification
1962 to inlval_register, lval_memory, and lval_reg_frame_relative.
1963
9fb14e79
JB
19642002-08-21 Joel Brobecker <brobecker@gnat.com>
1965
1966 * NEWS: Add an entry regarding the improvement of the next/step
1967 operation on Alpha Tru64 multi-processor machines.
1968
6d39a69f
AC
19692002-08-21 Andrew Cagney <ac131313@redhat.com>
1970
72acd513
AC
1971 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1972 directores.
342af04b 1973 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1974 * Makefile.in (install-gdbtk): Move to install section.
1975 (rdi-share/libangsd.a): Move to end of file.
1976
fa5f27c7
AC
19772002-08-19 Andrew Cagney <ac131313@redhat.com>
1978
1979 * frame.c (frame_register_unwind): When a register, set addrp to
1980 the register's byte.
1981
5a89d8aa
MS
19822002-08-20 Michael Snyder <msnyder@redhat.com>
1983
1984 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1985 used locally, so move them from the target machine header to here.
1986 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1987 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1988 Make static.
1989 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1990
822e978b
AC
19912002-08-20 Andrew Cagney <cagney@redhat.com>
1992
1993 * NEWS: Mention that the Apollo line was made obsolete.
1994 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1995 m68*-hp-hpux* obsolete.
1996 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1997 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1998 * buildsym.c (make_blockvector): Make static.
1999 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2000 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2001 (ALLDEPFILES): Remove dstread.c.
2002 (dstread.o): Obsolete make rule.
2003 * dstread.c: Makefile obsolete.
2004 * dst.h: Ditto.
2005 * config/m68k/hp300hpux.mt: Ditto.
2006 * config/m68k/hp300hpux.mh: Ditto.
2007 * config/m68k/hp300bsd.mt: Ditto.
2008 * config/m68k/hp300bsd.mh: Ditto.
2009 * config/m68k/apollo68b.mt: Ditto.
2010 * config/m68k/apollo68v.mh: Ditto.
2011 * config/m68k/apollo68b.mh: Ditto.
2012
e41b17f0
MS
20132002-08-20 Michael Snyder <msnyder@redhat.com>
2014
2015 * mips-tdep.c (mips_in_return_stub): Make static.
2016 (mips_gdbarch_init): Set in_solib_return_trampoline.
2017 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2018
d50355b6
MS
20192002-08-20 Michael Snyder <msnyder@redhat.com>
2020
2021 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2022 * gdbarch.c, gdbarch.h: Regenerate.
2023 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2024 Add.
2025 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2026
757a7cc6
MS
20272002-08-20 Michael Snyder <msnyder@redhat.com>
2028
2029 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2030 (mips_gdbarch_init): Set skip_trampoline_code,
2031 in_solib_call_trampoline.
2032 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2033 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2034
c8001721
EZ
20352002-08-20 Elena Zannoni <ezannoni@redhat.com>
2036
2037 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2038
2039 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2040 vector type for ev registers.
2041 (e500_pseudo_register_read): New function.
2042 (e500_pseudo_register_write): New function.
2043 (e500_dwarf2_reg_to_regnum): New function.
2044 (PPC_UISA_NOFP_SPRS): New macro.
2045 (PPC_EV_REGS): New macro.
2046 (PPC_GPRS_PSEUDO_REGS): New macro.
2047 (registers_e500): New register set for e500.
2048 (variants): Add e500 variant.
2049 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2050 before setting architectural dependent variations. Initialize ev
2051 registers numbers. Add case for e500 architecture. Set the
2052 number of pseudo registers.
2053
64366f1c
EZ
20542002-08-20 Elena Zannoni <ezannoni@redhat.com>
2055
2056 * rs6000-tdep.c: Clean up comments.
2057
7e78f0ca
AC
20582002-08-20 Andrew Cagney <cagney@redhat.com>
2059
2060 * h8300-tdep.c: Re-indent file.
2061
697f7479
JB
20622002-08-20 Jim Blandy <jimb@redhat.com>
2063
2064 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2065 default for this.
697f7479 2066
e86ae29f
KS
20672002-08-20 Keith Seitz <keiths@redhat.com>
2068
2069 * breakpoints.c (watch_command_1): Use internal breakpoint
2070 when setting a watchpoint_scope breakpoint.
2071
216b504f
EZ
20722002-08-20 Elena Zannoni <ezannoni@redhat.com>
2073
2074 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2075 (build_builtin_type_vec64i): Ditto.
2076 (build_builtin_type_vec128): Ditto.
2077 (build_builtin_type_vec128i): Ditto.
2078
f7ab6ec6
MS
20792002-08-19 Michael Snyder <msnyder@redhat.com>
2080
2081 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2082 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2083 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2084 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2085 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2086 CALL_DUMMY_ADDRESS): Delete.
2087 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2088 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2089 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2090 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2091 push_return_address.
2092 (mips_register_raw_size, mips_eabi_use_struct_convention,
2093 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2094 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2095 mips_init_extra_frame_info, mips_eabi_push_arguments,
2096 mips_n32n64_push_arguments, mips_push_return_address,
2097 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2098 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2099
b5d1566e
MS
21002002-08-19 Michael Snyder <msnyder@redhat.com>
2101
2102 * mips-tdep.c (mips_frame_num_args): New function.
2103 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2104 frame_saved_pc, frame_args_address, frame_locals_address,
2105 frame_num_args, and frame_args_skip.
2106 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2107 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2108 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2109 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2110
2f1488ce
MS
21112002-08-20 Michael Snyder <msnyder@redhat.com>
2112
2113 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2114 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2115 * mips-tdep.c (mips_store_struct_return): New function.
2116 (mips_extract_struct_value_address): New function.
2117 (mips_gdbarch_init): Set store_struct_return and
2118 extract_struct_value_address.
2119
41ff2da1
DC
21202002-08-20 David Carlton <carlton@math.stanford.edu>
2121
2122 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2123 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2124 (read_file_scope): Check that line_header is nonzero before
2125 decoding macro information.
2126
e5451d58
MK
21272002-08-20 Mark Kettenis <kettenis@gnu.org>
2128
2129 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2130 flag the general-purpose registers as floating-point on targets
2131 that don't support the floating-point registers.
2132
4a6daafa
EZ
21332002-08-20 Elena Zannoni <ezannoni@redhat.com>
2134
2135 * rs6000-tdep.c (altivec_register_p): Delete.
2136 (rs6000_do_altivec_registers): Delete.
2137 (rs6000_altivec_registers_info): Delete.
2138 (rs6000_do_registers_info): Delete.
2139 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2140 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2141
ab4327e0
EZ
21422002-08-20 Elena Zannoni <ezannoni@redhat.com>
2143
2144 * infcmd.c (do_registers_info): Print vector registers in hex
2145 format only.
2146 (print_vector_info): Check that printing registers
2147 makes sense.
2148 (print_float_info): Ditto.
2149
cb1d2653
AC
21502002-08-20 Andrew Cagney <ac131313@redhat.com>
2151
2152 * mips-tdep.c (mips_gdbarch_init): Update.
2153 (mips_o32_extract_return_value): Rewrite.
2154 (mips_o32_store_return_value): Rewrite.
2155 (mips_o32_xfer_return_value): New function.
2156 (mips_xfer_register): Tweak debug print message. Allow for
2157 buf_offset when dumping the value transfered.
2158
dfc3d9b2
AC
21592002-08-20 Andrew Cagney <ac131313@redhat.com>
2160
2161 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2162 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2163 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2164 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2165 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2166
7807aa61
MS
21672002-08-14 Michael Snyder <msnyder@redhat.com>
2168
2169 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2170
489461e2
EZ
21712002-08-19 Elena Zannoni <ezannoni@redhat.com>
2172
2173 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2174 register.
2175 (P): New macro to define a register as a pseudo register.
2176 (R, R4, R8, R16, FR32, R64, R0): Updated.
2177 (struct variant): Add new fields for number of pseudo registers
2178 and number of total registers.
2179 (tot_num_registers): New macro replacing....
2180 (num_registers): ...deleted macro.
2181 (num_registers): New function.
2182 (num_pseudo_registers): New function.
2183 (variants): Update all variants to intialize new fields correctly.
2184 Postpone initialization of number of pseudo regs and real regs.
2185 (init_variants): New function.
2186 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2187 registers offsets.
2188
fcaffe4c
DC
21892002-08-19 David Carlton <carlton@math.stanford.edu>
2190
2c2738a0
DC
2191 * valops.c (search_struct_field): Change error message to treat
2192 return value of 0 from value_static_field as meaning that field is
2193 optimized out.
2194 (value_struct_elt_for_reference): Ditto.
2195 * values.c (value_static_field): Treat an unresolved location the
2196 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2197 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2198 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2199 * MAINTAINERS: Add self to Write After Approval list.
2200
88658117
AC
22012002-08-19 Andrew Cagney <ac131313@redhat.com>
2202
2203 * mips-tdep.c (mips_xfer_register): New function.
2204 (mips_n32n64_extract_return_value): Rewrite.
2205 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2206 instead of deprecated_extract_return_value.
2207
21283beb
EZ
22082002-08-19 Elena Zannoni <ezannoni@redhat.com>
2209
2210 * rs6000-tdep.c (TDEP): Delete macro.
2211 (branch_dest): Replace use of TDEP macro with its body.
2212 (rs6000_pop_frame): Ditto.
2213 (rs6000_push_arguments): Ditto.
2214 (rs6000_skip_trampoline_code): Ditto.
2215 (rs6000_frame_saved_pc): Ditto.
2216 (rs6000_frame_chain): Ditto.
2217 (rs6000_register_name): Ditto.
2218 (rs6000_register_byte): Ditto.
2219 (rs6000_register_raw_size): Ditto.
2220 (rs6000_register_virtual_type): Ditto.
2221 (rs6000_register_convertible): Ditto.
2222 (rs6000_convert_from_func_ptr_addr): Ditto.
2223
bf072999
DJ
22242002-08-19 Daniel Jacobowitz <drow@mvista.com>
2225
2226 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2227 conditionally.
2228 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2229 MIPS_LINUX_JB_ELEMENT_SIZE.
2230 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2231 for MAX_REGISTER_RAW_SIZE arrays.
2232 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2233 MIPS_LINUX_JB_ELEMENT_SIZE.
2234
9b949a49
PM
22352002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2236
2237 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2238
6d3e79c6
AS
22392002-08-19 Aidan Skinner <aidan@velvet.net>
2240
2241 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2242 ada-valprint.c ada-tasks.c.
2243 (YYFILES): Add ada-exp.y.
2244 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2245 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2246 (ada-exp.tab.o): New target.
2247
06c0b04e
AC
22482002-08-18 Andrew Cagney <ac131313@redhat.com>
2249
2250 * regcache.c (regcache_xfer_part): New function.
2251 (regcache_raw_read_part): New function.
2252 (regcache_raw_write_part): New function.
2253 (regcache_cooked_read_part): New function.
2254 (regcache_cooked_write_part): New function.
2255 * regcache.h (regcache_raw_read_part): Declare.
2256 (regcache_raw_write_part): Declare.
2257 (regcache_cooked_read_part): Declare.
2258 (regcache_cooked_write_part): Declare.
2259
92d1e331
DJ
22602002-08-18 Daniel Jacobowitz <drow@mvista.com>
2261
2262 * remote.c (remote_open_1): Add async_p.
2263 (remote_async_open_1): Delete.
2264 (open_remote_target): Delete.
2265 (remote_open, extended_remote_open): Update calls to remote_open_1.
2266 (remote_async_open, extended_remote_async_open): Call
2267 remote_open_1 instead of remote_async_open_1.
2268
247055de
MK
22692002-08-19 Mark Kettenis <kettenis@gnu.org>
2270
2271 * blockframe.c: Fix a few coding standard violations.
2272
641eda39
MK
22732002-08-19 Mark Kettenis <kettenis@gnu.org>
2274
0b717710
MK
2275 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2276 here from ...
2277 * config/i386/tm-i386sco5.h: ... here. File removed.
2278 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2279
26d28e12 2280 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2281 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2282 (TM_FILE): Set to tm-i386.h.
2283 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2284 * config/i386/tm-i386v.h: Remove file.
2285 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2286 instead of "i386/tm-i386v.h".
2287 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2288 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2289 "i386/tm-i386v.h".
2290 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2291 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2292 "i386/tm-i386.h".
2293
d4e0bab4
MK
22942002-08-18 Mark Kettenis <kettenis@gnu.org>
2295
2296 * config/i386/nm-i386v.h: Add protection against
2297 multiple-inclusion.
2298 (i386_register_u_addr): Remove prototype.
2299 (register_u_addr): New prototype.
2300 (REGISTER_U_ADDR): Redefine accordingly.
2301 * i386v-nat.c: Improve several comments.
2302 (i386_register_u_addr): Change signature and rename to
2303 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2304 ubase variable.
2305
46cac009
AC
23062002-08-18 Andrew Cagney <ac131313@redhat.com>
2307
2308 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2309 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2310 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2311 deprecated_extract_return_value.
2312 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2313 rename mips_o32o64_push_arguments.
2314 (mips_gdbarch_init): Update.
2315 (mips_extract_return_value): Delete.
2316 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2317 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2318 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2319 (mips_n32n64_extract_return_value): Clone
2320 mips_extract_return_value.
2321 (mips_store_return_value): Delete.
2322 (mips_o32_store_return_value): Clone mips_store_return_value.
2323 (mips_o64_store_return_value): Clone mips_store_return_value.
2324 (mips_eabi_store_return_value): Clone mips_store_return_value.
2325 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2326
d2e4a39e
AS
23272002-08-18 Aidan Skinner <aidan@velvet.net>
2328
0c30c098
AS
2329 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2330 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2331
23322002-08-18 Aidan Skinner <aidan@velvet.net>
2333
2334 * ada-lang.c: Run through gdb_indent.sh.
2335 * ada-lang.h: Run through gdb_indent.sh.
2336 * ada-tasks.c: Run through gdb_indent.sh.
2337 * ada-typeprint.c: Run through gdb_indent.sh.
2338 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2339
01fc4e33
AC
23402002-08-18 Andrew Cagney <ac131313@redhat.com>
2341
2342 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2343 ABI.
2344
d8ee244c
MK
23452002-08-18 Mark Kettenis <kettenis@gnu.org>
2346
c38d8261
MK
2347 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2348
222db64c
MK
2349 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2350 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2351
c2848c82
MK
2352 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2353 write_register_gen instead of write_register_bytes.
2354
d8ee244c
MK
2355 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2356 i[3456]-*-osf1mk* configurations have been made obsolete.
2357 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2358 i[3456]86-*-osf1mk* hosts obsolete.
2359 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2360 targets obsolete.
2361 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2362 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2363 config/i386/i386m3.mt, config/i386/nm-m3.h,
2364 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2365 config/i386/i386mk.mh, config/i386/i386mk.mt,
2366 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2367 obsolete.
2368 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2369 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2370 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2371
61d8d407
AC
23722002-08-18 Andrew Cagney <ac131313@redhat.com>
2373
2374 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2375 (hppa_value_returned_from_stack): Declare.
2376 (hppa_extract_return_value): Declare.
2377 * config/pa/hppa.mt: New file.
2378 * configure.tgt: Recognize hppa*-*-*.
2379 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2380
0c52bd59
MK
23812002-08-18 Mark Kettenis <kettenis@gnu.org>
2382
2383 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2384 comment.
2385
b5686e99
MK
23862002-08-17 Mark Kettenis <kettenis@gnu.org>
2387
2388 * top.c (gdb_rl_operate_and_get_next): Make sure
2389 operate-and-get-next functions correctly even when the history
2390 list is completely filled.
2391
c1bab85b
AC
23922002-08-18 Andrew Cagney <ac131313@redhat.com>
2393
2394 * MAINTAINERS (Target Instruction Set Architectures): Rename
2395 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2396 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2397 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2398 already listed under Host/Native.
2399
2400 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2401 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2402 mips*-*-*.
2403
32089c7c
AC
24042002-08-17 Andrew Cagney <ac131313@redhat.com>
2405
2406 * config/ia64/ia64.mt: New file.
2407 * config/alpha/alpha.mt: New file.
2408 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2409 ia64-linux-gnu. Mention that ia64-elf is broken.
2410 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2411
b4671f85
MK
24122002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2413
2414 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2415 generic_func_frame_valid instead of func_frame_valid.
2416
c8edd8b4
JB
24172002-08-16 Joel Brobecker <brobecker@gnat.com>
2418
2419 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2420 procfs appears to be broken when debugging on multi-processor
2421 machines. So enable software single stepping in order to avoid
2422 using the procfs interface to do next/step operations, using
2423 internal breakpoints instead.
2424
2425 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2426 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2427 make this pc address equal to the value it would have if the
2428 system stepping capability was used. Also set a new flag used
2429 to ensure that we don't readjust the PC one more time later.
2430
2431 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2432 address by DECR_PC_AFTER_BREAK when software single step is
2433 in use for this architecture, as this has already been taken
2434 care of in handle_inferior_event().
2435
238617f6
JB
24362002-08-16 Joel Brobecker <brobecker@gnat.com>
2437
2438 * infrun.c (handle_inferior_event): Minor reformatting, to make
2439 a rather long condition expression easier to read.
2440
541a7aac
AC
24412002-08-16 Andrew Cagney <ac131313@redhat.com>
2442
2443 * Makefile.in (gdbtk.o): Move to end of file.
2444 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2445 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2446 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2447 (gdbtk-wrapper.o, gdbres.o): Ditto.
2448
f92d4a7b
AC
24492002-08-16 Andrew Cagney <ac131313@redhat.com>
2450
2451 * Makefile.in (copying.o): Separate out compile rule.
2452 (hpux-thread.o, procfs.o, signals.o): Ditto.
2453 (v850ice.o, z8k-tdep.o): Ditto.
2454 (tui-file.o): Move to TUI section.
2455 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2456 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2457
1cce71eb
JB
24582002-08-16 Joel Brobecker <brobecker@gnat.com>
2459
2460 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2461 skip_trampoline_code, for better namespace-proofing.
2462
2463 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2464
0851f23d
JB
24652002-08-16 Joel Brobecker <brobecker@gnat.com>
2466
2467 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2468
f8d40ec8
JB
24692002-08-16 Joel Brobecker <brobecker@gnat.com>
2470
2471 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2472 signal, check whether we hit a breakpoint before checking for a
2473 single step breakpoint. Otherwise, GDB fails to notice that a
2474 breakpoint has been hit when stepping onto a breakpoint.
2475
63d022e0
KS
24762002-08-16 Keith Seitz <keiths@redhat.com>
2477
2478 * gdb-events.sh (clear_gdb_event_hooks): New function.
2479 * gdb-events.c: Regenerate.
2480 * gdb-events.h: Regenerate.
2481
6e31adb3
AC
24822002-08-16 Andrew Cagney <ac131313@redhat.com>
2483
2484 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2485 not_a_sw_breakpoint.
2486 * breakpoint.h (bpstat_stop_status): Add parameter names.
2487
c8189ed1
GS
24882002-08-16 Grace Sainsbury <graces@redhat.com>
2489
2490 * remote.c (remote_insert_hw_breakpoint)
2491 (remote_remove_hw_breakpoint): Fix calculation of length field
2492 for Z-packet.
2493
d05285fa
MS
24942002-08-15 Michael Snyder <msnyder@redhat.com>
2495
466d7106
MS
2496 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2497 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2498 (supply_fpregset): Ditto.
2499
d05285fa
MS
2500 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2501 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2502 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2503 (TARGET_READ_SP): Delete.
bf1f5b4c 2504 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2505 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2506 Delete.
2507 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2508 from macros to functions.
bf1f5b4c 2509
d05285fa
MS
2510 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2511 (mips_register_convertible, mips_register_convert_to_virtual,
2512 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2513 (mips_read_sp): New function.
2514 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2515 (mips_do_registers_info): Make static.
2516 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2517 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2518 (mips_register_convert_from_type, mips_register_convert_to_type):
2519 New functions.
2520 (mips_gdbarch_init): Set up function_start_offset,
2521 register_virtual_size, pc_in_sigtramp.
d05285fa 2522
e76f1f2e
AC
25232002-08-15 Andrew Cagney <ac131313@redhat.com>
2524
2525 * infcmd.c (vector_info): New function.
2526 (_initialize_infcmd): Add command "info vector".
2527 (print_vector_info): New function.
2528
2529 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2530 * gdbarch.h, gdbarch.c: Regenerate.
2531
4782dc19
AC
25322002-08-15 Andrew Cagney <ac131313@redhat.com>
2533
2534 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2535 ``print_all''. Only print vector registers when ``print_all''.
2536
23e3a7ac
AC
25372002-08-15 Andrew Cagney <ac131313@redhat.com>
2538
8e186fd6
AC
2539 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2540 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2541
23e3a7ac
AC
2542 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2543 Add `args' parameter.
2544 * gdbarch.h, gdbarch.c: Regenerate.
2545
2546 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2547
2548 * infcmd.c (float_info): Call print_float_info.
2549 (print_float_info): New function. By default, print the
2550 floating-point registers.
2551
2552 * arch-utils.h (default_print_float_info): Delete declaration.
2553 * arch-utils.c (default_print_float_info): Delete function.
2554
e0ca2bb9
MK
25552002-08-16 Mark Kettenis <kettenis@gnu.org>
2556
3f733acc
MK
2557 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2558 out define.
2559
7d8d2918
MK
2560 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2561 FRAME.
2562
1c7cc583
MK
2563 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2564 * configure.host: Make i[3456]86-*-aix host obsolete.
2565 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2566 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2567 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2568 config/i386/xm-i386aix.h: Make files obsolete.
2569 * i386aix-nat.c: Make file obsolete.
2570 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2571 (i386aix-nat.o): Make target obsolete.
2572
e0ca2bb9
MK
2573 * config/i386/nm-gnu.h: Removed.
2574 * config/i386/nm-i386gnu.h: New file.
2575 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2576 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2577 Moved here from ...
2578 * config/i386/tm-i386gnu.h: ... here. Removed.
2579 * config/i386/xm-i386gnu.h: Removed.
2580 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2581 (NAT_FILE): Set to nm-i386gnu.h.
2582 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2583 * i386-tdep.c: New file.
2584 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2585 (i386gnu-tdep.o): Specify dependencies.
2586
16057ec7 25872002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2588
6b99ee2e
MK
2589 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2590 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2591 Adjust a few comments to reflect reality a bit closer.
2592 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2593 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2594 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2595 target_insert_watchpoint, target_remove_watchpoint):
2596 Move defines to ...
2597 * config/i386/nm-i386sco5.h: ... here.
2598 (kernel_u_size): Add prototype. Improve a few comments and add
2599 protection against multiple inclusion.
2600
d9a6f65c
MK
2601 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2602 out define.
2603
047eff6a
MK
2604 * uw-thread.c (SP_ARG0): Define if not already defined.
2605 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2606
dcdb1290
MK
2607 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2608
5d2d0b2a
MK
2609 * config/i386/tm-i386.h: Don't include "regcache.h".
2610
61113f8b
MK
2611 * i387-tdep.h (i387_print_float_info): New prototype.
2612 * i387-tdep.c (print_i387_value, print_i387_ext,
2613 print_i387_status_word, print_i387_control_word): Add `struct
2614 ui_file *' argument and use it for output.
2615 (i387_print_float_info): Renamed from i387_float_info. Add
2616 `struct gdbarch *' and `struct ui_file *' arguments and use the
2617 latter for output.
2618 * i386-tdep.c: Include "i387-tdep.h".
2619 (i386_gdbarch_init): Set print_float_info.
2620 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2621 (FLOAT_INFO): Remove define.
2622
46e0f506
MS
26232002-08-13 Michael Snyder <msnyder@redhat.com>
2624
2625 * mips-tdep.c (mips_push_arguments): Rename to
2626 mips_eabi_push_arguments, and tune for EABI.
2627 (MIPS_REGS_HAVE_HOME_P): Delete.
2628 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2629 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2630 Delete references to mips_regs_have_home_p.
2631
409268de
KS
26322002-08-14 Keith Seitz <keiths@redhat.com>
2633
2634 * Makefile.in (install-gdbtk): Create insight plugin directory.
2635 Install plugins.tcl file.
2636
ffc6a242
KS
26372002-08-14 Keith Seitz <keiths@redhat.com>
2638
2639 * configure.in: Move SUBDIRS to near top of the file so that
2640 --enable options may add things to it.
2641 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2642 * configure: Regenerate.
2643
ebafbe83
MS
26442002-08-13 Michael Snyder <msnyder@redhat.com>
2645
2646 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2647 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2648 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2649
32f6f25d
AC
26502002-08-13 Andrew Cagney <ac131313@redhat.com>
2651
2652 * vax-tdep.c (vax_get_saved_register): Delete function.
2653 (vax_gdbarch_init): Update.
2654 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2655 (ns32k_gdbarch_init): Update.
2656 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2657 (alpha_gdbarch_init): Update.
2658
53826de9
AC
26592002-08-13 Andrew Cagney <cagney@redhat.com>
2660
2661 * regcache.c (init_regcache_descr): Overallocate the
2662 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2663 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2664 nr_raw_registers.
2665 (set_register_cached): Add range checking assertions. Use
2666 current_regcache.
2667
16057ec7 26682002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2669
2670 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2671 numbers for MMX registers.
2672
7b4c2dce
AC
26732002-08-13 Andrew Cagney <cagney@redhat.com>
2674
2675 * i386-tdep.c (i386_gdbarch_init): Use
2676 generic_unwind_get_saved_register.
2677
1e03ad20
KB
26782002-08-13 Kevin Buettner <kevinb@redhat.com>
2679
2680 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2681 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2682 target vector.
2683 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2684 Delete. Add comment regarding this now-deleted target method.
2685
548bcbec
SC
26862002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2687
2688 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2689 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2690 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2691 real PC and the page number (if it's within the memory bank window).
2692 (m68hc11_pseudo_register_write): Likewise when saving.
2693 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2694 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2695 (m68hc11_register_raw_size): And use 32-bit for it.
2696 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2697 16K memory bank is used by the prog; also use the virtual pc.
2698
7df11f59
SC
26992002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2700
2701 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2702 (m68hc11_gdbarch_init): Install it in gdbarch.
2703 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2704 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2705 (MSYMBOL_SIZE): New for documentation.
2706 (insn_return_kind): Enum to specify how a function returns.
2707 (frame_extra_info): Cleanup and record the return mode.
2708 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2709 register in address computation.
2710 (m68hc11_get_return_insn): New to obtain the return instruction used
2711 by the function.
2712 (m68hc11_frame_init_saved_regs): Take into account the return
2713 instruction used by the function for far and interrupt functions.
2714 (m68hc11_init_extra_frame_info): Take into account page register.
2715 (m68hc11_frame_args_address): Adjust according to the return mode.
2716 (show_regs): Print page register only when it's used.
2717
5706502a
SC
27182002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2719
2720 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2721 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2722 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2723 registers.
2724 (m68hc11_register_raw_size): Likewise.
2725
28fc6740
AC
27262002-08-13 Andrew Cagney <cagney@redhat.com>
2727
2728 * i386-tdep.c (i386_register_name): Handle mmx registers.
2729 (mmx_regnum_p): New function.
2730 (i386_mmx_names): New array.
2731 (mmx_num_regs): New variable.
2732 (i386_pseudo_register_read): New function.
2733 (i386_pseudo_register_write): New function.
2734 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2735
2736 * regcache.c (regcache_raw_read_unsigned): New function.
2737 (regcache_raw_read_signed): New function.
2738 * regcache.h (regcache_raw_read_unsigned): Declare.
2739 (regcache_raw_read_signed): Declare.
2740
a378f419
AC
27412002-08-13 Andrew Cagney <cagney@redhat.com>
2742
2743 * regcache.c (regcache_raw_read_as_address): Delete function.
2744 (regcache_cooked_read_signed): New function.
2745 (regcache_cooked_read_unsigned): New function.
2746 * regcache.h (regcache_cooked_read_signed): Declare.
2747 (regcache_cooked_read_unsigned): Declare.
2748 (regcache_raw_read_as_address): Delete declaration.
2749
2750 * blockframe.c (generic_read_register_dummy): Use
2751 regcache_cooked_read_unsigned.
2752 * i386-tdep.c (i386_extract_struct_value_address): Use
2753 regcache_cooked_read_unsigned.
2754
81967506
SC
27552002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2756
2757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2758 double sizes according to ELF ABI flags.
2759 (gdbarch_tdep): Record elf_flags.
2760
ffe1f3ee
SC
27612002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2762
2763 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2764 (m6812_prolog): They can appear in 68HC12 function prologue.
2765 (m68hc11_frame_chain): Cleanup.
2766
98216c5d
AC
27672002-08-12 Andrew Cagney <cagney@redhat.com>
2768
2769 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2770 declarations.
2771 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2772 (i386_linux_register_raw_size): Delete function.
2773 (i386_linux_init_abi): Update.
2774 * i386-tdep.c (i386_register_raw_size): Delete function.
2775 (i386_register_byte): Delete function.
2776 (i386_gdbarch_init): Update.
2777 (i386_register_size): Delete array.
2778 (i386_register_offset): Delete array.
2779
2780 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2781 (REGISTER_RAW_SIZE): Delete macro.
2782 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2783 (REGISTER_BYTE): Delete macro.
2784
3b19021e
AS
27852002-08-11 Aidan Skinner <aidan@velvet.net>
2786
2787 * ada-lang.c (ada_lookup_partial_symbol)
2788 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2789 prototype names so that grep ^func works properly.
2790
2791 * ada-lang.c (ada_array_element_type)
2792 (ada_lookup_partial_symbol): Fix typos in parameter list.
2793
2794 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2795 Fix prototype names so that grep ^func works properly.
2796
b063e7a2
AC
27972002-08-10 Andrew Cagney <cagney@redhat.com>
2798 Elena Zannoni <ezannoni@redhat.com>
2799 Martin M. Hunt <hunt@redhat.com>
2800
2801 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2802 (build_builtin_type_vec128i): Set the vector bit.
2803 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2804 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2805 (build_builtin_type_vec64): New function.
2806 (build_builtin_type_vec64i): New function.
2807 (build_gdbtypes): Initialize builtin_type_vec64 and
2808 builtin_type_vec64i.
2809
a7e3c2ad
AC
28102002-08-09 Andrew Cagney <cagney@redhat.com>
2811
2812 * regcache.c (regcache_dump): Compare the register offset
2813 with REGISTER_BYTE.
2814 * arch-utils.c (generic_register_byte): New function.
2815 * arch-utils.h (generic_register_byte): Declare.
2816 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2817 * gdbarch.h, gdbarch.c: Regenerate.
2818
af030b9a
AC
28192002-08-09 Andrew Cagney <cagney@redhat.com>
2820
2821 * regcache.c: Include "gdbcmd.h"
2822 (_initialize_regcache): Add commands "maintenance print
2823 registers", "maintenance print raw-registers" and "maintenance
2824 print cooked-registers".
2825 (enum regcache_dump_what): Define.
2826 (dump_endian_bytes): New function.
2827 (regcache_dump): New function.
2828 (regcache_print): New function.
2829 (maintenance_print_registers): New function.
2830 (maintenance_print_raw_registers): New function.
2831 (maintenance_print_cooked_registers): New function.
2832 * Makefile.in (regcache.o): Update dependencies.
2833
cb3d25d1
MS
28342002-08-09 Michael Snyder <msnyder@redhat.com>
2835
2836 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2837 (mips_push_arguments): Correct some comments. Use paddr_nz
2838 for printing addresses in debug output. Replace static
2839 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2840 (mips_n32n64_push_arguments): New function, cloned from
2841 mips_push_arguments and tuned for the n32/n64 ABI.
2842 (mips_push_register): Buffer needs dynamic allocation.
2843 (mips_print_register): Ditto.
2844 (do_gp_register_row): Ditto.
2845 (mips_store_return_value): Ditto.
2846 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2847
2163ab9d
DH
28482002-08-09 Don Howard <dhoward@redhat.com>
2849
2850 * memattr.c (mem_info_command): Print special case of upper bound
2851 as max CORE_ADDR + 1.
2852
b78bcb18
MS
28532002-08-08 Michael Snyder <msnyder@redhat.com>
2854
2855 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2856 returns structs by ref if they're too big to fit in two registers.
2857
ffabd70d
KB
28582002-08-09 Kevin Buettner <kevinb@redhat.com>
2859
2860 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2861 saved regs value.
2862 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2863 mips_find_saved_regs().
2864 (mips_pop_frame): Likewise.
2865
fbcdb4a3
KB
28662002-08-09 Kevin Buettner <kevinb@redhat.com>
2867
2868 * blockframe.c (frame_saved_regs_register_unwind): Revise
2869 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2870 frames are in use.
2871
3c3bea1c
GS
28722002-08-09 Grace Sainsbury <graces@redhat.com>
2873
2874 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2875 T-packets; the 'a' is not taken as a register number.
2876 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2877 (remote_stopped_data_address): New functions; add to target
2878 vector.
2879 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2880 prototypes to match other implementations of this
2881 function. replace integer argument with pointer -- the length
2882 field in the Z-packet is the length of what is pointed to or 1 if
2883 pointer is null. Add to target vector.
2884 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2885 target vector.
2886
2887 From Mark Salter:
2888 * remote.c (remote_wait): Add support to extract optional
2889 watchpoint information from T-packet. Ignore unrecognized
2890 optional info in T-packet.
2891 (remote_async_wait): Ditto.
2892
5d1d95de
CV
28932002-08-09 Corinna Vinschen <vinschen@redhat.com>
2894
2895 * cli/cli-dump.c: Change fopen modes to use binary open modes
2896 as defined in include/fopen-bin.h throughout.
2897
c86b5b38
MS
28982002-08-08 Michael Snyder <msnyder@redhat.com>
2899
2900 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2901
b30590dc
KB
29022002-08-08 Kevin Buettner <kevinb@redhat.com>
2903
2904 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2905 assertion failure by returning early after a warning.
2906
498868ed
KB
29072002-08-08 Kevin Buettner <kevinb@redhat.com>
2908
2909 * mips-tdep.c (mips_find_saved_regs): Make static.
2910 (mips_frame_init_saved_regs): New function.
2911 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2912 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2913 (mips_find_saved_regs): Delete declaration.
2914
b2dd6311
GS
29152002-08-08 Grace Sainsbury <graces@redhat.com>
2916
3c3bea1c
GS
2917 * remote.c (remote_wait, remote_async_wait): Change
2918 thread_num from int to ULONGEST.
2919 (unpack_varlen_hex): Change result parameter from
2920 int * to ULONGEST *.
b2dd6311 2921
ea47855f
AC
29222002-08-08 Andrew Cagney <ac131313@redhat.com>
2923
2924 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2925 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2926 powerpc*-*-*.
2927 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2928
69db8bae
AC
29292002-08-08 Andrew Cagney <cagney@redhat.com>
2930
2931 * gcore.c (override_derive_stack_segment): Delete variable.
2932 (preempt_derive_stack_segment): Delete function.
2933 (derive_stack_segment): Delete function.
2934 (default_derive_stack_segment): Renamed to derive_stack_segment.
2935 (override_derive_heap_segment): Delete variable.
2936 (preempt_derive_heap_segment): Delete function.
2937 (derive_heap_segment): Delete function.
2938 (default_derive_heap_segment): Rename to derive_heap_segment.
2939
cb811fe7
MS
29402002-08-06 Michael Snyder <msnyder@redhat.com>
2941
2942 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2943 * mips-tdep.c (mips_EABI_use_struct_convention,
2944 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2945 New functions. (mips_use_struct_convention): Delete.
2946 (mips_gdbarch_init): set use_gdbarch_convention.
2947
8b389c40
MS
29482002-08-06 Michael Snyder <msnyder@redhat.com>
2949
2950 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2951 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2952 mips_o32_reg_struct_has_addr): New functions.
2953 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2954
5c27f28a
AC
29552002-08-07 Andrew Cagney <ac131313@redhat.com>
2956
2957 * regcache.c (pseudo_register): Delete function.
2958 (fetch_register): Delete function.
2959 (store_register): Delete function.
2960 (regcache_raw_read, legacy_read_register_gen): Use
2961 target_fetch_registers instead of fetch_register.
2962 (legacy_write_register_gen, regcache_raw_write): Use
2963 target_store_register instead of store_register.
2964 (write_register_bytes): Ditto.
2965
2966 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2967 (STORE_PSEUDO_REGISTER): Delete.
2968 * gdbarch.h, gdbarch.c: Regenerate.
2969
5b331675
CV
29702002-08-06 Corinna Vinschen <vinschen@redhat.com>
2971
2972 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2973 write dump file binary.
2974
6acdf5c7
MS
29752002-08-05 Michael Snyder <msnyder@redhat.com>
2976
2977 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2978 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2979 (mips_gdbarch_init): Set N32 target to be mips64.
2980
b2f01c35
KB
29812002-08-06 Kevin Buettner <kevinb@redhat.com>
2982
2983 * frame.c (find_saved_register): Break out of loop once saved
2984 register address is found. Don't mention sparc in loop comment
2985 anymore.
2986
63db5580
KB
29872002-08-06 Kevin Buettner <kevinb@redhat.com>
2988
2989 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2990 mips_default_saved_regsize to 8.
2991
5e34e75e
AC
29922002-08-06 Andrew Cagney <ac131313@redhat.com>
2993
2994 * gcore.c: Do not include <sys/procfs.h>.
2995 * Makefile.in (gcore.o): Update dependencies.
2996
eb4c54a2
AC
29972002-08-06 Andrew Cagney <cagney@redhat.com>
2998
2999 * configure.tgt: Make arc-*-* obsolete.
3000 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3001 * MAINTAINERS: Make arc-elf obsolete.
3002 * arc-tdep.c: Make file obsolete.
3003 * config/arc/arc.mt: Ditto.
3004 * config/arc/tm-arc.h: Ditto.
3005
ced15480
TR
30062002-08-05 Theodore A. Roth <troth@verinet.com>
3007
c1bab85b 3008 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3009
b4743822
AC
30102002-08-05 Andrew Cagney <ac131313@redhat.com>
3011
3012 * mcore-tdep.c (mcore_gdbarch_init): Use
3013 generic_unwind_get_saved_register instead of
3014 generic_get_saved_register.
3015 * v850-tdep.c (v850_gdbarch_init): Ditto.
3016 * frv-tdep.c (frv_gdbarch_init): Ditto.
3017 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3018 * s390-tdep.c (s390_gdbarch_init): Ditto.
3019 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3020 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3021 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3022
3956d554
JB
30232002-08-05 Joel Brobecker <brobecker@gnat.com>
3024
3025 * objfiles.h: Add missing #include "symfile.h"
3026
3027 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3028
8249c0d6
AC
30292002-08-04 Andrew Cagney <ac131313@redhat.com>
3030
3031 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3032 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3033 of FIELD_BITSIZE.
3034
b9d14705
DJ
30352002-08-04 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * NEWS: Cleanup and nitpick.
3038
dd73b9bb
AC
30392002-08-03 Andrew Cagney <ac131313@redhat.com>
3040
3041 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3042
043a27f8
AC
30432002-08-03 Andrew Cagney <ac131313@redhat.com>
3044
3045 * Makefile.in (gdbtk-bp.o): Update dependencies.
3046 (gdbtk-register.o): Ditto.
3047 (gdbtk-varobj.o): Ditto.
3048
46ce284d
AC
30492002-08-03 Andrew Cagney <cagney@redhat.com>
3050
3051 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3052 m68hc11_fetch_pseudo_register.
3053 (m68hc11_pseudo_register_write): Replace
3054 m68hc11_store_pseudo_register.
3055 (m68hc11_gdbarch_init): Update.
3056
b66d6d2e
AC
3057Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3058
3059 * gdbarch.sh: Include "gdb_string.h".
3060 * gdbarch.c: Regenerate.
3061
3062 * regcache.c: Include "gdb_string.h".
3063 * ax-general.c: Ditto.
3064 * varobj.c: Ditto.
3065 * std-regs.c: Ditto.
3066 * fbsd-proc.c: Ditto.
3067 * thread.c: Ditto.
3068
3069 * Makefile.in (regcache.o): Update dependencies.
3070 (thread.o, gdbarch.o): Ditto.
3071 (ax-general.o, gdbarch.o): Ditto.
3072 (varobj.o, std-regs.o): Ditto.
3073 (fbsd-proc.o): Specify dependencies.
3074
29e1842b
AC
30752002-08-02 Andrew Cagney <cagney@redhat.com>
3076
3077 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3078 regnum.
3079 (regcache_cooked_write): Ditto.
3080
68365089
AC
30812002-08-02 Andrew Cagney <ac131313@redhat.com>
3082
3083 * regcache.c (regcache_cooked_read): New function.
3084 (regcache_cooked_write): New function.
3085 (read_register_gen): Rewrite using regcache_cooked_read.
3086 (write_register_gen): Rewrite using regcache_cooked_write.
3087
3088 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3089 Declare.
3090
d8124050
AC
30912002-08-02 Andrew Cagney <cagney@redhat.com>
3092
3093 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3094 Replace the architecture methods register_read and register_write.
3095 * gdbarch.h, gdbarch.c: Regenerate.
3096 * regcache.c (init_regcache_descr): Update.
3097 (read_register_gen): Update.
3098 (write_register_gen): Update.
3099 (supply_register): Update comment.
3100
3101 * sh-tdep.c (sh_gdbarch_init): Update.
3102 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3103 `regcache' and `gdbarch' parameters. Make `buffer' a void
3104 pointer. Update code.
3105 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3106 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3107 void pointer. Update code.
3108 (sh64_register_write): Delete.
3109 (sh4_register_read): Delete.
3110 (sh64_register_read): Delete.
3111 (sh4_register_write): Delete.
3112 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3113 void pointer, `to' parameter a void pointer.
3114 (sh_sh64_register_convert_to_raw): Ditto.
3115
a6425924
KB
31162002-08-01 Kevin Buettner <kevinb@redhat.com>
3117
3118 * mips-tdep.c (mips_register_virtual_type): Use architecture
3119 invariant return values.
3120
ff5922b5
AC
31212002-08-01 Andrew Cagney <cagney@redhat.com>
3122
3123 * linux-proc.c: Include "gdb_string.h".
3124 * Makefile.in (linux-proc.o): Update dependency list.
3125
32a6503c
KB
31262002-08-01 Kevin Buettner <kevinb@redhat.com>
3127
3128 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3129 comment.
3130
ccaa32c7
GS
31312002-08-01 Grace Sainsbury <graces@redhat.com>
3132
3133 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3134 to_insert_watchpoint, to_remove_watchpoint,
3135 to_stopped_by_watchpoint, to_stopped_data_address,
3136 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3137 target vecctor. Define their corresponding macros so they call
3138 them.
3139
3140 * target.c: Add default and debug versions of for
3141 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3142 to_insert_watchpoint, to_remove_watchpoint,
3143 to_stopped_by_watchpoint, to_stopped_data_address,
3144 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3145
78fde5f8
KB
31462002-08-01 Kevin Buettner <kevinb@redhat.com>
3147
3148 * mips-tdep.c (mips_register_virtual_type): New function.
3149 (mips_gdbarch_init): Register mips_register_virtual_type()
3150 with gdbarch machinery.
3151 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3152 this file instead of tm-bigmips.h.
3153 (MIPS_REGSIZE): Delete this macro.
3154 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3155 multiarch version in mips-tdep.c will be found.
3156
db034ac5
AC
31572002-08-01 Andrew Cagney <cagney@redhat.com>
3158
3159 * NEWS: Menion that CHILL has been made obsolete.
3160
3161 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3162 * stabsread.c (read_range_type): Ditto.
3163 * gdbtypes.h: Ditto.
3164 * language.c (binop_type_check): Ditto.
3165 (binop_result_type): Ditto.
3166 (integral_type): Ditto.
3167 (character_type): Ditto.
3168 (string_type): Ditto.
3169 (boolean_type): Ditto.
3170 (structured_type): Ditto.
3171 (lang_bool_type): Ditto.
3172 (binop_type_check): Ditto.
3173 * language.h (_LANG_chill): Ditto.
3174 * dwarfread.c (set_cu_language): Ditto.
3175 * dwarfread.c (CHILL_PRODUCER): Ditto.
3176 * dwarfread.c (handle_producer): Ditto.
3177 * expression.h (enum exp_opcode): Ditto.
3178 * eval.c: Ditto for comments.
3179 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3180 * expprint.c (print_subexp): Ditto.
3181 (print_subexp): Ditto.
3182 * valops.c (value_cast): Ditto.
3183 (search_struct_field): Ditto.
3184 * value.h (COERCE_VARYING_ARRAY): Ditto.
3185 * symfile.c (init_filename_language_table): Ditto.
3186 (add_psymbol_with_dem_name_to_list): Ditto.
3187 * valarith.c (value_binop): Ditto.
3188 (value_neg): Ditto.
3189 * valops.c (value_slice): Ditto.
3190 * symtab.h (union language_specific): Ditto.
3191 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3192 (SYMBOL_DEMANGLED_NAME): Ditto.
3193 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3194 * defs.h (enum language): Ditto.
3195 * symtab.c (got_symtab): Ditto.
3196 * utils.c (fprintf_symbol_filtered): Ditto.
3197
3198 * ch-typeprint.c: Make file obsolete.
3199 * ch-valprint.c: Make file obsolete.
3200 * ch-lang.h: Make file obsolete.
3201 * ch-exp.c: Make file obsolete.
3202 * ch-lang.c: Make file obsolete.
3203
3204 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3205 CHILL_LIB.
3206 (TARGET_FLAGS_TO_PASS): Ditto.
3207 (CHILLFLAGS): Obsolete.
3208 (CHILL): Obsolete.
3209 (CHILL_FOR_TARGET): Obsolete.
3210 (CHILL_LIB): Obsolete.
3211 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3212 ch-valprint.c.
3213 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3214 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3215 ch-lang.o.
3216 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3217 targets.
3218
8aaf0b47
JB
32192002-07-31 Joel Brobecker <brobecker@gnat.com>
3220
3221 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3222 This does not change anything at the moment, but will be helpful
3223 later when full Ada support is integrated.
3224
f3a7b3a5
KB
32252002-07-31 Kevin Buettner <kevinb@redhat.com>
3226
3227 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3228 help message.
3229
fb850278
KB
32302002-07-31 Kevin Buettner <kevinb@redhat.com>
3231
3232 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3233 and save it in a local variable. Use variable in later test.
3234
e3bddbfa
KB
32352002-07-31 Kevin Buettner <kevinb@redhat.com>
3236
3237 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3238 test. (Thanks to Daniel Jacobowitz.)
3239
28d169de
KB
32402002-07-31 Kevin Buettner <kevinb@redhat.com>
3241
3242 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3243 (mips_abi_strings): Add "n64".
3244 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3245
7fe7e44e
KB
32462002-07-31 Kevin Buettner <kevinb@redhat.com>
3247
3248 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3249 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3250
c6caf090
KB
32512002-07-31 Kevin Buettner <kevinb@redhat.com>
3252
3253 * utils.c (host_pointer_to_address, address_to_host_pointer):
3254 Use gdb_assert() instead of explicit call to internal_error().
3255
c41669e0
KB
32562002-07-30 Kevin Buettner <kevinb@redhat.com>
3257
3258 * Makefile.in (rs6000-nat.o): Update dependencies.
3259
3260 From Nicholas Duffek:
3261 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3262 (aix-thread.o): New rule.
3263 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3264 * config/powerpc/aix432.mh: New file.
3265
2fda4977
DJ
32662002-07-30 Daniel Jacobowitz <drow@mvista.com>
3267
3268 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3269 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3270 (fetch_core_registers, ppc_linux_supply_gregset)
3271 (ppc_linux_supply_fpregset): New functions.
3272 (ppc_linux_regset_core_fns): New.
3273 (_initialize_ppc_linux_tdep): Call add_core_fns.
3274 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3275 and ppc_linux_supply_gregset.
3276 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3277 (supply_fpregset): Call ppc_linux_supply_fpregset.
3278 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3279 corelow.o.
3280 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3281
729051e6
DJ
32822002-07-30 Daniel Jacobowitz <drow@mvista.com>
3283
3284 * symtab.c (lookup_symbol): Demangle before lowercasing.
3285
5f8a3188
AC
32862002-07-30 Andrew Cagney <ac131313@redhat.com>
3287
3288 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3289 declaration.
3290 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3291 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3292 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3293 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3294 "gdb_string.h".
3295 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3296 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3297 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3298 (avr-tdep.o, mon960-rom.o): Ditto.
3299 (aout_stabs_gnu_h): Define.
3300 (symtab_h): Remove $(gdb_obstack_h).
3301
67f07146
JB
33022002-07-30 Jim Blandy <jimb@redhat.com>
3303
3304 Patch from David Carlton <carlton@math.stanford.edu>:
3305 * gdbinit.in: Move the `dir' commands that add GDB's own source
3306 directory to the search path to the end, so that the `gdb' source
3307 directory will be searched first.
3308
04ea0df1
AC
33092002-07-29 Andrew Cagney <ac131313@redhat.com>
3310
3311 * gdb_obstack.h: New file.
3312 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3313 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3314 * objfiles.h: Include "gdb_obstack.h".
3315 * Makefile.in (gdb_obstack_h): Define.
3316 (symtab_h): Add $(gdb_obstack_h).
3317 (objfiles_h): Add $(gdb_obstack_h).
3318
3319 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3320 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3321 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3322 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3323 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3324 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3325 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3326 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3327
3328 * Makefile.in (bcache.o): Update dependencies.
3329 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3330 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3331 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3332 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3333 (stabsread.o, symfile.o, symmisc.o): Ditto.
3334 (symtab.o, typeprint.o, macroexp.o): Ditto.
3335 (macrotab.o, mdebugread.o): Ditto.
3336 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3337 (coff_ecoff_h, aout_aout64_h): Define.
3338 (aout_stabs_gnu_h, libaout_h): Define.
3339
d138e37a
AC
33402002-07-29 Andrew Cagney <cagney@redhat.com>
3341
3342 * regcache.c (struct regcache_descr): Rename nr_registers to
3343 nr_cooked_registers. Revise comments describing the structure
3344 member fields.
3345 (init_regcache_descr): Update.
3346 (init_legacy_regcache_descr): Update.
3347 (read_register_gen, write_register_gen): When a cooked register in
3348 the raw register range, directly access the value from the raw
3349 register cache.
3350
460e6ec3
AC
33512002-07-29 Andrew Cagney <ac131313@redhat.com>
3352
3353 * z8k-tdep.c: Do not include "obstack.h".
3354 * h8300-tdep.c, h8500-tdep.c: Ditto.
3355 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3356 * valprint.c, v850-tdep.c: Ditto.
3357 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3358 * mn10200-tdep.c: Ditto.
3359
3360 * Makefile.in (z8k-tdep.o): Update dependencies.
3361 (m68hc11-tdep.o, valprint.o): Ditto.
3362 (v850-tdep.o, d10v-tdep.o): Ditto.
3363 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3364 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3365 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3366 (sh_opc_h, gdb_sim_sh_h): Define.
3367 (elf_sh_h, elf_bfd_h): Define.
3368 (opcode_m68hc11_h): Define.
3369 (OPCODES_SRC, OPCODES_DIR): define.
3370 (OPCODES): Use $(OPCODES_DIR).
3371 (gdb_sim_d10v_h): Rename sim_d10v_h.
3372 (gdb_sim_arm_h): Rename sim_arm_h.
3373
790c9cf0
KB
33742002-07-26 Kevin Buettner <kevinb@redhat.com>
3375
3376 * utils.c (host_pointer_to_address, address_to_host_pointer):
3377 Change internal_error() message to indicate function responsible
3378 for the error.
3379
9647fa49
KB
33802002-07-26 Kevin Buettner <kevinb@redhat.com>
3381
3382 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3383 calls to local_hex_string_custom().
3384
dabbe2c0
KB
33852002-07-26 Kevin Buettner <kevinb@redhat.com>
3386
3387 * irix5-nat.c: Move IRIX shared library support from here...
3388 * solib-irix.c: ...to here. Revised substantially to work with
3389 generic solib framework.
3390
b96d0a4e
KB
3391 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3392 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3393 * mips-irix-tdep.c: New file.
3394
313fb2f6
KB
3395 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3396 (mips-irix-tdep.o, solib-irix.o): New rules.
3397 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3398 solib-irix.o.
3399 * config/mips/irix6.mt (TDEPFILES): Likewise.
3400 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3401
ab2eaf26
KB
34022002-07-26 Kevin Buettner <kevinb@redhat.com>
3403
177e4768 3404 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3405 disabled (via ``#if 0'') includes.
3406
7244546a
KB
34072002-07-26 Kevin Buettner <kevinb@redhat.com>
3408
3409 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3410 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3411 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3412 Add support for the fpscr register.
3413 * rs6000-nat.c (regmap, fetch_inferior_registers)
3414 (store_inferior_registers, fetch_core_registers): Likewise.
3415
dd7be90a
KB
34162002-07-26 Kevin Buettner <kevinb@redhat.com>
3417
3418 * rs6000-nat.c (language.h): Include.
3419 (special_regs): Delete this array.
3420 (regmap): New function.
3421 (fetch_register, store_register): Use regmap() to map gdb
3422 register numbers to ptrace register numbers. Also, use
3423 outputs from regmap() to make decisions regarding type of
3424 ptrace() call to make. In particular, don't compare against
3425 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3426 (fetch_inferior_registers, store_inferior_registers): Where
3427 possible, obtain register numbers from tdep struct. Don't
3428 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3429 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3430 (LAST_UISA_SP_REGNUM): Delete.
3431
11bf77db
KB
34322002-07-25 Kevin Buettner <kevinb@redhat.com>
3433
3434 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3435 (fetch_registers, store_register, fetch_core_registers): Don't
3436 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3437 regcache_collect() as appropriate.
3438 (find_toc_address): Format hex address with local_hex_string().
3439
06afebeb
AC
34402002-07-25 Andrew Cagney <ac131313@redhat.com>
3441
3442 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3443 bfd/elf32-frv.c.
3444
8c554d79
TT
34452002-07-24 Tom Tromey <tromey@redhat.com>
3446
3447 * jv-exp.y: Marked all strings with _().
3448 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3449 internal_error.
3450 (MethodInvocation, CastExpression, parse_number, yyerror,
3451 java_type_from_name, push_expression_name, yylex): Typo fixes.
3452
e4c242d9
DJ
34532002-07-24 Daniel Jacobowitz <drow@mvista.com>
3454
3455 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3456 (tee_file_flush, tee_file_write, tee_file_fputs)
3457 (tee_file_isatty): New.
3458 * ui-file.h (tee_file_new): Add prototype.
3459
ebf56fd3
AS
34602002-07-24 Aidan Skinner <aidan@velvet.net>
3461
3462 * ada-lang.c: Change k&r style function definitions to prototyped
3463 form.
3464 * ada-typeprint.c: Change k&r style function definitions to prototyped
3465 form.
3466 * ada-valprint.c: Change k&r style function definitions to prototyped
3467 form.
3468
7fb623f7
AC
34692002-07-24 Andrew Cagney <cagney@redhat.com>
3470
3471 * README: Remove reference to remote-bug.
3472 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3473 remote-bug.c.
3474 (m88k-nat.o): Delete rule.
3475 (m88k-tdep.o): Delete rule.
3476 (remote-bug.o): Delete rule.
3477 * MAINTAINERS: Mark as obsolete.
3478 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3479 * m88k-tdep.c: Make file obsolete.
3480 * config/m88k/m88k.mh: Ditto.
3481 * config/m88k/delta88v4.mh: Ditto.
3482 * config/m88k/delta88v4.mt: Ditto.
3483 * config/m88k/delta88.mt: Ditto.
3484 * config/m88k/delta88.mh: Ditto.
3485 * remote-bug.c: Ditto.
3486 * config/m88k/tm-delta88.h: Ditto.
3487 * config/m88k/nm-delta88v4.h: Ditto.
3488 * config/m88k/xm-delta88.h: Ditto.
3489 * config/m88k/xm-dgux.h: Ditto.
3490 * config/m88k/tm-m88k.h: Ditto.
3491 * config/m88k/nm-m88k.h: Ditto.
3492 * config/m88k/tm-delta88v4.h: Ditto.
3493 * m88k-nat.c: Ditto.
3494 * cxux-nat.c: Ditto.
3495 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3496 and m88*-*-* obsolete.
3497 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3498 m88*-*-* obsolete.
3499
37611a2b
AC
35002002-07-24 Andrew Cagney <cagney@redhat.com>
3501
3502 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3503 constant. Same for local pointer variables.
3504 (extract_signed_integer): Ditto.
3505 * defs.h (extract_unsigned_integer): Update.
3506 (extract_signed_integer): Update.
3507
1aaa5f99
AC
35082002-07-24 Andrew Cagney <cagney@redhat.com>
3509
3510 * regcache.c (regcache_raw_write): Change buf parameter to a
3511 constant void pointer.
3512 (regcache_raw_read): Change buf parameter to a void pointer.
3513 (legacy_write_register_gen): Change myaddr parameter a constant
3514 void pointer.
3515 (supply_register): Change val parameter to a const void pointer.
3516 * regcache.h (regcache_raw_write): Update declaration.
3517 (regcache_raw_read): Update declaration.
3518 (supply_register): Update declaration.
3519
b4f5539f
TT
35202002-07-24 Tom Tromey <tromey@redhat.com>
3521
3522 * defs.h (gdb_readline_wrapper): Declare.
3523 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3524 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3525 * top.c (gdb_readline_wrapper): New function.
3526 (command_line_input): Use it.
3527
0818c12a
AC
35282002-07-24 Andrew Cagney <cagney@redhat.com>
3529
3530 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3531 regcache_read and regcache_write.
3532 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3533 * regcache.c: Update.
3534 * sh-tdep.c (sh64_push_arguments): Update comment.
3535 (sh_pseudo_register_read): Update.
3536 (sh_pseudo_register_write): Update.
3537 (sh4_register_read): Update.
3538 (sh4_register_write): Update.
3539 (sh64_pseudo_register_read): Update.
3540 (sh64_pseudo_register_write): Update.
3541 (sh64_register_read): Update.
3542 (sh64_register_write): Update.
3543 * i386-tdep.c (i386_extract_return_value): Update.
3544 (i386_extract_struct_value_address): Update.
3545 (i386_extract_return_value): Update.
3546 * blockframe.c (generic_read_register_dummy): Update.
3547 (generic_call_dummy_register_unwind): Update
3548 * infrun.c (write_inferior_status_register): Update.
3549
f7321c06
JB
35502002-07-23 Jim Blandy <jimb@redhat.com>
3551
3552 * parser-defs.h (expression_context_pc): Make this extern.
3553 (Thanks to Michael Snyder.)
3554
2037aebb
AC
35552002-07-23 Andrew Cagney <ac131313@redhat.com>
3556
3557 GDB 5.2.1 released from 5.2 branch.
3558 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3559 * README: Update to mention 5.2.1.
3560
66504d44
MS
35612002-07-23 Mark Salter <msalter@redhat.com>
3562
3563 * remote.c (remote_read_bytes): Fix check for error.
3564
27bae383
KB
35652002-07-22 Kevin Buettner <kevinb@redhat.com>
3566
3567 * aix-thread.c (language.h): Include.
3568 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3569 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3570 Print newlines at end of debug messages.
3571 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3572 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3573
35742002-07-22 Kevin Buettner <kevinb@redhat.com>
3575
3576 * aix-thread.c (ppc-tdep.h): Include.
3577 (special_register_p): New function.
3578 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3579 (store_regs_user_thread): Use register number information from
3580 gdbarch_tdep struct instead of hardcoded offsets relative to
3581 FIRST_UISA_SP_REGNUM.
3582 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3583 special_register_p() instead of using FPLAST_REGNUM and
3584 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3585 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3586 will be MQ's register number.
3587
35882002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3589
3590 * aix-thread.c (ops): Rename to aix_thread_ops.
3591 (base_ops): Rename to base_target.
3592 (ops_attach): Rename to aix_thread_attach.
3593 (ops_detach): Rename to aix_thread_detach.
3594 (ops_resume): Rename to aix_thread_detach.
3595 (ops_wait): Rename to aix_thread_wait.
3596 (ops_kill): Rename to aix_thread_kill.
3597 (init_ops): Rename to init_aix_thread_ops.
3598 (ops_fetch_register): Rename to aix_thread_fetch_register.
3599 (ops_store_register): Rename to aix_thread_store_register.
3600 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3601 (ops_thread_alive): Rename to aix_thread_thread_alive.
3602 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3603 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3604 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3605 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3606 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3607 (store_regs_lib): Rename to store_regs_user_thread.
3608 (store_regs_kern): Rename to store_regs_kernel_thread.
3609
27bae383 36102002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3611
3612 * aix-thread.c (ops_prepare_to_store): Eliminate.
3613 (init_ops): Don't initialize ops.prepare_to_store.
3614 (store_regs_kern): Pre-fetch register buffers from child,
3615 because some registers may not be in the cache. Copy
3616 regs from register cache only if they are cached.
3617 (store_regs_lib): Copy regs from register cache only
3618 if they are cached.
3619 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3620 fill_gprs64): Ditto.
3621
61c5da0b
KB
36222002-07-22 Kevin Buettner <kevinb@redhat.com>
3623
3624 * aix-thread.c (gdb_assert.h): Include.
3625 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3626 register sizes (from register cache) match size of buffer holding
3627 register data.
3628 (fill_sprs32): Change parameter types to match those in the ptrace()
3629 buffer.
3630 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3631 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3632
36332002-07-22 Michael Snyder <msnyder@redhat.com>
3634
3635 * aix-thread.c (supply_sprs64): Cosmetic change.
3636 (supply_sprs32): Cosmetic change.
3637 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3638 (fill_sprs64): Use regcache_collect instead of read_register.
3639 (store_regs_lib): Use regcache_collect instead of
3640 read_register. Use fill_sprs32 instead of fill_sprs64,
3641 if debugging a 32-bit architecture.
3642 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3643 out of the register cache, instead of passing a pointer into
3644 the register cache directly to ptrace. Use regcache_collect
3645 insteaad of read_register.
3646 (ops_prepare_to_store): Use target_read_registers instead
3647 of read_register_bytes.
3648
36479eb1
AS
36492002-07-20 Aidan Skinner <aidan@velvet.net>
3650
3651 * MAINTAINERS: Add self under write after approval.
3652
80ae6ee2
AS
36532002-07-20 Aidan Skinner <aidan@velvet.net>
3654
3655 * ada-tasks.c: Change k&r style function definitions to prototyped
3656 form.
3657
8a8ab2b9
AC
36582002-07-19 Andrew Cagney <ac131313@redhat.com>
3659
3660 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3661 * x86-64-tdep.c: Include "objfiles.h".
3662 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3663 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3664
fb16b900
ML
36652002-07-17 Michal Ludvig <michal@suse.cz>
3666
3667 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3668 (update_context): Initialise cfa variable.
3669
0fe7bf7b
MS
36702002-07-17 Michael Snyder <msnyder@redhat.com>
3671
3672 * aix-thread.c: Shorten some long lines.
3673 Bring comments into line with code spec.
3674
488f131b
JB
36752002-07-18 Joel Brobecker <brobecker@gnat.com>
3676
3677 * infrun.c: Re-indent using gdb_indent.sh.
3678
46c415d2
JB
36792002-07-18 Joel Brobecker <brobecker@gnat.com>
3680
3681 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3682 Leave the indentation temporarily untouched, to minimize the diffs.
3683
cdecafbe
EZ
36842002-07-18 Elena Zannoni <ezannoni@redhat.com>
3685
3686 * stabsread.c: Make os9k sections of the code obsolete,
3687 for real this time.
3688 * stabsread.h: Make os9k sections of the code obsolete.
3689
7b6aa020
ML
36902002-07-18 Michal Ludvig <mludvig@suse.cz>
3691
09ec9b38
ML
3692 * linux-low.c (regsets_store_inferior_registers): Add free()
3693 at the end of a loop to prevent memory leak.
3694 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3695 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3696 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3697 line a comment.
4894ac5d 3698 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3699
233282cd
JB
37002002-07-17 Jim Blandy <jimb@redhat.com>
3701
3702 * macrocmd.c (info_macro_command): Remove newline from error
3703 message.
3704
7b6aa020 37052002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3706
3707 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3708 (sh_gdbarch_init): Use it for sh-dsp.
3709
f7ef9339
KB
37102002-07-16 Kevin Buettner <kevinb@redhat.com>
3711
3712 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3713 64-bit DWARF2 format.
3714
8dd72958
JB
37152002-07-16 Joel Brobecker <brobecker@gnat.com>
3716
3717 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3718 <sys/proc.h> when not available.
3719
a99a9e1b
AC
37202002-07-16 Andrew Cagney <ac131313@redhat.com>
3721
3722 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3723 * stabsread.c: Make os9k sections of the code obsolete.
3724 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3725 * config/i386/i386os9k.mt: Make file obsolete.
3726 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3727 (COMMON_OBS): Remove os9kread.o
3728 (SFILES): Remove os9kread.c.
3729 (os9kread.o, remote-os9k.o): Make target obsolete.
3730 * remote-os9k.c: Make file obsolete.
3731 * os9kread.c: Make file obsolete.
3732 * Makefile.in
3733
7a3085c1
AC
37342002-07-16 Andrew Cagney <ac131313@redhat.com>
3735
3736 * NEWS: Mention that the FR30 has been made obsolete.
3737 * fr30-tdep.c: Make file obsolete.
3738 * config/fr30/tm-fr30.h: Ditto.
3739 * config/fr30/fr30.mt: Ditto.
3740 * configure.tgt: Make fr30-*-elf obsolete.
3741 * MAINTAINERS: Make fr30-elf obsolete.
3742
28a93f5a
PM
37432002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3744
3745 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3746 found is not inside a section.
3747
be006b8b
KB
37482002-07-15 Kevin Buettner <kevinb@redhat.com>
3749
3750 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3751 strerror().
3752 (pdc_realloc): Use xrealloc() instead of realloc().
3753
14fa3751
KB
37542002-07-15 Kevin Buettner <kevinb@redhat.com>
3755
3756 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3757 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3758 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3759 macros.
3760
42cc437f
KB
37612002-07-15 Kevin Buettner <kevinb@redhat.com>
3762
3763 * aix-thread.c (ptrace_check): Eliminate goto.
3764 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3765 problem.
3766
8e2c28d4
KB
37672002-07-15 Kevin Buettner <kevinb@redhat.com>
3768
3769 * aix-thread.c (gdbcmd.h): Include.
3770 (DEBUG, DBG, DBG2, dbg): Eliminate.
3771 (debug_aix_thread): New static global.
3772 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3773 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3774 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3775 invocations to DBG and DBG2 macros to test against
3776 ``debug_aix_thread'' and call fprintf_unfiltered().
3777 (_initialize_aix_thread): Add new command "set debug aix-thread".
3778
30413464
AC
37792002-07-15 Andrew Cagney <ac131313@redhat.com>
3780
3781 From Gerhard Tonn <TON@de.ibm.com>:
3782 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3783 instead of supply_register.
3784
7c43edc1
AC
37852002-07-15 Andrew Cagney <ac131313@redhat.com>
3786
3787 * dwarf2cfi.c: Include "gdb_assert.h".
3788 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3789 non-NULL.
3790 (update_context): Do not use __func__. Add missing ``break''.
3791 (update_context): Do not use __func__.
3792
9364a0ef
EZ
37932002-07-15 Elena Zannoni <ezannoni@redhat.com>
3794
3795 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3796 and its setting. Set gdbarch instruction printing functions
3797 directly. For non-rs6000 case use new function
3798 gdb_print_insn_powerpc.
3799 (gdb_print_insn_powerpc): New function.
3800
3fbeef0b
AC
38012002-07-13 Andrew Cagney <ac131313@redhat.com>
3802
92eb23c5 3803 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3804 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3805 * configure.tgt: Mark d30v-*-* as obsolete.
3806 * d30v-tdep.c: Mark file as obsolete.
3807 * config/d30v/d30v.mt: Ditto.
3808 * config/d30v/tm-d30v.h: Ditto.
3809
aacb1f0a
AS
38102002-07-13 Aidan Skinner <aidan@velvet.net>
3811
3812 * ada-tasks.c (add_task_entry): replace calls to
3813 malloc() with xmalloc
3814 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3815
3816 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3817 ada_finish_decode_line_1, all_sals_for_line
3818 ada_breakpoint_rewrite): replace calls to free() with xfree()
3819
c11d79f2
KB
38202002-07-12 Kevin Buettner <kevinb@redhat.com>
3821
3822 From Nicholas Duffek (with minor changes by Martin Hunt,
3823 Louis Hamilton, and Kevin Buettner):
3824 * aix-thread.c: New file.
3825
8e19ed76
PS
38262002-07-12 Petr Sorfa <petrs@caldera.com>
3827
3828 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3829 complaint for invalid attribute class or form.
3830 (read_func_scope): DW_AT_frame_base
3831 better handling of DW_AT_block*.
3832 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3833 better handling of DW_AT_block*.
3834 (read_common_block): DW_AT_location
3835 better handling of DW_AT_block*.
3836 (read_partial_die): DW_AT_location better handling
3837 of DW_AT_block*.
3838 (new_symbol): DW_AT_external better handling of
3839 DW_AT_block*. Proper initialization of variable
3840 "addr".
3841 (attr_form_is_block): New function that returns true
3842 if the attribute's form is of DW_FORM_block*.
3843
295401f7
DJ
38442002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3845
3846 * valops.c (find_method_list): Remove comment about
3847 removed STATIC_MEMFUNCP argument.
3848 (value_find_oload_method_list): Likewise.
3849
e42dc924
KB
38502002-07-12 Kevin Buettner <kevinb@redhat.com>
3851
3852 From Nicholas Duffek:
3853 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3854 target_new_objfile_hook.
3855
6904b546
KB
38562002-07-12 Kevin Buettner <kevinb@redhat.com>
3857
3858 From Nicholas Duffek:
3859 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3860 csect.
3861
53fe9346
AC
38622002-07-12 Andrew Cagney <cagney@redhat.com>
3863
3864 * MAINTAINERS: Mention --enable-sim-build-warnings.
3865 (m68hc11-elf): Disable sim build warnings.
3866 (m32r-elf): Mark as broken obsolete candidate.
3867 (x86_64-linux-gnu): Mark as buildable with -Werror.
3868 (arm-elf): Change -w to ``,'' which enables warnings but not
3869 -Werror.
3870
af5f3db6
AC
38712002-07-12 Andrew Cagney <ac131313@redhat.com>
3872
3873 * bcache.h: Update copyright.
3874 (struct bstring, struct bcache): Move definition to "bcache.c".
3875 Replaced by opaque declaration.
3876 (bcache_xfree): Replace free_bcache.
3877 (bcache_xmalloc, bcache_memory_used): Declare.
3878
3879 * bcache.c: Update copyright.
3880 (struct bstring, struct bcache): Moved to here from "bcache.h".
3881 Update comments.
3882 (bcache_xmalloc, bcache_memory_used): New functions.
3883 (bcache_xfree): Replace function free_bcache.
3884
3885 * Makefile.in (objfiles.o): Add $(bcache_h).
3886 (objfiles_h): Remove $(bcache_h).
3887 (symfile.o): Add $(bcache_h).
3888
3889 * symmisc.c: Update copyright.
3890 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3891 (print_objfile_statistics): Use bcache_memory_used.
3892
3893 * symfile.c: Include "bcache.h".
3894 (reread_symbols): Use bcache_xfree.
3895 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3896 (add_psymbol_to_list): Pass psymbol_cache by value.
3897 (add_psymbol_with_dem_name_to_list): Ditto.
3898
3899 * objfiles.h: Update copyright.
3900 (struct bcache): Declare opaque. Do not include "bcache.h".
3901 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3902 bcache'' pointers.
3903 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3904
3905 * objfiles.c: Include "bcache.h". Update copyright.
3906 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3907 macro_cache.
3908 (free_objfile): Use bcache_xfree.
3909
444199e7
GS
39102002-07-11 Grace Sainsbury <graces@redhat.com>
3911
3912 * monitor.c (monitor_fetch_register): Make name a constant.
3913 (monitor_store_register): Same.
3914
261397f8
DJ
39152002-07-11 Daniel Jacobowitz <drow@mvista.com>
3916
3917 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3918 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3919 (finish_block) For non-function blocks, hash the symbol table. For
3920 function blocks, mark the symbol table as unhashed.
3921 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3922 (msymbol_hash_iw): Likewise.
3923 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3924 value.
3925 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3926 (lookup_minimal_symbol): Likewise for both.
3927 * symtab.h (struct block): Add `hashtable' flag. Comment the
3928 hashtable.
3929 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3930 (ALL_BLOCK_SYMBOLS): Update.
3931 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3932 (struct symbol): Add `hash_next' pointer.
3933 * symtab.c (lookup_block_symbol): Search using the hash table when
3934 possible.
3935 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3936 (search_symbols, find_addr_symbol): Likewise.
3937
3938 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3939 (read_dst_symtab): Likewise.
3940 * jv-lang.c (get_java_class_symtab): Likewise.
3941 * mdebugread.c: Include "gdb_assert.h".
3942 (shrink_block): Assert that the block being modified is not hashed.
3943 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3944 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3945 symbols.
3946 (dump_symtab): Recognize hashed blocks.
3947 * printcmd.c (print_frame_args): Assert that function blocks do not
3948 have hashed symbol tables.
3949 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3950 (fill_in_ada_prototype, debug_print_block): Likewise.
3951 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3952
6f0eaa01
CV
39532002-07-11 Corinna Vinschen <vinschen@redhat.com>
3954
3955 * stack.c (print_frame): Use result of frame_address_in_block()
3956 instead of fi->pc when evaluating symbols.
3957 (backtrace_command_1): Ditto.
3958
a208b0cb
AC
39592002-07-11 Andrew Cagney <cagney@redhat.com>
3960
3961 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3962 Make static.
3963
3964 * arm-tdep.c (arm_register_name): Make return type constant.
3965
a6b6b089
AC
39662002-07-10 Andrew Cagney <ac131313@redhat.com>
3967
5ae5f592
AC
3968 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3969 prototype.
3970 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3971 * s390-tdep.c (s390_fp_regnum): Ditto.
3972 (s390_read_fp): Ditto.
3973 (s390_pop_frame): Ditto.
3974 (_initialize_s390_tdep): Ditto.
3975 * remote.c (get_remote_state): Ditto.
3976 * procfs.c (mappingflags): Ditto.
3977 * memattr.c (_initialize_mem): Ditto.
3978 * mcore-tdep.c (mcore_pop_frame): Ditto.
3979 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3980 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3981 * language.c (set_case_str): Ditto.
3982 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3983 * frv-tdep.c (new_variant): Ditto.
3984 (frv_stopped_data_address): Ditto.
3985 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3986 (context_alloc): Ditto.
3987 (frame_state_alloc): Ditto.
3988 (unwind_tmp_obstack_init): Ditto.
3989 (unwind_tmp_obstack_free): Ditto.
3990 (cfi_read_fp): Ditto.
3991 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3992 (cris_pop_frame): Ditto.
3993 * c-lang.c (scanning_macro_expansion): Ditto.
3994 (finished_macro_expansion): Ditto.
3995 (c_preprocess_and_parse): Ditto.
3996 * gdbarch.sh: Ditto.
3997 * gdbarch.h, gdbarch.c: Regenerate.
3998 * config/mn10200/tm-mn10200.h: Adjust indentation.
3999 * target.c: Adjust indentation.
4000 * symtab.h: Adjust indentation.
4001 * stabsread.h: Adjust indentation.
4002 * remote-es.c: Adjust indentation.
4003 * os9kread.c: Adjust indentation.
4004
40052002-07-10 Andrew Cagney <ac131313@redhat.com>
4006
a6b6b089
AC
4007 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4008 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4009
a1789893
GS
40102002-07-10 Grace Sainsbury <graces@redhat.com>
4011
4012 * NEWS: Mention m68k, mcore multi-arching.
4013 * MAINTAINERS: Change status of m68k, mcore to reflect
4014 multi-arching.
4015
02f0d45d
DJ
40162002-07-10 Daniel Jacobowitz <drow@mvista.com>
4017
4018 * valops.c (find_overload_match): Free oload_syms.
4019
f15f768e
JB
40202002-07-09 Joel Brobecker <brobecker@gnat.com>
4021
4022 Define HAVE_SYS_PROC_H if sys/proc.h exists
4023 * configure.in: Add check for sys/proc.h
4024 * config.in: Regenerate.
4025 * configure: Regenerate.
4026
902a7139
GS
40272002-07-09 Grace Sainsbury <graces@redhat.com>
4028
4029 * config/m68k/tm-m68k.h: Remove macros wrapped in
4030 #if !GDB_MULTI_ARCH.
4031
a534e424
AC
40322002-07-08 Andrew Cagney <ac131313@redhat.com>
4033
4034 * config.in, configure: Regenerate.
4035
9b94f7bf
MK
40362002-07-08 Mark Kettenis <kettenis@gnu.org>
4037
4038 * dwarf2cfi.c: Include "gcore.h".
4039 (execute_stack_op): Fix implementation of the
4040 DW_OP_deref and DW_OP_deref_size operators by letting do their
4041 lookup in the target.
4042
1d34db41
MK
40432002-07-07 Mark Kettenis <kettenis@gnu.org>
4044
4045 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4046 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4047 tdep->sc_sp_offset.
4048
79d5b63a
DJ
40492002-07-05 Daniel Jacobowitz <drow@mvista.com>
4050
4051 Fix PR gdb/595, gdb/602
4052 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4053 Don't call value_cast, just read the vtable pointer; update comments
4054 to match.
4055
3bb912e8
GS
40562002-07-05 Grace Sainsbury <graces@redhat.com>
4057
4058 * config/mcore/tm-mcore.h: Remove file.
4059 * config/mcore/mcore.mt: Remove definition of TM_FILE
4060 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4061
ca39387d
MK
40622002-07-05 Mark Kettenis <kettenis@gnu.org>
4063
4064 * i386bsd-tdep.c: Include "gdb_string.h".
4065
efdc1108
GS
40662002-07-04 Grace Sainsbury <graces@redhat.com>
4067
4068 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4069 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4070 mcore-tdep.
4071 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4072 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4073 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4074 (RETVAL_REGNUM): Move macros from tm-mcore.h
4075 (mcore_reg_struct_has_addr): New function.
4076 (mcore_gdbarch_init): Added initializations for the macros removed
4077 from tm-mcore.h.
4078
bb21884d
MK
40792002-07-04 Mark Kettenis <kettenis@gnu.org>
4080
4081 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4082 traditonal string branding within the ELF header.
4083
228c6d41
DJ
40842002-07-04 Daniel Jacobowitz <drow@mvista.com>
4085
4086 * symtab.c (remove_params): New function.
4087 (make_symbol_overload_list): Use it instead of cplus_demangle.
4088 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4089
2404952e
MK
40902002-07-04 Mark Kettenis <kettenis@gnu.org>
4091
e5e4acad
MK
4092 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4093
baadce09
MK
4094 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4095 New variables.
4096 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4097 and tdep->sigtramp_end.
4098 * i386obsd-nat.c: New file.
4099 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4100
2404952e
MK
4101 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4102 Don't call get_current_frame().
4103
9b4f1ba7
PM
41042002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4105
4106 * i386-nat.c (child_post_startup_inferior): New function
4107 calling i386_cleanup_dregs if
4108 I386_USE_GENERIC_WATCHPOINTS is defined.
4109 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4110 conditional to acknowledge that i386-nat.c has its
4111 own child_post_startup_inferior function.
4112
c0d1d883
MK
41132002-07-04 Mark Kettenis <kettenis@gnu.org>
4114
00f8375e
MK
4115 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4116 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4117 instead of MAX_REGISTER_RAW_SIZE.
4118 (i386_extract_return_value, i386_extract_struct_value_address):
4119 Convert to use regcache.
4120 (i386_gdbarch_init): Set max_register_raw_size and
4121 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4122 Set extract_return_value and extract_struct_value_address instead
4123 of their deprecated variants.
4124
c0d1d883
MK
4125 Convert i386 target to generic dummy frames.
4126 * i386-tdep.c: Include "symfile.h".
4127 (i386_frameless_signal_p): Consider a function to be frameless if
4128 the pc points at the first instruction of the function.
4129 (i386_frame_chain): Handle (generic) call dummies.
4130 (i386_frame_saved_pc): Likewise.
4131 (i386_frame_init_saved_regs): Remove code dealing with call
4132 dummies on the stack.
4133 (i386_push_dummy_frame): Removed.
4134 (i386_call_dummy_words): Removed.
4135 (i386_fix_call_dummy): Removed.
4136 (i386_push_return_address): New function.
4137 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4138 parameter, and don't call get_current_frame.
4139 (i386_pop_frame): New function.
4140 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4141 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4142 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4143 call_dummy_length to 0, set call_dummy_words to NULL, set
4144 sizeof_call_dummy_words to 0, set fix_call_dummy to
4145 generic_fix_call_dummy, set pc_in_call_dummy to
4146 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4147 generic_push_dummy_frame, set push_return_address to
4148 i386_push_return_address and set frame_chain_valid to
4149 generic_file_frame_chain_valid.
4150
049ee0e4
AC
41512002-07-03 Andrew Cagney <ac131313@redhat.com>
4152
4153 * gdbarch.sh (struct regcache): Add opaque declaration.
4154 (EXTRACT_RETURN_VALUE): New architecture method.
4155 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4156 * gdbarch.h, gdbarch.c: Regenerate.
4157 * arch-utils.c (legacy_extract_return_value): New function.
4158 * arch-utils.h (legacy_extract_return_value): Declare.
4159 * values.c (value_being_returned): Re-enable code handling
4160 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4161 deprecated_grub_regcache_for_registers call to block handling
4162 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4163 (EXTRACT_RETURN_VALUE): Do not define.
4164
4e0d9804
GS
41652002-07-03 Grace Sainsbury <graces@redhat.com>
4166
4167 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4168 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4169 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4170 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4171 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4172 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4173 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4174 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4175 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4176 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4177 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4178 argument so the function fits the prototype in the architecture
4179 vector.
4180 (mcore_pop_frame): Remove argument so the function fits the
4181 prototype. Use get_current_frame instead of the argument.
4182 (mcore_push_arguments): Change type of struct_return so the
4183 function can be used in the architecture vector.
4184 (mcore_store_struct_return): Add.
4185 (mcore_frame_init_saved_regs): Add.
4186 (mcore_gdbarch_init): Add function calls to replace the macros
4187 removed from tm-mcore.h
4188
36160dc4
AC
41892002-07-03 Andrew Cagney <ac131313@redhat.com>
4190
4191 * infcmd.c (print_return_value): Remove compatibility code calling
4192 deprecated_grub_regcache_for_registers.
4193
4194 * values.c: Include "regcache.h".
4195 (value_being_returned): Update. Use
4196 deprecated_grub_regcache_for_registers to extract the register
4197 buffer address.
4198 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4199 ``struct regcache''.
4200 * Makefile.in (values.o): Add dependency on $(regcache_h).
4201
4202 * inferior.h (run_stack_dummy): Change type of second parameter to
4203 a ``struct regcache''.
4204 * valops.c (hand_function_call): Change type of retbuf to ``struct
4205 regcache''. Allocate using regcache_xmalloc, clean using
4206 make_cleanup_regcache_xfree.
4207 * infcmd.c (run_stack_dummy): Update. Use
4208 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4209
4210 * regcache.c (do_regcache_xfree): New function.
4211 (make_cleanup_regcache_xfree): New function.
4212 * regcache.h (make_cleanup_regcache_xfree): Declare.
4213
e64d9b3d
MH
42142002-07-03 Martin M. Hunt <hunt@redhat.com>
4215
4dd79c29
MH
4216 * event-top.c (command_line_handler): Don't read past
4217 beginning of buffer.
e64d9b3d 4218
4dd79c29
MH
42192002-07-03 Martin M. Hunt <hunt@redhat.com>
4220
e64d9b3d
MH
4221 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4222 struct frame_id.
4223 (varobj_create): Store frame_id for root.
4224 (varobj_gen_name): Use xasprintf.
4225 (varobj_update): Save and restore frame using get_frame_id() and
4226 frame_find_by_id().
4227 (create_child): Use xasprintf.
4228 (new_root_variable): Initialize frame_id.
4229 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4230 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4231 to prevent memory leak.
4232
26e6c56a
AC
42332002-07-03 Andrew Cagney <ac131313@redhat.com>
4234
4235 * valops.c (hand_function_call): Move declaration of retbuf to
4236 start of function, allocate using malloc, add a cleanup but before
4237 the inf_status cleanup, cleanup the buffer. Rename local variable
4238 old_chain to inf_status_cleanup.
4239
f436dd25
MH
42402002-07-03 Martin M. Hunt <hunt@redhat.com>
4241
4242 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4243
4244 * cli/cli-decode.c (cmd_func_p): New function.
4245 (cmd_func): New function.
4246
4247 * command.h: Add cmd_func() and cmd_func_p().
4248
4cfe2084
GS
42492002-07-03 Grace Sainsbury <graces@redhat.com>
4250
4251 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4252 (REGISTER_SIZE): Remove.
4253 (MAX_REGISTER_RAW_SIZE): Remove.
4254 (REGISTER_VIRTUAL_TYPE): Remove.
4255 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4256 (REGISTER_NAME): Remove.
4257 (USE_GENERIC_DUMMY_FRAMES): Remove.
4258 (CALL_DUMMY): Remove.
4259 (CALL_DUMMY_START_OFFSET): Remove.
4260 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4261 (CALL_DUMMY_LOCATION): Remove.
4262 (FIX_CALL_DUMMY): Remove.
4263 (CALL_DUMMY_ADDRESS): Remove.
4264 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4265 (SAVE_DUMMY_FRAME_TOS): Remove.
4266 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4267 (mcore_register_virtual_type): New function.
4268 (mcore_register_byte): New function.
4269 (mcore_register_size): New function.
4270 (mcore_register_name): New function.
4271 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4272 macros removed from tm-mcore.h.
4273 (mcore_dump_tdep): Add.
4274 (_initialize_mcore_tdep): Add gdbarch_register call.
4275
4fd667e9
MK
42762002-07-03 Mark Kettenis <kettenis@gnu.org>
4277
4278 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4279 frameless_look_for_prologue, such that we actually call this
4280 function.
4281
42f99ac2
JB
42822002-07-02 Joel Brobecker <brobecker@gnat.com>
4283
4284 * frame.h (frame_address_in_block): New function.
4285
4286 * blockframe.c (frame_address_in_block): New function extracted
4287 from get_frame_block().
4288 (get_frame_block): Use frame_address_in_block().
4289 (block_innermost_frame): Use frame_address_in_block() to match
4290 the frame pc address against the block boundaries rather than
4291 the frame pc directly. This prevents a failure when a frame pc
4292 is actually a return-address pointing immediately after the end
4293 of the given block.
4294
103a1597 42952002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4296
4297 * MAINTAINERS: Add self under write after approval.
4298
42992002-07-02 Grace Sainsbury <graces@redhat.com>
4300
103a1597
GS
4301 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4302 used in architecture vector. The default is
4303 m68k_local_breakpoint_from_pc.
4304 (m68k_local_breakpoint_from_pc): Add.
4305 (enum): Add register numbers from tm-m68k.h.
4306 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4307 vector.
4308 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4309 GDB_MULTI_ARCH_PARTIAL.
4310 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4311 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4312 m68k-tdep.c.
4313 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4314 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4315 to enum in m68k-tdep.c
4316
7a5a0534
JB
43172002-07-02 Joel Brobecker <brobecker@gnat.com>
4318
4319 * solib-osf.c (open_map): Compute the list of shared libraries
4320 loaded by the inferior, rather than the list of libraries loaded
4321 by GDB itself. Otherwise, GDB ends up reading the symbols from
4322 the wrong shared libraries...
4323
6f558d74
MK
43242002-07-02 Mark Kettenis <kettenis@gnu.org>
4325
b7d15bf7
MK
4326 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4327 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4328 macros.
4329 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4330 Remove functions.
4331 (FRAMELESS_SIGNAL): Remove function.
4332 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4333 i386_linux_saved_pc_after_call): Removed.
4334 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4335 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4336 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4337
6bff26de
MK
4338 * i386-tdep.c (i386_frameless_signal_p): New function.
4339 (i386_frame_chain): Deal with frameless signals.
4340 (i386_sigtramp_saved_sp): New function.
4341 (i386_frame_saved_pc): Deal with frameless signals.
4342 (i386_saved_pc_after_call): Make sure the correct value is
4343 returned just after entry into a sigtramp.
4344 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4345 i386fbsd4_sc_sp_offset): New variables.
4346 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4347 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4348 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4349 similiar to what we already did for sc_pc_offset.
4350 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4351 tdep->sc_sp_offset.
4352
6f558d74
MK
4353 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4354
145564b7
ML
43552002-07-02 Michal Ludvig <mludvig@suse.cz>
4356
4357 * config/i386/tm-x86-64linux.h: New.
4358 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4359 definitions.
4360 * config/i386/nm-x86-64.h: Rename to ...
4361 * config/i386/nm-x86-64linux.h: ... this one.
4362 * config/i386/x86-64linux.mh: Reflect the above change.
4363
3a1e71e3
MK
43642002-07-01 Mark Kettenis <kettenis@gnu.org>
4365
21d0e8a4
MK
4366 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4367 with sigcontext_addr. Add sc_sp_offset.
4368 (i386bsd_sigtramp_saved_pc): Remove prototype.
4369 (i386bsd_sicontext_addr): Add prototype.
4370 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4371 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4372 (i386_svr4_sigtramp_saved_pc): Removed.
4373 (i386_svr4_sigcontext_addr): New function.
4374 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4375 Initialize tdep->sigcontext_addr instead. Initialize
4376 tdep->sc_pc_offset and tdep->sc_sp_offset.
4377 (i386_gdbarch_init): Likewise.
4378 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4379 any more.
4380 (i386bsd_sigtramp_saved_pc): Remove function.
4381 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4382 Initialize tdep->sigcontext_addr instead. Initialize
4383 tdep->sc_pc_offset.
4384 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4385 of tdep->sigtramp_saved_pc.
4386 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4387 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4388 instead.
4389
3a1e71e3
MK
4390 * i386-tdep.c (i386_frameless_function_invocation,
4391 i386_frame_num_args, i386_frame_init_saved_regs,
4392 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4393 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4394 i386_extract_return_value, i386_store_return_value,
4395 i386_extract_struct_value_address, i386_register_virtual_type,
4396 i386_register_convertible, i386_register_convert_to_virtual,
4397 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4398 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4399 static.
4400
52e9098c
MK
44012002-07-01 Mark Kettenis <kettenis@gnu.org>
4402
77b13a25
MK
4403 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4404
52e9098c
MK
4405 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4406 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4407 this macro. Include "value.h".
4408
1b372fff
AS
44092002-06-30 Aidan Skinner <aidan@velvet.net>
4410
4411 * ada-exp.tab.c: remove as it's a generated file
4412 * ada-lex.c: remove as it's a generated file
4413
9c5045b5
MK
44142002-06-30 Mark Kettenis <kettenis@gnu.org>
4415
4a93c5bb
MK
4416 * config/i386/tm-i386.h (struct frame_info, struct
4417 frame_saved_regs, struct value, struct type): Remove forward
4418 declarations.
4419
322d4fe0
MK
4420 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4421 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4422 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4423 (FILL_FPXREGSET): Define.
4424
fdd8263d
MK
4425 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4426
482e577b
MK
4427 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4428 i[3456]86-*-netbsd* case.
4429 * config/i386/tm-obsd.h: Removed.
4430 * config/i386/obsd.mt: Removed.
4431 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4432 core-aout.o.
4433 (MH_CFLAGS): Add -DYYDEBUG=0.
4434
6916549a
MK
4435 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4436 i386nbsd_sc_pc_offset on OpenBSD too.
4437
9c5045b5
MK
4438 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4439 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4440 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4441 define.
4442 * i386bsd-tdep.c: Include "arch-utils.h".
4443 (i386bsd_aout_in_solib_call_trampoline): New function.
4444 (i386bsd_init_abi): Set in_solib_call_trampoline to
4445 i386bsd_aout_in_solib_call_trampoline.
4446 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4447 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4448
aa84d1bb
AC
44492002-06-28 Andrew Cagney <ac131313@redhat.com>
4450
4451 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4452 (struct obstack, struct bcache): Add opaque declarations.
4453 * Makefile.in (macrotab_h): Update
4454
b4d83933
AC
44552002-06-28 Andrew Cagney <ac131313@redhat.com>
4456
4457 * blockframe.c (generic_find_dummy_frame): Change return type to
4458 ``struct regcache''.
4459 (struct dummy_frame): Replace field ``registers'' with regcache, a
4460 struct regcache object.
4461 (generic_find_dummy_frame): Update.
4462 (generic_push_dummy_frame): Update. Use regcache_xfree,
4463 regcache_xmalloc and regcache_cpy.
4464 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4465 regcache_xfree.
4466 (deprecated_generic_find_dummy_frame): Update.
4467 (generic_read_register_dummy): Update. Use
4468 regcache_read_as_address.
4469 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4470 (generic_get_saved_register): Update. Use regcache_read.
4471
08c0b5bc
AC
44722002-06-28 Andrew Cagney <ac131313@redhat.com>
4473
4474 * Makefile.in (objfiles_h): Add $(bcache_h).
4475 * objfiles.h: Include "bcache.h".
4476
4477 * Makefile.in (symtab_h): Remove $(bcache_h).
4478 * symtab.h: Do not include "bcache.h".
4479
1f89801a
AC
44802002-06-28 Andrew Cagney <ac131313@redhat.com>
4481
4482 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4483 generic_func_frame_chain_valid.
4484
b9644b58
DB
44852002-06-28 David O'Brien <obrien@FreeBSD.org>
4486
4487 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4488 * config/i386/tm-fbsd.h: Likewise.
4489
dd486634
AC
44902002-06-28 Andrew Cagney <ac131313@redhat.com>
4491
4492 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4493 generic_unwind_get_saved_register.
4494
0b434a00
AC
44952002-06-27 Andrew Cagney <ac131313@redhat.com>
4496
4497 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4498 * regcache.c (supply_register): Add missing argument to
4499 register_buffer call.
4500
f30e5a77
AC
45012002-06-27 Andrew Cagney <ac131313@redhat.com>
4502
4503 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4504 Solaris /bin/grep does not not like it. From Peter Schauer.
4505
9f064c95
TT
45062002-06-26 Tom Tromey <tromey@redhat.com>
4507
4508 * command.h (add_setshow_cmd): Declare.
4509 (add_setshow_cmd_full): Declare.
4510 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4511 returns void. Use add_setshow_cmd_full.
4512 (add_setshow_cmd_full): New function.
4513 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4514 (add_setshow_boolean_cmd): Likewise.
4515
099c7589
JT
45162002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4517
4518 * config/vax/tm-vax.h: Protect from multiple inclusion.
4519 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4520 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4521 * config/vax/tm-vaxbsd.h: ...here. New file.
4522 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4523
1d049c5e
JT
45242002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4525
4526 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4527 (BELIEVE_PCC_PROMOTION): Remove.
4528 (AP_REGNUM): Move to...
4529 * config/vax/nm-vax.h: ...here.
4530 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4531 (vax_breakpoint_from_pc): New function.
4532 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4533 and gdbarch_believe_pcc_promotion.
4534
4791e091
JT
45352002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4536
4537 * Makefile.in (vax_tdep_h): Define.
4538 (vax-tdep.o): Use $(vax_tdep_h).
4539 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4540 (vax_dump_tdep): New function.
4541 (_initialize_vax_tdep): Register vax_dump_tdep.
4542 * vax-tdep.h: Include osabi.h.
4543 (struct gdbarch_tdep): New.
4544
da130f98
AC
45452002-06-26 Andrew Cagney <cagney@redhat.com>
4546
4547 * frame.h (deprecated_generic_find_dummy_frame): Rename
4548 generic_find_dummy_frame.
4549 * blockframe.c (generic_find_dummy_frame): Make static.
4550 (deprecated_generic_find_dummy_frame): New function.
4551 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4552 generic_find_dummy_frame with deprecated_find_dummy_frame.
4553 (sh64_nofp_frame_init_saved_regs): Ditto.
4554 (sh_fp_frame_init_saved_regs): Ditto.
4555 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4556 (s390_frame_chain): Ditto.
4557 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4558
6300c360
GS
45592002-06-26 Grace Sainsbury <graces@redhat.com>
4560
4561 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4562 gdbarch vector are at the top.
4563 (NUM_REGS): Remove.
4564 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4565 (FRAME_ARGS_ADDRESS): Remove.
4566 (FRAME_LOCALS_ADDRESS): Remove.
4567 (FRAME_NUM_ARGS): Remove.
4568 (FRAME_ARGS_SKIP): Remove.
4569 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4570 (m68k_gdbarch_init): Add gdbarch initializations for macros
4571 undefined in tm-m68k.h
4572
1c617db8
GS
45732002-06-26 Grace Sainsbury <graces@redhat.com>
4574
4575 * monitor.h: Add the function regname to monitor_ops
4576 structure. This way NUM_REGS does not have to be a constant.
4577 * monitor.c (monitor_fetch_register): Added support for regname
4578 function. The function is called if the array regnames is NULL.
4579 (monitor_store_register): Same.
da130f98
AC
4580 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4581 regnames array.
1c617db8
GS
4582 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4583 cpu32bug_cmds.regname to point to new function.
4584 * abug-rom.c (abug_regname): Same as above.
4585 (init_abug_cmds): Same.
4586 * dbug-rom.c (dbug_regname): Same as above.
4587 (init_dbug_cmds): Same.
4588 * remote-est.c (est_regname): Same.
4589 (init_est_cmds): Same.
4590 * rom68k-rom.c (rom68k_regname): Same.
4591 (init_rom68k_cmds): Same.
4592
ea9365bb
TT
45932002-06-25 Tom Tromey <tromey@redhat.com>
4594
4595 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4596
72cec141
AC
45972002-06-25 Andrew Cagney <cagney@redhat.com>
4598
4599 * infrun.c (stop_registers): Change variable's type to ``struct
4600 regcache'''.
4601 (xmalloc_inferior_status): Delete function.
4602 (free_inferior_status): Delete function.
4603 (normal_stop): Use regcache_cpy.
4604 (struct inferior_status): Change type of fields ``stop_registers''
4605 and ``registers'' to ``struct regcache''.
4606 (write_inferior_status_register): Use regcache_write.
4607 (save_inferior_status): Instead of calling
4608 xmalloc_inferior_status, allocate the inf_status buffer directly.
4609 Use regcache_dup_no_passthrough and regcache_dup to save the
4610 buffers.
4611 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4612 Replace the stop_registers regcache instead of overriding it. Use
4613 regcache_xfree. Instead of calling free_inferior_status, xfree
4614 the buffer directly.
4615 (discard_inferior_status): Use regcache_xfree. Instead of calling
4616 free_inferior_status, xfree the buffer directly.
4617 (build_infrun): Use regcache_xmalloc.
4618 (_initialize_infrun): Delete redundant call to build_infrun.
4619
4620 * Makefile.in (infcmd.o): Add $(regcache_h).
4621
4622 * infcmd.c: Include "regcache.h".
4623 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4624 obtain the address of `stop_registers' register buffer.
4625 (print_return_value): Ditto.
4626
4627 * inferior.h (struct regcache): Add opaque declaration.
4628 (stop_registers): Change variable's declared type to ``struct
4629 regcache''.
4630
defc6f8c
TT
46312002-06-24 Tom Tromey <tromey@redhat.com>
4632
c0e624e7
TT
4633 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4634 * target.c (initialize_targets): Fixed typo in
4635 trust-readonly-sections `show' documentation.
4636
defc6f8c
TT
4637 * main.c: Marked all strings with _().
4638
2b236d82
DH
46392002-06-24 Don Howard <dhoward@redhat.com>
4640
4641 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4642 that means max CORE_ADDR+1.
4643 (lookup_mem_region): Ditto.
4644 (mem_info_command): Ditto.
4645
942dc0e9
GS
46462002-06-24 Grace Sainsbury <graces@redhat.com>
4647
4648 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4649 (REGISTER_BYTES_OK): Remove.
4650 (REGISTER_BYTES): Remove.
4651 (STORE_STRUCT_RETURN): Remove.
4652 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4653 (STORE_RETURN_VALUE): Remove.
4654 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4655 (FRAME_CHAIN): Remove.
4656 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4657 (FRAME_SAVED_PC): Remove.
4658 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4659 (m68k_store_struct_return): Add.
4660 (m68k_deprecated_extract_return_value): Add.
4661 (m68k_deprecated_extract_struct_value_address): Add.
4662 (m68k_store_return_value): Add.
4663 (m68k_frame_chain): Add.
4664 (m68k_frameless_function_invocation): Add.
4665 (m68k_frame_saved_pc): Add.
4666 (m68k_gdbarch_init): added set_gdbarch calls for new
4667 functions and deleted macros.
4668
03c30d4d
TT
46692002-06-23 Tom Tromey <tromey@redhat.com>
4670
4671 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4672 (ALLDEPFILES): Likewise.
4673 (udiheaders): Removed.
4674 (udip2soc.o): Likewise.
4675 (udi2go32.o): Likewise.
4676 (udr.o): Likewise.
4677 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4678
37e71372
AC
46792002-06-22 Andrew Cagney <ac131313@redhat.com>
4680
06a6ac57
AC
4681 * infrun.c (_initialize_infrun): Delete unnecessary call to
4682 build_infrun.
4683
37e71372
AC
4684 * regcache.h: Update comments describing the regcache_cpy family
4685 of functions.
4686 (regcache_save, regcache_restore): Delete declaration.
4687 (regcache_save_no_passthrough): Delete declaration.
4688 (regcache_restore_no_passthrough): Delete declaration.
4689 * regcache.c (regcache_save): Delete function.
4690 (regcache_save_no_passthrough): Delete function.
4691 (regcache_restore): Delete function.
4692 (regcache_restore_no_passthrough): Delete function.
4693
78f6d055
AC
46942002-06-21 Andrew Cagney <ac131313@redhat.com>
4695
4696 * config/m68k/tm-m68k.h: Fix typo.
4697 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4698 (m68k_frame_init_saved_regs): Declare.
4699
78b119cb
JB
47002002-06-21 Jim Blandy <jimb@redhat.com>
4701
4702 Remove some vestiges of Harris 88k support.
4703 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4704 register numbering quirk.
4705 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4706 odd symbols occurring in Harris 88k ELF targets.
4707
0fbb3da7
TT
47082002-06-21 Tom Tromey <tromey@redhat.com>
4709
4710 * gdb_locale.h: New file.
4711 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4712 (defs_h): Added gdb_locale.h.
4713 * configure, config.in: Rebuilt.
4714 * configure.in (PACKAGE): Define.
4715 * defs.h: Include gdb_locale.h.
4716 * main.c (captured_main): Call setlocale, bindtextdomain,
4717 textdomain.
4718
456f8b9d
DB
47192002-06-21 Dave Brolley <brolley@redhat.com>
4720
4721 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4722 * config/frv/frv.mt: New file.
4723 * config/frv/tm-frv.h: New file.
4724 * configure.tgt: Support frv-*-*.
4725 * Makefile.in (frv-tdep.o): New target.
4726 * frv-tdep.c: New file.
4727 * NEWS: Mention frv.
4728
cdd463f9
DB
47292002-06-21 Dave Brolley <brolley@redhat.com>
4730
4731 * MAINTAINERS: Add self to "Write After Approval" list.
4732
5d3ed2e3
GS
47332002-06-21 Grace Sainsbury <graces@redhat.com>
4734
4735 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4736 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4737 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4738 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4739 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4740
4741 * m68k-tdep.c: Include arch-utils.h
4742 (m68k_register_raw_size): Add.
4743 (m68k_register_virtual_size): Add.
4744 (m68k_register_virtual_type): Add.
4745 (m68k_register_name): Add.
4746 (m68k_stack_align): Add.
4747 (m68k_register_byte): Add.
4748 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4749 tm-m68k.h.
4750
7f8e7424
GS
47512002-06-21 Grace Sainsbury <graces@redhat.com>
4752
a2c6a6d5 4753 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4754 m68k_find_saved_regs.
4755 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4756 references to it with frame->saved_regs.
7f8e7424
GS
4757 (m68k_gdbarch_init): Added function calls to initialize the
4758 gdbarch structure.
a2c6a6d5
GS
4759 (m68k_fix_call_dummy): Add.
4760 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4761 (CALL_DUMMY): Remove.
4762 (CALL_DUMMY_LENGTH): Remove.
4763 (CALL_DUMMY_START_OFFSET): Remove.
4764 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4765 (FIX_CALL_DUMMY): Remove.
4766 (PUSH_DUMMY_FRAME): Remove.
4767 (POP_FRAME): Remove.
7f8e7424 4768
f461f5cf
PM
47692002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4770
4771 * parse.c (parse_fprintf): New function used to avoid calls to
4772 fprintf in bison parser generated debug code.
4773 * parser-defs.h: Declaration of new parse_fprintf function.
4774 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4775 Set YYDEBUG to 1 by default.
4776 Set YYFPRINTF as parse_fprintf.
4777
7f0c12ed
ML
47782002-06-21 Michal Ludvig <mludvig@suse.cz>
4779
4780 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4781 encoding anymore.
4782 (pointer_encoding, enum ptr_encoding): New.
4783 (execute_cfa_program): Take care about pointer encoding.
4784 (dwarf2_build_frame_info): Only call parse_frame_info for
4785 .debug_frame and .eh_frame.
4786 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4787 fixed augmentation handling, added relative addressing,
4788 ignore duplicate FDEs. Added comments.
19d833a2 4789 * dwarf2cfi.c: Reindented.
7f0c12ed 4790
87c4a039
EZ
47912002-06-20 Elena Zannoni <ezannoni@redhat.com>
4792
4793 * event-top.c (command_handler): Don't use space_at_cmd_start
4794 unless there is sbrk() on the host. Assign time and space data
4795 to union fields of the appropriate length.
4796
1cf877ad
ML
47972002-06-20 Michal Ludvig <mludvig@suse.cz>
4798
4799 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4800 x86_64_register_name. Return type changed to 'const char *'.
4801 (x86_64_register_name2nr): Rename to x86_64_register_number.
4802 (x86_64_gdbarch_init): Update to reflect the change.
4803 * x86-64-tdep.h: Ditto.
4804 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4805 (supply_fpregset): Ditto.
4806
3fadccb3
AC
48072002-06-19 Andrew Cagney <cagney@redhat.com>
4808
4809 * regcache.h: Update copyright.
4810 (struct regcache, struct gdbarch): Add opaque declarations.
4811 (current_regcache): Declare global variable.
4812 (regcache_read, regcache_write): Add gdbarch parameter.
4813 (regcache_save, regcache_save_no_passthrough)
4814 (regcache_restore, regcache_restore_no_passthrough)
4815 (regcache_dup, regcache_dup_no_passthrough)
4816 (regcache_cpy, regcache_cpy_no_passthrough)
4817 (deprecated_grub_regcache_for_registers)
4818 (deprecated_grub_regcache_for_register_valid)
4819 (regcache_valid_p): Add function declarations.
4820
4821 * regcache.c: Update copyright.
4822 (regcache_descr_handle): New global variable.
4823 (struct regcache_descr): Define.
4824 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4825 (regcache_descr, xfree_regcache_descr): New functions.
4826 (struct regcache): Define.
4827 (regcache_xmalloc, regcache_xfree): New functions.
4828 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4829 (regcache_dup, regcache_dup_no_passthrough): New functions.
4830 (regcache_valid_p, regcache_read_as_address): New functions.
4831 (deprecated_grub_regcache_for_registers): New function.
4832 (deprecated_grub_regcache_for_register_valid): New function.
4833 (current_regcache): New global variable.
4834 (register_buffer): Add regcache parameter. Update calls.
4835 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4836 (read_register_gen, write_register_gen): Update register_buffer
4837 call. Test for legacy_p instead of gdbarch_register_read_p or
4838 gdbarch_register_write_p.
4839 (regcache_collect): Update register_buffer call.
4840 (build_regcache): Rewrite. Use deprecated grub functions.
4841 (regcache_save, regcache_save_no_passthrough): New functions.
4842 (regcache_restore, regcache_restore_no_passthrough): New
4843 functions.
4844 (_initialize_regcache): Create the regcache_data_handle. Swap
4845 current_regcache global variable.
4846
4847 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4848 parameter to regcache_read and regcache_write calls.
4849 (sh4_register_read): Ditto.
4850 (sh64_pseudo_register_read): Ditto.
4851 (sh64_register_read): Ditto.
4852 (sh_pseudo_register_write): Ditto.
4853 (sh4_register_write): Ditto.
4854 (sh64_pseudo_register_write): Ditto.
4855 (sh64_register_write): Ditto.
4856
4857 * defs.h (XCALLOC): Define.
4858
152d9db6
GS
48592002-06-19 Grace Sainsbury <graces@redhat.com>
4860
4861 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4862 * m68k-tdep.c (m68k_gdbarch_init): Added.
4863 (m68k_dump_tdep): Added.
4864
170911c7
DJ
48652002-06-19 Daniel Jacobowitz <drow@mvista.com>
4866
4867 * ada-lang.c (fill_in_ada_prototype): Update comment.
4868
2e4ebe70
DJ
48692002-06-19 Daniel Jacobowitz <drow@mvista.com>
4870
4871 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4872 MIPS_ABI_LAST.
4873 (mips_abi_string, mips_abi_strings): New.
4874 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4875 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4876 tdep->mips_abi_string. Honor mips_abi_string. Default to
4877 O32 if no ABI is found.
4878 (mips_dump_tdep): Use mips_abi_strings.
4879 (mips_abi_update): New function.
4880 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4881 ``set mips abi'' and ``show mips abi''. Check the size of
4882 mips_abi_strings.
4883
16775908
AC
48842002-06-19 Andrew Cagney <cagney@redhat.com>
4885
4886 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4887 constant.
4888
5051bfa4 48892002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4890
5051bfa4
JB
4891 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4892 current frame using only the first stack size adjustment. All
4893 subsequent size adjustments are not considered to be part of
4894 the "static" part of the current frame.
4895 Compute the address of the saved registers relative to the
4896 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4897 in use in this frame.
4898
56468235
DH
48992002-06-18 Don Howard <dhoward@redhat.com>
4900
4901 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4902 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4903 suggesting this solution.
4904
0b624158
AC
49052002-06-18 Andrew Cagney <ac131313@redhat.com>
4906
4907 * config/romp/xm-rtbsd.h: Delete file.
4908 * config/romp/rtbsd.mh: Delete file.
4909
221ea385
KS
49102002-06-18 Keith Seitz <keiths@redhat.com>
4911
4912 * breakpoint.c (condition_command): Post breakpoint_modify
4913 when a condition is added to an existing breakpoint.
4914 (commands_command): Likewise for commands.
4915 (set_ignore_count): Likewise for ignore counts.
4916 If no tty, do not simply return, still need to send event
4917 notification.
4918 (ignore_command): Only print a newline if the command came
4919 from a tty.
4920 Don't call breakpoints_changed, since this is now properly
4921 handled by set_ignore_count.
4922
5402eed1
AC
49232002-06-18 Andrew Cagney <cagney@redhat.com>
4924
4925 * MAINTAINERS: Note that cris-elf target can be compiled with
4926 -Werror.
4927 * cris-tdep.c (cris_register_name): Make return type constant.
4928 (cris_breakpoint_from_pc): Ditto.
4929
cc22880b
ML
49302002-06-18 Michal Ludvig <mludvig@suse.cz>
4931
4932 * frame.h (struct frame_info): Change type of context to
4933 'struct context'.
4934
fa88f677
AC
49352002-06-17 Andrew Cagney <cagney@redhat.com>
4936
4937 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4938 pointer.
4939 * gdbarch.h, gdbarch.c: Regenerate.
4940 * config/mips/tm-mips.h (mips_register_name): Update.
4941 * i386-tdep.h (i386_register_name): Update.
4942 * mips-tdep.c (mips_register_name): Update
4943 * alpha-tdep.c (alpha_register_name): Update.
4944 * arch-utils.c (legacy_register_name): Update.
4945 * arch-utils.h (legacy_register_name): Update.
4946 * avr-tdep.c (avr_register_name): Update.
4947 * ia64-tdep.c (ia64_register_name): Update.
4948 * i386-tdep.c (i386_register_name): Update.
4949 * sparc-tdep.c (sparc32_register_name): Update.
4950 (sparc64_register_name): Update.
4951 (sparclite_register_name): Update.
4952 (sparclet_register_name): Update.
4953 * sh-tdep.c (sh_generic_register_name): Update.
4954 (sh_sh_register_name): Update.
4955 (sh_sh3_register_name): Update.
4956 (sh_sh3e_register_name): Update.
4957 (sh_sh_dsp_register_name): Update.
4958 (sh_sh3_dsp_register_name): Update.
4959 (sh_sh4_register_name): Update.
4960 (sh_sh64_register_name): Update.
4961 * s390-tdep.c (s390_register_name): Update.
4962 * rs6000-tdep.c (rs6000_register_name): Update.
4963 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4964 (ns32k_register_name_32382): Update.
4965 * d10v-tdep.c (d10v_ts2_register_name): Update.
4966 (d10v_ts3_register_name): Update.
4967 * xstormy16-tdep.c (xstormy16_register_name): Update.
4968 * vax-tdep.c (vax_register_name): Update.
4969 * v850-tdep.c (v850_register_name): Update.
4970 * m68hc11-tdep.c (m68hc11_register_name): Update.
4971 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4972 (am33_register_name): Update.
4973
ea1e7ef6
GS
49742002-06-17 Grace Sainsbury <graces@redhat.com>
4975
4976 * m68k-tdep.c: Reindented.
4977
9b02dd1b
AC
49782002-06-17 Andrew Cagney <ac131313@redhat.com>
4979
4980 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4981 list of predefined types.
4982
8758dec1
MK
49832002-06-16 Mark Kettenis <kettenis@gnu.org>
4984
b6197528
MK
4985 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4986 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4987 REGISTER_CONVERT_TO_RAW): Remove defines.
4988 (i386_register_virtual_type, i386_register_convertible,
4989 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4990 Remove prototypes.
4991 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4992 macros mentioned above.
4993
82b47e62
MK
4994 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4995 (i386lynx_saved_pc_after_call): Remove prototype.
4996 * i386ly-tdep.c: Include "i386-tdep.h".
4997 (i386lynx_saved_pc_after_call): Make static. Use
4998 read_memory_nobpt instead of read_memory. Use
4999 read_memory_unsigned_integer instead of read_memory_integer.
5000 (i386lynx_init_abi): New function.
5001 (i386lynx_coff_osabi_sniffer): New function.
5002 (_initialize_i386bsd_tdep): New function.
5003
8758dec1
MK
5004 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5005 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5006 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5007 (i386_fix_call_dummy): Remove prototype.
5008 * i386-tdep.c (i386_call_dummy_words): New variable.
5009 (i386_gdbarch_init): Adjust for removal of the
5010 macros mentioned above.
5011
e9e68a56
AC
50122002-06-15 Andrew Cagney <ac131313@redhat.com>
5013
5014 * command.h (add_setshow_auto_boolean_cmd): Replace
5015 add_set_auto_boolean_cmd.
5016 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5017 add_set_auto_boolean_cmd.
5018 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5019 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5020 mask-address'' command.
5021 (show_mask_address): Add cmd parameter.
5022 * remote.c (add_packet_config_cmd): Update. Change type of
5023 set_func and show_func to cmd_sfunc_ftype.
5024 (_initialize_remote): Update `set remote Z-packet'
5025 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5026 (show_remote_protocol_e_packet_cmd): Ditto.
5027 (show_remote_protocol_E_packet_cmd): Ditto.
5028 (show_remote_protocol_P_packet_cmd): Ditto.
5029 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5030 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5031 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5032 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5033 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5034 (show_remote_protocol_Z_packet_cmd): Ditto.
5035 (show_remote_protocol_binary_download_cmd): Ditto.
5036 (show_remote_cmd): Pass NULL to all of above.
5037
fc08ec52
MK
50382002-06-15 Mark Kettenis <kettenis@gnu.org>
5039
5040 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5041 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5042 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5043 POP_FRAME): Remove defines.
5044 (i386_push_arguments, i386_store_struct_return,
5045 i386_extract_return_value, i386_store_return_value,
5046 i386_extract_struct_value_address, i386_push_dummy_frame,
5047 i386_pop_frame): Renove prototypes.
5048 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5049 macros mentioned above.
5050
e707bbc2
AC
50512002-06-15 Andrew Cagney <ac131313@redhat.com>
5052
5053 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5054 add_set_boolean_cmd.
5055 (add_setshow_cmd): New function.
5056 * command.h (add_setshow_boolean_cmd): Replace
5057 add_set_boolean_cmd.
5058 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5059 and ``set rdiromatzero''.
5060 * maint.c (_initialize_maint_cmds): Update commented out code.
5061 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5062 * target.c (initialize_targets): Update `set
5063 trust-readonly-sections'.
5064 * remote.c (_initialize_remote): Update `set remotebreak'.
5065
42fdc8df
MK
50662002-06-15 Mark Kettenis <kettenis@gnu.org>
5067
93924b6b
MK
5068 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5069 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5070 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5071 fit into multi-arch framework.
5072 (i386_breakpoint_from_pc): New function.
5073 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5074 above.
5075
42fdc8df
MK
5076 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5077 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5078 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5079 (i386_frameless_function_invocation, i386_frame_num_args,
5080 i386_frame_init_saved_regs): Remove prototypes.
5081 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5082 macros mentioned above.
5083
9773a94b
AC
50842002-06-15 Andrew Cagney <ac131313@redhat.com>
5085
5086 * cli/cli-decode.c (set_cmd_cfunc): Update.
5087 (set_cmd_sfunc): Update.
5088 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5089 (set_cmd_sfunc, set_cmd_cfunc): Update.
5090 * cli/cli-decode.h: Update.
5091
6e157172
MK
50922002-06-15 Mark Kettenis <kettenis@gnu.org>
5093
5094 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5095 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5096
7f19b9a2
AC
50972002-06-15 Andrew Cagney <ac131313@redhat.com>
5098
5099 * defs.h (auto_boolean): Declare enum.
5100 * command.h (cmd_auto_boolean): Delete enum.
5101 * mips-tdep.c (mask_address_var): Update.
5102 (mips_mask_address_p): Update.
5103 (show_mask_address): Update.
5104 * remote.c (struct packet_config): Update.
5105 (update_packet_config): Update.
5106 (show_packet_config_cmd): Update.
5107 (packet_ok): Update.
5108 (add_packet_config_cmd): Update.
5109 (_initialize_remote):
5110 * command.h: Update.
5111 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5112 (do_setshow_command): Update.
5113 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5114 * cli/cli-decode.h: Update.
5115
1cf88de5
MK
51162002-06-15 Mark Kettenis <kettenis@gnu.org>
5117
22ba8cf2
MK
5118 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5119 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5120 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5121 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5122 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5123 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5124
762c5349
MK
5125 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5126 list of DJGPP COFF targets.
5127
091198bb
MK
5128 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5129 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5130 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5131 (FP0_REGNUM): Remove define.
5132 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5133 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5134 (i386_register_virtual_size): Remove protoype.
5135 * i386-tdep.c (i386_register_virtual_size): Removed.
5136 (i386_extract_return_value, i386_store_return_value): Use
5137 FP0_REGNUM instead of NUM_FREGS to determine whether the
5138 floating-point registers are available.
5139 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5140 Adjust for removal of macros mentioned above.
5141
51422002-06-15 Mark Kettenis <kettenis@gnu.org>
5143
fcc9bf01
MK
5144 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5145 comments.
5146 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5147 Remove prototypes.
5148 (supply_gregset, fill_gregset): Remove use of register keyword and
5149 remove declaration for regmap. Use I386_NUM_GREGS instead of
5150 NUM_REGS and NUM_FREGS.
5151 (FPREGSET_FSAVE_OFFSET): Remove.
5152 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5153 NUM_FREGS to determine whether the floating-point registers are
5154 available.
5155
65e78234
MK
5156 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5157 gnu_store_registers): Replace usage of NUM_GREGS with
5158 I386_NUM_GREGS.
5159
98df6387
MK
5160 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5161 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5162 usage of NUM_GREGS with I386_NUM_GREGS.
5163
099a9414
MK
5164 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5165
57976e88
MK
5166 * i386bsd-nat.c: Include "i386-tdep.h".
5167 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5168 I386_NUM_GREGS.
5169
b335f4a6
MK
5170 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5171 and associated comment. They no longer make any sense, since we
5172 don't use this file anymore on Linux.
5173
1cf88de5
MK
5174 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5175 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5176 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5177 elements in these arrays.
5178 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5179 MAX_NUM_REGS.
5180
daa66587
MK
51812002-06-15 Mark Kettenis <kettenis@gnu.org>
5182
5183 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5184 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5185
26e9b323
AC
51862002-06-14 Andrew Cagney <cagney@redhat.com>
5187
5188 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5189 EXTRACT_RETURN_VALUE.
5190 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5191 EXTRACT_STRUCT_VALUE_ADDRESS.
5192 * gdbarch.h, gdbarch.c: Regenerate.
5193
5194 * values.c (value_being_returned): Handle
5195 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5196 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5197
5198 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5199 * arm-tdep.c (arm_gdbarch_init): Update.
5200 * avr-tdep.c (avr_gdbarch_init): Update.
5201 * cris-tdep.c (cris_gdbarch_init): Update.
5202 * d10v-tdep.c (d10v_gdbarch_init): Update.
5203 * ia64-tdep.c (ia64_gdbarch_init): Update.
5204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5206 * s390-tdep.c (s390_gdbarch_init): Update.
5207 * sh-tdep.c (sh_gdbarch_init): Update.
5208 * s390-tdep.c (s390_gdbarch_init): Update.
5209 * sparc-tdep.c (sparc_gdbarch_init): Update.
5210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5211 * v850-tdep.c (v850_gdbarch_init): Update.
5212 * vax-tdep.c (vax_gdbarch_init): Update.
5213 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5215
5216 * config/arc/tm-arc.h: Update.
5217 * config/d30v/tm-d30v.h: Update.
5218 * config/fr30/tm-fr30.h: Update.
5219 * config/h8300/tm-h8300.h: Update.
5220 * config/h8500/tm-h8500.h: Update.
5221 * config/i386/tm-i386.h: Update.
5222 * config/i386/tm-ptx.h: Update.
5223 * config/i386/tm-symmetry.h: Update.
5224 * config/i960/tm-i960.h: Update.
5225 * config/m32r/tm-m32r.h: Update.
5226 * config/m68k/tm-delta68.h: Update.
5227 * config/m68k/tm-linux.h: Update.
5228 * config/m68k/tm-m68k.h: Update.
5229 * config/m88k/tm-m88k.h: Update.
5230 * config/mcore/tm-mcore.h: Update.
5231 * config/mips/tm-mips.h: Update.
5232 * config/mn10200/tm-mn10200.h: Update.
5233 * config/pa/tm-hppa.h: Update.
5234 * config/pa/tm-hppa64.h: Update.
5235 * config/sparc/tm-sp64.h: Update.
5236 * config/sparc/tm-sparc.h: Update.
5237 * config/sparc/tm-sparclet.h: Update.
5238 * config/z8k/tm-z8k.h: Update.
5239
5179e78f
AC
52402002-06-14 Andrew Cagney <cagney@redhat.com>
5241
5242 * Makefile.in (i386_linux_tdep_h): Define.
5243 (i386_tdep_h, i387_tdep_h): Define.
5244 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5245 $(i386_tdep_h) and $(i387_tdep_h).
5246 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5247
8201327c
MK
52482002-06-14 Mark Kettenis <kettenis@gnu.org>
5249
edf393ac
MK
5250 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5251 Already covered by the default.
5252
896fb97d
MK
5253 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5254 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5255 (i386_gdbarch_init): Initialize long_double_format and long_double
5256 bit.
5257
8201327c
MK
5258 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5259 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5260 Move these to ...
5261 * config/i386/i386sol2.mh: ... here.
5262 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5263 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5264 (SIGCONTEXT_PC_OFFSET): Remove define.
5265 (IN_SIGTRAMP): Remove define.
5266 * i386-sol2-tdep.c: New file.
5267
5268 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5269 * config/i386/tm-i386nw.h: Removed.
5270
5271 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5272 USE_STRUCT_CONVENTION): Remove defines.
5273 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5274 (get_longjmp_target): Remove prototype.
5275 (IN_SIGTRAMP): Remove define.
5276 (i386bsd_in_sigtramp): Remove prototype.
5277 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5278 function. Update comment accordingly
5279 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5280 (FRAME_SAVED_PC): Remove define.
5281 (i386bsd_frame_saved_pc): Remove prototype.
5282 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5283 GET_LONGJMP_TARGET): Remove defines.
5284 (get_longjmp_target): Remove prototype.
5285 (IN_SIGTRAMP): Remove define.
5286 (i386bsd_in_sigtramp): Remove prototype.
5287 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5288 function. Update comment accordingly
5289 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5290 (FRAME_SAVED_PC): Remove define.
5291 (i386bsd_frame_saved_pc): Remove prototype.
5292 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5293 Remove prototype.
5294 (USE_STRUCT_CONVENTION): Remove prototype.
5295 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5296 declaration.
5297 (_initialize_i386bsd_nat): Revise logic to determine some
5298 constants at compile time when compiling a native GDB. Warn if
5299 things don't match up with what we expect.
5300 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5301 Remove variables.
5302 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5303 to use date stored in `struct gdbarch_tdep'.
5304 (i386bsd_sigcontext_offset): Remove varaible.
5305 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5306 stored in `struct gdbarch_tdep'.
5307 (i386bsd_frame_saved_pc): Make static.
5308 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5309 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5310 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5311 i386fbsd4_sc_pc_offset): New variables.
5312 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5313 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5314 functions.
5315 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5316 functions.
5317 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5318 Modify the value of i386fbsd_sigtramp_start and
5319 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5320 i386fbsd_sigtramp_end.
5321 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5322 function.
5323
5324 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5325 define to i386-linux-tdep.h.
5326 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5327 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5328 defines.
5329 (i386_linux_register_name, i386_linux_register_byte,
5330 i386_linux_register_raw_size): Remove prototypes.
5331 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5332 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5333 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5334 TARGET_WRITE_PC): Remove defines.
5335 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5336 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5337 i386_linux_write_pc): Remove prototypes.
5338 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5339 (get_longjmp_target): Remove prototype.
5340 * i386-linux-tdep.h: New file.
5341 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5342 * i386-linux-tdep.c: Include "i386-tdep.h" and
5343 "i386-linux-tdep.h".
5344 (i386_linux_register_name, i386_linux_register_byte,
5345 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5346 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5347 Make static.
5348 (i386_linux_init_abi): New function.
5349 (_initialize_i386_linux_tdep): New function.
5350
5351 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5352 (i386_saved_pc_after_call): Remove prototype.
5353 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5354 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5355 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5356 (i386_register_name, i386_stab_reg_to_regnum,
5357 i386_dwarf_reg_to_regnum): Remove prototypes.
5358 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5359 SIZEOF_SSE_REGS): Remove defines.
5360 (REGISTER_BYTES): Remove define.
5361 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5362 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5363 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5364 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5365 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5366 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5367 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5368 (get_longjmp_target): Remove prototype.
5369 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5370 (sigtramp_saved_pc): Remove define.
5371 (i386v4_sigtramp_saved_pc): Remove prototype.
5372 * config/i386/tm-go32.h (FRAME_CHAIN,
5373 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5374 (i386go32_frame_saved_pc): Remove prototype.
5375 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5376 (get_longjmp_target): Remove prototype.
5377 * i386-tdep.h: Include "osabi.h".
5378 (enum i386_abi): Removed.
5379 (enum struct_return): New enum.
5380 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5381 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5382 sc_pc_offset members.
5383 (i386_gdbarch_register_os_abi): Remove prototype.
5384 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5385 I386_SSE_NUM_REGS): New defines.
5386 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5387 I386_SSE_SIZEOF_REGS): New defines.
5388 (i386_register_name, i386_register_byte, i386_register_raw_size):
5389 New prototypes.
5390 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5391 (i386bsd_sigtramp_saved_pc): New prototype.
5392 * i386-tdep.c: Don't include "elf-bfd.h".
5393 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5394 i386_frame_chain, i386_saved_pc_after_call): Make static.
5395 (i386_frame_saved_pc): Rewrite to call architecture dependent
5396 function to deal with signal handlers. Make static.
5397 (i386go32_frame_saved_pc): Removed.
5398 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5399 Removed.
5400 (i386_get_longjmp_target): New function.
5401 (default_struct_convention, pcc_struct_convention,
5402 reg_struct_convention, valid_conventions, struct_convention): New
5403 variables.
5404 (i386_use_struct_convention): New function.
5405 (i386v4_sigtramp_saved_pc): Renamed to
5406 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5407 (i386_pc_in_sigtramp): New function.
5408 (i386_abi_names): Removed.
5409 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5410 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5411 Removed.
5412 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5413 i386_gdbarch_register_os_abi): Removed.
5414 (struct i386_abi_handler): Removed.
5415 (i386_abi_handler_list): Removed.
5416 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5417 functions.
5418 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5419 i386_nw_init_abi): New functions.
5420 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5421 Use set_gdbarch_xxx() calls instead of relying on macros for a
5422 number of calls.
5423 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5424 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5425 Register the various architecture variants defined in this file.
5426
ad2f7632
DJ
54272002-06-14 Daniel Jacobowitz <drow@mvista.com>
5428
5429 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5430 (struct main_type): Remove arg_types member. Update comments for
5431 struct field.
5432 (TYPE_ARG_TYPES): Remove.
5433 (TYPE_FN_FIELD_ARGS): Update.
5434 (smash_to_method_type): Update prototype.
5435
5436 * c-typeprint.c (cp_type_print_method_args): Take method type
5437 instead of argument list. Use new argument layout. Simplify.
5438 (c_type_print_args): Use new argument layout. Simplify.
5439 (c_type_print_base): Update call to cp_type_print_method_args.
5440 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5441 argument; use die->type instead. Update call to
5442 smash_to_method_type.
5443 (read_structure_scope): Update call to dwarf2_add_member_fn.
5444 * gdbtypes.c (allocate_stub_method): Update comment.
5445 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5446 Use new argument layout.
5447 (check_stub_method): Use new argument layout. Don't count
5448 void as an argument.
5449 (print_arg_types): Update comments. Use new argument layout.
5450 (recursive_dump_type): Don't print arg_types member.
5451 * hpread.c (hpread_read_struct_type): Use new argument layout.
5452 (fixup_class_method_type): Likewise.
5453 (hpread_type_lookup): Likewise.
5454 * stabsread.c (read_type): Update calls to read_args and
5455 smash_to_method_type.
5456 (read_args): Use new argument layout. Simplify.
5457 * valops.c (typecmp): Use new argument layout. Update parameters
5458 and comments. Simplify.
5459 (hand_function_call): Use new argument layout.
5460 (search_struct_method): Update call to typecmp.
5461 (find_overload_match): Use new argument layout.
5462
6da02953
DJ
54632002-06-13 Daniel Jacobowitz <drow@mvista.com>
5464
5465 * NEWS: Mention multithreaded debug support for gdbserver.
5466
519b2366
DJ
54672002-06-13 Daniel Jacobowitz <drow@mvista.com>
5468
5469 * MAINTAINERS: Mention NEWS.
5470
6c0d6680
DJ
54712002-06-13 Daniel Jacobowitz <drow@mvista.com>
5472
5473 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5474 (struct mips_objfile_private, compare_pdr_entries): New.
5475 (non_heuristic_proc_desc): Read the ".pdr" section if it
5476 is present.
5477
6529d2dd
AC
54782002-06-12 Andrew Cagney <ac131313@redhat.com>
5479
5480 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5481 (arm_debug): New static variable.
5482 (_initialize_arm_tdep): Add ``set debug arm'' command.
5483
26216b98
AC
54842002-06-12 Andrew Cagney <ac131313@redhat.com>
5485
5486 * Makefile.in (sim_arm_h): Define.
5487 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5488 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5489 (arm_register_sim_regno): New function, map an internal REGNUM
5490 onto a simulator register number.
5491 (arm_gdbarch_init): Set register_sim_regno.
5492
814b3ba0
AH
54932002-06-09 Aldy Hernandez <aldyh@redhat.com>
5494
5495 * MAINTAINERS: Add self.
5496
475b0867
JB
54972002-06-11 Jim Blandy <jimb@redhat.com>
5498
919d772c
JB
5499 * source.c (source_info): Mention whether the symtab has
5500 information about preprocessor macros.
5501
475b0867
JB
5502 Call the command `info macro', not `show macro'.
5503 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5504 Fix error message.
5505 (_initialize_macrocmd): Register `info_macro_command' in
5506 `infolist', not `showlist'.
5507
9e364162
DJ
55082002-06-11 Daniel Jacobowitz <drow@mvista.com>
5509
5510 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5511 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5512 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5513 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5514 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5515 unconditionally.
5516 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5517 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5518 (_initialize_mips_tdep): Remove dead code.
5519 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5520 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5521 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5522 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5523 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5524 MIPS_LAST_FP_ARG_REGNUM): Remove.
5525
23aa4c72
ML
55262002-06-11 Michal Ludvig <mludvig@suse.cz>
5527
5528 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5529 (unwind_tmp_obstack_free, parse_frame_info)
5530 (update_context, cfi_read_fp, cfi_write_fp)
5531 (cfi_frame_chain, cfi_init_extra_frame_info)
5532 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5533 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5534
70eb15a4
CV
55352002-06-11 Corinna Vinschen <vinschen@redhat.com>
5536
5537 * v850-tdep.c (v850_type_is_scalar): New function.
5538 (v850_use_struct_convention): Match current gcc implementation
5539 as close as possible.
5540 (v850_push_arguments): Fix stack_offset handling. Don't write
5541 struct_addr into register. This is done by v850_store_struct_return.
5542 (v850_extract_return_value): Care for structs.
5543 (v850_store_return_value): Ditto.
5544 (v850_store_struct_return): Actually write address.
5545
482a4d06
ML
55462002-06-11 Michal Ludvig <mludvig@suse.cz>
5547
5548 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5549 without debug information too.
5550
d855c300
AC
55512002-06-10 Andrew Cagney <ac131313@redhat.com>
5552
5553 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5554 Make multi-arch pure.
5555 * gdbarch.h, gdbarch.c: Re-generate.
5556 * arm-tdep.c (arm_print_float_info): Update.
5557 * arch-utils.h (default_print_float_info): Update.
5558 * arch-utils.c (default_print_float_info): Update.
5559 * infcmd.c (float_info): Update call.
5560
dd12a101
AC
55612002-06-10 Andrew Cagney <ac131313@redhat.com>
5562
5563 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5564 the front of the initialize list.
5565
101dcfbe
AC
55662002-06-10 Andrew Cagney <ac131313@redhat.com>
5567
5568 * infrun.c (struct inferior_status): Replace fields
5569 selected_frame_address and selected_level with field
5570 selected_frame_id.
5571 (save_inferior_status): Update. Use get_frame_id.
5572 (struct restore_selected_frame_args): Delete.
5573 (restore_selected_frame): Update. Use frame_find_by_id.
5574 (restore_inferior_status): Update.
5575
5576 * breakpoint.h (struct breakpoint): Change type of
5577 watchpoint_frame to frame_id.
5578 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5579 call to get_current_frame.
5580 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5581 get_current_frame.
5582 (watchpoint_check): Use frame_find_by_id.
5583
5584 * frame.h (record_selected_frame): Delete declaration.
5585 * stack.c (record_selected_frame): Delete function.
5586
5587 * frame.h (struct frame_id): Define.
5588 (get_frame_id): Declare.
5589 (frame_find_by_id): Declare.
5590 * frame.c (frame_find_by_id): New function.
5591 (get_frame_id): New function.
5592
304270b6
AV
55932002-06-10 Andrey Volkov <avolkov@transas.com>
5594
5595 * ser-e7kpc.c: Fix duplicated define and call of
5596 _initialize_ser_e7000pc
5597
2f2cf184
DJ
55982002-06-09 Daniel Jacobowitz <drow@mvista.com>
5599
5600 * signals/signals.c (target_signal_from_host): Fix #ifdef
5601 SIGRTMIN case.
5602 (do_target_signal_to_host): Likewise.
5603
caaa3122
DJ
56042002-06-09 Daniel Jacobowitz <drow@mvista.com>
5605
5606 * mips-tdep.c (mips_find_abi_section): New function.
5607 (mips_gdbarch_init): Call it.
5608
6ac5df3a
MK
56092002-06-09 Mark Kettenis <kettenis@gnu.org>
5610
5611 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5612 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5613 after Andrew's 2002-06-08 gdbarch change.
5614
82ea117a
MK
56152002-06-09 Mark Kettenis <kettenis@gnu.org>
5616
5617 * i386-linux-nat.c (suppy_gregset): Don't supply
5618 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5619 register cache.
5620 (fill_gregset): Don't fetch it under the same circumstances.
5621
3c25f8c7
AC
56222002-06-09 Andrew Cagney <cagney@redhat.com>
5623
5624 * Makefile.in (callback_h): Define.
5625 (remote_sim_h): Update path to remote-sim.h.
5626 (remote-rdp.o): Add $(callback_h).
5627 (remote-sim.o): Use $(callback_h).
5628 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5629 * remote-rdp.c: Include "gdb/callback.h".
5630
1029b7fa
MK
56312002-06-09 Mark Kettenis <kettenis@gnu.org>
5632
5633 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5634 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5635
616675d3
AC
56362002-06-08 Andrew Cagney <ac131313@redhat.com>
5637
a3efda28
AC
5638 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5639 * rdi-share/serpardr.c: Ditto.
5640 * rdi-share/unixcomm.c: Ditto.
5641 * rdi-share/serdrv.c: Ditto.
5642 * rdi-share/hostchan.h: Ditto.
5643 * rdi-share/hostchan.c: Ditto.
5644 * rdi-share/host.h: Ditto.
5645 * rdi-share/devsw.c: Ditto.
5646
c5f10366
AC
5647 * objfiles.h: Change type of obj_private to void pointer.
5648 * pa64solib.c: Update copyright. Don't include "assert.h", use
5649 strcmp instead of STREQ, use LONGEST, do not use PTR
5650 * somsolib.c: Ditto.
5651
616675d3
AC
5652 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5653 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5654 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5655
e4b415d9
AC
56562002-06-08 Andrew Cagney <ac131313@redhat.com>
5657
5658 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5659 (default_get_saved_register): Delete function.
5660 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5661 generic_unwind_get_saved_register.
5662 * gdbarch.h, gdbarch.c: Re-generate.
5663
ca0d0b52
AC
56642002-06-08 Andrew Cagney <ac131313@redhat.com>
5665
5666 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5667 generic_func_frame_chain_valid.
5668 * gdbarch.h, gdbarch.c: Re-generate.
5669 * blockframe.c (generic_func_frame_chain_valid): Only check
5670 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5671 passing FP to PC_IN_CALL_DUMMY.
5672 Fix PR gdb/360.
5673
76860b5f
AC
56742002-06-08 Andrew Cagney <ac131313@redhat.com>
5675
5676 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5677 (register_gdbarch_data): Initialize init_p.
5678 (gdbarch_data): Initialize data pointer using the init function.
5679 (init_gdbarch_data): Delete function.
5680 (gdbarch_update_p): Update.
5681 (initialize_non_multiarch): Update.
5682 (struct gdbarch): Add field initialized_p.
5683 * gdbarch.h, gdbarch.c: Re-generate.
5684
8dda9770
ML
56852002-06-07 Michal Ludvig <mludvig@suse.cz>
5686
5687 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5688 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5689 better do the things actually here.
5690 * x86-64-tdep.c (x86_64_register_name2nr): New.
5691 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5692 (x86_64_gdbarch_init): Respect the above change.
5693 * x86-64-tdep.h (x86_64_register_name2nr)
5694 (x86_64_register_nr2name): Add prototypes.
5695 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5696
3d79a47c
MS
56972002-06-06 Michael Snyder <msnyder@redhat.com>
5698
7bd91a28
MS
5699 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5700 Delete extra braces and re-indent.
5701 (d10v_store_return_value): Char return values
3d79a47c
MS
5702 must be shifted over by one byte in R0.
5703 (d10v_extract_return_value): Delete extra braces, re-indent.
5704
095a4c96
EZ
57052002-06-06 Elena Zannoni <ezannoni@redhat.com>
5706
5707 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5708 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5709 (d10v_integer_to_address): Rewrite.
5710 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5711 the d10v specific functions which take care of converting to the
5712 correct space.
5713
e8a77ca4
EZ
57142002-06-06 Elena Zannoni <ezannoni@redhat.com>
5715
5716 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5717 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5718
4f2e4a4f
AC
57192002-06-02 Andrew Cagney <ac131313@redhat.com>
5720
5721 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5722 includes.
5723 * config/tm-linux.h: Ditto.
5724 * config/alpha/tm-alphalinux.h: Ditto.
5725 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5726 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5727 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5728 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5729 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5730 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5731 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5732 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5733 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5734 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5735 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5736 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5737 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5738 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5739 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5740 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5741 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5742 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5743 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5744 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5745 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5746 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5747 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5748 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5749 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5750 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5751 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5752 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5753 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5754 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5755 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5756 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5757 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5758 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5759 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5760 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5761 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5762
ae2ab2ce
AS
57632002-05-04 Aidan Skinner <aidan@velvet.net>
5764
5765 * ada-exp.tab.c: New file
5766 * ada-exp.y: New file
5767 * ada-lang.c: New file
5768 * ada-lang.h: New file
5769 * ada-lex.c: New file
5770 * ada-lex.l: New file
5771 * ada-tasks.c: New file
5772 * ada-typeprint.c: New file
5773 * ada-valprint.c: New file
5774
0ddd0135
JT
57752002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5776
5777 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5778 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5779
750fbacc
JT
57802002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5781
5782 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5783 insetead of ppc-linux-tdep.o.
5784 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5785 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5786
df94e18a
AC
57872002-06-02 Andrew Cagney <ac131313@redhat.com>
5788
5789 2002-05-07 Christian Groessler <chris@groessler.org>
5790 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5791 bit register contents for little endian hosts.
5792
1a38ab75
AC
57932002-06-01 Andrew Cagney <ac131313@redhat.com>
5794
5795 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5796 any maintainer.
5797
8b1632ac
AC
57982002-06-01 Andrew Cagney <ac131313@redhat.com>
5799
5800 * gdbarch.h: Regenerate.
5801
627054c8
AC
58022002-06-01 Andrew Cagney <ac131313@redhat.com>
5803
5804 * MAINTAINERS: Add everyone to write-after-approval list.
5805
4f460812
AC
58062002-06-01 Andrew Cagney <ac131313@redhat.com>
5807
5808 * stack.c (frame_info): Use frame_register_unwind instead of
5809 saved_regs. Mention when the SP is on the stack or in a register.
5810
5811 * frame.h (frame_register_unwind_ftype): Define. Document.
5812 (struct frame_info): Add field register_unwind and
5813 register_unwind_cache.
5814 (frame_register_unwind): Declare.
5815 (generic_unwind_get_saved_register): Declare.
5816
5817 * frame.c (frame_register_unwind): New function.
5818 (generic_unwind_get_saved_register): New function.
5819
5820 * blockframe.c (generic_call_dummy_register_unwind): New function.
5821 (frame_saved_regs_register_unwind): New function.
5822 (set_unwind_by_pc): New function.
5823 (create_new_frame): New function.
5824 (get_prev_frame): New function.
5825
de888f76
AC
58262002-05-30 Andrew Cagney <ac131313@redhat.com>
5827
5828 * a29k-share/: Delete directory.
5829 * remote-vx29k.c: Delete file.
5830
2f2c3626
JT
58312002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5832
5833 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5834 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5835
9ce5c36a
JT
58362002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5837
5838 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5839 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5840 (sparc64nbsd-nat.o)
5841 (sparcnbsd-nat.o)
5842 (sparcnbsd-tdep.o): New dependency lists.
5843 * NEWS: Note new UltraSPARC NetBSD native configuration.
5844 * configure.host (sparc64-*-netbsd*): New host.
5845 * configure.tgt (sparc-*-netbsdelf*)
5846 (sparc-*-netbsd*): Set gdb_target to nbsd.
5847 (sparc64-*-netbsd*): New target.
5848 * sparc64nbsd-nat.c: New file.
5849 * sparcnbsd-nat.c: New file.
5850 * sparcnbsd-tdep.c: New file.
5851 * sparcnbsd-tdep.h: New file.
5852 * config/sparc/nbsd.mt: New file.
5853 * config/sparc/nbsd64.mh: New file.
5854 * config/sparc/nbsd64.mt: New file.
5855 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5856 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5857 (HOST_IPC): Remove.
5858 * config/sparc/nbsdaout.mt: Remove.
5859 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5860 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5861 (HOST_IPC): Remove.
5862 * config/sparc/nbsdelf.mt: Remove.
5863 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5864 sparc-nat.c compatiblity defines.
5865 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5866 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5867 * config/sparc/tm-nbsd64.h: New file.
5868 * config/sparc/tm-nbsdaout.h: Remove.
5869 * config/sparc/xm-nbsd.h: Remove.
5870
ef3cf062
JT
58712002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5872
5873 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5874 * sparc-tdep.c: Include osabi.h.
5875 (gdbarch_tdep): Add osabi member.
5876 (_initialize_sparc_tdep): Use gdbarch_register.
5877 (sparc_gdbarch_init): Use generic OS ABI framework.
5878 (sparc_dump_tdep): New function.
5879
ee8ff470
KB
58802002-05-30 Kevin Buettner <kevinb@redhat.com>
5881
5882 * corefile.c (do_captured_read_memory_integer): Return non-zero
5883 result.
5884 (safe_read_memory_integer): Copy result of memory read when
5885 status is non-zero. Also, add comments.
5886
7b112f9c
JT
58872002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5888
5889 * Makefile.in (ppc_tdep_h): Define.
5890 (ppc-linux-nat.o)
5891 (ppc-linux-tdep.o)
5892 (rs6000-tdep.o): Use $(ppc_tdep_h).
5893 (ppc-sysv-tdep.o)
5894 (ppcnbsd-nat.o)
5895 (ppcnbsd-tdep.o): New dependency lists.
5896 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5897 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5898 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5899 (ppc_sysv_abi_broken_use_struct_convention)
5900 (ppc_sysv_abi_use_struct_convention)
5901 (ppc_sysv_abi_push_arguments): Move to...
5902 * ppc-sysv-tdep.c: ...here.
5903 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5904 * rs6000-tdep.c (process_note_abi_tag_sections)
5905 (get_elfosabi): Remove.
5906 (rs6000_gdbarch_init): Use generic OS ABI framework.
5907 (rs6000_dump_tdep): New function.
5908 (_initialize_rs6000_tdep): Use gdbarch_register.
5909 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5910 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5911 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5912 of ppc-linux-tdep.o.
5913 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5914 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5915 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5916 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5917 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5918 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5919
480dd42a
JB
59202002-05-29 Jim Blandy <jimb@redhat.com>
5921
5922 * macroscope.c (default_macro_scope): Put `void' in empty argument
5923 list.
5924
4182591f
AC
59252002-05-29 Andrew Cagney <ac131313@redhat.com>
5926
5927 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5928 * arch-utils.c: Include "sim-regno.h".
5929 * gdbarch.sh: Don't include "sim-regno.h".
5930 * gdbarch.h, gdbarch.c: Regenerate.
5931 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5932 here.
5933 * arch-utils.h (legacy_register_sim_regno): To here.
5934 * remote-sim.c (legacy_register_sim_regno): Move function from
5935 here.
5936 * arch-utils.c (legacy_register_sim_regno): To here.
5937
8238d0bf
AC
59382002-05-28 Andrew Cagney <ac131313@redhat.com>
5939
5940 * sim-regno.h: New file.
5941 * Makefile.in (sim_regno_h): Define.
5942 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5943 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5944 (legacy_register_sim_regno): New function.
5945 (one2one_register_sim_regno): New function.
5946 (gdbsim_fetch_register): Rewrite.
5947 (gdbsim_store_register): Only store a register when
5948 REGISTER_SIM_REGNO is valid.
5949 * d10v-tdep.c: Include "sim-regno.h".
5950 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5951 (d10v_ts3_register_sim_regno): Ditto.
5952 * gdbarch.sh: Include "sim-regno.h".
5953 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5954 * gdbarch.h, gdbarch.c: Regenerate.
5955 * arch-utils.h (default_register_sim_regno): Delete declaration.
5956 * arch-utils.c (default_register_sim_regno): Delete function.
5957
485721b1
JT
59582002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5959
5960 * ppcnbsd-nat.c: Rewrite.
5961 * ppcnbsd-tdep.c: New file.
5962 * ppcnbsd-tdep.h: New file.
5963 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5964 solib.o, and solib-svr4.o.
5965 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5966 nbsd-tdep.o, and corelow.o.
5967
697f244d
AC
59682002-05-28 Andrew Cagney <ac131313@redhat.com>
5969
5970 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5971 `tr' and `sed'. Mention that `broken' targets are not expected to
5972 build.
5973
f08caad1 59742002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5975
5976 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5977 Let PC point right after the prologue before looking up symbols.
5978
3139facc
MH
59792002-05-27 Martin M. Hunt <hunt@redhat.com>
5980
5981 * i386-tdep.c (i386_register_virtual_type): Return
5982 builtin_type_vec128i for SSE registers.
5983
5984 * gdbtypes.h (builtin_type_vec128i): Declare.
5985
5986 * gdbtypes.c (build_builtin_type_vec128i): New function.
5987 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5988 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5989 (build_gdbtypes): Initialize new builtin vector types.
5990 (_initialize_gdbtypes): Register new vector types with gdbarch.
5991
6e3ba3b8
JT
59922002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5993
5994 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5995 since it has been multi-arch'd.
5996 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5997 Move Alpha and VAX multi-arch news entries to same section
5998 as other multi-arch news.
5999
93d5585d
JT
60002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6001
6002 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6003 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6004 static. Rename some register numbers to put them in ns32k-tdep
6005 private namespace.
6006 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6007 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6008 functions.
6009 (_initialize_ns32k_tdep): Use gdbarch_register.
6010 * ns32k-tdep.h: New file.
6011 * ns32knbsd-tdep.c: New file.
6012 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6013 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6014 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6015 REGISTER_BYTES, REGISTER_BYTE): Remove.
6016 * config/ns32k/tm-ns32k.h: New file.
6017 * config/ns32k/tm-umax.h: Remove.
6018
efb2c70e
JT
60192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6020
6021 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6022 ns32k_store_struct_return, ns32k_extract_return_value,
6023 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6024 functions.
6025 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6026 ns32k_saved_pc_after_call.
6027 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6028 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6029 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6030 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6031 ns32k_extract_struct_value_address.
6032
7bcc927b
JT
60332002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6034
6035 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6036 ns32k_fix_call_dummy): New.
6037 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6038 ns32k_call_dummy_words.
6039 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6040 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6041 CALL_DUMMY_NARGS): Remove.
6042 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6043
78f9d765
JT
60442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6045
6046 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6047 ns32k_frame_saved_pc, ns32k_frame_args_address,
6048 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6049 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6050 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6051 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6052 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6053 (BREAKPOINT): Remove..
6054 (FRAME_CHAIN): Define as ns32k_frame_chain.
6055 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6056 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6057 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6058 (FRAME_FIND_SAVED_REGS): Remove.
6059 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6060 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6061 (POP_FRAME): Define as ns32k_pop_frame.
6062
f2c762e0
JT
60632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6064
6065 * ns32k-tdep.c (ns32k_register_byte_32082,
6066 ns32k_register_byte_32382, ns32k_register_raw_size,
6067 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6068 functions.
6069 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6070 ns32k_register_byte_32382.
6071 * config/ns32k/tm-umax.h: Update copyright years.
6072 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6073 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6074 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6075 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6076 (ns32k_get_enter_addr): Fix prototype.
6077
af137673
JT
60782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6079
6080 * ns32k-tdep.c: Update copyright years.
6081 (ns32k_register_name_32082): New function.
6082 (ns32k_register_name_32382): Ditto.
6083 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6084 (REGISTER_NAME): Define as ns32k_register_name_32382.
6085 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6086 (REGISTER_NAME): Define as ns32k_register_name_32082.
6087
a8bc7b56
JB
60882002-05-24 Jim Blandy <jimb@redhat.com>
6089
6090 * dwarf2read.c (free_line_header): Use xfree, not free.
6091
83a45910
JT
60922002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6093
6094 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6095 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6096
0db71247
AC
60972002-05-23 Andrew Cagney <ac131313@redhat.com>
6098
6099 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6100
b9e5e4dd
AC
61012002-05-23 Andrew Cagney <ac131313@redhat.com>
6102
6103 From Ross Alexander at NEC Europe:
6104 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6105
de530e84
MS
61062002-05-23 Michael Snyder <msnyder@redhat.com>
6107
6108 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6109 for input, rather than parse_and_eval_address.
6110
b91b96f4
AC
61112002-05-23 Andrew Cagney <ac131313@redhat.com>
6112
6113 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6114 * Makefile.in (sim_d10v_h): Update definition.
6115
8b279e7a
AC
61162002-05-24 Andrew Cagney <cagney@redhat.com>
6117
6118 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6119 change `2002-05-22 Michael Snyder' below.
6120 (d10v_push_arguments): Ditto.
6121 (d10v_extract_return_value): Ditto.
6122
0a3d0425
JB
61232002-05-23 Jim Blandy <jimb@redhat.com>
6124
6125 * macrotab.c (check_for_redefinition): Don't complain if the new
6126 definition is the same as the previous one. Take more arguments
6127 to allow the comparison.
6128 (macro_define_object, macro_define_function): Pass more arguments
6129 to check_for_redefinition.
6130
78eac43e
MS
61312002-05-22 Michael Snyder <msnyder@redhat.com>
6132
6133 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6134 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6135 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6136 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6137 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6138 Add a temp variable to save a call (and a memory read).
6139 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6140 if possible (so that PC_IN_CALL_DUMMY will work).
6141
9bc1edb8
CV
61422002-05-22 Corinna Vinschen <vinschen@redhat.com>
6143
6144 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6145
005ef3d2
ML
61462002-05-22 Michal Ludvig <mludvig@suse.cz>
6147
6148 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6149 fde->cie_ptr.
6150 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6151 (dwarf2_build_frame_info): Add offset to fde->initial_location
6152 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6153 (execute_stack_op): Change type of 'result' from ULONGEST to
6154 CORE_ADDR.
005ef3d2 6155
fcf4f891
JT
61562002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * config/alpha/tm-nbsd.h: Include solib.h.
6159
cfef91e4
JT
61602002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6161
6162 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6163 assumptions about the host's byte order.
6164
9964235a
JT
61652002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6166
6167 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6168 to dependency list.
6169 * alphanbsd-tdep.c: Include solib-svr4.h.
6170 * shnbsd-tdep.c: Ditto.
6171
9eeef8ef
JT
61722002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6175 nbsd-tdep.h to dependency list.
6176 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6177 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6178 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6179 nbsdaout.mh and nbsdelf.mh consistently.
6180 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6181 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6182 nbsdaout.mt and nbsdelf.mh consistently.
6183 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6184 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6185 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6186 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6187 a.out shared library stuff from here...
6188 * config/nm-nbsdaout.h: ...to here.
6189 * config/tm-nbsd.h: Remove.
6190 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6191 * config/arm/nbsd.mh: Remove.
6192 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6193 nbsd-tdep.o.
6194 * config/arm/nbsdaout.mh: New file.
6195 * config/arm/nbsdelf.mh: New file.
6196 * config/arm/nm-nbsdaout.h: New file.
6197 * config/i386/nbsd.mh: Remove.
6198 * config/i386/nbsd.mt: Remove.
6199 * config/i386/nbsdaout.mh: New file.
6200 * config/i386/nbsdaout.mt: New file.
6201 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6202 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6203 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6204 i386_register_u_addr): Remove.
6205 * config/i386/nm-nbsdaout.h: New file.
6206 * config/i386/nm-nbsdelf.h: Remove.
6207 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6208 (USE_STRUCT_CONVENTION): Remove.
6209 * config/i386/tm-nbsdaout.h: New file.
6210 * config/i386/tm-nbsdelf.h: Remove.
6211 * config/m68k/nbsd.mh: Remove.
6212 * config/m68k/nbsd.mt: Remove.
6213 * config/m68k/nbsdaout.mh: New file.
6214 * config/m68k/nbsdaout.mt: New file.
6215 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6216 * config/m68k/nm-nbsdaout.h: New file.
6217 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6218 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6219 * config/ns32k/nbsd.mh: Remove.
6220 * config/ns32k/nbsd.mt: Remove.
6221 * config/ns32k/nbsdaout.mh: New file.
6222 * config/ns32k/nbsdaout.mt: New file.
6223 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6224 * config/ns32k/nm-nbsdaout.h: New file.
6225 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6226 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6227 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6228 (SVR4_SHARED_LIBS): Remove.
6229 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6230 * config/sparc/nbsd.mh: Remove.
6231 * config/sparc/nbsd.mt: Remove.
6232 * config/sparc/nbsdaout.mh: New file.
6233 * config/sparc/nbsdaout.mt: New file.
6234 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6235 * config/sparc/nbsdelf.mt: New file.
6236 * config/sparc/nm-nbsdaout.h: New file.
6237 * config/sparc/nm-nbsdelf.h: Remove.
6238 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6239 * config/sparc/tm-nbsdaout.h: New file.
6240
257ce470
JT
62412002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6242
6243 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6244 mipsnbsd-tdep.c
6245 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6246
76a6d5fe
JT
62472002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6250 shnbsd-nat.c.
6251 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6252
45888261
JT
62532002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * NEWS: Note new MIPS NetBSD native configuration.
6256 * configure.host (mips*-*-netbsd*): New host.
6257 * configure.tgt (mips*-*-netbsd*): New target.
6258 * mipsnbsd-nat.c: New file.
6259 * mipsnbsd-tdep.c: New file.
6260 * mipsnbsd-tdep.h: New file.
6261 * config/mips/nbsd.mh: New file.
6262 * config/mips/nbsd.mt: New file.
6263 * config/mips/nm-nbsd.h: New file.
6264 * config/mips/tm-nbsd.h: New file.
6265
70f80edf
JT
62662002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6267
6268 * Makefile.in (SFILES): Add osabi.c.
6269 (COMMON_OBS): Add osabi.o.
6270 (osabi.o): New dependency list.
6271 * osabi.c: New file.
6272 * osabi.h: New file.
6273 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6274
6275 * Makefile.in (alpha_tdep_h): Define and use instead of
6276 alpha-tdep.h.
6277 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6278 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6279 Remove.
6280 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6281 * alpha-tdep.h: Include osabi.h.
6282 (alpha_abi): Remove.
6283 (gdbarch_tdep): Use generic OS ABI framework.
6284 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6285 gdbarch_register_osabi.
6286 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6287 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6288 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6289
6290 * Makefile.in (sh_tdep_h): Add osabi.h.
6291 * sh-tdep.h (sh_osabi): Remove.
6292 (gdbarch_tdep): Use generic OS ABI framework.
6293 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6294 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6295 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6296 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6297
6298 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6299 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6300 gdbarch_register_osabi.
6301 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6302 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6303 (get_elfosabi): Rename to...
6304 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6305 ABI framework support routines.
6306 (arm_gdbarch_init): Use generic OS ABI framework.
6307 (arm_dump_tdep): Likewise.
6308 (_initialize_arm_tdep): Likewise.
6309 * arm-tdep.h: Include osabi.h.
6310 (arm_abi): Remove.
6311 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6312 osabi member.
6313 (arm_gdbarch_register_os_abi): Remove prototype.
6314 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6315 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6316
6317 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6318 * mips-tdep.c: Include osabi.h.
6319 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6320 OS ABI framework.
6321
d194345b
KH
63222002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6323
6324 * h8300-tdep.c: Fix formatting.
6325
70c6b0d1
EZ
63262002-05-20 Elena Zannoni <ezannoni@redhat.com>
6327
6328 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6329 printing vector registers.
6330
165b8e33
AC
63312002-05-19 Andrew Cagney <ac131313@redhat.com>
6332
6333 From Fernando Nasser:
6334 * remote.c (remote_async_open_1): Re-throw the exception when the
6335 connection fails.
6336 (remote_cisco_open): Ditto.
6337 (remote_open_1): Ditto.
6338
36918e70
AC
63392002-05-19 Andrew Cagney <ac131313@redhat.com>
6340
6341 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6342 (remote_start_remote): Add uiout parameter. Pass through to
6343 remote_start_remote_dummy.
6344 (remote_open_1): Use catch_exception instead of catch_errors.
6345 (remote_async_open_1): Ditto.
6346 (remote_cisco_open): Ditto.
6347
ae44c0c4
AC
63482002-05-19 Andrew Cagney <ac131313@redhat.com>
6349
6350 * remote.c (remote_start_remote): Replace PTR with void pointer.
6351 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6352 static.
6353
8efe637d
AC
63542002-05-18 Andrew Cagney <ac131313@redhat.com>
6355
6356 * gdb_indent.sh: Allow the script to be run in the sim directory.
6357
2f1b5984
MK
63582002-05-18 Mark Kettenis <kettenis@gnu.org>
6359
f0f625e2
MK
6360 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6361 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6362
2f1b5984
MK
6363 * corelow.c (core_open): Only call set_gdbarch_from_file if
6364 exec_bfd is NULL.
6365
fc974602
AV
63662002-05-17 Andrey Volkov <avolkov@transas.com>
6367
6368 * h8300-tdep.c: Add support of EXR register
6369 * config/h8300/tm-h8300.h: Ditto.
6370
906709f4
AV
63712002-05-17 Andrey Volkov <avolkov@transas.com>
6372
6373 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6374
6e591d68
AV
63752002-05-17 Andrey Volkov <avolkov@transas.com>
6376
6377 * h8300-tdep.c: Change literal regnums to REGNO.
6378
84f0252a
JB
63792002-05-17 Jim Blandy <jimb@redhat.com>
6380
e0e9281e
JB
6381 * NEWS: Note addition of macro support.
6382
84f0252a
JB
6383 Expand preprocessor macros in C expressions.
6384 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6385 (scan_macro_expansion, scanning_macro_expansion,
6386 finished_macro_expansion): New function declarations.
6387 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6388 variable declarations.
6389 * parser-defs.h (expression_context_pc): New declaration.
6390 * parse.c (expression_context_pc): New variable.
6391 (parse_exp_1): Set expression_context_pc, as well as
6392 expression_context_block.
6393 * c-exp.y (yylex): If we're not already reading the result of a
6394 macro expansion, try to macro-expand the next token. When we're
6395 done scanning a macro expansion, switch back to the mainline text.
6396 Commas and `if's in a macro's expansion don't terminate the input.
6397 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6398 (macro_original_text, macro_expanded_text,
6399 expression_macro_lookup_func, expression_macro_lookup_baton): New
6400 variables.
6401 (scan_macro_expansion, scanning_macro_expansion,
6402 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6403 c_preprocess_and_parse): New functions.
6404 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6405 c_preprocess_and_parse, instead of c_parse.
6406 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6407 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6408
1c509ca8
JR
6409Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6410
6411 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6412 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6413 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6414
2250ee0c
CV
64152002-05-17 Corinna Vinschen <vinschen@redhat.com>
6416
6417 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6418
ab3b8126
JT
64192002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * Makefile.in (sh_tdep_h): Define and use.
6422 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6423 register enum): Move to...
6424 * * sh-tdep.h: ...here.
6425 * sh-tdep.c: Include sh-tdep.h.
6426 * sh3-rom.c: Likewise.
6427 * shnbsd-tdep.c: Likewise.
6428
ed9d4749
MS
64292002-05-16 Michael Snyder <msnyder@redhat.com>
6430
6431 * arm-tdep.c: Spelling fix in comment.
6432
2e276125
JB
64332002-05-16 Jim Blandy <jimb@redhat.com>
6434
6821892e
JB
6435 Add commands for manually expanding macros and showing their
6436 definitions.
6437 * macrocmd.c, macroscope.c, macroscope.h: New files.
6438 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6439 (macroscope_h): New variable.
6440 (HFILES_NO_SRCDIR): Add macroscope.h.
6441 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6442 (macroscope.o, macrocmd.o): New rules.
6443
2e276125
JB
6444 Teach the Dwarf 2 reader to read macro information.
6445 * dwarf2read.c: #include "macrotab.h".
6446 (dwarf_macinfo_buffer): New variable.
6447 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6448 dwarf_macinfo_size.
6449 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6450 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6451 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6452 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6453 dwarf2_macro_spaces_in_definition): New complaints.
6454 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6455 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6456 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6457 the partial symbol table.
6458 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6459 from what's recorded in the partial symbol table.
6460 (read_file_scope): If the compilation unit has a
6461 `DW_AT_macro_info' attribute, read its macro information.
6462 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6463
2f53fe6c
DJ
64642002-05-16 Daniel Jacobowitz <drow@mvista.com>
6465
6466 Fix PR gdb/546
6467 * ser-tcp.c: Don't include <netinet/udp.h>.
6468
2be99286
SC
64692002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6470
6471 * MAINTAINERS: Update my email address.
6472
c9af212b 64732002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6474
6475 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6476 include file of the same name.
6477
bf5f1a52
CV
64782002-05-16 Corinna Vinschen <vinschen@redhat.com>
6479
6480 * configure.tgt: Mark v850 as multi-arched.
6481 * config/v850/tm-v850.h: Remove file.
6482 * config/v850/v850.mt: Eliminate TM_FILE.
6483
435e042a
CV
64842002-05-16 Corinna Vinschen <vinschen@redhat.com>
6485
6486 * v850-tdep.c: Full multi-arch.
6487 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6488 Define GDB_MULTI_ARCH to 2.
6489
9819c6c8
PM
64902002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6491
6492 * p-exp.y (current_type): New static variable.
6493 Carries the type of the expression at the position that is parsed.
6494 (push_current_type, pop_current_type): Two new functions. Used
6495 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6496 (search_field): New static variable. Set to one after parsing a point
6497 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6498 (FIELDNAME): New token. After a point only a token belonging to
6499 current_type type definition is allowed.
6500 (all over token rules): reset and change current_type according
6501 to rules.
6502 (exp '[' rule): insert implicit array index field if
6503 exp is a pascal string type.
6504
3a06899a
CV
65052002-05-16 Corinna Vinschen <vinschen@redhat.com>
6506
6507 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6508 frame info. Use frame_info's saved_regs instead of matching member
6509 in extra_frame_info throughout.
6510 (v850_frame_init_saved_regs): New function.
6511 (v850_init_extra_frame_info): Move most functionality into
6512 v850_frame_init_saved_regs().
6513 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6514 (v850_frame_find_saved_regs): Remove declaration.
6515 (FRAME_FIND_SAVED_REGS): Remove definition.
6516 (v850_frame_init_saved_regs): Add declaration.
6517 (FRAME_INIT_SAVED_REGS): Add definition.
6518
6ed14b0e
CV
65192002-05-16 Corinna Vinschen <vinschen@redhat.com>
6520
6521 * v850-tdep.c: Begin multi-arch'ing v850.
6522 (v850_target_architecture_hook): Remove function.
6523 (v850_gdbarch_init): New function. Add code previously in
6524 v850_target_architecture_hook().
6525 (_initialize_v850_tdep): Don't set target_architecture_hook.
6526 Call register_gdbarch_init() instead.
6527
42725910
DJ
65282002-05-16 Daniel Jacobowitz <drow@mvista.com>
6529
6530 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6531 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6532 (fixup_class_method_type): Likewise.
6533
99d9066e
JB
65342002-05-15 Jim Blandy <jimb@redhat.com>
6535
6536 Add macro structures to GDB's symbol tables. Nobody puts anything
6537 in them yet.
6538 * symtab.h (struct symtab): New member: `macro_table'.
6539 * buildsym.h (pending_macros): New global variable.
6540 * buildsym.c: #include "macrotab.h".
6541 (buildsym_init): Initialize `pending_macros'.
6542 (end_symtab): If we found macro information while reading a CU's
6543 debugging info, do build a symtab structure for it. Make the
6544 symtab point to the macro information, and clear the
6545 `pending_macros' pointer which held it while we were reading the
6546 debug info.
6547 (really_free_pendings): Free any pending macro table.
6548 * objfiles.h (struct objfile): New member: `macro_cache'.
6549 * objfiles.c (allocate_objfile): Set allocate and free functions
6550 for the macro cache's objstack.
6551 (free_objfile): Empty the macro cache's obstack.
6552 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6553 set new allocate and free functions for it.
6554 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6555 free functions for the macro cache's objstack. (Why is this
6556 function building its own objfile?)
6557 * symmisc.c (print_objfile_statistics): Print statistics on the
6558 macro bcache.
6559 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6560
c899585b
RE
65612002-05-15 Richard Earnshaw <rearnsha@arm.com>
6562
6563 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6564 (REGISTER_U_ADDR): Delete definition.
6565 (arm_register_u_addr): Delete declaration.
6566
a6cdd8c5
RE
65672002-05-15 Richard Earnshaw <rearnsha@arm.com>
6568
6569 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6570 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6571
c97dcfc7
AC
65722002-05-14 Andrew Cagney <ac131313@redhat.com>
6573
6574 * regcache.c (register_valid): Revise comments refering to "Not
6575 available" and "unavailable".
6576 * frame.c (frame_register_read): Ditto.
6577 * findvar.c (value_of_register): Ditto.
6578
93021b7d
AC
65792002-05-15 Andrew Cagney <cagney@redhat.com>
6580
6581 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6582 (remote-sim.o): Update dependencies.
6583 (d10v-tdep.o): Specify dependencies.
6584 (sim_d10v_h): Define.
6585
a86bc61c
JB
65862002-05-14 Jim Blandy <jimb@redhat.com>
6587
6588 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6589 * macrotab.c (macro_lookup_inclusion, find_definition,
6590 new_macro_table): Same.
6591
6592 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6593 not `! strcmp ()'. This is a dubious improvement.
6594 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6595
6596 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6597 although it's not necessary, to avoid a warning.
6598
2fdde8f8
DJ
65992002-05-14 Daniel Jacobowitz <drow@mvista.com>
6600
6601 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6602 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6603 TYPE_INSTANCE_FLAGS.
6604 (struct main_type): New.
6605 (struct type): Move most members to struct main_type. Change
6606 cv_type and as_type to new type_chain member. Add instance_flags.
6607 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6608 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6609 (finish_cv_type): Remove prototype.
6610 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6611 Set TYPE_CHAIN.
6612 (alloc_type_instance): New function.
6613 (smash_type): New function.
6614 (make_pointer_type, make_reference_type, make_function_type)
6615 (smash_to_member_type, smash_to_method_type): Call smash_type.
6616 (make_qualified_type): New function.
6617 (make_type_with_address_space): Call make_qualified_type.
6618 (make_cv_type): Likewise.
6619 (finish_cv_type): Remove unnecessary function.
6620 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6621 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6622 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6623 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6624 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6625 * hpread.c (hpread_read_struct_type): Likewise.
6626 * stabsread.c (read_struct_type): Likewise.
6627
843fedf4
EZ
66282002-05-14 Elena Zannoni <ezannoni@redhat.com>
6629
6630 * configure.tgt: Add a catch all sh* target, for cases like
6631 sh[2,3,4]-elf and sh-hms.
6632
05a6c72c
KS
66332002-05-14 Keith Seitz <keiths@redhat.com>
6634
6635 * event-loop.c (create_file_handler): Don't do anything but
6636 update data when we are given a fd which we are already
6637 monitoring.
6638
5d085aaf
ML
66392002-05-14 Michal Ludvig <mludvig@suse.cz>
6640
6641 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6642 (update_context): Use __func__ in warnings.
6643
9db8d71f
DJ
66442002-05-14 Daniel Jacobowitz <drow@mvista.com>
6645
6646 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6647 and tcp_close to net_open and net_close.
6648 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6649 using UDP if requested. Don't try to disable Nagle on UDP
6650 sockets.
6651 * remote.c (remote_serial_open): New function. Warn about UDP.
6652 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6653
5dbc6baa
EZ
66542002-05-13 Elena Zannoni <ezannoni@redhat.com>
6655
6656 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6657
cc3023f7
EZ
66582002-05-13 Elena Zannoni <ezannoni@redhat.com>
6659
6660 * configure.tgt: Remove sh-hms target.
6661 * MAINTAINERS: Don't list sh-hms as a separate target.
6662
ec2bcbe7
JB
66632002-05-13 Jim Blandy <jimb@redhat.com>
6664
6665 Add first preprocessor macro-expansion files.
6666 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6667 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6668 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6669 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6670 (COMMON_OBS): Add macrotab.o, macroexp.o.
6671 (macroexp.o, macrotab.o): New rules.
6672
6d531722
AC
66732002-05-13 Andrew Cagney <ac131313@redhat.com>
6674
6675 * config/m88k/tm-m88k.h: Update copyright.
6676 (m88k_target_write_pc): Declare
6677 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6678 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6679 (SHIFT_INST_REGS): Update definition.
6680 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6681 using old definition of TARGET_WRITE_PC.
6682 * regcache.c (generic_target_write_pc): Delete code handling
6683 NNPC_REGNUM.
6684 * gdbarch.sh (NNPC_REGNUM): Delete.
6685 * gdbarch.h, gdbarch.c: Regenerate.
6686
3e3f2739
RE
66872002-05-13 Richard Earnshaw <rearnsha@arm.com>
6688
6689 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6690 builtin reg number.
6691
0004e5a2
DJ
66922002-05-13 Daniel Jacobowitz <drow@mvista.com>
6693
6694 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6695 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6696 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6697 access macros.
6698 * c-typeprint.c (cp_type_print_method_args): Likewise.
6699 (c_type_print_args): Likewise.
6700 * d10v-tdep.c (d10v_push_arguments): Likewise.
6701 (d10v_extract_return_value): Likewise.
6702 * expprint.c (print_subexp): Likewise.
6703 * gdbtypes.c (lookup_primitive_typename): Likewise.
6704 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6705 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6706 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6707 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6708 (TYPE_VECTOR): Likewise.
6709 * hpread.c (hpread_read_struct_type)
6710 (fix_static_member_physnames, fixup_class_method_type)
6711 (hpread_type_lookup): Likewise.
6712 * mdebugread.c (parse_symbol, parse_type): Likewise.
6713 * p-lang.c (is_pascal_string_type): Likewise.
6714 * valops.c (hand_function_call): Likewise.
6715 * x86-64-tdep.c (classify_argument): Likewise.
6716
6717 * hpread.c (hpread_read_function_type)
6718 (hpread_read_doc_function_type): Call replace_type.
6719 * dstread.c (create_new_type): Delete.
6720 (decode_dst_structure, process_dst_function): Call alloc_type.
6721 Use type access macros.
6722
dff95cc7
MK
67232002-05-12 Mark Kettenis <kettenis@gnu.org>
6724
6725 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6726 the're not supported by the current architecture.
6727 (i387_fill_fxsave): Likewise.
6728
bbcd32ad
FF
67292002-05-12 Fred Fish <fnf@redhat.com>
6730
6731 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6732 sect_index_xxx members to index the first slot in section_offsets
6733 if all of the section_offsets are zero.
6734
89cf4787
MK
67352002-05-12 Mark Kettenis <kettenis@gnu.org>
6736
6737 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6738 checked in with last change.
6739
1f77ffc5
MK
67402002-05-12 Mark Kettenis <kettenis@gnu.org>
6741
6742 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6743 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6744 config.sub.
6745
89b8b4a9
DJ
67462002-05-12 Daniel Jacobowitz <drow@mvista.com>
6747
6748 * Makefile.in: Update dependencies.
6749
14a5e767
AC
67502002-05-11 Andrew Cagney <ac131313@redhat.com>
6751
6752 * language.c (local_hex_string_custom): Simplify. Do not depend
6753 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6754
6755 * memattr.c (mem_info_command): Replace calls to
6756 longest_local_hex_string and longest_local_hex_string_custom.
6757 * buildsym.c (make_blockvector): Ditto.
6758 * solib.c (info_sharedlibrary_command): Ditto.
6759 * tracepoint.c (tracepoints_info): Ditto.
6760 * symtab.c (print_msymbol_info): Ditto.
6761
6762 * language.c (local_hex_string): Delete.
6763 (local_hex_string_custom): Delete.
6764 (longest_local_hex_string): Rename to local_hex_string.
6765 (longest_local_hex_string_custom): Rename to
6766 local_hex_string_custom.
6767 * language.h (local_hex_string): Change parameter type to LONGEST.
6768 (local_hex_string_custom): Ditto.
6769 (longest_local_hex_string): Delete declaration.
6770 (longest_local_hex_string_custom): Ditto.
6771
6772 * solib.c: Update copyright.
6773 * memattr.c: Update copyright.
6774
13d01224
AC
67752002-05-11 Andrew Cagney <ac131313@redhat.com>
6776
6777 * arch-utils.h (legacy_register_to_value): Declare.
6778 (legacy_value_to_register): Declare.
6779 (legacy_convert_register_p): Declare.
6780 * arch-utils.c (legacy_register_to_value): New function.
6781 (legacy_value_to_register): New function.
6782 (legacy_convert_register_p): New function.
6783
6784 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6785 (VALUE_TO_REGISTER): Define.
6786 (CONVERT_REGISTER_P): Define.
6787 * gdbarch.h, gdbarch.c: Regenerate.
6788
6789 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6790 VALUE_TO_REGISTER.
6791 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6792 CONVERT_REGISTER_P.
6793
4a1970e4
DJ
67942005-05-11 Daniel Jacobowitz <drow@mvista.com>
6795 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6796
6797 * Makefile.in: Update dependencies for valops.c.
6798 * valops.c: Include "gdb_assert.h".
6799 (typecmp): Skip THIS parameter to methods.
6800 (find_method_list): Remove static_memfuncp argument,
6801 update callers. Check for stub methods.
6802 (find_value_oload_method_list): Don't set *static_memfuncp.
6803 (find_overload_match): Don't check for stub methods. Assert
6804 that methods are not stubbed. Handle static methods.
6805 (value_find_oload_method_list): Remove static_memfuncp argument.
6806 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6807 to the argument list for static stub methods.
6808 * value.h (value_find_oload_method_list): Update prototype.
6809
b2e75d78
AC
68102002-05-11 Andrew Cagney <ac131313@redhat.com>
6811
6812 * arch-utils.h (generic_register_size): Declare.
6813 (generic_register_raw_size, generic_register_virtual_size): Delete
6814 declarations.
6815 * arch-utils.c (generic_register_raw_size): Delete.
6816 (generic_register_size): New function.
6817 (generic_register_virtual_size): Delete.
6818
6819 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6820 default generic_register_size.
6821 * gdbarch.h, gdbarch.c: Re-generate.
6822
6823 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6824 register_virtual_size.
6825 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6827
451fbdda
AC
68282002-05-11 Andrew Cagney <ac131313@redhat.com>
6829
6830 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6831 * gdbarch.h, gdbarch.c: Regenerate.
6832 * gnu-v3-abi.c: Update copyright.
6833 (vtable_address_point_offset): Update.
6834 (gnuv3_rtti_type): Update.
6835 (gnuv3_baseclass_offset): Update.
6836 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6837 (init_fetch_link_map_offsets): Update.
6838 * remote.c (get_remote_state): Update.
6839
6d2f5cea
DJ
68402002-05-11 Daniel Jacobowitz <drow@mvista.com>
6841
6842 * TODO: Remove value_headof/value_from_vtable_info comment.
6843 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6844 * values.c (value_headof, value_from_vtable_info): Delete.
6845 * value.h (value_from_vtable_info): Delete prototype.
6846
d2324da4
AC
68472002-05-11 Andrew Cagney <ac131313@redhat.com>
6848
6849 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6850 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6851 $(gdb_regex_h).
6852 (gdb_assert_h): Define.
6853 (gdb_wait_h): Define.
6854 (gdb_regex_h): Define.
6855
5c717440
DJ
68562002-05-11 Daniel Jacobowitz <drow@mvista.com>
6857
6858 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6859 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6860
6c7861b3
JT
68612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6862
6863 * nbsd-tdep.c: Fix comment.
6864
ea5bc2a6
JT
68652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6866
6867 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6868 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6869 (nbsd-tdep.o): New dependency list.
6870 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6871 nbsd-tdep.h.
6872 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6873 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6874 * nbsd-tdep.c: New file.
6875 * nbsd-tdep.h: New file.
6876 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6877 nbsd-tdep.h.
6878 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6879 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6880 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6881 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6882
b28da865
JT
68832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6884
6885 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6886 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6887 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6888 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6889 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6890 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6891
4b8ff1fa
JT
68922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6893
6894 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6895 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6896 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6897 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6898 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6899 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6900 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6901
dfe6eb1f
JT
69022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6905 fetch_elfcore_registers to...
6906 * i386nbsd-tdep.c: ...here.
6907 (i386nbsd_use_struct_convention): Rename to...
6908 (i386nbsd_aout_use_struct_convention): ...this.
6909 (i386nbsd_supply_reg): New function.
6910 (i386nbsd_fill_reg): New function.
6911 (fetch_core_registers): Use i386nbsd_supply_reg.
6912 (fetch_elfcore_registers): Likewise.
6913 (_initialize_i386nbsd_tdep): New function.
6914 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6915 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6916 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6917 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6918 (i386nbsd_aout_use_struct_convention): ...this.
6919
20cb8cda
JT
69202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6921
6922 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6923 (store_inferior_registers): Use shnbsd_fill_reg.
6924 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6925 sh_nbsd_supply_register): Collapse into...
6926 (shnbsd_supply_reg): ...this.
6927 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6928 (shnbsd_fill_reg): ...this.
6929 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6930 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6931 (fetch_core_registers): Use shnbsd_supply_reg.
6932 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6933 (sh_nbsd_core_fns): Rename to...
6934 (shnbsd_core_fns): ...this.
6935 (sh_nbsd_elfcore_fns): Rename to...
6936 (shnbsd_elfcore_fns): ...this.
6937 (sh_nbsd_init_abi): Rename to...
6938 (shnbsd_init_abi): ...this.
6939 (_initialize_sh_nbsd_tdep): Rename to...
6940 (_initialize_shnbsd_tdep): ...this.
6941 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6942 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6943 sh_nbsd_fill_register): Remove prototypes.
6944 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6945
e750d25e
JT
69462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6947
6948 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6949 (i387-nat.o): Delete dependency list.
6950 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6951 (x86-64-linux-nat.o): Likewise.
6952 * i387-nat.c: Delete file, moving contents to...
6953 * i387-tdep.c: ...here.
6954 * i387-nat.h: Rename...
6955 * i387-tdep.h: ...to this.
6956 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6957 * i386-linux-nat.c: Likewise.
6958 * i386bsd-nat.c: Likewise.
6959 * i386gnu-nat.c: Likewise.
6960 * i386nbsd-nat.c: Likewise.
6961 * i386v4-nat.c: Likewise.
6962 * x86-64-linux-nat.c: Likewise.
6963 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6964 * config/i386/go32.mh (NATDEPFILES): Likewise.
6965 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6966 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6967 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6968 * config/i386/linux.mh (NATDEPFILES): Likewise.
6969 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6970 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6971 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6972 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6973
1aee598a
JT
69742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6975
6976 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6977 (alphanbsd-nat.o): Remove dependency list.
6978 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6979 * alphanbsd-nat.c: Delete. Contents moved to...
6980 * alphanbsd-tdep.c: ...here.
6981 (_initialize_alphanbsd_tdep): Register core functions.
6982 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6983
12bcb0fe
JT
69842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6985
6986 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6987 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6988 (alphanbsd-nat.o): Likewise.
6989 (alphabsd-tdep.o): New dependency list.
6990 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6991 (fill_gregset): Use alphabsd_fill_reg.
6992 (supply_fpregset): Use alphabsd_supply_fpreg.
6993 (fill_fpregset): Use alphabsd_fill_fpreg.
6994 (fetch_inferior_registers): Use struct reg and struct fpreg
6995 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6996 and alphabsd_supply_fpreg.
6997 (store_inferior_registers): Use struct reg and struct fpreg
6998 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6999 and alphabsd_fill_fpreg.
7000 * alphabsd-tdep.c: New file.
7001 * alphabsd-tdep.h: New file.
7002 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7003 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7004 alphabsd_supply_fpreg.
7005 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7006 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7007
361d1df0
EC
70082002-05-11 Eric Christopher <echristo@redhat.com>
7009
7010 * mips-tdep.c (mips_double_register_type): Fix thinko.
7011 (mips_single_register_type): Ditto.
7012 * MAINTAINERS: Add self.
7013
92dd7cee
MK
70142002-05-11 Mark Kettenis <kettenis@gnu.org>
7015
7016 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7017 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7018 right thing on architectures with different endianness and/or
7019 integer sizes.
7020
e27da16d
JT
70212002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7022
7023 From Christian Limpach <chris@Pin.LU>
7024 * configure.in: Change sed expression which comments out
7025 NATDEPFILES to also comment out continuation lines.
7026 * configure: Regenerate.
7027
ddde02bd
EZ
70282002-05-10 Elena Zannoni <ezannoni@redhat.com>
7029
7030 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7031 big patch.
7032
1c922164
EZ
70332002-05-10 Elena Zannoni <ezannoni@redhat.com>
7034
7035 * sh-tdep.c: Include correct file.
7036
283150cd
EZ
70372002-05-10 Elena Zannoni <ezannoni@redhat.com>
7038
7039 New support for sh64-elf (sh5) target.
7040
7041 * configure.tgt: For sh64-elf target, default to sh-elf.
7042
7043 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7044 (struct gdbarch_tdep): Add new fields for new registers and ABI
7045 info.
361d1df0 7046
283150cd
EZ
7047 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7048 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7049 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7050 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7051 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7052 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7053 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7054 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7055 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7056 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7057 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7058 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7059 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7060 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7061 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7062 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7063 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7064 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7065 sign_extend, sh64_nofp_frame_init_saved_regs,
7066 sh64_init_extra_frame_info, sh64_get_saved_register,
7067 sh64_extract_struct_value_address, sh64_pop_frame,
7068 sh64_push_arguments, sh64_extract_return_value,
7069 sh64_store_return_value, sh64_show_media_regs,
7070 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7071 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7072 sh_sh64_register_virtual_type,
7073 sh_sh64_register_convert_to_virtual,
7074 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7075 sh64_register_read, sh64_pseudo_register_write,
7076 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7077 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7078 sh64_do_pseudo_register, sh_compact_do_registers_info,
7079 sh64_do_registers_info, sh_gdbarch_init): New functions.
7080
3117ed25
EZ
70812002-05-10 Elena Zannoni <ezannoni@redhat.com>
7082
7083 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7084
2654e6d4
DJ
70852002-05-10 Daniel Jacobowitz <drow@mvista.com>
7086
7087 * linespec.c (decode_line_1): Check for a double quote after
7088 a filename correctly.
7089
9ab3e532
JB
70902002-05-10 Jim Blandy <jimb@redhat.com>
7091
7092 Properly track the size of the current objfile's .debug_line section.
7093 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7094 (DWARF_LINE_SIZE): New macro.
7095 (dwarf2_build_psymtabs_hard): Record the line section's size in
7096 the partial symbol table.
7097 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7098 symbol table.
7099
126fa72d
PS
71002002-05-10 Petr Sorfa <petrs@caldera.com>
7101
7102 * ia64-tdep.c: Handle breakpoints on L instruction type
7103 in MLX instruction bundle by moving the breakpoint to
7104 the third slot (X instruction type) as L holds only data.
7105
1f077a3e
KB
71062002-05-10 Kevin Buettner <kevinb@redhat.com>
7107
7108 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7109 (process_one_symbol): Complain about discarding local symbols
7110 due to a misplaced N_LBRAC entry.
7111
8120c9d5 71122002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7113
7114 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7115 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7116 decrease the depth we are at, in the case of templates.
361d1df0 7117
67b2c998
DJ
71182002-05-09 Daniel Jacobowitz <drow@mvista.com>
7119
7120 * mips-tdep.c (mips_float_register_type): New function.
7121 (mips_double_register_type): New function.
7122 (mips_print_register): Use them.
7123 (do_fp_register_row): Likewise.
7124
fd326606
DJ
71252002-05-09 Daniel Jacobowitz <drow@mvista.com>
7126
6609d9af 7127 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7128 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7129 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7130
bef35864
MS
71312002-05-09 Michael Snyder <msnyder@redhat.com>
7132
7133 * remote-rdp.c (remote_rdp_can_run): Remove.
7134
c55a3f73
TT
71352002-05-09 Tom Tromey <tromey@redhat.com>
7136
7137 * jv-valprint.c (java_val_print): Handle `char' as a special case
7138 of TYPE_CODE_INT.
7139
b8d5e71d
MS
71402002-05-09 Michael Snyder <msnyder@redhat.com>
7141
7142 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7143 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7144 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7145 str r(0123),[sp,#nn].
361d1df0 7146 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7147 order-independent by placing it in a loop.
7148
e2cd42dd
MS
71492002-05-06 Michael Snyder <msnyder@redhat.com>
7150
7151 * stabsread.c (read_type): Add recognition for new attribute:
7152 "@V;" means that an array type is actually a vector.
7153 This is analogous to the vector flag that's been added to dwarf2.
7154
3ce1502b
MK
71552002-05-09 Mark Kettenis <kettenis@gnu.org>
7156
7157 * i386-tdep.h (i386_abi): New enum.
7158 (struct gdbarch_tdep): Replace os_ident member with abi.
7159 (i386_gdbarch_register_os_abi): New prototype.
7160 * i386-tdep.c (i386_abi_names): New array.
7161 (process_note_abi_tag_sections): Removed.
7162 (process_note_sections): New function.
7163 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7164 (struct i386_abi_handler): New struct.
7165 (i386_abi_handler_list): New variable.
7166 (i386_gdbarch_register_os_abi): New function.
7167 (i386_gdbarch_init): Adapt for the changes given above.
7168
084c156a
DJ
71692002-05-08 Daniel Jacobowitz <drow@mvista.com>
7170
7171 * gregset.h: Say "GNU/Linux".
7172
6599f021
EZ
71732002-05-08 Elena Zannoni <ezannoni@redhat.com>
7174
7175 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7176 (build_gdbtypes): Build builtin_type_v2_float.
7177 (_initialize_gdbtypes): Register new builtin type.
7178
40af4b0c
AC
71792002-05-08 Andrew Cagney <ac131313@redhat.com>
7180
7181 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7182 (clear_gdbarch_swap): New function.
7183 (initialize_non_multiarch): Call.
7184 (gdbarch_update_p): Before calling init(), swap out and clear the
7185 existing architecture.
7186 * gdbarch.c: Regenerate.
7187
4fe84f46
JT
71882002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7189
7190 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7191 alphanbsd-tdep.c.
7192
4015edd1
JT
71932002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7194
7195 * sh-nbsd-nat.c: Rename to...
7196 * shnbsd-nat.c: ...this.
7197 * sh-nbsd-tdep.c: Rename to...
7198 * shnbsd-tdep.c: ...this.
7199 * sh-nbsd-tdep.h: Rename to...
7200 * shnbsd-tdep.h: ...this.
7201 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7202 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7203
0e2bd219
RE
72042002-05-08 Richard Earnshaw <rearnsha@arm.com>
7205
7206 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7207 concatenation for command help messages.
7208
13a38d45
JT
72092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7210
7211 * NEWS: Note new sh*-*-netbsdelf* configuration.
7212 * configure.host: Set gdb_host_cpu to sh for all sh*.
7213 (sh*-*-netbsdelf*): New host.
7214 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7215 (sh*-*-netbsdelf*): New target.
7216 * sh-nbsd-nat.c: New file.
7217 * sh-nbsd-tdep.c: New file.
7218 * sh-nbsd-tdep.h: New file.
7219 * config/sh/nbsd.mh: New file.
7220 * config/sh/nbsd.mt: New file.
7221 * config/sh/nm-nbsd.h: New file.
7222 * config/sh/tm-nbsd.h: New file.
7223
d658f924
JT
72242002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7225
7226 * sh-tdep.c (sh_osabi_names): Declare.
7227 (process_note_abi_tag_sections): New function.
7228 (get_elfosabi): Ditto.
7229 (sh_gdbarch_register_os_abi): Ditto.
7230 (sh_dump_tdep): Ditto.
7231 _initialize_sh_tdep): Use gdbarch_register to register
7232 sh_gdbarch_init and sh_dump_tdep.
7233 * config/sh/tm-sh.h (sh_osabi): Declare.
7234 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7235
848cfffb
AC
72362002-05-07 Andrew Cagney <ac131313@redhat.com>
7237
7238 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7239 (thumb_scan_prologue): Ditto.
7240 (arm_find_callers_reg): Ditto.
7241 (arm_frame_chain): Ditto.
7242 (arm_init_extra_frame_info): Ditto.
7243 (arm_frame_saved_pc): Ditto.
7244 (arm_pop_frame): Ditto.
7245 (arm_push_return_address): New function.
7246 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7247 call_dummy_location, call_dummy_breakpoint_offset_p,
7248 call_dummy_breakpoint_offset, call_dummy_p,
7249 call_dummy_stack_adjust_p, call_dummy_words,
7250 sizeof_call_dummy_words, call_dummy_start_offset,
7251 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7252 call_dummy_address, push_return_address and push_dummy_frame for
7253 generic dummy frames.
7254
e7d717c0
JT
72552002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7256
7257 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7258 size computation for alloca.
7259 (sh_fp_frame_init_saved_regs): Likewise.
7260
7bbcf283
RE
72612002-05-07 Richard Earnshaw <rearnsha@arm.com>
7262
7263 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7264 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7265 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7266 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7267 * remote-rdp.c (remote_rdp_fetch_register): Use
7268 ARM_MAX_REGISTER_RAW_SIZE.
7269 (remote_rdp_store_register): Likewise.
7270
4657573b
ML
72712002-05-07 Michal Ludvig <mludvig@suse.cz>
7272
361d1df0 7273 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7274 added default labels to switch {} statements.
7275 * x86-64-tdep.c: Ditto.
7276 * x86-64-linux-nat.c: Ditto.
7277
010f3b2f
JT
72782002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7279
7280 * solib.h: Protect against multiple inclusion.
7281
debd256d
JB
72822002-05-06 Jim Blandy <jimb@redhat.com>
7283
9ab3e532
JB
7284 Add first preprocessor macro-expansion files.
7285 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7286 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7287 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7288 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7289 (COMMON_OBS): Add macrotab.o, macroexp.o.
7290 (macroexp.o, macrotab.o): New rules.
7291
debd256d
JB
7292 Separate the job of reading the line number info statement program
7293 header (...expialidocious) out into its own function.
7294 * dwarf2read.c (struct line_head, struct filenames, struct
7295 directories): Replace with...
7296 (struct line_header): New structure, containing the full
7297 contents of the statement program header, including the
7298 include directory and file name tables.
7299 (read_file_scope): If we have line number info, instead of just
7300 calling dwarf_decode_lines to do all the work, call
7301 dwarf_decode_line_header first to get a `struct line_header'
7302 containing the data in the statement program header, and then
7303 pass that to dwarf_decode_lines, which will pick up where that
7304 left off. Be sure to clean up the `struct line_header' object.
7305 (dwarf_decode_line_header, free_line_header, add_include_dir,
7306 add_file_name): New functions.
7307 (dwarf_decode_lines): Move all the code to read the statement
7308 program header into dwarf_decode_line_header. Take the line
7309 header it built as the first argument, instead of the offset to
7310 the compilation unit's line number info. Use the new `struct
7311 line_header' type instead of the old structures. No need to do
7312 cleanups here now, since we don't allocate anything.
7313 (dwarf2_statement_list_fits_in_line_number_section,
7314 dwarf2_line_header_too_long): New complaints.
7315
ac3aafc7
EZ
73162002-05-06 Elena Zannoni <ezannoni@redhat.com>
7317
7318 * gdbtypes.c (init_vector_type): New function.
7319 (build_builtin_type_vec128): Simplify the representation of SIMD
7320 registers.
7321 (build_gdbtypes): Initialize new builtin vector types.
7322 (_initialize_gdbtypes): Register new vector types with gdbarch.
7323 (builtin_type_v4_float, builtin_type_v4_int32,
7324 builtin_type_v8_int16, builtin_type_v16_int8,
7325 builtin_type_v2_int32, builtin_type_v4_int16,
7326 builtin_type_v8_int8): New (renamed) SIMD types.
7327
13e49980
MK
73282002-05-06 Mark Kettenis <kettenis@gnu.org>
7329
7330 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7331 (i387_fill_fxsave): Likewise.
7332
997b20b8
AO
73332002-05-05 Alexandre Oliva <aoliva@redhat.com>
7334
7335 * alpha-tdep.c (alpha_extract_return_value): Don't use
7336 non-constant array size in prototype.
7337
535c96ce
AC
73382002-05-04 Andrew Cagney <ac131313@redhat.com>
7339
7340 From Brian Taylor <briant at model dot com>:
7341 * ui-out.c (ui_out_field_core_addr): Use the function
7342 longest_local_hex_string_custom'to format addresses > 32 bits
7343 wide.
7344
7345 * ui-out.c (ui_out_field_core_addr): Update comment.
7346
bedfa57b
AC
73472002-05-04 Andrew Cagney <ac131313@redhat.com>
7348
7349 * stack.c (select_and_print_frame): Make static. Delete the
7350 parameter `level'.
7351 (func_command): Update call.
7352 (select_frame_command): Delete code computing the frame level.
7353 * frame.h (select_and_print_frame): Delete declaration.
7354
f621c63e
AC
73552002-05-04 Andrew Cagney <ac131313@redhat.com>
7356
7357 * sparc-tdep.c (sparc_get_saved_register): Comment why
7358 get_prev_frame call is safe.
7359
0f7d239c
AC
73602002-05-04 Andrew Cagney <ac131313@redhat.com>
7361
7362 * frame.h (select_frame): Delete level parameter.
7363 * stack.c (select_frame): Update. Use frame_relative_level to
7364 obtain the frame's level.
7365 (select_and_print_frame): Update call.
7366 (select_frame_command): Ditto.
7367 (up_silently_base): Ditto.
7368 (down_silently_base): Ditto.
7369 * ocd.c (ocd_start_remote): Ditto.
7370 * remote-rdp.c (remote_rdp_open): Ditto.
7371 * remote-mips.c (mips_initialize): Ditto.
7372 (common_open): Ditto.
7373 * remote-e7000.c (e7000_start_remote): Ditto.
7374 * m3-nat.c (select_thread): Ditto.
7375 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7376 (child_get_current_exception_event): Ditto.
7377 * varobj.c (varobj_create): Ditto.
7378 (varobj_update): Ditto.
7379 (c_value_of_root): Ditto.
7380 * tracepoint.c (finish_tfind_command): Ditto.
7381 * corelow.c (core_open): Ditto.
7382 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7383 * thread.c (info_threads_command): Ditto.
7384 (switch_to_thread): Ditto.
7385 * infrun.c (normal_stop): Ditto.
7386 (restore_selected_frame): Ditto.
7387 (restore_inferior_status): Ditto.
7388 * breakpoint.c (insert_breakpoints): Ditto.
7389 (watchpoint_check): Ditto.
7390 (bpstat_stop_status): Ditto.
7391 (do_enable_breakpoint): Ditto.
7392 * blockframe.c (flush_cached_frames): Ditto.
7393 (reinit_frame_cache): Ditto.
7394
71d6c7b1
AC
73952002-05-04 Andrew Cagney <ac131313@redhat.com>
7396
7397 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7398 maintainer.
7399
cda6c68a
JB
74002002-05-04 Jim Blandy <jimb@redhat.com>
7401
7402 * gdbtypes.c (replace_type): Doc fix.
7403
5c1c87f0
AC
74042002-05-04 Andrew Cagney <ac131313@redhat.com>
7405
7406 * valprint.c (strcat_longest): Delete commented out function.
7407 Update copyright.
7408
cd9bfe15
AC
74092002-05-04 Andrew Cagney <ac131313@redhat.com>
7410
7411 * MAINTAINERS: Mark a29k as deleted.
7412 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7413 Move new configurations to the top.
7414 * configure.tgt: Remove a29k.
7415 * config/a29k/tm-vx29k.h: Delete.
7416 * config/a29k/vx29k.mt: Delete.
7417 * config/a29k/tm-a29k.h: Delete.
7418 * config/a29k/a29k-udi.mt: Delete.
7419 * config/a29k/a29k.mt: Delete.
7420 * a29k-tdep.c: Delete.
7421 * remote-udi.c: Delete.
7422 * remote-mm.c: Delete.
7423 * remote-eb.c: Delete.
7424 * remote-adapt.c: Delete.
7425 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7426 * config/s390/s390x.mt: Ditto.
7427 * config/s390/s390.mt: Ditto.
7428 * config/sparc/sparclynx.mh: Ditto.
7429 * config/sparc/linux.mh: Ditto.
7430 * config/pa/hppaosf.mh: Ditto.
7431 * config/pa/hppabsd.mh: Ditto.
7432 * config/ns32k/nbsd.mt: Ditto.
7433 * config/mips/vr5000.mt: Ditto.
7434 * config/m68k/sun3os4.mh: Ditto.
7435 * config/m68k/nbsd.mt: Ditto.
7436 * config/m68k/m68klynx.mh: Ditto.
7437 * config/m32r/m32r.mt: Ditto.
7438 * config/i386/x86-64linux.mt: Ditto.
7439 * config/i386/nbsdelf.mt: Ditto.
7440 * config/i386/nbsd.mt: Ditto.
7441 * config/i386/i386lynx.mh: Ditto.
7442
bf0c5130
AC
74432002-05-04 Andrew Cagney <ac131313@redhat.com>
7444
7445 * target.c (debug_print_register): New function. Handle oversize
7446 registers.
7447 (debug_to_fetch_registers): Call.
7448 (debug_to_store_registers): Call.
7449
2ae1c2d2
JB
74502002-05-03 Jim Blandy <jimb@redhat.com>
7451
13a393b0
JB
7452 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7453 (read_type): Doc fix.
7454 * gdbtypes.c (replace_type): Doc fix.
7455
2ae1c2d2
JB
7456 * stabsread.c (multiply_defined_struct): New complaint.
7457 (read_struct_type): If the type we were passed isn't empty, or
7458 incomplete, don't read the new struct type into it; complain,
7459 and return the original type unchanged. Take a new `type_code'
7460 argument, which is the type code for the new type.
7461 (read_type): Rather than storing the type's type code here, pass
7462 it as an argument to read_struct_type, and let that take care of
7463 storing it. That way, we don't overwrite the original type code,
7464 so read_struct_type can use it to decide whether we're overwriting
7465 something we shouldn't.
7466 (complain_about_struct_wipeout): New function.
7467
8de9bdc4
AC
74682002-05-03 Andrew Cagney <ac131313@redhat.com>
7469
7470 * gdbarch.sh: Assert that gdbarch is non-NULL.
7471 * gdbarch.c: Regenerate.
7472
f773fdbb
JM
74732002-05-03 Jason Merrill <jason@redhat.com>
7474
7475 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7476 and return NULL.
7477
0e04a514
ML
74782002-05-03 Michal Ludvig <mludvig@suse.cz>
7479
7480 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7481 (x86_64_dwarf2gdb_regno_map_length),
7482 (x86_64_dwarf2_reg_to_regnum): Added.
7483 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7484 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7485 (_initialize_x86_64_tdep): Synced with the change above.
7486 (x86_64_skip_prologue): Reformulated message.
7487
065432a8
PM
74882002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7489
7490 * f-exp.y: Also use new prev_lexptr variable
7491 to improve error reporting. Based on Michael Snyder
7492 2002-04-24 dated patch to c-exp.y.
7493 * jv-exp.y: Likewise.
7494 * m2-exp.y: Likewise.
7495
a3162708
EZ
74962002-05-02 Elena Zannoni <ezannoni@redhat.com>
7497
7498 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7499 we are dealing with vectors.
7500
03620c38
PM
75012002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7502
7503 * config/m68k/tm-nbsd.h: Obvious fix,
7504 correct machine name.
7505
6604db2e
PM
75062002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7507
7508 * p-typeprint.c (pascal_type_print_base): Add support
7509 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7510
0906b739
PM
75112002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7512
7513 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7514 for fondamental pascal 'char' type.
7515
e2625b33
PM
75162002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7517
7518 * p-lang.h (is_pascal_string_type): Declaration changed,
7519 new sixth argument of type char ** added.
361d1df0 7520 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7521 changed. Args length_pos, length_size, string_pos, char_size
7522 can now be NULL. New argument arrayname set to the field
7523 name of the char array. Return value set to char array
7524 field index plus one.
361d1df0 7525 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7526 is_pascal_string_type function.
7527
cf17c188
AC
75282002-05-02 Andrew Cagney <cagney@redhat.com>
7529
7530 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7531 <cagney@redhat.com> change.
7532 * gdbarch.c: Regenerate.
7533
52bca491
AC
75342002-05-02 Andrew Cagney <cagney@redhat.com>
7535
7536 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7537 before probing for a new one. Detect errorenous gdbarch_init
7538 functions.
7539 * gdbarch.c: Regenerate.
7540
d5e72505
AC
75412002-05-01 Andrew Cagney <cagney@redhat.com>
7542
7543 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7544 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7545 * config/v850/tm-v850.h: Ditto. Update copyright.
7546
af566d9f
AC
75472002-04-30 Andrew Cagney <ac131313@redhat.com>
7548
7549 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7550 current_gdbarch.
7551
880d85fa
MS
75522002-04-30 Michael Snyder <msnyder@redhat.com>
7553
94c30b78
MS
7554 * arm-tdep.c: Whitespace clean-ups.
7555 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7556 should have been removed as part of 4/24 change.
7557
6f5987a6
KB
75582002-04-30 Kevin Buettner <kevinb@redhat.com>
7559
7560 * rs6000-tdep.c: Added comment describing how fpscr register
7561 numbers were chosen.
7562
1a113c93
MS
75632002-04-30 Michael Snyder <msnyder@redhat.com>
7564
7565 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7566
9a6f53fe
EZ
75672002-04-29 Elena Zannoni <ezannoni@redhat.com>
7568
7569 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7570 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7571 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7572
11ed25ac
KB
75732002-04-29 Kevin Buettner <kevinb@redhat.com>
7574
7575 From Louis Hamilton <hamilton@redhat.com>:
7576 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7577 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7578 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7579 not bfd-private xcoff data, to determine wordsize.
7580 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7581
ae232405
AC
75822002-04-29 Andrew Cagney <ac131313@redhat.com>
7583
7584 GDB 5.2 released from 5.2 branch.
7585
91fd20f7
ML
75862002-04-29 Michal Ludvig <mludvig@suse.cz>
7587
7588 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7589 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7590 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7591
2dc5091b
EZ
75922002-04-29 Elena Zannoni <ezannoni@redhat.com>
7593
7594 * rs6000-tdep.c (rs6000_extract_return_value,
7595 rs6000_store_return_value): Handle returning vectors.
7596 (rs6000_gdbarch_init): Use
7597 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7598 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7599 New function.
7600 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7601 vectors.
7602 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7603 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7604
2b9848d8
PM
76052002-04-24 Pierre Muller <ics.u-strasbg.fr>
7606
7607 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7608 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7609 with fprintf_unfiltered (gdb_stderr,...).
7610
f8d17dc5
PM
76112002-04-24 Pierre Muller <ics.u-strasbg.fr>
7612
7613 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7614 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7615 Replace fprintf (stderr,...
7616 with fprintf_unfiltered (gdb_stderr,....
7617 * remote-es.c: Likewise.
7618 * remote-os9k.c: Likewise.
7619 * remote-st.c: Likewise.
7620
2f2f1ad1
AS
76212002-04-28 Andreas Schwab <schwab@suse.de>
7622
7623 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7624 linux-proc.o and gcore.o.
7625
b6779aa2
AC
76262002-04-26 Michal Ludvig <mludvig@suse.cz>
7627
7628 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7629 code without frame pointers.
7630
7e57f5f4
AC
76312002-04-26 Andrew Cagney <ac131313@redhat.com>
7632
7633 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7634 ON_STACK is needed.
7635
2ceb85d0
BE
76362002-04-26 Ben Elliston <bje@redhat.com>
7637
7638 * target.c (do_xfer_memory): Correct reference to the new option
7639 "trust-readonly-sections".
7640
f5f8a009
EZ
76412002-04-26 Elena Zannoni <ezannoni@redhat.com>
7642
7643 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7644 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7645 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7646 vectors.
7647 (read_array_type): Record the fact that this array type is really a
7648 vector (i.e. are passed in by value).
7649
5868c862
JT
76502002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7653 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7654 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7655 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7656 * alpha-linux-tdep.c: Include frame.h.
7657 (alpha_linux_sigcontext_addr): New function.
7658 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7659 alpha_linux_sigcontext_addr.
7660 * alpha-osf1-tdep.c: Include gdbcore.h.
7661 (alpha_osf1_sigcontext_addr): New function.
7662 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7663 alpha_osf1_sigcontext_addr.
7664 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7665 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7666
bfb01f37
AC
76672002-04-26 Andrew Cagney <ac131313@redhat.com>
7668
361d1df0 7669 * stack.c (selected_frame_level):
bfb01f37
AC
7670 (select_frame): Do not set selected_frame_level.
7671 * frame.h (selected_frame_level): Delete declaration.
7672
15813d3f
AC
76732002-04-26 Andrew Cagney <ac131313@redhat.com>
7674
7675 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7676 convert_from_func_ptr-addr when AIX / PowerOpen.
7677
6096c27a
AC
76782002-04-25 Andrew Cagney <ac131313@redhat.com>
7679
7680 * valops.c (hand_function_call): Call
7681 generic_save_call_dummy_addr.
7682 * frame.h (generic_save_call_dummy_addr): Declare.
7683 * blockframe.c (struct dummy_frame): Add fields call_lo and
7684 call_hi.
7685 (generic_find_dummy_frame): Check for PC in range call_lo to
7686 call_hi instead of entry_point_address.
7687 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7688 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7689 (generic_save_call_dummy_addr): New function.
7690
f510d44e
DM
76912002-04-24 David S. Miller <davem@redhat.com>
7692
7693 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7694 sparc_skip_prologue.
7695 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7696 information to find prologue when possible.
7697 (sparc_prologue_frameless_p): Call examine_prologue directly.
7698 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7699 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7700 second argument.
7701 (SKIP_PROLOGUE): Likewise.
7702
15d72a92
JT
77032002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7706 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7707 indicate that the condition it was testing is always true.
7708 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7709 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7710 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7711
accc6d1f
JT
77122002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7715 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7716 tdep->jb_pc and tdep->jb_elt_size.
7717 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7718 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7719 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7720 * alpha-nat.c (get_longjmp_target): Remove.
7721 (JB_ELEMENT_SIZE): Ditto.
7722 (JB_PC): Ditto.
7723 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7724 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7725 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7726 to alpha_get_longjmp_target.
7727 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7728 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7729 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7730
1bfdc549
AC
77312002-04-25 Andrew Cagney <ac131313@redhat.com>
7732
7733 * README: Update to GDB 5.2.
7734
1bd316f0
AC
77352002-04-25 Andrew Cagney <ac131313@redhat.com>
7736
7737 * gdbarch.sh (LC_ALL): Set to `c'.
7738
2e5ff58c
TR
77392002-04-25 Theodore A. Roth <troth@verinet.com>
7740
7741 * avr-tdep.c: Ran through gdb_indent.sh.
7742
e33ce519
TR
77432002-04-25 Theodore A. Roth <troth@verinet.com>
7744
7745 * MAINTAINERS: Add myself as AVR maintainer.
7746 * NEWS: Note new target avr.
7747
8818c391
TR
77482002-04-25 Theodore A. Roth <troth@verinet.com>
7749
7750 * Makefile.in: Add support for AVR target.
7751 * configure.tgt: Add support for AVR target.
7752 * avr-tdep.c: New file
7753 * config/avr/avr.mt: New file.
7754
79509c2d
TR
77552002-04-25 Theodore A. Roth <troth@verinet.com>
7756
7757 * MAINTAINERS: Add myself to write-after-approval.
7758
dac8068e
PM
77592002-04-24 Pierre Muller <ics.u-strasbg.fr>
7760
7761 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7762 with fprintf_unfiltered (gdb_stderr,....
7763
25bf3106
PM
77642002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7765
7766 Fix PR gdb/508.
7767 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7768
24467a86
PM
77692002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7770
7771 * p-exp.y: Also use new prev_lexptr variable
7772 to improve error reporting. Based on Michael Snyder
7773 2002-04-24 dated patch to c-exp.y.
7774
95b80706
JT
77752002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7776
7777 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7778 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7779 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7780 to 0.
7781 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7782 and struct value.
7783 (FUNCTION_START_OFFSET): Remove.
7784 (BREAKPOINT): Ditto.
7785
e90cc612
JT
77862002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7787
7788 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7789 * NEWS: Ditto.
7790
6c72f9f9
JT
77912002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7794 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7795 alpha_linux_pc_in_sigtramp.
7796 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7797 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7798 alpha_osf1_pc_in_sigtramp.
7799 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7800 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7801 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7802 alphafbsd_pc_in_sigtramp.
7803 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7804 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7805 alphanbsd_pc_in_sigtramp.
7806 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7807 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7808
5e4f3379
JT
78092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7812
da8ca43d
JT
78132002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7814
7815 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7816 alphanbsd-tdep.c.
7817 (alphanbsd-nat.o): New dependency list.
7818 (alphanbsd-tdep.o): Ditto.
7819 * NEWS: Note new native NetBSD/alpha configuration.
7820 * alphanbsd-nat.c: New file.
7821 * alphanbsd-tdep.c: Ditto.
7822 * configure.host (alpha*-*-netbsd*): New host.
7823 * configure.tgt (alpha*-*-netbsd*): New target.
7824 * config/alpha/nbsd.mh: New file.
7825 * config/alpha/nbsd.mt: Ditto.
7826 * config/alpha/nm-nbsd.h: Ditto.
7827 * config/alpha/tm-nbsd.h: Ditto.
7828
36a6271d
JT
78292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7830
7831 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7832 (alpha-osf1-tdep.o): New dependency list.
7833 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7834 and skip_sigtramp_frame members.
7835 * alpha-linux-tdep.c: Include gdbcore.h.
7836 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7837 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7838 * alpha-osf1-tdep.c: New file.
7839 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7840 alpha-osf1-dep.c.
7841 (alpha_frame_past_sigtramp_frame): New function.
7842 (alpha_dynamic_sigtramp_offset): Ditto.
7843 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7844 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7845 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7846 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7847 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7848 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7849 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7850 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7851 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7852 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7853 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7854 to find_solib_trampoline_target.
7855 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7856 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7857 (SKIP_TRAMPOLINE_CODE): Remove.
7858 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7859 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7860 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7861 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7862 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7863 (PROC_SIGTRAMP_MAGIC): Ditto.
7864 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7865 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7866 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7867 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7868 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7869
2f4bc57b
JT
78702002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7871
7872 * NEWS: Note that Alpha targets are now multi-arch.
7873
665132f9
MS
78742002-04-24 Michael Snyder <msnyder@redhat.com>
7875
7876 * parser-defs.h (prev_lexptr): New external variable.
7877 * parse.c (parse_exp_1): Set prev_lexptr to null before
7878 calling the language-specific parser.
7879 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7880 (yyerror): Use prev_lexptr in error reporting.
7881
32872fa7
DJ
78822002-04-24 Daniel Jacobowitz <drow@mvista.com>
7883
7884 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7885 * gregset.h: If FILL_FPXREGSET is defined, provide
7886 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7887 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7888 is defined, call fill_fpxregset.
7889
57e76fac
MS
78902002-04-24 Roland McGrath <roland@frob.com>
7891
7892 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7893 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7894 (supply_gregset, supply_fpregset): New functions.
7895
7896 * gnu-nat.c (gnu_find_memory_regions): New function.
7897 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7898 (gnu_xfer_memory): Add a cast.
7899
f43845b3
MS
79002002-04-24 Michael Snyder <msnyder@redhat.com>
7901
361d1df0 7902 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7903 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7904 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7905 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7906 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7907 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7908
a0abec03
AC
7909Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7910
7911 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7912 NUM_PSEUDO_REGS can be used.
7913
d7bd68ca
AC
79142002-04-24 Andrew Cagney <ac131313@redhat.com>
7915
7916 * arch-utils.h: Update copyright.
7917
7918 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7919 * gdbarch.h, gdbarch.c: Re-generate.
7920
7921 * inferior.h (IN_SIGTRAMP): Delete definition.
7922 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7923 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7924
7925 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7926 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7927 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7928 (find_proc_framesize): Ditto.
7929 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7930 (alpha_init_extra_frame_info): Ditto.
7931 * infrun.c (handle_inferior_event): Ditto.
7932 (handle_inferior_event): Ditto.
7933 (check_sigtramp2): Ditto.
7934 * blockframe.c (create_new_frame): Ditto.
7935 (get_prev_frame): Ditto.
7936 * ppc-linux-tdep.c: Update comments.
7937 * i386-linux-tdep.c: Update comments.
7938 * breakpoint.c (bpstat_what): Update comment.
7939
4867e41e
DM
79402002-04-24 David S. Miller <davem@redhat.com>
7941
21d83aa5
DM
7942 * i960-tdep.c (register_in_window_p): New function.
7943 (i960_find_saved_register): Use it instead of
7944 REGISTER_IN_WINDOW_P.
7945 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7946
4867e41e
DM
7947 * symtab.h (find_stab_function_addr): Kill extern.
7948 * minsyms.c (find_stab_function_addr): Remove from here...
7949 * dbxread.c: ... to here, and mark it static.
7950
69cdf6a2
DM
79512002-04-20 David S. Miller <davem@redhat.com>
7952
7953 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7954 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7955
5a595886
DM
79562002-04-21 David S. Miller <davem@redhat.com>
7957
7958 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7959 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7960 (vx_write_register): Likewise.
7961
1da1a192
JB
79622002-04-23 J. Brobecker <brobecker@gnat.com>
7963
7964 * source.c (is_regular_file): New function.
7965 (openp): Check wether file to open is a regular file
7966 to avoid opening directories.
7967
baa6f10b
JT
79682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * findvar.c (extract_signed_integer): Cast printf argument
7971 to suppress format warning.
7972 (extract_unsigned_integer): Likewise.
7973 * infcmd.c (registers_info): Likewise.
7974 * top.c (get_prompt_1): Likewise.
7975 * valops.c (value_assign): Likewise.
7976 * valprint.c (print_decimal): Likewise.
7977
b2c4da81
L
79782002-04-22 H.J. Lu (hjl@gnu.org)
7979
7980 * c-exp.y (typebase): Support
361d1df0 7981
b2c4da81
L
7982 [long|long long|short] [signed|unsigned] [int|]
7983
7984 and
7985
7986 signed [long|long long|short] int
7987
f267bd6a
JT
79882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7989
7990 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7991 and vax-tdep.h.
7992 * vax-tdep.h: New file.
7993 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7994 Make several routines static.
7995 (vax_get_saved_register): New function.
7996 (vax_gdbarch_init): New function.
7997 (_initialize_vax_tdep): Register vax_gdbarch_init.
7998 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7999 Remove macros now under the control of gdbarch.
8000
da3c6d4a
MS
80012002-04-22 Michael Snyder <msnyder@redhat.com>
8002
11d3b27d
MS
8003 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8004 Some whitespace and coding standards tweaks.
da3c6d4a 8005
a33f7558
JT
80062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * vax-tdep.c: Include regcache.h.
8009 (vax_call_dummy_words): New.
8010 (sizeof_vax_call_dummy_words): New.
8011 (vax_fix_call_dummy): New function.
8012 (vax_saved_pc_after_call): Ditto.
8013 * config/vax/tm-vax.h: Don't include regcache.h.
8014 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8015 (CALL_DUMMY): Remove.
8016 (CALL_DUMMY_WORDS): Define.
8017 (SIZEOF_CALL_DUMMY_WORDS): Define.
8018 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8019
47a73475
MS
80202002-04-18 Michael Snyder <msnyder@redhat.com>
8021
8022 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8023
52efde73
JT
80242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * vax-tdep.c (vax_frame_chain): New function.
8027 (vax_push_dummy_frame): Ditto.
8028 (vax_pop_frame): Ditto.
8029 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8030 (FRAMELESS_FUNCTION_INVOCATION): Use
8031 generic_frameless_function_invocation_not.
8032 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8033 (POP_FRAME): Use vax_pop_frame.
8034
ea74468c
JT
80352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8036
8037 * vax-tdep.c (vax_store_struct_return): New function.
8038 (vax_extract_return_value): Ditto.
8039 (vax_store_return_value): Ditto.
8040 (vax_extract_struct_value_address): Ditto.
8041 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8042 vax_store_struct_return.
8043 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8044 (STORE_RETURN_VALUE): Use vax_store_return_value.
8045 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8046
5516aa92
JT
80472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8048
8049 * vax-tdep.c (vax_frame_saved_pc): New function.
8050 (vax_frame_args_address_correct): Ditto.
8051 (vax_frame_args_address): Ditto.
8052 (vax_frame_locals_address): Ditto.
8053 (vax_frame_num_args): Move code to be in proximity to
8054 other frame-related functions.
8055 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8056 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8057 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8058 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8059 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8060
36af0b35
L
80612002-04-22 H.J. Lu (hjl@gnu.org)
8062
8063 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8064 includedir.
8065
ab62c900
JT
80662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8067
8068 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8069 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8070 (FRAME_INIT_SAVED_REGS): New macro.
8071
7232b100
JT
80722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8073
8074 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8075
b70d2aee
JT
80762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8077
8078 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8079 where needed.
8080 (fetch_osf_core_registers): Likewise.
8081 (supply_gregset): Likewise.
8082
a0e8a2d1 80832002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8084
a0e8a2d1
JB
8085 * symfile.h (get_section_index): Define.
8086 * symfile.c (get_section_index): New function.
8087 * mdebugread.c (SC_IS_SBSS): New macro.
8088 (SC_IS_BSS): Return true for the scBss storage class only, as
8089 the scSBss storage class refers to the .sbss section.
8090 (parse_partial_symbols): Discard the symbols which associated
8091 section does not exist.
8092 Make sure to use the .sbss section index for symbols which
8093 storage class is scBss, rather than using the .bss section index.
8094
51eb8b08
JT
80952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8096
8097 * vax-tdep.c: Update copyright years.
8098 (vax_register_name): New function.
8099 (vax_register_byte): Ditto.
8100 (vax_register_raw_size): Ditto.
8101 (vax_register_virtual_size): Ditto.
8102 (vax_register_virtual_type): Ditto.
8103 * config/vax/tm-vax.h: Update copyright years.
8104 (REGISTER_NAMES): Remove.
8105 (REGISTER_NAME): Define.
8106 (REGISTER_BYTE): Use vax_register_byte.
8107 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8108 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8109 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8110
6cc1c0a8
AC
81112002-04-21 Andrew Cagney <ac131313@redhat.com>
8112
8113 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8114 declaration
8115 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8116
9319a2fe
DM
81172002-04-21 David S. Miller <davem@redhat.com>
8118
8119 * arch-utils.c (generic_prologue_frameless_p): Kill
8120 SKIP_PROLOGUE_FRAMELESS_P code.
8121 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8122 references.
8123 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8124 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8125 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8126 references.
8127 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8128 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8129 (sparc_gdbarch_init): Pass it to
8130 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8131
e9ed6d01
JT
81322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8133
8134 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8135 (alphabsd-nat.o): New dependency list.
8136
36012033
JT
81372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8138
8139 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8140 alphafbsd-tdep.c.
8141 (alpha-linux-tdep.o): New dependency list.
8142 (alphafbsd-tdep.o): Likewise.
8143
3379287a
JT
81442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8147 to here...
8148 * alpha-tdep.c: ...from here.
8149 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8150
4bcbd6cb
JT
81512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8152
8153 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8154 prototype from here...
8155 * alpha-tdep.h: ...to here.
8156
b31da25e
AC
81572002-04-21 Andrew Cagney <ac131313@redhat.com>
8158
8159 * frame.h (selected_frame_level): Document as deprecated.
8160 (frame_relative_level): Declare.
8161 * stack.c (frame_relative_level): New function.
8162 (selected_frame_level): Document as deprecated.
8163 (select_frame): Do not set the selected_frame_level.
8164
8165 * stack.c (frame_info, record_selected_frame): Update.
8166 (frame_command, current_frame_command): Update.
8167 (up_silently_base, up_command, down_silently_base): Update.
8168 (down_command): Update.
8169 * inflow.c (kill_command): Update.
8170 * tracepoint.c (finish_tfind_command): Update.
8171 * corelow.c (core_open): Update.
8172 * thread.c (info_threads_command): Update.
8173 (do_captured_thread_select): Update.
8174 * infcmd.c (finish_command): Update.
8175 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8176
9c1d6fe5
JT
81772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8178
8179 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8180
ab89facf
AC
81812002-04-21 Andrew Cagney <ac131313@redhat.com>
8182
8183 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8184 type const.
8185
82a4efa1
JT
81862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8187
8188 * alphafbsd-tdep.c: Update copyright years. Include
8189 alpha-tdep.h.
8190 (alphafbsd_use_struct_convention): Make static.
8191 (alphafbsd_init_abi): New function.
8192 (_initialize_alphafbsd_tdep): New function.
8193 * config/alpha/tm-fbsd.h: Update copyright years.
8194 (USE_STRUCT_CONVENTION): Remove.
8195
44dffaac
JT
81962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8197
8198 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8199 an Alpha ABI variant.
8200 (alpha_abi_handler_list): Declare.
8201 (alpha_gdbarch_register_os_abi): New function.
8202 (alpha_gdbarch_init): Give registered ABI variant handlers a
8203 chance to tweak the gdbarch once we have set up defaults.
8204 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8205
65585be4
JT
82062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8207
8208 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8209 to standard_coerce_float_to_double.
8210 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8211
d9b023cc
JT
82122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8213
8214 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8215 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8216 from gdbarch_tdep rather than a constant.
8217 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8218 the default text address for all Alpha Unix ABIs.
8219 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8220 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8221
dc129d82
JT
82222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8223
8224 * alpha-tdep.h: New file. Includes several Alpha target constants
8225 taken from...
8226 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8227 let gdbarch deal with.
8228 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8229 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8230 to dependency list.
8231 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8232 Alpha target register names.
8233 * alphabsd-nat.c: Likewise.
8234 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8235 Alpha target register names. Make serveral routines static.
8236 (alpha_get_saved_register): New function.
8237 (alpha_abi_names): New.
8238 (process_note_abi_tag_sections): New function.
8239 (get_elfosabi): New function.
8240 (alpha_gdbarch_init): New function.
8241 (alpha_dump_tdep): New function.
8242 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8243
d49d1e0a
AC
82442002-04-21 Andrew Cagney <ac131313@redhat.com>
8245
8246 * frame.c (find_saved_register): Delete #ifdef
8247 HAVE_REGISTER_WINDOWS code.
8248 * config/sparc/tm-sparc.h: Update comments.
8249 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8250
92e8c9ed
AC
82512002-04-21 Andrew Cagney <ac131313@redhat.com>
8252
8253 * i960-tdep.c (i960_find_saved_register): New function.
8254 (i960_get_saved_register): New function.
8255 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8256 (i960_get_saved_register): Declare.
8257 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8258
e1925118
DM
82592002-04-20 David S. Miller <davem@redhat.com>
8260
8261 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8262
29673b29
AC
82632002-04-20 Andrew Cagney <ac131313@redhat.com>
8264
8265 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8266 instead of NUM_PSEUDO_REGS.
8267
6c86dcd5
DM
82682002-04-20 David S. Miller <davem@redhat.com>
8269
8270 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8271 GDB_MULTI_ARCH_PARTIAL
8272 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8273 define, let tm-sp64.h do it.
8274
aa40ec90
JT
82752002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8276
8277 * frame.c (find_saved_register): Avoid a NULL pointer
8278 dereference and actually walk the frame list.
8279
0f79675b
AC
82802002-04-20 Andrew Cagney <ac131313@redhat.com>
8281
8282 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8283 sorted in most most-recent-used order. Document.
8284 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8285
f91305dd 82862002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8287
8288 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8289 instead of ->prev.
8290 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8291 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8292 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8293 instead of ->prev.
8294
73d322b1
EZ
82952002-04-19 Elena Zannoni <ezannoni@redhat.com>
8296
8297 Fix PR gdb/471.
8298 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8299 (build_builtin_type_vec128): Ditto.
8300 (append_composite_type_field): Fix calculation of type length in
8301 union case.
8302
ccd9a834
EZ
83032002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8304
8305 * config/djgpp/README: Update.
8306
8307 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8308 compiler warnings.
8309
a57f9e49
JT
83102002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8311
8312 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8313 (alpha_setup_arbitrary_frame): ...to this.
8314 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8315 for alpha_setup_arbitrary_frame.
8316
f4f9705a
AC
83172002-04-18 Andrew Cagney <cagney@redhat.com>
8318
8319 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8320 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8321
f4f9705a
AC
8322 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8323 * target.h (memory_breakpoint_from_pc): Update declaration.
8324 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8325
8326 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8327 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8328 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8329 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8330 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8331 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8332 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8333 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8334 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8335 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8336 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8337 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8338
8339 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8340 const pointer.
8341 * monitor.c (monitor_insert_breakpoint): Ditto.
8342 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8343
8344 * config/mcore/tm-mcore.h: Update copyright.
8345 * mem-break.c: Ditto.
8346 * xstormy16-tdep.c: Ditto.
8347
29f319b8
PM
83482002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8349
8350 * p-exp.y: Add precedence rule for '^' token.
8351 This removes the shift/reduce conflicts.
8352 Remove the comment concerning these shift/reduce conflicts.
8353
ebeac11a
EZ
83542002-04-18 Elena Zannoni <ezannoni@redhat.com>
8355
8356 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8357 (registers_powerpc_nofp): New register set for processors
8358 without floating point unit.
8359
27c31547
DM
83602002-04-18 David S. Miller <davem@redhat.com>
8361
8362 * MAINTAINERS: Add myself to write-after-approval.
8363
47a73475
MS
83642002-04-17 Michael Snyder <msnyder@redhat.com>
8365
8366 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8367
953836b2
AC
83682002-04-17 Andrew Cagney <ac131313@redhat.com>
8369
8370 * rs6000-tdep.c (frame_initial_stack_address): Use
8371 frame_register_read to read the alloca_reg.
8372
8b0d4340
AC
83732002-04-17 Andrew Cagney <ac131313@redhat.com>
8374
8375 * frame.c (find_saved_register): Find saved registers in the next
8376 not prev frame.
8377 Fix PR gdb/365.
8378
d8864532
AC
83792002-04-17 Andrew Cagney <ac131313@redhat.com>
8380
8381 * gdbarch.sh (LANG): Set to ``c''.
8382
36cc83a3 83832002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8384
36cc83a3 8385 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8386
2f4150cc 83872002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8388
8389 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8390 Update copyright.
8391
628703c6 8392 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8393 Also fix PR gdb/391.
361d1df0 8394
56157b4a
AC
83952002-04-14 Andrew Cagney <ac131313@redhat.com>
8396
8397 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8398 * aclocal.m4, configure: Re-generate.
8399 Fix PR gdb/391.
361d1df0 8400
6d1e3329
EZ
84012002-04-14 Elena Zannoni <ezannoni@redhat.com>
8402
8403 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8404 instead of tm_print_insn.
8405
cb06fa07
EZ
84062002-04-14 Elena Zannoni <ezannoni@redhat.com>
8407
8408 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8409
f208ba17
AC
84102002-04-14 Andrew Cagney <ac131313@redhat.com>
8411
8412 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8413 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8414 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8415
20f01a46
DH
84162002-04-12 Don Howard <dhoward@redhat.com>
8417
8418 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8419 max_user_call_depth.
8420 (init_cmd_lists): Initialize the new value;
8421 * cli/cli-script.c (execute_user_command): Limit the call depth of
8422 user defined commands. This avoids a core-dump when user commands
8423 are infinitly recursive.
8424
a88376a3
KB
84252002-04-12 Kevin Buettner <kevinb@redhat.com>
8426
8427 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8428 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8429 from tdep struct instead of DEFAULT_LR_SAVE.
8430 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8431 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8432 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8433
f2172603
MS
84342002-04-12 Michael Snyder <msnyder@redhat.com>
8435
694f61fb 8436 * Remote.c: Spelling fix.
20fe79c8
MS
8437 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8438 If no symbol found for "sbrk", try "_sbrk".
8439 (make_output_phdrs): Use bfd_section_name.
8440 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8441 * eval.c: Indentation fix-ups.
169a7369
MS
8442 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8443 in case it gets applied to an address that is already
8444 in the instruction space.
de74f71f
MS
8445 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8446 * symfile.c: Fix indentation, long lines.
f2172603
MS
8447 * source.c: White space fix-up.
8448
cda5a58a
AC
84492002-04-12 Andrew Cagney <cagney@redhat.com>
8450
8451 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8452 * frame.c (frame_register_read): New function. Return non-zero on
8453 success.
8454 (read_relative_register_raw_bytes_for_frame): Delete.
8455 (read_relative_register_raw_bytes): Delete.
8456 * frame.h (frame_register_read): Declare.
8457 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8458 * sh-tdep.c: Ditto.
8459 * infcmd.c (do_registers_info): Ditto.
8460 * hppa-tdep.c: Ditto.
8461 * rs6000-tdep.c: Ditto.
8462 * h8500-tdep.c: Ditto.
8463 * mips-tdep.c: Ditto.
8464 * h8300-tdep.c: Ditto.
8465 * z8k-tdep.c: Ditto.
8466
2ea5f656
KB
84672002-04-12 Kevin Buettner <kevinb@redhat.com>
8468
8469 From Jimi X <jimix@watson.ibm.com>:
8470 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8471 64-bit SysV ABI.
8472
27b15785
KB
84732002-04-12 Kevin Buettner <kevinb@redhat.com>
8474
8475 From Jimi X <jimix@watson.ibm.com>:
8476 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8477 bfd info.
8478
5d57ee30
KB
84792002-04-12 Kevin Buettner <kevinb@redhat.com>
8480
8481 From Jimi X <jimix@watson.ibm.com>:
8482 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8483 register sets for these processor variants.
8484
bc1e36ca
DJ
84852002-04-11 Daniel Jacobowitz <drow@mvista.com>
8486
bc1e36ca
DJ
8487 * regformats/reg-ppc.dat: Support FPSCR.
8488
e3f36dbd
KB
84892002-04-11 Kevin Buettner <kevinb@redhat.com>
8490
8491 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8492 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8493 Add fpscr as an invalid/unfetchable register.
8494 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8495 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8496 (fill_fpregset): Add support for register fpscr.
8497 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8498 (fill_gregset): Account for the fact that register ``mq'' might
8499 not exist.
8500 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8501 (registers_power): Add fpscr to register set at slot 71.
8502 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8503 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8504
943c9c25
MS
85052002-04-11 Michael Snyder <msnyder@redhat.com>
8506
8507 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8508 * configure: Regenerate.
8509 * config.in: Regenerate.
8510 * acconfig.h: Add define for _SYSCALL32.
8511 * core-sol2.c: Remove #define _SYSCALL32.
8512 * solib-legacy.c: Remove #define _SYSCALL32.
8513
d8c0a2e7
AC
85142002-04-10 Andrew Cagney <ac131313@redhat.com>
8515
8516 * stack.c (select_frame): Cleanup internal error message, do not
8517 use %p.
8518
7cc19214
AC
85192002-04-10 Andrew Cagney <ac131313@redhat.com>
8520
8521 * stack.c (select_frame): Check that selected_frame and the
8522 specified level are as expected.
8523 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8524 Update copyright.
8525 * frame.h (struct frame_info): Add field `level'. Update
8526 copyright.
8527 Work-in-progress PR gdb/464.
8528
67a2b77e
AC
85292002-04-10 Andrew Cagney <ac131313@redhat.com>
8530
8531 * maint.c (maint_print_section_info): Rename print_section_info.
8532 (print_bfd_section_info, print_objfile_section_info): Update.
8533 * inferior.h (struct gdbarch): Add opaque declaration.
8534 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8535 * gdbarch.h: Regenerate.
8536
8cfda98c
ML
85372002-04-10 Michal Ludvig <mludvig@suse.cz>
8538
8539 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8540 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8541 (kernel_u_size): Added.
8542 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8543 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8544
ca439ad2 85452002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8546
ca439ad2
JI
8547 * valarith.c (find_size_for_pointer_math): New function, either returns
8548 the size for a pointer's target, returns 1 for void *, or errors for
8549 incomplete types.
8550 (value_add, value_sub): use find_size_for_pointer_math.
8551
2f2893d9
DJ
85522002-04-09 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * linux-low.c (linux_look_up_symbols): New hook.
8555 (linux_target_ops): Add linux_look_up_symbols.
8556 * remote-utils.c (decode_address): New function.
8557 (look_up_one_symbol): New function.
8558 * server.c (handle_query): Call target look_up_symbols hook.
8559 * server.h (look_up_one_symbol): Add prototype.
8560 * target.h (struct target_ops): Add look_up_symbols hook.
8561
96cb11df
AC
85622002-04-09 Andrew Cagney <ac131313@redhat.com>
8563
8564 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8565 override FP_REGNUM with frame->fp. Update copyright.
8566 * parse.c (num_std_regs, std_regs): Delete.
8567 (target_map_name_to_register): Do not search std_regs. Update
8568 function description.
8569 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8570 declarations. Update copyright.
8571 Fix PR gdb/251.
361d1df0 8572
97658e92
DJ
85732002-04-09 Daniel Jacobowitz <drow@mvista.com>
8574
8575 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8576 after the last symbol in a block.
8577
6044e3eb
PM
85782002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8579
8580 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8581 is non zero as a found symbol.
8582
0406ec40
AC
85832002-04-08 Andrew Cagney <ac131313@redhat.com>
8584
8585 * findvar.c: Include "builtin-regs.h".
8586 (value_of_register): Call value_of_builtin_reg when applicable.
8587 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8588 (target_map_name_to_register): Call
8589 builtin_reg_map_name_to_regnum.
8590 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8591 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8592 (builtin_regs_h): Define.
8593 (builtin-regs.o): New target.
8594 (findvar.o): Add $(builtin_regs_h).
8595 * builtin-regs.c, builtin-regs.h: New files.
8596 * std-regs.c: New file.
8597 Partial fix for PR gdb/251.
8598
56a6dfb9
KB
85992002-04-08 Kevin Buettner <kevinb@redhat.com>
8600
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8602 it's no longer required.
8603
3a808432
AC
86042002-04-08 Andrew Cagney <ac131313@redhat.com>
8605
8606 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8607
7c40d541
KB
86082002-04-08 Kevin Buettner <kevinb@redhat.com>
8609
8610 From Jimi X <jimix@watson.ibm.com>:
8611 * rs6000-tdep.c (rs6000_software_single_step): Use
8612 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8613 and size. Use target_insert_breakpoint() and
8614 target_remove_breakpoint() to insert and remove breakpoints
8615 instead of explicit memory reads and writes.
8616
cc9836a8
KB
86172002-04-08 Kevin Buettner <kevinb@redhat.com>
8618
8619 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8620 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8621 ELF_OBJECT_FORMAT ifdef.
8622
7495d1dc
KB
86232002-04-08 Kevin Buettner <kevinb@redhat.com>
8624
8625 From Jimi X <jimix@watson.ibm.com>:
8626 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8627
4288e836
KB
86282002-04-08 Kevin Buettner <kevinb@redhat.com>
8629
8630 From Jimi X <jimix@watson.ibm.com>:
8631 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8632 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8633
a4e4e501
MK
86342002-04-07 Mark Kettenis <kettenis@gnu.org>
8635
8636 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8637 s/asprintf/xasprintf/.
8638 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8639
006defba
AC
86402002-04-07 Andrew Cagney <ac131313@redhat.com>
8641
8642 I believe Jeff Law denies responsability for this one:
8643 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8644 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8645 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8646 Work-around for PR gdb/366.
8647
7aa83cac
EZ
86482002-04-07 Elena Zannoni <ezannoni@redhat.com>
8649
8650 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8651 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8652 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8653
cf1fcca1
EZ
86542002-04-07 Elena Zannoni <ezannoni@redhat.com>
8655
8656 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8657 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8658 information.
8659
3f289e6f
AC
86602002-04-07 Andrew Cagney <ac131313@redhat.com>
8661
8662 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8663 maintainer.
8664
129188f6
AC
86652002-04-07 Andrew Cagney <ac131313@redhat.com>
8666
8667 * README (Reporting Bugs in GDB): Document the bug web page as the
8668 prefered way of submitting bugs.
8669 Fix PR gdb/402.
8670
1200cd6e
AC
86712002-04-06 Andrew Cagney <ac131313@redhat.com>
8672
8673 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8674 -1. Update comment.
8675 * gdbarch.h, gdbarch.c: Re-generate.
8676
2853c33c
AS
86772002-04-07 Andreas Schwab <schwab@suse.de>
8678
8679 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8680 buffer to regcache_collect.
8681
c2169756
AC
86822002-04-06 Andrew Cagney <ac131313@redhat.com>
8683
8684 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8685 * gdbarch.c, gdbarch.h: Re-generate.
8686
25f1b008
AC
86872002-04-06 Andrew Cagney <ac131313@redhat.com>
8688
8689 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8690 declaration. Fix -Werror.
8691
59263426
DJ
86922002-04-05 Daniel Jacobowitz <drow@mvista.com>
8693
8694 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8695 * gdbarch.c: Regenerate.
8696
f5db4da3
MS
86972002-04-05 Michael Snyder <msnyder@redhat.com>
8698
80f8a6eb
MS
8699 * breakpoint.c (clear_command): Rewrite middle section to
8700 combine two loops with identical control conditions.
8701 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8702 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8703
ad3dcc5c
L
87042002-04-05 H.J. Lu (hjl@gnu.org)
8705
8706 * solib-svr4.c (bkpt_names): Add "__start".
8707
f32e7a74
AC
87082002-04-04 Andrew Cagney <ac131313@redhat.com>
8709
8710 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8711 as test for 64 bit target.
8712
8227c0ff
AC
87132002-04-05 Andrew Cagney <ac131313@redhat.com>
8714
8715 * h8500-tdep.c (h8500_write_fp): Delete function.
8716 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8717 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8718 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8720 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8721 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8722 (s390_write_fp):
8723 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8724 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8725 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8726 (d10v_write_fp): Delete function.
8727 * inferior.h (write_fp, generic_target_write_fp): Delete
8728 declarations.
8729 * regcache.c (generic_target_write_fp): Delete function.
8730 (write_fp): Delete function.
8731 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8732 * gdbarch.h, gdbarch.c: Regenerate.
8733 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8734 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8735 (sparc64_write_fp): Delete declaration.
8736 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8737 (h8500_write_fp): Delete declaration.
8738
2757dd86
AC
87392002-04-04 Andrew Cagney <ac131313@redhat.com>
8740
8741 * sparc-tdep.c (sparc64_write_fp): Delete.
8742 (sparc_push_dummy_frame): Replace write_fp call with code to store
8743 the FP directly.
8744 (sparc_gdbarch_init): Do not initialize write_fp.
8745
c69255e1
KB
87462002-04-05 Kevin Buettner <kevinb@redhat.com>
8747
8748 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8749 clause.
8750
ae767bfb
JB
87512002-03-29 Jim Blandy <jimb@redhat.com>
8752
8753 * stack.c (get_selected_block): Add new argument `addr_in_block',
8754 used to return the exact code address we used to select the block,
8755 not just the block.
8756 * blockframe.c (get_frame_block, get_current_block): Same.
8757 * frame.h (get_frame_block, get_current_block,
8758 get_selected_block): Update declarations.
8759 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8760 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8761
84d2ac95
MS
87622002-04-05 Michael Snyder <msnyder@redhat.com>
8763
8764 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8765 warning message.
8766
596aa3bf
JB
87672002-04-05 J. Brobecker <brobecker@gnat.com>
8768
8769 * utils.c (xfullpath): New function.
8770 * defs.h (xfullpath): Add declaration.
8771 * source.c (openp): Use xfullpath in place of gdb_realpath to
8772 avoid resolving the basename part of filenames when the
8773 associated file is a symbolic link. This fixes a potential
8774 inconsistency between the filenames known to GDB and the
8775 filenames it prints in the annotations.
8776 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8777 to be able to match a filename with either the real filename, or
8778 the name of any symbolic link to this file.
8779 (lookup_partial_symtab): Ditto.
8780
c02f5703
MS
87812002-04-04 Michael Snyder <msnyder@redhat.com>
8782
8783 * breakpoint.c: Add support for hardware breakpoints in overlays.
8784 (overlay_events_enabled): New state variable.
8785 (insert_breakpoints): Use overlay_events_enabled to decide
8786 whether to attempt to set a breakpoint at the overlay load addr.
8787 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8788 (remove_breakpoint): Use overlay_events_enabled to decide
8789 whether breakpoints need to be removed from overlay load addr.
8790 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8791 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8792 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8793 disable_overlay_breakpoints): Update overlay_events_enabled.
8794
5fb290d7
DJ
87952002-04-04 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * dwarf2read.c (struct function_range): New.
8798 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8799 (check_cu_functions): New.
8800 (read_file_scope): Initialize global function lists.
8801 Call dwarf_decode_line after processing children.
8802 (read_func_scope): Add to global function list.
8803 (dwarf_decode_lines): Call check_cu_functions everywhere
8804 record_line is called. Call record_line with a linenumber
8805 of 0 to mark sequence ends.
8806
7b3fabf0
ML
88072002-04-04 Michal Ludvig <mludvig@suse.cz>
8808
361d1df0 8809 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8810 change sync with glibc.
8811
bce58c09
JB
88122002-04-03 Jim Blandy <jimb@redhat.com>
8813
8814 * configure.in: Call AC_C_INLINE.
8815 * configure: Regenerated.
361d1df0 8816
2fccf04a
DJ
88172002-04-01 Daniel Jacobowitz <drow@mvista.com>
8818
8819 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8820 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8821
2d1bfe2e
MK
88222002-03-31 Mark Kettenis <kettenis@gnu.org>
8823
a5941fbf
MK
8824 * NEWS: Mention gcore support on FreeBSD/i386.
8825
a90cd31d
MK
8826 * fbsd-proc.c: New file.
8827 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8828 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8829
2d1bfe2e
MK
8830 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8831 while statement.
8832
9eb6e5a1
JB
88332002-03-29 Jim Blandy <jimb@redhat.com>
8834
8835 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8836 unescaped newlines in string literals, but newer ones don't. So
8837 escape them.
8838
f02df580
MS
88392002-03-26 Michael Snyder <msnyder@redhat.com>
8840 Andrew Cagney <cagney@redhat.com>
8841
361d1df0 8842 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8843 restore file to memory.
8844 * cli/cli-dump.h: New file.
8845 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8846 * NEWS: Mention new commands.
f02df580 8847
109f874e
MS
88482002-03-28 Michael Snyder <msnyder@redhat.com>
8849
8850 * symfile.c (symbol_file_add): Move test for null symbols to later.
8851
520f6ade
AC
88522002-03-27 Andrew Cagney <ac131313@redhat.com>
8853
8854 From veksler at il.ibm.com:
8855 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8856 the xstrduped original path.
8857 Fix PR gdb/417.
8858
d4654627
MS
88592002-03-27 Michael Snyder <msnyder@redhat.com>
8860
8861 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8862 * infcmd.c (_initialize_infcmd): Ditto.
8863 * language.c (_initialize_language): Ditto.
8864 * symfile.c (_initialize_symfile): Ditto.
8865 * top.c (_init_main): Ditto.
8866 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8867
6be8bc0c
EZ
88682002-03-27 Elena Zannoni <ezannoni@redhat.com>
8869
8870 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8871 vector registers handling.
8872 (skip_prologue): Handle new AltiVec instructions. Fill in new
8873 fields of frame data.
8874 (frame_get_saved_regs): Fill in information for AltiVec registers.
8875
12af6855
JB
88762002-03-27 Jim Blandy <jimb@redhat.com>
8877
8878 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8879 a function; leave this macro here to invoke that function.
8880 (symbol_init_mangled_name): Declaration for that function.
8881 * symtab.c (symbol_init_mangled_name): New function.
8882
dc672865
AC
88832002-03-27 Andrew Cagney <ac131313@redhat.com>
8884
8885 * valarith.c: Replace strerror with safe_strerror.
8886 * tracepoint.c: Ditto.
8887 * lin-lwp.c: Ditto.
8888 * go32-nat.c: Ditto.
8889 * inflow.c: Ditto.
8890 * gnu-nat.c: Ditto.
8891
d96429cd
AS
88922002-03-27 Andreas Schwab <schwab@suse.de>
8893
8894 * event-top.c (command_line_handler): Remove useless if.
8895
7e336ba1
AJ
88962002-03-27 Andreas Jaeger <aj@suse.de>
8897
8898 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8899 comment.
8900
de220d0f
ML
89012002-03-27 Michal Ludvig <mludvig@suse.cz>
8902
8903 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8904 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8905 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8906 (x86_64_linux_dr_get_status, supply_gregset),
8907 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8908 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8909 (x86_64_register_info_table): Add.
8910 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8911 (x86_64_register_raw_size, x86_64_register_virtual_type),
8912 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8913 general x86_64_register_info_table.
8914 (i386_gdbarch_init): gdbarch_register_bytes is now set
8915 dynamicaly during initialization.
8916 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8917 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8918
0e98d0a7
DJ
89192002-03-27 Daniel Jacobowitz <drow@mvista.com>
8920
8921 * gdbserver/server.c (main): Call target_signal_to_host_p
8922 and target_signal_to_host on signals received from the remote.
8923 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8924 target_signal_from_host on signals sent to the remote.
8925 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8926 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8927
3130066b
DJ
89282002-03-27 Daniel Jacobowitz <drow@mvista.com>
8929
8930 * signals/signals.c: Include "server.h" in gdbserver build.
8931 (target_signal_from_name): Don't use STREQ.
8932 (_initialize_signals): Likewise. Don't include function in
8933 gdbserver build.
8934
9aedf4f4
DJ
89352002-03-27 Daniel Jacobowitz <drow@mvista.com>
8936
8937 * signals.c: Moved to...
8938 * signals/signals.c: Here.
7e336ba1 8939 * Makefile (signals.o): Update.
9aedf4f4 8940
3fa41cdb
JL
89412002-03-26 Jeff Law (law@redhat.com)
8942
8943 * somread.c (som_symtab_read): Remove some commented out code and
8944 updated related comments. Do not set the minimal symbol table to
8945 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8946 in a dynamic executable.
8947 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8948 where we are unable to find the minimal symbol for the given
8949 PC value.
8950
ee677e8d
MS
89512002-03-25 Jeff Law (law@redhat.com)
8952
8953 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8954
e76e1718
ML
89552002-03-25 Michal Ludvig <mludvig@suse.cz>
8956
8957 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8958
18a642a1
AC
89592002-03-23 Andrew Cagney <ac131313@redhat.com>
8960
8961 * command.h: Update copyright.
8962 (struct cmd_list_element): Replace definition with opaque
8963 declaration.
8964 (enum cmd_types): Document that it will eventually be moved to
8965 cli/cli-decode.h
8966 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8967 (MALLOCED_REPLACEMENT): Delete macro.
8968 * Makefile.in (cli_decode_h): Add $(command_h).
8969 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8970 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8971 * completer.c: Include "cli/cli-decode.h".
8972 * maint.c: Include "cli/cli-decode.h".
8973 * cli/cli-decode.h: Include "command.h".
8974 (enum command_class): Delete.
8975 (enum cmd_types): Comment out.
8976 (enum cmd_auto_boolean): Delete.
8977 (enum var_types): Delete.
8978
b2875cc0
AC
89792002-03-23 Andrew Cagney <ac131313@redhat.com>
8980
8981 * cli/cli-decode.c: Include "gdb_assert.h".
8982 (add_set_or_show_cmd): New static function.
8983 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8984 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8985 all fields, such as func, from the set command.
8986
3b45974e
AC
89872002-03-23 Andrew Cagney <ac131313@redhat.com>
8988
8989 * MAINTAINERS (sh-elf): Change warning flag to -w.
8990
823ca731
AC
89912002-03-23 Andrew Cagney <cagney@redhat.com>
8992
8993 * defs.h (error): Add printf format attribute.
8994 * thread-db.c (thread_from_lwp): Fix error format string.
8995 * stack.c (parse_frame_specification): Ditto.
8996 * cli/cli-decode.c (undef_cmd_error): Ditto.
8997 * scm-lang.c (scm_lookup_name): Ditto.
8998 * tracepoint.c (trace_error): Ditto.
8999 * remote-utils.c (usage): Ditto.
9000 * remote.c (compare_sections_command): Ditto.
9001 Fix PR gdb/328.
9002
0e101458
AC
90032002-03-22 Andrew Cagney <ac131313@redhat.com>
9004
9005 * gdbtypes.c (append_composite_type_field): New function.
9006 (init_composite_type): New function.
9007 * gdbtypes.h (append_composite_type_field): Declare.
9008 (init_composite_type): Ditto.
9009
8e0662df
EZ
90102002-03-22 Elena Zannoni <ezannoni@redhat.com>
9011
9012 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9013 function.
8e0662df
EZ
9014 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9015 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9016 structure returning convention for SYSV ABI case, but not
9017 for GNU/Linux, FreeBSD, or NetBSD.
9018
3121eff0
DJ
90192002-03-22 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * symtab.h (lookup_block_symbol): Add mangled_name argument
9022 to prototype.
9023
9024 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9025 with new mangled_name argument.
9026 * linespec.c (decode_line_1): Likewise.
9027 * valops (value_of_this): Likewise.
9028 * symtab.c (lookup_transparent_type): Likewise.
9029 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9030 (lookup_symbol): If we are given a mangled name, pass it down
9031 to lookup_symbol_aux.
9032 (lookup_block_symbol): If we are given a mangled name to check
9033 against, only return symbols which match it.
9034
349b409f
CF
90352002-03-22 Christopher Faylor <cgf@redhat.com>
9036
9037 * win32-nat.c (child_create_inferior): Check for proper shell to use
9038 here, in case the user changes it on the fly.
9039 (_initialize_inftarg): Remove shell path considerations.
9040
2a873819
EZ
90412002-03-21 Elena Zannoni <ezannoni@redhat.com>
9042
9043 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9044 for gdbarch_max_register_raw_size and max_register_virtual_size.
9045 Adjust copyright year.
9046
a1b9830c
DJ
90472002-03-21 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9050 in a function to cover the entire beginning of the function
9051 as well if it does not already.
9052
8b5790f2
TR
90532002-03-21 Tom Rix <trix@redhat.com>
9054
9055 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9056 (rs6000_ptrace64): Renamed from ptrace64.
9057
bdbe5747
MH
90582002-03-20 Martin M. Hunt <hunt@redhat.com>
9059
9060 * gdbserver/remote-utils.c (remote_open): Don't call
9061 getprotobyname, we're all using TCP here so just use
9062 IPPROTO_TCP.
7e336ba1 9063 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9064
90652002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9066
bdbe5747
MH
9067 * regcache.c (_initialize_regcache): No need to call
9068 build_regcache() at this time; it gets called whenever
9069 the gdbarch changes.
9070
7781cd62
DB
90712002-03-20 David O'Brien <obrien@FreeBSD.org>
9072
9073 * sparc-nat.c: Include sys/param.h where possible.
9074
f65ca430
DJ
90752002-03-20 Daniel Jacobowitz <drow@mvista.com>
9076
9077 Fix PR gdb/422.
9078 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9079 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9080 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9081 complex types.
9082 * stabsread.c (rs6000_builtin_type): Likewise.
9083 (read_sun_floating_type): Likewise.
9084
0c867556
PS
90852002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9086
9087 * stabsread.c (read_member_functions): Remove skip code for duplicate
9088 constructor/destructor methods. Use standard parsing for these
9089 methods and just do not chain them to the list of methods after
9090 parsing.
9091
12b9c64f
AO
90922002-03-19 Alexandre Oliva <aoliva@redhat.com>
9093
9094 * coffread.c: Remove redundant static declarations. Replace
9095 occurrences of `PTR' with `void *'.
9096 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9097 * top.h (quit_cover): Likewise.
9098 * defs.h (catch_errors): Likewise.
9099
349c5d5f
AC
91002002-03-18 Andrew Cagney <ac131313@redhat.com>
9101
9102 * defs.h (XMALLOC): Define.
9103 * gdb-events.sh (XMALLOC): Delete macro.
9104 * gdb-events.c, gdb-events.h: Regenerate.
9105 * gdbarch.sh (XMALLOC): Delete macro.
9106 * gdbarch.c: Regenerate.
9107 * serial.c (XMALLOC): Delete macro.
9108 * ui-file.c (XMALLOC): Ditto.
9109 * ser-unix.h (XMALLOC): Ditto.
9110 * sh-tdep.c (XMALLOC): Ditto.
9111 * ui-out.c (XMALLOC): Ditto.
9112 * utils.c (XMALLOC): Ditto.
9113 * i386-tdep.c (XMALLOC): Ditto.
9114 * gdb-events.c (XMALLOC): Ditto.
9115 * d10v-tdep.c (XMALLOC): Ditto.
9116 * cli-out.c (XMALLOC): Ditto.
9117
9118 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9119 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9120 * ui-file.c, ui-out.c: Ditto.
9121
7d0766f3
AC
91222002-03-18 Andrew Cagney <ac131313@redhat.com>
9123
9124 * command.h (struct cmd_list_element): Add field context.
9125 (set_cmd_context, get_cmd_context): Declare.
9126 * cli/cli-decode.h: Ditto.
9127 * cli/cli-decode.c (get_cmd_context): New function.
9128 (set_cmd_context): New function.
9129 (add_cmd): Initialize context.
9130 Part of fixing PR gdb/145 and PR gdb/146.
9131
5913bcb0
AC
91322002-03-17 Andrew Cagney <ac131313@redhat.com>
9133
1868c04e
AC
9134 * cli/cli-decode.c (cmd_type): New function.
9135 * command.h (cmd_type): Declare.
9136 * infrun.c (set_schedlock_func): Call function cmd_type.
9137 * kod.c (kod_set_os): Call cmd_type.
9138 * cris-tdep.c (cris_version_update): Use function cmd_type.
9139 (cris_mode_update, cris_abi_update): Ditto.
9140
5913bcb0
AC
9141 * command.h: (execute_cmd_post_hook): Declare.
9142 (execute_cmd_pre_hook): Declare.
9143 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9144 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9145 functions. Execute pre/post hook while ensuring that afterwords
9146 hook_in is cleared.
9147 * top.c (execute_command): Use execute_cmd_post_hook, and
9148 execute_cmd_pre_hook to execute pre/post commands.
9149 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9150 hook_stop_stub.
9151 (hook_stop_stub): Call execute_cmd_pre_hook.
9152
b51450c9
AC
91532002-03-17 Andrew Cagney <ac131313@redhat.com>
9154
9155 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9156 set'' and this leads to a core dump. Move xstrdup of
9157 operating_system to after check that it is not NULL.
9158
f66c9f11
AC
91592002-03-17 Andrew Cagney <ac131313@redhat.com>
9160
8e694ecf
AC
9161 * kod.c (kod_set_os): Remove unnecessary check that
9162 ``command->type'' is set_cmd.
9163
f66c9f11
AC
9164 * valprint.c (set_input_radix): Use input_radix.
9165 (set_output_radix): Use output_radix.
9166 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9167 isn't reverted.
9168
9d01611c
AC
91692002-03-16 Andrew Cagney <ac131313@redhat.com>
9170
9171 * value.h (struct value): Delete field ``substring_addr''. Change
9172 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9173 force_core_addr_align and force_pointer_aligh.
9174
9175 * value.h (struct value): Fix typo in above change.
9d01611c 9176
4156bb53
PS
91772002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9178
9179 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9180 to fix internal_error from ``maintenance print architecture''.
9181
0e5e3ea6
PS
91822002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9183
9184 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9185 for gcc versions after gcc-2.8.1.
9186
9b013045
PS
91872002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9188
9189 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9190 for method resolution. Restore adjustment of ``this'' pointer after
9191 calling value_struct_elt, which was accidentally removed during the
9192 HP merge.
9193
376c9600
AC
91942002-03-15 Andrew Cagney <ac131313@redhat.com>
9195
9196 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9197 value_of_register.
9198 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9199 get_saved_register.
9200 * value.h (value_of_register): Update.
9201
a4db0f07
RH
92022002-03-14 Richard Henderson <rth@redhat.com>
9203
9204 * configure.in: Detect declaration for canonicalize_file_name.
9205 * utils.c (canonicalize_file_name): Declare, if needed.
9206 (gdb_realpath): Prefer realpath if available and usable.
9207 * config.in, configure: Rebuild.
9208
96383835
RH
92092002-03-14 Richard Henderson <rth@redhat.com>
9210
9211 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9212 a constant array bound.
9213
9214 * MAINTAINERS: Add myself to write-after-approval.
9215
75245b24
MS
92162002-03-14 Michael Snyder <msnyder@redhat.com>
9217
9218 * symfile.c (syms_from_objfile): Return immediately if no syms.
9219 (symbol_file_add): Return immediately if no syms.
9220 (find_sym_fns): Return immediately if no syms.
9221
e641a1ca
ML
92222002-03-13 Michal Ludvig <mludvig@suse.cz>
9223
9224 * gdbserver/remote-util.c (remote_open): Print remote-side's
9225 IP address when remote debugging over the network.
7e336ba1 9226
df08bfec
DB
92272002-03-12 David O'Brien <obrien@FreeBSD.org>
9228
9229 * config/sparc/fbsd.mh: Fix copyright.
9230 * config/sparc/fbsd.mt: Likewise.
9231
9a57864f
RE
92322002-03-11 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * MAINTAINERS: Fix typo in name of gdb warnings option.
9235 (x86-64): Fix formating so that this can be parsed by awk.
9236
dd7bf85e
DJ
92372002-03-10 Daniel Jacobowitz <drow@mvista.com>
9238
9239 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9240 * defs.h: Include "gdb/signals.h".
9241 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9242
33a0a2ac
ML
92432002-03-10 Michal Ludvig <mludvig@suse.cz>
9244
9245 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9246 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9247 from x86-64-tdep.h
9248
dd824b04
DJ
92492002-03-10 Daniel Jacobowitz <drow@mvista.com>
9250 Don Howard <dhoward@redhat.com>
9251
9252 * mips-tdep.c (ST0_FR): Define.
9253 (mips2_fp_compat): New function, temporarily disabled.
9254 (mips_read_fp_register_single): New function.
9255 (mips_read_fp_register_double): New function.
9256 (mips_print_register): Use them.
9257 (do_fp_register_row): Likewise.
9258
6a41ff59
AC
92592002-03-09 Andrew Cagney <ac131313@redhat.com>
9260
9261 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9262 approval''.
9263
4ea09c10
PS
92642002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9265
9266 * stabsread.c (read_member_functions): Fix is_stub test for
9267 static member functions, improve comment.
9268
6ccc741d
RE
92692002-03-07 Richard Earnshaw <rearnsha@arm.com>
9270
9271 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9272 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9273 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9274 commands that set boolean values.
9275 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9276 (arm_rdi_resume): Always initialize PC.
9277 (arm_rdi_open): Don't use rslt as a boolean.
9278 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9279 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9280 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9281 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9282
438013df
AO
92832002-03-06 Alexandre Oliva <aoliva@redhat.com>
9284
9285 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9286 * configure: Rebuilt.
9287
70ed8774
SC
92882002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9289
9290 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9291 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9292
5ba2abeb
AC
92932002-03-06 Andrew Cagney <ac131313@redhat.com>
9294
9295 * cli/cli-decode.c (set_cmd_completer): New function.
9296 * command.h (set_cmd_completer): Declare.
9297 * cli/cli-decode.h (set_cmd_completer): Ditto.
9298
9299 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9300 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9301 * win32-nat.c (_initialize_inftarg): Ditto.
9302 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9303 * proc-api.c (_initialize_proc_api): Ditto.
9304 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9305 * source.c (_initialize_source): Ditto.
9306 * exec.c (_initialize_exec): Ditto.
9307 * solib.c (_initialize_solib): Ditto.
9308 * top.c (init_main): Ditto.
9309 * tracepoint.c (_initialize_tracepoint): Ditto.
9310 * symfile.c (_initialize_symfile): Ditto.
9311 * printcmd.c (_initialize_printcmd): Ditto.
9312 * infcmd.c (_initialize_infcmd): Ditto.
9313 * corefile.c (_initialize_core): Ditto.
9314
f779ca99
AC
93152002-03-05 Andrew Cagney <ac131313@redhat.com>
9316
9317 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9318
01a3934b
AC
93192002-03-05 Andrew Cagney <ac131313@redhat.com>
9320
9321 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9322
37057839
AC
93232002-03-05 Andrew Cagney <ac131313@redhat.com>
9324
9325 * NEWS: Update headings, 5.2 has branched.
9326
c6ecbae5
DJ
93272002-03-04 Daniel Jacobowitz <drow@mvista.com>
9328
9329 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9330 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9331 (register_addr, REGISTER_RAW_SIZE): Likewise.
9332 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9333 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9334
e9f30c21
ML
93352002-03-03 Michal Ludvig <mludvig@suse.cz>
9336
9337 * MAINTAINERS (x86-64): Add myself.
9338 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9339 changed value_ptr -> struct value *
9340
54394ac3
DB
93412002-03-01 David O'Brien <obrien@FreeBSD.org>
9342
9343 * configure.host (sparc64-*-freebsd): Add.
9344 * configure.tgt: Likewise.
9345 * config/sparc/fbsd.mh: New file.
9346 * config/sparc/fbsd.mt: Likewise.
9347 * config/sparc/nm-fbsd.h: Likewise.
9348 * config/sparc/tm-fbsd.h: Likewise.
9349
bfe95955
DJ
93502002-03-01 Daniel Jacobowitz <drow@mvista.com>
9351
9352 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9353 regformats/reg-s390x.dat.
9354
f33c6cbf
AC
93552002-03-01 Andrew Cagney <ac131313@redhat.com>
9356
9357 * utils.c: Add FIXME explaining true/false problem.
9358
5ecaa7dd
AC
93592002-02-28 Andrew Cagney <ac131313@redhat.com>
9360
9361 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9362
2a251cc2
MC
93632002-02-28 Michael Chastain <mec@shout.net>
9364
9365 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9366
6a8031a3 93672002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9368
9369 * gdbserver/linux-s390-low.c: New file.
9370 * regformats/reg-s390.dat: New file.
9371 * regformats/reg-s390x.dat: New file.
9372 * gdbserver/configure.srv: Add S/390.
9373 * gdbserver/Makefile.in: Add S/390.
9374 * configure.tgt: Enable gdbserver for S/390.
9375
ac469903
EZ
93762002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9377
9378 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9379 first line of the doc string for "info dos", except at the end of
9380 the sentence, since the short help stops at the first period.
9381
985cb1a3
JM
93822002-02-28 Jason Merrill <jason@redhat.com>
9383
9384 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9385
c570663e
FF
93862002-02-27 Fred Fish <fnf@redhat.com>
9387
9388 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9389 comment (dumy -> dummy).
9390
43630227
PS
93912002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9392
9393 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9394
b84911e8
RB
93952002-02-27 Rodney Brown <rbrown64@csc.com.au>
9396
9397 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9398
58caa3dc
DJ
93992002-02-27 Daniel Jacobowitz <drow@mvista.com>
9400
9401 * gdbserver/acconfig.h: New file.
9402 * gdbserver/i387-fp.c: New file.
9403 * gdbserver/i387-fp.h: New file.
9404 * gdbserver/linux-x86-64.c: New file.
9405 * regformats/reg-x86-64.dat: New file.
9406 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9407 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9408 * gdbserver/configure.in: Add support for regsets.
9409 * gdbserver/config.in: Regenerate.
9410 * gdbserver/configure: Regenerate.
9411 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9412 * gdbserver/linux-low.h: New file.
9413 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9414 for regsets.
9415 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9416 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9417 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9418 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9419 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9420 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9421 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9422 "i387-fp.h". Add PTRACE_GETREGS and friends.
9423 * gdbserver/regcache.c (supply_register): New function.
9424 (supply_register_by_name): New function.
9425 (collect_register): New function.
9426 (collect_register_by_name): New function.
9427
93652174
DJ
94282002-02-27 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9431 (config.status): Add configure.srv dependency.
9432 (server_h): Add config.h dependency.
9433
a02e4a61
DJ
94342002-02-27 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9437 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9438 * gdbserver/configure.srv: Change i386-*-linux* to use
9439 reg-i386-linux.o.
9440
ce0eebec
AC
94412002-02-26 Andrew Cagney <ac131313@redhat.com>
9442
9443 * x86-64-tdep.c: Re-indent. Update copyright date.
9444
82dbc5f7
AC
94452002-02-26 Andrew Cagney <ac131313@redhat.com>
9446
9447 From Michal Ludvig <mludvig@suse.cz>:
9448 * x86-64-tdep.c (value.h): Delete.
9449 (gdb_assert.h): Include.
9450 (x86_64_register_convert_to_virtual,
9451 x86_64_register_convert_to_raw ): Add check which lets only
9452 floating-point values to be converted.
9453 (value_push): Delete.
9454 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9455 (i386_gdbarch_init): Number of register_bytes fixed.
9456
e4621584
AC
94572002-02-26 Andrew Cagney <ac131313@redhat.com>
9458
9459 * MAINTAINERS: Add x86-64 target.
9460
81a9a963
AC
94612002-02-26 Andrew Cagney <ac131313@redhat.com>
9462
9463 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9464 * osfsolib.c (solib_map_sections): Ditto.
9465 * irix5-nat.c (solib_map_sections): Ditto.
9466 * corelow.c (gdb_check_format): Ditto.
9467 * symfile.c (symfile_bfd_open): Ditto.
9468 * solib.c (solib_map_sections): Ditto.
9469 Fix PR gdb/354.
7e336ba1 9470
0f017ab9
AC
94712002-02-26 Andrew Cagney <ac131313@redhat.com>
9472
9473 * remote.c (_initialize_remote): By default, disable ``e'' and
9474 ``E'' step out-of-range packets.
9475
75738c29
AS
94762002-02-26 Andreas Schwab <schwab@suse.de>
9477
9478 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9479 m68k_linux_frame_saved_pc.
9480 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9481 in_sigtramp.
9482 (SIGCONTEXT_PC_OFFSET): Remove.
9483 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9484 m68k_linux_sigtramp_saved_pc): New functions.
9485 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9486 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9487 (UCONTEXT_PC_OFFSET): Define.
9488 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9489 non-RT and RT signal trampolines.
9490
7e8ed687
RE
94912002-02-26 Richard Earnshaw <rearnsha@arm.com>
9492
9493 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9494 (TARGET_NBPG, STACK_END_ADDR): Delete
9495 (VARIABLES_INSIDE_BLOCK): Delete.
9496
6972bc8b
AC
94972002-02-25 Andrew Cagney <ac131313@redhat.com>
9498
9499 * utils.c (perror_with_name): Make string parameter constant.
9500 (print_sys_errmsg): Ditto.
9501 (query): Ditto.
9502 * defs.h (perror_with_name): Update.
9503 (print_sys_errmsg): Update.
9504 (query): Update.
9505
aa32f823
DJ
95062002-02-25 Daniel Jacobowitz <drow@mvista.com>
9507
9508 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9509 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9510
19caaa45
PS
95112002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9512
9513 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9514 if it already matches the current architecture from the exec file.
9515 Include arch-utils.h for gdbarch_info_init prototype.
9516 * Makefile.in (rs6000-nat.o): Update dependencies.
9517
d951901f
EZ
95182002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9519
9520 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9521 list of exported variables.
9522
7ea81414
DJ
95232002-02-24 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * gdbserver/configure.srv: New file.
9526 * gdbserver/configure.in: Use configure.srv instead
9527 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9528 from it.
9529 * gdbserver/configure: Regenerated.
9530 * gdbserver/terminal.h: New file.
9531 * gdbserver/Makefile.in: Update for configure changes. Remove
9532 more unneeded include paths.
9533
080fe24b
AC
95342002-02-24 Andrew Cagney <ac131313@redhat.com>
9535
9536 From wiz at danbala:
9537 * config/sparc/tm-sp64.h: Fix grammar and typos.
9538 Fix PR gdb/287.
9539
8605d56e
AC
95402002-02-24 Andrew Cagney <ac131313@redhat.com>
9541
9542 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9543 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9544 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9545 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9546 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9547 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9548 * s390-tdep.c: Ditto.
92362027
AC
9549 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9550 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9551 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9552 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9553 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9554 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9555 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9556 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9557 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9558 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9559 Fix PR gdb/378.
7e336ba1 9560
8ed32cc0
AC
95612002-02-23 Andrew Cagney <ac131313@redhat.com>
9562
a3007b6f
AC
9563 * lin-thread.c: Delete file.
9564 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9565 to gdb_proc_service.h.
9566 * configure: Re-generate.
9567
50a9e2f1
AC
9568 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9569 * serial.c (serial_open): Delete check for "ocd".
9570 Fix PR gdb/349.
9571
8b6e7932
AC
9572 * Makefile.in (linux-thread.o): Delete target.
9573 * linux-thread.c: Delete file.
9574
d155c46b
AC
9575 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9576 renamed SH files to be consistent.
9577
8ed32cc0
AC
9578 * symtab.c (sort_search_symbols): Use xfree.
9579
0e18d038
RE
95802002-02-23 Richard Earnshaw <rearnsha@arm.com>
9581
9582 * arm-linux-tdep.c (arm_linux_init_abi): Register
9583 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9584 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9585 definition with undef, since we don't want the sysvr4 definition.
9586 (SKIP_TRAMPOLINE_CODE): Likewise.
9587
27aac7ff
AC
95882002-02-23 Andrew Cagney <ac131313@redhat.com>
9589
9590 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9591
9592 * configure.in: (AC_CHECK_FUNCS) Added test for
9593 canonicalize_file_name Regenerated.
9594 * config.in, configure: Regenerated.
9595 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9596 defined use canonicalize_file_name.
7e336ba1 9597
65a6e0ee
MC
95982002-02-23 Michael Chastain <mec@shout.net>
9599
9600 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9601
47b95330
AC
96022002-02-23 Andrew Cagney <ac131313@redhat.com>
9603
9604 * README: Remove references to cygnus.com.
9605 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9606 dot com'' form. Remove references to cygnus.com and sourceware.
9607
696f451b
AC
96082002-02-23 Andrew Cagney <ac131313@redhat.com>
9609
9610 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9611 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9612 1003.1-2001 no longer allows "head -1".
9613 * gdb/Makefile.in (version.c): Likewise.
9614 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9615 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9616 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9617
bbaca940
AC
96182002-02-23 Andrew Cagney <ac131313@redhat.com>
9619
9620 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9621 * command.h (cmd_cfunc_eq): Declare.
9622 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9623
9624 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9625 ``struct cmd_list_element *''.
9626 * cli/cli-cmds.c (is_complete_command): Update. Use
9627 cmd_cfunc_eq.
9628 * top.c (execute_command): Pass the command to
9629 is_complete_command.
9630 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9631
b8b8b047
AC
96322002-02-23 Andrew Cagney <ac131313@redhat.com>
9633
9634 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9635 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9636 architecture defines.
9637 * s390-tdep.c (s390_gdbarch_init): Likewise.
9638
19d3fc80
RE
96392002-02-23 Richard Earnshaw <rearnsha@arm.com>
9640
9641 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9642 (arm_linux_push_arguments): Likewise.
9643 (arm_linux_init_abi): Register them. Also register linux-specific
9644 call_dummy_words.
9645 (find_minsym_and_objfile): Use strcmp, not STREQ.
9646 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9647 (arm_linux_call_dummy_words): Delete declaration.
9648 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9649 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9650 declarations.
9651 (LOWEST_PC): Delete.
9652
3ab13650
PS
96532002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9654
9655 * maint.c (print_section_info): Do not prepend `0x' to filepos
9656 output, it will be handled by local_hex_string_custom.
9657
19d3fc80 96582002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9659
9660 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9661 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9662 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9663
d85a5daf
JB
96642002-02-22 Jim Blandy <jimb@redhat.com>
9665
9666 Indicate that the bcache functions don't change the strings
9667 they're passed.
9668 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9669 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9670
eeb25b8a
PM
96712002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9672
9673 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9674
6badb179
CF
96752002-02-21 Christopher Faylor <cgf@redhat.com>
9676
9677 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9678 find the complete path to a loaded DLL.
9679
e8717518
FF
96802002-02-21 Fred Fish <fnf@redhat.com>
9681
9682 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9683 that marks the end of the range of a function, enter a line number
9684 entry that has a line number of zero and a PC offset that matches
9685 the end of the function. This starts a range of PC's for which no
9686 line number information is known.
9687 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9688 PC's for which no line number info is found (line number is zero)
9689 then we didn't find any valid line information.
9690 * symtab.h: Document use of zero line number entry.
9691
9abe5450
EZ
96922002-02-21 Elena Zannoni <ezannoni@redhat.com>
9693
9694 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9695 (have_ptrace_getvrregs): Define for run time checks.
9696 (gdb_vrregset_t): New type for Altivec register handling.
9697 (fetch_register, store_register): Fetch/store altivec register
9698 when needed.
9699 (fetch_altivec_register, store_altivec_register): New functions.
9700 (supply_vrregset, fill_vrregset): New functions.
9701 (fetch_altivec_registers, store_altivec_registers): New functions.
9702 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9703 registers as well.
9704
aaa38bb5
AJ
97052002-02-21 Jiri Smid <smid@suse.cz>
9706
9707 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9708
b34db576
RE
97092002-02-21 Richard Earnshaw <rearnsha@arm.com>
9710
9711 * Makefile.in (armnbsd-nat.o): Update dependencies.
9712 * armnbsd-nat.c (supply_gregset): New function. Common code to
9713 supply the integer register set.
9714 (supply_fparegset): New function. Similar for FPA registers.
9715 (fetch_regs, fetch_fp_regs): Use them.
9716 (fetch_core_registers): Likewise.
9717 (fetch_elfcore_registers): New function.
9718 (arm_netbsd_elfcore_fns): New core-file type specification.
9719 (_initialize_arm_netbsd_nat): Register it.
9720
3e56fc4b
RE
97212002-02-21 Richard Earnshaw <rearnsha@arm.com>
9722
9723 * armnbsd-nat.c: Include gdbcore.h.
9724 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9725 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9726 'void' to declaration, to shut up ARI.
9727 (fetch_core_registers): Make static. Rewrite using supply_register.
9728 (arm_netbsd_core_fns): New core-file type specification.
9729 (_initialize_arm_netbsd_nat): New function.
9730
097f6b0b
CF
97312002-02-21 Christopher Faylor <cgf@redhat.com>
9732
9733 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9734 value.
9735
c914e0cc
CF
97362002-02-20 Christopher Faylor <cgf@redhat.com>
9737
9738 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9739 fails.
9740
385fa495
DJ
97412002-02-20 Daniel Jacobowitz <drow@mvista.com>
9742
9743 * jv-exp.y (parse_number): Change type of implicit longs
9744 to builtin_type_uint64.
9745
e5f1222d
DJ
97462002-02-20 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9749 to be an integer instead of a `union wait'.
9750
75c9abc6
DJ
97512002-02-20 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * mips-linux-nat.c: Call the operating system GNU/Linux.
9754 * mips-linux-tdep.c: Likewise.
9755 * mips-tdep.c: Likewise.
9756
551792a5
DJ
97572002-02-20 Daniel Jacobowitz <drow@mvista.com>
9758
9759 Fix PR gdb/265.
9760 * jv-exp.y (parse_number): Handle 64-bit integers.
9761
ee6e2b82
DJ
97622002-02-20 Daniel Jacobowitz <drow@mvista.com>
9763
9764 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9765 AC_STDC_HEADERS to AC_HEADER_STDC.
9766 * gdbserver/configure: Regenerated.
9767
a48442a0
RE
97682002-02-20 Richard Earnshaw <rearnsha@arm.com>
9769
9770 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9771 is defined.
9772 * sparc-tdep.c (get_longjmp_target): Likewise.
9773
fe419ffc
RE
97742002-02-20 Richard Earnshaw <rearnsha@arm.com>
9775
9776 * News: Add news about ARM and Multi-arch. Mention the new target
9777 arm*-*-netbsd*.
9778
5832ed7e
JB
97792002-02-19 Jim Blandy <jimb@redhat.com>
9780
9781 * stabsread.c (error_type_complaint): Improve error message.
9782
84563040
DJ
97832002-02-19 Daniel Jacobowitz <drow@mvista.com>
9784
9785 * gdbserver/README: Update documentation.
9786 * gdbserver/configure.in: Update configury to match documentation.
9787 * gdbserver/Makefile.in: Likewise.
9788 * gdbserver/configure: Regenerated.
9789 * gdbserver/aclocal.m4: New file, generated by aclocal.
9790 * gdbserver/config.in: New file, generated by autoheader.
9791
375fd65b
RE
97922002-02-19 Richard Earnshaw <rearnsha@arm.com>
9793
9794 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9795 armnbsd-nat.c.
9796
08216dd7
RE
97972002-02-19 Richard Earnshaw <rearnsha@arm.com>
9798
9799 * arm-tdep.h (enum arm_float_model): New enum.
9800 (struct gdbarch_tdep): Add fp_model.
9801 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9802 up floating-point conversions until we know the floating-point model
9803 in use by the inferior. Don't complain about being unable to
9804 determine the ABI of the inferior when we don't have one.
9805 (arm_extract_return_value): Support different floating-point models.
9806 (arm_store_return_value): Likewise.
aaa38bb5 9807 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9808 ARM_FLOAT_SOFT.
9809 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9810
65d6d66a
PS
98112002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9812
9813 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9814 of ``current_gdbarch''.
9815
47221191
RE
98162002-02-19 Richard Earnshaw <rearnsha@arm.com>
9817
9818 * armnbsd-nat.c : ANSIfy all function declarations.
9819 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9820 (fetch_inferior_registers): Re-implement in terms of above.
9821 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9822 (store_inferior_registers): Re-implement in terms of above.
9823
fdf39c9a
RE
98242002-02-19 Richard Earnshaw <rearnsha@arm.com>
9825
aaa38bb5 9826 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9827 kernel.
9828 * arm-linux-tdep.c: Likewise.
9829 * config/arm/tm-linux.h: Likewise.
9830
93247f88
RE
98312002-02-19 Richard Earnshaw <rearnsha@arm.com>
9832
9833 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9834 * config/arm/nbsd.mt (TM_FILE): Delete.
9835 * config/arm/tm-nbsd.h: Delete.
9836
d7b486e7
RE
98372002-02-19 Richard Earnshaw <rearnsha@arm.com>
9838
9839 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9840 Initialize CALL_DUMMY_LENGTH.
9841
41d39a95
RE
98422002-02-19 Richard Earnshaw <rearnsha@arm.com>
9843
9844 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9845 function.
9846 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9847 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9848 defines one thing and that is incorrect for this port.
9849 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9850
e1195560
PM
98512002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9852
9853 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9854
c1748f97
PM
98552002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9856
9857 * win32-nat.c (display_selector): New function. Displays information
9858 about the information returned by GetThreadSelectorEntry API function.
9859 (display_selectors): New function. Displays the infomation of
9860 the selector given as argument, or of CS, DS ans FS selectors
9861 if no argument is given.
9862 ( _initialize_inftarg): Add "w32" as info prefix command.
9863 Add "info w32 selector" as command calling display_selectors.
9864
e41e6bbf
PM
98652002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9866
9867 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9868 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9869 if not defined.
9870
0d3a9f48
RE
98712002-02-18 Richard Earnshaw <rearnsha@arm.com>
9872
9873 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9874
3fb4b924
RE
98752002-02-18 Richard Earnshaw <rearnsha@arm.com>
9876
9877 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9878 (arm_fix_call_dummy): Call it.
9879 (arm_call_dummy_breakpoint_offset): Delete.
9880 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9881 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9882
7f55af32
AC
98832002-02-18 Andrew Cagney <ac131313@redhat.com>
9884
9885 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9886 Default to func_frame_chain_valid.
9887 * gdbarch.h, gdbarch.c: Re-generate.
9888 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9889
05f13b9c
EZ
98902002-02-18 Elena Zannoni <ezannoni@redhat.com>
9891
9892 * ppc-linux-nat.c: Update copyright.
9893 (fetch_register, store_register): Add tid parameter, don't compute
9894 tid here.
9895 (fetch_ppc_registers, store_ppc_registers): Add tid
9896 parameter. Pass it along to callees.
9897 (fetch_inferior_registers, store_inferior_registers): Compute tid
9898 here, and pass it to calleed functions.
9899 (fill_gregset, supply_fpregset): Clean up formatting.
9900
d7afb4c9
RE
99012002-02-18 Richard Earnshaw <rearnsha@arm.com>
9902
9903 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9904 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9905
9df628e0
RE
99062002-02-18 Richard Earnshaw <rearnsha@arm.com>
9907
9908 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9909 * gdbarch.c gdbarch.h: Regenerate.
9910 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9911 function.
9912 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9913 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9914 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9915
9916 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9917 * arm-tdep.c (arm_get_longjmp_target): New function.
9918 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9919 this to a positive value register arm_get_longjmp_target as the
9920 longjmp handler.
9921 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9922 (arm_linux_init_abi): Set up longjmp description in tdep.
9923 * armnbsd-nat.c (get_longjmp_target): Delete.
9924 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9925 description in tdep.
9926 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9927 (get_longjmp_target): Delete declaration.
9928 (GET_LONGJMP_TARGET): Delete.
9929 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9930 (GET_LONGJMP_TARGET): Delete.
9931
57bc8964
KB
99322002-02-17 Kevin Buettner <kevinb@redhat.com>
9933
9934 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9935 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9936 of ``current_gdbarch''.
9937
83d31a92
TT
99382002-02-17 Tom Tromey <tromey@redhat.com>
9939
9940 * cli/cli-cmds.c (compare_strings): New function.
9941 (complete_command): Only print each unique item once.
9942 * completer.h (complete_line): Declare.
9943 * completer.c (complete_line): New function.
9944 (line_completion_function): Use it.
9945
17ef5d92
AC
99462002-02-16 Andrew Cagney <ac131313@redhat.com>
9947
9948 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9949 * gdbarch.h, gdbarch.c: Re-generate.
9950
491b8946
DJ
99512002-02-16 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9954
99552002-02-16 Daniel Jacobowitz <drow@mvista.com>
9956
9957 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9958 * valops.c (value_arg_coerce): Don't take the address of a reference
9959 to convert an argument to a reference.
9960
dfe7f3ac
CF
99612002-02-15 Christopher Faylor <cgf@redhat.com>
9962
9963 * win32-nat.c (get_image_name): New function.
9964 (handle_load_dll): Use get_image_name function.
9965 (get_child_debug_event): Avoid registering debug events until possibly
9966 execed process is started.
9967 (child_create_inferior): Allow invocation via shell so that command
9968 line redirection, etc. works ok.
9969 (_initialize_inftarg): Add new command: "set shell" to control whether
9970 a shell is used to start a process.
9971
1d33e73a
DJ
99722002-02-15 Daniel Jacobowitz <drow@mvista.com>
9973
9974 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9975 instead of find_register_by_number.
9976 (cannot_store_register): Likewise.
9977
48cd0caa
PM
99782002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9979
aaa38bb5 9980 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9981 fprintf_unfiltered (gdb_stderr, ...).
9982
8656e7d8
DJ
99832002-02-15 Daniel Jacobowitz <drow@mvista.com>
9984
9985 * gdbserver/gdbserver.1: Document --attach.
9986
66e810cd
RE
99872002-02-15 Richard Earnshaw <rearnsha@arm.com>
9988
9989 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9990 descriptions.
9991 * arm-tdep.c (arm_default_arm_le_breakpoint)
9992 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9993 (arm_default_thumb_be_breakpoint): New. Initialize them from
9994 traditional breakpoint defines.
9995 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9996 (arm_gdbarch_init): Initialize new breakpoint variables.
9997 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9998 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9999 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10000 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10001 code out to ...
10002 (arm_netbsd_init_abi_common): ... here; new function.
10003 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10004 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10005 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10006 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10007
97e03143
RE
100082002-02-15 Richard Earnshaw <rearnsha@arm.com>
10009
10010 * arm-tdep.h (enum arm_abi): New enum.
10011 (struct gdbarch_tdep): New structure.
10012 (LOWEST_PC): Provide a default.
10013 (arm_gdbarch_register_os_abi): Declare new function.
10014 * arm-tdep.c (arm_abi_names): New array.
10015 (process_note_abi_tag_sections): New function.
10016 (get_elfosabi): New function.
10017 (arm_gdbarch_register_os_abi): New function.
10018 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10019 support for that ABI has been built in, then call the appropriate
10020 configuration routine. Use gdbarch_num_regs() to get the number
10021 of registers.
10022 (arm_dump_tdep): New function.
10023 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10024 place-holder functions.
10025 (_initialize_arm_tdep): Register them.
10026 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10027
10028 * armnbsd-tdep.c: New file.
10029 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10030 * config/arm/nbsd.mt (TDEPFILES): Add it.
10031 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10032
10033 * armnbsd-nat.c: Include regcache.h.
10034 * Makefile.in (armnbsd-nat.o): Update dependency list.
10035
10036 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10037
ad68be46
DJ
100382002-02-14 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * gdbserver/Makefile.in: Fix typos in target rules.
10041
003d6d1d
DJ
100422002-02-14 Daniel Jacobowitz <drow@mvista.com>
10043
aaa38bb5 10044 Fix part of PR gdb/267.
003d6d1d
DJ
10045 * linespec.c (find_methods): Handle constructors specially for now.
10046
6b230f1b
CV
100472002-02-14 Corinna Vinschen <vinschen@redhat.com>
10048
10049 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10050 handling.
10051 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10052 standard_coerce_float_to_double().
10053
1ea98d12
CF
100542002-02-14 Christopher Faylor <cgf@redhat.com>
10055
10056 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10057 GDBINIT_FILENAME.
10058
dd47e6fd
EZ
100592002-02-14 Elena Zannoni <ezannoni@redhat.com>
10060
10061 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10062 find_variant_by_name, because it confuses the multiarch
10063 framework. Return NULL if there isn't an architecture with the
10064 user supplied name, instead of forcing a different one without
10065 recording the change with the multiarch machinery.
10066 (find_variant_by_name): Delete.
10067
d7e39b9e
PS
100682002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10069
10070 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10071 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10072
76e42a4f
MH
100732002-02-13 Martin M. Hunt <hunt@redhat.com>
10074
aaa38bb5 10075 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10076 print_frame_info_listing_hook, set current_source_symtab.
10077
0a30fbc4
DJ
100782002-02-14 Daniel Jacobowitz <drow@mvista.com>
10079
10080 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10081 and remove unused $(INCLUDE_DIR).
10082 Add regcache.c to OBS.
10083 Add generated register protocol files to clean target.
10084 Update dependencies for new objects, obsolete old target code.
10085
10086 * gdbserver/linux-low.c: Remove all platform-specific code to
10087 new files. Remove various dead code. Update to use regcache
10088 functionality.
10089 * gdbserver/remote-utils.c (fromhex): Add return statement
10090 to quiet warning.
10091 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10092 constant.
10093 (input_interrupt): Add integer parameter to match prototype
10094 of a signal handler.
10095 (outreg): Use register_data ().
10096 (prepare_resume_reply): Use gdbserver_expedite_regs.
10097 * gdbserver/server.c (main): Dynamically allocate own_buf because
10098 PBUFSIZ is no longer constant. Use registers_to_string () and
10099 registers_from_string ().
10100 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10101 for error (), fatal (), and warning (). Update definition of
10102 PBUFSIZ to use regcache functionality. Add include guard.
10103 * gdbserver/utils.c (fatal): Add missing ``const''.
10104 (warning): New function.
10105
10106 * regformats/regdat.sh: Include "regcache.h" in generated files.
10107 Provide init_registers () function.
10108 * regformats/regdef.h: Add prototype for set_register_cache ().
10109 Add include guard.
10110
10111 * gdbserver/linux-arm-low.c: New file.
10112 * gdbserver/linux-i386-low.c: New file.
10113 * gdbserver/linux-ia64-low.c: New file.
10114 * gdbserver/linux-m68k-low.c: New file.
10115 * gdbserver/linux-mips-low.c: New file.
10116 * gdbserver/linux-ppc-low.c: New file.
10117 * gdbserver/linux-sh-low.c: New file.
10118
10119 * gdbserver/regcache.c: New file.
10120 * gdbserver/regcache.h: New file.
10121
10122 * gdbserver/low-linux.c: Removed obsolete file.
10123
4cc841d0
DJ
101242002-02-14 Daniel Jacobowitz <drow@mvista.com>
10125
10126 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10127 * config/i386/linux.mt: Likewise.
10128 * config/ia64/linux.mt: Likewise.
10129 * config/m68k/linux.mh: Likewise.
10130 * config/powerpc/linux.mh: Likewise.
10131 * config/mips/linux.mt: Likewise.
10132
10133 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10134
10135 * config/i386/i386lynx.mh: Mark gdbserver variables
10136 as (currently) obsolete for this target.
10137 * config/i386/nbsd.mt: Likewise.
10138 * config/i386/nbsdelf.mt: Likewise.
10139 * config/m32r/m32r.mt: Likewise.
10140 * config/m68k/m68klynx.mh: Likewise.
10141 * config/m68k/nbsd.mt: Likewise.
10142 * config/m68k/sun3os4.mh: Likewise.
10143 * config/mips/vr5000.mt: Likewise.
10144 * config/ns32k/nbsd.mt: Likewise.
10145 * config/pa/hppabsd.mh: Likewise.
10146 * config/pa/hppaosf.mh: Likewise.
10147 * config/powerpc/nbsd.mt: Likewise.
10148 * config/rs6000/rs6000lynx.mh: Likewise.
10149 * config/s390/s390.mt: Likewise.
10150 * config/s390/s390x.mt: Likewise.
10151 * config/sparc/sparclynx.mh: Likewise.
10152 * config/sparc/sun4os4.mh: Likewise.
10153 * config/i386/x86-64linux.mt: Likewise.
10154 * config/sparc/linux.mh: Likewise.
10155
a85f51e7
DJ
101562002-02-14 Daniel Jacobowitz <drow@mvista.com>
10157
10158 * configure.tgt: Configure gdbserver only for known working
10159 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10160 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10161 SUBDIRS if it is configured. Update comment for ${nativefile}.
10162 * configure: Regenerated.
10163
65554fef
MS
101642002-02-13 Michael Snyder <msnyder@redhat.com>
10165
670a52db
MS
10166 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10167
6dbdc4a3
MS
10168 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10169 (default_gcore_mach): Just return 0, work around a problem in bfd.
10170 (default_gcore_target): OK to return NULL if exec_bfd is null.
10171 (make_mem_sec): Use a cast, avoid a warning.
10172
10173 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10174 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10175 sizeof (host pointer) != sizeof (target pointer)).
10176 (procfs_make_note_section): Avoid overflow in psargs string.
10177
aaa38bb5 10178 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10179 implementation return an error.
10180
101812002-02-13 Rodney Brown <rbrown64@csc.com.au>
10182
10183 * procfs.c (procfs_make_note_section): Provide a default definition
10184 (for alpha-dec-osf4.0f). Fix typos.
10185
1e4d76e7
EZ
101862002-02-13 Elena Zannoni <ezannoni@redhat.com>
10187
10188 * linux-proc.c: Add include of regcache.h.
10189 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10190
b6d1a1d5
AC
101912002-02-13 Andrew Cagney <ac131313@redhat.com>
10192
10193 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10194 * memattr.c (create_mem_region): Disallow useless empty region.
10195 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10196 non-overlapping.
b6d1a1d5 10197
6c6ea35e
MC
101982002-02-13 Michael Chastain <mec@shout.net>
10199
10200 * defs.h: Kill CONST_PTR.
10201 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10202 * c-lang.c (c_builtin_types): Likewise.
10203 * ch-lang.c (ch_builtin_types): Likewise.
10204 * f-lang.c (f_builtin_types): Likewise.
10205 * language.c (unknown_builtin_types): Likewise.
10206 * m2-lang.c (m2_builtin_types): Likewise.
10207 * p-lang.c (pascal_builtin_types): Likewise.
10208 * scm-lang.c (c_builtin_types): Likewise.
10209
3e0b0f48
KS
102102002-02-13 Keith Seitz <keiths@redhat.com>
10211
10212 * arm-tdep.h (arm_get_next_pc): Add declaration.
10213
67255d04
RE
102142002-02-13 Richard Earnshaw <rearnsha@arm.com>
10215
10216 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10217 with other related struct-returning functions.
10218 (arm_extract_struct_value_address): New function.
10219 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10220 initialize float_format, double_format and long_double_format as
10221 appropriate to the endianness of the target.
10222 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10223 (arm_use_struct_convention): Delete declaration.
10224 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10225
079777f6
KS
102262002-02-13 Keith Seitz <keiths@redhat.com>
10227
10228 * defs.h (core_addr_to_string_nz): New function.
10229
34588f23
MK
102302002-02-13 Mark Kettenis <kettenis@gnu.org>
10231
10232 Apply missing bits of 2002-01-15 patch.
10233 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10234 (fill_fpregset): Use i387_fill_fsave.
10235
49b563f9
KS
102362002-02-12 Keith Seitz <keiths@redhat.com>
10237
49b563f9
KS
10238 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10239 (core_addr_to_string_nz): New function.
10240
aeb98c60
RE
102412002-02-11 Richard Earnshaw <rearnsha@arm.com>
10242
10243 * arm-linux-nat.c: Really include arm-tdep.h.
10244 * config/arm/tm-linux.h (struct type, struct value): Declare.
10245
65554fef
MS
102462002-02-11 Michael Snyder <msnyder@redhat.com>
10247
10248 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10249 (gcore section): Ifdef for Solaris and Unixware only.
10250 (procfs_do_thread_registers): Unixware needs one lwpstatus
10251 per thread (not one prstatus or pstatus).
10252 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10253 not over all gdb threads. For unixware, call elfcore_write_pstatus
10254 once before iterating over threads.
10255
34e8f22d
RE
102562002-02-11 Richard Earnshaw <rearnsha@arm.com>
10257
10258 * arm-tdep.h: New file.
10259 * arm-tdep.c: Include arm-tdep.h.
10260 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10261 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10262 (arm_print_float_info, arm_register_type, convert_to_extended)
10263 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10264 (arm_extract_return_value, arm_register_name): Make static.
10265 (arm_software_single_step): Similarly. Fix types in declaration.
10266 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10267 (arm_store_return_value, arm_store_struct_return): New functions.
10268 (arm_gdbarch_init): Register the above functions. Also register
10269 call_dummy_start_offset, sizeof_call_dummy_words,
10270 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10271 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10272 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10273 prologue_cache.saved_regs here, rather than ...
10274 (_initialize_arm_tdep): ... here.
10275 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10276 declarations.
10277 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10278 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10279 (arm_print_float_info, arm_register_type, convert_to_extended)
10280 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10281 (arm_extract_return_value, arm_register_name): Delete declarations.
10282 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10283 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10284 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10285 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10286 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10287 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10288 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10289 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10290 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10291 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10292 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10293 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10294 interface.
10295 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10296 * remote-rdi.c remote-rdp.c: Likewise.
10297 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10298 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10299 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10300 definition.
10301
10302 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10303 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10304 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10305 from non-ARM_ prefixed definitions.
10306 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10307 all uses of above.
10308 * remote-rdi.c remote-rdp.c: Likewise.
10309 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10310
148754e5
RE
103112002-02-11 Richard Earnshaw <rearnsha@arm.com>
10312
10313 * arm-tdep.c (arm_frameless_function_invocation)
10314 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10315 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10316 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10317 (arm_pop_frame, arm_get_next_pc): Make static.
10318 (arm_gdbarch_init): Register above in gdbarch structure.
10319 (arm_read_fp): Renamed from arm_target_read_fp.
10320 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10321 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10322 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10323 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10324 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10325 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10326 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10327 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10328 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10329 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10330 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10331
434d2d4f
DJ
103322002-02-10 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * symtab.c (compare_search_syms): New function.
10335 (sort_search_symbols): New function.
10336 (search_symbols): Sort symbols after searching rather than
10337 before.
10338
55241689
AC
103392002-02-10 Andrew Cagney <ac131313@redhat.com>
10340
10341 * NEWS: Linux -> GNU/Linux.
10342
028c194b
AC
103432002-02-10 Andrew Cagney <ac131313@redhat.com>
10344
10345 * gdbarch.sh: For for level one methods, disallow a definition
10346 when partially multi-arched. Add comments explaining rationale.
10347 * gdbarch.h: Re-generate.
10348
6acf50cd
AC
103492002-02-10 Andrew Cagney <ac131313@redhat.com>
10350
10351 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10352 multi-arch partial.
aaa38bb5 10353
50248794
AC
103542002-02-10 Andrew Cagney <ac131313@redhat.com>
10355
10356 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10357 field. Use diff -u.
10358 * gdbarch.c: Re-generate.
10359
c30e0066
AC
103602002-02-10 Andrew Cagney <ac131313@redhat.com>
10361
9b56c5f3 10362 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10363 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10364 partial.
10365
6e6d6484
AC
103662002-02-10 Andrew Cagney <ac131313@redhat.com>
10367
10368 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10369 multi-arch partial.
10370 (PUSH_ARGUMENTS): Switch to using predefault.
10371 * gdbarch.c: Regenerate.
10372
c203844d
AC
103732002-02-10 Andrew Cagney <ac131313@redhat.com>
10374
10375 * valops.c (PUSH_ARGUMENTS): Delete definition.
10376 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10377 partial. Default to default_push_arguments.
10378 * gdbarch.h, gdbarch.c: Regenerate.
10379
b5a2688f
AC
103802002-02-09 Andrew Cagney <ac131313@redhat.com>
10381
10382 * defs.h (throw_exception): Rename return_to_top_level. Update
10383 comments.
10384 * utils.c (error_stream, internal_verror, quit): Ditto.
10385 * top.c (throw_exception, catcher): Ditto.
10386 * sparclet-rom.c (sparclet_load): Ditto.
10387 * remote.c (interrupt_query, minitelnet): Ditto.
10388 * remote-sds.c (interrupt_query): Ditto.
10389 * remote-mips.c (mips_error, mips_kill): Ditto.
10390 * ocd.c (interrupt_query): Ditto.
10391 * monitor.c (monitor_interrupt_query): Ditto.
10392 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10393 * target.h: Update comment.
aaa38bb5 10394
b5a2688f 10395 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10396
2fa5c1e0
AC
103972002-02-09 Andrew Cagney <ac131313@redhat.com>
10398
10399 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10400 default_double_format.
10401 * gdbarch.h, gdbarch.c: Re-generate.
10402 * findvar.c (floatformat_unknown): Delete variable definition.
10403 * doublest.h (floatformat_unknown): Delete variable declaration.
10404
da966255
JB
104052002-02-09 Jim Blandy <jimb@redhat.com>
10406
10407 * stabsread.c (read_type): Add code to parse Sun's syntax for
10408 prototyped function types.
10409
123a4891
AC
104102002-02-09 Andrew Cagney <ac131313@redhat.com>
10411
10412 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10413 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10414
fb39c8f3
PS
104152002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10416
10417 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10418 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10419 now _initialize_xcoffsolib gets called again and overrides the
10420 commands from solib.c in a native configuration.
10421
0b87a11d
MK
104222002-02-09 Mark Kettenis <kettenis@gnu.org>
10423
10424 * doublest.c (store_typed_floating): Don't try to return a value.
10425 Fixes PR gdb/290.
10426
bdc2fc72
JB
104272002-02-08 Jim Blandy <jimb@redhat.com>
10428
10429 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10430 is prototyped and has no arguments, print its argument list as
10431 `(void)'.
10432
da69bbcf
CD
104332002-02-08 Chris Demetriou <cgd@broadcom.com>
10434
10435 * MAINTAINERS (write-after-approval): Add myself.
10436 (paper-trail): I've escaped!
aaa38bb5 10437
b69571f5
CF
104382002-02-08 Christopher Faylor <cgf@redhat.com>
10439
10440 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10441 changes.
10442 (_initialize_check_for_gdb_ini): Ditto.
10443
f6871398
MH
104442002-02-08 Martin M. Hunt <hunt@redhat.com>
10445
10446 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10447 xaprintf -> xasprintf.
10448
4e52d31c
PM
104492002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10450
10451 * win32-nat.c: Remove use of printf and sprintf functions.
10452
39bbf761
RE
104532002-02-08 Richard Earnshaw <rearnsha@arm.com>
10454
10455 * arm-tdep.c (arm_frame_chain_valid): Make static.
10456 (arm_push_arguments): Likewise.
10457 (arm_gdbarch_init): New function.
10458 (_initialize_arm_tdep): Call it.
10459 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10460 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10461 (FRAME_CHAIN_VALID): Delete.
10462 (arm_frame_chain_valid): Delete declaration.
10463 (PUSH_ARGUMENTS): Delete.
10464 (arm_push_arguments): Delete declaration.
10465 (CALL_DUMMY_P): Delete.
10466
9c9532c9
CV
104672002-02-08 Andrew Cagney <ac131313@redhat.com>
10468 Corinna Vinschen <vinschen@redhat.com>
10469
10470 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10471 on builtin float types.
10472
4e8f7a8b
DJ
104732002-02-08 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * utils.c: Include <curses.h> before "bfd.h".
10476 * tui/tui-hooks.c: Likewise.
10477 * tui/tui.c: Likewise.
10478 * tui/tuiCommand.c: Likewise.
10479 * tui/tuiData.c: Likewise.
10480 * tui/tuiDataWin.c: Likewise.
10481 * tui/tuiDisassem.c: Likewise.
10482 * tui/tuiGeneralWin.c: Likewise.
10483 * tui/tuiIO.c: Likewise.
10484 * tui/tuiLayout.c: Likewise.
10485 * tui/tuiRegs.c: Likewise.
10486 * tui/tuiSource.c: Likewise.
10487 * tui/tuiSourceWin.c: Likewise.
10488 * tui/tuiStack.c: Likewise.
10489 * tui/tuiWin.c: Likewise.
10490
cd4bffcf
EZ
104912002-02-07 Elena Zannoni <ezannoni@redhat.com>
10492
10493 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10494 to include space for pseudoregs as well. Update loops accordingly.
10495 (sh_fp_frame_init_saved_regs): Ditto.
10496 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10497
26806ce2
AC
104982002-02-07 Andrew Cagney <ac131313@redhat.com>
10499
10500 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10501 Add Richard Earnshaw to Arm maintainers.
10502
97fdab62
AC
105032002-02-07 Andrew Cagney <ac131313@redhat.com>
10504
a6b98203
AC
10505 * defs.h (warning_begin): Delete declaration.
10506
97fdab62
AC
10507 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10508 Delete macro.
10509
78b29b40
MS
105102002-02-07 Michael Snyder <msnyder@redhat.com>
10511
aaa38bb5 10512 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10513 Logic bug, remove misplaced else.
10514
d8849953
KD
105152002-02-07 Klee Dienes <klee@apple.com>
10516
10517 * fork-inferior.c (fork_inferior): Add '!' to the list of
10518 characters that need to be quoted when building a string for the
10519 shell. Quote '!' specifically with a backslash, since CSH chokes
10520 when trying to evaluate "str!str".
aaa38bb5 10521
095778a0
NC
105222002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10523
10524 * rdi-share/host.h: Only provide a typedef for bool if it is not
10525 defined.
10526
1900040c
MS
105272002-02-04 Michael Snyder <msnyder@redhat.com>
10528
10529 * breakpoint.h (enum bptype): Add new overlay event bp type.
10530 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10531
1900040c
MS
10532 * breakpoint.c (create_internal_breakpoint): New function.
10533 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10534 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10535 (create_thread_event_breakpoint): Ditto.
10536 (create_solib_event_breakpoint): Ditto.
10537 (create_overlay_event_breakpoint): New function.
10538 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10539 (update_breakpoints_after_exec): Delete and re-initialize
10540 overlay event breakpoints after an exec. Add FIXME comment
10541 about longjmp breakpoint.
10542 (print_it_typical): Ignore overlay event breakpoints.
10543 (print_one_breakpoint): Ditto.
10544 (mention): Ditto.
10545 (bpstat_what): Do not stop for overlay event breakpoints.
10546 (delete_breakpoint): Don't delete overlay event breakpoints.
10547 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10548 (breakpoint_re_set): Re-create overlay event breakpoint.
10549
10550 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10551 (overlay_manual_command): Disable overlay breakpoints.
10552 (overlay_off_command): Disable overlay breakpoints.
10553
082fc60d
RE
105542002-02-06 Richard Earnshaw <rearnsha@arm.com>
10555
10556 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10557 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10558 to here from config/tm-arm.h.
10559 (coff_sym_is_thumb): Make static.
10560 (arm_elf_make_msymbol_special): New function.
10561 (arm_coff_make_msymbol_special): New function.
10562 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10563 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10564 (coff_sym_is_thumb): Delete declaration.
10565 (arm_elf_make_msymbol_special): Declare.
10566 (arm_coff_make_msymbol_special): Declare.
10567 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10568 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10569
039c5766
RE
105702002-02-06 Richard Earnshaw <rearnsha@arm.com>
10571
10572 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10573
105742002-02-06 Richard Earnshaw <rearnsha@arm.com>
10575
10576 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10577 * gdbarch.c gdbarch.h: Regenerate.
10578 * arch-utils.c (default_print_float_info): New function.
10579 * arch-utils.h (default_print_float_info): Prototype it.
10580 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10581 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10582 (PRINT_FLOAT_INFO): Document it.
10583
10584 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10585 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10586 (PRINT_FLOAT_INFO): Define.
10587
58fa08f0
PM
105882002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10589
aaa38bb5 10590 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10591 Add typecast to sprintf argument to suppress a warning.
10592
7393af7c
PM
105932002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10594
58fa08f0 10595 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10596 to allow easier handling of pass state.
10597 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10598 that gives exception name and address.
10599 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10600 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10601 exceptions added.
aaa38bb5
AJ
10602 (child_continue): Correctly report continue_status.
10603 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10604 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10605 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10606 the exception should be passed to debuggee or not.
10607
6af4589c
MS
106082002-02-05 Michael Snyder <msnyder@redhat.com>
10609
10610 * regcache.c (fetch_register): Call target_fetch_register
10611 only if we don't call FETCH_PSEUDO_REGISTER.
10612 (store_register): Call target_store_register only if we
10613 don't call STORE_PSEUDO_REGISTER.
10614
a2cf933a
EZ
106152002-02-05 Elena Zannoni <ezannoni@redhat.com>
10616
10617 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10618 ELF_MAKE_MSYMBOL_SPECIAL.
10619 * gdbarch.c, gdbarch.h: Regenerate.
10620 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10621 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10622 * elfread.c (elf_symtab_read): Compile use of
10623 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10624 multiarched.
10625 * coffread.c (coff_symtab_read): Ditto, for
10626 COFF_MAKE_MSYMBOL_SPECIAL.
10627
6bb7be43
JB
106282002-02-05 Jim Blandy <jimb@redhat.com>
10629
10630 * solib-svr4.c (svr4_truncate_ptr): New function.
10631 (svr4_relocate_section_addresses): Do the address arithmetic with
10632 the appropriate truncation for target addresses, even when
10633 CORE_ADDR is larger than a target address.
10634
e18651ec
DJ
106352002-02-05 Daniel Jacobowitz <drow@mvista.com>
10636
10637 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10638 to (int *).
10639
6b2725be
DJ
106402002-02-05 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10643 code.
10644
fca9e603
DJ
106452002-02-05 Daniel Jacobowitz <drow@mvista.com>
10646
10647 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10648
6c537a52
DJ
106492002-02-05 Daniel Jacobowitz <drow@mvista.com>
10650
10651 * gdbserver/linux-low.c: Remove unused include files.
10652
d844cde6
DJ
106532002-02-05 Daniel Jacobowitz <drow@mvista.com>
10654
10655 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10656 (read_inferior_memory): Use it.
10657 (write_inferior_memory): Likewise.
10658
d07c63e7
DJ
106592002-02-05 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10662 grubbing through sys_errlist.
10663
da6d8c04
DJ
106642002-02-05 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10667
5b421780
PM
106682002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10669 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10670
9f60d481
AC
106712002-02-04 Andrew Cagney <ac131313@redhat.com>
10672
10673 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10674 (do_sfunc, set_cmd_sfunc): New functions.
10675
10676 * command.h (struct cmd_list_element): Add field func.
10677 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10678 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10679 * cli/cli-decode.h: Ditto.
10680
10681 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10682 (help_all, help_cmd_list): Ditto.
10683 (find_cmd, complete_on_cmdlist): Ditto.
10684 * top.c (execute_command): Ditto.
10685
10686 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10687 function.sfunc.
10688
10689 * infcmd.c (notice_args_read): Fix function signature.
10690
10691 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10692 * cli/cli-decode.c (add_set_cmd): Ditto.
10693 * utils.c (initialize_utils): Ditto.
10694 * maint.c (_initialize_maint_cmds): Ditto.
10695 * infrun.c (_initialize_infrun): Ditto.
10696 * demangle.c (_initialize_demangler): Ditto.
10697 * remote.c (add_packet_config_cmd): Ditto.
10698 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10699 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10700 * proc-api.c (_initialize_proc_api): Ditto.
10701 * kod.c (_initialize_kod): Ditto.
10702 * valprint.c (_initialize_valprint): Ditto.
10703 * top.c (init_main): Ditto.
10704 * infcmd.c (_initialize_infcmd): Ditto.
10705 * corefile.c (_initialize_core): Ditto.
10706 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10707 * arch-utils.c (initialize_current_architecture): Ditto.
10708 (_initialize_gdbarch_utils): Ditto.
10709 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10710
10711 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10712 * wince.c (_initialize_inftarg): Ditto.
10713 * symfile.c (_initialize_symfile): Ditto.
10714 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10715 * language.c (_initialize_language): Ditto.
10716 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10717
f9ba0717
MS
107182002-02-04 Michael Snyder <msnyder@redhat.com>
10719
10720 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10721
0c74b2a7
DJ
107222002-02-04 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10725 Add rules for building the register data files.
10726
c638789f
DJ
107272002-02-04 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * regformats/regdat.sh: Add braces to the definition of
10730 expedite_regs_${arch}.
10731
db253027
DJ
107322002-02-04 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * regformats/regdef.h (struct reg): Add comment describing the
10735 requirements for offset and size fields.
10736
206be19c
AS
107372002-02-04 Andreas Schwab <schwab@suse.de>
10738
10739 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10740 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10741
181c1381
RE
107422002-02-04 Richard Earnshaw <rearnsha@arm.com>
10743
10744 * gdbarch.sh (copyright): Update years in generated header.
10745 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10746 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10747 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10748 * dbxread.c: Likewise.
10749 * dwarfread.c: Likewise.
10750 * elfread.c: Likewise.
10751 * somread.c: Likewise.
10752
10753 * arm-tdep.c (arm_smash_text_address): New function.
10754 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10755
fa4ba8da
PM
107562002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10757
10758 Add support for hardware watchpoints on win32 native.
aaa38bb5 10759 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10760 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10761 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10762 of debug registers.
10763 (debug_registers_changed): New variable. Reflects when debug registers
10764 are changed and need to be written to inferior.
aaa38bb5 10765 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10766 was set, used when new threads are created.
10767 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10768 i386-nat code.
10769 (thread_rec): Set dr array if id is the thread of current_event .
10770 (child_continue, child_resume): Change the debug registers for all
10771 threads if debug_registers_changed.
10772 (child_add_thread): Change the debug registers if debug_registers_used.
10773 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10774 Link nm.h to new nm-cygwin.h file.
10775 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10776 of hardware registers.
10777
a73c86fb
AC
107782002-02-03 Andrew Cagney <ac131313@redhat.com>
10779
10780 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10781 Restore behavour broken by 2002-01-20 Andrew Cagney
10782 <ac131313@redhat.com> IEEE_FLOAT removal.
10783
acf5ed49
DJ
107842002-02-03 Daniel Jacobowitz <drow@mvista.com>
10785
10786 * c-valprint.c (c_val_print): Pass a proper valaddr to
10787 cp_print_class_method.
10788 * valops.c (search_struct_method): If there is only one method
10789 and args is NULL, return that method.
10790
493d28d5
DJ
107912002-02-03 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10794 accessing tag_name directly.
10795
7495dfdb
DJ
107962002-02-03 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10799 of accessing tag_name directly.
10800
dd6bda65
DJ
108012002-02-03 Daniel Jacobowitz <drow@mvista.com>
10802
10803 PR gdb/280
10804 * gdbtypes.c (replace_type): New function.
10805 * gdbtypes.h (replace_type): Add prototype.
10806 * stabsread.c (read_type): Use replace_type.
10807
88fe217c
RE
108082002-02-03 Richard Earnshaw <rearnsha@arm.com>
10809
10810 * Makefile.in (memattr.o): Add missing dependencies rule.
10811
e5d66720
PS
108122002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10813
10814 * breakpoint.c (break_at_finish_command): Really export.
10815 (break_at_finish_at_depth_command): Ditto.
10816 (tbreak_at_finish_command): Ditto.
10817 * hppa-tdep.c: Include completer.h.
10818 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10819 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10820
fffee0be
AC
108212002-02-01 Andrew Cagney <ac131313@redhat.com>
10822
10823 * utils.c (do_write): New function.
10824 (error_stream): Rewrite combining the code from error_begin and
10825 verror.
10826 (verror): Rewrite using error_stream.
10827 (error_begin): Delete function.
10828
255e7dbf
AC
108292002-02-01 Andrew Cagney <ac131313@redhat.com>
10830
10831 * utils.c (error_begin): Make static.
10832 * defs.h (error_begin): Delete declaration.
10833
10834 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10835 (decode_line_1): Use cplusplus_error instead of error_begin,
10836 cplusplus_hint and return_to_top_level.
10837 * coffread.c (coff_symfile_read): Use error instead of error_begin
10838 and return_to_top_level.
10839 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10840
ddfe3c15
AC
108412002-02-01 Andrew Cagney <ac131313@redhat.com>
10842
10843 * language.h (type_error, range_error): Make string parameter
10844 constant.
10845 * language.c (warning_pre_print): Delete extern declaration.
10846 * dwarfread.c (warning_pre_print): Ditto.
10847 * language.c (type_error, range_error): Rewrite to use verror and
10848 vwarning instead of warning_begin.
10849
03ac34d5
MS
108502002-02-01 Michael Snyder <msnyder@redhat.com>
10851
261c4ca2
MS
10852 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10853 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10854
e00d1dc8
AC
108552002-02-01 Andrew Cagney <ac131313@redhat.com>
10856
10857 * command.h (NO_FUNCTION): Delete macro.
10858 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10859 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10860 * tracepoint.c (_initialize_tracepoint): Ditto.
10861 * cli/cli-decode.c (add_set_cmd): Ditto.
10862 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10863
76b79d6e
DJ
108642002-02-01 Daniel Jacobowitz <drow@mvista.com>
10865
10866 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10867 Update ``this'' pointer when calling virtual functions.
10868
799f9e91
MS
108692002-02-01 Michael Snyder <msnyder@redhat.com>
10870
c7bd442c 10871 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10872 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10873
3cf384d4
DJ
108742002-02-01 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * regformats/reg-arm.dat: New file.
10877 * regformats/reg-i386.dat: New file.
10878 * regformats/reg-ia64.dat: New file.
10879 * regformats/reg-m68k.dat: New file.
10880 * regformats/reg-mips.dat: New file.
10881 * regformats/reg-ppc.dat: New file.
10882 * regformats/reg-sh.dat: New file.
10883 * regformats/regdef.h: New file.
10884 * regformats/regdat.sh: New file.
10885
0defa245
RE
108862002-02-01 Richard Earnshaw <reanrsha@arm.com>
10887
10888 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10889 (arm_frame_args_address, arm_frame_locals_address): New functions.
10890 (arm_frame_num_args): New function.
10891 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10892 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10893 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10894
405f26e6
MS
108952002-01-31 Michael Snyder <msnyder@redhat.com>
10896
502fd408
MS
10897 * breakpoint.c (break_at_finish_command): Export.
10898 (break_at_finish_at_depth_command): Export.
10899 (tbreak_at_finish_command): Export.
d6020d45 10900 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10901 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10902 "txbreak" commands, which are HPPA specific.
502fd408 10903
7d35e135
MS
10904 * printcmd.c (disassemble_command): Remove an ancient
10905 artifact of an old merge.
10906
aaa38bb5 10907 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10908 Define enum constant values for overlay mode.
10909 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10910 (overlay_is_mapped, overlay_auto_command,
10911 overlay_manual_command): Ditto.
d874f1e2 10912
aaa38bb5
AJ
10913 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10914 breakpoint_here_p, breakpoint_inserted_here_p,
10915 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10916 describe_other_breakpoints, check_duplicates, clear_command):
10917 Coding standard fixes.
10918
8add0441 10919 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10920 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10921 code: check bfd SEC_READONLY flag for section.
10922
e351066e
AC
109232002-01-31 Andrew Cagney <ac131313@redhat.com>
10924
7d35e135 10925 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10926
8a48e967
DJ
109272002-01-30 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10930 data symbols, since we search based on textlow and texthigh.
10931 (find_pc_sect_symtab): Likewise.
10932
f5a96129
AC
109332002-01-30 Andrew Cagney <ac131313@redhat.com>
10934
10935 * defs.h (vwarning): Declare.
f5a96129
AC
10936 * utils.c (vwarning): New function.
10937 (warning): Call vwarning.
10938 (warning_begin): Delete function.
10939
10940 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10941 the warning message.
10942 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10943 warning_begin.
10944
cefd4ef5
MS
109452002-01-30 Michael Snyder <msnyder@redhat.com>
10946
1a703748
MS
10947 * NEWS: Mention "set trust-readonly-sections" command.
10948 Mention generate-core-file command.
cefd4ef5 10949
3a11626d
MS
109502002-01-15 Michael Snyder <msnyder@redhat.com>
10951
10952 * target.c: New command, "set trust-readonly-sections on".
10953 (do_xfer_memory): Honor the suggestion to trust readonly sections
10954 by reading them from the object file instead of from the target.
10955 (initialize_targets): Register command "set trust-readonly-sections".
10956
d1c7e53b
AC
109572002-01-29 Andrew Cagney <ac131313@redhat.com>
10958
10959 * parse.c (target_map_name_to_register): Simplify, search regs and
10960 pseudo-regs using a single loop.
10961
e2c9a72c
AC
109622002-01-30 Andrew Cagney <ac131313@redhat.com>
10963
10964 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10965
69824b4e
MK
109662002-01-15 Rodney Brown <rbrown64@csc.com.au>
10967
10968 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10969 * config/i386/i386v42mp.mh: Add i387-nat.o .
10970 * i386v4-nat.c: Include i387-nat.h.
10971 (supply_fpregset): Use i387_supply_fsave.
10972 (fill_fpregset): Use i387_fill_fsave.
10973
6eb69eab
RE
109742002-01-30 Richard Earnshaw <rearnsha@arm.com>
10975
10976 * arm-tdep.c (arm_call_dummy_words): Define.
10977 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10978 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10979 (CALL_DUMMY_WORDS): Define.
10980 (arm_call_dummy_words): Declare.
10981 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10982 (arm_linux_call_dummy_words): Declare.
10983
9852326a
AS
109842002-01-30 Andreas Schwab <schwab@suse.de>
10985
10986 * m68klinux-nat.c: Fix last change to use regcache_collect
10987 instead of referencing registers[] directly.
10988
977a3030
AC
109892002-01-29 Andrew Cagney <ac131313@redhat.com>
10990
10991 * parse.c (target_map_name_to_register): Delete code wrapped in
10992 #ifdef REGISTER_NAME_ALIAS_HOOK.
10993
2076c72b
MS
109942002-01-28 Michael Snyder <msnyder@redhat.com>
10995
10996 * regcache.c (legacy_read_register_gen): Need to be able to
10997 read pseudo-register as well as real register.
10998 (legacy_write_register_gen): Ditto.
10999
8fcc723b
AC
110002002-01-28 Andrew Cagney <ac131313@redhat.com>
11001
11002 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11003 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11004 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11005 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11006 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11007 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11008 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11009 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11010 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11011 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11012 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11013 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11014 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11015 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11016 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11017 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11018 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11019 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11020 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11021 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11022
afe64c1a
AC
110232002-01-28 Andrew Cagney <ac131313@redhat.com>
11024
11025 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11026 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11027 (initialize_current_architecture): Update target_byte_order using
11028 information from BFD.
aaa38bb5 11029 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11030 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11031
75bc7ddf
AC
110322002-01-28 Andrew Cagney <ac131313@redhat.com>
11033
11034 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11035 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11036
11037 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11038 #ifdef INVALID_FLOAT.
11039 * infcmd.c (do_registers_info): Ditto.
11040 * values.c (unpack_double): Ditto. Add comment.
11041
11042 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11043 already commented out.
11044
0280a90a
AS
110452002-01-26 Andreas Schwab <schwab@suse.de>
11046
11047 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11048 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11049 registers and add support for PTRACE_GETREGS.
11050
7072a954
AC
110512002-01-24 Andrew Cagney <ac131313@redhat.com>
11052
11053 GDB 5.1.1 released from 5.1 branch.
11054 * NEWS: Add 5.1.1 news.
11055 * README: Sync with 5.1 branch.
11056
86f902e0
FF
110572002-01-23 Fred Fish <fnf@redhat.com>
11058
11059 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11060 stabstring on initial malloc. Reallocing will copy it for us,
11061 if necessary.
11062
8af51c36
EZ
110632002-01-23 Elena Zannoni <ezannoni@redhat.com>
11064
aaa38bb5 11065 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11066 (HFILES_NO_SRCDIR): Remove hpread.h.
11067 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11068 (hpread.o): Update dependencies.
11069 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11070
11071 * hp-psymtab-read.c: Remove file.
11072 * hp-symtab-read.c: Remove file.
11073 * hpread.h: Remove file.
11074
11075 * hpread.c: Merge all contents of hp-psymtab-read.c,
11076 hp-symtab-read.c and hpread.h into this file, as it was prior to
11077 January 1999.
11078
11079 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11080 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11081 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11082 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11083
dc5cfeb6
EZ
110842002-01-23 Elena Zannoni <ezannoni@redhat.com>
11085
11086 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11087 fill_gregset): Call gdbarch_tdep() just once, assign result to
11088 variable and use that, instead of calling the function several
11089 times.
11090
ea87b71b
AO
110912002-01-24 Alexandre Oliva <aoliva@redhat.com>
11092
11093 * configure.host: Accept sparcv9 as alias for sparc64.
11094 * configure.tgt: Likewise.
11095
13fc0c2f
KB
110962002-01-22 Kevin Buettner <kevinb@redhat.com>
11097
11098 * solib-aix5.c (build_so_list_from_mapfile)
11099 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11100 arguments is not reversed.
11101 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11102 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11103
7bd872fe
EZ
111042002-01-22 Elena Zannoni <ezannoni@redhat.com>
11105
11106 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11107 modified version of obsolete sh_fetch_pseudo_register.
11108 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11109 (sh4_register_read): New function.
11110 (sh_pseudo_register_write): New function. Renamed and modified
11111 version of obsolete sh_store_pseudo_register.
11112 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11113 (sh4_register_write): New function.
11114 (sh_gdbarch_init): Remove setting of gdbarch function
11115 fetch_pseudo_register and store_pseudo_register. Remove setting of
11116 register_convert_to_raw, register_convert_to_virtual,
11117 register_convertible.
11118 (sh_sh4_register_convertible): Delete. No longer needed. All is
11119 taken care by architecture specific functions
11120 register_read/register_write.
11121 (sh_sh4_register_convert_to_virtual): Make static.
11122 (sh_sh4_register_convert_to_raw): Ditto.
11123
069e84fd
AC
111242002-01-22 Andrew Cagney <ac131313@redhat.com>
11125
11126 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11127 (floatformat_is_nan, floatformat_mantissa): Ditto.
11128
11129 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11130 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11131 builtin_type_ieee_double_little,
11132 builtin_type_ieee_double_littlebyte_bigword,
11133 builtin_type_m68881_ext, builtin_type_i960_ext,
11134 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11135 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11136 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11137 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11138
211a4f69
CV
111392002-01-22 Corinna Vinschen <vinschen@redhat.com>
11140
11141 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11142 parameter. Set frameless flag if it exists and depended of
11143 whether the scanned function is frameless or not.
11144 (xstormy16_skip_prologue): If function is frameless, return
11145 result of xstormy16_scan_prologue().
11146 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11147 call.
11148
f81353e4
EZ
111492002-01-21 Elena Zannoni <ezannoni@redhat.com>
11150
11151 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11152 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11153 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11154 sh_sh4_register_byte, sh_sh4_register_raw_size,
11155 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11156 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11157 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11158 sh_store_pseudo_register, sh_do_pseudo_register): Call
11159 gdbarch_tdep() just once, assign result to variable and use that,
11160 instead of calling the function several times.
11161
63c73a17
MK
111622002-01-20 Mark Kettenis <kettenis@gnu.org>
11163
11164 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11165 macros instead of LAST_FPU_CTRL_REGNUM.
11166 (store_register): Likewise.
11167
39ad761d
JB
111682002-01-21 Jim Blandy <jimb@redhat.com>
11169
11170 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11171 is up-to-date before running the program, not just when a program
11172 exits.
11173
3d74b771
FF
111742002-01-21 Fred Fish <fnf@redhat.com>
11175
11176 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11177 when we have found all instructions we are looking for.
11178
966fbf70
RE
111792002-01-21 Richard Earnshaw <rearnsha@arm.com>
11180
11181 * arm-tdep.c (arm_register_name): New function.
11182 (arm_registers_names): Make static.
11183 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11184 (arm_register_name): Declare.
11185 (REGISTER_NAME): Use it.
11186
c3b4394c
RE
111872002-01-21 Richard Earnshaw <rearnsha@arm.com>
11188 Kevin Buettner <kevinb@redhat.com>
11189
11190 Convert arm targets to new FRAME interface.
11191 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11192 (arm_frame_find_save_regs): Delete.
11193 (arm_frame_init_saved_regs): New.
11194 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11195 Allocate extra_info as required. Convert all uses of fsr.regs
11196 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11197 to use extra_info.
11198 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11199 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11200 (check_prologue_cache, save_prologue_cache): Likewise.
11201 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11202 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11203 (FRAME_FIND_SAVED_REGS): Delete.
11204 (arm_frame_find_saved_regs): Delete prototype.
11205 (arm_frame_init_saved_regs): New prototype.
11206 (FRAME_INIT_SAVED_REGS): Define.
11207
61d99182
AC
112082002-01-20 Andrew Cagney <ac131313@redhat.com>
11209
11210 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11211
6aaea291
AC
112122002-01-20 Andrew Cagney <ac131313@redhat.com>
11213
11214 From Jeff Law <law@redhat.com>:
11215 * infttrace.c: Include <sys/pstat.h>.
11216 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11217 exec file if the ttrace equivalent fails.
11218
15f698d2
AC
112192002-01-20 Andrew Cagney <ac131313@redhat.com>
11220
11221 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11222 (closeLogFile): Ditto.
11223
f86ddd7c
MC
112242002-01-20 Michael Chastain <mec@shout.net>
11225
11226 * top.c (print_gdb_version): Bump copyright year to 2002.
11227
904507ce
AC
112282002-01-20 Andrew Cagney <ac131313@redhat.com>
11229
11230 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11231 Zannoni and Eli Zaretskii.
11232
d7f0b9ce
DJ
112332002-01-20 Daniel Jacobowitz <drow@mvista.com>
11234
11235 * buildsym.c: Update copyright years.
11236 * c-typeprint.c: Likewise.
11237 * dwarf2read.c: Likewise.
11238 * f-typeprint.c: Likewise.
11239 * gdbtypes.c: Likewise.
11240 * gdbtypes.h: Likewise.
11241 * hp-symtab-read.c: Likewise.
11242 * hpread.c: Likewise.
11243 * mdebugread.c: Likewise.
11244 * p-typeprint.c: Likewise.
11245
3fd3d7d2
AC
112462002-01-20 Andrew Cagney <ac131313@redhat.com>
11247
11248 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11249 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11250 byte-order selectable.
11251 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11252 * arch-utils.c: Ditto.
11253 (set_endian): Ditto.
11254 (set_endian_from_file): Ditto.
11255 * gdbserver/low-sim.c (create_inferior): Ditto.
11256 * gdbarch.sh: Ditto.
11257 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11258 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11259 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11260 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11261 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11262 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11263 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11264 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11265 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11266 macro definition.
11267 * config/mips/tm-wince.h: Remove #undef of macro
11268 TARGET_BYTE_ORDER_SELECTABLE.
11269 * config/sh/tm-wince.h: Ditto.
11270
b02dede2
DJ
112712002-01-20 Daniel Jacobowitz <drow@mvista.com>
11272
11273 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11274 member function fields. Add accessor macro
11275 TYPE_FN_FIELD_ARTIFICIAL.
11276 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11277 * c-typeprint.c (c_type_print_base): Skip artificial member
11278 functions.
11279
c3643761
DJ
112802002-01-20 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * f-typeprint.c: Delete unused function f_type_print_args.
11283 * p-typeprint.c: Delete unused function pascal_type_print_args.
11284
8176bb6d
DJ
112852002-01-20 Daniel Jacobowitz <drow@mvista.com>
11286
11287 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11288 comment. Add ``artificial'' to ``union field_location''.
11289
11290 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11291
11292 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11293 * mdebugread.c (parse_symbol): Likewise.
11294 * stabsread.c (define_symbol): Likewise.
11295 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11296 initializing TYPE_FIELD_BITPOS to n (obsolete).
11297 (hpread_doc_function_type): Likewise.
11298 * hpread.c (hpread_function_type): Likewise.
11299
7fd60527
AC
113002002-01-20 Andrew Cagney <ac131313@redhat.com>
11301
11302 * configure.in (host_makefile_frag): Only require a host makefile
11303 fragment when a native build.
11304 * configure: Re-generate.
11305
c2f05ac9
AC
113062002-01-20 Andrew Cagney <ac131313@redhat.com>
11307
11308 * doublest.h (floatformat_from_type): Declare.
11309 * doublest.c (floatformat_from_type): New function.
11310 (convert_typed_floating): Use.
11311
11312 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11313 call to function floatformat_from_type.
11314
11315 * gdbarch.sh (IEEE_FLOAT): Delete.
11316 * gdbarch.h, gdbarch.c: Re-generate.
11317 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11318 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11319 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11320 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11321 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11322 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11323 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11324 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11325 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11326 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11327 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11328 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11329
11330 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11331 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11333 * sh-tdep.c (sh_gdbarch_init): Ditto.
11334 * mips-tdep.c (mips_gdbarch_init): Ditto.
11335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11336 * cris-tdep.c (cris_gdbarch_init): Ditto.
11337
abf22e64
AJ
113382002-01-20 Jiri Smid <smid@suse.cz>
11339
11340 * configure.host, configure.tgt: Support x86-64.
11341 * NEWS: Note new target x86-64.
11342
b7c4cbf8
AJ
11343 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11344 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11345 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11346 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11347 x86-64-linux-nat.o): Fix dependencies.
11348
82600034
AC
113492002-01-19 Andrew Cagney <ac131313@redhat.com>
11350
11351 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11352 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11353 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11354 * config/sparc/xm-sun4os4.h: Delete file.
11355 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11356
bbe5c628
AC
113572002-01-19 Andrew Cagney <ac131313@redhat.com>
11358
11359 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11360 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11361 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11362 * config/i386/i386lynx.mh (XM_FILE): Delete.
11363 * config/rs6000/xm-rs6000ly.h: Delete file.
11364 * config/sparc/xm-sparclynx.h: Delete file.
11365 * config/m68k/xm-m68klynx.h: Delete file.
11366 * config/i386/xm-i386lynx.h: Delete file.
11367 * config/xm-lynx.h: Delete file.
11368 * config/djgpp/fnchange.lst: Update.
11369
f8453e34
JT
113702002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11371
11372 * alpha-tdep.c (alpha_register_byte): New function.
11373 (alpha_register_raw_size): Ditto.
11374 (alpha_register_virtual_size): Ditto.
11375 (alpha_skip_prologue_internal): Renamed from
11376 alpha_skip_prologue.
11377 (alpha_skip_prologue): New version that calls
11378 alpha_skip_prologue_internal.
11379 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11380 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11381 second argument from alpha_skip_prologue.
11382 (REGISTER_BYTE): Use alpha_register_byte.
11383 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11384 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11385 (FRAMELESS_FUNCTION_INVOCATION): Use
11386 generic_frameless_function_invocation_not.
11387 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11388 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11389
52d9e613
AC
113902002-01-19 Andrew Cagney <ac131313@redhat.com>
11391
11392 * config/mips/xm-news-mips.h: Delete file.
11393 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11394
11395 * config/m88k/xm-m88k.h: Delete file.
11396 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11397 * config/m88k/xm-delta88v4.h: Ditto.
11398 * config/m88k/xm-delta88.h: Ditto.
11399
11400 * config/alpha/xm-fbsd.h: Delete file.
11401 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11402
11403 * config/sparc/xm-sparc.h: Delete file.
11404 * Makefile.in (xm-sun4os4.h): Delete dependency.
11405 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11406 * config/sparc/xm-sun4os4.h: Ditto.
11407 * config/sparc/xm-linux.h: Ditto.
11408
11409 * config/i386/xm-windows.h: Delete file.
11410
2d1b2124
AC
114112002-01-19 Andrew Cagney <ac131313@redhat.com>
11412
11413 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11414 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11415
ee1f65f0
JT
114162002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11417
11418 * alpha-tdep.c (alpha_call_dummy_words): New.
11419 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11420 (CALL_DUMMY_P): Define.
11421 (CALL_DUMMY_WORDS): Define.
11422 (SIZEOF_CALL_DUMMY_WORDS): Define.
11423
98081e55
PB
114242002-01-19 Per Bothner <per@bothner.com>
11425
11426 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11427 isn't NULL, which can happen with some gcj-3.x-produced code.
11428
0d056799
JT
114292002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11430
11431 * alpha-tdep.c (alpha_register_virtual_type): New function.
11432 (alpha_init_frame_pc_first): Ditto.
11433 (alpha_fix_call_dummy): Ditto.
11434 (alpha_store_struct_return): Ditto.
11435 (alpha_extract_struct_value_address): Ditto.
11436 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11437 alpha_register_virtual_type.
11438 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11439 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11440 alpha_extract_struct_value_address.
11441 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11442 (INIT_FRAME_PC): Use init_frame_pc_noop.
11443 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11444
4604bcad
MK
114452002-01-19 Mark Kettenis <kettenis@gnu.org>
11446
11447 * i386gnu-nat.c: Include "i386-tdep.h".
11448 (fetch_fpregs): Simplify code dealing with uninitialized floating
11449 point states such that it doesn't require FP7_REGNUM.
11450
140f9984
JT
114512002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11452
abf22e64
AJ
11453 * alpha-tdep.c (frame_extra_info): New.
11454 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11455 frame->extra_info.
11456 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11457 (alpha_frame_saved_pc): Use frame->extra_info.
11458 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11459 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11460 (init_extra_frame_info): Rename to...
11461 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11462 (alpha_print_extra_frame_info): New function.
140f9984
JT
11463 (alpha_frame_locals_address): Ditto.
11464 (alpha_frame_args_address): Ditto.
abf22e64 11465 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11466 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11467 alpha_frame_args_address.
abf22e64 11468 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11469 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11470 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11471 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11472 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11473 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11474
d734c450
JT
114752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11476
11477 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11478 (alpha_cannot_fetch_register): Ditto.
11479 (alpha_cannot_store_register): Ditto.
11480 (alpha_register_convertible): Ditto.
11481 (alpha_use_struct_convention): Ditto.
11482 * config/alpha/tm-alpha.h: Update copyright years.
11483 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11484 (INNER_THAN): Use core_addr_lessthan.
11485 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11486 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11487 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11488 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11489 (FRAME_CHAIN): Remove unnecessary cast.
11490
b4ceaee6
AC
114912002-01-18 Andrew Cagney <ac131313@redhat.com>
11492
11493 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11494 obsolete.
11495
0a65a603
AC
114962002-01-18 Andrew Cagney <ac131313@redhat.com>
11497
11498 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11499 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11500 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11501 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11502 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11503 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11504 * x86-64-linux-nat.c: Ditto.
11505
636a6dfc
JT
115062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11507
abf22e64 11508 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11509 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11510 (REGISTER_NAME): Define.
11511
acceddb6
JT
115122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11513
11514 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11515
ec32e4be
JT
115162002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11517
11518 * alpha-tdep.c: Update copyright years.
11519 (alpha_next_pc): New function.
11520 (alpha_software_single_step): Ditto.
11521 * config/alpha/tm-alpha.h: Add prototype for
11522 alpha_software_single_step.
11523
e771a871
JT
115242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11525
11526 * alphabsd-nat.c: Update copyright years.
11527 (fill_gregset): Use regcache_collect.
11528 (fill_fpregset): Likewise.
11529 (fetch_inferior_registers): Only fetch integer registers
11530 if requested to do so.
11531 (store_inferior_registers): Only store integer registers
11532 if requested to do so.
11533
7708fa01
AC
115342002-01-17 Andrew Cagney <ac131313@redhat.com>
11535
11536 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11537 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11538 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11539 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11540 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11541 * config/arm/linux.mh (XDEPFILES): Delete.
11542 * config/arm/nbsd.mh (XDEPFILES): Delete.
11543 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11544 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11545 * config/i386/i386m3.mh (XDEPFILES): Delete.
11546 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11547 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11548 * config/i386/fbsd.mh (XDEPFILES): Delete.
11549 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11550 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11551 * config/i386/i386v4.mh (XDEPFILES): Delete.
11552 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11553 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11554 * config/i386/i386aix.mh (XDEPFILES): Delete.
11555 * config/i386/go32.mh (XDEPFILES): Delete.
11556 * config/i386/cygwin.mh (XDEPFILES): Delete.
11557 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11558 * config/i386/i386mach.mh (XDEPFILES): Delete.
11559 * config/i386/i386v32.mh (XDEPFILES): Delete.
11560 * config/i386/linux.mh (XDEPFILES): Delete.
11561 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11562 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11563 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11564 * config/i386/i386sco.mh (XDEPFILES): Delete.
11565 * config/i386/i386v.mh (XDEPFILES): Delete.
11566 * config/i386/nbsd.mh (XDEPFILES): Delete.
11567 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11568 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11569 * config/i386/symmetry.mh (XDEPFILES): Delete.
11570 * config/i386/obsd.mh (XDEPFILES): Delete.
11571 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11572 * config/ia64/linux.mh (XDEPFILES): Delete.
11573 * config/ia64/aix.mh (XDEPFILES): Delete.
11574 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11575 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11576 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11577 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11578 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11579 * config/m68k/linux.mh (XDEPFILES): Delete.
11580 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11581 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11582 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11583 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11584 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11585 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11586 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11587 * config/m88k/delta88.mh (XDEPFILES): Delete.
11588 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11589 * config/m88k/m88k.mh (XDEPFILES): Delete.
11590 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11591 * config/mips/linux.mh (XDEPFILES): Delete.
11592 * config/mips/irix6.mh (XDEPFILES): Delete.
11593 * config/mips/irix5.mh (XDEPFILES): Delete.
11594 * config/mips/irix4.mh (XDEPFILES): Delete.
11595 * config/mips/irix3.mh (XDEPFILES): Delete.
11596 * config/mips/decstation.mh (XDEPFILES): Delete.
11597 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11598 (NATDEPFILES): Move core-aout.o to here.
11599 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11600 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11601 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11602 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11603 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11604 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11605 * config/pa/hpux11.mh (XDEPFILES): Delete.
11606 * config/powerpc/aix.mh (XDEPFILES): Delete.
11607 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11608 * config/powerpc/linux.mh (XDEPFILES): Delete.
11609 * config/romp/rtbsd.mh: Rename XDEPFILES.
11610 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11611 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11612 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11613 * config/s390/s390.mh (XDEPFILES): Delete.
11614 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11615 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11616 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11617 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11618 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11619 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11620 * config/sparc/linux.mh (XDEPFILES): Delete.
11621 * config/vax/vaxult.mh (XDEPFILES): Delete.
11622 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11623 * Makefile.in (DEPFILES): Remove XDEPFILES.
11624
375fc983
AC
116252002-01-17 Andrew Cagney <ac131313@redhat.com>
11626
11627 * utils.c (internal_verror): Fix comments, default is yes not no.
11628 Update queries to match. Default to quit and dump core.
11629
8926118c
AC
116302002-01-17 Andrew Cagney <ac131313@redhat.com>
11631
11632 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11633 copyright.
11634 * defs.h, event-top.c, gdbcmd.h: Ditto.
11635 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11636 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11637 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11638 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11639 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11640 * mi/mi-main.c:Ditto.
11641
11642 * stack.c, symfile.c: Update copyright.
11643
45b7b345
DJ
116442002-01-17 Daniel Jacobowitz <drow@mvista.com>
11645
db728ff7
DJ
11646 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11647 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11648 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11649 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11650
db728ff7
DJ
116512002-01-17 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11654 * gdbserver/low-lynx.c (myattach): Likewise.
11655 * gdbserver/low-nbsd.c (myattach): Likewise.
11656 * gdbserver/low-sim.c (myattach): Likewise.
11657 * gdbserver/low-sparc.c (myattach): Likewise.
11658 * gdbserver/low-sun3.c (myattach): Likewise.
11659
11660 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11661
db728ff7 11662 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11663 (main): Handle "--attach".
11664
8de3c354
AC
116652002-01-16 Andrew Cagney <ac131313@redhat.com>
11666
11667 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11668 maintainer.
11669
b0129042
DJ
116702002-01-15 Daniel Jacobowitz <drow@mvista.com>
11671
11672 * c-typeprint.c (is_type_conversion_operator): Add additional
11673 check for non-conversion operators.
11674
ba8679fb 116752002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11676
11677 * linux-proc.c: Add "info proc" command, a la procfs.c.
11678 (read_mapping): New function, abstract and re-use code.
11679 (linux_find_memory_regions): Use new func read_mapping.
11680 (linux_info_proc_cmd): New function, implement "info proc".
11681 (_initialize_linux_proc): Add new command "info proc".
11682
e4f9b4d5
MS
116832002-01-15 Michael Snyder <msnyder@redhat.com>
11684
11685 * symfile.c (generic_load): Use bfd_map_over_sections method
11686 instead of manipulating bfd structure members directly.
11687 (add_section_size_callback): New function, bfd sections callback
11688 used by generic_load.
11689 (load_sections_callback): New function, bfd sections callback
11690 used by generic_load.
11691
08cf96df
EZ
116922002-01-15 Elena Zannoni <ezannoni@redhat.com>
11693
abf22e64 11694 [Based on work by Jim Blandy]
08cf96df
EZ
11695 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11696 (builtin_type_vec128): Export.
11697 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11698 types.
11699 (builtin_type_vec128): New builtin type for 128 bit vector
11700 registers.
11701 (build_gdbtypes): Initialize builtin_type_v16qi and
11702 builtin_type_v8hi. Create the vec128 register builtin type
11703 structure.
11704 (build_builtin_type_vec128): New function.
abf22e64 11705 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11706 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11707 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11708 AltiVec register to new builtin type.
11709
d7242108
DJ
117102001-01-15 Daniel Jacobowitz <drow@mvista.com>
11711
11712 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11713 to make_cv_type.
11714
4ee3352d
AC
117152002-01-14 Andrew Cagney <ac131313@redhat.com>
11716
11717 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11718 CLEAN_UP_REGISTER_VALUE.
11719 * regcache.c (supply_register): Update only call.
11720
f015b2e7
AC
117212002-01-14 Andrew Cagney <ac131313@redhat.com>
11722
11723 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11724 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11725 a29k-*-vxworks* targets as obsolete.
11726
356ae49d
MS
117272002-01-14 Michael Snyder <msnyder@redhat.com>
11728
11729 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11730 until we can resolve portability issues.
11731 * gregset.h: Remove references to fpxregs.
11732 * gcore.c (gcore_command): Initialize note_sec to NULL.
11733
ade8f45e
AC
117342002-01-13 Andrew Cagney <ac131313@redhat.com>
11735
11736 * signals.c (target_signal_to_name): Rewrite. Only use
11737 signals[].name when in bounds and non-NULL.
abf22e64 11738
89c49e7a
AC
117392002-01-13 Andrew Cagney <ac131313@redhat.com>
11740
11741 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11742 * signals.c (target_signal_to_name): Verify that SIG is within the
11743 bounds of the signals array.
11744
4daa9f9f
AC
117452002-01-13 Andrew Cagney <ac131313@redhat.com>
11746
11747 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11748
ba4bbdcb
KS
117492002-01-13 Keith Seitz <keiths@redhat.com>
11750
11751 * stack.c (print_frame_info_base): Print the frame's pc
11752 only if when print_frame_info_listing_hook is not defined.
11753
575bbeb6
KS
117542002-01-13 Keith Seitz <keiths@redhat.com>
11755
11756 * varobj.c (varobj_set_value): Make sure that there were no
11757 errors evaluating the object before attempting to set its
11758 value.
11759 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11760 so this offset adjustment is no longer necessary.
11761 (create_child): Don't set the error flag if the child is
11762 a CPLUS_FAKE_CHILD.
11763 (value_of_child): If value_fetch_lazy fails, return NULL
11764 so that callers will be notified that an error occurred.
11765 (c_value_of_variable): Delay check of variable's validity
11766 until later. We actually want all structs and unions to have
11767 the value "{...}".
11768 Do not return "???" for variables which could not be evaluated.
11769 This error condition must be returned to the caller so that it
11770 can get the error condition from gdb.
11771 (cplus_name_of_child): Adjust index for vptr before figuring
11772 out the name of the child.
11773 (cplus_value_of_child): If a child's (real) parent is not valid,
11774 don't even bother trying to give a value for it. Just return
11775 an error. Change all instances in this function.
11776 (cplus_type_of_child): If our parent is one of the "fake"
11777 parents, we need to get at the type of the real parent, and
11778 derive the child's true type using this information.
11779
b76898ab
AC
117802002-01-13 Andrew Cagney <ac131313@redhat.com>
11781
11782 From 2002-01-09 John Marshall <johnm@falch.net>:
11783 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11784 sources.redhat.com, and tweak some related URLs which had
11785 suffered from linkrot.
11786
b6649e88
AC
117872002-01-13 Andrew Cagney <ac131313@redhat.com>
11788
11789 From Jeff law:
11790 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11791 structures passed in registers.
11792
82cc5033
EZ
117932002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11794
11795 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11796 white space which prevented compilation. Reported by DSK
11797 <dsk@student.unsw.edu.au>.
11798
ba5f2f8a
MS
117992002-01-11 Michael Snyder <msnyder@redhat.com>
11800
fbd35540
MS
11801 * symfile.c (build_section_addr_info_from_section_tab):
11802 Use bfd access method instead of manipulating bfd directly.
11803 (syms_from_objfile): Ditto.
11804 (simple_overlay_update_1): Ditto.
11805 (simple_overlay_update): Ditto.
11806 (generic_load): Ditto.
11807 (overlay_unmapped_address): FIXME comment, bfd access methods.
11808 (sections_overlap): FIXME comment, bfd access methods.
11809 (pc_in_mapped_range): FIXME comment, bfd access methods.
11810 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11811 (section_is_mapped): FIXME comment, bfd access methods.
11812 (section_is_overlay): FIXME comment, bfd access methods.
11813
ba5f2f8a
MS
11814 * symfile.c (generic_load): Whitespace and long line cleanups.
11815 Remove duplicate variable, change several local variables to
11816 more appropriate data types.
11817 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11818
17df2af6
AC
118192002-01-12 Andrew Cagney <ac131313@redhat.com>
11820
11821 From Peter Schauer:
11822 * language.c (longest_local_hex_string_custom): Use phex_nz to
11823 convert NUM to a hex string.
11824
ec920329
EZ
118252002-01-12 Elena Zannoni <ezannoni@redhat.com>
11826
11827 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11828 the function.
538a76d6 11829 Update Copyright year.
ec920329 11830
3abd2e01
AC
118312002-01-12 Andrew Cagney <ac131313@redhat.com>
11832
11833 * language.c (longest_raw_hex_string): Delete unused function.
11834
b21b22e0
PS
118352002-01-11 Petr Sorfa <petrs@caldera.com>
11836
11837 * MAINTAINERS (write-after-approval): Add myself.
11838 * dwarf2read.c (read_tag_string_type): Handling of
11839 DW_AT_byte_size.
11840 (read_tag_string_type): FORTRAN fix to prevent propagation of
11841 first string size.
11842 (set_cu_language): Handling of DW_LANG_Fortran95
11843
747fe712
RE
118442002-01-11 Richard Earnshaw <rearnsha@arm.com>
11845
11846 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11847 GETPID(inferior_ptid).
11848 (store_inferior_registers): Likewise.
11849
f1bea926
JM
118502002-01-10 Jason Merrill <jason@redhat.com>
11851
11852 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11853 Fix DW_OP_minus.
11854
ae940673
AC
118552002-01-10 Andrew Cagney <ac131313@redhat.com>
11856
11857 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11858 and bfd/elf32-sh-nbsd.c.
11859
00546b04
MS
118602002-01-10 Michael Snyder <msnyder@redhat.com>
11861
352ed7b4
MS
11862 * NEWS: Mention --pid and corefile/proc-id behavior change.
11863
c18be923
MS
11864 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11865 * gcore.c: Include cli/cli-decode.h instead of command.h.
11866
00546b04
MS
11867 * main.c (captured_main): Add new command line option "--pid".
11868 If the second command line argument (following the symbol-file)
11869 begins with a digit, try to attach to it before trying to open
11870 it as a corefile.
11871 (print_gdb_help): Document the "--pid" argument.
11872
db60ec62
EZ
118732002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11874
11875 * completer.c (command_completer): New function.
11876
11877 * completer.h <command_completer>: Add prototype.
11878
11879 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11880 completer for the "help" command.
11881
39c22d1a
JM
118822002-01-09 Jason Merrill <jason@redhat.com>
11883
11884 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11885
c564377f
MS
118862002-01-09 Michael Snyder <msnyder@redhat.com>
11887
975aec09
MS
11888 * i386-linux-nat.c (fill_fpxregset): Make global.
11889 (store_fpxregset): Ditto.
11890
db4a10fa
MS
11891 * gregset.h (gdb_fpxregset_t): Define.
11892 (supply_fpxregset): Prototype.
11893 (fill_fpxregset): Prototype.
11894
c564377f
MS
11895 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11896
c3d45d70
RE
118972002-01-09 Richard Earnshaw <rearnsha@arm.com>
11898
11899 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11900 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11901 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11902
fcc87af1
AC
119032002-01-09 Andrew Cagney <ac131313@redhat.com>
11904
11905 * MAINTAINERS: Update target maintainer rules so that any
11906 Maintainer can approve a tested patch for a maintenance-only
11907 target.
11908
dd96c05b
RE
119092002-01-09 Richard Earnshaw <rearnsha@arm.com>
11910
d4297db9 11911 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11912
d4297db9 11913 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11914 IN_SIGTRAMP.
11915
145fdc6e
MS
119162002-01-08 Michael Snyder <msnyder@redhat.com>
11917
11918 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11919 real name of the executable, rather than the /proc name.
11920
be4d1333
MS
119212002-01-03 Michael Snyder <msnyder@redhat.com>
11922
11923 Implement a "generate-core-file" command in gdb, save target state.
11924 * gcore.c: New file. Implement new command 'generate-core-file'.
11925 Save a corefile image of the current state of the inferior.
11926 * linux-proc.c: Add linux-specific code for saving corefiles.
11927 * target.h (struct target_ops): Add new target vectors for saving
11928 corefiles; to_find_memory_regions and to_make_corefile_notes.
11929 (target_find_memory_regions): New macro.
11930 (target_make_corefile_notes): New macro.
11931 * target.c (update_current_target): Inherit new target methods.
11932 (dummy_find_memory_regions): New place-holder method.
11933 (dummy_make_corefile_notes): New place-holder method.
11934 (init_dummy_target): Initialize new dummy target vectors.
11935 * exec.c (exec_set_find_memory_regions): New function.
11936 Allow the exec_ops vector for memory regions to be taken over.
11937 (exec_make_note_section): New function, target vector method.
11938 * defs.h (exec_set_find_memory_regions): Export prototype.
11939 * procfs.c (proc_find_memory_regions): New function, corefile method.
11940 (procfs_make_note_section): New function, corefile method.
11941 (init_procfs_ops): Set new target vector pointers.
11942 (find_memory_regions_callback): New function.
11943 (procfs_do_thread_registers): New function.
11944 (procfs_corefile_thread_callback): New function.
11945 * sol-thread.c (sol_find_memory_regions): New function.
11946 (sol_make_note_section): New function.
11947 (init_sol_thread_ops): Initialize new target vectors.
11948 * inftarg.c (inftarg_set_find_memory_regions): New function.
11949 Allow to_find_memory_regions vector to be taken over.
11950 (inftarg_set_make_corefile_notes): New function.
11951 Allow to_make_corefile_notes vector to be taken over.
11952 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11953 interface layer if not target_has_execution (may be a corefile).
11954 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11955 * config/sparc/sun4sol2.mh: Ditto.
11956 * config/alpha/alpha-linux.mh: Ditto.
11957 * config/arm/linux.mh: Ditto.
11958 * config/i386/x86-64linux.mh: Ditto.
11959 * config/ia64/linux.mh: Ditto.
11960 * config/m68k/linux.mh: Ditto.
11961 * config/mips/linux.mh: Ditto.
11962 * config/powerpc/linux.mh: Ditto.
11963 * config/sparc/linux.mh: Ditto.
11964
c6b92abd
MS
119652002-01-07 Michael Snyder <msnyder@redhat.com>
11966
11967 * arm-linux-nat.c: Remove references to regcache.c internal data
11968 (registers[] and register_valid[]).
11969
4b09dc8c
MS
119702002-01-07 Michael Snyder <msnyder@redhat.com>
11971
abf22e64
AJ
11972 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11973 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11974 symbol file and shlibs.
11975 * Makefile.in: Add rule for linux-proc.o.
11976 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11977 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11978 * config/arm/linux.mh: Ditto.
11979 * config/i386/linux.mh: Ditto.
11980 * config/i386/x86-64linux.mh: Ditto.
11981 * config/ia64/linux.mh: Ditto.
11982 * config/m68k/linux.mh: Ditto.
11983 * config/mips/linux.mh: Ditto.
11984 * config/powerpc/linux.mh: Ditto.
11985 * config/sparc/linux.mh: Ditto.
11986
c25b74ac
PM
119872002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11988
11989 * win32-nat.c: Add i386-tdep.h dependency.
11990
94cd915f
MS
119912002-01-07 Michael Snyder <msnyder@redhat.com>
11992
c7cccb76
MS
11993 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11994 instead of bfd_get_arch_size. Don't bail out just because
11995 there's no exec_bfd.
abf22e64 11996
34c0bd93
MS
11997 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11998 * p-valprint.c (pascal_object_print_value): Ditto.
11999 * somread.c (som_symtab_read): Ditto.
12000 * symfile.c (simple_free_overlay_region_table): Ditto.
12001 * valops.c (value_assign): Ditto.
12002
21c1c920
MS
12003 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12004 use tilde_expand and strerror for opening save-tracepoints file.
12005
5bbd998e
MS
12006 * thread-db.c (thread_db_new_objfile): Indendation fix.
12007
94cd915f
MS
12008 * infptrace.c (GDB_MAX_ALLOCA): New define.
12009 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12010 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12011 can be overridden with whatever value is appropriate to the host).
12012 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12013 alloca to allocate potentially large buffer.
12014 * rs6000-nat.c (child_xfer_memory): Ditto.
12015 * symm-nat.c (child_xfer_memory): Ditto.
12016 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12017
494e8a93
JSC
120182002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12019
12020 From Nick Clifton <nickc@redhat.com>
12021 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12022
d0e1d48e
MS
120232002-01-07 Michael Snyder <msnyder@redhat.com>
12024
abf22e64 12025 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12026 Don't use exec_bfd if it's NULL.
12027
290b2c7a
MK
120282002-01-06 Mark Kettenis <kettenis@gnu.org>
12029
abf22e64 12030 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12031
aef21287
AC
120322002-01-06 Andrew Cagney <ac131313@redhat.com>
12033
12034 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12035 * gnu-nat.c: Ditto.
12036
30efa627
AC
120372002-01-06 Andrew Cagney <ac131313@redhat.com>
12038
12039 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12040 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12041 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12042 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12043 z8k-coff have not been multi-arched. Update z8k-coff build
12044 status.
12045
9b4ff276
AC
120462002-01-06 Andrew Cagney <ac131313@redhat.com>
12047
12048 * MAINTAINERS: Mark a29k target as obsolete.
12049 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12050 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12051 comments.
12052 * NEWS: Note that a29k targets are obsolete.
12053 * a29k-tdep.c: Mark as obsolete.
12054 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12055 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12056 a29k-*-vxworks* targets as obsolete.
12057 * remote-adapt.c: Obsolete.
12058 * remote-eb.c: Obsolete.
12059 * remote-mm.c: Obsolete.
12060 * remote-udi.c: Obsolete.
12061 * config/a29k/a29k-udi.mt: Obsolete.
12062 * config/a29k/a29k.mt: Obsolete.
12063 * config/a29k/tm-a29k.h: Obsolete.
12064 * config/a29k/tm-vx29k.h: Obsolete.
12065 * config/a29k/vx29k.mt: Obsolete.
12066
a9011d31
AC
120672002-01-05 Andrew Cagney <ac131313@redhat.com>
12068
12069 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12070 with BFD_ENDIAN_BIG.
12071
9299404e
AC
120722002-01-05 Andrew Cagney <ac131313@redhat.com>
12073
12074 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12075 * configure, config.in: Re-generate.
12076 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12077 * defs.h: Do not include <endian.h>.
12078
7e89e357
JT
120792002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12080
12081 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12082 * config.in: Regenerate.
12083 * configure.in: Update copyright years.
12084 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12085 * configure: Regenerate.
12086 * i386bsd-nat.c: Update copyright years.
12087 (fill_gregset): Use regcache_collect.
12088 (fetch_inferior_registers): Only fetch integer registers
12089 if requested to do so. Add support for XMM registers
12090 using PT_GETXMMREGS.
12091 (store_inferior_registers): Only store integer registers
12092 if requested to do so. Add support for XMM registers
12093 using PT_SETXMMREGS.
12094 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12095 (store_inferior_registers): Remove.
12096 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12097 (fetch_elfcore_registers): New function.
12098 (i386nbsd_elfcore_fns): New.
12099 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12100 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12101 i386bsd-nat.o.
12102 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12103 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12104 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12105 * config/i386/tm-nbsd.h: Update copyright years.
12106 (HAVE_SSE_REGS): Define.
12107 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12108 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12109 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12110 (SIGCONTEXT_PC_OFFSET): Remove.
12111 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12112
a752853e
AC
121132002-01-05 Andrew Cagney <ac131313@redhat.com>
12114
12115 * configure.tgt: Remove powerpc-*-macos* target.
12116 * config/m68k/xm-mpw.h: Delete file.
12117 * config/xm-mpw.h: Delete file.
12118 * ser-mac.c: Delete file.
12119 * mpw-make.sed: Delete file.
12120 * mpw-config.in: Delete file.
12121 * mac-xdep.c: Delete file.
12122 * mac-gdb.r: Delete file.
12123 * mac-defs.h: Delete file.
12124 * mac-nat.c: Delete file.
12125 * config/powerpc/macos.mh: Delete file.
12126 * config/powerpc/macos.mt: Delete file.
12127 * config/powerpc/nm-macos.h: Delete file.
12128 * config/powerpc/tm-macos.h: Delete file.
12129 * source.c (openp, open_source_file): Remove obsolete code.
12130 * top.c (gdb_readline): Ditto.
12131 * utils.c (query): Ditto.
12132 * event-top.c (display_gdb_prompt): Ditto.
12133 * Makefile.in (ser-mac.o): Delete obsolete target.
12134 * NEWS: Update.
12135
d7449b42
AC
121362002-01-04 Andrew Cagney <ac131313@redhat.com>
12137
12138 * defs.h (BIG_ENDIAN): Delete macro definition.
12139 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12140 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12141 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12142 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12143 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12144 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12145 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12146 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12147 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12148 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12149 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12150 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12151 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12152 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12153 * gdbarch.c: Re-generate.
12154
356374e8
DJ
121552002-01-04 Daniel Jacobowitz <drow@mvista.com>
12156
12157 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12158 for core files.
12159
a2b8f8f8
JT
121602002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12161
12162 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12163
12466af9
AC
121642002-01-04 Andrew Cagney <ac131313@redhat.com>
12165
12166 * value.h (value_ptr): Delete typedef.
12167
3549ab40
JT
121682002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12169
12170 * i386nbsd-nat.c: Update copyright years.
12171 Include i386-tdep.h.
12172
fedbd091
EZ
121732002-01-04 Elena Zannoni <ezannoni@redhat.com>
12174
12175 * stabsread.c: Update copyright years.
12176
12177 From Debashis Mahata <debashis.mahata@wipro.com>:
12178 (read_struct_fields): Deal with Sun C compiler erroneous stab
12179 output for structs and unions.
fec8b34f 12180 Fix PR gdb/269.
fedbd091 12181
eb43544b
DJ
121822002-01-04 Daniel Jacobowitz <drow@mvista.com>
12183
12184 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12185 prototype.
12186
1514d34e
DJ
121872002-01-04 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * cp-abi.c: Fix whitespace.
12190 (baseclass_offset): New wrapper function.
12191 * cp-abi.h (baseclass_offset): Add prototype.
12192 (struct cp_abi_ops): Add baseclass_offset pointer.
12193
12194 * valops.c (vb_match): Move to...
12195 * gnu-v2-abi.c (vb_match): here.
12196 * valops.c (baseclass_offset): Move to...
12197 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12198
12199 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12200
12201 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12202 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12203 * hpacc-abi.c (init_hpacc_ops): Likewise.
12204
7f8c9282
DJ
122052002-01-04 Daniel Jacobowitz <drow@mvista.com>
12206
12207 * valops.c (find_overload_match): Accept obj as a
12208 reference parameter. Update it before returning.
12209 * value.h (find_overload_match): Update prototype.
12210 * eval.c (evaluate_subexp_standard): Pass object to
12211 find_overload_match by reference.
12212
f23631e4
AC
122132002-01-03 Andrew Cagney <ac131313@redhat.com>
12214
12215 * valarith.c: Replace value_ptr with struct value pointer. Remove
12216 register attribute from value declarations.
12217 * valops.c: Ditto.
12218 * value.h: Ditto.
12219 * scm-lang.c (scm_lookup_name): Ditto.
12220
79e10fab 122212002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12222
79e10fab
AC
12223 Abstract the functionality of iterating over mapped memory
12224 regions into a general purpose iterator function.
abf22e64 12225 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12226 iterator for memory sections.
12227 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12228 (solib_mappings_callback): New function, callback for above.
12229 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12230 (info_mappings_callback): New function, callback for above.
12231
12232 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12233
c5ad026a
MK
122342002-01-01 Mark Kettenis <kettenis@gnu.org>
12235
d2a7c97a
MK
12236 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12237 * i386-tdep.c: Include "elf-bfd.h".
12238 (process_note_abi_tag_sections): New function.
12239 (i386_gdbarch_init): Add code to recognize various OS/ABI
12240 combinations.
12241
c5ad026a
MK
12242 * maint.c (_initialize_maint_cmds): Add missing \ in
12243 string-literal.
12244
a1a5b71e 12245For older changes see ChangeLog-2001
c906108c
SS
12246\f
12247Local Variables:
12248mode: change-log
12249left-margin: 8
12250fill-column: 74
12251version-control: never
12252End:
This page took 1.171532 seconds and 4 git commands to generate.