* emultempl/aix.em: Use include <> for generated headers.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e70ea697
DC
12002-10-28 David Carlton <carlton@math.stanford.edu>
2
3 * symtab.c (find_addr_symbol): Delete. (It was already commented
4 out.)
5 * symtab.h: Delete prototype for find_addr_symbol.
6
903ad3a6
AC
72002-10-26 Andrew Cagney <cagney@redhat.com>
8
9 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
10 DO_REGISTERS_INFO.
11 gdbarch.h, gdbarch.c: Re-generate.
12 * infcmd.c (default_print_registers_info): Update reference.
13 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
14 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
15 * sh-tdep.c (sh_gdbarch_init): Ditto.
16 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
17 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
18
ab91194c
MK
192002-10-26 Mark Kettenis <kettenis@gnu.org>
20
e3033f15
MK
21 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
22 cfi_init_extra_frame_info.
23 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
24 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
25
b83b026c
MK
26 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
27 target where necessary. Add more comments and remove the ones
28 that don't provide any useful information.
29
267bf4bb
MK
30 * i386-tdep.c (i386_frame_saved_pc): Replace call to
31 deprecated_read_register_dummy with
32 frame_unwind_unsigned_register.
33
751f1375
MK
34 * i386-tdep.c (i386_extract_struct_value_address): Use
35 regcache_raw_read_unsigned instead of
36 regcache_cooked_read_unsigned since we know that the register
37 we're reading isn't a pseudo register. Rename variable 'val' into
38 the more descriptive 'addr'.
39
26abbdc4
MK
40 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
41 (x86_64_push_return_address): Add comment.
42 (x86_64_pop_frame): Make static.
43 (examine_argument): Clarify comment.
44 (x86_64_skip_prologue): Make prolog_expact variable static.
45
9f1549cc
MK
46 * dwarf2cfi.c: Fix some formatting problems.
47 (context_cpy, read_encoded_pointer): Clarify comments.
48
ab91194c
MK
49 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
50 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
51 i386 target back into x86_64_gdbarch_init. Add some comments and
52 remove meaningless ones.
53
72367fb4
AC
542002-10-25 Andrew Cagney <cagney@redhat.com>
55
56 * complaints.h (struct deprecated_complaint): Rename `struct
57 complaint'.
58 * complaints.c (complain): Update.
59 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
60 incorrect comment indicating that "symfile.h" was being included
61 for the `struct complaint' definition.
62 * remote-vx.c: Update.
63 * objc-lang.c: Update.
64 * xcoffread.c: Update.
65 * hpread.c: Update.
66 * mdebugread.c: Update.
67 * stabsread.c: Update.
68 * dwarf2read.c: Update.
69 * dwarfread.c: Update.
70 * elfread.c: Update.
71 * coffread.c: Update.
72 * stabsread.h: Update.
73 * dbxread.c: Update.
74 * buildsym.c: Update.
75 * gdbtypes.c: Update.
76 * macrotab.c: Update.
77
1f2baacc
MK
782002-10-25 Mark Kettenis <kettenis@gnu.org>
79
0c1a73d6
MK
80 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
81 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
82 (x86_64_init_abi): ...new function.
83
6aee4d54 84 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
85 * i386v-nat.c: Include "i386-tdep.h".
86
8f9cbe01
AC
872002-10-25 Andrew Cagney <cagney@redhat.com>
88
5f11f355
AC
89 * gdbtypes.c (address_space_name_to_int): Update.
90 (address_space_int_to_name): Update.
91 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
92 multi-arch predicate.
93 (address_class_name_to_type_flags): Ditto.
94 * gdbarch.h, gdbarch.c: Re-generate.
95
8f9cbe01
AC
96 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
97
e8d96a5d
MH
982002-10-24 Martin M. Hunt <hunt@redhat.com>
99
100 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
101
fe39c653
EZ
1022002-10-24 Elena Zannoni <ezannoni@redhat.com>
103
104 * symtab.h (INIT_SAL): Delete macro.
105 (init_sal): Export.
106 * symtab.c (init_sal): New function.
107
108 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
109 to init_sal function call.
110 (find_sal_from_funcs_and_line): Ditto.
111 (all_sals_for_line): Ditto.
112 * breakpoint.c (create_internal_breakpoint): Ditto.
113 (create_fork_vfork_event_catchpoint): Ditto.
114 (create_exec_event_catchpoint): Ditto.
115 (parse_breakpoint_sals): Ditto.
116 (watch_command_1): Ditto.
117 (handle_gnu_4_16_catch_command): Ditto.
118 (clear_command): Ditto.
119 * hppa-tdep.c (child_enable_exception_callback): Ditto.
120 * infcmd.c (run_stack_dummy): Ditto.
121 * infrun.c (process_event_stop_test): Ditto.
122 (check_sigtramp2): Ditto.
123 (step_over_function): Ditto.
124 * linespec.c (decode_line_2): Ditto.
125 (decode_line_1): Ditto.
126 * source.c (line_info): Ditto.
127 * symtab.c (find_pc_sect_line): Ditto.
128
baed091b
ML
1292002-10-24 Michal Ludvig <mludvig@suse.cz>
130
131 * dwarf2cfi.c (struct context)
132 (struct context_reg): Moved to dwarf2cfi.h
133 (context_alloc, frame_state_alloc, context_cpy):
134 Made extern instead of static, removed prototypes.
135 * dwarf2cfi.h (struct context)
136 (struct context_reg): New, moved from dwarf2cfi.c
137 (context_alloc, frame_state_alloc, context_cpy):
138 New prototypes.
139 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
140 Changed from static to extern.
141 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
142 (LINUX_SIGCONTEXT_FP_OFFSET)
143 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
144 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
145 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
146 * x86-64-tdep.c (x86_64_gdbarch_init): Several
147 set_gdbarch_*() calls now use x86-64 specific functions
148 instead of DWARF2 CFI ones.
149 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
150 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
151 (x86_64_init_extra_frame_info): New prototypes.
152
c38da1af
DC
1532002-10-23 David Carlton <carlton@math.stanford.edu>
154
155 * linespec.c: #include "parser-defs.h".
156 Delete prototype for find_template_name_end.
157 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
158
fb9b6b35
JJ
1592002-10-23 Jeff Johnston <jjohnstn@redhat.com>
160
161 * NEWS: add recent mi fixes.
162 * varobj.c (struct varobj): Add new "updated" flag.
163 (new_variable): Default "updated" flag to 0.
164 (varobj_set_value): Set "updated" flag to 1 if value
165 changes.
166 (varobj_update): Check varobj "updated" flag before
167 comparing old and refreshed values. Fix for
168 PR gdb/702.
169
8da065d5
DC
1702002-10-23 David Carlton <carlton@math.stanford.edu>
171
172 * parse.c (parse_exp_1): Use BLOCK_START.
173 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
174 SYMBOL_BLOCK_VALUE.
175 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
176
87f2f08c
DC
1772002-10-23 David Carlton <carlton@math.stanford.edu>
178
179 * symtab.c: Delete cplusplus_hint.
180 Delete prototype for find_template_name_end.
181
88cda038
EZ
1822002-10-23 Elena Zannoni <ezannoni@redhat.com>
183
184 * symtab.h: Update comment.
185
2625d86c
MS
1862002-10-23 Michael Snyder <msnyder@redhat.com>
187
188 * printcmd.c (address_info): Restore quotes in output.
189 * valops.c (value_of_local): Restore quotes in error message.
190
9cc0d196
EZ
1912002-10-23 Elena Zannoni <ezannoni@redhat.com>
192
193 * symtab.c (symbol_demangled_name): New function.
194 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
195 turning most of it into a function.
196 (symbol_demangled_name): Export.
197
19de93d0
MS
1982002-10-23 Michael Snyder <msnyder@redhat.com>
199
200 * valops.c (value_of_local): Restore quotes in error message.
201
89aad1f9
EZ
2022002-10-23 Elena Zannoni <ezannoni@redhat.com>
203
204 * symtab.c (symbol_init_language_specific): New function.
205 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
206 turning most of it into a function.
207 (symbol_init_language_specific): Export.
208
d9fa45fe
DC
2092002-10-23 David Carlton <carlton@math.stanford.edu>
210
211 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
212 (dwarf_attr_name): Ditto.
213 (dwarf_type_encoding_name): Ditto.
214 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
215 (process_die): Handle DW_TAG_namespace,
216 DW_TAG_imported_declaration, DW_TAG_imported_module.
217 (read_namespace): New function.
218
1045b512
JB
2192002-10-22 Joel Brobecker <brobecker@gnat.com>
220
221 * configure.in: Define NEW_PROC_API on Interix too.
222 * configure: Regenerate.
223
2242002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
225
226 * configure: Regenerate using the proper version of autoconf.
227
3987b9d4
EZ
2282002-10-21 Elena Zannoni <ezannoni@redhat.com>
229
230 * findvar.c (read_var_value): Temporarily disable TLS code, until
231 complete TLS support is added.
232
9d774e44
EZ
2332002-10-21 Jim Blandy <jimb@redhat.com>
234 Elena Zannoni <ezannoni@redhat.com>
235
236 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
237 for thread local storage locations.
238 (struct symbol): Add objfile field.
239 (SYMBOL_OBJFILE): Define.
240 * dwarf2read.c (is_thread_local): New static variable.
241 (new_symbol): If variable is in thread local fill in address class
242 and objfile appropriately.
243 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
244 stack operation.
245 * printcmd.c (address_info): Print the information for thread
246 local storage variable.
247 * findvar.c (read_var_value): In case of thread local variable,
248 defer to the target vector code to compute address.
249
bc4a16ae
EZ
2502002-10-21 Elena Zannoni <ezannoni@redhat.com>
251
252 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
253 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
254
407caf07
EZ
2552002-10-21 Elena Zannoni <ezannoni@redhat.com>
256
257 * symtab.h (address_class): Rename
258 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
259 * hpread.c (hpread_process_one_debug_symbol): Ditto.
260 * printcmd.c (address_info): Ditto.
261 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
262
005328e3
MK
2632002-10-20 Mark Kettenis <kettenis@gnu.org>
264
afdb036a
MK
265 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
266 DBREG_DRX macro to acces debug registers.
267
ca02e098
MK
268 * Makefile.in (i386obsd-tdep.o): New target.
269
03cc47f7
MK
270 * solib-sunos.c: Include "bcache.h" and "regcache.h".
271 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
272
005328e3
MK
273 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
274 * config/i386/obsd.mt: New file.
275 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
276 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
277 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
278 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
279 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
280 * i386obsd-tdep.c: New file.
281
9c96f9f2
AF
2822002-10-19 Adam Fedor <fedor@gnu.org>
283
284 * objc-exp.y (name_not_typename): Fix invalid comment.
285
ce1ed485
MK
2862002-10-20 Mark Kettenis <kettenis@gnu.org>
287
288 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
289 to allocate partial syms and macro byte caches.
290
1efc7aaa
DC
2912002-10-18 David Carlton <carlton@math.stanford.edu>
292
293 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
294
7e1d63ec
AF
2952002-10-18 Adam Fedor <fedor@gnu.org>
296
297 * stabsread.c (find_name_end): New function.
298 (define_symbol): Use it.
299
6e8d29a9
DJ
3002002-10-18 Daniel Jacobowitz <drow@mvista.com>
301
302 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
303 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
304 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
305 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
306
1efc7aaa 3072002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
308
309 * symfile.h: Add opaque declaration for struct obstack.
310 Declare obsavestring to take a const char *.
311 * symfile.c (obsavestring): Make first argument a const char *.
312
1aeae86e
AF
3132002-10-16 Adam Fedor <fedor@gnu.org>
314
315 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
316 names when matching breakpoints in current file.
317
8b2dbe47
KB
3182002-10-16 Kevin Buettner <kevinb@redhat.com>
319
320 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
321 (read_tag_pointer_type): Add address class support.
322 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
323 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
324 New methods.
325 * gdbarch.h, gdbarch.c: Regenerate.
326 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
327 (make_type_with_address_space, recursive_type_dump): Add address
328 class support.
329 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
330 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
331 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
332
74451869
KD
3332002-10-16 Klee Dienes <kdienes@apple.com>
334
335 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
336 to get the last character of a char[] buffer, not
337 name[sizeof(vptr_name)-1].
338
ff4cb3e8
AF
3392002-10-14 Adam Fedor <fedor@gnu.org>
340
341 * symtab.h: New objc_specific struct.
342 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
343 (SYMBOL_DEMANGLED_NAME): Likewise.
344
da2cf7e0
AF
3452002-10-14 Adam Fedor <fedor@gnu.org>
346
347 * symfile.c (init_filename_language_table): Add ObjC file extension.
348
4a351cef
AF
3492002-10-14 Adam Fedor <fedor@gnu.org>
350
351 * utils.c (puts_filtered_tabular): New function.
352 (fprintf_symbol_filtered): Get ObjC demangled name.
353 * defs.h (puts_filtered_tabular): Declared.
354
9750e763
KB
3552002-10-14 Kevin Buettner <kevinb@redhat.com>
356
357 * c-lang.h (c_type_print_varspec_prefix): Delete.
358 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
359 ``need_post_space'' parameter. Adjust all callers.
360
eee771c1
DJ
3612002-10-14 Daniel Jacobowitz <drow@mvista.com>
362
363 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
364 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
365 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
366 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
367
46c82446
AF
3682002-10-13 Adam Fedor <fedor@gnu.org>
369
370 * source.c (print_source_lines): Update comments.
371
d069f99d
AF
3722002-10-13 Adam Fedor <fedor@gnu.org>
373
374 * valops.c (value_of_local): New function.
375 (value_of_this): Use it.
376 * value.h (value_of_local): Declared.
377
53c551b7
AF
3782002-10-13 Adam Fedor <fedor@gnu.org>
379
380 * parse.c: (length_of_subexp, prefixify_subexp): Handle
381 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
382
eb392fbf
AF
3832002-10-12 Adam Fedor <fedor@gnu.org>
384
385 * language.c (binop_result_type): Add language_objc to case.
386 (integral_type): Likewise.
387 (character_type): Likewise.
388 (string_type): Likewise.
389 (boolean_type): Likewise.
390 (structured_type): Likewise.
391 (binop_type_check): Likewise.
392
e2b23ee9
AF
3932002-10-11 Adam Fedor <fedor@gnu.org>
394
395 * printcmd.c (address_info): Print 'self' for ObjC.
396
b01ab485
AF
3972002-10-11 Adam Fedor <fedor@gnu.org>
398
399 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
400 OP_SELF.
401
806e6073
AF
4022002-10-11 Adam Fedor <fedor@gnu.org>
403
404 * language.h (CAST_IS_CONVERSION): Add language_objc.
405
50f85cdf
AF
4062002-10-11 Adam Fedor <fedor@gnu.org>
407
408 * defs.h (enum language): Add language_objc.
409
0d540cdf
KD
4102002-10-11 Klee Dienes <kdienes@apple.com>
411
412 * findvar.c (read_memory_typed_address): New function.
413 * gdbcore.h (read_memory_typed_address): Add prototype.
414 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
415 to read a value destined for a CORE_ADDR, not read_memory_integer.
416 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
417 (f77_get_dynamic_lowerbound): Ditto.
418
d5dc7960
MH
4192002-10-11 Martin M. Hunt <hunt@redhat.com>
420
421 * utils.c (string_to_core_addr): After turning string into
422 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
423 which will do necessary sign-extension, etc.
424
8343f86c
DJ
4252002-10-11 Daniel Jacobowitz <drow@mvista.com>
426
427 * c-exp.y (THIS): Delete token and grammar rule.
428 (yylex): Don't return THIS.
429 * cp-valprint.c (vtbl_ptr_name_old): Delete.
430 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
431 * demangle.c (cplus_markers): Update comment. Put '$'
432 first. Remove CPLUS_MARKER.
433 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
434 * jv-exp.y (THIS): Delete token and grammar rule.
435 (yylex): Don't return THIS.
436 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
437 * objc-exp.y (THIS): Delete token and grammar rule.
438 (yylex): Don't return THIS.
439 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
440 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
441 (read_member_functions): Likewise for opname.
442 (read_tilde_fields): Use is_cplus_marker.
443
444 * defs.h (CPLUS_MARKER): Don't define.
445 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
446 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
447 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
448 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
449 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
450
451 * config/i386/tm-i386v4.h: Delete file.
452 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
453 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
454 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
455 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
456 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
457 * config/i386/i386sco5.mt (TM_FILE): Likewise.
458 * config/i386/i386v4.mt (TM_FILE): Likewise.
459 * config/i386/ncr3000.mt (TM_FILE): Likewise.
460
967c0d83
MM
4612002-10-10 Marko Mlinar <markom@opencores.org>
462
463 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
464 accidentially not commited 2002-10-09
465 * gdbarch.h, gdbarch.c: Re-generate.
466
f74fa174
MM
4672002-10-09 Marko Mlinar <markom@opencores.org>
468
469 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
470 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
471 * gdbarch.h, gdbarch.c: Re-generate.
472
57349743
JB
4732002-10-08 Petr Sorfa <petrs@caldera.com>
474
475 Revised and re-submitted by John Wolfe <jlw@caldera.com>
476
477 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
478 so we can work on more than one compilation unit at a time. This
479 helps prepare GDB to handle inter-CU die references.
480 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
481 the code to be defined before struct comp_unit_head.
482 (comp_unit_head): Added new members - offset, cu_head,
483 begin_die, next and dwarf2_abbrevs.
484 (dwarf2_abbrevs): Removed single static var; now member of
485 struct comp_unit_head.
486 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
487 members.
488 (psymtab_to_symtab_1): Changed to work with the new
489 struct comp_unit_head.
490 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
491 constructs the dwarf2_abbrevs[] inside the cu_header.
492 (dwarf2_empty_abbrev_table): Now expects a ptr to a
493 dwarf2_abbrev table to clean up.
494 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
495 handling of dwarf2_abbrevs inside the cu_header.
496 (read_partial_die): Now supports the call to the new
497 dwarf2_lookup_abbrev.
498 (read_full_die): Now supports the call to the new
499 dwarf2_lookup_abbrev.
500
4092aadb
CF
5012002-10-06 Christopher Faylor <cgf@redhat.com>
502
503 * Makefile.in (install-gdbtk): Add missing continuation backslash to
504 insure that shell variables, such as "transformed_name" are propagated
505 to later shell statements in rule.
506
af0b2512
MK
5072002-10-06 Mark Kettenis <kettenis@gnu.org>
508
509 * config/i386/nm-i386sco.h: Add protection against
510 multiple-inclusion. Include "i386/nm-i386v.h".
511 (REGISTER_U_ADDR): Remove define.
512 (i386_register_u_addr): Remove prototype.
513
d6020d45
MS
5142002-10-04 Michael Snyder <msnyder@redhat.com>
515
516 * m32r-stub.c (handle_exception): Make sure exception is "trap"
517 before treating it as a single-step event.
518
7248f48e
AF
5192002-10-03 Adam Fedor <fedor@gnu.org>
520
521 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
522 (objc_demangle): Remove assignment in if statements, Replace
523 free with xfree.
524 (add_msglist): Likewise.
525 (end_msglist): Likewise.
526 (complare_selectors): Likewise.
527 (selectors_info): Likewise.
528 (compare_classes): Likewise.
529 (classes_info): Likewise.
530 (print_object_command): Likewise.
531 (find_objc_msgcall_submethod): Replace PTR with void *.
532 * objc-lang.h: Remove check for __STDC__.
533
52c6a6ac
JJ
5342002-10-03 Jeff Johnston <jjohnstn@redhat.com>
535
536 * ui-out.h (ui_out_field_fmt_int): New prototype.
537 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
538 of field width and alignment.
539 * stack.c (print_frame_info_base): When printing frame level, use
540 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
541 PR gdb/192
542
7e3cec17
JJ
5432002-10-03 Jeff Johnston <jjohnstn@redhat.com>
544
545 * MAINTAINERS: Add self to Write After Approval list.
546
a58dd373
EZ
5472002-10-02 Elena Zannoni <ezannoni@redhat.com>
548
549 * infcmd.c (interrupt_target_command_wrapper): Delete.
550 (interrupt_target_command): Make non static.
551 (nofp_registers_info): Make static.
552 * stack.c (return_command_wrapper): Delete.
553 (return_command): Make non static.
554
cee6ddeb
EZ
5552002-10-02 Elena Zannoni <ezannoni@redhat.com>
556
557 * event-top.c (gdb_setup_readline): New function. Code moved from
558 _initialize_event_loop().
559 (_initialize_event_loop): Call gdb_setup_readline().
560
c4ed33b9
AC
5612002-10-02 Andrew Cagney <ac131313@redhat.com>
562
563 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
564 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
565 * gdbarch.h, gdbarch.c: Re-generate.
566
cef4f5dd
DJ
5672002-10-02 Daniel Jacobowitz <drow@mvista.com>
568
569 Fix PR gdb/778
570 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
571 before recursing.
572 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
573 of fill_in_vptr_fieldno.
574
36dc181b 5752002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 576
36dc181b
EZ
577 * inferior.h (registers_info, stepi_command, nexti_command,
578 continue_command, interrupt_target_command): Export from infcmd.c.
579 * frame.h (args_info, selected_frame_level_changed_hook,
580 return_command): Export from stack.c.
581 * v850ice.c (stepi_command, nexti_command, continue_command): use
582 prototypes from inferior.h.
583 * tracepoint.c (registers_info, args_info, locals_info): Use
584 prototypes from frame.h and inferior.h.
585 * Makefile.in (mi-main.o): Add dependency on frame.h.
586
6f99cb26
AC
5872002-10-02 Andrew Cagney <ac131313@redhat.com>
588
da3eff49
AC
589 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
590 value in register 3 adjusted by ppc_gp0_regnum.
591
6f99cb26
AC
592 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
593
da615bee
MM
5942002-10-02 Marko Mlinar <markom@opencores.org>
595
596 * MAINTAINERS: Add myself to the Write After Approval list.
597
d154bee2
AO
5982002-10-01 Alexandre Oliva <aoliva@redhat.com>
599
62a49b2c
AO
600 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
601 of the section for the N64 ABI, fixed.
602
d154bee2
AO
603 * config/mips/tm-irix6.h: Include solib.h.
604
ed348acc
EZ
6052002-10-01 Elena Zannoni <ezannoni@redhat.com>
606
607 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
608 GNU operators.
609
da0f9dcd
AC
6102002-10-01 Andrew Cagney <ac131313@redhat.com>
611
612 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
613 and that "mi0" syntax has been removed.
614
bdf64bac
DC
6152002-09-30 David Carlton <carlton@math.stanford.edu>
616
617 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
618 * ppc-sysv-tdep.c: #include "gdb_string.h".
619 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
620 pacify GCC.
621
54c2a1e6
AC
6222002-10-01 Andrew Cagney <ac131313@redhat.com>
623
624 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
625 "vrsave"'s register number.
626
cedea778
AC
6272002-09-30 Andrew Cagney <ac131313@redhat.com>
628
629 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
630 use frame_unwind_signed_register to obtain the PC.
631 (mips_frame_chain): Handle a generic dummy frame.
632 (mips_init_extra_frame_info): When a generic dummy frame, don't
633 re-compute the frame base.
634 (mips_pop_frame): Handle generic dummy frames.
635 (mips_gdbarch_init): When generic dummy frames, set
636 use_generic_dummy_frames, push_dummy_frame to
637 generic_push_dummy_frame, pc_in_call_dummy to
638 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
639 generic_save_dummy_frame_tos.
640
68315eb8
AC
6412002-09-30 Andrew Cagney <ac131313@redhat.com>
642
643 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
644 against TOP when TOP was explictly set.
645 (generic_push_dummy_frame): Set TOP to zero.
646
3b8630c3
EZ
6472002-09-30 Elena Zannoni <ezannoni@redhat.com>
648
649 * event-loop.c (start_event_loop): Rename variable 'result' to
650 'gdb_result', to avoid conflicts with upcoming intepreters changes.
651
28ee05e9
KS
6522002-09-30 Keith Seitz <keiths@redhat.com>
653
654 * gdb-events.sh (selected_thread_changed): New event.
655 * gdb-events.c: Regenerated.
656 * gdb-events.h: Regenerated.
657
6eecb1c8
HPN
6582002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
659
660 * MAINTAINERS: Add self to Write After Approval list.
661
92df71f0
FN
6622002-09-30 Fernando Nasser <fnasser@redhat.com>
663
3b8630c3
EZ
664 * disasm.c: New file.
665 * disasm.h: New file.
92df71f0
FN
666 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
667 (compare_lines): Ditto.
668 (dump_insns): Ditto.
3b8630c3
EZ
669 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
670 argument.
92df71f0 671 (do_assembly_only): Ditto.
3b8630c3
EZ
672 (do_disassembly): Renamed to gdb_disassembly and moved to
673 disasm.c. Sdded uiout argument.
674 * Makefile.in: Add new files. Reorder SFILES list. Update
675 dependencies. Include libgdb.a later in the insight executable.
92df71f0 676
0c22854d
AC
6772002-09-29 Andrew Cagney <ac131313@redhat.com>
678
679 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
680 bfd/elf64-alpha-fbsd.c.
681
e67f2023
AC
6822002-09-29 Andrew Cagney <ac131313@redhat.com>
683
684 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
685 i386gnu-tdep.c.
686
89396210
AC
6872002-09-29 Andrew Cagney <ac131313@redhat.com>
688
689 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
690 __FUNCTION__.
691 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
692 function name.
693 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
694 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
695 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
696 (S_msg_sig_post_reply): Ditto.
697
7079c36c
CV
6982002-09-28 Corinna Vinschen <vinschen@redhat.com>
699
89396210
AC
700 * sh-tdep.c (sh_use_struct_convention): Use definition according
701 to ABI.
7079c36c
CV
702 (sh_push_arguments): Store in register with correct endianess.
703 (sh_default_store_return_value): Ditto.
704 (sh_gdbarch_init): Set sizeof long double to 8.
705
975ac915
MK
7062002-09-27 Mark Kettenis <kettenis@gnu.org>
707
708 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
709 Fix some whitespace problems.
710
9bbe19fb
DC
7112002-09-27 David Carlton <carlton@math.stanford.edu>
712
713 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
714 (mcore-tdep.o): Ditto.
715 (ns32k-tdep.o): Ditto.
716 (ns32knbsd-tdep.o): Ditto.
717 (sh3-rom.o): Ditto.
718 (vax-tdep.o): Ditto.
719 * cris-tdep.c: #include "gdb_string.h"
720 * mcore-tdep.c: Ditto.
721 * ns32k-tdep.c: Ditto.
722 * ns32knbsd-tdep.c: Ditto.
723 * sh3-rom.c: Ditto.
724 * vax-tdep.c: Ditto.
725
43b2fdc7
DC
7262002-09-27 David Carlton <carlton@math.stanford.edu>
727
728 * config/djgpp/fnchange.lst: Add entries for
729 gdb/testsuite/gdb.c++/m-static files.
730
e8cfbbd9
JW
7312002-09-27 Jim Wilson <wilson@redhat.com>
732
733 * MAINTAINERS: Add myself to the Write After Approval list.
734
43b2fdc7 7352002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
736
737 * mips-tdep.c (find_proc_desc): Initialize startaddr.
738
739
9f3b7f07
AC
7402002-09-26 Andrew Cagney <ac131313@redhat.com>
741
742 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
743 frame.
744
11269d7e
AC
7452002-09-26 Andrew Cagney <ac131313@redhat.com>
746
747 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
748 (rs6000_struct_return_address): Delete variable.
749 (rs6000_store_struct_return): Update.
750 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
751 deprecated_extract_struct_value_address.
752 (rs6000_frame_align): New function.
753 (rs6000_gdbarch_init): Set frame_align.
754
f15ab4a7
AC
7552002-09-26 Andrew Cagney <ac131313@redhat.com>
756
757 From Grace Sainsbury <graces@redhat.com>:
758 * Makefile.in (gdbtk-main.o): New target.
759 (gdb.o): New target.
760 (main_h): Define.
761 (main.o): Update dependencies.
762 (gdb$(EXEEXT)): Add gdb.o.
763 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
764 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
765 (SUBDIR_GDBTK_CLEAN): Set.
766 (install-gdbtk): Install the insight binary.
767 (uninstall-gdbtk): New target.
768 (all-gdbtk, clean-gdbtk): New rule.
769 * top.c (use_windows): Default to zero.
770 * main.c: Include "main.h".
771 (main): Delete.
772 (struct captured_main_args): Delete.
773 (gdb_main): New function.
774 * main.h: New file.
775 * gdb.c: New File.
776
e36180d7
AC
7772002-09-25 Andrew Cagney <cagney@redhat.com>
778
779 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
780 (frame_map_regnum_to_name): New function.
781 (frame_map_name_to_regnum): New function.
782 * frame.h (frame_map_name_to_regnum): Declare.
783 (frame_map_regnum_to_name): Declare.
784 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
785 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
786 * parse.c: Do not include "builtin-regs.h".
787 (target_map_name_to_register): Delete function.
788 (write_dollar_variable): Use frame_map_name_to_regnum.
789 * parser-defs.h (target_map_name_to_register): Delete declaration.
790 * expprint.c: Include "frame.h".
791 (print_subexp): Use frame_map_regnum_to_name.
792 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
793 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
794
8b69000d
AC
7952002-09-25 Andrew Cagney <ac131313@redhat.com>
796
797 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
798 wasn't saved, and the next innermost frame is a dummy, return the
799 dummy frame's link register.
800
046ca86a
JB
8012002-09-24 Jim Blandy <jimb@redhat.com>
802
803 Fix from Paul Breed:
804 * main.c (captured_main): Add a `break' after the case for 'b'.
805
94b66fa7
KS
8062002-09-24 Keith Seitz <keiths@redhat.com>
807
808 * varobj.c (c_type_of_child): Use get_target_type instead
809 of TYPE_TARGET_TYPE.
810
c214a6fd
FN
8112002-09-22 Fernando Nasser <fnasser@redhat.com>
812
53cb0458
FN
813 * source.c (get_current_or_default_source_symtab_and_line): Remove
814 function.
815 (set_default_source_symtab_and_line): New function. Attempts to
816 determine a source file to list lines from if one is not currently
817 defined.
818 (get_current_source_symtab_and_line): Initialize sal.pc and
819 sal.end fields.
820 (set_current_source_symtab_and_line): Mark argument as const.
821 * source.h: Update declarations and comments.
822 * linespec.c (decode_line_1): Replace call to removed routine above.
823 * stack.c (print_frame_info_base): Ditto.
824 * cli/cli-cmds.c (edit_command): Ditto.
825 (list_command): Ditto.
826
8272002-09-22 Fernando Nasser <fnasser@redhat.com>
828
d6020d45 829 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 830 sal.pc and sal.end fields.
c214a6fd
FN
831 (get_current_or_default_source_symtab_and_line): Ditto.
832 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
833 so we do not cause a new source symtab to be searched for (reverting an
834 unintentional change from the 2002-09-20 patch).
835 * scm-lang.c (scm_unpac): Ditto.
836
cc3b68a5
AC
8372002-09-21 Andrew Cagney <cagney@redhat.com>
838
839 * complaints.c (symfile_explanations): Remove new-line from
840 ``isolated_message''.
841 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
842 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
843
5835abe7
NC
8442002-09-20 Nick Clifton <nickc@redhat.com>
845
846 * NEWS: Announce that V850EA ISA is no longer supported.
847 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
848
a15ef5f5
DC
8492002-09-20 David Carlton <carlton@math.stanford.edu>
850
06ba1b39
DC
851 * Makefile.in (c-lang.o): Correct dependencies.
852 (utils.o): Gather dependencies.
853 (charset.o): Move.
a15ef5f5
DC
854 * c-lang.c: #include "gdb_string.h"
855
87885426
FN
8562002-09-20 Fernando Nasser <fnasser@redhat.com>
857
858 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
859 * cli/cli-cmds.c (list_command): New function. Implements the new
860 cli edit command.
861 (_init_cli_cmds): Add new command definition.
862 * gdb.1: Document edit command.
863 * doc/gdb.texinfo: Document edit command.
864
8652002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
866
867 * source.c: Make global variables current_source_symtab and
868 current_source_line static.
869 (list_command): Moved to cli/cli-cmds.c.
870 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
871 (get_first_line_listed): New accessor function.
872 (get_lines_to_list): New accessor function.
873 (get_current_source_symtab_and_line): New function. Retrieves the
874 position in the source code that we consider current.
875 (get_current_or_default_source_symtab_and_line): New function.
876 Like the above but attempts to determine a default position if one
877 is not currently defined.
878 (set_current_source_symtab_and_line): New function. Sets the source
879 code position considered current and returns the previously set one.
880 (clear_current_source_symtab_and_line): Reset stored information about
881 a current source line.
882 (_initialize_source): Remove registration for the "list" command and
883 its alias.
884 * source.h: Add declarations for the new functions above.
885 * symtab.h: Remove declarations for the global variables mentioned
886 above.
887 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
888 obtain current source line.
889 * linespec.c (decode_line_1): Ditto.
890 * macroscope.c (default_macro_scope): Ditto.
891 * scm-lang.c (scm_unpac): Ditto.
892 * stack.c (print_frame_info_base): Ditto.
893 * symfile.c (clear_symtab_users): Ditto.
894 * symtab.c (decode_line_spec): Ditto.
895 * cli/cli-cmds.c (list_command): Moved here from source.c.
896 (ambiguous_line_spec): Moved here from source.c.
897 (_init_cli_cmds): Add definition for "list" and its alias.
898 * Makefile.in: Update dependencies.
899
ddd216ea
CV
9002002-09-20 Corinna Vinschen <vinschen@redhat.com>
901
902 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
903 with what gcc thinks is correct.
904
6d305052
CV
9052002-09-20 Corinna Vinschen <vinschen@redhat.com>
906
907 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
908 multiple register push instruction.
909
234b45d4
KB
9102002-09-19 Jim Blandy <jimb@redhat.com>
911
912 Add support for distinct host and target character sets.
913 * charset.c, charset.h: New files.
914 * c-exp.y: #include "charset.h".
915 (yylex): Convert character and string literals to the target
916 character set, before returning them as the semantic value of the
917 token.
918 * c-lang.c: #include "charset.h".
919 (c_emit_char): Use charset-specific methods to recognize
920 characters with backslash escape forms, to decide which characters
921 to print literally and which to print using numeric escape
922 sequences, and to convert target characters to host characters
923 before printing.
924 * utils.c: #include "charset.h".
925 (no_control_char_error): New function.
926 (parse_escape): Use charset-specific methods to recognize
927 backslash escapes, parse `control character' notation, and convert
928 characters from the host character set to the target character set.
929 * configure.in: Set the default host character set.
930 Check where to find iconv, and what its argument types might be.
931 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
932 * Makefile.in (SFILES): List charset.c.
933 (COMMON_OBS): List charset.o.
934 (charset.o): New rule.
935 (charset_h): New header dependency variable.
936 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
937 (LIBICONV): New variable, set by configure.
938 (CLIBS): Include $(LIBICONV) here.
939 * aclocal.m4, config.in, configure: Regenerated.
940
525d6a61
JB
9412002-09-19 Joel Brobecker <brobecker@gnat.com>
942
943 * ada-exp.y: Add missing semicolons to end rules. Fixes a
944 bison 1.35 warning.
945
3ed93867
RE
9462002-09-19 Richard Earnshaw <rearnsha@arm.com>
947
948 * gdb_mbuild.sh: New file.
949
437666f8
AC
9502002-09-19 Andrew Cagney <ac131313@redhat.com>
951
952 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
953
389e51db
AC
9542002-09-18 Andrew Cagney <ac131313@redhat.com>
955
956 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
957 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
958 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
959 valops.c, value.h: Revert previous change.
960
3b4efeaa
MS
9612002-09-18 Michael Snyder <msnyder@redhat.com>
962
963 Preliminary support for Objective-C:
964 * defs.h (language_objc): New enum value.
965 (puts_filtered_tabular): Declaration only, exported from utils.c.
966 (skip_quoted): Delete, declared in completer.h.
967 * c-exp.y: Include completer.h.
968 * p-exp.y: Ditto.
969 * jv-exp.y: Ditto.
970 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
971 New operator enum values.
972 * language.h (CAST_IS_CONVERSION): Test for language_objc.
973 * language.c (binop_result_type): Handle language_objc case.
974 (integral_type, character_type, string_type, boolean_type,
975 structured_type, binop_type_check): Ditto.
976 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
977 (struct objc_specific): Add to general_symbol_info.
978 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
979 (SYMBOL_DEMANGLED_NAME): Handle objc case.
980 * parser-defs.h (struct objc_class_str): New struct type.
981 (start_msglist, end_msglist, add_msglist): Declaration only,
982 exported from objc-lang.c.
983 * value.h (value_of_local, value_nsstring,
984 call_function_by_hand_expecting_type): Exported from valops.c.
985 * valops.c (find_function_addr): Export.
986 (call_function_by_hand_expecting_type): New function.
987 (value_of_local): New function.
988 * symfile.c (init_filename_language_table): Add ".m" extension
989 for Objective-C.
990 * utils.c (puts_filtered_tabular): New function.
991 (fprintf_symbol_filtered): Add objc demangling support (disabled).
992 (set/show demangle): Extend help-string to refer to ObjC.
993 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
994 * stabsread.c (symbol_reference_defined): Objective-C symbols
995 may contain colons: make allowances when scanning stabs strings
996 for colons.
997 (objc_find_colon): New function.
998 * printcmd.c (address_info): If language == objc then print
999 "self" instead of "this".
1000 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1001 OP_NSSTRING, and OP_SELF.
1002 (prefixify_subexp): Ditto.
1003 * source.c (print_source_lines): Mention objc in comment.
1004 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1005 method names.
1006
b9caf505
AC
10072002-09-18 Andrew Cagney <ac131313@redhat.com>
1008
1009 * complaints.h: Update copyright.
1010 (struct complaints): Declare.
1011 (struct complaint): Make `message' constant.
1012 (internal_complaint): Declare.
1013 (complaint): Declare.
1014 (complaint_root): Delete declaration.
1015 (symfile_complaints): Delete declaration.
1016 (struct complaints): Add opaque declaration.
1017 (clear_complaints): Add a complaints parameter.
1018 * complaints.c: Update copyright.
1019 (enum complaint_series): Define.
1020 (complaint_root): Delete.
1021 (struct complaints): Define.
1022 (complaint_sentinel, symfile_complaint_book): New variables.
1023 (symfile_explanations, symfile_complaints): New variables.
1024 New variables.
1025 (get_complaints): New function.
1026 (vcomplaint): New function.
1027 (complaint): New function.
1028 (internal_complaint): New function.
1029 (complain): Call vcomplain with symfile_complaint.
1030 (clear_complaints): Rewrite.
1031 (_initialize_complaints): Use add_setshow_command.
1032 * Makefile.in (complaints.o): Update dependencies.
1033 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1034 to call to clear_complaints.
1035 (new_symfile_objfile, reread_symbols): Ditto.
1036 (oldsyms_complaint): Delete.
1037 (empty_symtab_complaint, unknown_option_complaint): Delete.
1038 (free_named_symtabs): Use complaint instead of complain.
1039
d2e6263c
MS
10402002-09-18 Michael Snyder <msnyder@redhat.com>
1041
5fb2031a
AC
1042 Contributed by Apple Computer, Inc. Merged with current sources
1043 by Adam Fedor <fedor@doc.com> [cagney].
1044
d2e6263c
MS
1045 * objc-lang.c: First clean-up round: comments, indentation.
1046 * objc-lang.h: Ditto.
1047 * objc-lang.y: Ditto.
1048
dec43320
AC
10492002-09-18 Andrew Cagney <ac131313@redhat.com>
1050
1051 * maint.c (maintenance_internal_error): Print the parameter as the
1052 error message.
1053 (maintenance_internal_warning): New function.
1054 (_initialize_maint_cmds): Add command `maint internal-warning'.
1055
1056 * defs.h (internal_warning, internal_vwarning): Declare.
1057 * utils.c (struct internal_problem): Define.
1058 (internal_vproblem): New function.
1059 (internal_warning): New function.
1060 (internal_vwarning): New function.
1061 (internal_warning_problem, internal_error_problem): New variables.
1062 (internal_verror): Just call internal_vproblem.
1063
b81654f1
MS
10642002-09-18 Michael Snyder <msnyder@redhat.com>
1065
1066 * objc-lang.c: New file, support for Objective-C.
1067 Preliminary check-in, not yet integrated into gdb.
1068 * objc-lang.h: New file.
1069 * objc-exp.y: New file.
1070
0542c381
AC
10712002-09-18 Andrew Cagney <ac131313@redhat.com>
1072
7bda5e4a
AC
1073 * infrun.c (signal_stop_update): Convert definition to ISO C.
1074 (signal_print_update): Ditto.
1075 (signal_pass_update): Ditto.
1076 * inflow.c (terminal_save_ours): Ditto.
1077
5247b418
AC
1078 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1079 comments.
1080
fc60962c
AC
1081 * config/djgpp/fnchange.lst: Handle name clashes between
1082 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1083 bfd/coff-tic80.c.
1084
0542c381
AC
1085 * i386-linux-tdep.h: Fix tipo.
1086
5b924b9b
AF
10872002-09-18 Adam Fedor <fedor@gnu.org>
1088
1089 * MAINTAINERS: Add myself to the Write After Approval list.
1090
5afc051b
JB
10912002-09-18 Jim Blandy <jimb@redhat.com>
1092
1093 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1094 texthigh and textlow to reader-specific structs caused
1095 objfile_relocate to miss them. This is fixable, but the work that
1096 the change was supposed to prepare GDB for never got done anyway.
1097
eb944380
DC
10982002-09-18 David Carlton <carlton@math.stanford.edu>
1099
1100 * MAINTAINERS: Alphabetize Write After Approval list.
1101
948e66d9
DJ
11022002-09-18 Daniel Jacobowitz <drow@mvista.com>
1103
1104 Fix PR gdb/709
1105 * values.c (value_static_field): Call read_var_value.
1106
dc604539
AC
11072002-09-18 Andrew Cagney <ac131313@redhat.com>
1108
1109 * valops.c (hand_function_call): Align the initial stack pointer
1110 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1111 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1112 return value.
1113 * mips-tdep.c (mips_frame_align): New function.
1114 (mips_gdbarch_init): Set frame_align.
1115 * gdbarch.sh (FRAME_ALIGN): New method.
1116 * gdbarch.h, gdbarch.c: Re-generate.
1117
cb7e422f
ML
11182002-09-18 Michal Ludvig <mludvig@suse.cz>
1119
1120 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1121 registers.
1122
a094c6fb
AC
11232002-09-17 Andrew Cagney <ac131313@redhat.com>
1124
1125 * NEWS: Mention that MIPS $fp behavior changed.
1126 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1127 reference to FP_REGNUM.
1128 (mipsnbsd_cannot_store_register): Ditto.
1129 * mips-linux-nat.c: Update copyright.
1130 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1131 (mips_linux_cannot_store_register): Ditto.
1132 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1133 * config/mips/tm-mips.h: Update copyright.
1134 (FP_REGNUM): Delete macro.
1135 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1136 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1137 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1138 (mips_r3041_reg_names, mips_r3051_reg_names)
1139 (mips_r3081_reg_names): Replace "fp" with "".
1140 Fix PR gdb/480.
1141
45cf40d1
TR
11422002-09-17 Theodore A. Roth <troth@verinet.com>
1143
1144 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1145 generic_read_register_dummy() (PR gdb/703).
1146 (avr_push_return_address): #if 0 out unused vars.
1147 (avr_gdbarch_init): Enable use of avr_push_return_address().
1148
c7e701b5
MS
11492002-09-17 Michael Snyder <msnyder@redhat.com>
1150
d76ba2a5 1151 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1152 RTE will take care of it.
1153
20bcf01c
AC
11542002-09-17 Andrew Cagney <ac131313@redhat.com>
1155
1156 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1157 invalid, return SP_REGNUM.
1158
009a9971 11592002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1160
1161 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1162 point registers without sign extension.
1163
135c175f
AC
11642002-09-17 Andrew Cagney <cagney@redhat.com>
1165
1166 * blockframe.c (deprecated_read_register_dummy): Rename
1167 generic_read_register_dummy.
1168 * frame.c (frame_unwind_signed_register): New function.
1169 (frame_unwind_unsigned_register): New function.
1170 * frame.h (frame_unwind_signed_register): Declare.
1171 (frame_unwind_unsigned_register): Declare.
1172 (deprecated_read_register_dummy): Rename
1173 generic_read_register_dummy.
1174
1175 * h8300-tdep.c (h8300_frame_chain): Update.
1176 (h8300_frame_saved_pc): Update.
1177 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1178 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1179 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1180 (s390_frame_chain): Update.
1181 * v850-tdep.c (v850_find_callers_reg): Update.
1182 (v850_frame_saved_pc): Update.
1183 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1184 (m32r_find_callers_reg): Update.
1185 (m32r_frame_saved_pc): Update.
1186 * sh-tdep.c (sh_find_callers_reg): Update.
1187 (sh64_get_saved_pr): Update.
1188 (sh_init_extra_frame_info): Update.
1189 (sh_init_extra_frame_info): Update.
1190 (sh64_init_extra_frame_info): Update.
1191 (sh64_init_extra_frame_info): Update.
1192 * mcore-tdep.c (mcore_find_callers_reg): Update.
1193 (mcore_frame_saved_pc): Update.
1194 (mcore_init_extra_frame_info): Update.
1195 * i386-tdep.c (i386_frame_saved_pc): Update.
1196 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1197 (ia64_init_extra_frame_info): Update.
1198 (ia64_init_extra_frame_info): Update.
1199 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1200 * cris-tdep.c (cris_init_extra_frame_info): Update.
1201 * avr-tdep.c (avr_frame_chain): Update.
1202 (avr_init_extra_frame_info): Update.
1203 (avr_frame_saved_pc): Update.
1204 * arm-tdep.c (arm_find_callers_reg): Update.
1205 (arm_init_extra_frame_info): Update.
1206 (arm_frame_saved_pc): Update.
1207
a741e514
TT
12082002-09-17 Tom Tromey <tromey@redhat.com>
1209
1210 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1211 is "'".
1212
d1a8e808
CV
12132002-09-17 Corinna Vinschen <vinschen@redhat.com>
1214
1215 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1216 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1217 NEXT_PROLOGUE_INSN.
1218 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1219 NEXT_PROLOGUE_INSN.
1220
d9025a18
JB
12212002-09-16 Joel Brobecker <brobecker@gnat.com>
1222
1223 * osfsolib.c: Remove file, replaced by solib-osf.c.
1224 * Makefile.in: Remove compilation rules for osfsolib.c.
1225
1b2ef1b6
DC
12262002-09-16 David Carlton <carlton@math.stanford.edu>
1227
1228 * cp-valprint.c (cp_print_class_method): Correct args to
1229 check_stub_method_group.
1230
928e48af
CV
12312002-09-16 Corinna Vinschen <vinschen@redhat.com>
1232
1233 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1234 `set architecture'. Unify naming convention of functions.
1235 (h8300_skip_prologue): Improve prologue analysis.
1236 (h8300_push_arguments): Rewritten to more closely match GCC's
1237 bizarre argument-passing behavior, along with the comment describing
1238 said behavior.
1239 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1240 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1241 sim, remote-e7000.c, remote-hms.c and remote.c
1242
5e3397bb
MK
12432002-09-15 Mark Kettenis <kettenis@gnu.org>
1244
1245 * i386-tdep.c (gdb_print_insn_i386): Removed.
1246 (i386_print_insn): New function.
1247 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1248 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1249 tm_print_insn_info.
1250
f710f4fc
MK
12512002-09-14 Mark Kettenis <kettenis@gnu.org>
1252
1253 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1254 zero.
1255
db54fef4
CV
12562002-09-14 Corinna Vinschen <vinschen@redhat.com>
1257
1258 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1259 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1260 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1261
2becadee
CF
12622002-09-13 Christopher Faylor <cgf@redhat.com>
1263
1264 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1265
de17c821
DJ
12662002-09-13 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * gdbtypes.c (check_stub_method): Make static.
1269 (check_stub_method_group): New function.
1270 * gdbtypes.h: Update prototypes.
1271 * cp-support.c: New file.
1272 * cp-support.h: New file.
1273
1274 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1275 (update_method_name_from_physname): New function.
1276 (read_member_functions): Correct method names for operators
1277 and v3 constructors/destructors. Separate v2 constructors and
1278 destructors.
1279 * Makefile.in (stabsread.o): Update dependencies.
1280 (SFILES): Add cp-support.c.
1281 (COMMON_OBS): Add cp-support.o.
1282 (cp_support_h, cp-support.o): Add.
1283
1284 * cp-valprint.c (cp_print_class_method): Call
1285 check_stub_method_group instead of check_stub_method. Remove
1286 extraneous QUITs.
1287 * p-valprint.c (pascal_object_print_class_method): Likewise.
1288 * valops.c (search_struct_method): Likewise.
1289 (find_method_list, value_struct_elt_for_reference): Likewise.
1290
e76cff22
AC
12912002-09-13 Andrew Cagney <cagney@redhat.com>
1292
1293 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1294 * gdbarch.h, gdbarch.c: Regenerate.
1295
905abb3f
AC
12962002-09-13 Andrew Cagney <ac131313@redhat.com>
1297
1298 * frame.c (find_saved_register): Delete function.
1299 * frame.h (find_saved_register): Delete declaration.
1300 Fix PR gdb/631.
1301
64159455
AC
1302Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1303
1304 * mips-tdep.c (read_next_frame_reg): Re-hack using
1305 frame_register_unwind.
1306
795e1e11
AC
1307Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1308
1309 * mips-tdep.c (mips_get_saved_register): Re-hack using
1310 frame_register_unwind.
1311
5720643c
JB
13122002-09-12 Joel Brobecker <brobecker@gnat.com>
1313
1314 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1315 vector. Will be useful for Interix.
1316 * gdbarch.h, gdbarch.c: Regenerate.
1317
1318 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1319 name of the malloc function by NAME_OF_MALLOC.
1320
3bada2a2
JB
13212002-09-12 Joel Brobecker <brobecker@gnat.com>
1322
1323 * value.h (find_function_in_inferior): Add const keyword to
1324 one of the parameters. Allows us to invoke this function with
1325 a const char *.
1326 * valops.c (find_function_in_inferior): Likewise.
1327
3db26b01
JB
13282002-09-12 Joel Brobecker <brobecker@gnat.com>
1329
1330 * exec.c (xfer_memory): Fix compilation warning with old versions
1331 of GCC.
1332 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1333
17c5ed2c
DC
13342002-09-12 David Carlton <carlton@math.stanford.edu>
1335
1336 * symtab.h: Run through gdb_indent.h.
1337 Add 2002 to Copyright year list.
1338
ecd1107e
AM
13392002-09-12 Alan Modra <amodra@bigpond.net.au>
1340
1341 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1342 mach constants.
1343 * MAINTAINERS: Add myself to write after approval list.
1344
e64f66d1
JB
13452002-09-11 J. Brobecker <brobecker@gnat.com>
1346
1347 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1348
f9395794
JB
13492002-09-11 J. Brobecker <brobecker@gnat.com>
1350
1351 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1352 Interix.
1353
1a303dec
MS
13542002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1355
1356 * procfs.c (do_detach): Clear current signal, not just fault.
1357 Corrects problem with breakpoint trap signal leaking to detached
1358 process on Tru64.
1359
c0219d42
MS
13602002-09-10 Michael Snyder <msnyder@redhat.com>
1361
1362 * buildsym.c (finish_block): Protect against null pointer.
1363
9d84ac84
AC
13642002-09-10 Andrew Cagney <cagney@redhat.com>
1365
1366 * infcmd.c (default_print_registers_info): Send all output to
1367 ``file'' instead of ``gdb_stdout''.
1368
77d8f2b4
MS
13692002-09-10 Michael Snyder <msnyder@redhat.com>
1370
1371 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1372 LONGEST, and use signed register read (addresses are sign-
1373 extended for mips).
1374
99656a61
SC
13752002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1376
1377 * event-loop.c (gdb_do_one_event): Make public.
1378 * event-loop.h (gdb_do_one_event): Declare.
1379
da12f4d8
JL
13802002-09-10 Jeff Law <law@redhat.com>
1381
1382 * infttrace.c (child_resume): Simplify and rework to avoid
1383 TT_PROC_CONTINUE.
1384
d0aee0c4
FF
13852002-09-09 Fred Fish <fnf@intrinsity.com>
1386
1387 * printcmd.c (print_scalar_formatted): "len" is the number of
1388 target bytes, NOT the number of target bits.
1389
7cb3ec5e
EZ
13902002-09-09 Elena Zannoni <ezannoni@redhat.com>
1391
1392 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1393 * top.c (init_main): Set rl_terminal_name.
1394
4dc81987
AS
13952002-09-08 Aidan Skinner <aidan@velvet.net>
1396
1397 * ada-lang.c (ada_array_bound, ada_type_match,
1398 _initialize_ada_language): Fix K&R definitions.
1399 * ada-tasks.c (get_current_task): Fix K&R definitions.
1400 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1401
842330b4
CF
14022002-09-07 Christopher Faylor <cgf@redhat.com>
1403
1404 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1405 Add XP.
1406
43156d82
MK
14072002-09-06 Mark Kettenis <kettenis@gnu.org>
1408
66da5fd8
MK
1409 * i386-tdep.c (i386_register_virtual_type,
1410 i386_register_convertible, i386_register_convert_to_virtual,
1411 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1412 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1413 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1414 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1415 Don't set push_arguments twice.
1416
4b218c18
MK
1417 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1418 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1419 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1420 sigtramp_end to NULL.
1421 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1422 defines.
1423 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1424
4cc314d5
MK
1425 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1426 whitespace.
1427
43156d82
MK
1428 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1429 * gdbarch.h, gdbarch.c: Re-generate.
1430 * blockframe.c (find_pc_sect_partial_function): Convert to use
1431 SIGTRAMP_START_P predicate.
1432
6672060b
MS
14332002-09-05 Michael Snyder <msnyder@redhat.com>
1434
a90c3637
MS
1435 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1436 generic_dummy_frame method and old method. Also distinguish
1437 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1438 (arm_extract_return_value): Use new regcache method.
a90c3637 1439
6672060b
MS
1440 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1441 adjustment that doesn't conform to the ABI.
1442 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1443 saved regcache, not from current regcache.
1444
299ffc64
AC
14452002-09-05 Andrew Cagney <ac131313@redhat.com>
1446
1447 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1448 * README: Update.
1449
a3a2ee65
JT
14502002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1451
1452 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1453 if arm_apcs_32 is false.
1454
2bc7eea9
AC
14552002-09-04 Andrew Cagney <ac131313@redhat.com>
1456
1457 GDB 5.3 branch created.
1458
8a55a7c5
TR
14592002-09-03 Theodore A. Roth <troth@verinet.com>
1460
1461 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1462 generic_unwind_get_saved_register.
1463
e26fb1d7
DC
14642002-09-03 David Carlton <carlton@math.stanford.edu>
1465
1466 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1467 argument (PR gdb/653). Update call to smash_to_method_type.
1468 (read_structure_scope): Update call to dwarf2_add_member_fn.
1469
30d52491
ML
14702002-09-03 Michal Ludvig <mludvig@suse.cz>
1471
1472 * x86-64-linux-tdep.c: Include gdb_string.h
1473 * x86-64-linux-nat.c: Ditto.
1474
06891d83
JT
14752002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1476
1477 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1478 when YYDEBUG is set to 1.
1479 * c-exp.y: Likewise.
1480 * f-exp.y: Likewise.
1481 * jv-exp.y: Likewise.
1482 * m2-exp.y: Likewise.
1483 * p-exp.y: Likewise.
1484
7d400e77
JT
14852002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1486
1487 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1488 dependency list.
1489 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1490 solib_svr4_fetch_link_map_offsets to
1491 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1492 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1493 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1494 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1495 solib-svr4.o, and solib-legacy.o.
1496 * config/i386/tm-nbsd.h: Include solib.h.
1497
704a27c4
JT
14982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1499
1500 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1501 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1502 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1503 comment noting that this needs its own target configuration.
1504 * config/i386/nbsd.mt: New file.
1505 * config/i386/nbsdaout.mt: Remove.
1506 * config/i386/nbsdelf.mt: Ditto.
1507 * config/i386/tm-nbsdaout.h: Ditto.
1508
d66198e1
JT
15092002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1510
1511 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1512 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1513 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1514 tdep->sigtramp_end.
1515 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1516 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1517 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1518
3cac699e
JT
15192002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1520
1521 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1522 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1523 * i386-tdep.h (i386bsd_init_abi): New prototype.
1524 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1525 function declaration.
1526 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1527 for NetBSD-a.out or NetBSD-ELF.
1528 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1529 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1530 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1531 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1532 and nbsd-tdep.h.
1533 (i386nbsd_pc_in_sigtramp): New function.
1534 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1535 i386nbsd_pc_in_sigtramp.
1536 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1537 and i386nbsdelf_init_abi OS ABI handlers.
1538 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1539 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1540
7010ca0a
MK
15412002-09-02 Mark Kettenis <kettenis@gnu.org>
1542
1543 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1544 registers if the target really has them.
1545
6dd93b72
JT
15462002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1547
1548 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1549 than nbsd-tdep.h.
1550
2ca8ae21
JT
15512002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1552
1553 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1554 list.
1555 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1556 (alphanbsd_skip_sigtramp_frame): New functions.
1557 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1558 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1559 to alphanbsd_sigcontext_addr.
1560
3d9b49b0
JT
15612002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1562
1563 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1564 list.
1565 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1566 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1567 nbsd_pc_in_sigtramp.
1568 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1569 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1570 * nbsd-tdep.c: Include gdb_string.h.
1571 (nbsd_pc_in_sigtramp): New function.
1572 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1573 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1574 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1575 ppcnbsd_pc_in_sigtramp.
1576 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1577 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1578 shnbsd_pc_in_sigtramp.
1579 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1580 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1581 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1582
c860120c
PM
15832002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1584
1585 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1586 watchpoints to NULL.
1587 (insert_breakpoints): set val field of watchpoints if NULL.
1588
1589
c7612d53
JB
15902002-08-29 Jim Blandy <jimb@redhat.com>
1591
1592 * symtab.c (lookup_symbol_aux): In the cases where we find a
1593 minimal symbol of an appropriate name and use its address to
1594 select a symtab to read and search, use `name' (as passed to us)
1595 as the demangled name when searching the symtab's global and
1596 static blocks, not the minsym's name.
1597
66609862
KS
15982002-08-29 Keith Seitz <keiths@redhat.com>
1599
1600 * stack.c (print_frame_info_base): Always set current_source_symtab
1601 and current_source_line.
1602
151fefe2
JB
16032002-08-29 Donn Terry <donnte@microsoft.com>
1604
1605 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1606
bfb3754e
KS
16072002-08-28 Keith Seitz <keiths@redhat.com>
1608
1609 * stack.c (select_frame): Add FIXME concerning selected-frame
1610 events.
1611 (select_frame_command): Send selected-frame-level-changed
1612 event notification, but only if the level actually changed.
1613 (up_silently_base): Add selected-frame-level-changed event
1614 notification.
1615 (down_silently_base): Likewise.
1616
e822a2a0
AC
16172002-08-28 Andrew Cagney <ac131313@redhat.com>
1618
1619 * Makefile.in: Update dependencies for all gdb/*.c files.
1620
309367d4
TT
16212002-08-27 Tom Tromey <tromey@redhat.com>
1622
1623 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1624 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1625 Update dependencies.
1626 * i387-tdep.c: Include gdb_string.h.
1627 * osabi.c: Likewise.
1628 * i386-linux-nat.c: Likewise.
1629 * lin-lwp.c: Likewise.
1630 * ax-gdb.c: Likewise.
1631 * signals/signals.c: Likewise.
1632 * jv-valprint.c: Likewise.
1633 * p-lang.c: Likewise.
1634 * c-valprint.c: Likewise.
1635 * cp-abi.c: Likewise.
1636
e1507482
EZ
16372002-08-27 Elena Zannoni <ezannoni@redhat.com>
1638
1639 * cli/cli-script.h (copy_command_lines): Export.
1640 * breakpoint.c: Include cli/cli-script.h.
1641 * Makefile.in (breakpoint.o): Update dependencies.
1642
c6510018
MS
16432002-08-26 Michael Snyder <msnyder@redhat.com>
1644
1645 * breakpoint.c (insert_breakpoints): Protect all references
1646 to 'process_warning'. Shorten long lines.
1647
c2b8ed2c
MS
16482002-08-26 Joel Brobecker <brobecker@gnat.com>
1649
1650 * cli/cli-script.c (copy_command_lines): New function.
1651 * defs.h (copy_command_lines): Export.
1652 * testsuite/gdb.base/commands.exp: New tests for commands
1653 attached to a temporary breakpoint, and for commands that
1654 delete the breakpoint they are attached to.
1655
16562002-08-26 Michael Snyder <msnyder@redhat.com>
1657
1658 * breakpoint.c (bpstat_stop_status): Instead of copying the
1659 pointer to the breakpoint commands struct, make a new copy
1660 of the struct and point to that.
1661 (bpstat_clear): Free the commands struct.
1662 (bpstat_clear_actions): Free the commands struct.
1663 (bpstat_do_actions): Free the command actions. Also execute
1664 the local cleanups, instead of deleting them.
1665 (delete_breakpoint): Leave the commands field of the bpstat
1666 chain alone -- it will be freed later.
1667
64b84175
KB
16682002-08-26 Kevin Buettner <kevinb@redhat.com>
1669
1670 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1671 deleted in 2002-08-20 commit. This function is still used by
1672 ppc-linux-nat.c.
1673
55970da6
KS
16742002-08-26 Keith Seitz <keiths@redhat.com>
1675
1676 * gdb-events.sh: Add selected-frame-level-changed event.
1677 * gdb-events.c: Regenerated.
1678 * gdb-events.h: Regenerated.
1679
a790ad35
SC
16802002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1681
1682 Fix PR gdb/393:
1683 * inflow.c (terminal_save_ours): New function to save terminal
1684 settings.
1685 * inferior.h (terminal_save_ours): Declare.
1686 * target.c (debug_to_terminal_save_ours): New function.
1687 (cleanup_target): Defaults to_terminal_save_ours.
1688 (update_current_target): Inherit to_terminal_save_ours.
1689 (setup_target_debug): Set to_terminal_save_ours.
1690 * target.h (target_terminal_save_ours): New to save terminal settings.
1691 (target_ops): New member to_terminal_save_ours.
1692 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1693 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1694 * inftarg.c (init_child_ops): Likewise.
1695 * m3-nat.c (init_m3_ops): Likewise.
1696 * procfs.c (init_procfs_ops): Likewise.
1697 * wince.c (init_child_ops): Likewise.
1698 * win32-nat.c (init_child_ops): Likewise.
1699 * sol-thread.c (init_sol_thread_ops): Likewise.
1700
c00dcbe9
MK
17012002-08-26 Mark Kettenis <kettenis@gnu.org>
1702
3d7f4f49
MK
1703 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1704 use regcache_* functions.
1705 (i386_gdbarch_init): Set store_return_value instead of
1706 deprecated_store_return_value.
1707
c00dcbe9
MK
1708 * regcache.c (regcache_raw_write_signed,
1709 regcache_raw_write_unsigned): New functions.
1710 * regcache.h (regcache_raw_write_signed,
1711 regcache_raw_write_unsigned): New prototypes.
1712
0e0d15ca
AC
17132002-08-25 Andrew Cagney <ac131313@redhat.com>
1714
1715 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1716 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1717 source file dependencies. Cleanup corresponding generator rules.
1718
d3b22ed5
AC
17192002-08-25 Andrew Cagney <ac131313@redhat.com>
1720
1721 * regcache.h (register_offset_hack): Declare.
1722 (regcache_cooked_read_using_offset_hack): Declare.
1723 (regcache_cooked_write_using_offset_hack): Declare.
1724
1725 * regcache.c (register_offset_hack): New function.
1726 (regcache_cooked_read_using_offset_hack): New function.
1727 (regcache_cooked_write_using_offset_hack): New function.
1728 (regcache_dump): Check that the registers, according to their
1729 offset, are packed hard against each other.
1730 (cooked_xfer_using_offset_hack): New function.
1731
bb425013
AC
17322002-08-25 Andrew Cagney <ac131313@redhat.com>
1733
1734 * regcache.c (struct regcache_descr): Add field register_type.
1735 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1736 in as a parameter
1737 (init_regcache_descr): Initialize register_type. Pass the descr
1738 to init_legacy_regcache_descr. Use register_type instead of
1739 REGISTER_VIRTUAL_TYPE.
1740 (register_type): New function.
1741 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1742 * regcache.h (register_type): Declare.
1743
d0403e00
AC
17442002-08-25 Andrew Cagney <ac131313@redhat.com>
1745
1746 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1747 instead of deprecated_store_return_value. Fix fallout from
1748 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1749
0ed04cce
AC
17502002-08-25 Andrew Cagney <ac131313@redhat.com>
1751
1752 * regcache.c (max_register_size): New function.
1753 (init_legacy_regcache_descr): Ensure that max_register_size is
1754 large enough for REGISTER_VIRTUAL_SIZE.
1755 * regcache.h (max_register_size): Declare.
1756
46d79c04
AC
17572002-08-24 Andrew Cagney <ac131313@redhat.com>
1758
1759 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1760 store_return_value.
1761 (e500_extract_return_value): Change type of valbuf pointer to
1762 void.
1763
853c7bd0
MK
17642002-08-24 Mark Kettenis <kettenis@gnu.org>
1765
cd87e769
MK
1766 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1767 workaround.
1768
853c7bd0
MK
1769 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1770 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1771 long long) to prevent compiler warning on 64-bit systems.
1772
ebba8386
AC
17732002-08-23 Andrew Cagney <cagney@redhat.com>
1774
1775 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1776 (DEPRECATED_STORE_RETURN_VALUE): New method.
1777 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1778 * gdbarch.h, gdbarch.c: Re-generate.
1779
1780 * values.c (set_return_value): Pass current_regcache to
1781 STORE_RETURN_VALUE.
1782 * arch-utils.h (legacy_store_return_value): Declare.
1783 * arch-utils.c (legacy_store_return_value): New function.
1784 (legacy_extract_return_value): Update parameters.
1785
1786 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1787 STORE_RETURN_VALUE.
1788 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1789 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1790 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1791 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1792 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1793 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1794 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1795 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1796 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1797 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1798
1799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1800 * i386-tdep.c (i386_extract_return_value): Update.
1801 * arch-utils.c (legacy_extract_return_value): Update.
1802 * frv-tdep.c (frv_gdbarch_init): Update.
1803 * cris-tdep.c (cris_gdbarch_init): Update.
1804 * d10v-tdep.c (d10v_gdbarch_init): Update.
1805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1806 * m68k-tdep.c (m68k_gdbarch_init): Update.
1807 * mcore-tdep.c (mcore_gdbarch_init): Update.
1808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1809 * s390-tdep.c (s390_gdbarch_init): Update.
1810 * sparc-tdep.c (sparc_gdbarch_init): Update.
1811 * sh-tdep.c (sh_gdbarch_init): Update.
1812 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1813 * v850-tdep.c (v850_gdbarch_init): Update.
1814 * avr-tdep.c (avr_gdbarch_init): Update.
1815 * ia64-tdep.c (ia64_gdbarch_init): Update.
1816 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1817 * vax-tdep.c (vax_gdbarch_init): Update.
1818 * alpha-tdep.c (alpha_gdbarch_init): Update.
1819 * arm-tdep.c (arm_gdbarch_init): Update.
1820 * mips-tdep.c (mips_gdbarch_init): Update.
1821 * i386-tdep.c (i386_gdbarch_init): Update.
1822
5bd8c6d0
AC
18232002-08-23 Andrew Cagney <ac131313@redhat.com>
1824
1825 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1826 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1827
e73e1724
MK
18282002-08-24 Mark Kettenis <kettenis@gnu.org>
1829
1830 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1831 problems.
1832
3e6564e1
JB
18332002-08-23 Joel Brobecker <brobecker@gnat.com>
1834
1835 * infrun.c (handle_inferior_event): Move a comment outside of a
1836 function call, in order to avoid indent reformatting this part
1837 of the code in an unreadable way.
1838
81d0cc19
GS
18392002-08-23 Grace Sainsbury <graces@redhat.com>
1840
1841 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1842 when breakpoints fail. Move general breakpoint error messages to
1843 insert_breakpoints.
1844 * breakpoint.c (insert_breakpoints): Change warnings when
1845 breakpoints are nto inserted to specify the type. Remove call to
1846 memory_error when hardware breakpoints can't be inserted. Remove
1847 multiple calls to warning so all messages are sent to the user at
1848 once.
1849 (delete_breakpoints): Make insert error messsages more explicit.
1850
17574093
DJ
18512002-08-23 Daniel Jacobowitz <drow@mvista.com>
1852
1853 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1854 gdbserver/ChangeLog.
1855
8acc2935
MK
18562002-08-23 Mark Kettenis <kettenis@gnu.org>
1857
dfe01d39
MK
1858 * i386-tdep.c: Include "objfiles.h".
1859 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1860 skip_trampoline_code.
1861 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1862 (CPLUS_MARKER): Define to '.'.
1863
8acc2935
MK
1864 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1865 member.
1866 (linux_corefile_thread_callback): Increase args->num_notes.
1867 (linux_make_note_section): Initialize thread_args.num_notes, and
1868 use it to determine whether notes for any threads were created.
1869
151fefe2 18702002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1871
1872 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1873 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1874 and PCUNKILL.
1875 (write_with_trace): Conditionalize out the switch branch handling
1876 PCSHOLD if the corresponding macro is not defined. Likewise for
1877 PRSABORT and PRSTOP.
1878 This change will be needed by the Interix port.
1879
e1507482
EZ
18802002-08-22 Elena Zannoni <ezannoni@redhat.com>
1881
1882 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1883 write_register wherever possible instead of manipulating the
1884 register bytes directly.
1885 Assign VALUE_CONTENTS to a variable and use that.
1886 The GPR numbers are now dependent on the architecture.
1887
96ff0de4
EZ
18882002-08-22 Elena Zannoni <ezannoni@redhat.com>
1889
1890 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1891 ev_offset fields.
1892 (skip_prologue): Add support for BookE/e500 instructions.
1893 (e500_extract_return_value): New function.
1894 (frame_get_saved_regs): Add support for saving ev registers and
1895 pseudo gpr's.
1896 (e500_store_return_value): New function.
1897 (rs6000_gdbarch_init): Move up default intializations of
1898 deprecated_extract_return_value and store_return_value. Overwrite
1899 init of store_return_value with e500 specific version.
1900 Set extract_return_value for e500.
1901
fbefca5b
EZ
19022002-08-22 Elena Zannoni <ezannoni@redhat.com>
1903
1904 * blockframe.c (generic_call_dummy_register_unwind): Use
1905 regcache_cooked_read to catch cases in which the variable is
1906 stored in a pseudo register.
1907
4d210288
AC
19082002-08-22 Andrew Cagney <cagney@redhat.com>
1909
1910 * NEWS: Mention that the i960 has been made obsolete.
1911 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1912 i960-tdep.c
1913 (remote-nrom.o): Obsolete target.
1914 (remote-nindy.o, i960-tdep.o): Ditto.
1915 * remote-nrom.c: Make file obsolete.
1916 * remote-nindy.c, remote-vx960.c: Ditto.
1917 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1918 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1919 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1920 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1921 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1922 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1923 i960-*-vxworks* obsolete.
1924 * MAINTAINERS: Note that the i960 is obsolete.
1925
6c0c456d
CV
19262002-08-21 Corinna Vinschen <vinschen@redhat.com
1927
1928 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1929 detach to allow reinitialization.
1930
9f9d12b3
AC
19312002-08-22 Andrew Cagney <ac131313@redhat.com>
1932
1933 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1934 attempt).
1935
ebeb39fe
JB
19362002-08-22 Jim Blandy <jimb@redhat.com>
1937
1938 * coffread.c (coff_symfile_read): Don't try to read the line
1939 number table from disk if the image file doesn't have a symbol
1940 table; we'll never actually look at the info anyway, and Windows
1941 ships DLL's with bogus file offsets for the line number data.
1942
5bf1c677
EZ
19432002-08-21 Elena Zannoni <ezannoni@redhat.com>
1944
1945 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1946 an e500 executable.
1947
71b8ef93
MS
19482002-08-21 Michael Snyder <msnyder@redhat.com>
1949
1950 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1951 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1952 (DEFAULT_MIPS_TYPE): Delete unused macro.
1953 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1954 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1955
d174216d
JB
19562002-08-21 Jim Blandy <jimb@redhat.com>
1957
1958 * valops.c (value_cast): Simplify and correct logic for doing a
1959 static cast from a pointer to a base class to a pointer to a
1960 derived class.
1961
0ab7a791
AC
19622002-08-21 Andrew Cagney <ac131313@redhat.com>
1963
1964 * infcmd.c (default_print_registers_info): Replace
1965 do_registers_info.
1966 (registers_info): Use gdbarch_print_registers_info instead of
1967 DO_REGISTERS_INFO.
1968 * inferior.h (default_print_registers_info): Replace
1969 do_registers_info.
1970 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1971 (DO_REGISTERS_INFO): Change to a predicate function.
1972 * gdbarch.h, gdbarch.c: Regenerate.
1973
e23792cc
KS
19742002-08-21 Keith Seitz <keiths@redhat.com>
1975
1976 * gdb-events.sh: Add target-changed event.
1977 * gdb-events.c: Regenerated.
1978 * gdb-events.c: Regenerated.
1979 * valops.c (value_assign): Add target-changed event notification
1980 to inlval_register, lval_memory, and lval_reg_frame_relative.
1981
9fb14e79
JB
19822002-08-21 Joel Brobecker <brobecker@gnat.com>
1983
1984 * NEWS: Add an entry regarding the improvement of the next/step
1985 operation on Alpha Tru64 multi-processor machines.
1986
6d39a69f
AC
19872002-08-21 Andrew Cagney <ac131313@redhat.com>
1988
72acd513
AC
1989 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1990 directores.
342af04b 1991 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1992 * Makefile.in (install-gdbtk): Move to install section.
1993 (rdi-share/libangsd.a): Move to end of file.
1994
fa5f27c7
AC
19952002-08-19 Andrew Cagney <ac131313@redhat.com>
1996
1997 * frame.c (frame_register_unwind): When a register, set addrp to
1998 the register's byte.
1999
5a89d8aa
MS
20002002-08-20 Michael Snyder <msnyder@redhat.com>
2001
2002 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2003 used locally, so move them from the target machine header to here.
2004 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2005 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2006 Make static.
2007 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2008
822e978b
AC
20092002-08-20 Andrew Cagney <cagney@redhat.com>
2010
2011 * NEWS: Mention that the Apollo line was made obsolete.
2012 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2013 m68*-hp-hpux* obsolete.
2014 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2015 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2016 * buildsym.c (make_blockvector): Make static.
2017 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2018 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2019 (ALLDEPFILES): Remove dstread.c.
2020 (dstread.o): Obsolete make rule.
2021 * dstread.c: Makefile obsolete.
2022 * dst.h: Ditto.
2023 * config/m68k/hp300hpux.mt: Ditto.
2024 * config/m68k/hp300hpux.mh: Ditto.
2025 * config/m68k/hp300bsd.mt: Ditto.
2026 * config/m68k/hp300bsd.mh: Ditto.
2027 * config/m68k/apollo68b.mt: Ditto.
2028 * config/m68k/apollo68v.mh: Ditto.
2029 * config/m68k/apollo68b.mh: Ditto.
2030
e41b17f0
MS
20312002-08-20 Michael Snyder <msnyder@redhat.com>
2032
2033 * mips-tdep.c (mips_in_return_stub): Make static.
2034 (mips_gdbarch_init): Set in_solib_return_trampoline.
2035 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2036
d50355b6
MS
20372002-08-20 Michael Snyder <msnyder@redhat.com>
2038
2039 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2040 * gdbarch.c, gdbarch.h: Regenerate.
2041 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2042 Add.
2043 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2044
757a7cc6
MS
20452002-08-20 Michael Snyder <msnyder@redhat.com>
2046
2047 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2048 (mips_gdbarch_init): Set skip_trampoline_code,
2049 in_solib_call_trampoline.
2050 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2051 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2052
c8001721
EZ
20532002-08-20 Elena Zannoni <ezannoni@redhat.com>
2054
2055 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2056
2057 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2058 vector type for ev registers.
2059 (e500_pseudo_register_read): New function.
2060 (e500_pseudo_register_write): New function.
2061 (e500_dwarf2_reg_to_regnum): New function.
2062 (PPC_UISA_NOFP_SPRS): New macro.
2063 (PPC_EV_REGS): New macro.
2064 (PPC_GPRS_PSEUDO_REGS): New macro.
2065 (registers_e500): New register set for e500.
2066 (variants): Add e500 variant.
2067 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2068 before setting architectural dependent variations. Initialize ev
2069 registers numbers. Add case for e500 architecture. Set the
2070 number of pseudo registers.
2071
64366f1c
EZ
20722002-08-20 Elena Zannoni <ezannoni@redhat.com>
2073
2074 * rs6000-tdep.c: Clean up comments.
2075
7e78f0ca
AC
20762002-08-20 Andrew Cagney <cagney@redhat.com>
2077
2078 * h8300-tdep.c: Re-indent file.
2079
697f7479
JB
20802002-08-20 Jim Blandy <jimb@redhat.com>
2081
2082 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2083 default for this.
697f7479 2084
e86ae29f
KS
20852002-08-20 Keith Seitz <keiths@redhat.com>
2086
2087 * breakpoints.c (watch_command_1): Use internal breakpoint
2088 when setting a watchpoint_scope breakpoint.
2089
216b504f
EZ
20902002-08-20 Elena Zannoni <ezannoni@redhat.com>
2091
2092 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2093 (build_builtin_type_vec64i): Ditto.
2094 (build_builtin_type_vec128): Ditto.
2095 (build_builtin_type_vec128i): Ditto.
2096
f7ab6ec6
MS
20972002-08-19 Michael Snyder <msnyder@redhat.com>
2098
2099 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2100 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2101 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2102 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2103 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2104 CALL_DUMMY_ADDRESS): Delete.
2105 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2106 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2107 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2108 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2109 push_return_address.
2110 (mips_register_raw_size, mips_eabi_use_struct_convention,
2111 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2112 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2113 mips_init_extra_frame_info, mips_eabi_push_arguments,
2114 mips_n32n64_push_arguments, mips_push_return_address,
2115 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2116 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2117
b5d1566e
MS
21182002-08-19 Michael Snyder <msnyder@redhat.com>
2119
2120 * mips-tdep.c (mips_frame_num_args): New function.
2121 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2122 frame_saved_pc, frame_args_address, frame_locals_address,
2123 frame_num_args, and frame_args_skip.
2124 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2125 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2126 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2127 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2128
2f1488ce
MS
21292002-08-20 Michael Snyder <msnyder@redhat.com>
2130
2131 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2132 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2133 * mips-tdep.c (mips_store_struct_return): New function.
2134 (mips_extract_struct_value_address): New function.
2135 (mips_gdbarch_init): Set store_struct_return and
2136 extract_struct_value_address.
2137
41ff2da1
DC
21382002-08-20 David Carlton <carlton@math.stanford.edu>
2139
2140 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2141 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2142 (read_file_scope): Check that line_header is nonzero before
2143 decoding macro information.
2144
e5451d58
MK
21452002-08-20 Mark Kettenis <kettenis@gnu.org>
2146
2147 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2148 flag the general-purpose registers as floating-point on targets
2149 that don't support the floating-point registers.
2150
4a6daafa
EZ
21512002-08-20 Elena Zannoni <ezannoni@redhat.com>
2152
2153 * rs6000-tdep.c (altivec_register_p): Delete.
2154 (rs6000_do_altivec_registers): Delete.
2155 (rs6000_altivec_registers_info): Delete.
2156 (rs6000_do_registers_info): Delete.
2157 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2158 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2159
ab4327e0
EZ
21602002-08-20 Elena Zannoni <ezannoni@redhat.com>
2161
2162 * infcmd.c (do_registers_info): Print vector registers in hex
2163 format only.
2164 (print_vector_info): Check that printing registers
2165 makes sense.
2166 (print_float_info): Ditto.
2167
cb1d2653
AC
21682002-08-20 Andrew Cagney <ac131313@redhat.com>
2169
2170 * mips-tdep.c (mips_gdbarch_init): Update.
2171 (mips_o32_extract_return_value): Rewrite.
2172 (mips_o32_store_return_value): Rewrite.
2173 (mips_o32_xfer_return_value): New function.
2174 (mips_xfer_register): Tweak debug print message. Allow for
2175 buf_offset when dumping the value transfered.
2176
dfc3d9b2
AC
21772002-08-20 Andrew Cagney <ac131313@redhat.com>
2178
2179 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2180 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2181 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2182 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2183 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2184
7807aa61
MS
21852002-08-14 Michael Snyder <msnyder@redhat.com>
2186
2187 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2188
489461e2
EZ
21892002-08-19 Elena Zannoni <ezannoni@redhat.com>
2190
2191 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2192 register.
2193 (P): New macro to define a register as a pseudo register.
2194 (R, R4, R8, R16, FR32, R64, R0): Updated.
2195 (struct variant): Add new fields for number of pseudo registers
2196 and number of total registers.
2197 (tot_num_registers): New macro replacing....
2198 (num_registers): ...deleted macro.
2199 (num_registers): New function.
2200 (num_pseudo_registers): New function.
2201 (variants): Update all variants to intialize new fields correctly.
2202 Postpone initialization of number of pseudo regs and real regs.
2203 (init_variants): New function.
2204 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2205 registers offsets.
2206
fcaffe4c
DC
22072002-08-19 David Carlton <carlton@math.stanford.edu>
2208
2c2738a0
DC
2209 * valops.c (search_struct_field): Change error message to treat
2210 return value of 0 from value_static_field as meaning that field is
2211 optimized out.
2212 (value_struct_elt_for_reference): Ditto.
2213 * values.c (value_static_field): Treat an unresolved location the
2214 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2215 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2216 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2217 * MAINTAINERS: Add self to Write After Approval list.
2218
88658117
AC
22192002-08-19 Andrew Cagney <ac131313@redhat.com>
2220
2221 * mips-tdep.c (mips_xfer_register): New function.
2222 (mips_n32n64_extract_return_value): Rewrite.
2223 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2224 instead of deprecated_extract_return_value.
2225
21283beb
EZ
22262002-08-19 Elena Zannoni <ezannoni@redhat.com>
2227
2228 * rs6000-tdep.c (TDEP): Delete macro.
2229 (branch_dest): Replace use of TDEP macro with its body.
2230 (rs6000_pop_frame): Ditto.
2231 (rs6000_push_arguments): Ditto.
2232 (rs6000_skip_trampoline_code): Ditto.
2233 (rs6000_frame_saved_pc): Ditto.
2234 (rs6000_frame_chain): Ditto.
2235 (rs6000_register_name): Ditto.
2236 (rs6000_register_byte): Ditto.
2237 (rs6000_register_raw_size): Ditto.
2238 (rs6000_register_virtual_type): Ditto.
2239 (rs6000_register_convertible): Ditto.
2240 (rs6000_convert_from_func_ptr_addr): Ditto.
2241
bf072999
DJ
22422002-08-19 Daniel Jacobowitz <drow@mvista.com>
2243
2244 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2245 conditionally.
2246 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2247 MIPS_LINUX_JB_ELEMENT_SIZE.
2248 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2249 for MAX_REGISTER_RAW_SIZE arrays.
2250 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2251 MIPS_LINUX_JB_ELEMENT_SIZE.
2252
9b949a49
PM
22532002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2254
2255 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2256
6d3e79c6
AS
22572002-08-19 Aidan Skinner <aidan@velvet.net>
2258
2259 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2260 ada-valprint.c ada-tasks.c.
2261 (YYFILES): Add ada-exp.y.
2262 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2263 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2264 (ada-exp.tab.o): New target.
2265
06c0b04e
AC
22662002-08-18 Andrew Cagney <ac131313@redhat.com>
2267
2268 * regcache.c (regcache_xfer_part): New function.
2269 (regcache_raw_read_part): New function.
2270 (regcache_raw_write_part): New function.
2271 (regcache_cooked_read_part): New function.
2272 (regcache_cooked_write_part): New function.
2273 * regcache.h (regcache_raw_read_part): Declare.
2274 (regcache_raw_write_part): Declare.
2275 (regcache_cooked_read_part): Declare.
2276 (regcache_cooked_write_part): Declare.
2277
92d1e331
DJ
22782002-08-18 Daniel Jacobowitz <drow@mvista.com>
2279
2280 * remote.c (remote_open_1): Add async_p.
2281 (remote_async_open_1): Delete.
2282 (open_remote_target): Delete.
2283 (remote_open, extended_remote_open): Update calls to remote_open_1.
2284 (remote_async_open, extended_remote_async_open): Call
2285 remote_open_1 instead of remote_async_open_1.
2286
247055de
MK
22872002-08-19 Mark Kettenis <kettenis@gnu.org>
2288
2289 * blockframe.c: Fix a few coding standard violations.
2290
641eda39
MK
22912002-08-19 Mark Kettenis <kettenis@gnu.org>
2292
0b717710
MK
2293 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2294 here from ...
2295 * config/i386/tm-i386sco5.h: ... here. File removed.
2296 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2297
26d28e12 2298 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2299 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2300 (TM_FILE): Set to tm-i386.h.
2301 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2302 * config/i386/tm-i386v.h: Remove file.
2303 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2304 instead of "i386/tm-i386v.h".
2305 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2306 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2307 "i386/tm-i386v.h".
2308 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2309 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2310 "i386/tm-i386.h".
2311
d4e0bab4
MK
23122002-08-18 Mark Kettenis <kettenis@gnu.org>
2313
2314 * config/i386/nm-i386v.h: Add protection against
2315 multiple-inclusion.
2316 (i386_register_u_addr): Remove prototype.
2317 (register_u_addr): New prototype.
2318 (REGISTER_U_ADDR): Redefine accordingly.
2319 * i386v-nat.c: Improve several comments.
2320 (i386_register_u_addr): Change signature and rename to
2321 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2322 ubase variable.
2323
46cac009
AC
23242002-08-18 Andrew Cagney <ac131313@redhat.com>
2325
2326 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2327 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2328 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2329 deprecated_extract_return_value.
2330 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2331 rename mips_o32o64_push_arguments.
2332 (mips_gdbarch_init): Update.
2333 (mips_extract_return_value): Delete.
2334 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2335 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2336 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2337 (mips_n32n64_extract_return_value): Clone
2338 mips_extract_return_value.
2339 (mips_store_return_value): Delete.
2340 (mips_o32_store_return_value): Clone mips_store_return_value.
2341 (mips_o64_store_return_value): Clone mips_store_return_value.
2342 (mips_eabi_store_return_value): Clone mips_store_return_value.
2343 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2344
d2e4a39e
AS
23452002-08-18 Aidan Skinner <aidan@velvet.net>
2346
0c30c098
AS
2347 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2348 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2349
23502002-08-18 Aidan Skinner <aidan@velvet.net>
2351
2352 * ada-lang.c: Run through gdb_indent.sh.
2353 * ada-lang.h: Run through gdb_indent.sh.
2354 * ada-tasks.c: Run through gdb_indent.sh.
2355 * ada-typeprint.c: Run through gdb_indent.sh.
2356 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2357
01fc4e33
AC
23582002-08-18 Andrew Cagney <ac131313@redhat.com>
2359
2360 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2361 ABI.
2362
d8ee244c
MK
23632002-08-18 Mark Kettenis <kettenis@gnu.org>
2364
c38d8261
MK
2365 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2366
222db64c
MK
2367 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2368 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2369
c2848c82
MK
2370 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2371 write_register_gen instead of write_register_bytes.
2372
d8ee244c
MK
2373 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2374 i[3456]-*-osf1mk* configurations have been made obsolete.
2375 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2376 i[3456]86-*-osf1mk* hosts obsolete.
2377 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2378 targets obsolete.
2379 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2380 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2381 config/i386/i386m3.mt, config/i386/nm-m3.h,
2382 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2383 config/i386/i386mk.mh, config/i386/i386mk.mt,
2384 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2385 obsolete.
2386 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2387 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2388 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2389
61d8d407
AC
23902002-08-18 Andrew Cagney <ac131313@redhat.com>
2391
2392 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2393 (hppa_value_returned_from_stack): Declare.
2394 (hppa_extract_return_value): Declare.
2395 * config/pa/hppa.mt: New file.
2396 * configure.tgt: Recognize hppa*-*-*.
2397 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2398
0c52bd59
MK
23992002-08-18 Mark Kettenis <kettenis@gnu.org>
2400
2401 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2402 comment.
2403
b5686e99
MK
24042002-08-17 Mark Kettenis <kettenis@gnu.org>
2405
2406 * top.c (gdb_rl_operate_and_get_next): Make sure
2407 operate-and-get-next functions correctly even when the history
2408 list is completely filled.
2409
c1bab85b
AC
24102002-08-18 Andrew Cagney <ac131313@redhat.com>
2411
2412 * MAINTAINERS (Target Instruction Set Architectures): Rename
2413 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2414 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2415 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2416 already listed under Host/Native.
2417
2418 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2419 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2420 mips*-*-*.
2421
32089c7c
AC
24222002-08-17 Andrew Cagney <ac131313@redhat.com>
2423
2424 * config/ia64/ia64.mt: New file.
2425 * config/alpha/alpha.mt: New file.
2426 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2427 ia64-linux-gnu. Mention that ia64-elf is broken.
2428 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2429
b4671f85
MK
24302002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2431
2432 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2433 generic_func_frame_valid instead of func_frame_valid.
2434
c8edd8b4
JB
24352002-08-16 Joel Brobecker <brobecker@gnat.com>
2436
2437 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2438 procfs appears to be broken when debugging on multi-processor
2439 machines. So enable software single stepping in order to avoid
2440 using the procfs interface to do next/step operations, using
2441 internal breakpoints instead.
2442
2443 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2444 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2445 make this pc address equal to the value it would have if the
2446 system stepping capability was used. Also set a new flag used
2447 to ensure that we don't readjust the PC one more time later.
2448
2449 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2450 address by DECR_PC_AFTER_BREAK when software single step is
2451 in use for this architecture, as this has already been taken
2452 care of in handle_inferior_event().
2453
238617f6
JB
24542002-08-16 Joel Brobecker <brobecker@gnat.com>
2455
2456 * infrun.c (handle_inferior_event): Minor reformatting, to make
2457 a rather long condition expression easier to read.
2458
541a7aac
AC
24592002-08-16 Andrew Cagney <ac131313@redhat.com>
2460
2461 * Makefile.in (gdbtk.o): Move to end of file.
2462 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2463 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2464 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2465 (gdbtk-wrapper.o, gdbres.o): Ditto.
2466
f92d4a7b
AC
24672002-08-16 Andrew Cagney <ac131313@redhat.com>
2468
2469 * Makefile.in (copying.o): Separate out compile rule.
2470 (hpux-thread.o, procfs.o, signals.o): Ditto.
2471 (v850ice.o, z8k-tdep.o): Ditto.
2472 (tui-file.o): Move to TUI section.
2473 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2474 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2475
1cce71eb
JB
24762002-08-16 Joel Brobecker <brobecker@gnat.com>
2477
2478 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2479 skip_trampoline_code, for better namespace-proofing.
2480
2481 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2482
0851f23d
JB
24832002-08-16 Joel Brobecker <brobecker@gnat.com>
2484
2485 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2486
f8d40ec8
JB
24872002-08-16 Joel Brobecker <brobecker@gnat.com>
2488
2489 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2490 signal, check whether we hit a breakpoint before checking for a
2491 single step breakpoint. Otherwise, GDB fails to notice that a
2492 breakpoint has been hit when stepping onto a breakpoint.
2493
63d022e0
KS
24942002-08-16 Keith Seitz <keiths@redhat.com>
2495
2496 * gdb-events.sh (clear_gdb_event_hooks): New function.
2497 * gdb-events.c: Regenerate.
2498 * gdb-events.h: Regenerate.
2499
6e31adb3
AC
25002002-08-16 Andrew Cagney <ac131313@redhat.com>
2501
2502 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2503 not_a_sw_breakpoint.
2504 * breakpoint.h (bpstat_stop_status): Add parameter names.
2505
c8189ed1
GS
25062002-08-16 Grace Sainsbury <graces@redhat.com>
2507
2508 * remote.c (remote_insert_hw_breakpoint)
2509 (remote_remove_hw_breakpoint): Fix calculation of length field
2510 for Z-packet.
2511
d05285fa
MS
25122002-08-15 Michael Snyder <msnyder@redhat.com>
2513
466d7106
MS
2514 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2515 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2516 (supply_fpregset): Ditto.
2517
d05285fa
MS
2518 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2519 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2520 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2521 (TARGET_READ_SP): Delete.
bf1f5b4c 2522 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2523 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2524 Delete.
2525 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2526 from macros to functions.
bf1f5b4c 2527
d05285fa
MS
2528 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2529 (mips_register_convertible, mips_register_convert_to_virtual,
2530 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2531 (mips_read_sp): New function.
2532 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2533 (mips_do_registers_info): Make static.
2534 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2535 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2536 (mips_register_convert_from_type, mips_register_convert_to_type):
2537 New functions.
2538 (mips_gdbarch_init): Set up function_start_offset,
2539 register_virtual_size, pc_in_sigtramp.
d05285fa 2540
e76f1f2e
AC
25412002-08-15 Andrew Cagney <ac131313@redhat.com>
2542
2543 * infcmd.c (vector_info): New function.
2544 (_initialize_infcmd): Add command "info vector".
2545 (print_vector_info): New function.
2546
2547 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2548 * gdbarch.h, gdbarch.c: Regenerate.
2549
4782dc19
AC
25502002-08-15 Andrew Cagney <ac131313@redhat.com>
2551
2552 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2553 ``print_all''. Only print vector registers when ``print_all''.
2554
23e3a7ac
AC
25552002-08-15 Andrew Cagney <ac131313@redhat.com>
2556
8e186fd6
AC
2557 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2558 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2559
23e3a7ac
AC
2560 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2561 Add `args' parameter.
2562 * gdbarch.h, gdbarch.c: Regenerate.
2563
2564 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2565
2566 * infcmd.c (float_info): Call print_float_info.
2567 (print_float_info): New function. By default, print the
2568 floating-point registers.
2569
2570 * arch-utils.h (default_print_float_info): Delete declaration.
2571 * arch-utils.c (default_print_float_info): Delete function.
2572
e0ca2bb9
MK
25732002-08-16 Mark Kettenis <kettenis@gnu.org>
2574
3f733acc
MK
2575 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2576 out define.
2577
7d8d2918
MK
2578 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2579 FRAME.
2580
1c7cc583
MK
2581 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2582 * configure.host: Make i[3456]86-*-aix host obsolete.
2583 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2584 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2585 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2586 config/i386/xm-i386aix.h: Make files obsolete.
2587 * i386aix-nat.c: Make file obsolete.
2588 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2589 (i386aix-nat.o): Make target obsolete.
2590
e0ca2bb9
MK
2591 * config/i386/nm-gnu.h: Removed.
2592 * config/i386/nm-i386gnu.h: New file.
2593 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2594 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2595 Moved here from ...
2596 * config/i386/tm-i386gnu.h: ... here. Removed.
2597 * config/i386/xm-i386gnu.h: Removed.
2598 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2599 (NAT_FILE): Set to nm-i386gnu.h.
2600 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2601 * i386-tdep.c: New file.
2602 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2603 (i386gnu-tdep.o): Specify dependencies.
2604
16057ec7 26052002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2606
6b99ee2e
MK
2607 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2608 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2609 Adjust a few comments to reflect reality a bit closer.
2610 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2611 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2612 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2613 target_insert_watchpoint, target_remove_watchpoint):
2614 Move defines to ...
2615 * config/i386/nm-i386sco5.h: ... here.
2616 (kernel_u_size): Add prototype. Improve a few comments and add
2617 protection against multiple inclusion.
2618
d9a6f65c
MK
2619 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2620 out define.
2621
047eff6a
MK
2622 * uw-thread.c (SP_ARG0): Define if not already defined.
2623 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2624
dcdb1290
MK
2625 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2626
5d2d0b2a
MK
2627 * config/i386/tm-i386.h: Don't include "regcache.h".
2628
61113f8b
MK
2629 * i387-tdep.h (i387_print_float_info): New prototype.
2630 * i387-tdep.c (print_i387_value, print_i387_ext,
2631 print_i387_status_word, print_i387_control_word): Add `struct
2632 ui_file *' argument and use it for output.
2633 (i387_print_float_info): Renamed from i387_float_info. Add
2634 `struct gdbarch *' and `struct ui_file *' arguments and use the
2635 latter for output.
2636 * i386-tdep.c: Include "i387-tdep.h".
2637 (i386_gdbarch_init): Set print_float_info.
2638 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2639 (FLOAT_INFO): Remove define.
2640
46e0f506
MS
26412002-08-13 Michael Snyder <msnyder@redhat.com>
2642
2643 * mips-tdep.c (mips_push_arguments): Rename to
2644 mips_eabi_push_arguments, and tune for EABI.
2645 (MIPS_REGS_HAVE_HOME_P): Delete.
2646 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2647 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2648 Delete references to mips_regs_have_home_p.
2649
409268de
KS
26502002-08-14 Keith Seitz <keiths@redhat.com>
2651
2652 * Makefile.in (install-gdbtk): Create insight plugin directory.
2653 Install plugins.tcl file.
2654
ffc6a242
KS
26552002-08-14 Keith Seitz <keiths@redhat.com>
2656
2657 * configure.in: Move SUBDIRS to near top of the file so that
2658 --enable options may add things to it.
2659 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2660 * configure: Regenerate.
2661
ebafbe83
MS
26622002-08-13 Michael Snyder <msnyder@redhat.com>
2663
2664 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2665 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2666 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2667
32f6f25d
AC
26682002-08-13 Andrew Cagney <ac131313@redhat.com>
2669
2670 * vax-tdep.c (vax_get_saved_register): Delete function.
2671 (vax_gdbarch_init): Update.
2672 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2673 (ns32k_gdbarch_init): Update.
2674 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2675 (alpha_gdbarch_init): Update.
2676
53826de9
AC
26772002-08-13 Andrew Cagney <cagney@redhat.com>
2678
2679 * regcache.c (init_regcache_descr): Overallocate the
2680 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2681 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2682 nr_raw_registers.
2683 (set_register_cached): Add range checking assertions. Use
2684 current_regcache.
2685
16057ec7 26862002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2687
2688 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2689 numbers for MMX registers.
2690
7b4c2dce
AC
26912002-08-13 Andrew Cagney <cagney@redhat.com>
2692
2693 * i386-tdep.c (i386_gdbarch_init): Use
2694 generic_unwind_get_saved_register.
2695
1e03ad20
KB
26962002-08-13 Kevin Buettner <kevinb@redhat.com>
2697
2698 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2699 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2700 target vector.
2701 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2702 Delete. Add comment regarding this now-deleted target method.
2703
548bcbec
SC
27042002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2705
2706 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2707 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2708 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2709 real PC and the page number (if it's within the memory bank window).
2710 (m68hc11_pseudo_register_write): Likewise when saving.
2711 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2712 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2713 (m68hc11_register_raw_size): And use 32-bit for it.
2714 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2715 16K memory bank is used by the prog; also use the virtual pc.
2716
7df11f59
SC
27172002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2718
2719 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2720 (m68hc11_gdbarch_init): Install it in gdbarch.
2721 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2722 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2723 (MSYMBOL_SIZE): New for documentation.
2724 (insn_return_kind): Enum to specify how a function returns.
2725 (frame_extra_info): Cleanup and record the return mode.
2726 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2727 register in address computation.
2728 (m68hc11_get_return_insn): New to obtain the return instruction used
2729 by the function.
2730 (m68hc11_frame_init_saved_regs): Take into account the return
2731 instruction used by the function for far and interrupt functions.
2732 (m68hc11_init_extra_frame_info): Take into account page register.
2733 (m68hc11_frame_args_address): Adjust according to the return mode.
2734 (show_regs): Print page register only when it's used.
2735
5706502a
SC
27362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2737
2738 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2739 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2740 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2741 registers.
2742 (m68hc11_register_raw_size): Likewise.
2743
28fc6740
AC
27442002-08-13 Andrew Cagney <cagney@redhat.com>
2745
2746 * i386-tdep.c (i386_register_name): Handle mmx registers.
2747 (mmx_regnum_p): New function.
2748 (i386_mmx_names): New array.
2749 (mmx_num_regs): New variable.
2750 (i386_pseudo_register_read): New function.
2751 (i386_pseudo_register_write): New function.
2752 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2753
2754 * regcache.c (regcache_raw_read_unsigned): New function.
2755 (regcache_raw_read_signed): New function.
2756 * regcache.h (regcache_raw_read_unsigned): Declare.
2757 (regcache_raw_read_signed): Declare.
2758
a378f419
AC
27592002-08-13 Andrew Cagney <cagney@redhat.com>
2760
2761 * regcache.c (regcache_raw_read_as_address): Delete function.
2762 (regcache_cooked_read_signed): New function.
2763 (regcache_cooked_read_unsigned): New function.
2764 * regcache.h (regcache_cooked_read_signed): Declare.
2765 (regcache_cooked_read_unsigned): Declare.
2766 (regcache_raw_read_as_address): Delete declaration.
2767
2768 * blockframe.c (generic_read_register_dummy): Use
2769 regcache_cooked_read_unsigned.
2770 * i386-tdep.c (i386_extract_struct_value_address): Use
2771 regcache_cooked_read_unsigned.
2772
81967506
SC
27732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2774
2775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2776 double sizes according to ELF ABI flags.
2777 (gdbarch_tdep): Record elf_flags.
2778
ffe1f3ee
SC
27792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2780
2781 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2782 (m6812_prolog): They can appear in 68HC12 function prologue.
2783 (m68hc11_frame_chain): Cleanup.
2784
98216c5d
AC
27852002-08-12 Andrew Cagney <cagney@redhat.com>
2786
2787 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2788 declarations.
2789 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2790 (i386_linux_register_raw_size): Delete function.
2791 (i386_linux_init_abi): Update.
2792 * i386-tdep.c (i386_register_raw_size): Delete function.
2793 (i386_register_byte): Delete function.
2794 (i386_gdbarch_init): Update.
2795 (i386_register_size): Delete array.
2796 (i386_register_offset): Delete array.
2797
2798 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2799 (REGISTER_RAW_SIZE): Delete macro.
2800 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2801 (REGISTER_BYTE): Delete macro.
2802
3b19021e
AS
28032002-08-11 Aidan Skinner <aidan@velvet.net>
2804
2805 * ada-lang.c (ada_lookup_partial_symbol)
2806 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2807 prototype names so that grep ^func works properly.
2808
2809 * ada-lang.c (ada_array_element_type)
2810 (ada_lookup_partial_symbol): Fix typos in parameter list.
2811
2812 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2813 Fix prototype names so that grep ^func works properly.
2814
b063e7a2
AC
28152002-08-10 Andrew Cagney <cagney@redhat.com>
2816 Elena Zannoni <ezannoni@redhat.com>
2817 Martin M. Hunt <hunt@redhat.com>
2818
2819 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2820 (build_builtin_type_vec128i): Set the vector bit.
2821 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2822 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2823 (build_builtin_type_vec64): New function.
2824 (build_builtin_type_vec64i): New function.
2825 (build_gdbtypes): Initialize builtin_type_vec64 and
2826 builtin_type_vec64i.
2827
a7e3c2ad
AC
28282002-08-09 Andrew Cagney <cagney@redhat.com>
2829
2830 * regcache.c (regcache_dump): Compare the register offset
2831 with REGISTER_BYTE.
2832 * arch-utils.c (generic_register_byte): New function.
2833 * arch-utils.h (generic_register_byte): Declare.
2834 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2835 * gdbarch.h, gdbarch.c: Regenerate.
2836
af030b9a
AC
28372002-08-09 Andrew Cagney <cagney@redhat.com>
2838
2839 * regcache.c: Include "gdbcmd.h"
2840 (_initialize_regcache): Add commands "maintenance print
2841 registers", "maintenance print raw-registers" and "maintenance
2842 print cooked-registers".
2843 (enum regcache_dump_what): Define.
2844 (dump_endian_bytes): New function.
2845 (regcache_dump): New function.
2846 (regcache_print): New function.
2847 (maintenance_print_registers): New function.
2848 (maintenance_print_raw_registers): New function.
2849 (maintenance_print_cooked_registers): New function.
2850 * Makefile.in (regcache.o): Update dependencies.
2851
cb3d25d1
MS
28522002-08-09 Michael Snyder <msnyder@redhat.com>
2853
2854 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2855 (mips_push_arguments): Correct some comments. Use paddr_nz
2856 for printing addresses in debug output. Replace static
2857 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2858 (mips_n32n64_push_arguments): New function, cloned from
2859 mips_push_arguments and tuned for the n32/n64 ABI.
2860 (mips_push_register): Buffer needs dynamic allocation.
2861 (mips_print_register): Ditto.
2862 (do_gp_register_row): Ditto.
2863 (mips_store_return_value): Ditto.
2864 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2865
2163ab9d
DH
28662002-08-09 Don Howard <dhoward@redhat.com>
2867
2868 * memattr.c (mem_info_command): Print special case of upper bound
2869 as max CORE_ADDR + 1.
2870
b78bcb18
MS
28712002-08-08 Michael Snyder <msnyder@redhat.com>
2872
2873 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2874 returns structs by ref if they're too big to fit in two registers.
2875
ffabd70d
KB
28762002-08-09 Kevin Buettner <kevinb@redhat.com>
2877
2878 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2879 saved regs value.
2880 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2881 mips_find_saved_regs().
2882 (mips_pop_frame): Likewise.
2883
fbcdb4a3
KB
28842002-08-09 Kevin Buettner <kevinb@redhat.com>
2885
2886 * blockframe.c (frame_saved_regs_register_unwind): Revise
2887 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2888 frames are in use.
2889
3c3bea1c
GS
28902002-08-09 Grace Sainsbury <graces@redhat.com>
2891
2892 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2893 T-packets; the 'a' is not taken as a register number.
2894 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2895 (remote_stopped_data_address): New functions; add to target
2896 vector.
2897 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2898 prototypes to match other implementations of this
2899 function. replace integer argument with pointer -- the length
2900 field in the Z-packet is the length of what is pointed to or 1 if
2901 pointer is null. Add to target vector.
2902 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2903 target vector.
2904
2905 From Mark Salter:
2906 * remote.c (remote_wait): Add support to extract optional
2907 watchpoint information from T-packet. Ignore unrecognized
2908 optional info in T-packet.
2909 (remote_async_wait): Ditto.
2910
5d1d95de
CV
29112002-08-09 Corinna Vinschen <vinschen@redhat.com>
2912
2913 * cli/cli-dump.c: Change fopen modes to use binary open modes
2914 as defined in include/fopen-bin.h throughout.
2915
c86b5b38
MS
29162002-08-08 Michael Snyder <msnyder@redhat.com>
2917
2918 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2919
b30590dc
KB
29202002-08-08 Kevin Buettner <kevinb@redhat.com>
2921
2922 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2923 assertion failure by returning early after a warning.
2924
498868ed
KB
29252002-08-08 Kevin Buettner <kevinb@redhat.com>
2926
2927 * mips-tdep.c (mips_find_saved_regs): Make static.
2928 (mips_frame_init_saved_regs): New function.
2929 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2930 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2931 (mips_find_saved_regs): Delete declaration.
2932
b2dd6311
GS
29332002-08-08 Grace Sainsbury <graces@redhat.com>
2934
3c3bea1c
GS
2935 * remote.c (remote_wait, remote_async_wait): Change
2936 thread_num from int to ULONGEST.
2937 (unpack_varlen_hex): Change result parameter from
2938 int * to ULONGEST *.
b2dd6311 2939
ea47855f
AC
29402002-08-08 Andrew Cagney <ac131313@redhat.com>
2941
2942 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2943 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2944 powerpc*-*-*.
2945 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2946
69db8bae
AC
29472002-08-08 Andrew Cagney <cagney@redhat.com>
2948
2949 * gcore.c (override_derive_stack_segment): Delete variable.
2950 (preempt_derive_stack_segment): Delete function.
2951 (derive_stack_segment): Delete function.
2952 (default_derive_stack_segment): Renamed to derive_stack_segment.
2953 (override_derive_heap_segment): Delete variable.
2954 (preempt_derive_heap_segment): Delete function.
2955 (derive_heap_segment): Delete function.
2956 (default_derive_heap_segment): Rename to derive_heap_segment.
2957
cb811fe7
MS
29582002-08-06 Michael Snyder <msnyder@redhat.com>
2959
2960 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2961 * mips-tdep.c (mips_EABI_use_struct_convention,
2962 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2963 New functions. (mips_use_struct_convention): Delete.
2964 (mips_gdbarch_init): set use_gdbarch_convention.
2965
8b389c40
MS
29662002-08-06 Michael Snyder <msnyder@redhat.com>
2967
2968 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2969 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2970 mips_o32_reg_struct_has_addr): New functions.
2971 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2972
5c27f28a
AC
29732002-08-07 Andrew Cagney <ac131313@redhat.com>
2974
2975 * regcache.c (pseudo_register): Delete function.
2976 (fetch_register): Delete function.
2977 (store_register): Delete function.
2978 (regcache_raw_read, legacy_read_register_gen): Use
2979 target_fetch_registers instead of fetch_register.
2980 (legacy_write_register_gen, regcache_raw_write): Use
2981 target_store_register instead of store_register.
2982 (write_register_bytes): Ditto.
2983
2984 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2985 (STORE_PSEUDO_REGISTER): Delete.
2986 * gdbarch.h, gdbarch.c: Regenerate.
2987
5b331675
CV
29882002-08-06 Corinna Vinschen <vinschen@redhat.com>
2989
2990 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2991 write dump file binary.
2992
6acdf5c7
MS
29932002-08-05 Michael Snyder <msnyder@redhat.com>
2994
2995 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2996 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2997 (mips_gdbarch_init): Set N32 target to be mips64.
2998
b2f01c35
KB
29992002-08-06 Kevin Buettner <kevinb@redhat.com>
3000
3001 * frame.c (find_saved_register): Break out of loop once saved
3002 register address is found. Don't mention sparc in loop comment
3003 anymore.
3004
63db5580
KB
30052002-08-06 Kevin Buettner <kevinb@redhat.com>
3006
3007 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3008 mips_default_saved_regsize to 8.
3009
5e34e75e
AC
30102002-08-06 Andrew Cagney <ac131313@redhat.com>
3011
3012 * gcore.c: Do not include <sys/procfs.h>.
3013 * Makefile.in (gcore.o): Update dependencies.
3014
eb4c54a2
AC
30152002-08-06 Andrew Cagney <cagney@redhat.com>
3016
3017 * configure.tgt: Make arc-*-* obsolete.
3018 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3019 * MAINTAINERS: Make arc-elf obsolete.
3020 * arc-tdep.c: Make file obsolete.
3021 * config/arc/arc.mt: Ditto.
3022 * config/arc/tm-arc.h: Ditto.
3023
ced15480
TR
30242002-08-05 Theodore A. Roth <troth@verinet.com>
3025
c1bab85b 3026 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3027
b4743822
AC
30282002-08-05 Andrew Cagney <ac131313@redhat.com>
3029
3030 * mcore-tdep.c (mcore_gdbarch_init): Use
3031 generic_unwind_get_saved_register instead of
3032 generic_get_saved_register.
3033 * v850-tdep.c (v850_gdbarch_init): Ditto.
3034 * frv-tdep.c (frv_gdbarch_init): Ditto.
3035 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3036 * s390-tdep.c (s390_gdbarch_init): Ditto.
3037 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3038 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3039 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3040
3956d554
JB
30412002-08-05 Joel Brobecker <brobecker@gnat.com>
3042
3043 * objfiles.h: Add missing #include "symfile.h"
3044
3045 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3046
8249c0d6
AC
30472002-08-04 Andrew Cagney <ac131313@redhat.com>
3048
3049 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3050 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3051 of FIELD_BITSIZE.
3052
b9d14705
DJ
30532002-08-04 Daniel Jacobowitz <drow@mvista.com>
3054
3055 * NEWS: Cleanup and nitpick.
3056
dd73b9bb
AC
30572002-08-03 Andrew Cagney <ac131313@redhat.com>
3058
3059 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3060
043a27f8
AC
30612002-08-03 Andrew Cagney <ac131313@redhat.com>
3062
3063 * Makefile.in (gdbtk-bp.o): Update dependencies.
3064 (gdbtk-register.o): Ditto.
3065 (gdbtk-varobj.o): Ditto.
3066
46ce284d
AC
30672002-08-03 Andrew Cagney <cagney@redhat.com>
3068
3069 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3070 m68hc11_fetch_pseudo_register.
3071 (m68hc11_pseudo_register_write): Replace
3072 m68hc11_store_pseudo_register.
3073 (m68hc11_gdbarch_init): Update.
3074
b66d6d2e
AC
3075Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3076
3077 * gdbarch.sh: Include "gdb_string.h".
3078 * gdbarch.c: Regenerate.
3079
3080 * regcache.c: Include "gdb_string.h".
3081 * ax-general.c: Ditto.
3082 * varobj.c: Ditto.
3083 * std-regs.c: Ditto.
3084 * fbsd-proc.c: Ditto.
3085 * thread.c: Ditto.
3086
3087 * Makefile.in (regcache.o): Update dependencies.
3088 (thread.o, gdbarch.o): Ditto.
3089 (ax-general.o, gdbarch.o): Ditto.
3090 (varobj.o, std-regs.o): Ditto.
3091 (fbsd-proc.o): Specify dependencies.
3092
29e1842b
AC
30932002-08-02 Andrew Cagney <cagney@redhat.com>
3094
3095 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3096 regnum.
3097 (regcache_cooked_write): Ditto.
3098
68365089
AC
30992002-08-02 Andrew Cagney <ac131313@redhat.com>
3100
3101 * regcache.c (regcache_cooked_read): New function.
3102 (regcache_cooked_write): New function.
3103 (read_register_gen): Rewrite using regcache_cooked_read.
3104 (write_register_gen): Rewrite using regcache_cooked_write.
3105
3106 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3107 Declare.
3108
d8124050
AC
31092002-08-02 Andrew Cagney <cagney@redhat.com>
3110
3111 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3112 Replace the architecture methods register_read and register_write.
3113 * gdbarch.h, gdbarch.c: Regenerate.
3114 * regcache.c (init_regcache_descr): Update.
3115 (read_register_gen): Update.
3116 (write_register_gen): Update.
3117 (supply_register): Update comment.
3118
3119 * sh-tdep.c (sh_gdbarch_init): Update.
3120 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3121 `regcache' and `gdbarch' parameters. Make `buffer' a void
3122 pointer. Update code.
3123 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3124 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3125 void pointer. Update code.
3126 (sh64_register_write): Delete.
3127 (sh4_register_read): Delete.
3128 (sh64_register_read): Delete.
3129 (sh4_register_write): Delete.
3130 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3131 void pointer, `to' parameter a void pointer.
3132 (sh_sh64_register_convert_to_raw): Ditto.
3133
a6425924
KB
31342002-08-01 Kevin Buettner <kevinb@redhat.com>
3135
3136 * mips-tdep.c (mips_register_virtual_type): Use architecture
3137 invariant return values.
3138
ff5922b5
AC
31392002-08-01 Andrew Cagney <cagney@redhat.com>
3140
3141 * linux-proc.c: Include "gdb_string.h".
3142 * Makefile.in (linux-proc.o): Update dependency list.
3143
32a6503c
KB
31442002-08-01 Kevin Buettner <kevinb@redhat.com>
3145
3146 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3147 comment.
3148
ccaa32c7
GS
31492002-08-01 Grace Sainsbury <graces@redhat.com>
3150
3151 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3152 to_insert_watchpoint, to_remove_watchpoint,
3153 to_stopped_by_watchpoint, to_stopped_data_address,
3154 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3155 target vecctor. Define their corresponding macros so they call
3156 them.
3157
3158 * target.c: Add default and debug versions of for
3159 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3160 to_insert_watchpoint, to_remove_watchpoint,
3161 to_stopped_by_watchpoint, to_stopped_data_address,
3162 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3163
78fde5f8
KB
31642002-08-01 Kevin Buettner <kevinb@redhat.com>
3165
3166 * mips-tdep.c (mips_register_virtual_type): New function.
3167 (mips_gdbarch_init): Register mips_register_virtual_type()
3168 with gdbarch machinery.
3169 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3170 this file instead of tm-bigmips.h.
3171 (MIPS_REGSIZE): Delete this macro.
3172 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3173 multiarch version in mips-tdep.c will be found.
3174
db034ac5
AC
31752002-08-01 Andrew Cagney <cagney@redhat.com>
3176
3177 * NEWS: Menion that CHILL has been made obsolete.
3178
3179 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3180 * stabsread.c (read_range_type): Ditto.
3181 * gdbtypes.h: Ditto.
3182 * language.c (binop_type_check): Ditto.
3183 (binop_result_type): Ditto.
3184 (integral_type): Ditto.
3185 (character_type): Ditto.
3186 (string_type): Ditto.
3187 (boolean_type): Ditto.
3188 (structured_type): Ditto.
3189 (lang_bool_type): Ditto.
3190 (binop_type_check): Ditto.
3191 * language.h (_LANG_chill): Ditto.
3192 * dwarfread.c (set_cu_language): Ditto.
3193 * dwarfread.c (CHILL_PRODUCER): Ditto.
3194 * dwarfread.c (handle_producer): Ditto.
3195 * expression.h (enum exp_opcode): Ditto.
3196 * eval.c: Ditto for comments.
3197 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3198 * expprint.c (print_subexp): Ditto.
3199 (print_subexp): Ditto.
3200 * valops.c (value_cast): Ditto.
3201 (search_struct_field): Ditto.
3202 * value.h (COERCE_VARYING_ARRAY): Ditto.
3203 * symfile.c (init_filename_language_table): Ditto.
3204 (add_psymbol_with_dem_name_to_list): Ditto.
3205 * valarith.c (value_binop): Ditto.
3206 (value_neg): Ditto.
3207 * valops.c (value_slice): Ditto.
3208 * symtab.h (union language_specific): Ditto.
3209 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3210 (SYMBOL_DEMANGLED_NAME): Ditto.
3211 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3212 * defs.h (enum language): Ditto.
3213 * symtab.c (got_symtab): Ditto.
3214 * utils.c (fprintf_symbol_filtered): Ditto.
3215
3216 * ch-typeprint.c: Make file obsolete.
3217 * ch-valprint.c: Make file obsolete.
3218 * ch-lang.h: Make file obsolete.
3219 * ch-exp.c: Make file obsolete.
3220 * ch-lang.c: Make file obsolete.
3221
3222 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3223 CHILL_LIB.
3224 (TARGET_FLAGS_TO_PASS): Ditto.
3225 (CHILLFLAGS): Obsolete.
3226 (CHILL): Obsolete.
3227 (CHILL_FOR_TARGET): Obsolete.
3228 (CHILL_LIB): Obsolete.
3229 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3230 ch-valprint.c.
3231 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3232 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3233 ch-lang.o.
3234 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3235 targets.
3236
8aaf0b47
JB
32372002-07-31 Joel Brobecker <brobecker@gnat.com>
3238
3239 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3240 This does not change anything at the moment, but will be helpful
3241 later when full Ada support is integrated.
3242
f3a7b3a5
KB
32432002-07-31 Kevin Buettner <kevinb@redhat.com>
3244
3245 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3246 help message.
3247
fb850278
KB
32482002-07-31 Kevin Buettner <kevinb@redhat.com>
3249
3250 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3251 and save it in a local variable. Use variable in later test.
3252
e3bddbfa
KB
32532002-07-31 Kevin Buettner <kevinb@redhat.com>
3254
3255 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3256 test. (Thanks to Daniel Jacobowitz.)
3257
28d169de
KB
32582002-07-31 Kevin Buettner <kevinb@redhat.com>
3259
3260 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3261 (mips_abi_strings): Add "n64".
3262 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3263
7fe7e44e
KB
32642002-07-31 Kevin Buettner <kevinb@redhat.com>
3265
3266 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3267 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3268
c6caf090
KB
32692002-07-31 Kevin Buettner <kevinb@redhat.com>
3270
3271 * utils.c (host_pointer_to_address, address_to_host_pointer):
3272 Use gdb_assert() instead of explicit call to internal_error().
3273
c41669e0
KB
32742002-07-30 Kevin Buettner <kevinb@redhat.com>
3275
3276 * Makefile.in (rs6000-nat.o): Update dependencies.
3277
3278 From Nicholas Duffek:
3279 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3280 (aix-thread.o): New rule.
3281 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3282 * config/powerpc/aix432.mh: New file.
3283
2fda4977
DJ
32842002-07-30 Daniel Jacobowitz <drow@mvista.com>
3285
3286 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3287 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3288 (fetch_core_registers, ppc_linux_supply_gregset)
3289 (ppc_linux_supply_fpregset): New functions.
3290 (ppc_linux_regset_core_fns): New.
3291 (_initialize_ppc_linux_tdep): Call add_core_fns.
3292 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3293 and ppc_linux_supply_gregset.
3294 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3295 (supply_fpregset): Call ppc_linux_supply_fpregset.
3296 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3297 corelow.o.
3298 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3299
729051e6
DJ
33002002-07-30 Daniel Jacobowitz <drow@mvista.com>
3301
3302 * symtab.c (lookup_symbol): Demangle before lowercasing.
3303
5f8a3188
AC
33042002-07-30 Andrew Cagney <ac131313@redhat.com>
3305
3306 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3307 declaration.
3308 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3309 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3310 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3311 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3312 "gdb_string.h".
3313 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3314 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3315 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3316 (avr-tdep.o, mon960-rom.o): Ditto.
3317 (aout_stabs_gnu_h): Define.
3318 (symtab_h): Remove $(gdb_obstack_h).
3319
67f07146
JB
33202002-07-30 Jim Blandy <jimb@redhat.com>
3321
3322 Patch from David Carlton <carlton@math.stanford.edu>:
3323 * gdbinit.in: Move the `dir' commands that add GDB's own source
3324 directory to the search path to the end, so that the `gdb' source
3325 directory will be searched first.
3326
04ea0df1
AC
33272002-07-29 Andrew Cagney <ac131313@redhat.com>
3328
3329 * gdb_obstack.h: New file.
3330 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3331 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3332 * objfiles.h: Include "gdb_obstack.h".
3333 * Makefile.in (gdb_obstack_h): Define.
3334 (symtab_h): Add $(gdb_obstack_h).
3335 (objfiles_h): Add $(gdb_obstack_h).
3336
3337 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3338 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3339 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3340 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3341 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3342 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3343 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3344 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3345
3346 * Makefile.in (bcache.o): Update dependencies.
3347 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3348 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3349 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3350 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3351 (stabsread.o, symfile.o, symmisc.o): Ditto.
3352 (symtab.o, typeprint.o, macroexp.o): Ditto.
3353 (macrotab.o, mdebugread.o): Ditto.
3354 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3355 (coff_ecoff_h, aout_aout64_h): Define.
3356 (aout_stabs_gnu_h, libaout_h): Define.
3357
d138e37a
AC
33582002-07-29 Andrew Cagney <cagney@redhat.com>
3359
3360 * regcache.c (struct regcache_descr): Rename nr_registers to
3361 nr_cooked_registers. Revise comments describing the structure
3362 member fields.
3363 (init_regcache_descr): Update.
3364 (init_legacy_regcache_descr): Update.
3365 (read_register_gen, write_register_gen): When a cooked register in
3366 the raw register range, directly access the value from the raw
3367 register cache.
3368
460e6ec3
AC
33692002-07-29 Andrew Cagney <ac131313@redhat.com>
3370
3371 * z8k-tdep.c: Do not include "obstack.h".
3372 * h8300-tdep.c, h8500-tdep.c: Ditto.
3373 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3374 * valprint.c, v850-tdep.c: Ditto.
3375 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3376 * mn10200-tdep.c: Ditto.
3377
3378 * Makefile.in (z8k-tdep.o): Update dependencies.
3379 (m68hc11-tdep.o, valprint.o): Ditto.
3380 (v850-tdep.o, d10v-tdep.o): Ditto.
3381 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3382 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3383 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3384 (sh_opc_h, gdb_sim_sh_h): Define.
3385 (elf_sh_h, elf_bfd_h): Define.
3386 (opcode_m68hc11_h): Define.
3387 (OPCODES_SRC, OPCODES_DIR): define.
3388 (OPCODES): Use $(OPCODES_DIR).
3389 (gdb_sim_d10v_h): Rename sim_d10v_h.
3390 (gdb_sim_arm_h): Rename sim_arm_h.
3391
790c9cf0
KB
33922002-07-26 Kevin Buettner <kevinb@redhat.com>
3393
3394 * utils.c (host_pointer_to_address, address_to_host_pointer):
3395 Change internal_error() message to indicate function responsible
3396 for the error.
3397
9647fa49
KB
33982002-07-26 Kevin Buettner <kevinb@redhat.com>
3399
3400 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3401 calls to local_hex_string_custom().
3402
dabbe2c0
KB
34032002-07-26 Kevin Buettner <kevinb@redhat.com>
3404
3405 * irix5-nat.c: Move IRIX shared library support from here...
3406 * solib-irix.c: ...to here. Revised substantially to work with
3407 generic solib framework.
3408
b96d0a4e
KB
3409 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3410 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3411 * mips-irix-tdep.c: New file.
3412
313fb2f6
KB
3413 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3414 (mips-irix-tdep.o, solib-irix.o): New rules.
3415 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3416 solib-irix.o.
3417 * config/mips/irix6.mt (TDEPFILES): Likewise.
3418 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3419
ab2eaf26
KB
34202002-07-26 Kevin Buettner <kevinb@redhat.com>
3421
177e4768 3422 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3423 disabled (via ``#if 0'') includes.
3424
7244546a
KB
34252002-07-26 Kevin Buettner <kevinb@redhat.com>
3426
3427 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3428 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3429 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3430 Add support for the fpscr register.
3431 * rs6000-nat.c (regmap, fetch_inferior_registers)
3432 (store_inferior_registers, fetch_core_registers): Likewise.
3433
dd7be90a
KB
34342002-07-26 Kevin Buettner <kevinb@redhat.com>
3435
3436 * rs6000-nat.c (language.h): Include.
3437 (special_regs): Delete this array.
3438 (regmap): New function.
3439 (fetch_register, store_register): Use regmap() to map gdb
3440 register numbers to ptrace register numbers. Also, use
3441 outputs from regmap() to make decisions regarding type of
3442 ptrace() call to make. In particular, don't compare against
3443 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3444 (fetch_inferior_registers, store_inferior_registers): Where
3445 possible, obtain register numbers from tdep struct. Don't
3446 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3447 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3448 (LAST_UISA_SP_REGNUM): Delete.
3449
11bf77db
KB
34502002-07-25 Kevin Buettner <kevinb@redhat.com>
3451
3452 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3453 (fetch_registers, store_register, fetch_core_registers): Don't
3454 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3455 regcache_collect() as appropriate.
3456 (find_toc_address): Format hex address with local_hex_string().
3457
06afebeb
AC
34582002-07-25 Andrew Cagney <ac131313@redhat.com>
3459
3460 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3461 bfd/elf32-frv.c.
3462
8c554d79
TT
34632002-07-24 Tom Tromey <tromey@redhat.com>
3464
3465 * jv-exp.y: Marked all strings with _().
3466 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3467 internal_error.
3468 (MethodInvocation, CastExpression, parse_number, yyerror,
3469 java_type_from_name, push_expression_name, yylex): Typo fixes.
3470
e4c242d9
DJ
34712002-07-24 Daniel Jacobowitz <drow@mvista.com>
3472
3473 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3474 (tee_file_flush, tee_file_write, tee_file_fputs)
3475 (tee_file_isatty): New.
3476 * ui-file.h (tee_file_new): Add prototype.
3477
ebf56fd3
AS
34782002-07-24 Aidan Skinner <aidan@velvet.net>
3479
3480 * ada-lang.c: Change k&r style function definitions to prototyped
3481 form.
3482 * ada-typeprint.c: Change k&r style function definitions to prototyped
3483 form.
3484 * ada-valprint.c: Change k&r style function definitions to prototyped
3485 form.
3486
7fb623f7
AC
34872002-07-24 Andrew Cagney <cagney@redhat.com>
3488
3489 * README: Remove reference to remote-bug.
3490 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3491 remote-bug.c.
3492 (m88k-nat.o): Delete rule.
3493 (m88k-tdep.o): Delete rule.
3494 (remote-bug.o): Delete rule.
3495 * MAINTAINERS: Mark as obsolete.
3496 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3497 * m88k-tdep.c: Make file obsolete.
3498 * config/m88k/m88k.mh: Ditto.
3499 * config/m88k/delta88v4.mh: Ditto.
3500 * config/m88k/delta88v4.mt: Ditto.
3501 * config/m88k/delta88.mt: Ditto.
3502 * config/m88k/delta88.mh: Ditto.
3503 * remote-bug.c: Ditto.
3504 * config/m88k/tm-delta88.h: Ditto.
3505 * config/m88k/nm-delta88v4.h: Ditto.
3506 * config/m88k/xm-delta88.h: Ditto.
3507 * config/m88k/xm-dgux.h: Ditto.
3508 * config/m88k/tm-m88k.h: Ditto.
3509 * config/m88k/nm-m88k.h: Ditto.
3510 * config/m88k/tm-delta88v4.h: Ditto.
3511 * m88k-nat.c: Ditto.
3512 * cxux-nat.c: Ditto.
3513 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3514 and m88*-*-* obsolete.
3515 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3516 m88*-*-* obsolete.
3517
37611a2b
AC
35182002-07-24 Andrew Cagney <cagney@redhat.com>
3519
3520 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3521 constant. Same for local pointer variables.
3522 (extract_signed_integer): Ditto.
3523 * defs.h (extract_unsigned_integer): Update.
3524 (extract_signed_integer): Update.
3525
1aaa5f99
AC
35262002-07-24 Andrew Cagney <cagney@redhat.com>
3527
3528 * regcache.c (regcache_raw_write): Change buf parameter to a
3529 constant void pointer.
3530 (regcache_raw_read): Change buf parameter to a void pointer.
3531 (legacy_write_register_gen): Change myaddr parameter a constant
3532 void pointer.
3533 (supply_register): Change val parameter to a const void pointer.
3534 * regcache.h (regcache_raw_write): Update declaration.
3535 (regcache_raw_read): Update declaration.
3536 (supply_register): Update declaration.
3537
b4f5539f
TT
35382002-07-24 Tom Tromey <tromey@redhat.com>
3539
3540 * defs.h (gdb_readline_wrapper): Declare.
3541 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3542 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3543 * top.c (gdb_readline_wrapper): New function.
3544 (command_line_input): Use it.
3545
0818c12a
AC
35462002-07-24 Andrew Cagney <cagney@redhat.com>
3547
3548 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3549 regcache_read and regcache_write.
3550 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3551 * regcache.c: Update.
3552 * sh-tdep.c (sh64_push_arguments): Update comment.
3553 (sh_pseudo_register_read): Update.
3554 (sh_pseudo_register_write): Update.
3555 (sh4_register_read): Update.
3556 (sh4_register_write): Update.
3557 (sh64_pseudo_register_read): Update.
3558 (sh64_pseudo_register_write): Update.
3559 (sh64_register_read): Update.
3560 (sh64_register_write): Update.
3561 * i386-tdep.c (i386_extract_return_value): Update.
3562 (i386_extract_struct_value_address): Update.
3563 (i386_extract_return_value): Update.
3564 * blockframe.c (generic_read_register_dummy): Update.
3565 (generic_call_dummy_register_unwind): Update
3566 * infrun.c (write_inferior_status_register): Update.
3567
f7321c06
JB
35682002-07-23 Jim Blandy <jimb@redhat.com>
3569
3570 * parser-defs.h (expression_context_pc): Make this extern.
3571 (Thanks to Michael Snyder.)
3572
2037aebb
AC
35732002-07-23 Andrew Cagney <ac131313@redhat.com>
3574
3575 GDB 5.2.1 released from 5.2 branch.
3576 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3577 * README: Update to mention 5.2.1.
3578
66504d44
MS
35792002-07-23 Mark Salter <msalter@redhat.com>
3580
3581 * remote.c (remote_read_bytes): Fix check for error.
3582
27bae383
KB
35832002-07-22 Kevin Buettner <kevinb@redhat.com>
3584
3585 * aix-thread.c (language.h): Include.
3586 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3587 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3588 Print newlines at end of debug messages.
3589 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3590 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3591
35922002-07-22 Kevin Buettner <kevinb@redhat.com>
3593
3594 * aix-thread.c (ppc-tdep.h): Include.
3595 (special_register_p): New function.
3596 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3597 (store_regs_user_thread): Use register number information from
3598 gdbarch_tdep struct instead of hardcoded offsets relative to
3599 FIRST_UISA_SP_REGNUM.
3600 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3601 special_register_p() instead of using FPLAST_REGNUM and
3602 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3603 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3604 will be MQ's register number.
3605
36062002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3607
3608 * aix-thread.c (ops): Rename to aix_thread_ops.
3609 (base_ops): Rename to base_target.
3610 (ops_attach): Rename to aix_thread_attach.
3611 (ops_detach): Rename to aix_thread_detach.
3612 (ops_resume): Rename to aix_thread_detach.
3613 (ops_wait): Rename to aix_thread_wait.
3614 (ops_kill): Rename to aix_thread_kill.
3615 (init_ops): Rename to init_aix_thread_ops.
3616 (ops_fetch_register): Rename to aix_thread_fetch_register.
3617 (ops_store_register): Rename to aix_thread_store_register.
3618 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3619 (ops_thread_alive): Rename to aix_thread_thread_alive.
3620 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3621 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3622 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3623 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3624 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3625 (store_regs_lib): Rename to store_regs_user_thread.
3626 (store_regs_kern): Rename to store_regs_kernel_thread.
3627
27bae383 36282002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3629
3630 * aix-thread.c (ops_prepare_to_store): Eliminate.
3631 (init_ops): Don't initialize ops.prepare_to_store.
3632 (store_regs_kern): Pre-fetch register buffers from child,
3633 because some registers may not be in the cache. Copy
3634 regs from register cache only if they are cached.
3635 (store_regs_lib): Copy regs from register cache only
3636 if they are cached.
3637 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3638 fill_gprs64): Ditto.
3639
61c5da0b
KB
36402002-07-22 Kevin Buettner <kevinb@redhat.com>
3641
3642 * aix-thread.c (gdb_assert.h): Include.
3643 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3644 register sizes (from register cache) match size of buffer holding
3645 register data.
3646 (fill_sprs32): Change parameter types to match those in the ptrace()
3647 buffer.
3648 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3649 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3650
36512002-07-22 Michael Snyder <msnyder@redhat.com>
3652
3653 * aix-thread.c (supply_sprs64): Cosmetic change.
3654 (supply_sprs32): Cosmetic change.
3655 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3656 (fill_sprs64): Use regcache_collect instead of read_register.
3657 (store_regs_lib): Use regcache_collect instead of
3658 read_register. Use fill_sprs32 instead of fill_sprs64,
3659 if debugging a 32-bit architecture.
3660 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3661 out of the register cache, instead of passing a pointer into
3662 the register cache directly to ptrace. Use regcache_collect
3663 insteaad of read_register.
3664 (ops_prepare_to_store): Use target_read_registers instead
3665 of read_register_bytes.
3666
36479eb1
AS
36672002-07-20 Aidan Skinner <aidan@velvet.net>
3668
3669 * MAINTAINERS: Add self under write after approval.
3670
80ae6ee2
AS
36712002-07-20 Aidan Skinner <aidan@velvet.net>
3672
3673 * ada-tasks.c: Change k&r style function definitions to prototyped
3674 form.
3675
8a8ab2b9
AC
36762002-07-19 Andrew Cagney <ac131313@redhat.com>
3677
3678 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3679 * x86-64-tdep.c: Include "objfiles.h".
3680 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3681 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3682
fb16b900
ML
36832002-07-17 Michal Ludvig <michal@suse.cz>
3684
3685 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3686 (update_context): Initialise cfa variable.
3687
0fe7bf7b
MS
36882002-07-17 Michael Snyder <msnyder@redhat.com>
3689
3690 * aix-thread.c: Shorten some long lines.
3691 Bring comments into line with code spec.
3692
488f131b
JB
36932002-07-18 Joel Brobecker <brobecker@gnat.com>
3694
3695 * infrun.c: Re-indent using gdb_indent.sh.
3696
46c415d2
JB
36972002-07-18 Joel Brobecker <brobecker@gnat.com>
3698
3699 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3700 Leave the indentation temporarily untouched, to minimize the diffs.
3701
cdecafbe
EZ
37022002-07-18 Elena Zannoni <ezannoni@redhat.com>
3703
3704 * stabsread.c: Make os9k sections of the code obsolete,
3705 for real this time.
3706 * stabsread.h: Make os9k sections of the code obsolete.
3707
7b6aa020
ML
37082002-07-18 Michal Ludvig <mludvig@suse.cz>
3709
09ec9b38
ML
3710 * linux-low.c (regsets_store_inferior_registers): Add free()
3711 at the end of a loop to prevent memory leak.
3712 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3713 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3714 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3715 line a comment.
4894ac5d 3716 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3717
233282cd
JB
37182002-07-17 Jim Blandy <jimb@redhat.com>
3719
3720 * macrocmd.c (info_macro_command): Remove newline from error
3721 message.
3722
7b6aa020 37232002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3724
3725 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3726 (sh_gdbarch_init): Use it for sh-dsp.
3727
f7ef9339
KB
37282002-07-16 Kevin Buettner <kevinb@redhat.com>
3729
3730 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3731 64-bit DWARF2 format.
3732
8dd72958
JB
37332002-07-16 Joel Brobecker <brobecker@gnat.com>
3734
3735 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3736 <sys/proc.h> when not available.
3737
a99a9e1b
AC
37382002-07-16 Andrew Cagney <ac131313@redhat.com>
3739
3740 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3741 * stabsread.c: Make os9k sections of the code obsolete.
3742 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3743 * config/i386/i386os9k.mt: Make file obsolete.
3744 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3745 (COMMON_OBS): Remove os9kread.o
3746 (SFILES): Remove os9kread.c.
3747 (os9kread.o, remote-os9k.o): Make target obsolete.
3748 * remote-os9k.c: Make file obsolete.
3749 * os9kread.c: Make file obsolete.
3750 * Makefile.in
3751
7a3085c1
AC
37522002-07-16 Andrew Cagney <ac131313@redhat.com>
3753
3754 * NEWS: Mention that the FR30 has been made obsolete.
3755 * fr30-tdep.c: Make file obsolete.
3756 * config/fr30/tm-fr30.h: Ditto.
3757 * config/fr30/fr30.mt: Ditto.
3758 * configure.tgt: Make fr30-*-elf obsolete.
3759 * MAINTAINERS: Make fr30-elf obsolete.
3760
28a93f5a
PM
37612002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3762
3763 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3764 found is not inside a section.
3765
be006b8b
KB
37662002-07-15 Kevin Buettner <kevinb@redhat.com>
3767
3768 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3769 strerror().
3770 (pdc_realloc): Use xrealloc() instead of realloc().
3771
14fa3751
KB
37722002-07-15 Kevin Buettner <kevinb@redhat.com>
3773
3774 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3775 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3776 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3777 macros.
3778
42cc437f
KB
37792002-07-15 Kevin Buettner <kevinb@redhat.com>
3780
3781 * aix-thread.c (ptrace_check): Eliminate goto.
3782 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3783 problem.
3784
8e2c28d4
KB
37852002-07-15 Kevin Buettner <kevinb@redhat.com>
3786
3787 * aix-thread.c (gdbcmd.h): Include.
3788 (DEBUG, DBG, DBG2, dbg): Eliminate.
3789 (debug_aix_thread): New static global.
3790 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3791 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3792 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3793 invocations to DBG and DBG2 macros to test against
3794 ``debug_aix_thread'' and call fprintf_unfiltered().
3795 (_initialize_aix_thread): Add new command "set debug aix-thread".
3796
30413464
AC
37972002-07-15 Andrew Cagney <ac131313@redhat.com>
3798
3799 From Gerhard Tonn <TON@de.ibm.com>:
3800 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3801 instead of supply_register.
3802
7c43edc1
AC
38032002-07-15 Andrew Cagney <ac131313@redhat.com>
3804
3805 * dwarf2cfi.c: Include "gdb_assert.h".
3806 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3807 non-NULL.
3808 (update_context): Do not use __func__. Add missing ``break''.
3809 (update_context): Do not use __func__.
3810
9364a0ef
EZ
38112002-07-15 Elena Zannoni <ezannoni@redhat.com>
3812
3813 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3814 and its setting. Set gdbarch instruction printing functions
3815 directly. For non-rs6000 case use new function
3816 gdb_print_insn_powerpc.
3817 (gdb_print_insn_powerpc): New function.
3818
3fbeef0b
AC
38192002-07-13 Andrew Cagney <ac131313@redhat.com>
3820
92eb23c5 3821 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3822 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3823 * configure.tgt: Mark d30v-*-* as obsolete.
3824 * d30v-tdep.c: Mark file as obsolete.
3825 * config/d30v/d30v.mt: Ditto.
3826 * config/d30v/tm-d30v.h: Ditto.
3827
aacb1f0a
AS
38282002-07-13 Aidan Skinner <aidan@velvet.net>
3829
3830 * ada-tasks.c (add_task_entry): replace calls to
3831 malloc() with xmalloc
3832 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3833
3834 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3835 ada_finish_decode_line_1, all_sals_for_line
3836 ada_breakpoint_rewrite): replace calls to free() with xfree()
3837
c11d79f2
KB
38382002-07-12 Kevin Buettner <kevinb@redhat.com>
3839
3840 From Nicholas Duffek (with minor changes by Martin Hunt,
3841 Louis Hamilton, and Kevin Buettner):
3842 * aix-thread.c: New file.
3843
8e19ed76
PS
38442002-07-12 Petr Sorfa <petrs@caldera.com>
3845
3846 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3847 complaint for invalid attribute class or form.
3848 (read_func_scope): DW_AT_frame_base
3849 better handling of DW_AT_block*.
3850 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3851 better handling of DW_AT_block*.
3852 (read_common_block): DW_AT_location
3853 better handling of DW_AT_block*.
3854 (read_partial_die): DW_AT_location better handling
3855 of DW_AT_block*.
3856 (new_symbol): DW_AT_external better handling of
3857 DW_AT_block*. Proper initialization of variable
3858 "addr".
3859 (attr_form_is_block): New function that returns true
3860 if the attribute's form is of DW_FORM_block*.
3861
295401f7
DJ
38622002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3863
3864 * valops.c (find_method_list): Remove comment about
3865 removed STATIC_MEMFUNCP argument.
3866 (value_find_oload_method_list): Likewise.
3867
e42dc924
KB
38682002-07-12 Kevin Buettner <kevinb@redhat.com>
3869
3870 From Nicholas Duffek:
3871 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3872 target_new_objfile_hook.
3873
6904b546
KB
38742002-07-12 Kevin Buettner <kevinb@redhat.com>
3875
3876 From Nicholas Duffek:
3877 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3878 csect.
3879
53fe9346
AC
38802002-07-12 Andrew Cagney <cagney@redhat.com>
3881
3882 * MAINTAINERS: Mention --enable-sim-build-warnings.
3883 (m68hc11-elf): Disable sim build warnings.
3884 (m32r-elf): Mark as broken obsolete candidate.
3885 (x86_64-linux-gnu): Mark as buildable with -Werror.
3886 (arm-elf): Change -w to ``,'' which enables warnings but not
3887 -Werror.
3888
af5f3db6
AC
38892002-07-12 Andrew Cagney <ac131313@redhat.com>
3890
3891 * bcache.h: Update copyright.
3892 (struct bstring, struct bcache): Move definition to "bcache.c".
3893 Replaced by opaque declaration.
3894 (bcache_xfree): Replace free_bcache.
3895 (bcache_xmalloc, bcache_memory_used): Declare.
3896
3897 * bcache.c: Update copyright.
3898 (struct bstring, struct bcache): Moved to here from "bcache.h".
3899 Update comments.
3900 (bcache_xmalloc, bcache_memory_used): New functions.
3901 (bcache_xfree): Replace function free_bcache.
3902
3903 * Makefile.in (objfiles.o): Add $(bcache_h).
3904 (objfiles_h): Remove $(bcache_h).
3905 (symfile.o): Add $(bcache_h).
3906
3907 * symmisc.c: Update copyright.
3908 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3909 (print_objfile_statistics): Use bcache_memory_used.
3910
3911 * symfile.c: Include "bcache.h".
3912 (reread_symbols): Use bcache_xfree.
3913 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3914 (add_psymbol_to_list): Pass psymbol_cache by value.
3915 (add_psymbol_with_dem_name_to_list): Ditto.
3916
3917 * objfiles.h: Update copyright.
3918 (struct bcache): Declare opaque. Do not include "bcache.h".
3919 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3920 bcache'' pointers.
3921 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3922
3923 * objfiles.c: Include "bcache.h". Update copyright.
3924 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3925 macro_cache.
3926 (free_objfile): Use bcache_xfree.
3927
444199e7
GS
39282002-07-11 Grace Sainsbury <graces@redhat.com>
3929
3930 * monitor.c (monitor_fetch_register): Make name a constant.
3931 (monitor_store_register): Same.
3932
261397f8
DJ
39332002-07-11 Daniel Jacobowitz <drow@mvista.com>
3934
3935 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3936 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3937 (finish_block) For non-function blocks, hash the symbol table. For
3938 function blocks, mark the symbol table as unhashed.
3939 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3940 (msymbol_hash_iw): Likewise.
3941 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3942 value.
3943 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3944 (lookup_minimal_symbol): Likewise for both.
3945 * symtab.h (struct block): Add `hashtable' flag. Comment the
3946 hashtable.
3947 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3948 (ALL_BLOCK_SYMBOLS): Update.
3949 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3950 (struct symbol): Add `hash_next' pointer.
3951 * symtab.c (lookup_block_symbol): Search using the hash table when
3952 possible.
3953 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3954 (search_symbols, find_addr_symbol): Likewise.
3955
3956 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3957 (read_dst_symtab): Likewise.
3958 * jv-lang.c (get_java_class_symtab): Likewise.
3959 * mdebugread.c: Include "gdb_assert.h".
3960 (shrink_block): Assert that the block being modified is not hashed.
3961 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3962 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3963 symbols.
3964 (dump_symtab): Recognize hashed blocks.
3965 * printcmd.c (print_frame_args): Assert that function blocks do not
3966 have hashed symbol tables.
3967 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3968 (fill_in_ada_prototype, debug_print_block): Likewise.
3969 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3970
6f0eaa01
CV
39712002-07-11 Corinna Vinschen <vinschen@redhat.com>
3972
3973 * stack.c (print_frame): Use result of frame_address_in_block()
3974 instead of fi->pc when evaluating symbols.
3975 (backtrace_command_1): Ditto.
3976
a208b0cb
AC
39772002-07-11 Andrew Cagney <cagney@redhat.com>
3978
3979 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3980 Make static.
3981
3982 * arm-tdep.c (arm_register_name): Make return type constant.
3983
a6b6b089
AC
39842002-07-10 Andrew Cagney <ac131313@redhat.com>
3985
5ae5f592
AC
3986 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3987 prototype.
3988 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3989 * s390-tdep.c (s390_fp_regnum): Ditto.
3990 (s390_read_fp): Ditto.
3991 (s390_pop_frame): Ditto.
3992 (_initialize_s390_tdep): Ditto.
3993 * remote.c (get_remote_state): Ditto.
3994 * procfs.c (mappingflags): Ditto.
3995 * memattr.c (_initialize_mem): Ditto.
3996 * mcore-tdep.c (mcore_pop_frame): Ditto.
3997 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3998 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3999 * language.c (set_case_str): Ditto.
4000 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4001 * frv-tdep.c (new_variant): Ditto.
4002 (frv_stopped_data_address): Ditto.
4003 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4004 (context_alloc): Ditto.
4005 (frame_state_alloc): Ditto.
4006 (unwind_tmp_obstack_init): Ditto.
4007 (unwind_tmp_obstack_free): Ditto.
4008 (cfi_read_fp): Ditto.
4009 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4010 (cris_pop_frame): Ditto.
4011 * c-lang.c (scanning_macro_expansion): Ditto.
4012 (finished_macro_expansion): Ditto.
4013 (c_preprocess_and_parse): Ditto.
4014 * gdbarch.sh: Ditto.
4015 * gdbarch.h, gdbarch.c: Regenerate.
4016 * config/mn10200/tm-mn10200.h: Adjust indentation.
4017 * target.c: Adjust indentation.
4018 * symtab.h: Adjust indentation.
4019 * stabsread.h: Adjust indentation.
4020 * remote-es.c: Adjust indentation.
4021 * os9kread.c: Adjust indentation.
4022
40232002-07-10 Andrew Cagney <ac131313@redhat.com>
4024
a6b6b089
AC
4025 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4026 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4027
a1789893
GS
40282002-07-10 Grace Sainsbury <graces@redhat.com>
4029
4030 * NEWS: Mention m68k, mcore multi-arching.
4031 * MAINTAINERS: Change status of m68k, mcore to reflect
4032 multi-arching.
4033
02f0d45d
DJ
40342002-07-10 Daniel Jacobowitz <drow@mvista.com>
4035
4036 * valops.c (find_overload_match): Free oload_syms.
4037
f15f768e
JB
40382002-07-09 Joel Brobecker <brobecker@gnat.com>
4039
4040 Define HAVE_SYS_PROC_H if sys/proc.h exists
4041 * configure.in: Add check for sys/proc.h
4042 * config.in: Regenerate.
4043 * configure: Regenerate.
4044
902a7139
GS
40452002-07-09 Grace Sainsbury <graces@redhat.com>
4046
4047 * config/m68k/tm-m68k.h: Remove macros wrapped in
4048 #if !GDB_MULTI_ARCH.
4049
a534e424
AC
40502002-07-08 Andrew Cagney <ac131313@redhat.com>
4051
4052 * config.in, configure: Regenerate.
4053
9b94f7bf
MK
40542002-07-08 Mark Kettenis <kettenis@gnu.org>
4055
4056 * dwarf2cfi.c: Include "gcore.h".
4057 (execute_stack_op): Fix implementation of the
4058 DW_OP_deref and DW_OP_deref_size operators by letting do their
4059 lookup in the target.
4060
1d34db41
MK
40612002-07-07 Mark Kettenis <kettenis@gnu.org>
4062
4063 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4064 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4065 tdep->sc_sp_offset.
4066
79d5b63a
DJ
40672002-07-05 Daniel Jacobowitz <drow@mvista.com>
4068
4069 Fix PR gdb/595, gdb/602
4070 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4071 Don't call value_cast, just read the vtable pointer; update comments
4072 to match.
4073
3bb912e8
GS
40742002-07-05 Grace Sainsbury <graces@redhat.com>
4075
4076 * config/mcore/tm-mcore.h: Remove file.
4077 * config/mcore/mcore.mt: Remove definition of TM_FILE
4078 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4079
ca39387d
MK
40802002-07-05 Mark Kettenis <kettenis@gnu.org>
4081
4082 * i386bsd-tdep.c: Include "gdb_string.h".
4083
efdc1108
GS
40842002-07-04 Grace Sainsbury <graces@redhat.com>
4085
4086 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4087 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4088 mcore-tdep.
4089 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4090 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4091 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4092 (RETVAL_REGNUM): Move macros from tm-mcore.h
4093 (mcore_reg_struct_has_addr): New function.
4094 (mcore_gdbarch_init): Added initializations for the macros removed
4095 from tm-mcore.h.
4096
bb21884d
MK
40972002-07-04 Mark Kettenis <kettenis@gnu.org>
4098
4099 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4100 traditonal string branding within the ELF header.
4101
228c6d41
DJ
41022002-07-04 Daniel Jacobowitz <drow@mvista.com>
4103
4104 * symtab.c (remove_params): New function.
4105 (make_symbol_overload_list): Use it instead of cplus_demangle.
4106 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4107
2404952e
MK
41082002-07-04 Mark Kettenis <kettenis@gnu.org>
4109
e5e4acad
MK
4110 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4111
baadce09
MK
4112 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4113 New variables.
4114 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4115 and tdep->sigtramp_end.
4116 * i386obsd-nat.c: New file.
4117 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4118
2404952e
MK
4119 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4120 Don't call get_current_frame().
4121
9b4f1ba7
PM
41222002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4123
4124 * i386-nat.c (child_post_startup_inferior): New function
4125 calling i386_cleanup_dregs if
4126 I386_USE_GENERIC_WATCHPOINTS is defined.
4127 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4128 conditional to acknowledge that i386-nat.c has its
4129 own child_post_startup_inferior function.
4130
c0d1d883
MK
41312002-07-04 Mark Kettenis <kettenis@gnu.org>
4132
00f8375e
MK
4133 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4134 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4135 instead of MAX_REGISTER_RAW_SIZE.
4136 (i386_extract_return_value, i386_extract_struct_value_address):
4137 Convert to use regcache.
4138 (i386_gdbarch_init): Set max_register_raw_size and
4139 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4140 Set extract_return_value and extract_struct_value_address instead
4141 of their deprecated variants.
4142
c0d1d883
MK
4143 Convert i386 target to generic dummy frames.
4144 * i386-tdep.c: Include "symfile.h".
4145 (i386_frameless_signal_p): Consider a function to be frameless if
4146 the pc points at the first instruction of the function.
4147 (i386_frame_chain): Handle (generic) call dummies.
4148 (i386_frame_saved_pc): Likewise.
4149 (i386_frame_init_saved_regs): Remove code dealing with call
4150 dummies on the stack.
4151 (i386_push_dummy_frame): Removed.
4152 (i386_call_dummy_words): Removed.
4153 (i386_fix_call_dummy): Removed.
4154 (i386_push_return_address): New function.
4155 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4156 parameter, and don't call get_current_frame.
4157 (i386_pop_frame): New function.
4158 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4159 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4160 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4161 call_dummy_length to 0, set call_dummy_words to NULL, set
4162 sizeof_call_dummy_words to 0, set fix_call_dummy to
4163 generic_fix_call_dummy, set pc_in_call_dummy to
4164 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4165 generic_push_dummy_frame, set push_return_address to
4166 i386_push_return_address and set frame_chain_valid to
4167 generic_file_frame_chain_valid.
4168
049ee0e4
AC
41692002-07-03 Andrew Cagney <ac131313@redhat.com>
4170
4171 * gdbarch.sh (struct regcache): Add opaque declaration.
4172 (EXTRACT_RETURN_VALUE): New architecture method.
4173 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4174 * gdbarch.h, gdbarch.c: Regenerate.
4175 * arch-utils.c (legacy_extract_return_value): New function.
4176 * arch-utils.h (legacy_extract_return_value): Declare.
4177 * values.c (value_being_returned): Re-enable code handling
4178 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4179 deprecated_grub_regcache_for_registers call to block handling
4180 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4181 (EXTRACT_RETURN_VALUE): Do not define.
4182
4e0d9804
GS
41832002-07-03 Grace Sainsbury <graces@redhat.com>
4184
4185 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4186 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4187 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4188 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4189 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4190 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4191 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4192 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4193 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4194 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4195 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4196 argument so the function fits the prototype in the architecture
4197 vector.
4198 (mcore_pop_frame): Remove argument so the function fits the
4199 prototype. Use get_current_frame instead of the argument.
4200 (mcore_push_arguments): Change type of struct_return so the
4201 function can be used in the architecture vector.
4202 (mcore_store_struct_return): Add.
4203 (mcore_frame_init_saved_regs): Add.
4204 (mcore_gdbarch_init): Add function calls to replace the macros
4205 removed from tm-mcore.h
4206
36160dc4
AC
42072002-07-03 Andrew Cagney <ac131313@redhat.com>
4208
4209 * infcmd.c (print_return_value): Remove compatibility code calling
4210 deprecated_grub_regcache_for_registers.
4211
4212 * values.c: Include "regcache.h".
4213 (value_being_returned): Update. Use
4214 deprecated_grub_regcache_for_registers to extract the register
4215 buffer address.
4216 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4217 ``struct regcache''.
4218 * Makefile.in (values.o): Add dependency on $(regcache_h).
4219
4220 * inferior.h (run_stack_dummy): Change type of second parameter to
4221 a ``struct regcache''.
4222 * valops.c (hand_function_call): Change type of retbuf to ``struct
4223 regcache''. Allocate using regcache_xmalloc, clean using
4224 make_cleanup_regcache_xfree.
4225 * infcmd.c (run_stack_dummy): Update. Use
4226 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4227
4228 * regcache.c (do_regcache_xfree): New function.
4229 (make_cleanup_regcache_xfree): New function.
4230 * regcache.h (make_cleanup_regcache_xfree): Declare.
4231
e64d9b3d
MH
42322002-07-03 Martin M. Hunt <hunt@redhat.com>
4233
4dd79c29
MH
4234 * event-top.c (command_line_handler): Don't read past
4235 beginning of buffer.
e64d9b3d 4236
4dd79c29
MH
42372002-07-03 Martin M. Hunt <hunt@redhat.com>
4238
e64d9b3d
MH
4239 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4240 struct frame_id.
4241 (varobj_create): Store frame_id for root.
4242 (varobj_gen_name): Use xasprintf.
4243 (varobj_update): Save and restore frame using get_frame_id() and
4244 frame_find_by_id().
4245 (create_child): Use xasprintf.
4246 (new_root_variable): Initialize frame_id.
4247 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4248 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4249 to prevent memory leak.
4250
26e6c56a
AC
42512002-07-03 Andrew Cagney <ac131313@redhat.com>
4252
4253 * valops.c (hand_function_call): Move declaration of retbuf to
4254 start of function, allocate using malloc, add a cleanup but before
4255 the inf_status cleanup, cleanup the buffer. Rename local variable
4256 old_chain to inf_status_cleanup.
4257
f436dd25
MH
42582002-07-03 Martin M. Hunt <hunt@redhat.com>
4259
4260 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4261
4262 * cli/cli-decode.c (cmd_func_p): New function.
4263 (cmd_func): New function.
4264
4265 * command.h: Add cmd_func() and cmd_func_p().
4266
4cfe2084
GS
42672002-07-03 Grace Sainsbury <graces@redhat.com>
4268
4269 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4270 (REGISTER_SIZE): Remove.
4271 (MAX_REGISTER_RAW_SIZE): Remove.
4272 (REGISTER_VIRTUAL_TYPE): Remove.
4273 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4274 (REGISTER_NAME): Remove.
4275 (USE_GENERIC_DUMMY_FRAMES): Remove.
4276 (CALL_DUMMY): Remove.
4277 (CALL_DUMMY_START_OFFSET): Remove.
4278 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4279 (CALL_DUMMY_LOCATION): Remove.
4280 (FIX_CALL_DUMMY): Remove.
4281 (CALL_DUMMY_ADDRESS): Remove.
4282 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4283 (SAVE_DUMMY_FRAME_TOS): Remove.
4284 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4285 (mcore_register_virtual_type): New function.
4286 (mcore_register_byte): New function.
4287 (mcore_register_size): New function.
4288 (mcore_register_name): New function.
4289 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4290 macros removed from tm-mcore.h.
4291 (mcore_dump_tdep): Add.
4292 (_initialize_mcore_tdep): Add gdbarch_register call.
4293
4fd667e9
MK
42942002-07-03 Mark Kettenis <kettenis@gnu.org>
4295
4296 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4297 frameless_look_for_prologue, such that we actually call this
4298 function.
4299
42f99ac2
JB
43002002-07-02 Joel Brobecker <brobecker@gnat.com>
4301
4302 * frame.h (frame_address_in_block): New function.
4303
4304 * blockframe.c (frame_address_in_block): New function extracted
4305 from get_frame_block().
4306 (get_frame_block): Use frame_address_in_block().
4307 (block_innermost_frame): Use frame_address_in_block() to match
4308 the frame pc address against the block boundaries rather than
4309 the frame pc directly. This prevents a failure when a frame pc
4310 is actually a return-address pointing immediately after the end
4311 of the given block.
4312
103a1597 43132002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4314
4315 * MAINTAINERS: Add self under write after approval.
4316
43172002-07-02 Grace Sainsbury <graces@redhat.com>
4318
103a1597
GS
4319 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4320 used in architecture vector. The default is
4321 m68k_local_breakpoint_from_pc.
4322 (m68k_local_breakpoint_from_pc): Add.
4323 (enum): Add register numbers from tm-m68k.h.
4324 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4325 vector.
4326 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4327 GDB_MULTI_ARCH_PARTIAL.
4328 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4329 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4330 m68k-tdep.c.
4331 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4332 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4333 to enum in m68k-tdep.c
4334
7a5a0534
JB
43352002-07-02 Joel Brobecker <brobecker@gnat.com>
4336
4337 * solib-osf.c (open_map): Compute the list of shared libraries
4338 loaded by the inferior, rather than the list of libraries loaded
4339 by GDB itself. Otherwise, GDB ends up reading the symbols from
4340 the wrong shared libraries...
4341
6f558d74
MK
43422002-07-02 Mark Kettenis <kettenis@gnu.org>
4343
b7d15bf7
MK
4344 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4345 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4346 macros.
4347 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4348 Remove functions.
4349 (FRAMELESS_SIGNAL): Remove function.
4350 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4351 i386_linux_saved_pc_after_call): Removed.
4352 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4353 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4354 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4355
6bff26de
MK
4356 * i386-tdep.c (i386_frameless_signal_p): New function.
4357 (i386_frame_chain): Deal with frameless signals.
4358 (i386_sigtramp_saved_sp): New function.
4359 (i386_frame_saved_pc): Deal with frameless signals.
4360 (i386_saved_pc_after_call): Make sure the correct value is
4361 returned just after entry into a sigtramp.
4362 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4363 i386fbsd4_sc_sp_offset): New variables.
4364 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4365 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4366 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4367 similiar to what we already did for sc_pc_offset.
4368 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4369 tdep->sc_sp_offset.
4370
6f558d74
MK
4371 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4372
145564b7
ML
43732002-07-02 Michal Ludvig <mludvig@suse.cz>
4374
4375 * config/i386/tm-x86-64linux.h: New.
4376 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4377 definitions.
4378 * config/i386/nm-x86-64.h: Rename to ...
4379 * config/i386/nm-x86-64linux.h: ... this one.
4380 * config/i386/x86-64linux.mh: Reflect the above change.
4381
3a1e71e3
MK
43822002-07-01 Mark Kettenis <kettenis@gnu.org>
4383
21d0e8a4
MK
4384 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4385 with sigcontext_addr. Add sc_sp_offset.
4386 (i386bsd_sigtramp_saved_pc): Remove prototype.
4387 (i386bsd_sicontext_addr): Add prototype.
4388 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4389 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4390 (i386_svr4_sigtramp_saved_pc): Removed.
4391 (i386_svr4_sigcontext_addr): New function.
4392 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4393 Initialize tdep->sigcontext_addr instead. Initialize
4394 tdep->sc_pc_offset and tdep->sc_sp_offset.
4395 (i386_gdbarch_init): Likewise.
4396 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4397 any more.
4398 (i386bsd_sigtramp_saved_pc): Remove function.
4399 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4400 Initialize tdep->sigcontext_addr instead. Initialize
4401 tdep->sc_pc_offset.
4402 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4403 of tdep->sigtramp_saved_pc.
4404 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4405 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4406 instead.
4407
3a1e71e3
MK
4408 * i386-tdep.c (i386_frameless_function_invocation,
4409 i386_frame_num_args, i386_frame_init_saved_regs,
4410 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4411 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4412 i386_extract_return_value, i386_store_return_value,
4413 i386_extract_struct_value_address, i386_register_virtual_type,
4414 i386_register_convertible, i386_register_convert_to_virtual,
4415 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4416 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4417 static.
4418
52e9098c
MK
44192002-07-01 Mark Kettenis <kettenis@gnu.org>
4420
77b13a25
MK
4421 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4422
52e9098c
MK
4423 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4424 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4425 this macro. Include "value.h".
4426
1b372fff
AS
44272002-06-30 Aidan Skinner <aidan@velvet.net>
4428
4429 * ada-exp.tab.c: remove as it's a generated file
4430 * ada-lex.c: remove as it's a generated file
4431
9c5045b5
MK
44322002-06-30 Mark Kettenis <kettenis@gnu.org>
4433
4a93c5bb
MK
4434 * config/i386/tm-i386.h (struct frame_info, struct
4435 frame_saved_regs, struct value, struct type): Remove forward
4436 declarations.
4437
322d4fe0
MK
4438 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4439 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4440 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4441 (FILL_FPXREGSET): Define.
4442
fdd8263d
MK
4443 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4444
482e577b
MK
4445 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4446 i[3456]86-*-netbsd* case.
4447 * config/i386/tm-obsd.h: Removed.
4448 * config/i386/obsd.mt: Removed.
4449 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4450 core-aout.o.
4451 (MH_CFLAGS): Add -DYYDEBUG=0.
4452
6916549a
MK
4453 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4454 i386nbsd_sc_pc_offset on OpenBSD too.
4455
9c5045b5
MK
4456 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4457 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4458 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4459 define.
4460 * i386bsd-tdep.c: Include "arch-utils.h".
4461 (i386bsd_aout_in_solib_call_trampoline): New function.
4462 (i386bsd_init_abi): Set in_solib_call_trampoline to
4463 i386bsd_aout_in_solib_call_trampoline.
4464 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4465 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4466
aa84d1bb
AC
44672002-06-28 Andrew Cagney <ac131313@redhat.com>
4468
4469 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4470 (struct obstack, struct bcache): Add opaque declarations.
4471 * Makefile.in (macrotab_h): Update
4472
b4d83933
AC
44732002-06-28 Andrew Cagney <ac131313@redhat.com>
4474
4475 * blockframe.c (generic_find_dummy_frame): Change return type to
4476 ``struct regcache''.
4477 (struct dummy_frame): Replace field ``registers'' with regcache, a
4478 struct regcache object.
4479 (generic_find_dummy_frame): Update.
4480 (generic_push_dummy_frame): Update. Use regcache_xfree,
4481 regcache_xmalloc and regcache_cpy.
4482 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4483 regcache_xfree.
4484 (deprecated_generic_find_dummy_frame): Update.
4485 (generic_read_register_dummy): Update. Use
4486 regcache_read_as_address.
4487 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4488 (generic_get_saved_register): Update. Use regcache_read.
4489
08c0b5bc
AC
44902002-06-28 Andrew Cagney <ac131313@redhat.com>
4491
4492 * Makefile.in (objfiles_h): Add $(bcache_h).
4493 * objfiles.h: Include "bcache.h".
4494
4495 * Makefile.in (symtab_h): Remove $(bcache_h).
4496 * symtab.h: Do not include "bcache.h".
4497
1f89801a
AC
44982002-06-28 Andrew Cagney <ac131313@redhat.com>
4499
4500 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4501 generic_func_frame_chain_valid.
4502
b9644b58
DB
45032002-06-28 David O'Brien <obrien@FreeBSD.org>
4504
4505 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4506 * config/i386/tm-fbsd.h: Likewise.
4507
dd486634
AC
45082002-06-28 Andrew Cagney <ac131313@redhat.com>
4509
4510 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4511 generic_unwind_get_saved_register.
4512
0b434a00
AC
45132002-06-27 Andrew Cagney <ac131313@redhat.com>
4514
4515 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4516 * regcache.c (supply_register): Add missing argument to
4517 register_buffer call.
4518
f30e5a77
AC
45192002-06-27 Andrew Cagney <ac131313@redhat.com>
4520
4521 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4522 Solaris /bin/grep does not not like it. From Peter Schauer.
4523
9f064c95
TT
45242002-06-26 Tom Tromey <tromey@redhat.com>
4525
4526 * command.h (add_setshow_cmd): Declare.
4527 (add_setshow_cmd_full): Declare.
4528 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4529 returns void. Use add_setshow_cmd_full.
4530 (add_setshow_cmd_full): New function.
4531 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4532 (add_setshow_boolean_cmd): Likewise.
4533
099c7589
JT
45342002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4535
4536 * config/vax/tm-vax.h: Protect from multiple inclusion.
4537 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4538 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4539 * config/vax/tm-vaxbsd.h: ...here. New file.
4540 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4541
1d049c5e
JT
45422002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4543
4544 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4545 (BELIEVE_PCC_PROMOTION): Remove.
4546 (AP_REGNUM): Move to...
4547 * config/vax/nm-vax.h: ...here.
4548 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4549 (vax_breakpoint_from_pc): New function.
4550 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4551 and gdbarch_believe_pcc_promotion.
4552
4791e091
JT
45532002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4554
4555 * Makefile.in (vax_tdep_h): Define.
4556 (vax-tdep.o): Use $(vax_tdep_h).
4557 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4558 (vax_dump_tdep): New function.
4559 (_initialize_vax_tdep): Register vax_dump_tdep.
4560 * vax-tdep.h: Include osabi.h.
4561 (struct gdbarch_tdep): New.
4562
da130f98
AC
45632002-06-26 Andrew Cagney <cagney@redhat.com>
4564
4565 * frame.h (deprecated_generic_find_dummy_frame): Rename
4566 generic_find_dummy_frame.
4567 * blockframe.c (generic_find_dummy_frame): Make static.
4568 (deprecated_generic_find_dummy_frame): New function.
4569 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4570 generic_find_dummy_frame with deprecated_find_dummy_frame.
4571 (sh64_nofp_frame_init_saved_regs): Ditto.
4572 (sh_fp_frame_init_saved_regs): Ditto.
4573 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4574 (s390_frame_chain): Ditto.
4575 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4576
6300c360
GS
45772002-06-26 Grace Sainsbury <graces@redhat.com>
4578
4579 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4580 gdbarch vector are at the top.
4581 (NUM_REGS): Remove.
4582 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4583 (FRAME_ARGS_ADDRESS): Remove.
4584 (FRAME_LOCALS_ADDRESS): Remove.
4585 (FRAME_NUM_ARGS): Remove.
4586 (FRAME_ARGS_SKIP): Remove.
4587 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4588 (m68k_gdbarch_init): Add gdbarch initializations for macros
4589 undefined in tm-m68k.h
4590
1c617db8
GS
45912002-06-26 Grace Sainsbury <graces@redhat.com>
4592
4593 * monitor.h: Add the function regname to monitor_ops
4594 structure. This way NUM_REGS does not have to be a constant.
4595 * monitor.c (monitor_fetch_register): Added support for regname
4596 function. The function is called if the array regnames is NULL.
4597 (monitor_store_register): Same.
da130f98
AC
4598 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4599 regnames array.
1c617db8
GS
4600 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4601 cpu32bug_cmds.regname to point to new function.
4602 * abug-rom.c (abug_regname): Same as above.
4603 (init_abug_cmds): Same.
4604 * dbug-rom.c (dbug_regname): Same as above.
4605 (init_dbug_cmds): Same.
4606 * remote-est.c (est_regname): Same.
4607 (init_est_cmds): Same.
4608 * rom68k-rom.c (rom68k_regname): Same.
4609 (init_rom68k_cmds): Same.
4610
ea9365bb
TT
46112002-06-25 Tom Tromey <tromey@redhat.com>
4612
4613 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4614
72cec141
AC
46152002-06-25 Andrew Cagney <cagney@redhat.com>
4616
4617 * infrun.c (stop_registers): Change variable's type to ``struct
4618 regcache'''.
4619 (xmalloc_inferior_status): Delete function.
4620 (free_inferior_status): Delete function.
4621 (normal_stop): Use regcache_cpy.
4622 (struct inferior_status): Change type of fields ``stop_registers''
4623 and ``registers'' to ``struct regcache''.
4624 (write_inferior_status_register): Use regcache_write.
4625 (save_inferior_status): Instead of calling
4626 xmalloc_inferior_status, allocate the inf_status buffer directly.
4627 Use regcache_dup_no_passthrough and regcache_dup to save the
4628 buffers.
4629 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4630 Replace the stop_registers regcache instead of overriding it. Use
4631 regcache_xfree. Instead of calling free_inferior_status, xfree
4632 the buffer directly.
4633 (discard_inferior_status): Use regcache_xfree. Instead of calling
4634 free_inferior_status, xfree the buffer directly.
4635 (build_infrun): Use regcache_xmalloc.
4636 (_initialize_infrun): Delete redundant call to build_infrun.
4637
4638 * Makefile.in (infcmd.o): Add $(regcache_h).
4639
4640 * infcmd.c: Include "regcache.h".
4641 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4642 obtain the address of `stop_registers' register buffer.
4643 (print_return_value): Ditto.
4644
4645 * inferior.h (struct regcache): Add opaque declaration.
4646 (stop_registers): Change variable's declared type to ``struct
4647 regcache''.
4648
defc6f8c
TT
46492002-06-24 Tom Tromey <tromey@redhat.com>
4650
c0e624e7
TT
4651 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4652 * target.c (initialize_targets): Fixed typo in
4653 trust-readonly-sections `show' documentation.
4654
defc6f8c
TT
4655 * main.c: Marked all strings with _().
4656
2b236d82
DH
46572002-06-24 Don Howard <dhoward@redhat.com>
4658
4659 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4660 that means max CORE_ADDR+1.
4661 (lookup_mem_region): Ditto.
4662 (mem_info_command): Ditto.
4663
942dc0e9
GS
46642002-06-24 Grace Sainsbury <graces@redhat.com>
4665
4666 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4667 (REGISTER_BYTES_OK): Remove.
4668 (REGISTER_BYTES): Remove.
4669 (STORE_STRUCT_RETURN): Remove.
4670 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4671 (STORE_RETURN_VALUE): Remove.
4672 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4673 (FRAME_CHAIN): Remove.
4674 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4675 (FRAME_SAVED_PC): Remove.
4676 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4677 (m68k_store_struct_return): Add.
4678 (m68k_deprecated_extract_return_value): Add.
4679 (m68k_deprecated_extract_struct_value_address): Add.
4680 (m68k_store_return_value): Add.
4681 (m68k_frame_chain): Add.
4682 (m68k_frameless_function_invocation): Add.
4683 (m68k_frame_saved_pc): Add.
4684 (m68k_gdbarch_init): added set_gdbarch calls for new
4685 functions and deleted macros.
4686
03c30d4d
TT
46872002-06-23 Tom Tromey <tromey@redhat.com>
4688
4689 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4690 (ALLDEPFILES): Likewise.
4691 (udiheaders): Removed.
4692 (udip2soc.o): Likewise.
4693 (udi2go32.o): Likewise.
4694 (udr.o): Likewise.
4695 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4696
37e71372
AC
46972002-06-22 Andrew Cagney <ac131313@redhat.com>
4698
06a6ac57
AC
4699 * infrun.c (_initialize_infrun): Delete unnecessary call to
4700 build_infrun.
4701
37e71372
AC
4702 * regcache.h: Update comments describing the regcache_cpy family
4703 of functions.
4704 (regcache_save, regcache_restore): Delete declaration.
4705 (regcache_save_no_passthrough): Delete declaration.
4706 (regcache_restore_no_passthrough): Delete declaration.
4707 * regcache.c (regcache_save): Delete function.
4708 (regcache_save_no_passthrough): Delete function.
4709 (regcache_restore): Delete function.
4710 (regcache_restore_no_passthrough): Delete function.
4711
78f6d055
AC
47122002-06-21 Andrew Cagney <ac131313@redhat.com>
4713
4714 * config/m68k/tm-m68k.h: Fix typo.
4715 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4716 (m68k_frame_init_saved_regs): Declare.
4717
78b119cb
JB
47182002-06-21 Jim Blandy <jimb@redhat.com>
4719
4720 Remove some vestiges of Harris 88k support.
4721 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4722 register numbering quirk.
4723 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4724 odd symbols occurring in Harris 88k ELF targets.
4725
0fbb3da7
TT
47262002-06-21 Tom Tromey <tromey@redhat.com>
4727
4728 * gdb_locale.h: New file.
4729 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4730 (defs_h): Added gdb_locale.h.
4731 * configure, config.in: Rebuilt.
4732 * configure.in (PACKAGE): Define.
4733 * defs.h: Include gdb_locale.h.
4734 * main.c (captured_main): Call setlocale, bindtextdomain,
4735 textdomain.
4736
456f8b9d
DB
47372002-06-21 Dave Brolley <brolley@redhat.com>
4738
4739 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4740 * config/frv/frv.mt: New file.
4741 * config/frv/tm-frv.h: New file.
4742 * configure.tgt: Support frv-*-*.
4743 * Makefile.in (frv-tdep.o): New target.
4744 * frv-tdep.c: New file.
4745 * NEWS: Mention frv.
4746
cdd463f9
DB
47472002-06-21 Dave Brolley <brolley@redhat.com>
4748
4749 * MAINTAINERS: Add self to "Write After Approval" list.
4750
5d3ed2e3
GS
47512002-06-21 Grace Sainsbury <graces@redhat.com>
4752
4753 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4754 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4755 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4756 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4757 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4758
4759 * m68k-tdep.c: Include arch-utils.h
4760 (m68k_register_raw_size): Add.
4761 (m68k_register_virtual_size): Add.
4762 (m68k_register_virtual_type): Add.
4763 (m68k_register_name): Add.
4764 (m68k_stack_align): Add.
4765 (m68k_register_byte): Add.
4766 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4767 tm-m68k.h.
4768
7f8e7424
GS
47692002-06-21 Grace Sainsbury <graces@redhat.com>
4770
a2c6a6d5 4771 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4772 m68k_find_saved_regs.
4773 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4774 references to it with frame->saved_regs.
7f8e7424
GS
4775 (m68k_gdbarch_init): Added function calls to initialize the
4776 gdbarch structure.
a2c6a6d5
GS
4777 (m68k_fix_call_dummy): Add.
4778 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4779 (CALL_DUMMY): Remove.
4780 (CALL_DUMMY_LENGTH): Remove.
4781 (CALL_DUMMY_START_OFFSET): Remove.
4782 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4783 (FIX_CALL_DUMMY): Remove.
4784 (PUSH_DUMMY_FRAME): Remove.
4785 (POP_FRAME): Remove.
7f8e7424 4786
f461f5cf
PM
47872002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4788
4789 * parse.c (parse_fprintf): New function used to avoid calls to
4790 fprintf in bison parser generated debug code.
4791 * parser-defs.h: Declaration of new parse_fprintf function.
4792 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4793 Set YYDEBUG to 1 by default.
4794 Set YYFPRINTF as parse_fprintf.
4795
7f0c12ed
ML
47962002-06-21 Michal Ludvig <mludvig@suse.cz>
4797
4798 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4799 encoding anymore.
4800 (pointer_encoding, enum ptr_encoding): New.
4801 (execute_cfa_program): Take care about pointer encoding.
4802 (dwarf2_build_frame_info): Only call parse_frame_info for
4803 .debug_frame and .eh_frame.
4804 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4805 fixed augmentation handling, added relative addressing,
4806 ignore duplicate FDEs. Added comments.
19d833a2 4807 * dwarf2cfi.c: Reindented.
7f0c12ed 4808
87c4a039
EZ
48092002-06-20 Elena Zannoni <ezannoni@redhat.com>
4810
4811 * event-top.c (command_handler): Don't use space_at_cmd_start
4812 unless there is sbrk() on the host. Assign time and space data
4813 to union fields of the appropriate length.
4814
1cf877ad
ML
48152002-06-20 Michal Ludvig <mludvig@suse.cz>
4816
4817 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4818 x86_64_register_name. Return type changed to 'const char *'.
4819 (x86_64_register_name2nr): Rename to x86_64_register_number.
4820 (x86_64_gdbarch_init): Update to reflect the change.
4821 * x86-64-tdep.h: Ditto.
4822 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4823 (supply_fpregset): Ditto.
4824
3fadccb3
AC
48252002-06-19 Andrew Cagney <cagney@redhat.com>
4826
4827 * regcache.h: Update copyright.
4828 (struct regcache, struct gdbarch): Add opaque declarations.
4829 (current_regcache): Declare global variable.
4830 (regcache_read, regcache_write): Add gdbarch parameter.
4831 (regcache_save, regcache_save_no_passthrough)
4832 (regcache_restore, regcache_restore_no_passthrough)
4833 (regcache_dup, regcache_dup_no_passthrough)
4834 (regcache_cpy, regcache_cpy_no_passthrough)
4835 (deprecated_grub_regcache_for_registers)
4836 (deprecated_grub_regcache_for_register_valid)
4837 (regcache_valid_p): Add function declarations.
4838
4839 * regcache.c: Update copyright.
4840 (regcache_descr_handle): New global variable.
4841 (struct regcache_descr): Define.
4842 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4843 (regcache_descr, xfree_regcache_descr): New functions.
4844 (struct regcache): Define.
4845 (regcache_xmalloc, regcache_xfree): New functions.
4846 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4847 (regcache_dup, regcache_dup_no_passthrough): New functions.
4848 (regcache_valid_p, regcache_read_as_address): New functions.
4849 (deprecated_grub_regcache_for_registers): New function.
4850 (deprecated_grub_regcache_for_register_valid): New function.
4851 (current_regcache): New global variable.
4852 (register_buffer): Add regcache parameter. Update calls.
4853 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4854 (read_register_gen, write_register_gen): Update register_buffer
4855 call. Test for legacy_p instead of gdbarch_register_read_p or
4856 gdbarch_register_write_p.
4857 (regcache_collect): Update register_buffer call.
4858 (build_regcache): Rewrite. Use deprecated grub functions.
4859 (regcache_save, regcache_save_no_passthrough): New functions.
4860 (regcache_restore, regcache_restore_no_passthrough): New
4861 functions.
4862 (_initialize_regcache): Create the regcache_data_handle. Swap
4863 current_regcache global variable.
4864
4865 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4866 parameter to regcache_read and regcache_write calls.
4867 (sh4_register_read): Ditto.
4868 (sh64_pseudo_register_read): Ditto.
4869 (sh64_register_read): Ditto.
4870 (sh_pseudo_register_write): Ditto.
4871 (sh4_register_write): Ditto.
4872 (sh64_pseudo_register_write): Ditto.
4873 (sh64_register_write): Ditto.
4874
4875 * defs.h (XCALLOC): Define.
4876
152d9db6
GS
48772002-06-19 Grace Sainsbury <graces@redhat.com>
4878
4879 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4880 * m68k-tdep.c (m68k_gdbarch_init): Added.
4881 (m68k_dump_tdep): Added.
4882
170911c7
DJ
48832002-06-19 Daniel Jacobowitz <drow@mvista.com>
4884
4885 * ada-lang.c (fill_in_ada_prototype): Update comment.
4886
2e4ebe70
DJ
48872002-06-19 Daniel Jacobowitz <drow@mvista.com>
4888
4889 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4890 MIPS_ABI_LAST.
4891 (mips_abi_string, mips_abi_strings): New.
4892 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4893 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4894 tdep->mips_abi_string. Honor mips_abi_string. Default to
4895 O32 if no ABI is found.
4896 (mips_dump_tdep): Use mips_abi_strings.
4897 (mips_abi_update): New function.
4898 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4899 ``set mips abi'' and ``show mips abi''. Check the size of
4900 mips_abi_strings.
4901
16775908
AC
49022002-06-19 Andrew Cagney <cagney@redhat.com>
4903
4904 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4905 constant.
4906
5051bfa4 49072002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4908
5051bfa4
JB
4909 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4910 current frame using only the first stack size adjustment. All
4911 subsequent size adjustments are not considered to be part of
4912 the "static" part of the current frame.
4913 Compute the address of the saved registers relative to the
4914 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4915 in use in this frame.
4916
56468235
DH
49172002-06-18 Don Howard <dhoward@redhat.com>
4918
4919 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4920 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4921 suggesting this solution.
4922
0b624158
AC
49232002-06-18 Andrew Cagney <ac131313@redhat.com>
4924
4925 * config/romp/xm-rtbsd.h: Delete file.
4926 * config/romp/rtbsd.mh: Delete file.
4927
221ea385
KS
49282002-06-18 Keith Seitz <keiths@redhat.com>
4929
4930 * breakpoint.c (condition_command): Post breakpoint_modify
4931 when a condition is added to an existing breakpoint.
4932 (commands_command): Likewise for commands.
4933 (set_ignore_count): Likewise for ignore counts.
4934 If no tty, do not simply return, still need to send event
4935 notification.
4936 (ignore_command): Only print a newline if the command came
4937 from a tty.
4938 Don't call breakpoints_changed, since this is now properly
4939 handled by set_ignore_count.
4940
5402eed1
AC
49412002-06-18 Andrew Cagney <cagney@redhat.com>
4942
4943 * MAINTAINERS: Note that cris-elf target can be compiled with
4944 -Werror.
4945 * cris-tdep.c (cris_register_name): Make return type constant.
4946 (cris_breakpoint_from_pc): Ditto.
4947
cc22880b
ML
49482002-06-18 Michal Ludvig <mludvig@suse.cz>
4949
4950 * frame.h (struct frame_info): Change type of context to
4951 'struct context'.
4952
fa88f677
AC
49532002-06-17 Andrew Cagney <cagney@redhat.com>
4954
4955 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4956 pointer.
4957 * gdbarch.h, gdbarch.c: Regenerate.
4958 * config/mips/tm-mips.h (mips_register_name): Update.
4959 * i386-tdep.h (i386_register_name): Update.
4960 * mips-tdep.c (mips_register_name): Update
4961 * alpha-tdep.c (alpha_register_name): Update.
4962 * arch-utils.c (legacy_register_name): Update.
4963 * arch-utils.h (legacy_register_name): Update.
4964 * avr-tdep.c (avr_register_name): Update.
4965 * ia64-tdep.c (ia64_register_name): Update.
4966 * i386-tdep.c (i386_register_name): Update.
4967 * sparc-tdep.c (sparc32_register_name): Update.
4968 (sparc64_register_name): Update.
4969 (sparclite_register_name): Update.
4970 (sparclet_register_name): Update.
4971 * sh-tdep.c (sh_generic_register_name): Update.
4972 (sh_sh_register_name): Update.
4973 (sh_sh3_register_name): Update.
4974 (sh_sh3e_register_name): Update.
4975 (sh_sh_dsp_register_name): Update.
4976 (sh_sh3_dsp_register_name): Update.
4977 (sh_sh4_register_name): Update.
4978 (sh_sh64_register_name): Update.
4979 * s390-tdep.c (s390_register_name): Update.
4980 * rs6000-tdep.c (rs6000_register_name): Update.
4981 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4982 (ns32k_register_name_32382): Update.
4983 * d10v-tdep.c (d10v_ts2_register_name): Update.
4984 (d10v_ts3_register_name): Update.
4985 * xstormy16-tdep.c (xstormy16_register_name): Update.
4986 * vax-tdep.c (vax_register_name): Update.
4987 * v850-tdep.c (v850_register_name): Update.
4988 * m68hc11-tdep.c (m68hc11_register_name): Update.
4989 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4990 (am33_register_name): Update.
4991
ea1e7ef6
GS
49922002-06-17 Grace Sainsbury <graces@redhat.com>
4993
4994 * m68k-tdep.c: Reindented.
4995
9b02dd1b
AC
49962002-06-17 Andrew Cagney <ac131313@redhat.com>
4997
4998 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4999 list of predefined types.
5000
8758dec1
MK
50012002-06-16 Mark Kettenis <kettenis@gnu.org>
5002
b6197528
MK
5003 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5004 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5005 REGISTER_CONVERT_TO_RAW): Remove defines.
5006 (i386_register_virtual_type, i386_register_convertible,
5007 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5008 Remove prototypes.
5009 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5010 macros mentioned above.
5011
82b47e62
MK
5012 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5013 (i386lynx_saved_pc_after_call): Remove prototype.
5014 * i386ly-tdep.c: Include "i386-tdep.h".
5015 (i386lynx_saved_pc_after_call): Make static. Use
5016 read_memory_nobpt instead of read_memory. Use
5017 read_memory_unsigned_integer instead of read_memory_integer.
5018 (i386lynx_init_abi): New function.
5019 (i386lynx_coff_osabi_sniffer): New function.
5020 (_initialize_i386bsd_tdep): New function.
5021
8758dec1
MK
5022 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5023 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5024 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5025 (i386_fix_call_dummy): Remove prototype.
5026 * i386-tdep.c (i386_call_dummy_words): New variable.
5027 (i386_gdbarch_init): Adjust for removal of the
5028 macros mentioned above.
5029
e9e68a56
AC
50302002-06-15 Andrew Cagney <ac131313@redhat.com>
5031
5032 * command.h (add_setshow_auto_boolean_cmd): Replace
5033 add_set_auto_boolean_cmd.
5034 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5035 add_set_auto_boolean_cmd.
5036 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5037 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5038 mask-address'' command.
5039 (show_mask_address): Add cmd parameter.
5040 * remote.c (add_packet_config_cmd): Update. Change type of
5041 set_func and show_func to cmd_sfunc_ftype.
5042 (_initialize_remote): Update `set remote Z-packet'
5043 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5044 (show_remote_protocol_e_packet_cmd): Ditto.
5045 (show_remote_protocol_E_packet_cmd): Ditto.
5046 (show_remote_protocol_P_packet_cmd): Ditto.
5047 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5048 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5049 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5050 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5051 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5052 (show_remote_protocol_Z_packet_cmd): Ditto.
5053 (show_remote_protocol_binary_download_cmd): Ditto.
5054 (show_remote_cmd): Pass NULL to all of above.
5055
fc08ec52
MK
50562002-06-15 Mark Kettenis <kettenis@gnu.org>
5057
5058 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5059 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5060 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5061 POP_FRAME): Remove defines.
5062 (i386_push_arguments, i386_store_struct_return,
5063 i386_extract_return_value, i386_store_return_value,
5064 i386_extract_struct_value_address, i386_push_dummy_frame,
5065 i386_pop_frame): Renove prototypes.
5066 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5067 macros mentioned above.
5068
e707bbc2
AC
50692002-06-15 Andrew Cagney <ac131313@redhat.com>
5070
5071 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5072 add_set_boolean_cmd.
5073 (add_setshow_cmd): New function.
5074 * command.h (add_setshow_boolean_cmd): Replace
5075 add_set_boolean_cmd.
5076 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5077 and ``set rdiromatzero''.
5078 * maint.c (_initialize_maint_cmds): Update commented out code.
5079 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5080 * target.c (initialize_targets): Update `set
5081 trust-readonly-sections'.
5082 * remote.c (_initialize_remote): Update `set remotebreak'.
5083
42fdc8df
MK
50842002-06-15 Mark Kettenis <kettenis@gnu.org>
5085
93924b6b
MK
5086 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5087 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5088 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5089 fit into multi-arch framework.
5090 (i386_breakpoint_from_pc): New function.
5091 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5092 above.
5093
42fdc8df
MK
5094 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5095 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5096 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5097 (i386_frameless_function_invocation, i386_frame_num_args,
5098 i386_frame_init_saved_regs): Remove prototypes.
5099 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5100 macros mentioned above.
5101
9773a94b
AC
51022002-06-15 Andrew Cagney <ac131313@redhat.com>
5103
5104 * cli/cli-decode.c (set_cmd_cfunc): Update.
5105 (set_cmd_sfunc): Update.
5106 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5107 (set_cmd_sfunc, set_cmd_cfunc): Update.
5108 * cli/cli-decode.h: Update.
5109
6e157172
MK
51102002-06-15 Mark Kettenis <kettenis@gnu.org>
5111
5112 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5113 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5114
7f19b9a2
AC
51152002-06-15 Andrew Cagney <ac131313@redhat.com>
5116
5117 * defs.h (auto_boolean): Declare enum.
5118 * command.h (cmd_auto_boolean): Delete enum.
5119 * mips-tdep.c (mask_address_var): Update.
5120 (mips_mask_address_p): Update.
5121 (show_mask_address): Update.
5122 * remote.c (struct packet_config): Update.
5123 (update_packet_config): Update.
5124 (show_packet_config_cmd): Update.
5125 (packet_ok): Update.
5126 (add_packet_config_cmd): Update.
5127 (_initialize_remote):
5128 * command.h: Update.
5129 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5130 (do_setshow_command): Update.
5131 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5132 * cli/cli-decode.h: Update.
5133
1cf88de5
MK
51342002-06-15 Mark Kettenis <kettenis@gnu.org>
5135
22ba8cf2
MK
5136 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5137 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5138 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5139 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5140 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5141 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5142
762c5349
MK
5143 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5144 list of DJGPP COFF targets.
5145
091198bb
MK
5146 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5147 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5148 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5149 (FP0_REGNUM): Remove define.
5150 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5151 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5152 (i386_register_virtual_size): Remove protoype.
5153 * i386-tdep.c (i386_register_virtual_size): Removed.
5154 (i386_extract_return_value, i386_store_return_value): Use
5155 FP0_REGNUM instead of NUM_FREGS to determine whether the
5156 floating-point registers are available.
5157 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5158 Adjust for removal of macros mentioned above.
5159
51602002-06-15 Mark Kettenis <kettenis@gnu.org>
5161
fcc9bf01
MK
5162 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5163 comments.
5164 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5165 Remove prototypes.
5166 (supply_gregset, fill_gregset): Remove use of register keyword and
5167 remove declaration for regmap. Use I386_NUM_GREGS instead of
5168 NUM_REGS and NUM_FREGS.
5169 (FPREGSET_FSAVE_OFFSET): Remove.
5170 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5171 NUM_FREGS to determine whether the floating-point registers are
5172 available.
5173
65e78234
MK
5174 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5175 gnu_store_registers): Replace usage of NUM_GREGS with
5176 I386_NUM_GREGS.
5177
98df6387
MK
5178 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5179 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5180 usage of NUM_GREGS with I386_NUM_GREGS.
5181
099a9414
MK
5182 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5183
57976e88
MK
5184 * i386bsd-nat.c: Include "i386-tdep.h".
5185 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5186 I386_NUM_GREGS.
5187
b335f4a6
MK
5188 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5189 and associated comment. They no longer make any sense, since we
5190 don't use this file anymore on Linux.
5191
1cf88de5
MK
5192 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5193 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5194 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5195 elements in these arrays.
5196 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5197 MAX_NUM_REGS.
5198
daa66587
MK
51992002-06-15 Mark Kettenis <kettenis@gnu.org>
5200
5201 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5202 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5203
26e9b323
AC
52042002-06-14 Andrew Cagney <cagney@redhat.com>
5205
5206 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5207 EXTRACT_RETURN_VALUE.
5208 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5209 EXTRACT_STRUCT_VALUE_ADDRESS.
5210 * gdbarch.h, gdbarch.c: Regenerate.
5211
5212 * values.c (value_being_returned): Handle
5213 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5214 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5215
5216 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5217 * arm-tdep.c (arm_gdbarch_init): Update.
5218 * avr-tdep.c (avr_gdbarch_init): Update.
5219 * cris-tdep.c (cris_gdbarch_init): Update.
5220 * d10v-tdep.c (d10v_gdbarch_init): Update.
5221 * ia64-tdep.c (ia64_gdbarch_init): Update.
5222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5223 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5224 * s390-tdep.c (s390_gdbarch_init): Update.
5225 * sh-tdep.c (sh_gdbarch_init): Update.
5226 * s390-tdep.c (s390_gdbarch_init): Update.
5227 * sparc-tdep.c (sparc_gdbarch_init): Update.
5228 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5229 * v850-tdep.c (v850_gdbarch_init): Update.
5230 * vax-tdep.c (vax_gdbarch_init): Update.
5231 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5233
5234 * config/arc/tm-arc.h: Update.
5235 * config/d30v/tm-d30v.h: Update.
5236 * config/fr30/tm-fr30.h: Update.
5237 * config/h8300/tm-h8300.h: Update.
5238 * config/h8500/tm-h8500.h: Update.
5239 * config/i386/tm-i386.h: Update.
5240 * config/i386/tm-ptx.h: Update.
5241 * config/i386/tm-symmetry.h: Update.
5242 * config/i960/tm-i960.h: Update.
5243 * config/m32r/tm-m32r.h: Update.
5244 * config/m68k/tm-delta68.h: Update.
5245 * config/m68k/tm-linux.h: Update.
5246 * config/m68k/tm-m68k.h: Update.
5247 * config/m88k/tm-m88k.h: Update.
5248 * config/mcore/tm-mcore.h: Update.
5249 * config/mips/tm-mips.h: Update.
5250 * config/mn10200/tm-mn10200.h: Update.
5251 * config/pa/tm-hppa.h: Update.
5252 * config/pa/tm-hppa64.h: Update.
5253 * config/sparc/tm-sp64.h: Update.
5254 * config/sparc/tm-sparc.h: Update.
5255 * config/sparc/tm-sparclet.h: Update.
5256 * config/z8k/tm-z8k.h: Update.
5257
5179e78f
AC
52582002-06-14 Andrew Cagney <cagney@redhat.com>
5259
5260 * Makefile.in (i386_linux_tdep_h): Define.
5261 (i386_tdep_h, i387_tdep_h): Define.
5262 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5263 $(i386_tdep_h) and $(i387_tdep_h).
5264 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5265
8201327c
MK
52662002-06-14 Mark Kettenis <kettenis@gnu.org>
5267
edf393ac
MK
5268 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5269 Already covered by the default.
5270
896fb97d
MK
5271 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5272 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5273 (i386_gdbarch_init): Initialize long_double_format and long_double
5274 bit.
5275
8201327c
MK
5276 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5277 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5278 Move these to ...
5279 * config/i386/i386sol2.mh: ... here.
5280 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5281 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5282 (SIGCONTEXT_PC_OFFSET): Remove define.
5283 (IN_SIGTRAMP): Remove define.
5284 * i386-sol2-tdep.c: New file.
5285
5286 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5287 * config/i386/tm-i386nw.h: Removed.
5288
5289 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5290 USE_STRUCT_CONVENTION): Remove defines.
5291 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5292 (get_longjmp_target): Remove prototype.
5293 (IN_SIGTRAMP): Remove define.
5294 (i386bsd_in_sigtramp): Remove prototype.
5295 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5296 function. Update comment accordingly
5297 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5298 (FRAME_SAVED_PC): Remove define.
5299 (i386bsd_frame_saved_pc): Remove prototype.
5300 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5301 GET_LONGJMP_TARGET): Remove defines.
5302 (get_longjmp_target): Remove prototype.
5303 (IN_SIGTRAMP): Remove define.
5304 (i386bsd_in_sigtramp): Remove prototype.
5305 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5306 function. Update comment accordingly
5307 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5308 (FRAME_SAVED_PC): Remove define.
5309 (i386bsd_frame_saved_pc): Remove prototype.
5310 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5311 Remove prototype.
5312 (USE_STRUCT_CONVENTION): Remove prototype.
5313 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5314 declaration.
5315 (_initialize_i386bsd_nat): Revise logic to determine some
5316 constants at compile time when compiling a native GDB. Warn if
5317 things don't match up with what we expect.
5318 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5319 Remove variables.
5320 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5321 to use date stored in `struct gdbarch_tdep'.
5322 (i386bsd_sigcontext_offset): Remove varaible.
5323 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5324 stored in `struct gdbarch_tdep'.
5325 (i386bsd_frame_saved_pc): Make static.
5326 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5327 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5328 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5329 i386fbsd4_sc_pc_offset): New variables.
5330 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5331 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5332 functions.
5333 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5334 functions.
5335 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5336 Modify the value of i386fbsd_sigtramp_start and
5337 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5338 i386fbsd_sigtramp_end.
5339 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5340 function.
5341
5342 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5343 define to i386-linux-tdep.h.
5344 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5345 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5346 defines.
5347 (i386_linux_register_name, i386_linux_register_byte,
5348 i386_linux_register_raw_size): Remove prototypes.
5349 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5350 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5351 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5352 TARGET_WRITE_PC): Remove defines.
5353 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5354 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5355 i386_linux_write_pc): Remove prototypes.
5356 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5357 (get_longjmp_target): Remove prototype.
5358 * i386-linux-tdep.h: New file.
5359 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5360 * i386-linux-tdep.c: Include "i386-tdep.h" and
5361 "i386-linux-tdep.h".
5362 (i386_linux_register_name, i386_linux_register_byte,
5363 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5364 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5365 Make static.
5366 (i386_linux_init_abi): New function.
5367 (_initialize_i386_linux_tdep): New function.
5368
5369 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5370 (i386_saved_pc_after_call): Remove prototype.
5371 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5372 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5373 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5374 (i386_register_name, i386_stab_reg_to_regnum,
5375 i386_dwarf_reg_to_regnum): Remove prototypes.
5376 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5377 SIZEOF_SSE_REGS): Remove defines.
5378 (REGISTER_BYTES): Remove define.
5379 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5380 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5381 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5382 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5383 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5384 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5385 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5386 (get_longjmp_target): Remove prototype.
5387 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5388 (sigtramp_saved_pc): Remove define.
5389 (i386v4_sigtramp_saved_pc): Remove prototype.
5390 * config/i386/tm-go32.h (FRAME_CHAIN,
5391 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5392 (i386go32_frame_saved_pc): Remove prototype.
5393 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5394 (get_longjmp_target): Remove prototype.
5395 * i386-tdep.h: Include "osabi.h".
5396 (enum i386_abi): Removed.
5397 (enum struct_return): New enum.
5398 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5399 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5400 sc_pc_offset members.
5401 (i386_gdbarch_register_os_abi): Remove prototype.
5402 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5403 I386_SSE_NUM_REGS): New defines.
5404 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5405 I386_SSE_SIZEOF_REGS): New defines.
5406 (i386_register_name, i386_register_byte, i386_register_raw_size):
5407 New prototypes.
5408 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5409 (i386bsd_sigtramp_saved_pc): New prototype.
5410 * i386-tdep.c: Don't include "elf-bfd.h".
5411 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5412 i386_frame_chain, i386_saved_pc_after_call): Make static.
5413 (i386_frame_saved_pc): Rewrite to call architecture dependent
5414 function to deal with signal handlers. Make static.
5415 (i386go32_frame_saved_pc): Removed.
5416 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5417 Removed.
5418 (i386_get_longjmp_target): New function.
5419 (default_struct_convention, pcc_struct_convention,
5420 reg_struct_convention, valid_conventions, struct_convention): New
5421 variables.
5422 (i386_use_struct_convention): New function.
5423 (i386v4_sigtramp_saved_pc): Renamed to
5424 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5425 (i386_pc_in_sigtramp): New function.
5426 (i386_abi_names): Removed.
5427 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5428 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5429 Removed.
5430 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5431 i386_gdbarch_register_os_abi): Removed.
5432 (struct i386_abi_handler): Removed.
5433 (i386_abi_handler_list): Removed.
5434 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5435 functions.
5436 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5437 i386_nw_init_abi): New functions.
5438 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5439 Use set_gdbarch_xxx() calls instead of relying on macros for a
5440 number of calls.
5441 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5442 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5443 Register the various architecture variants defined in this file.
5444
ad2f7632
DJ
54452002-06-14 Daniel Jacobowitz <drow@mvista.com>
5446
5447 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5448 (struct main_type): Remove arg_types member. Update comments for
5449 struct field.
5450 (TYPE_ARG_TYPES): Remove.
5451 (TYPE_FN_FIELD_ARGS): Update.
5452 (smash_to_method_type): Update prototype.
5453
5454 * c-typeprint.c (cp_type_print_method_args): Take method type
5455 instead of argument list. Use new argument layout. Simplify.
5456 (c_type_print_args): Use new argument layout. Simplify.
5457 (c_type_print_base): Update call to cp_type_print_method_args.
5458 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5459 argument; use die->type instead. Update call to
5460 smash_to_method_type.
5461 (read_structure_scope): Update call to dwarf2_add_member_fn.
5462 * gdbtypes.c (allocate_stub_method): Update comment.
5463 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5464 Use new argument layout.
5465 (check_stub_method): Use new argument layout. Don't count
5466 void as an argument.
5467 (print_arg_types): Update comments. Use new argument layout.
5468 (recursive_dump_type): Don't print arg_types member.
5469 * hpread.c (hpread_read_struct_type): Use new argument layout.
5470 (fixup_class_method_type): Likewise.
5471 (hpread_type_lookup): Likewise.
5472 * stabsread.c (read_type): Update calls to read_args and
5473 smash_to_method_type.
5474 (read_args): Use new argument layout. Simplify.
5475 * valops.c (typecmp): Use new argument layout. Update parameters
5476 and comments. Simplify.
5477 (hand_function_call): Use new argument layout.
5478 (search_struct_method): Update call to typecmp.
5479 (find_overload_match): Use new argument layout.
5480
6da02953
DJ
54812002-06-13 Daniel Jacobowitz <drow@mvista.com>
5482
5483 * NEWS: Mention multithreaded debug support for gdbserver.
5484
519b2366
DJ
54852002-06-13 Daniel Jacobowitz <drow@mvista.com>
5486
5487 * MAINTAINERS: Mention NEWS.
5488
6c0d6680
DJ
54892002-06-13 Daniel Jacobowitz <drow@mvista.com>
5490
5491 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5492 (struct mips_objfile_private, compare_pdr_entries): New.
5493 (non_heuristic_proc_desc): Read the ".pdr" section if it
5494 is present.
5495
6529d2dd
AC
54962002-06-12 Andrew Cagney <ac131313@redhat.com>
5497
5498 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5499 (arm_debug): New static variable.
5500 (_initialize_arm_tdep): Add ``set debug arm'' command.
5501
26216b98
AC
55022002-06-12 Andrew Cagney <ac131313@redhat.com>
5503
5504 * Makefile.in (sim_arm_h): Define.
5505 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5506 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5507 (arm_register_sim_regno): New function, map an internal REGNUM
5508 onto a simulator register number.
5509 (arm_gdbarch_init): Set register_sim_regno.
5510
814b3ba0
AH
55112002-06-09 Aldy Hernandez <aldyh@redhat.com>
5512
5513 * MAINTAINERS: Add self.
5514
475b0867
JB
55152002-06-11 Jim Blandy <jimb@redhat.com>
5516
919d772c
JB
5517 * source.c (source_info): Mention whether the symtab has
5518 information about preprocessor macros.
5519
475b0867
JB
5520 Call the command `info macro', not `show macro'.
5521 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5522 Fix error message.
5523 (_initialize_macrocmd): Register `info_macro_command' in
5524 `infolist', not `showlist'.
5525
9e364162
DJ
55262002-06-11 Daniel Jacobowitz <drow@mvista.com>
5527
5528 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5529 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5530 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5531 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5532 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5533 unconditionally.
5534 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5535 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5536 (_initialize_mips_tdep): Remove dead code.
5537 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5538 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5539 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5540 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5541 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5542 MIPS_LAST_FP_ARG_REGNUM): Remove.
5543
23aa4c72
ML
55442002-06-11 Michal Ludvig <mludvig@suse.cz>
5545
5546 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5547 (unwind_tmp_obstack_free, parse_frame_info)
5548 (update_context, cfi_read_fp, cfi_write_fp)
5549 (cfi_frame_chain, cfi_init_extra_frame_info)
5550 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5551 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5552
70eb15a4
CV
55532002-06-11 Corinna Vinschen <vinschen@redhat.com>
5554
5555 * v850-tdep.c (v850_type_is_scalar): New function.
5556 (v850_use_struct_convention): Match current gcc implementation
5557 as close as possible.
5558 (v850_push_arguments): Fix stack_offset handling. Don't write
5559 struct_addr into register. This is done by v850_store_struct_return.
5560 (v850_extract_return_value): Care for structs.
5561 (v850_store_return_value): Ditto.
5562 (v850_store_struct_return): Actually write address.
5563
482a4d06
ML
55642002-06-11 Michal Ludvig <mludvig@suse.cz>
5565
5566 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5567 without debug information too.
5568
d855c300
AC
55692002-06-10 Andrew Cagney <ac131313@redhat.com>
5570
5571 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5572 Make multi-arch pure.
5573 * gdbarch.h, gdbarch.c: Re-generate.
5574 * arm-tdep.c (arm_print_float_info): Update.
5575 * arch-utils.h (default_print_float_info): Update.
5576 * arch-utils.c (default_print_float_info): Update.
5577 * infcmd.c (float_info): Update call.
5578
dd12a101
AC
55792002-06-10 Andrew Cagney <ac131313@redhat.com>
5580
5581 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5582 the front of the initialize list.
5583
101dcfbe
AC
55842002-06-10 Andrew Cagney <ac131313@redhat.com>
5585
5586 * infrun.c (struct inferior_status): Replace fields
5587 selected_frame_address and selected_level with field
5588 selected_frame_id.
5589 (save_inferior_status): Update. Use get_frame_id.
5590 (struct restore_selected_frame_args): Delete.
5591 (restore_selected_frame): Update. Use frame_find_by_id.
5592 (restore_inferior_status): Update.
5593
5594 * breakpoint.h (struct breakpoint): Change type of
5595 watchpoint_frame to frame_id.
5596 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5597 call to get_current_frame.
5598 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5599 get_current_frame.
5600 (watchpoint_check): Use frame_find_by_id.
5601
5602 * frame.h (record_selected_frame): Delete declaration.
5603 * stack.c (record_selected_frame): Delete function.
5604
5605 * frame.h (struct frame_id): Define.
5606 (get_frame_id): Declare.
5607 (frame_find_by_id): Declare.
5608 * frame.c (frame_find_by_id): New function.
5609 (get_frame_id): New function.
5610
304270b6
AV
56112002-06-10 Andrey Volkov <avolkov@transas.com>
5612
5613 * ser-e7kpc.c: Fix duplicated define and call of
5614 _initialize_ser_e7000pc
5615
2f2cf184
DJ
56162002-06-09 Daniel Jacobowitz <drow@mvista.com>
5617
5618 * signals/signals.c (target_signal_from_host): Fix #ifdef
5619 SIGRTMIN case.
5620 (do_target_signal_to_host): Likewise.
5621
caaa3122
DJ
56222002-06-09 Daniel Jacobowitz <drow@mvista.com>
5623
5624 * mips-tdep.c (mips_find_abi_section): New function.
5625 (mips_gdbarch_init): Call it.
5626
6ac5df3a
MK
56272002-06-09 Mark Kettenis <kettenis@gnu.org>
5628
5629 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5630 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5631 after Andrew's 2002-06-08 gdbarch change.
5632
82ea117a
MK
56332002-06-09 Mark Kettenis <kettenis@gnu.org>
5634
5635 * i386-linux-nat.c (suppy_gregset): Don't supply
5636 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5637 register cache.
5638 (fill_gregset): Don't fetch it under the same circumstances.
5639
3c25f8c7
AC
56402002-06-09 Andrew Cagney <cagney@redhat.com>
5641
5642 * Makefile.in (callback_h): Define.
5643 (remote_sim_h): Update path to remote-sim.h.
5644 (remote-rdp.o): Add $(callback_h).
5645 (remote-sim.o): Use $(callback_h).
5646 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5647 * remote-rdp.c: Include "gdb/callback.h".
5648
1029b7fa
MK
56492002-06-09 Mark Kettenis <kettenis@gnu.org>
5650
5651 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5652 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5653
616675d3
AC
56542002-06-08 Andrew Cagney <ac131313@redhat.com>
5655
a3efda28
AC
5656 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5657 * rdi-share/serpardr.c: Ditto.
5658 * rdi-share/unixcomm.c: Ditto.
5659 * rdi-share/serdrv.c: Ditto.
5660 * rdi-share/hostchan.h: Ditto.
5661 * rdi-share/hostchan.c: Ditto.
5662 * rdi-share/host.h: Ditto.
5663 * rdi-share/devsw.c: Ditto.
5664
c5f10366
AC
5665 * objfiles.h: Change type of obj_private to void pointer.
5666 * pa64solib.c: Update copyright. Don't include "assert.h", use
5667 strcmp instead of STREQ, use LONGEST, do not use PTR
5668 * somsolib.c: Ditto.
5669
616675d3
AC
5670 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5671 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5672 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5673
e4b415d9
AC
56742002-06-08 Andrew Cagney <ac131313@redhat.com>
5675
5676 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5677 (default_get_saved_register): Delete function.
5678 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5679 generic_unwind_get_saved_register.
5680 * gdbarch.h, gdbarch.c: Re-generate.
5681
ca0d0b52
AC
56822002-06-08 Andrew Cagney <ac131313@redhat.com>
5683
5684 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5685 generic_func_frame_chain_valid.
5686 * gdbarch.h, gdbarch.c: Re-generate.
5687 * blockframe.c (generic_func_frame_chain_valid): Only check
5688 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5689 passing FP to PC_IN_CALL_DUMMY.
5690 Fix PR gdb/360.
5691
76860b5f
AC
56922002-06-08 Andrew Cagney <ac131313@redhat.com>
5693
5694 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5695 (register_gdbarch_data): Initialize init_p.
5696 (gdbarch_data): Initialize data pointer using the init function.
5697 (init_gdbarch_data): Delete function.
5698 (gdbarch_update_p): Update.
5699 (initialize_non_multiarch): Update.
5700 (struct gdbarch): Add field initialized_p.
5701 * gdbarch.h, gdbarch.c: Re-generate.
5702
8dda9770
ML
57032002-06-07 Michal Ludvig <mludvig@suse.cz>
5704
5705 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5706 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5707 better do the things actually here.
5708 * x86-64-tdep.c (x86_64_register_name2nr): New.
5709 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5710 (x86_64_gdbarch_init): Respect the above change.
5711 * x86-64-tdep.h (x86_64_register_name2nr)
5712 (x86_64_register_nr2name): Add prototypes.
5713 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5714
3d79a47c
MS
57152002-06-06 Michael Snyder <msnyder@redhat.com>
5716
7bd91a28
MS
5717 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5718 Delete extra braces and re-indent.
5719 (d10v_store_return_value): Char return values
3d79a47c
MS
5720 must be shifted over by one byte in R0.
5721 (d10v_extract_return_value): Delete extra braces, re-indent.
5722
095a4c96
EZ
57232002-06-06 Elena Zannoni <ezannoni@redhat.com>
5724
5725 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5726 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5727 (d10v_integer_to_address): Rewrite.
5728 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5729 the d10v specific functions which take care of converting to the
5730 correct space.
5731
e8a77ca4
EZ
57322002-06-06 Elena Zannoni <ezannoni@redhat.com>
5733
5734 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5735 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5736
4f2e4a4f
AC
57372002-06-02 Andrew Cagney <ac131313@redhat.com>
5738
5739 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5740 includes.
5741 * config/tm-linux.h: Ditto.
5742 * config/alpha/tm-alphalinux.h: Ditto.
5743 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5744 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5745 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5746 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5747 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5748 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5749 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5750 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5751 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5752 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5753 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5754 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5755 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5756 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5757 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5758 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5759 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5760 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5761 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5762 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5763 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5764 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5765 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5766 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5767 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5768 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5769 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5770 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5771 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5772 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5773 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5774 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5775 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5776 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5777 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5778 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5779 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5780
ae2ab2ce
AS
57812002-05-04 Aidan Skinner <aidan@velvet.net>
5782
5783 * ada-exp.tab.c: New file
5784 * ada-exp.y: New file
5785 * ada-lang.c: New file
5786 * ada-lang.h: New file
5787 * ada-lex.c: New file
5788 * ada-lex.l: New file
5789 * ada-tasks.c: New file
5790 * ada-typeprint.c: New file
5791 * ada-valprint.c: New file
5792
0ddd0135
JT
57932002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5794
5795 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5796 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5797
750fbacc
JT
57982002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5799
5800 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5801 insetead of ppc-linux-tdep.o.
5802 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5803 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5804
df94e18a
AC
58052002-06-02 Andrew Cagney <ac131313@redhat.com>
5806
5807 2002-05-07 Christian Groessler <chris@groessler.org>
5808 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5809 bit register contents for little endian hosts.
5810
1a38ab75
AC
58112002-06-01 Andrew Cagney <ac131313@redhat.com>
5812
5813 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5814 any maintainer.
5815
8b1632ac
AC
58162002-06-01 Andrew Cagney <ac131313@redhat.com>
5817
5818 * gdbarch.h: Regenerate.
5819
627054c8
AC
58202002-06-01 Andrew Cagney <ac131313@redhat.com>
5821
5822 * MAINTAINERS: Add everyone to write-after-approval list.
5823
4f460812
AC
58242002-06-01 Andrew Cagney <ac131313@redhat.com>
5825
5826 * stack.c (frame_info): Use frame_register_unwind instead of
5827 saved_regs. Mention when the SP is on the stack or in a register.
5828
5829 * frame.h (frame_register_unwind_ftype): Define. Document.
5830 (struct frame_info): Add field register_unwind and
5831 register_unwind_cache.
5832 (frame_register_unwind): Declare.
5833 (generic_unwind_get_saved_register): Declare.
5834
5835 * frame.c (frame_register_unwind): New function.
5836 (generic_unwind_get_saved_register): New function.
5837
5838 * blockframe.c (generic_call_dummy_register_unwind): New function.
5839 (frame_saved_regs_register_unwind): New function.
5840 (set_unwind_by_pc): New function.
5841 (create_new_frame): New function.
5842 (get_prev_frame): New function.
5843
de888f76
AC
58442002-05-30 Andrew Cagney <ac131313@redhat.com>
5845
5846 * a29k-share/: Delete directory.
5847 * remote-vx29k.c: Delete file.
5848
2f2c3626
JT
58492002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5850
5851 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5852 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5853
9ce5c36a
JT
58542002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5855
5856 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5857 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5858 (sparc64nbsd-nat.o)
5859 (sparcnbsd-nat.o)
5860 (sparcnbsd-tdep.o): New dependency lists.
5861 * NEWS: Note new UltraSPARC NetBSD native configuration.
5862 * configure.host (sparc64-*-netbsd*): New host.
5863 * configure.tgt (sparc-*-netbsdelf*)
5864 (sparc-*-netbsd*): Set gdb_target to nbsd.
5865 (sparc64-*-netbsd*): New target.
5866 * sparc64nbsd-nat.c: New file.
5867 * sparcnbsd-nat.c: New file.
5868 * sparcnbsd-tdep.c: New file.
5869 * sparcnbsd-tdep.h: New file.
5870 * config/sparc/nbsd.mt: New file.
5871 * config/sparc/nbsd64.mh: New file.
5872 * config/sparc/nbsd64.mt: New file.
5873 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5874 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5875 (HOST_IPC): Remove.
5876 * config/sparc/nbsdaout.mt: Remove.
5877 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5878 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5879 (HOST_IPC): Remove.
5880 * config/sparc/nbsdelf.mt: Remove.
5881 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5882 sparc-nat.c compatiblity defines.
5883 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5884 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5885 * config/sparc/tm-nbsd64.h: New file.
5886 * config/sparc/tm-nbsdaout.h: Remove.
5887 * config/sparc/xm-nbsd.h: Remove.
5888
ef3cf062
JT
58892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5890
5891 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5892 * sparc-tdep.c: Include osabi.h.
5893 (gdbarch_tdep): Add osabi member.
5894 (_initialize_sparc_tdep): Use gdbarch_register.
5895 (sparc_gdbarch_init): Use generic OS ABI framework.
5896 (sparc_dump_tdep): New function.
5897
ee8ff470
KB
58982002-05-30 Kevin Buettner <kevinb@redhat.com>
5899
5900 * corefile.c (do_captured_read_memory_integer): Return non-zero
5901 result.
5902 (safe_read_memory_integer): Copy result of memory read when
5903 status is non-zero. Also, add comments.
5904
7b112f9c
JT
59052002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5906
5907 * Makefile.in (ppc_tdep_h): Define.
5908 (ppc-linux-nat.o)
5909 (ppc-linux-tdep.o)
5910 (rs6000-tdep.o): Use $(ppc_tdep_h).
5911 (ppc-sysv-tdep.o)
5912 (ppcnbsd-nat.o)
5913 (ppcnbsd-tdep.o): New dependency lists.
5914 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5915 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5916 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5917 (ppc_sysv_abi_broken_use_struct_convention)
5918 (ppc_sysv_abi_use_struct_convention)
5919 (ppc_sysv_abi_push_arguments): Move to...
5920 * ppc-sysv-tdep.c: ...here.
5921 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5922 * rs6000-tdep.c (process_note_abi_tag_sections)
5923 (get_elfosabi): Remove.
5924 (rs6000_gdbarch_init): Use generic OS ABI framework.
5925 (rs6000_dump_tdep): New function.
5926 (_initialize_rs6000_tdep): Use gdbarch_register.
5927 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5928 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5929 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5930 of ppc-linux-tdep.o.
5931 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5932 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5933 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5934 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5935 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5936 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5937
480dd42a
JB
59382002-05-29 Jim Blandy <jimb@redhat.com>
5939
5940 * macroscope.c (default_macro_scope): Put `void' in empty argument
5941 list.
5942
4182591f
AC
59432002-05-29 Andrew Cagney <ac131313@redhat.com>
5944
5945 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5946 * arch-utils.c: Include "sim-regno.h".
5947 * gdbarch.sh: Don't include "sim-regno.h".
5948 * gdbarch.h, gdbarch.c: Regenerate.
5949 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5950 here.
5951 * arch-utils.h (legacy_register_sim_regno): To here.
5952 * remote-sim.c (legacy_register_sim_regno): Move function from
5953 here.
5954 * arch-utils.c (legacy_register_sim_regno): To here.
5955
8238d0bf
AC
59562002-05-28 Andrew Cagney <ac131313@redhat.com>
5957
5958 * sim-regno.h: New file.
5959 * Makefile.in (sim_regno_h): Define.
5960 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5961 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5962 (legacy_register_sim_regno): New function.
5963 (one2one_register_sim_regno): New function.
5964 (gdbsim_fetch_register): Rewrite.
5965 (gdbsim_store_register): Only store a register when
5966 REGISTER_SIM_REGNO is valid.
5967 * d10v-tdep.c: Include "sim-regno.h".
5968 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5969 (d10v_ts3_register_sim_regno): Ditto.
5970 * gdbarch.sh: Include "sim-regno.h".
5971 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5972 * gdbarch.h, gdbarch.c: Regenerate.
5973 * arch-utils.h (default_register_sim_regno): Delete declaration.
5974 * arch-utils.c (default_register_sim_regno): Delete function.
5975
485721b1
JT
59762002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5977
5978 * ppcnbsd-nat.c: Rewrite.
5979 * ppcnbsd-tdep.c: New file.
5980 * ppcnbsd-tdep.h: New file.
5981 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5982 solib.o, and solib-svr4.o.
5983 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5984 nbsd-tdep.o, and corelow.o.
5985
697f244d
AC
59862002-05-28 Andrew Cagney <ac131313@redhat.com>
5987
5988 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5989 `tr' and `sed'. Mention that `broken' targets are not expected to
5990 build.
5991
f08caad1 59922002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5993
5994 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5995 Let PC point right after the prologue before looking up symbols.
5996
3139facc
MH
59972002-05-27 Martin M. Hunt <hunt@redhat.com>
5998
5999 * i386-tdep.c (i386_register_virtual_type): Return
6000 builtin_type_vec128i for SSE registers.
6001
6002 * gdbtypes.h (builtin_type_vec128i): Declare.
6003
6004 * gdbtypes.c (build_builtin_type_vec128i): New function.
6005 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6006 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6007 (build_gdbtypes): Initialize new builtin vector types.
6008 (_initialize_gdbtypes): Register new vector types with gdbarch.
6009
6e3ba3b8
JT
60102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6011
6012 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6013 since it has been multi-arch'd.
6014 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6015 Move Alpha and VAX multi-arch news entries to same section
6016 as other multi-arch news.
6017
93d5585d
JT
60182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6019
6020 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6021 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6022 static. Rename some register numbers to put them in ns32k-tdep
6023 private namespace.
6024 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6025 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6026 functions.
6027 (_initialize_ns32k_tdep): Use gdbarch_register.
6028 * ns32k-tdep.h: New file.
6029 * ns32knbsd-tdep.c: New file.
6030 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6031 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6032 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6033 REGISTER_BYTES, REGISTER_BYTE): Remove.
6034 * config/ns32k/tm-ns32k.h: New file.
6035 * config/ns32k/tm-umax.h: Remove.
6036
efb2c70e
JT
60372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6038
6039 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6040 ns32k_store_struct_return, ns32k_extract_return_value,
6041 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6042 functions.
6043 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6044 ns32k_saved_pc_after_call.
6045 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6046 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6047 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6048 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6049 ns32k_extract_struct_value_address.
6050
7bcc927b
JT
60512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6052
6053 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6054 ns32k_fix_call_dummy): New.
6055 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6056 ns32k_call_dummy_words.
6057 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6058 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6059 CALL_DUMMY_NARGS): Remove.
6060 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6061
78f9d765
JT
60622002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6063
6064 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6065 ns32k_frame_saved_pc, ns32k_frame_args_address,
6066 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6067 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6068 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6069 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6070 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6071 (BREAKPOINT): Remove..
6072 (FRAME_CHAIN): Define as ns32k_frame_chain.
6073 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6074 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6075 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6076 (FRAME_FIND_SAVED_REGS): Remove.
6077 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6078 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6079 (POP_FRAME): Define as ns32k_pop_frame.
6080
f2c762e0
JT
60812002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6082
6083 * ns32k-tdep.c (ns32k_register_byte_32082,
6084 ns32k_register_byte_32382, ns32k_register_raw_size,
6085 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6086 functions.
6087 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6088 ns32k_register_byte_32382.
6089 * config/ns32k/tm-umax.h: Update copyright years.
6090 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6091 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6092 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6093 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6094 (ns32k_get_enter_addr): Fix prototype.
6095
af137673
JT
60962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6097
6098 * ns32k-tdep.c: Update copyright years.
6099 (ns32k_register_name_32082): New function.
6100 (ns32k_register_name_32382): Ditto.
6101 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6102 (REGISTER_NAME): Define as ns32k_register_name_32382.
6103 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6104 (REGISTER_NAME): Define as ns32k_register_name_32082.
6105
a8bc7b56
JB
61062002-05-24 Jim Blandy <jimb@redhat.com>
6107
6108 * dwarf2read.c (free_line_header): Use xfree, not free.
6109
83a45910
JT
61102002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6111
6112 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6113 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6114
0db71247
AC
61152002-05-23 Andrew Cagney <ac131313@redhat.com>
6116
6117 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6118
b9e5e4dd
AC
61192002-05-23 Andrew Cagney <ac131313@redhat.com>
6120
6121 From Ross Alexander at NEC Europe:
6122 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6123
de530e84
MS
61242002-05-23 Michael Snyder <msnyder@redhat.com>
6125
6126 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6127 for input, rather than parse_and_eval_address.
6128
b91b96f4
AC
61292002-05-23 Andrew Cagney <ac131313@redhat.com>
6130
6131 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6132 * Makefile.in (sim_d10v_h): Update definition.
6133
8b279e7a
AC
61342002-05-24 Andrew Cagney <cagney@redhat.com>
6135
6136 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6137 change `2002-05-22 Michael Snyder' below.
6138 (d10v_push_arguments): Ditto.
6139 (d10v_extract_return_value): Ditto.
6140
0a3d0425
JB
61412002-05-23 Jim Blandy <jimb@redhat.com>
6142
6143 * macrotab.c (check_for_redefinition): Don't complain if the new
6144 definition is the same as the previous one. Take more arguments
6145 to allow the comparison.
6146 (macro_define_object, macro_define_function): Pass more arguments
6147 to check_for_redefinition.
6148
78eac43e
MS
61492002-05-22 Michael Snyder <msnyder@redhat.com>
6150
6151 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6152 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6153 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6154 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6155 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6156 Add a temp variable to save a call (and a memory read).
6157 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6158 if possible (so that PC_IN_CALL_DUMMY will work).
6159
9bc1edb8
CV
61602002-05-22 Corinna Vinschen <vinschen@redhat.com>
6161
6162 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6163
005ef3d2
ML
61642002-05-22 Michal Ludvig <mludvig@suse.cz>
6165
6166 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6167 fde->cie_ptr.
6168 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6169 (dwarf2_build_frame_info): Add offset to fde->initial_location
6170 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6171 (execute_stack_op): Change type of 'result' from ULONGEST to
6172 CORE_ADDR.
005ef3d2 6173
fcf4f891
JT
61742002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6175
6176 * config/alpha/tm-nbsd.h: Include solib.h.
6177
cfef91e4
JT
61782002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6179
6180 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6181 assumptions about the host's byte order.
6182
9964235a
JT
61832002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6184
6185 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6186 to dependency list.
6187 * alphanbsd-tdep.c: Include solib-svr4.h.
6188 * shnbsd-tdep.c: Ditto.
6189
9eeef8ef
JT
61902002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6191
6192 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6193 nbsd-tdep.h to dependency list.
6194 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6195 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6196 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6197 nbsdaout.mh and nbsdelf.mh consistently.
6198 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6199 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6200 nbsdaout.mt and nbsdelf.mh consistently.
6201 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6202 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6203 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6204 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6205 a.out shared library stuff from here...
6206 * config/nm-nbsdaout.h: ...to here.
6207 * config/tm-nbsd.h: Remove.
6208 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6209 * config/arm/nbsd.mh: Remove.
6210 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6211 nbsd-tdep.o.
6212 * config/arm/nbsdaout.mh: New file.
6213 * config/arm/nbsdelf.mh: New file.
6214 * config/arm/nm-nbsdaout.h: New file.
6215 * config/i386/nbsd.mh: Remove.
6216 * config/i386/nbsd.mt: Remove.
6217 * config/i386/nbsdaout.mh: New file.
6218 * config/i386/nbsdaout.mt: New file.
6219 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6220 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6221 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6222 i386_register_u_addr): Remove.
6223 * config/i386/nm-nbsdaout.h: New file.
6224 * config/i386/nm-nbsdelf.h: Remove.
6225 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6226 (USE_STRUCT_CONVENTION): Remove.
6227 * config/i386/tm-nbsdaout.h: New file.
6228 * config/i386/tm-nbsdelf.h: Remove.
6229 * config/m68k/nbsd.mh: Remove.
6230 * config/m68k/nbsd.mt: Remove.
6231 * config/m68k/nbsdaout.mh: New file.
6232 * config/m68k/nbsdaout.mt: New file.
6233 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6234 * config/m68k/nm-nbsdaout.h: New file.
6235 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6236 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6237 * config/ns32k/nbsd.mh: Remove.
6238 * config/ns32k/nbsd.mt: Remove.
6239 * config/ns32k/nbsdaout.mh: New file.
6240 * config/ns32k/nbsdaout.mt: New file.
6241 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6242 * config/ns32k/nm-nbsdaout.h: New file.
6243 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6244 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6245 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6246 (SVR4_SHARED_LIBS): Remove.
6247 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6248 * config/sparc/nbsd.mh: Remove.
6249 * config/sparc/nbsd.mt: Remove.
6250 * config/sparc/nbsdaout.mh: New file.
6251 * config/sparc/nbsdaout.mt: New file.
6252 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6253 * config/sparc/nbsdelf.mt: New file.
6254 * config/sparc/nm-nbsdaout.h: New file.
6255 * config/sparc/nm-nbsdelf.h: Remove.
6256 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6257 * config/sparc/tm-nbsdaout.h: New file.
6258
257ce470
JT
62592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6260
6261 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6262 mipsnbsd-tdep.c
6263 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6264
76a6d5fe
JT
62652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6266
6267 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6268 shnbsd-nat.c.
6269 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6270
45888261
JT
62712002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6272
6273 * NEWS: Note new MIPS NetBSD native configuration.
6274 * configure.host (mips*-*-netbsd*): New host.
6275 * configure.tgt (mips*-*-netbsd*): New target.
6276 * mipsnbsd-nat.c: New file.
6277 * mipsnbsd-tdep.c: New file.
6278 * mipsnbsd-tdep.h: New file.
6279 * config/mips/nbsd.mh: New file.
6280 * config/mips/nbsd.mt: New file.
6281 * config/mips/nm-nbsd.h: New file.
6282 * config/mips/tm-nbsd.h: New file.
6283
70f80edf
JT
62842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6285
6286 * Makefile.in (SFILES): Add osabi.c.
6287 (COMMON_OBS): Add osabi.o.
6288 (osabi.o): New dependency list.
6289 * osabi.c: New file.
6290 * osabi.h: New file.
6291 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6292
6293 * Makefile.in (alpha_tdep_h): Define and use instead of
6294 alpha-tdep.h.
6295 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6296 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6297 Remove.
6298 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6299 * alpha-tdep.h: Include osabi.h.
6300 (alpha_abi): Remove.
6301 (gdbarch_tdep): Use generic OS ABI framework.
6302 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6303 gdbarch_register_osabi.
6304 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6305 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6306 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6307
6308 * Makefile.in (sh_tdep_h): Add osabi.h.
6309 * sh-tdep.h (sh_osabi): Remove.
6310 (gdbarch_tdep): Use generic OS ABI framework.
6311 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6312 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6313 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6314 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6315
6316 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6317 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6318 gdbarch_register_osabi.
6319 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6320 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6321 (get_elfosabi): Rename to...
6322 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6323 ABI framework support routines.
6324 (arm_gdbarch_init): Use generic OS ABI framework.
6325 (arm_dump_tdep): Likewise.
6326 (_initialize_arm_tdep): Likewise.
6327 * arm-tdep.h: Include osabi.h.
6328 (arm_abi): Remove.
6329 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6330 osabi member.
6331 (arm_gdbarch_register_os_abi): Remove prototype.
6332 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6333 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6334
6335 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6336 * mips-tdep.c: Include osabi.h.
6337 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6338 OS ABI framework.
6339
d194345b
KH
63402002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6341
6342 * h8300-tdep.c: Fix formatting.
6343
70c6b0d1
EZ
63442002-05-20 Elena Zannoni <ezannoni@redhat.com>
6345
6346 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6347 printing vector registers.
6348
165b8e33
AC
63492002-05-19 Andrew Cagney <ac131313@redhat.com>
6350
6351 From Fernando Nasser:
6352 * remote.c (remote_async_open_1): Re-throw the exception when the
6353 connection fails.
6354 (remote_cisco_open): Ditto.
6355 (remote_open_1): Ditto.
6356
36918e70
AC
63572002-05-19 Andrew Cagney <ac131313@redhat.com>
6358
6359 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6360 (remote_start_remote): Add uiout parameter. Pass through to
6361 remote_start_remote_dummy.
6362 (remote_open_1): Use catch_exception instead of catch_errors.
6363 (remote_async_open_1): Ditto.
6364 (remote_cisco_open): Ditto.
6365
ae44c0c4
AC
63662002-05-19 Andrew Cagney <ac131313@redhat.com>
6367
6368 * remote.c (remote_start_remote): Replace PTR with void pointer.
6369 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6370 static.
6371
8efe637d
AC
63722002-05-18 Andrew Cagney <ac131313@redhat.com>
6373
6374 * gdb_indent.sh: Allow the script to be run in the sim directory.
6375
2f1b5984
MK
63762002-05-18 Mark Kettenis <kettenis@gnu.org>
6377
f0f625e2
MK
6378 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6379 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6380
2f1b5984
MK
6381 * corelow.c (core_open): Only call set_gdbarch_from_file if
6382 exec_bfd is NULL.
6383
fc974602
AV
63842002-05-17 Andrey Volkov <avolkov@transas.com>
6385
6386 * h8300-tdep.c: Add support of EXR register
6387 * config/h8300/tm-h8300.h: Ditto.
6388
906709f4
AV
63892002-05-17 Andrey Volkov <avolkov@transas.com>
6390
6391 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6392
6e591d68
AV
63932002-05-17 Andrey Volkov <avolkov@transas.com>
6394
6395 * h8300-tdep.c: Change literal regnums to REGNO.
6396
84f0252a
JB
63972002-05-17 Jim Blandy <jimb@redhat.com>
6398
e0e9281e
JB
6399 * NEWS: Note addition of macro support.
6400
84f0252a
JB
6401 Expand preprocessor macros in C expressions.
6402 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6403 (scan_macro_expansion, scanning_macro_expansion,
6404 finished_macro_expansion): New function declarations.
6405 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6406 variable declarations.
6407 * parser-defs.h (expression_context_pc): New declaration.
6408 * parse.c (expression_context_pc): New variable.
6409 (parse_exp_1): Set expression_context_pc, as well as
6410 expression_context_block.
6411 * c-exp.y (yylex): If we're not already reading the result of a
6412 macro expansion, try to macro-expand the next token. When we're
6413 done scanning a macro expansion, switch back to the mainline text.
6414 Commas and `if's in a macro's expansion don't terminate the input.
6415 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6416 (macro_original_text, macro_expanded_text,
6417 expression_macro_lookup_func, expression_macro_lookup_baton): New
6418 variables.
6419 (scan_macro_expansion, scanning_macro_expansion,
6420 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6421 c_preprocess_and_parse): New functions.
6422 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6423 c_preprocess_and_parse, instead of c_parse.
6424 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6425 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6426
1c509ca8
JR
6427Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6428
6429 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6430 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6431 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6432
2250ee0c
CV
64332002-05-17 Corinna Vinschen <vinschen@redhat.com>
6434
6435 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6436
ab3b8126
JT
64372002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6438
6439 * Makefile.in (sh_tdep_h): Define and use.
6440 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6441 register enum): Move to...
6442 * * sh-tdep.h: ...here.
6443 * sh-tdep.c: Include sh-tdep.h.
6444 * sh3-rom.c: Likewise.
6445 * shnbsd-tdep.c: Likewise.
6446
ed9d4749
MS
64472002-05-16 Michael Snyder <msnyder@redhat.com>
6448
6449 * arm-tdep.c: Spelling fix in comment.
6450
2e276125
JB
64512002-05-16 Jim Blandy <jimb@redhat.com>
6452
6821892e
JB
6453 Add commands for manually expanding macros and showing their
6454 definitions.
6455 * macrocmd.c, macroscope.c, macroscope.h: New files.
6456 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6457 (macroscope_h): New variable.
6458 (HFILES_NO_SRCDIR): Add macroscope.h.
6459 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6460 (macroscope.o, macrocmd.o): New rules.
6461
2e276125
JB
6462 Teach the Dwarf 2 reader to read macro information.
6463 * dwarf2read.c: #include "macrotab.h".
6464 (dwarf_macinfo_buffer): New variable.
6465 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6466 dwarf_macinfo_size.
6467 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6468 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6469 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6470 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6471 dwarf2_macro_spaces_in_definition): New complaints.
6472 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6473 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6474 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6475 the partial symbol table.
6476 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6477 from what's recorded in the partial symbol table.
6478 (read_file_scope): If the compilation unit has a
6479 `DW_AT_macro_info' attribute, read its macro information.
6480 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6481
2f53fe6c
DJ
64822002-05-16 Daniel Jacobowitz <drow@mvista.com>
6483
6484 Fix PR gdb/546
6485 * ser-tcp.c: Don't include <netinet/udp.h>.
6486
2be99286
SC
64872002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6488
6489 * MAINTAINERS: Update my email address.
6490
c9af212b 64912002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6492
6493 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6494 include file of the same name.
6495
bf5f1a52
CV
64962002-05-16 Corinna Vinschen <vinschen@redhat.com>
6497
6498 * configure.tgt: Mark v850 as multi-arched.
6499 * config/v850/tm-v850.h: Remove file.
6500 * config/v850/v850.mt: Eliminate TM_FILE.
6501
435e042a
CV
65022002-05-16 Corinna Vinschen <vinschen@redhat.com>
6503
6504 * v850-tdep.c: Full multi-arch.
6505 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6506 Define GDB_MULTI_ARCH to 2.
6507
9819c6c8
PM
65082002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6509
6510 * p-exp.y (current_type): New static variable.
6511 Carries the type of the expression at the position that is parsed.
6512 (push_current_type, pop_current_type): Two new functions. Used
6513 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6514 (search_field): New static variable. Set to one after parsing a point
6515 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6516 (FIELDNAME): New token. After a point only a token belonging to
6517 current_type type definition is allowed.
6518 (all over token rules): reset and change current_type according
6519 to rules.
6520 (exp '[' rule): insert implicit array index field if
6521 exp is a pascal string type.
6522
3a06899a
CV
65232002-05-16 Corinna Vinschen <vinschen@redhat.com>
6524
6525 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6526 frame info. Use frame_info's saved_regs instead of matching member
6527 in extra_frame_info throughout.
6528 (v850_frame_init_saved_regs): New function.
6529 (v850_init_extra_frame_info): Move most functionality into
6530 v850_frame_init_saved_regs().
6531 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6532 (v850_frame_find_saved_regs): Remove declaration.
6533 (FRAME_FIND_SAVED_REGS): Remove definition.
6534 (v850_frame_init_saved_regs): Add declaration.
6535 (FRAME_INIT_SAVED_REGS): Add definition.
6536
6ed14b0e
CV
65372002-05-16 Corinna Vinschen <vinschen@redhat.com>
6538
6539 * v850-tdep.c: Begin multi-arch'ing v850.
6540 (v850_target_architecture_hook): Remove function.
6541 (v850_gdbarch_init): New function. Add code previously in
6542 v850_target_architecture_hook().
6543 (_initialize_v850_tdep): Don't set target_architecture_hook.
6544 Call register_gdbarch_init() instead.
6545
42725910
DJ
65462002-05-16 Daniel Jacobowitz <drow@mvista.com>
6547
6548 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6549 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6550 (fixup_class_method_type): Likewise.
6551
99d9066e
JB
65522002-05-15 Jim Blandy <jimb@redhat.com>
6553
6554 Add macro structures to GDB's symbol tables. Nobody puts anything
6555 in them yet.
6556 * symtab.h (struct symtab): New member: `macro_table'.
6557 * buildsym.h (pending_macros): New global variable.
6558 * buildsym.c: #include "macrotab.h".
6559 (buildsym_init): Initialize `pending_macros'.
6560 (end_symtab): If we found macro information while reading a CU's
6561 debugging info, do build a symtab structure for it. Make the
6562 symtab point to the macro information, and clear the
6563 `pending_macros' pointer which held it while we were reading the
6564 debug info.
6565 (really_free_pendings): Free any pending macro table.
6566 * objfiles.h (struct objfile): New member: `macro_cache'.
6567 * objfiles.c (allocate_objfile): Set allocate and free functions
6568 for the macro cache's objstack.
6569 (free_objfile): Empty the macro cache's obstack.
6570 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6571 set new allocate and free functions for it.
6572 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6573 free functions for the macro cache's objstack. (Why is this
6574 function building its own objfile?)
6575 * symmisc.c (print_objfile_statistics): Print statistics on the
6576 macro bcache.
6577 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6578
c899585b
RE
65792002-05-15 Richard Earnshaw <rearnsha@arm.com>
6580
6581 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6582 (REGISTER_U_ADDR): Delete definition.
6583 (arm_register_u_addr): Delete declaration.
6584
a6cdd8c5
RE
65852002-05-15 Richard Earnshaw <rearnsha@arm.com>
6586
6587 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6588 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6589
c97dcfc7
AC
65902002-05-14 Andrew Cagney <ac131313@redhat.com>
6591
6592 * regcache.c (register_valid): Revise comments refering to "Not
6593 available" and "unavailable".
6594 * frame.c (frame_register_read): Ditto.
6595 * findvar.c (value_of_register): Ditto.
6596
93021b7d
AC
65972002-05-15 Andrew Cagney <cagney@redhat.com>
6598
6599 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6600 (remote-sim.o): Update dependencies.
6601 (d10v-tdep.o): Specify dependencies.
6602 (sim_d10v_h): Define.
6603
a86bc61c
JB
66042002-05-14 Jim Blandy <jimb@redhat.com>
6605
6606 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6607 * macrotab.c (macro_lookup_inclusion, find_definition,
6608 new_macro_table): Same.
6609
6610 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6611 not `! strcmp ()'. This is a dubious improvement.
6612 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6613
6614 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6615 although it's not necessary, to avoid a warning.
6616
2fdde8f8
DJ
66172002-05-14 Daniel Jacobowitz <drow@mvista.com>
6618
6619 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6620 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6621 TYPE_INSTANCE_FLAGS.
6622 (struct main_type): New.
6623 (struct type): Move most members to struct main_type. Change
6624 cv_type and as_type to new type_chain member. Add instance_flags.
6625 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6626 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6627 (finish_cv_type): Remove prototype.
6628 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6629 Set TYPE_CHAIN.
6630 (alloc_type_instance): New function.
6631 (smash_type): New function.
6632 (make_pointer_type, make_reference_type, make_function_type)
6633 (smash_to_member_type, smash_to_method_type): Call smash_type.
6634 (make_qualified_type): New function.
6635 (make_type_with_address_space): Call make_qualified_type.
6636 (make_cv_type): Likewise.
6637 (finish_cv_type): Remove unnecessary function.
6638 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6639 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6640 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6641 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6642 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6643 * hpread.c (hpread_read_struct_type): Likewise.
6644 * stabsread.c (read_struct_type): Likewise.
6645
843fedf4
EZ
66462002-05-14 Elena Zannoni <ezannoni@redhat.com>
6647
6648 * configure.tgt: Add a catch all sh* target, for cases like
6649 sh[2,3,4]-elf and sh-hms.
6650
05a6c72c
KS
66512002-05-14 Keith Seitz <keiths@redhat.com>
6652
6653 * event-loop.c (create_file_handler): Don't do anything but
6654 update data when we are given a fd which we are already
6655 monitoring.
6656
5d085aaf
ML
66572002-05-14 Michal Ludvig <mludvig@suse.cz>
6658
6659 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6660 (update_context): Use __func__ in warnings.
6661
9db8d71f
DJ
66622002-05-14 Daniel Jacobowitz <drow@mvista.com>
6663
6664 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6665 and tcp_close to net_open and net_close.
6666 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6667 using UDP if requested. Don't try to disable Nagle on UDP
6668 sockets.
6669 * remote.c (remote_serial_open): New function. Warn about UDP.
6670 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6671
5dbc6baa
EZ
66722002-05-13 Elena Zannoni <ezannoni@redhat.com>
6673
6674 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6675
cc3023f7
EZ
66762002-05-13 Elena Zannoni <ezannoni@redhat.com>
6677
6678 * configure.tgt: Remove sh-hms target.
6679 * MAINTAINERS: Don't list sh-hms as a separate target.
6680
ec2bcbe7
JB
66812002-05-13 Jim Blandy <jimb@redhat.com>
6682
6683 Add first preprocessor macro-expansion files.
6684 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6685 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6686 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6687 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6688 (COMMON_OBS): Add macrotab.o, macroexp.o.
6689 (macroexp.o, macrotab.o): New rules.
6690
6d531722
AC
66912002-05-13 Andrew Cagney <ac131313@redhat.com>
6692
6693 * config/m88k/tm-m88k.h: Update copyright.
6694 (m88k_target_write_pc): Declare
6695 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6696 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6697 (SHIFT_INST_REGS): Update definition.
6698 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6699 using old definition of TARGET_WRITE_PC.
6700 * regcache.c (generic_target_write_pc): Delete code handling
6701 NNPC_REGNUM.
6702 * gdbarch.sh (NNPC_REGNUM): Delete.
6703 * gdbarch.h, gdbarch.c: Regenerate.
6704
3e3f2739
RE
67052002-05-13 Richard Earnshaw <rearnsha@arm.com>
6706
6707 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6708 builtin reg number.
6709
0004e5a2
DJ
67102002-05-13 Daniel Jacobowitz <drow@mvista.com>
6711
6712 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6713 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6714 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6715 access macros.
6716 * c-typeprint.c (cp_type_print_method_args): Likewise.
6717 (c_type_print_args): Likewise.
6718 * d10v-tdep.c (d10v_push_arguments): Likewise.
6719 (d10v_extract_return_value): Likewise.
6720 * expprint.c (print_subexp): Likewise.
6721 * gdbtypes.c (lookup_primitive_typename): Likewise.
6722 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6723 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6724 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6725 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6726 (TYPE_VECTOR): Likewise.
6727 * hpread.c (hpread_read_struct_type)
6728 (fix_static_member_physnames, fixup_class_method_type)
6729 (hpread_type_lookup): Likewise.
6730 * mdebugread.c (parse_symbol, parse_type): Likewise.
6731 * p-lang.c (is_pascal_string_type): Likewise.
6732 * valops.c (hand_function_call): Likewise.
6733 * x86-64-tdep.c (classify_argument): Likewise.
6734
6735 * hpread.c (hpread_read_function_type)
6736 (hpread_read_doc_function_type): Call replace_type.
6737 * dstread.c (create_new_type): Delete.
6738 (decode_dst_structure, process_dst_function): Call alloc_type.
6739 Use type access macros.
6740
dff95cc7
MK
67412002-05-12 Mark Kettenis <kettenis@gnu.org>
6742
6743 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6744 the're not supported by the current architecture.
6745 (i387_fill_fxsave): Likewise.
6746
bbcd32ad
FF
67472002-05-12 Fred Fish <fnf@redhat.com>
6748
6749 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6750 sect_index_xxx members to index the first slot in section_offsets
6751 if all of the section_offsets are zero.
6752
89cf4787
MK
67532002-05-12 Mark Kettenis <kettenis@gnu.org>
6754
6755 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6756 checked in with last change.
6757
1f77ffc5
MK
67582002-05-12 Mark Kettenis <kettenis@gnu.org>
6759
6760 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6761 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6762 config.sub.
6763
89b8b4a9
DJ
67642002-05-12 Daniel Jacobowitz <drow@mvista.com>
6765
6766 * Makefile.in: Update dependencies.
6767
14a5e767
AC
67682002-05-11 Andrew Cagney <ac131313@redhat.com>
6769
6770 * language.c (local_hex_string_custom): Simplify. Do not depend
6771 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6772
6773 * memattr.c (mem_info_command): Replace calls to
6774 longest_local_hex_string and longest_local_hex_string_custom.
6775 * buildsym.c (make_blockvector): Ditto.
6776 * solib.c (info_sharedlibrary_command): Ditto.
6777 * tracepoint.c (tracepoints_info): Ditto.
6778 * symtab.c (print_msymbol_info): Ditto.
6779
6780 * language.c (local_hex_string): Delete.
6781 (local_hex_string_custom): Delete.
6782 (longest_local_hex_string): Rename to local_hex_string.
6783 (longest_local_hex_string_custom): Rename to
6784 local_hex_string_custom.
6785 * language.h (local_hex_string): Change parameter type to LONGEST.
6786 (local_hex_string_custom): Ditto.
6787 (longest_local_hex_string): Delete declaration.
6788 (longest_local_hex_string_custom): Ditto.
6789
6790 * solib.c: Update copyright.
6791 * memattr.c: Update copyright.
6792
13d01224
AC
67932002-05-11 Andrew Cagney <ac131313@redhat.com>
6794
6795 * arch-utils.h (legacy_register_to_value): Declare.
6796 (legacy_value_to_register): Declare.
6797 (legacy_convert_register_p): Declare.
6798 * arch-utils.c (legacy_register_to_value): New function.
6799 (legacy_value_to_register): New function.
6800 (legacy_convert_register_p): New function.
6801
6802 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6803 (VALUE_TO_REGISTER): Define.
6804 (CONVERT_REGISTER_P): Define.
6805 * gdbarch.h, gdbarch.c: Regenerate.
6806
6807 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6808 VALUE_TO_REGISTER.
6809 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6810 CONVERT_REGISTER_P.
6811
4a1970e4
DJ
68122005-05-11 Daniel Jacobowitz <drow@mvista.com>
6813 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6814
6815 * Makefile.in: Update dependencies for valops.c.
6816 * valops.c: Include "gdb_assert.h".
6817 (typecmp): Skip THIS parameter to methods.
6818 (find_method_list): Remove static_memfuncp argument,
6819 update callers. Check for stub methods.
6820 (find_value_oload_method_list): Don't set *static_memfuncp.
6821 (find_overload_match): Don't check for stub methods. Assert
6822 that methods are not stubbed. Handle static methods.
6823 (value_find_oload_method_list): Remove static_memfuncp argument.
6824 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6825 to the argument list for static stub methods.
6826 * value.h (value_find_oload_method_list): Update prototype.
6827
b2e75d78
AC
68282002-05-11 Andrew Cagney <ac131313@redhat.com>
6829
6830 * arch-utils.h (generic_register_size): Declare.
6831 (generic_register_raw_size, generic_register_virtual_size): Delete
6832 declarations.
6833 * arch-utils.c (generic_register_raw_size): Delete.
6834 (generic_register_size): New function.
6835 (generic_register_virtual_size): Delete.
6836
6837 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6838 default generic_register_size.
6839 * gdbarch.h, gdbarch.c: Re-generate.
6840
6841 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6842 register_virtual_size.
6843 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6844 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6845
451fbdda
AC
68462002-05-11 Andrew Cagney <ac131313@redhat.com>
6847
6848 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6849 * gdbarch.h, gdbarch.c: Regenerate.
6850 * gnu-v3-abi.c: Update copyright.
6851 (vtable_address_point_offset): Update.
6852 (gnuv3_rtti_type): Update.
6853 (gnuv3_baseclass_offset): Update.
6854 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6855 (init_fetch_link_map_offsets): Update.
6856 * remote.c (get_remote_state): Update.
6857
6d2f5cea
DJ
68582002-05-11 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * TODO: Remove value_headof/value_from_vtable_info comment.
6861 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6862 * values.c (value_headof, value_from_vtable_info): Delete.
6863 * value.h (value_from_vtable_info): Delete prototype.
6864
d2324da4
AC
68652002-05-11 Andrew Cagney <ac131313@redhat.com>
6866
6867 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6868 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6869 $(gdb_regex_h).
6870 (gdb_assert_h): Define.
6871 (gdb_wait_h): Define.
6872 (gdb_regex_h): Define.
6873
5c717440
DJ
68742002-05-11 Daniel Jacobowitz <drow@mvista.com>
6875
6876 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6877 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6878
6c7861b3
JT
68792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6880
6881 * nbsd-tdep.c: Fix comment.
6882
ea5bc2a6
JT
68832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6884
6885 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6886 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6887 (nbsd-tdep.o): New dependency list.
6888 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6889 nbsd-tdep.h.
6890 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6891 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6892 * nbsd-tdep.c: New file.
6893 * nbsd-tdep.h: New file.
6894 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6895 nbsd-tdep.h.
6896 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6897 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6898 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6899 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6900
b28da865
JT
69012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6902
6903 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6904 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6905 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6906 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6907 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6908 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6909
4b8ff1fa
JT
69102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6911
6912 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6913 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6914 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6915 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6916 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6917 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6918 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6919
dfe6eb1f
JT
69202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6921
6922 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6923 fetch_elfcore_registers to...
6924 * i386nbsd-tdep.c: ...here.
6925 (i386nbsd_use_struct_convention): Rename to...
6926 (i386nbsd_aout_use_struct_convention): ...this.
6927 (i386nbsd_supply_reg): New function.
6928 (i386nbsd_fill_reg): New function.
6929 (fetch_core_registers): Use i386nbsd_supply_reg.
6930 (fetch_elfcore_registers): Likewise.
6931 (_initialize_i386nbsd_tdep): New function.
6932 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6933 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6934 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6935 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6936 (i386nbsd_aout_use_struct_convention): ...this.
6937
20cb8cda
JT
69382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6939
6940 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6941 (store_inferior_registers): Use shnbsd_fill_reg.
6942 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6943 sh_nbsd_supply_register): Collapse into...
6944 (shnbsd_supply_reg): ...this.
6945 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6946 (shnbsd_fill_reg): ...this.
6947 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6948 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6949 (fetch_core_registers): Use shnbsd_supply_reg.
6950 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6951 (sh_nbsd_core_fns): Rename to...
6952 (shnbsd_core_fns): ...this.
6953 (sh_nbsd_elfcore_fns): Rename to...
6954 (shnbsd_elfcore_fns): ...this.
6955 (sh_nbsd_init_abi): Rename to...
6956 (shnbsd_init_abi): ...this.
6957 (_initialize_sh_nbsd_tdep): Rename to...
6958 (_initialize_shnbsd_tdep): ...this.
6959 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6960 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6961 sh_nbsd_fill_register): Remove prototypes.
6962 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6963
e750d25e
JT
69642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6965
6966 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6967 (i387-nat.o): Delete dependency list.
6968 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6969 (x86-64-linux-nat.o): Likewise.
6970 * i387-nat.c: Delete file, moving contents to...
6971 * i387-tdep.c: ...here.
6972 * i387-nat.h: Rename...
6973 * i387-tdep.h: ...to this.
6974 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6975 * i386-linux-nat.c: Likewise.
6976 * i386bsd-nat.c: Likewise.
6977 * i386gnu-nat.c: Likewise.
6978 * i386nbsd-nat.c: Likewise.
6979 * i386v4-nat.c: Likewise.
6980 * x86-64-linux-nat.c: Likewise.
6981 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6982 * config/i386/go32.mh (NATDEPFILES): Likewise.
6983 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6984 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6985 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6986 * config/i386/linux.mh (NATDEPFILES): Likewise.
6987 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6988 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6989 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6990 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6991
1aee598a
JT
69922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6993
6994 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6995 (alphanbsd-nat.o): Remove dependency list.
6996 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6997 * alphanbsd-nat.c: Delete. Contents moved to...
6998 * alphanbsd-tdep.c: ...here.
6999 (_initialize_alphanbsd_tdep): Register core functions.
7000 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7001
12bcb0fe
JT
70022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7003
7004 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7005 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7006 (alphanbsd-nat.o): Likewise.
7007 (alphabsd-tdep.o): New dependency list.
7008 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7009 (fill_gregset): Use alphabsd_fill_reg.
7010 (supply_fpregset): Use alphabsd_supply_fpreg.
7011 (fill_fpregset): Use alphabsd_fill_fpreg.
7012 (fetch_inferior_registers): Use struct reg and struct fpreg
7013 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7014 and alphabsd_supply_fpreg.
7015 (store_inferior_registers): Use struct reg and struct fpreg
7016 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7017 and alphabsd_fill_fpreg.
7018 * alphabsd-tdep.c: New file.
7019 * alphabsd-tdep.h: New file.
7020 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7021 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7022 alphabsd_supply_fpreg.
7023 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7024 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7025
361d1df0
EC
70262002-05-11 Eric Christopher <echristo@redhat.com>
7027
7028 * mips-tdep.c (mips_double_register_type): Fix thinko.
7029 (mips_single_register_type): Ditto.
7030 * MAINTAINERS: Add self.
7031
92dd7cee
MK
70322002-05-11 Mark Kettenis <kettenis@gnu.org>
7033
7034 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7035 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7036 right thing on architectures with different endianness and/or
7037 integer sizes.
7038
e27da16d
JT
70392002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7040
7041 From Christian Limpach <chris@Pin.LU>
7042 * configure.in: Change sed expression which comments out
7043 NATDEPFILES to also comment out continuation lines.
7044 * configure: Regenerate.
7045
ddde02bd
EZ
70462002-05-10 Elena Zannoni <ezannoni@redhat.com>
7047
7048 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7049 big patch.
7050
1c922164
EZ
70512002-05-10 Elena Zannoni <ezannoni@redhat.com>
7052
7053 * sh-tdep.c: Include correct file.
7054
283150cd
EZ
70552002-05-10 Elena Zannoni <ezannoni@redhat.com>
7056
7057 New support for sh64-elf (sh5) target.
7058
7059 * configure.tgt: For sh64-elf target, default to sh-elf.
7060
7061 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7062 (struct gdbarch_tdep): Add new fields for new registers and ABI
7063 info.
361d1df0 7064
283150cd
EZ
7065 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7066 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7067 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7068 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7069 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7070 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7071 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7072 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7073 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7074 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7075 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7076 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7077 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7078 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7079 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7080 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7081 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7082 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7083 sign_extend, sh64_nofp_frame_init_saved_regs,
7084 sh64_init_extra_frame_info, sh64_get_saved_register,
7085 sh64_extract_struct_value_address, sh64_pop_frame,
7086 sh64_push_arguments, sh64_extract_return_value,
7087 sh64_store_return_value, sh64_show_media_regs,
7088 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7089 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7090 sh_sh64_register_virtual_type,
7091 sh_sh64_register_convert_to_virtual,
7092 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7093 sh64_register_read, sh64_pseudo_register_write,
7094 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7095 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7096 sh64_do_pseudo_register, sh_compact_do_registers_info,
7097 sh64_do_registers_info, sh_gdbarch_init): New functions.
7098
3117ed25
EZ
70992002-05-10 Elena Zannoni <ezannoni@redhat.com>
7100
7101 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7102
2654e6d4
DJ
71032002-05-10 Daniel Jacobowitz <drow@mvista.com>
7104
7105 * linespec.c (decode_line_1): Check for a double quote after
7106 a filename correctly.
7107
9ab3e532
JB
71082002-05-10 Jim Blandy <jimb@redhat.com>
7109
7110 Properly track the size of the current objfile's .debug_line section.
7111 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7112 (DWARF_LINE_SIZE): New macro.
7113 (dwarf2_build_psymtabs_hard): Record the line section's size in
7114 the partial symbol table.
7115 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7116 symbol table.
7117
126fa72d
PS
71182002-05-10 Petr Sorfa <petrs@caldera.com>
7119
7120 * ia64-tdep.c: Handle breakpoints on L instruction type
7121 in MLX instruction bundle by moving the breakpoint to
7122 the third slot (X instruction type) as L holds only data.
7123
1f077a3e
KB
71242002-05-10 Kevin Buettner <kevinb@redhat.com>
7125
7126 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7127 (process_one_symbol): Complain about discarding local symbols
7128 due to a misplaced N_LBRAC entry.
7129
8120c9d5 71302002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7131
7132 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7133 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7134 decrease the depth we are at, in the case of templates.
361d1df0 7135
67b2c998
DJ
71362002-05-09 Daniel Jacobowitz <drow@mvista.com>
7137
7138 * mips-tdep.c (mips_float_register_type): New function.
7139 (mips_double_register_type): New function.
7140 (mips_print_register): Use them.
7141 (do_fp_register_row): Likewise.
7142
fd326606
DJ
71432002-05-09 Daniel Jacobowitz <drow@mvista.com>
7144
6609d9af 7145 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7146 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7147 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7148
bef35864
MS
71492002-05-09 Michael Snyder <msnyder@redhat.com>
7150
7151 * remote-rdp.c (remote_rdp_can_run): Remove.
7152
c55a3f73
TT
71532002-05-09 Tom Tromey <tromey@redhat.com>
7154
7155 * jv-valprint.c (java_val_print): Handle `char' as a special case
7156 of TYPE_CODE_INT.
7157
b8d5e71d
MS
71582002-05-09 Michael Snyder <msnyder@redhat.com>
7159
7160 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7161 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7162 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7163 str r(0123),[sp,#nn].
361d1df0 7164 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7165 order-independent by placing it in a loop.
7166
e2cd42dd
MS
71672002-05-06 Michael Snyder <msnyder@redhat.com>
7168
7169 * stabsread.c (read_type): Add recognition for new attribute:
7170 "@V;" means that an array type is actually a vector.
7171 This is analogous to the vector flag that's been added to dwarf2.
7172
3ce1502b
MK
71732002-05-09 Mark Kettenis <kettenis@gnu.org>
7174
7175 * i386-tdep.h (i386_abi): New enum.
7176 (struct gdbarch_tdep): Replace os_ident member with abi.
7177 (i386_gdbarch_register_os_abi): New prototype.
7178 * i386-tdep.c (i386_abi_names): New array.
7179 (process_note_abi_tag_sections): Removed.
7180 (process_note_sections): New function.
7181 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7182 (struct i386_abi_handler): New struct.
7183 (i386_abi_handler_list): New variable.
7184 (i386_gdbarch_register_os_abi): New function.
7185 (i386_gdbarch_init): Adapt for the changes given above.
7186
084c156a
DJ
71872002-05-08 Daniel Jacobowitz <drow@mvista.com>
7188
7189 * gregset.h: Say "GNU/Linux".
7190
6599f021
EZ
71912002-05-08 Elena Zannoni <ezannoni@redhat.com>
7192
7193 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7194 (build_gdbtypes): Build builtin_type_v2_float.
7195 (_initialize_gdbtypes): Register new builtin type.
7196
40af4b0c
AC
71972002-05-08 Andrew Cagney <ac131313@redhat.com>
7198
7199 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7200 (clear_gdbarch_swap): New function.
7201 (initialize_non_multiarch): Call.
7202 (gdbarch_update_p): Before calling init(), swap out and clear the
7203 existing architecture.
7204 * gdbarch.c: Regenerate.
7205
4fe84f46
JT
72062002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7207
7208 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7209 alphanbsd-tdep.c.
7210
4015edd1
JT
72112002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7212
7213 * sh-nbsd-nat.c: Rename to...
7214 * shnbsd-nat.c: ...this.
7215 * sh-nbsd-tdep.c: Rename to...
7216 * shnbsd-tdep.c: ...this.
7217 * sh-nbsd-tdep.h: Rename to...
7218 * shnbsd-tdep.h: ...this.
7219 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7220 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7221
0e2bd219
RE
72222002-05-08 Richard Earnshaw <rearnsha@arm.com>
7223
7224 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7225 concatenation for command help messages.
7226
13a38d45
JT
72272002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7228
7229 * NEWS: Note new sh*-*-netbsdelf* configuration.
7230 * configure.host: Set gdb_host_cpu to sh for all sh*.
7231 (sh*-*-netbsdelf*): New host.
7232 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7233 (sh*-*-netbsdelf*): New target.
7234 * sh-nbsd-nat.c: New file.
7235 * sh-nbsd-tdep.c: New file.
7236 * sh-nbsd-tdep.h: New file.
7237 * config/sh/nbsd.mh: New file.
7238 * config/sh/nbsd.mt: New file.
7239 * config/sh/nm-nbsd.h: New file.
7240 * config/sh/tm-nbsd.h: New file.
7241
d658f924
JT
72422002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7243
7244 * sh-tdep.c (sh_osabi_names): Declare.
7245 (process_note_abi_tag_sections): New function.
7246 (get_elfosabi): Ditto.
7247 (sh_gdbarch_register_os_abi): Ditto.
7248 (sh_dump_tdep): Ditto.
7249 _initialize_sh_tdep): Use gdbarch_register to register
7250 sh_gdbarch_init and sh_dump_tdep.
7251 * config/sh/tm-sh.h (sh_osabi): Declare.
7252 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7253
848cfffb
AC
72542002-05-07 Andrew Cagney <ac131313@redhat.com>
7255
7256 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7257 (thumb_scan_prologue): Ditto.
7258 (arm_find_callers_reg): Ditto.
7259 (arm_frame_chain): Ditto.
7260 (arm_init_extra_frame_info): Ditto.
7261 (arm_frame_saved_pc): Ditto.
7262 (arm_pop_frame): Ditto.
7263 (arm_push_return_address): New function.
7264 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7265 call_dummy_location, call_dummy_breakpoint_offset_p,
7266 call_dummy_breakpoint_offset, call_dummy_p,
7267 call_dummy_stack_adjust_p, call_dummy_words,
7268 sizeof_call_dummy_words, call_dummy_start_offset,
7269 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7270 call_dummy_address, push_return_address and push_dummy_frame for
7271 generic dummy frames.
7272
e7d717c0
JT
72732002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7274
7275 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7276 size computation for alloca.
7277 (sh_fp_frame_init_saved_regs): Likewise.
7278
7bbcf283
RE
72792002-05-07 Richard Earnshaw <rearnsha@arm.com>
7280
7281 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7282 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7283 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7284 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7285 * remote-rdp.c (remote_rdp_fetch_register): Use
7286 ARM_MAX_REGISTER_RAW_SIZE.
7287 (remote_rdp_store_register): Likewise.
7288
4657573b
ML
72892002-05-07 Michal Ludvig <mludvig@suse.cz>
7290
361d1df0 7291 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7292 added default labels to switch {} statements.
7293 * x86-64-tdep.c: Ditto.
7294 * x86-64-linux-nat.c: Ditto.
7295
010f3b2f
JT
72962002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7297
7298 * solib.h: Protect against multiple inclusion.
7299
debd256d
JB
73002002-05-06 Jim Blandy <jimb@redhat.com>
7301
9ab3e532
JB
7302 Add first preprocessor macro-expansion files.
7303 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7304 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7305 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7306 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7307 (COMMON_OBS): Add macrotab.o, macroexp.o.
7308 (macroexp.o, macrotab.o): New rules.
7309
debd256d
JB
7310 Separate the job of reading the line number info statement program
7311 header (...expialidocious) out into its own function.
7312 * dwarf2read.c (struct line_head, struct filenames, struct
7313 directories): Replace with...
7314 (struct line_header): New structure, containing the full
7315 contents of the statement program header, including the
7316 include directory and file name tables.
7317 (read_file_scope): If we have line number info, instead of just
7318 calling dwarf_decode_lines to do all the work, call
7319 dwarf_decode_line_header first to get a `struct line_header'
7320 containing the data in the statement program header, and then
7321 pass that to dwarf_decode_lines, which will pick up where that
7322 left off. Be sure to clean up the `struct line_header' object.
7323 (dwarf_decode_line_header, free_line_header, add_include_dir,
7324 add_file_name): New functions.
7325 (dwarf_decode_lines): Move all the code to read the statement
7326 program header into dwarf_decode_line_header. Take the line
7327 header it built as the first argument, instead of the offset to
7328 the compilation unit's line number info. Use the new `struct
7329 line_header' type instead of the old structures. No need to do
7330 cleanups here now, since we don't allocate anything.
7331 (dwarf2_statement_list_fits_in_line_number_section,
7332 dwarf2_line_header_too_long): New complaints.
7333
ac3aafc7
EZ
73342002-05-06 Elena Zannoni <ezannoni@redhat.com>
7335
7336 * gdbtypes.c (init_vector_type): New function.
7337 (build_builtin_type_vec128): Simplify the representation of SIMD
7338 registers.
7339 (build_gdbtypes): Initialize new builtin vector types.
7340 (_initialize_gdbtypes): Register new vector types with gdbarch.
7341 (builtin_type_v4_float, builtin_type_v4_int32,
7342 builtin_type_v8_int16, builtin_type_v16_int8,
7343 builtin_type_v2_int32, builtin_type_v4_int16,
7344 builtin_type_v8_int8): New (renamed) SIMD types.
7345
13e49980
MK
73462002-05-06 Mark Kettenis <kettenis@gnu.org>
7347
7348 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7349 (i387_fill_fxsave): Likewise.
7350
997b20b8
AO
73512002-05-05 Alexandre Oliva <aoliva@redhat.com>
7352
7353 * alpha-tdep.c (alpha_extract_return_value): Don't use
7354 non-constant array size in prototype.
7355
535c96ce
AC
73562002-05-04 Andrew Cagney <ac131313@redhat.com>
7357
7358 From Brian Taylor <briant at model dot com>:
7359 * ui-out.c (ui_out_field_core_addr): Use the function
7360 longest_local_hex_string_custom'to format addresses > 32 bits
7361 wide.
7362
7363 * ui-out.c (ui_out_field_core_addr): Update comment.
7364
bedfa57b
AC
73652002-05-04 Andrew Cagney <ac131313@redhat.com>
7366
7367 * stack.c (select_and_print_frame): Make static. Delete the
7368 parameter `level'.
7369 (func_command): Update call.
7370 (select_frame_command): Delete code computing the frame level.
7371 * frame.h (select_and_print_frame): Delete declaration.
7372
f621c63e
AC
73732002-05-04 Andrew Cagney <ac131313@redhat.com>
7374
7375 * sparc-tdep.c (sparc_get_saved_register): Comment why
7376 get_prev_frame call is safe.
7377
0f7d239c
AC
73782002-05-04 Andrew Cagney <ac131313@redhat.com>
7379
7380 * frame.h (select_frame): Delete level parameter.
7381 * stack.c (select_frame): Update. Use frame_relative_level to
7382 obtain the frame's level.
7383 (select_and_print_frame): Update call.
7384 (select_frame_command): Ditto.
7385 (up_silently_base): Ditto.
7386 (down_silently_base): Ditto.
7387 * ocd.c (ocd_start_remote): Ditto.
7388 * remote-rdp.c (remote_rdp_open): Ditto.
7389 * remote-mips.c (mips_initialize): Ditto.
7390 (common_open): Ditto.
7391 * remote-e7000.c (e7000_start_remote): Ditto.
7392 * m3-nat.c (select_thread): Ditto.
7393 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7394 (child_get_current_exception_event): Ditto.
7395 * varobj.c (varobj_create): Ditto.
7396 (varobj_update): Ditto.
7397 (c_value_of_root): Ditto.
7398 * tracepoint.c (finish_tfind_command): Ditto.
7399 * corelow.c (core_open): Ditto.
7400 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7401 * thread.c (info_threads_command): Ditto.
7402 (switch_to_thread): Ditto.
7403 * infrun.c (normal_stop): Ditto.
7404 (restore_selected_frame): Ditto.
7405 (restore_inferior_status): Ditto.
7406 * breakpoint.c (insert_breakpoints): Ditto.
7407 (watchpoint_check): Ditto.
7408 (bpstat_stop_status): Ditto.
7409 (do_enable_breakpoint): Ditto.
7410 * blockframe.c (flush_cached_frames): Ditto.
7411 (reinit_frame_cache): Ditto.
7412
71d6c7b1
AC
74132002-05-04 Andrew Cagney <ac131313@redhat.com>
7414
7415 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7416 maintainer.
7417
cda6c68a
JB
74182002-05-04 Jim Blandy <jimb@redhat.com>
7419
7420 * gdbtypes.c (replace_type): Doc fix.
7421
5c1c87f0
AC
74222002-05-04 Andrew Cagney <ac131313@redhat.com>
7423
7424 * valprint.c (strcat_longest): Delete commented out function.
7425 Update copyright.
7426
cd9bfe15
AC
74272002-05-04 Andrew Cagney <ac131313@redhat.com>
7428
7429 * MAINTAINERS: Mark a29k as deleted.
7430 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7431 Move new configurations to the top.
7432 * configure.tgt: Remove a29k.
7433 * config/a29k/tm-vx29k.h: Delete.
7434 * config/a29k/vx29k.mt: Delete.
7435 * config/a29k/tm-a29k.h: Delete.
7436 * config/a29k/a29k-udi.mt: Delete.
7437 * config/a29k/a29k.mt: Delete.
7438 * a29k-tdep.c: Delete.
7439 * remote-udi.c: Delete.
7440 * remote-mm.c: Delete.
7441 * remote-eb.c: Delete.
7442 * remote-adapt.c: Delete.
7443 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7444 * config/s390/s390x.mt: Ditto.
7445 * config/s390/s390.mt: Ditto.
7446 * config/sparc/sparclynx.mh: Ditto.
7447 * config/sparc/linux.mh: Ditto.
7448 * config/pa/hppaosf.mh: Ditto.
7449 * config/pa/hppabsd.mh: Ditto.
7450 * config/ns32k/nbsd.mt: Ditto.
7451 * config/mips/vr5000.mt: Ditto.
7452 * config/m68k/sun3os4.mh: Ditto.
7453 * config/m68k/nbsd.mt: Ditto.
7454 * config/m68k/m68klynx.mh: Ditto.
7455 * config/m32r/m32r.mt: Ditto.
7456 * config/i386/x86-64linux.mt: Ditto.
7457 * config/i386/nbsdelf.mt: Ditto.
7458 * config/i386/nbsd.mt: Ditto.
7459 * config/i386/i386lynx.mh: Ditto.
7460
bf0c5130
AC
74612002-05-04 Andrew Cagney <ac131313@redhat.com>
7462
7463 * target.c (debug_print_register): New function. Handle oversize
7464 registers.
7465 (debug_to_fetch_registers): Call.
7466 (debug_to_store_registers): Call.
7467
2ae1c2d2
JB
74682002-05-03 Jim Blandy <jimb@redhat.com>
7469
13a393b0
JB
7470 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7471 (read_type): Doc fix.
7472 * gdbtypes.c (replace_type): Doc fix.
7473
2ae1c2d2
JB
7474 * stabsread.c (multiply_defined_struct): New complaint.
7475 (read_struct_type): If the type we were passed isn't empty, or
7476 incomplete, don't read the new struct type into it; complain,
7477 and return the original type unchanged. Take a new `type_code'
7478 argument, which is the type code for the new type.
7479 (read_type): Rather than storing the type's type code here, pass
7480 it as an argument to read_struct_type, and let that take care of
7481 storing it. That way, we don't overwrite the original type code,
7482 so read_struct_type can use it to decide whether we're overwriting
7483 something we shouldn't.
7484 (complain_about_struct_wipeout): New function.
7485
8de9bdc4
AC
74862002-05-03 Andrew Cagney <ac131313@redhat.com>
7487
7488 * gdbarch.sh: Assert that gdbarch is non-NULL.
7489 * gdbarch.c: Regenerate.
7490
f773fdbb
JM
74912002-05-03 Jason Merrill <jason@redhat.com>
7492
7493 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7494 and return NULL.
7495
0e04a514
ML
74962002-05-03 Michal Ludvig <mludvig@suse.cz>
7497
7498 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7499 (x86_64_dwarf2gdb_regno_map_length),
7500 (x86_64_dwarf2_reg_to_regnum): Added.
7501 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7502 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7503 (_initialize_x86_64_tdep): Synced with the change above.
7504 (x86_64_skip_prologue): Reformulated message.
7505
065432a8
PM
75062002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7507
7508 * f-exp.y: Also use new prev_lexptr variable
7509 to improve error reporting. Based on Michael Snyder
7510 2002-04-24 dated patch to c-exp.y.
7511 * jv-exp.y: Likewise.
7512 * m2-exp.y: Likewise.
7513
a3162708
EZ
75142002-05-02 Elena Zannoni <ezannoni@redhat.com>
7515
7516 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7517 we are dealing with vectors.
7518
03620c38
PM
75192002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7520
7521 * config/m68k/tm-nbsd.h: Obvious fix,
7522 correct machine name.
7523
6604db2e
PM
75242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7525
7526 * p-typeprint.c (pascal_type_print_base): Add support
7527 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7528
0906b739
PM
75292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7530
7531 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7532 for fondamental pascal 'char' type.
7533
e2625b33
PM
75342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7535
7536 * p-lang.h (is_pascal_string_type): Declaration changed,
7537 new sixth argument of type char ** added.
361d1df0 7538 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7539 changed. Args length_pos, length_size, string_pos, char_size
7540 can now be NULL. New argument arrayname set to the field
7541 name of the char array. Return value set to char array
7542 field index plus one.
361d1df0 7543 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7544 is_pascal_string_type function.
7545
cf17c188
AC
75462002-05-02 Andrew Cagney <cagney@redhat.com>
7547
7548 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7549 <cagney@redhat.com> change.
7550 * gdbarch.c: Regenerate.
7551
52bca491
AC
75522002-05-02 Andrew Cagney <cagney@redhat.com>
7553
7554 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7555 before probing for a new one. Detect errorenous gdbarch_init
7556 functions.
7557 * gdbarch.c: Regenerate.
7558
d5e72505
AC
75592002-05-01 Andrew Cagney <cagney@redhat.com>
7560
7561 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7562 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7563 * config/v850/tm-v850.h: Ditto. Update copyright.
7564
af566d9f
AC
75652002-04-30 Andrew Cagney <ac131313@redhat.com>
7566
7567 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7568 current_gdbarch.
7569
880d85fa
MS
75702002-04-30 Michael Snyder <msnyder@redhat.com>
7571
94c30b78
MS
7572 * arm-tdep.c: Whitespace clean-ups.
7573 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7574 should have been removed as part of 4/24 change.
7575
6f5987a6
KB
75762002-04-30 Kevin Buettner <kevinb@redhat.com>
7577
7578 * rs6000-tdep.c: Added comment describing how fpscr register
7579 numbers were chosen.
7580
1a113c93
MS
75812002-04-30 Michael Snyder <msnyder@redhat.com>
7582
7583 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7584
9a6f53fe
EZ
75852002-04-29 Elena Zannoni <ezannoni@redhat.com>
7586
7587 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7588 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7589 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7590
11ed25ac
KB
75912002-04-29 Kevin Buettner <kevinb@redhat.com>
7592
7593 From Louis Hamilton <hamilton@redhat.com>:
7594 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7595 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7596 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7597 not bfd-private xcoff data, to determine wordsize.
7598 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7599
ae232405
AC
76002002-04-29 Andrew Cagney <ac131313@redhat.com>
7601
7602 GDB 5.2 released from 5.2 branch.
7603
91fd20f7
ML
76042002-04-29 Michal Ludvig <mludvig@suse.cz>
7605
7606 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7607 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7608 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7609
2dc5091b
EZ
76102002-04-29 Elena Zannoni <ezannoni@redhat.com>
7611
7612 * rs6000-tdep.c (rs6000_extract_return_value,
7613 rs6000_store_return_value): Handle returning vectors.
7614 (rs6000_gdbarch_init): Use
7615 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7616 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7617 New function.
7618 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7619 vectors.
7620 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7621 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7622
2b9848d8
PM
76232002-04-24 Pierre Muller <ics.u-strasbg.fr>
7624
7625 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7626 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7627 with fprintf_unfiltered (gdb_stderr,...).
7628
f8d17dc5
PM
76292002-04-24 Pierre Muller <ics.u-strasbg.fr>
7630
7631 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7632 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7633 Replace fprintf (stderr,...
7634 with fprintf_unfiltered (gdb_stderr,....
7635 * remote-es.c: Likewise.
7636 * remote-os9k.c: Likewise.
7637 * remote-st.c: Likewise.
7638
2f2f1ad1
AS
76392002-04-28 Andreas Schwab <schwab@suse.de>
7640
7641 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7642 linux-proc.o and gcore.o.
7643
b6779aa2
AC
76442002-04-26 Michal Ludvig <mludvig@suse.cz>
7645
7646 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7647 code without frame pointers.
7648
7e57f5f4
AC
76492002-04-26 Andrew Cagney <ac131313@redhat.com>
7650
7651 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7652 ON_STACK is needed.
7653
2ceb85d0
BE
76542002-04-26 Ben Elliston <bje@redhat.com>
7655
7656 * target.c (do_xfer_memory): Correct reference to the new option
7657 "trust-readonly-sections".
7658
f5f8a009
EZ
76592002-04-26 Elena Zannoni <ezannoni@redhat.com>
7660
7661 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7662 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7663 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7664 vectors.
7665 (read_array_type): Record the fact that this array type is really a
7666 vector (i.e. are passed in by value).
7667
5868c862
JT
76682002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7669
7670 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7671 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7672 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7673 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7674 * alpha-linux-tdep.c: Include frame.h.
7675 (alpha_linux_sigcontext_addr): New function.
7676 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7677 alpha_linux_sigcontext_addr.
7678 * alpha-osf1-tdep.c: Include gdbcore.h.
7679 (alpha_osf1_sigcontext_addr): New function.
7680 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7681 alpha_osf1_sigcontext_addr.
7682 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7683 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7684
bfb01f37
AC
76852002-04-26 Andrew Cagney <ac131313@redhat.com>
7686
361d1df0 7687 * stack.c (selected_frame_level):
bfb01f37
AC
7688 (select_frame): Do not set selected_frame_level.
7689 * frame.h (selected_frame_level): Delete declaration.
7690
15813d3f
AC
76912002-04-26 Andrew Cagney <ac131313@redhat.com>
7692
7693 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7694 convert_from_func_ptr-addr when AIX / PowerOpen.
7695
6096c27a
AC
76962002-04-25 Andrew Cagney <ac131313@redhat.com>
7697
7698 * valops.c (hand_function_call): Call
7699 generic_save_call_dummy_addr.
7700 * frame.h (generic_save_call_dummy_addr): Declare.
7701 * blockframe.c (struct dummy_frame): Add fields call_lo and
7702 call_hi.
7703 (generic_find_dummy_frame): Check for PC in range call_lo to
7704 call_hi instead of entry_point_address.
7705 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7706 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7707 (generic_save_call_dummy_addr): New function.
7708
f510d44e
DM
77092002-04-24 David S. Miller <davem@redhat.com>
7710
7711 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7712 sparc_skip_prologue.
7713 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7714 information to find prologue when possible.
7715 (sparc_prologue_frameless_p): Call examine_prologue directly.
7716 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7717 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7718 second argument.
7719 (SKIP_PROLOGUE): Likewise.
7720
15d72a92
JT
77212002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7722
7723 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7724 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7725 indicate that the condition it was testing is always true.
7726 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7727 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7728 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7729
accc6d1f
JT
77302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7731
7732 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7733 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7734 tdep->jb_pc and tdep->jb_elt_size.
7735 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7736 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7737 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7738 * alpha-nat.c (get_longjmp_target): Remove.
7739 (JB_ELEMENT_SIZE): Ditto.
7740 (JB_PC): Ditto.
7741 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7742 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7743 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7744 to alpha_get_longjmp_target.
7745 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7746 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7747 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7748
1bfdc549
AC
77492002-04-25 Andrew Cagney <ac131313@redhat.com>
7750
7751 * README: Update to GDB 5.2.
7752
1bd316f0
AC
77532002-04-25 Andrew Cagney <ac131313@redhat.com>
7754
7755 * gdbarch.sh (LC_ALL): Set to `c'.
7756
2e5ff58c
TR
77572002-04-25 Theodore A. Roth <troth@verinet.com>
7758
7759 * avr-tdep.c: Ran through gdb_indent.sh.
7760
e33ce519
TR
77612002-04-25 Theodore A. Roth <troth@verinet.com>
7762
7763 * MAINTAINERS: Add myself as AVR maintainer.
7764 * NEWS: Note new target avr.
7765
8818c391
TR
77662002-04-25 Theodore A. Roth <troth@verinet.com>
7767
7768 * Makefile.in: Add support for AVR target.
7769 * configure.tgt: Add support for AVR target.
7770 * avr-tdep.c: New file
7771 * config/avr/avr.mt: New file.
7772
79509c2d
TR
77732002-04-25 Theodore A. Roth <troth@verinet.com>
7774
7775 * MAINTAINERS: Add myself to write-after-approval.
7776
dac8068e
PM
77772002-04-24 Pierre Muller <ics.u-strasbg.fr>
7778
7779 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7780 with fprintf_unfiltered (gdb_stderr,....
7781
25bf3106
PM
77822002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7783
7784 Fix PR gdb/508.
7785 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7786
24467a86
PM
77872002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7788
7789 * p-exp.y: Also use new prev_lexptr variable
7790 to improve error reporting. Based on Michael Snyder
7791 2002-04-24 dated patch to c-exp.y.
7792
95b80706
JT
77932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7794
7795 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7796 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7797 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7798 to 0.
7799 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7800 and struct value.
7801 (FUNCTION_START_OFFSET): Remove.
7802 (BREAKPOINT): Ditto.
7803
e90cc612
JT
78042002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7805
7806 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7807 * NEWS: Ditto.
7808
6c72f9f9
JT
78092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7812 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7813 alpha_linux_pc_in_sigtramp.
7814 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7815 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7816 alpha_osf1_pc_in_sigtramp.
7817 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7818 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7819 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7820 alphafbsd_pc_in_sigtramp.
7821 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7822 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7823 alphanbsd_pc_in_sigtramp.
7824 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7825 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7826
5e4f3379
JT
78272002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7828
7829 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7830
da8ca43d
JT
78312002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7832
7833 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7834 alphanbsd-tdep.c.
7835 (alphanbsd-nat.o): New dependency list.
7836 (alphanbsd-tdep.o): Ditto.
7837 * NEWS: Note new native NetBSD/alpha configuration.
7838 * alphanbsd-nat.c: New file.
7839 * alphanbsd-tdep.c: Ditto.
7840 * configure.host (alpha*-*-netbsd*): New host.
7841 * configure.tgt (alpha*-*-netbsd*): New target.
7842 * config/alpha/nbsd.mh: New file.
7843 * config/alpha/nbsd.mt: Ditto.
7844 * config/alpha/nm-nbsd.h: Ditto.
7845 * config/alpha/tm-nbsd.h: Ditto.
7846
36a6271d
JT
78472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7848
7849 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7850 (alpha-osf1-tdep.o): New dependency list.
7851 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7852 and skip_sigtramp_frame members.
7853 * alpha-linux-tdep.c: Include gdbcore.h.
7854 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7855 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7856 * alpha-osf1-tdep.c: New file.
7857 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7858 alpha-osf1-dep.c.
7859 (alpha_frame_past_sigtramp_frame): New function.
7860 (alpha_dynamic_sigtramp_offset): Ditto.
7861 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7862 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7863 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7864 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7865 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7866 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7867 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7868 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7869 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7870 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7871 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7872 to find_solib_trampoline_target.
7873 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7874 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7875 (SKIP_TRAMPOLINE_CODE): Remove.
7876 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7877 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7878 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7879 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7880 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7881 (PROC_SIGTRAMP_MAGIC): Ditto.
7882 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7883 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7884 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7885 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7886 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7887
2f4bc57b
JT
78882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7889
7890 * NEWS: Note that Alpha targets are now multi-arch.
7891
665132f9
MS
78922002-04-24 Michael Snyder <msnyder@redhat.com>
7893
7894 * parser-defs.h (prev_lexptr): New external variable.
7895 * parse.c (parse_exp_1): Set prev_lexptr to null before
7896 calling the language-specific parser.
7897 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7898 (yyerror): Use prev_lexptr in error reporting.
7899
32872fa7
DJ
79002002-04-24 Daniel Jacobowitz <drow@mvista.com>
7901
7902 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7903 * gregset.h: If FILL_FPXREGSET is defined, provide
7904 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7905 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7906 is defined, call fill_fpxregset.
7907
57e76fac
MS
79082002-04-24 Roland McGrath <roland@frob.com>
7909
7910 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7911 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7912 (supply_gregset, supply_fpregset): New functions.
7913
7914 * gnu-nat.c (gnu_find_memory_regions): New function.
7915 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7916 (gnu_xfer_memory): Add a cast.
7917
f43845b3
MS
79182002-04-24 Michael Snyder <msnyder@redhat.com>
7919
361d1df0 7920 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7921 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7922 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7923 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7924 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7925 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7926
a0abec03
AC
7927Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7928
7929 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7930 NUM_PSEUDO_REGS can be used.
7931
d7bd68ca
AC
79322002-04-24 Andrew Cagney <ac131313@redhat.com>
7933
7934 * arch-utils.h: Update copyright.
7935
7936 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7937 * gdbarch.h, gdbarch.c: Re-generate.
7938
7939 * inferior.h (IN_SIGTRAMP): Delete definition.
7940 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7941 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7942
7943 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7944 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7945 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7946 (find_proc_framesize): Ditto.
7947 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7948 (alpha_init_extra_frame_info): Ditto.
7949 * infrun.c (handle_inferior_event): Ditto.
7950 (handle_inferior_event): Ditto.
7951 (check_sigtramp2): Ditto.
7952 * blockframe.c (create_new_frame): Ditto.
7953 (get_prev_frame): Ditto.
7954 * ppc-linux-tdep.c: Update comments.
7955 * i386-linux-tdep.c: Update comments.
7956 * breakpoint.c (bpstat_what): Update comment.
7957
4867e41e
DM
79582002-04-24 David S. Miller <davem@redhat.com>
7959
21d83aa5
DM
7960 * i960-tdep.c (register_in_window_p): New function.
7961 (i960_find_saved_register): Use it instead of
7962 REGISTER_IN_WINDOW_P.
7963 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7964
4867e41e
DM
7965 * symtab.h (find_stab_function_addr): Kill extern.
7966 * minsyms.c (find_stab_function_addr): Remove from here...
7967 * dbxread.c: ... to here, and mark it static.
7968
69cdf6a2
DM
79692002-04-20 David S. Miller <davem@redhat.com>
7970
7971 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7972 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7973
5a595886
DM
79742002-04-21 David S. Miller <davem@redhat.com>
7975
7976 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7977 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7978 (vx_write_register): Likewise.
7979
1da1a192
JB
79802002-04-23 J. Brobecker <brobecker@gnat.com>
7981
7982 * source.c (is_regular_file): New function.
7983 (openp): Check wether file to open is a regular file
7984 to avoid opening directories.
7985
baa6f10b
JT
79862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7987
7988 * findvar.c (extract_signed_integer): Cast printf argument
7989 to suppress format warning.
7990 (extract_unsigned_integer): Likewise.
7991 * infcmd.c (registers_info): Likewise.
7992 * top.c (get_prompt_1): Likewise.
7993 * valops.c (value_assign): Likewise.
7994 * valprint.c (print_decimal): Likewise.
7995
b2c4da81
L
79962002-04-22 H.J. Lu (hjl@gnu.org)
7997
7998 * c-exp.y (typebase): Support
361d1df0 7999
b2c4da81
L
8000 [long|long long|short] [signed|unsigned] [int|]
8001
8002 and
8003
8004 signed [long|long long|short] int
8005
f267bd6a
JT
80062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8009 and vax-tdep.h.
8010 * vax-tdep.h: New file.
8011 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8012 Make several routines static.
8013 (vax_get_saved_register): New function.
8014 (vax_gdbarch_init): New function.
8015 (_initialize_vax_tdep): Register vax_gdbarch_init.
8016 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8017 Remove macros now under the control of gdbarch.
8018
da3c6d4a
MS
80192002-04-22 Michael Snyder <msnyder@redhat.com>
8020
11d3b27d
MS
8021 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8022 Some whitespace and coding standards tweaks.
da3c6d4a 8023
a33f7558
JT
80242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * vax-tdep.c: Include regcache.h.
8027 (vax_call_dummy_words): New.
8028 (sizeof_vax_call_dummy_words): New.
8029 (vax_fix_call_dummy): New function.
8030 (vax_saved_pc_after_call): Ditto.
8031 * config/vax/tm-vax.h: Don't include regcache.h.
8032 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8033 (CALL_DUMMY): Remove.
8034 (CALL_DUMMY_WORDS): Define.
8035 (SIZEOF_CALL_DUMMY_WORDS): Define.
8036 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8037
47a73475
MS
80382002-04-18 Michael Snyder <msnyder@redhat.com>
8039
8040 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8041
52efde73
JT
80422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8043
8044 * vax-tdep.c (vax_frame_chain): New function.
8045 (vax_push_dummy_frame): Ditto.
8046 (vax_pop_frame): Ditto.
8047 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8048 (FRAMELESS_FUNCTION_INVOCATION): Use
8049 generic_frameless_function_invocation_not.
8050 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8051 (POP_FRAME): Use vax_pop_frame.
8052
ea74468c
JT
80532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8054
8055 * vax-tdep.c (vax_store_struct_return): New function.
8056 (vax_extract_return_value): Ditto.
8057 (vax_store_return_value): Ditto.
8058 (vax_extract_struct_value_address): Ditto.
8059 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8060 vax_store_struct_return.
8061 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8062 (STORE_RETURN_VALUE): Use vax_store_return_value.
8063 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8064
5516aa92
JT
80652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8066
8067 * vax-tdep.c (vax_frame_saved_pc): New function.
8068 (vax_frame_args_address_correct): Ditto.
8069 (vax_frame_args_address): Ditto.
8070 (vax_frame_locals_address): Ditto.
8071 (vax_frame_num_args): Move code to be in proximity to
8072 other frame-related functions.
8073 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8074 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8075 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8076 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8077 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8078
36af0b35
L
80792002-04-22 H.J. Lu (hjl@gnu.org)
8080
8081 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8082 includedir.
8083
ab62c900
JT
80842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8085
8086 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8087 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8088 (FRAME_INIT_SAVED_REGS): New macro.
8089
7232b100
JT
80902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8091
8092 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8093
b70d2aee
JT
80942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8095
8096 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8097 where needed.
8098 (fetch_osf_core_registers): Likewise.
8099 (supply_gregset): Likewise.
8100
a0e8a2d1 81012002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8102
a0e8a2d1
JB
8103 * symfile.h (get_section_index): Define.
8104 * symfile.c (get_section_index): New function.
8105 * mdebugread.c (SC_IS_SBSS): New macro.
8106 (SC_IS_BSS): Return true for the scBss storage class only, as
8107 the scSBss storage class refers to the .sbss section.
8108 (parse_partial_symbols): Discard the symbols which associated
8109 section does not exist.
8110 Make sure to use the .sbss section index for symbols which
8111 storage class is scBss, rather than using the .bss section index.
8112
51eb8b08
JT
81132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8114
8115 * vax-tdep.c: Update copyright years.
8116 (vax_register_name): New function.
8117 (vax_register_byte): Ditto.
8118 (vax_register_raw_size): Ditto.
8119 (vax_register_virtual_size): Ditto.
8120 (vax_register_virtual_type): Ditto.
8121 * config/vax/tm-vax.h: Update copyright years.
8122 (REGISTER_NAMES): Remove.
8123 (REGISTER_NAME): Define.
8124 (REGISTER_BYTE): Use vax_register_byte.
8125 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8126 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8127 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8128
6cc1c0a8
AC
81292002-04-21 Andrew Cagney <ac131313@redhat.com>
8130
8131 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8132 declaration
8133 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8134
9319a2fe
DM
81352002-04-21 David S. Miller <davem@redhat.com>
8136
8137 * arch-utils.c (generic_prologue_frameless_p): Kill
8138 SKIP_PROLOGUE_FRAMELESS_P code.
8139 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8140 references.
8141 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8142 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8143 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8144 references.
8145 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8146 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8147 (sparc_gdbarch_init): Pass it to
8148 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8149
e9ed6d01
JT
81502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8151
8152 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8153 (alphabsd-nat.o): New dependency list.
8154
36012033
JT
81552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8156
8157 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8158 alphafbsd-tdep.c.
8159 (alpha-linux-tdep.o): New dependency list.
8160 (alphafbsd-tdep.o): Likewise.
8161
3379287a
JT
81622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8163
8164 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8165 to here...
8166 * alpha-tdep.c: ...from here.
8167 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8168
4bcbd6cb
JT
81692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8170
8171 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8172 prototype from here...
8173 * alpha-tdep.h: ...to here.
8174
b31da25e
AC
81752002-04-21 Andrew Cagney <ac131313@redhat.com>
8176
8177 * frame.h (selected_frame_level): Document as deprecated.
8178 (frame_relative_level): Declare.
8179 * stack.c (frame_relative_level): New function.
8180 (selected_frame_level): Document as deprecated.
8181 (select_frame): Do not set the selected_frame_level.
8182
8183 * stack.c (frame_info, record_selected_frame): Update.
8184 (frame_command, current_frame_command): Update.
8185 (up_silently_base, up_command, down_silently_base): Update.
8186 (down_command): Update.
8187 * inflow.c (kill_command): Update.
8188 * tracepoint.c (finish_tfind_command): Update.
8189 * corelow.c (core_open): Update.
8190 * thread.c (info_threads_command): Update.
8191 (do_captured_thread_select): Update.
8192 * infcmd.c (finish_command): Update.
8193 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8194
9c1d6fe5
JT
81952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8196
8197 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8198
ab89facf
AC
81992002-04-21 Andrew Cagney <ac131313@redhat.com>
8200
8201 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8202 type const.
8203
82a4efa1
JT
82042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8205
8206 * alphafbsd-tdep.c: Update copyright years. Include
8207 alpha-tdep.h.
8208 (alphafbsd_use_struct_convention): Make static.
8209 (alphafbsd_init_abi): New function.
8210 (_initialize_alphafbsd_tdep): New function.
8211 * config/alpha/tm-fbsd.h: Update copyright years.
8212 (USE_STRUCT_CONVENTION): Remove.
8213
44dffaac
JT
82142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8215
8216 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8217 an Alpha ABI variant.
8218 (alpha_abi_handler_list): Declare.
8219 (alpha_gdbarch_register_os_abi): New function.
8220 (alpha_gdbarch_init): Give registered ABI variant handlers a
8221 chance to tweak the gdbarch once we have set up defaults.
8222 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8223
65585be4
JT
82242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8225
8226 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8227 to standard_coerce_float_to_double.
8228 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8229
d9b023cc
JT
82302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8231
8232 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8233 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8234 from gdbarch_tdep rather than a constant.
8235 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8236 the default text address for all Alpha Unix ABIs.
8237 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8238 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8239
dc129d82
JT
82402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8241
8242 * alpha-tdep.h: New file. Includes several Alpha target constants
8243 taken from...
8244 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8245 let gdbarch deal with.
8246 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8247 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8248 to dependency list.
8249 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8250 Alpha target register names.
8251 * alphabsd-nat.c: Likewise.
8252 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8253 Alpha target register names. Make serveral routines static.
8254 (alpha_get_saved_register): New function.
8255 (alpha_abi_names): New.
8256 (process_note_abi_tag_sections): New function.
8257 (get_elfosabi): New function.
8258 (alpha_gdbarch_init): New function.
8259 (alpha_dump_tdep): New function.
8260 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8261
d49d1e0a
AC
82622002-04-21 Andrew Cagney <ac131313@redhat.com>
8263
8264 * frame.c (find_saved_register): Delete #ifdef
8265 HAVE_REGISTER_WINDOWS code.
8266 * config/sparc/tm-sparc.h: Update comments.
8267 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8268
92e8c9ed
AC
82692002-04-21 Andrew Cagney <ac131313@redhat.com>
8270
8271 * i960-tdep.c (i960_find_saved_register): New function.
8272 (i960_get_saved_register): New function.
8273 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8274 (i960_get_saved_register): Declare.
8275 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8276
e1925118
DM
82772002-04-20 David S. Miller <davem@redhat.com>
8278
8279 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8280
29673b29
AC
82812002-04-20 Andrew Cagney <ac131313@redhat.com>
8282
8283 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8284 instead of NUM_PSEUDO_REGS.
8285
6c86dcd5
DM
82862002-04-20 David S. Miller <davem@redhat.com>
8287
8288 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8289 GDB_MULTI_ARCH_PARTIAL
8290 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8291 define, let tm-sp64.h do it.
8292
aa40ec90
JT
82932002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8294
8295 * frame.c (find_saved_register): Avoid a NULL pointer
8296 dereference and actually walk the frame list.
8297
0f79675b
AC
82982002-04-20 Andrew Cagney <ac131313@redhat.com>
8299
8300 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8301 sorted in most most-recent-used order. Document.
8302 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8303
f91305dd 83042002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8305
8306 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8307 instead of ->prev.
8308 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8309 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8310 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8311 instead of ->prev.
8312
73d322b1
EZ
83132002-04-19 Elena Zannoni <ezannoni@redhat.com>
8314
8315 Fix PR gdb/471.
8316 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8317 (build_builtin_type_vec128): Ditto.
8318 (append_composite_type_field): Fix calculation of type length in
8319 union case.
8320
ccd9a834
EZ
83212002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8322
8323 * config/djgpp/README: Update.
8324
8325 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8326 compiler warnings.
8327
a57f9e49
JT
83282002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8329
8330 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8331 (alpha_setup_arbitrary_frame): ...to this.
8332 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8333 for alpha_setup_arbitrary_frame.
8334
f4f9705a
AC
83352002-04-18 Andrew Cagney <cagney@redhat.com>
8336
8337 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8338 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8339
f4f9705a
AC
8340 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8341 * target.h (memory_breakpoint_from_pc): Update declaration.
8342 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8343
8344 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8345 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8346 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8347 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8348 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8349 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8350 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8351 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8352 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8353 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8354 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8355 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8356
8357 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8358 const pointer.
8359 * monitor.c (monitor_insert_breakpoint): Ditto.
8360 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8361
8362 * config/mcore/tm-mcore.h: Update copyright.
8363 * mem-break.c: Ditto.
8364 * xstormy16-tdep.c: Ditto.
8365
29f319b8
PM
83662002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8367
8368 * p-exp.y: Add precedence rule for '^' token.
8369 This removes the shift/reduce conflicts.
8370 Remove the comment concerning these shift/reduce conflicts.
8371
ebeac11a
EZ
83722002-04-18 Elena Zannoni <ezannoni@redhat.com>
8373
8374 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8375 (registers_powerpc_nofp): New register set for processors
8376 without floating point unit.
8377
27c31547
DM
83782002-04-18 David S. Miller <davem@redhat.com>
8379
8380 * MAINTAINERS: Add myself to write-after-approval.
8381
47a73475
MS
83822002-04-17 Michael Snyder <msnyder@redhat.com>
8383
8384 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8385
953836b2
AC
83862002-04-17 Andrew Cagney <ac131313@redhat.com>
8387
8388 * rs6000-tdep.c (frame_initial_stack_address): Use
8389 frame_register_read to read the alloca_reg.
8390
8b0d4340
AC
83912002-04-17 Andrew Cagney <ac131313@redhat.com>
8392
8393 * frame.c (find_saved_register): Find saved registers in the next
8394 not prev frame.
8395 Fix PR gdb/365.
8396
d8864532
AC
83972002-04-17 Andrew Cagney <ac131313@redhat.com>
8398
8399 * gdbarch.sh (LANG): Set to ``c''.
8400
36cc83a3 84012002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8402
36cc83a3 8403 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8404
2f4150cc 84052002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8406
8407 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8408 Update copyright.
8409
628703c6 8410 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8411 Also fix PR gdb/391.
361d1df0 8412
56157b4a
AC
84132002-04-14 Andrew Cagney <ac131313@redhat.com>
8414
8415 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8416 * aclocal.m4, configure: Re-generate.
8417 Fix PR gdb/391.
361d1df0 8418
6d1e3329
EZ
84192002-04-14 Elena Zannoni <ezannoni@redhat.com>
8420
8421 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8422 instead of tm_print_insn.
8423
cb06fa07
EZ
84242002-04-14 Elena Zannoni <ezannoni@redhat.com>
8425
8426 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8427
f208ba17
AC
84282002-04-14 Andrew Cagney <ac131313@redhat.com>
8429
8430 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8431 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8432 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8433
20f01a46
DH
84342002-04-12 Don Howard <dhoward@redhat.com>
8435
8436 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8437 max_user_call_depth.
8438 (init_cmd_lists): Initialize the new value;
8439 * cli/cli-script.c (execute_user_command): Limit the call depth of
8440 user defined commands. This avoids a core-dump when user commands
8441 are infinitly recursive.
8442
a88376a3
KB
84432002-04-12 Kevin Buettner <kevinb@redhat.com>
8444
8445 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8446 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8447 from tdep struct instead of DEFAULT_LR_SAVE.
8448 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8449 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8450 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8451
f2172603
MS
84522002-04-12 Michael Snyder <msnyder@redhat.com>
8453
694f61fb 8454 * Remote.c: Spelling fix.
20fe79c8
MS
8455 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8456 If no symbol found for "sbrk", try "_sbrk".
8457 (make_output_phdrs): Use bfd_section_name.
8458 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8459 * eval.c: Indentation fix-ups.
169a7369
MS
8460 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8461 in case it gets applied to an address that is already
8462 in the instruction space.
de74f71f
MS
8463 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8464 * symfile.c: Fix indentation, long lines.
f2172603
MS
8465 * source.c: White space fix-up.
8466
cda5a58a
AC
84672002-04-12 Andrew Cagney <cagney@redhat.com>
8468
8469 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8470 * frame.c (frame_register_read): New function. Return non-zero on
8471 success.
8472 (read_relative_register_raw_bytes_for_frame): Delete.
8473 (read_relative_register_raw_bytes): Delete.
8474 * frame.h (frame_register_read): Declare.
8475 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8476 * sh-tdep.c: Ditto.
8477 * infcmd.c (do_registers_info): Ditto.
8478 * hppa-tdep.c: Ditto.
8479 * rs6000-tdep.c: Ditto.
8480 * h8500-tdep.c: Ditto.
8481 * mips-tdep.c: Ditto.
8482 * h8300-tdep.c: Ditto.
8483 * z8k-tdep.c: Ditto.
8484
2ea5f656
KB
84852002-04-12 Kevin Buettner <kevinb@redhat.com>
8486
8487 From Jimi X <jimix@watson.ibm.com>:
8488 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8489 64-bit SysV ABI.
8490
27b15785
KB
84912002-04-12 Kevin Buettner <kevinb@redhat.com>
8492
8493 From Jimi X <jimix@watson.ibm.com>:
8494 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8495 bfd info.
8496
5d57ee30
KB
84972002-04-12 Kevin Buettner <kevinb@redhat.com>
8498
8499 From Jimi X <jimix@watson.ibm.com>:
8500 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8501 register sets for these processor variants.
8502
bc1e36ca
DJ
85032002-04-11 Daniel Jacobowitz <drow@mvista.com>
8504
bc1e36ca
DJ
8505 * regformats/reg-ppc.dat: Support FPSCR.
8506
e3f36dbd
KB
85072002-04-11 Kevin Buettner <kevinb@redhat.com>
8508
8509 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8510 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8511 Add fpscr as an invalid/unfetchable register.
8512 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8513 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8514 (fill_fpregset): Add support for register fpscr.
8515 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8516 (fill_gregset): Account for the fact that register ``mq'' might
8517 not exist.
8518 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8519 (registers_power): Add fpscr to register set at slot 71.
8520 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8521 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8522
943c9c25
MS
85232002-04-11 Michael Snyder <msnyder@redhat.com>
8524
8525 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8526 * configure: Regenerate.
8527 * config.in: Regenerate.
8528 * acconfig.h: Add define for _SYSCALL32.
8529 * core-sol2.c: Remove #define _SYSCALL32.
8530 * solib-legacy.c: Remove #define _SYSCALL32.
8531
d8c0a2e7
AC
85322002-04-10 Andrew Cagney <ac131313@redhat.com>
8533
8534 * stack.c (select_frame): Cleanup internal error message, do not
8535 use %p.
8536
7cc19214
AC
85372002-04-10 Andrew Cagney <ac131313@redhat.com>
8538
8539 * stack.c (select_frame): Check that selected_frame and the
8540 specified level are as expected.
8541 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8542 Update copyright.
8543 * frame.h (struct frame_info): Add field `level'. Update
8544 copyright.
8545 Work-in-progress PR gdb/464.
8546
67a2b77e
AC
85472002-04-10 Andrew Cagney <ac131313@redhat.com>
8548
8549 * maint.c (maint_print_section_info): Rename print_section_info.
8550 (print_bfd_section_info, print_objfile_section_info): Update.
8551 * inferior.h (struct gdbarch): Add opaque declaration.
8552 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8553 * gdbarch.h: Regenerate.
8554
8cfda98c
ML
85552002-04-10 Michal Ludvig <mludvig@suse.cz>
8556
8557 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8558 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8559 (kernel_u_size): Added.
8560 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8561 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8562
ca439ad2 85632002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8564
ca439ad2
JI
8565 * valarith.c (find_size_for_pointer_math): New function, either returns
8566 the size for a pointer's target, returns 1 for void *, or errors for
8567 incomplete types.
8568 (value_add, value_sub): use find_size_for_pointer_math.
8569
2f2893d9
DJ
85702002-04-09 Daniel Jacobowitz <drow@mvista.com>
8571
8572 * linux-low.c (linux_look_up_symbols): New hook.
8573 (linux_target_ops): Add linux_look_up_symbols.
8574 * remote-utils.c (decode_address): New function.
8575 (look_up_one_symbol): New function.
8576 * server.c (handle_query): Call target look_up_symbols hook.
8577 * server.h (look_up_one_symbol): Add prototype.
8578 * target.h (struct target_ops): Add look_up_symbols hook.
8579
96cb11df
AC
85802002-04-09 Andrew Cagney <ac131313@redhat.com>
8581
8582 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8583 override FP_REGNUM with frame->fp. Update copyright.
8584 * parse.c (num_std_regs, std_regs): Delete.
8585 (target_map_name_to_register): Do not search std_regs. Update
8586 function description.
8587 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8588 declarations. Update copyright.
8589 Fix PR gdb/251.
361d1df0 8590
97658e92
DJ
85912002-04-09 Daniel Jacobowitz <drow@mvista.com>
8592
8593 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8594 after the last symbol in a block.
8595
6044e3eb
PM
85962002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8597
8598 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8599 is non zero as a found symbol.
8600
0406ec40
AC
86012002-04-08 Andrew Cagney <ac131313@redhat.com>
8602
8603 * findvar.c: Include "builtin-regs.h".
8604 (value_of_register): Call value_of_builtin_reg when applicable.
8605 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8606 (target_map_name_to_register): Call
8607 builtin_reg_map_name_to_regnum.
8608 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8609 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8610 (builtin_regs_h): Define.
8611 (builtin-regs.o): New target.
8612 (findvar.o): Add $(builtin_regs_h).
8613 * builtin-regs.c, builtin-regs.h: New files.
8614 * std-regs.c: New file.
8615 Partial fix for PR gdb/251.
8616
56a6dfb9
KB
86172002-04-08 Kevin Buettner <kevinb@redhat.com>
8618
8619 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8620 it's no longer required.
8621
3a808432
AC
86222002-04-08 Andrew Cagney <ac131313@redhat.com>
8623
8624 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8625
7c40d541
KB
86262002-04-08 Kevin Buettner <kevinb@redhat.com>
8627
8628 From Jimi X <jimix@watson.ibm.com>:
8629 * rs6000-tdep.c (rs6000_software_single_step): Use
8630 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8631 and size. Use target_insert_breakpoint() and
8632 target_remove_breakpoint() to insert and remove breakpoints
8633 instead of explicit memory reads and writes.
8634
cc9836a8
KB
86352002-04-08 Kevin Buettner <kevinb@redhat.com>
8636
8637 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8638 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8639 ELF_OBJECT_FORMAT ifdef.
8640
7495d1dc
KB
86412002-04-08 Kevin Buettner <kevinb@redhat.com>
8642
8643 From Jimi X <jimix@watson.ibm.com>:
8644 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8645
4288e836
KB
86462002-04-08 Kevin Buettner <kevinb@redhat.com>
8647
8648 From Jimi X <jimix@watson.ibm.com>:
8649 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8650 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8651
a4e4e501
MK
86522002-04-07 Mark Kettenis <kettenis@gnu.org>
8653
8654 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8655 s/asprintf/xasprintf/.
8656 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8657
006defba
AC
86582002-04-07 Andrew Cagney <ac131313@redhat.com>
8659
8660 I believe Jeff Law denies responsability for this one:
8661 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8662 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8663 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8664 Work-around for PR gdb/366.
8665
7aa83cac
EZ
86662002-04-07 Elena Zannoni <ezannoni@redhat.com>
8667
8668 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8669 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8670 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8671
cf1fcca1
EZ
86722002-04-07 Elena Zannoni <ezannoni@redhat.com>
8673
8674 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8675 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8676 information.
8677
3f289e6f
AC
86782002-04-07 Andrew Cagney <ac131313@redhat.com>
8679
8680 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8681 maintainer.
8682
129188f6
AC
86832002-04-07 Andrew Cagney <ac131313@redhat.com>
8684
8685 * README (Reporting Bugs in GDB): Document the bug web page as the
8686 prefered way of submitting bugs.
8687 Fix PR gdb/402.
8688
1200cd6e
AC
86892002-04-06 Andrew Cagney <ac131313@redhat.com>
8690
8691 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8692 -1. Update comment.
8693 * gdbarch.h, gdbarch.c: Re-generate.
8694
2853c33c
AS
86952002-04-07 Andreas Schwab <schwab@suse.de>
8696
8697 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8698 buffer to regcache_collect.
8699
c2169756
AC
87002002-04-06 Andrew Cagney <ac131313@redhat.com>
8701
8702 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8703 * gdbarch.c, gdbarch.h: Re-generate.
8704
25f1b008
AC
87052002-04-06 Andrew Cagney <ac131313@redhat.com>
8706
8707 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8708 declaration. Fix -Werror.
8709
59263426
DJ
87102002-04-05 Daniel Jacobowitz <drow@mvista.com>
8711
8712 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8713 * gdbarch.c: Regenerate.
8714
f5db4da3
MS
87152002-04-05 Michael Snyder <msnyder@redhat.com>
8716
80f8a6eb
MS
8717 * breakpoint.c (clear_command): Rewrite middle section to
8718 combine two loops with identical control conditions.
8719 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8720 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8721
ad3dcc5c
L
87222002-04-05 H.J. Lu (hjl@gnu.org)
8723
8724 * solib-svr4.c (bkpt_names): Add "__start".
8725
f32e7a74
AC
87262002-04-04 Andrew Cagney <ac131313@redhat.com>
8727
8728 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8729 as test for 64 bit target.
8730
8227c0ff
AC
87312002-04-05 Andrew Cagney <ac131313@redhat.com>
8732
8733 * h8500-tdep.c (h8500_write_fp): Delete function.
8734 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8735 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8736 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8738 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8739 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8740 (s390_write_fp):
8741 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8742 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8743 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8744 (d10v_write_fp): Delete function.
8745 * inferior.h (write_fp, generic_target_write_fp): Delete
8746 declarations.
8747 * regcache.c (generic_target_write_fp): Delete function.
8748 (write_fp): Delete function.
8749 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8750 * gdbarch.h, gdbarch.c: Regenerate.
8751 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8752 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8753 (sparc64_write_fp): Delete declaration.
8754 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8755 (h8500_write_fp): Delete declaration.
8756
2757dd86
AC
87572002-04-04 Andrew Cagney <ac131313@redhat.com>
8758
8759 * sparc-tdep.c (sparc64_write_fp): Delete.
8760 (sparc_push_dummy_frame): Replace write_fp call with code to store
8761 the FP directly.
8762 (sparc_gdbarch_init): Do not initialize write_fp.
8763
c69255e1
KB
87642002-04-05 Kevin Buettner <kevinb@redhat.com>
8765
8766 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8767 clause.
8768
ae767bfb
JB
87692002-03-29 Jim Blandy <jimb@redhat.com>
8770
8771 * stack.c (get_selected_block): Add new argument `addr_in_block',
8772 used to return the exact code address we used to select the block,
8773 not just the block.
8774 * blockframe.c (get_frame_block, get_current_block): Same.
8775 * frame.h (get_frame_block, get_current_block,
8776 get_selected_block): Update declarations.
8777 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8778 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8779
84d2ac95
MS
87802002-04-05 Michael Snyder <msnyder@redhat.com>
8781
8782 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8783 warning message.
8784
596aa3bf
JB
87852002-04-05 J. Brobecker <brobecker@gnat.com>
8786
8787 * utils.c (xfullpath): New function.
8788 * defs.h (xfullpath): Add declaration.
8789 * source.c (openp): Use xfullpath in place of gdb_realpath to
8790 avoid resolving the basename part of filenames when the
8791 associated file is a symbolic link. This fixes a potential
8792 inconsistency between the filenames known to GDB and the
8793 filenames it prints in the annotations.
8794 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8795 to be able to match a filename with either the real filename, or
8796 the name of any symbolic link to this file.
8797 (lookup_partial_symtab): Ditto.
8798
c02f5703
MS
87992002-04-04 Michael Snyder <msnyder@redhat.com>
8800
8801 * breakpoint.c: Add support for hardware breakpoints in overlays.
8802 (overlay_events_enabled): New state variable.
8803 (insert_breakpoints): Use overlay_events_enabled to decide
8804 whether to attempt to set a breakpoint at the overlay load addr.
8805 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8806 (remove_breakpoint): Use overlay_events_enabled to decide
8807 whether breakpoints need to be removed from overlay load addr.
8808 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8809 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8810 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8811 disable_overlay_breakpoints): Update overlay_events_enabled.
8812
5fb290d7
DJ
88132002-04-04 Daniel Jacobowitz <drow@mvista.com>
8814
8815 * dwarf2read.c (struct function_range): New.
8816 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8817 (check_cu_functions): New.
8818 (read_file_scope): Initialize global function lists.
8819 Call dwarf_decode_line after processing children.
8820 (read_func_scope): Add to global function list.
8821 (dwarf_decode_lines): Call check_cu_functions everywhere
8822 record_line is called. Call record_line with a linenumber
8823 of 0 to mark sequence ends.
8824
7b3fabf0
ML
88252002-04-04 Michal Ludvig <mludvig@suse.cz>
8826
361d1df0 8827 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8828 change sync with glibc.
8829
bce58c09
JB
88302002-04-03 Jim Blandy <jimb@redhat.com>
8831
8832 * configure.in: Call AC_C_INLINE.
8833 * configure: Regenerated.
361d1df0 8834
2fccf04a
DJ
88352002-04-01 Daniel Jacobowitz <drow@mvista.com>
8836
8837 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8838 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8839
2d1bfe2e
MK
88402002-03-31 Mark Kettenis <kettenis@gnu.org>
8841
a5941fbf
MK
8842 * NEWS: Mention gcore support on FreeBSD/i386.
8843
a90cd31d
MK
8844 * fbsd-proc.c: New file.
8845 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8846 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8847
2d1bfe2e
MK
8848 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8849 while statement.
8850
9eb6e5a1
JB
88512002-03-29 Jim Blandy <jimb@redhat.com>
8852
8853 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8854 unescaped newlines in string literals, but newer ones don't. So
8855 escape them.
8856
f02df580
MS
88572002-03-26 Michael Snyder <msnyder@redhat.com>
8858 Andrew Cagney <cagney@redhat.com>
8859
361d1df0 8860 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8861 restore file to memory.
8862 * cli/cli-dump.h: New file.
8863 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8864 * NEWS: Mention new commands.
f02df580 8865
109f874e
MS
88662002-03-28 Michael Snyder <msnyder@redhat.com>
8867
8868 * symfile.c (symbol_file_add): Move test for null symbols to later.
8869
520f6ade
AC
88702002-03-27 Andrew Cagney <ac131313@redhat.com>
8871
8872 From veksler at il.ibm.com:
8873 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8874 the xstrduped original path.
8875 Fix PR gdb/417.
8876
d4654627
MS
88772002-03-27 Michael Snyder <msnyder@redhat.com>
8878
8879 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8880 * infcmd.c (_initialize_infcmd): Ditto.
8881 * language.c (_initialize_language): Ditto.
8882 * symfile.c (_initialize_symfile): Ditto.
8883 * top.c (_init_main): Ditto.
8884 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8885
6be8bc0c
EZ
88862002-03-27 Elena Zannoni <ezannoni@redhat.com>
8887
8888 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8889 vector registers handling.
8890 (skip_prologue): Handle new AltiVec instructions. Fill in new
8891 fields of frame data.
8892 (frame_get_saved_regs): Fill in information for AltiVec registers.
8893
12af6855
JB
88942002-03-27 Jim Blandy <jimb@redhat.com>
8895
8896 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8897 a function; leave this macro here to invoke that function.
8898 (symbol_init_mangled_name): Declaration for that function.
8899 * symtab.c (symbol_init_mangled_name): New function.
8900
dc672865
AC
89012002-03-27 Andrew Cagney <ac131313@redhat.com>
8902
8903 * valarith.c: Replace strerror with safe_strerror.
8904 * tracepoint.c: Ditto.
8905 * lin-lwp.c: Ditto.
8906 * go32-nat.c: Ditto.
8907 * inflow.c: Ditto.
8908 * gnu-nat.c: Ditto.
8909
d96429cd
AS
89102002-03-27 Andreas Schwab <schwab@suse.de>
8911
8912 * event-top.c (command_line_handler): Remove useless if.
8913
7e336ba1
AJ
89142002-03-27 Andreas Jaeger <aj@suse.de>
8915
8916 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8917 comment.
8918
de220d0f
ML
89192002-03-27 Michal Ludvig <mludvig@suse.cz>
8920
8921 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8922 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8923 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8924 (x86_64_linux_dr_get_status, supply_gregset),
8925 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8926 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8927 (x86_64_register_info_table): Add.
8928 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8929 (x86_64_register_raw_size, x86_64_register_virtual_type),
8930 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8931 general x86_64_register_info_table.
8932 (i386_gdbarch_init): gdbarch_register_bytes is now set
8933 dynamicaly during initialization.
8934 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8935 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8936
0e98d0a7
DJ
89372002-03-27 Daniel Jacobowitz <drow@mvista.com>
8938
8939 * gdbserver/server.c (main): Call target_signal_to_host_p
8940 and target_signal_to_host on signals received from the remote.
8941 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8942 target_signal_from_host on signals sent to the remote.
8943 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8944 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8945
3130066b
DJ
89462002-03-27 Daniel Jacobowitz <drow@mvista.com>
8947
8948 * signals/signals.c: Include "server.h" in gdbserver build.
8949 (target_signal_from_name): Don't use STREQ.
8950 (_initialize_signals): Likewise. Don't include function in
8951 gdbserver build.
8952
9aedf4f4
DJ
89532002-03-27 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * signals.c: Moved to...
8956 * signals/signals.c: Here.
7e336ba1 8957 * Makefile (signals.o): Update.
9aedf4f4 8958
3fa41cdb
JL
89592002-03-26 Jeff Law (law@redhat.com)
8960
8961 * somread.c (som_symtab_read): Remove some commented out code and
8962 updated related comments. Do not set the minimal symbol table to
8963 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8964 in a dynamic executable.
8965 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8966 where we are unable to find the minimal symbol for the given
8967 PC value.
8968
ee677e8d
MS
89692002-03-25 Jeff Law (law@redhat.com)
8970
8971 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8972
e76e1718
ML
89732002-03-25 Michal Ludvig <mludvig@suse.cz>
8974
8975 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8976
18a642a1
AC
89772002-03-23 Andrew Cagney <ac131313@redhat.com>
8978
8979 * command.h: Update copyright.
8980 (struct cmd_list_element): Replace definition with opaque
8981 declaration.
8982 (enum cmd_types): Document that it will eventually be moved to
8983 cli/cli-decode.h
8984 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8985 (MALLOCED_REPLACEMENT): Delete macro.
8986 * Makefile.in (cli_decode_h): Add $(command_h).
8987 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8988 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8989 * completer.c: Include "cli/cli-decode.h".
8990 * maint.c: Include "cli/cli-decode.h".
8991 * cli/cli-decode.h: Include "command.h".
8992 (enum command_class): Delete.
8993 (enum cmd_types): Comment out.
8994 (enum cmd_auto_boolean): Delete.
8995 (enum var_types): Delete.
8996
b2875cc0
AC
89972002-03-23 Andrew Cagney <ac131313@redhat.com>
8998
8999 * cli/cli-decode.c: Include "gdb_assert.h".
9000 (add_set_or_show_cmd): New static function.
9001 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9002 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9003 all fields, such as func, from the set command.
9004
3b45974e
AC
90052002-03-23 Andrew Cagney <ac131313@redhat.com>
9006
9007 * MAINTAINERS (sh-elf): Change warning flag to -w.
9008
823ca731
AC
90092002-03-23 Andrew Cagney <cagney@redhat.com>
9010
9011 * defs.h (error): Add printf format attribute.
9012 * thread-db.c (thread_from_lwp): Fix error format string.
9013 * stack.c (parse_frame_specification): Ditto.
9014 * cli/cli-decode.c (undef_cmd_error): Ditto.
9015 * scm-lang.c (scm_lookup_name): Ditto.
9016 * tracepoint.c (trace_error): Ditto.
9017 * remote-utils.c (usage): Ditto.
9018 * remote.c (compare_sections_command): Ditto.
9019 Fix PR gdb/328.
9020
0e101458
AC
90212002-03-22 Andrew Cagney <ac131313@redhat.com>
9022
9023 * gdbtypes.c (append_composite_type_field): New function.
9024 (init_composite_type): New function.
9025 * gdbtypes.h (append_composite_type_field): Declare.
9026 (init_composite_type): Ditto.
9027
8e0662df
EZ
90282002-03-22 Elena Zannoni <ezannoni@redhat.com>
9029
9030 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9031 function.
8e0662df
EZ
9032 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9033 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9034 structure returning convention for SYSV ABI case, but not
9035 for GNU/Linux, FreeBSD, or NetBSD.
9036
3121eff0
DJ
90372002-03-22 Daniel Jacobowitz <drow@mvista.com>
9038
9039 * symtab.h (lookup_block_symbol): Add mangled_name argument
9040 to prototype.
9041
9042 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9043 with new mangled_name argument.
9044 * linespec.c (decode_line_1): Likewise.
9045 * valops (value_of_this): Likewise.
9046 * symtab.c (lookup_transparent_type): Likewise.
9047 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9048 (lookup_symbol): If we are given a mangled name, pass it down
9049 to lookup_symbol_aux.
9050 (lookup_block_symbol): If we are given a mangled name to check
9051 against, only return symbols which match it.
9052
349b409f
CF
90532002-03-22 Christopher Faylor <cgf@redhat.com>
9054
9055 * win32-nat.c (child_create_inferior): Check for proper shell to use
9056 here, in case the user changes it on the fly.
9057 (_initialize_inftarg): Remove shell path considerations.
9058
2a873819
EZ
90592002-03-21 Elena Zannoni <ezannoni@redhat.com>
9060
9061 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9062 for gdbarch_max_register_raw_size and max_register_virtual_size.
9063 Adjust copyright year.
9064
a1b9830c
DJ
90652002-03-21 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9068 in a function to cover the entire beginning of the function
9069 as well if it does not already.
9070
8b5790f2
TR
90712002-03-21 Tom Rix <trix@redhat.com>
9072
9073 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9074 (rs6000_ptrace64): Renamed from ptrace64.
9075
bdbe5747
MH
90762002-03-20 Martin M. Hunt <hunt@redhat.com>
9077
9078 * gdbserver/remote-utils.c (remote_open): Don't call
9079 getprotobyname, we're all using TCP here so just use
9080 IPPROTO_TCP.
7e336ba1 9081 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9082
90832002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9084
bdbe5747
MH
9085 * regcache.c (_initialize_regcache): No need to call
9086 build_regcache() at this time; it gets called whenever
9087 the gdbarch changes.
9088
7781cd62
DB
90892002-03-20 David O'Brien <obrien@FreeBSD.org>
9090
9091 * sparc-nat.c: Include sys/param.h where possible.
9092
f65ca430
DJ
90932002-03-20 Daniel Jacobowitz <drow@mvista.com>
9094
9095 Fix PR gdb/422.
9096 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9097 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9098 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9099 complex types.
9100 * stabsread.c (rs6000_builtin_type): Likewise.
9101 (read_sun_floating_type): Likewise.
9102
0c867556
PS
91032002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9104
9105 * stabsread.c (read_member_functions): Remove skip code for duplicate
9106 constructor/destructor methods. Use standard parsing for these
9107 methods and just do not chain them to the list of methods after
9108 parsing.
9109
12b9c64f
AO
91102002-03-19 Alexandre Oliva <aoliva@redhat.com>
9111
9112 * coffread.c: Remove redundant static declarations. Replace
9113 occurrences of `PTR' with `void *'.
9114 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9115 * top.h (quit_cover): Likewise.
9116 * defs.h (catch_errors): Likewise.
9117
349c5d5f
AC
91182002-03-18 Andrew Cagney <ac131313@redhat.com>
9119
9120 * defs.h (XMALLOC): Define.
9121 * gdb-events.sh (XMALLOC): Delete macro.
9122 * gdb-events.c, gdb-events.h: Regenerate.
9123 * gdbarch.sh (XMALLOC): Delete macro.
9124 * gdbarch.c: Regenerate.
9125 * serial.c (XMALLOC): Delete macro.
9126 * ui-file.c (XMALLOC): Ditto.
9127 * ser-unix.h (XMALLOC): Ditto.
9128 * sh-tdep.c (XMALLOC): Ditto.
9129 * ui-out.c (XMALLOC): Ditto.
9130 * utils.c (XMALLOC): Ditto.
9131 * i386-tdep.c (XMALLOC): Ditto.
9132 * gdb-events.c (XMALLOC): Ditto.
9133 * d10v-tdep.c (XMALLOC): Ditto.
9134 * cli-out.c (XMALLOC): Ditto.
9135
9136 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9137 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9138 * ui-file.c, ui-out.c: Ditto.
9139
7d0766f3
AC
91402002-03-18 Andrew Cagney <ac131313@redhat.com>
9141
9142 * command.h (struct cmd_list_element): Add field context.
9143 (set_cmd_context, get_cmd_context): Declare.
9144 * cli/cli-decode.h: Ditto.
9145 * cli/cli-decode.c (get_cmd_context): New function.
9146 (set_cmd_context): New function.
9147 (add_cmd): Initialize context.
9148 Part of fixing PR gdb/145 and PR gdb/146.
9149
5913bcb0
AC
91502002-03-17 Andrew Cagney <ac131313@redhat.com>
9151
1868c04e
AC
9152 * cli/cli-decode.c (cmd_type): New function.
9153 * command.h (cmd_type): Declare.
9154 * infrun.c (set_schedlock_func): Call function cmd_type.
9155 * kod.c (kod_set_os): Call cmd_type.
9156 * cris-tdep.c (cris_version_update): Use function cmd_type.
9157 (cris_mode_update, cris_abi_update): Ditto.
9158
5913bcb0
AC
9159 * command.h: (execute_cmd_post_hook): Declare.
9160 (execute_cmd_pre_hook): Declare.
9161 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9162 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9163 functions. Execute pre/post hook while ensuring that afterwords
9164 hook_in is cleared.
9165 * top.c (execute_command): Use execute_cmd_post_hook, and
9166 execute_cmd_pre_hook to execute pre/post commands.
9167 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9168 hook_stop_stub.
9169 (hook_stop_stub): Call execute_cmd_pre_hook.
9170
b51450c9
AC
91712002-03-17 Andrew Cagney <ac131313@redhat.com>
9172
9173 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9174 set'' and this leads to a core dump. Move xstrdup of
9175 operating_system to after check that it is not NULL.
9176
f66c9f11
AC
91772002-03-17 Andrew Cagney <ac131313@redhat.com>
9178
8e694ecf
AC
9179 * kod.c (kod_set_os): Remove unnecessary check that
9180 ``command->type'' is set_cmd.
9181
f66c9f11
AC
9182 * valprint.c (set_input_radix): Use input_radix.
9183 (set_output_radix): Use output_radix.
9184 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9185 isn't reverted.
9186
9d01611c
AC
91872002-03-16 Andrew Cagney <ac131313@redhat.com>
9188
9189 * value.h (struct value): Delete field ``substring_addr''. Change
9190 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9191 force_core_addr_align and force_pointer_aligh.
9192
9193 * value.h (struct value): Fix typo in above change.
9d01611c 9194
4156bb53
PS
91952002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9196
9197 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9198 to fix internal_error from ``maintenance print architecture''.
9199
0e5e3ea6
PS
92002002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9201
9202 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9203 for gcc versions after gcc-2.8.1.
9204
9b013045
PS
92052002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9206
9207 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9208 for method resolution. Restore adjustment of ``this'' pointer after
9209 calling value_struct_elt, which was accidentally removed during the
9210 HP merge.
9211
376c9600
AC
92122002-03-15 Andrew Cagney <ac131313@redhat.com>
9213
9214 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9215 value_of_register.
9216 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9217 get_saved_register.
9218 * value.h (value_of_register): Update.
9219
a4db0f07
RH
92202002-03-14 Richard Henderson <rth@redhat.com>
9221
9222 * configure.in: Detect declaration for canonicalize_file_name.
9223 * utils.c (canonicalize_file_name): Declare, if needed.
9224 (gdb_realpath): Prefer realpath if available and usable.
9225 * config.in, configure: Rebuild.
9226
96383835
RH
92272002-03-14 Richard Henderson <rth@redhat.com>
9228
9229 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9230 a constant array bound.
9231
9232 * MAINTAINERS: Add myself to write-after-approval.
9233
75245b24
MS
92342002-03-14 Michael Snyder <msnyder@redhat.com>
9235
9236 * symfile.c (syms_from_objfile): Return immediately if no syms.
9237 (symbol_file_add): Return immediately if no syms.
9238 (find_sym_fns): Return immediately if no syms.
9239
e641a1ca
ML
92402002-03-13 Michal Ludvig <mludvig@suse.cz>
9241
9242 * gdbserver/remote-util.c (remote_open): Print remote-side's
9243 IP address when remote debugging over the network.
7e336ba1 9244
df08bfec
DB
92452002-03-12 David O'Brien <obrien@FreeBSD.org>
9246
9247 * config/sparc/fbsd.mh: Fix copyright.
9248 * config/sparc/fbsd.mt: Likewise.
9249
9a57864f
RE
92502002-03-11 Richard Earnshaw <rearnsha@arm.com>
9251
9252 * MAINTAINERS: Fix typo in name of gdb warnings option.
9253 (x86-64): Fix formating so that this can be parsed by awk.
9254
dd7bf85e
DJ
92552002-03-10 Daniel Jacobowitz <drow@mvista.com>
9256
9257 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9258 * defs.h: Include "gdb/signals.h".
9259 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9260
33a0a2ac
ML
92612002-03-10 Michal Ludvig <mludvig@suse.cz>
9262
9263 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9264 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9265 from x86-64-tdep.h
9266
dd824b04
DJ
92672002-03-10 Daniel Jacobowitz <drow@mvista.com>
9268 Don Howard <dhoward@redhat.com>
9269
9270 * mips-tdep.c (ST0_FR): Define.
9271 (mips2_fp_compat): New function, temporarily disabled.
9272 (mips_read_fp_register_single): New function.
9273 (mips_read_fp_register_double): New function.
9274 (mips_print_register): Use them.
9275 (do_fp_register_row): Likewise.
9276
6a41ff59
AC
92772002-03-09 Andrew Cagney <ac131313@redhat.com>
9278
9279 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9280 approval''.
9281
4ea09c10
PS
92822002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9283
9284 * stabsread.c (read_member_functions): Fix is_stub test for
9285 static member functions, improve comment.
9286
6ccc741d
RE
92872002-03-07 Richard Earnshaw <rearnsha@arm.com>
9288
9289 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9290 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9291 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9292 commands that set boolean values.
9293 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9294 (arm_rdi_resume): Always initialize PC.
9295 (arm_rdi_open): Don't use rslt as a boolean.
9296 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9297 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9298 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9299 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9300
438013df
AO
93012002-03-06 Alexandre Oliva <aoliva@redhat.com>
9302
9303 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9304 * configure: Rebuilt.
9305
70ed8774
SC
93062002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9307
9308 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9309 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9310
5ba2abeb
AC
93112002-03-06 Andrew Cagney <ac131313@redhat.com>
9312
9313 * cli/cli-decode.c (set_cmd_completer): New function.
9314 * command.h (set_cmd_completer): Declare.
9315 * cli/cli-decode.h (set_cmd_completer): Ditto.
9316
9317 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9318 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9319 * win32-nat.c (_initialize_inftarg): Ditto.
9320 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9321 * proc-api.c (_initialize_proc_api): Ditto.
9322 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9323 * source.c (_initialize_source): Ditto.
9324 * exec.c (_initialize_exec): Ditto.
9325 * solib.c (_initialize_solib): Ditto.
9326 * top.c (init_main): Ditto.
9327 * tracepoint.c (_initialize_tracepoint): Ditto.
9328 * symfile.c (_initialize_symfile): Ditto.
9329 * printcmd.c (_initialize_printcmd): Ditto.
9330 * infcmd.c (_initialize_infcmd): Ditto.
9331 * corefile.c (_initialize_core): Ditto.
9332
f779ca99
AC
93332002-03-05 Andrew Cagney <ac131313@redhat.com>
9334
9335 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9336
01a3934b
AC
93372002-03-05 Andrew Cagney <ac131313@redhat.com>
9338
9339 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9340
37057839
AC
93412002-03-05 Andrew Cagney <ac131313@redhat.com>
9342
9343 * NEWS: Update headings, 5.2 has branched.
9344
c6ecbae5
DJ
93452002-03-04 Daniel Jacobowitz <drow@mvista.com>
9346
9347 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9348 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9349 (register_addr, REGISTER_RAW_SIZE): Likewise.
9350 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9351 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9352
e9f30c21
ML
93532002-03-03 Michal Ludvig <mludvig@suse.cz>
9354
9355 * MAINTAINERS (x86-64): Add myself.
9356 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9357 changed value_ptr -> struct value *
9358
54394ac3
DB
93592002-03-01 David O'Brien <obrien@FreeBSD.org>
9360
9361 * configure.host (sparc64-*-freebsd): Add.
9362 * configure.tgt: Likewise.
9363 * config/sparc/fbsd.mh: New file.
9364 * config/sparc/fbsd.mt: Likewise.
9365 * config/sparc/nm-fbsd.h: Likewise.
9366 * config/sparc/tm-fbsd.h: Likewise.
9367
bfe95955
DJ
93682002-03-01 Daniel Jacobowitz <drow@mvista.com>
9369
9370 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9371 regformats/reg-s390x.dat.
9372
f33c6cbf
AC
93732002-03-01 Andrew Cagney <ac131313@redhat.com>
9374
9375 * utils.c: Add FIXME explaining true/false problem.
9376
5ecaa7dd
AC
93772002-02-28 Andrew Cagney <ac131313@redhat.com>
9378
9379 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9380
2a251cc2
MC
93812002-02-28 Michael Chastain <mec@shout.net>
9382
9383 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9384
6a8031a3 93852002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9386
9387 * gdbserver/linux-s390-low.c: New file.
9388 * regformats/reg-s390.dat: New file.
9389 * regformats/reg-s390x.dat: New file.
9390 * gdbserver/configure.srv: Add S/390.
9391 * gdbserver/Makefile.in: Add S/390.
9392 * configure.tgt: Enable gdbserver for S/390.
9393
ac469903
EZ
93942002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9395
9396 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9397 first line of the doc string for "info dos", except at the end of
9398 the sentence, since the short help stops at the first period.
9399
985cb1a3
JM
94002002-02-28 Jason Merrill <jason@redhat.com>
9401
9402 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9403
c570663e
FF
94042002-02-27 Fred Fish <fnf@redhat.com>
9405
9406 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9407 comment (dumy -> dummy).
9408
43630227
PS
94092002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9410
9411 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9412
b84911e8
RB
94132002-02-27 Rodney Brown <rbrown64@csc.com.au>
9414
9415 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9416
58caa3dc
DJ
94172002-02-27 Daniel Jacobowitz <drow@mvista.com>
9418
9419 * gdbserver/acconfig.h: New file.
9420 * gdbserver/i387-fp.c: New file.
9421 * gdbserver/i387-fp.h: New file.
9422 * gdbserver/linux-x86-64.c: New file.
9423 * regformats/reg-x86-64.dat: New file.
9424 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9425 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9426 * gdbserver/configure.in: Add support for regsets.
9427 * gdbserver/config.in: Regenerate.
9428 * gdbserver/configure: Regenerate.
9429 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9430 * gdbserver/linux-low.h: New file.
9431 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9432 for regsets.
9433 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9434 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9435 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9436 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9437 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9438 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9439 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9440 "i387-fp.h". Add PTRACE_GETREGS and friends.
9441 * gdbserver/regcache.c (supply_register): New function.
9442 (supply_register_by_name): New function.
9443 (collect_register): New function.
9444 (collect_register_by_name): New function.
9445
93652174
DJ
94462002-02-27 Daniel Jacobowitz <drow@mvista.com>
9447
9448 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9449 (config.status): Add configure.srv dependency.
9450 (server_h): Add config.h dependency.
9451
a02e4a61
DJ
94522002-02-27 Daniel Jacobowitz <drow@mvista.com>
9453
9454 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9455 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9456 * gdbserver/configure.srv: Change i386-*-linux* to use
9457 reg-i386-linux.o.
9458
ce0eebec
AC
94592002-02-26 Andrew Cagney <ac131313@redhat.com>
9460
9461 * x86-64-tdep.c: Re-indent. Update copyright date.
9462
82dbc5f7
AC
94632002-02-26 Andrew Cagney <ac131313@redhat.com>
9464
9465 From Michal Ludvig <mludvig@suse.cz>:
9466 * x86-64-tdep.c (value.h): Delete.
9467 (gdb_assert.h): Include.
9468 (x86_64_register_convert_to_virtual,
9469 x86_64_register_convert_to_raw ): Add check which lets only
9470 floating-point values to be converted.
9471 (value_push): Delete.
9472 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9473 (i386_gdbarch_init): Number of register_bytes fixed.
9474
e4621584
AC
94752002-02-26 Andrew Cagney <ac131313@redhat.com>
9476
9477 * MAINTAINERS: Add x86-64 target.
9478
81a9a963
AC
94792002-02-26 Andrew Cagney <ac131313@redhat.com>
9480
9481 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9482 * osfsolib.c (solib_map_sections): Ditto.
9483 * irix5-nat.c (solib_map_sections): Ditto.
9484 * corelow.c (gdb_check_format): Ditto.
9485 * symfile.c (symfile_bfd_open): Ditto.
9486 * solib.c (solib_map_sections): Ditto.
9487 Fix PR gdb/354.
7e336ba1 9488
0f017ab9
AC
94892002-02-26 Andrew Cagney <ac131313@redhat.com>
9490
9491 * remote.c (_initialize_remote): By default, disable ``e'' and
9492 ``E'' step out-of-range packets.
9493
75738c29
AS
94942002-02-26 Andreas Schwab <schwab@suse.de>
9495
9496 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9497 m68k_linux_frame_saved_pc.
9498 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9499 in_sigtramp.
9500 (SIGCONTEXT_PC_OFFSET): Remove.
9501 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9502 m68k_linux_sigtramp_saved_pc): New functions.
9503 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9504 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9505 (UCONTEXT_PC_OFFSET): Define.
9506 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9507 non-RT and RT signal trampolines.
9508
7e8ed687
RE
95092002-02-26 Richard Earnshaw <rearnsha@arm.com>
9510
9511 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9512 (TARGET_NBPG, STACK_END_ADDR): Delete
9513 (VARIABLES_INSIDE_BLOCK): Delete.
9514
6972bc8b
AC
95152002-02-25 Andrew Cagney <ac131313@redhat.com>
9516
9517 * utils.c (perror_with_name): Make string parameter constant.
9518 (print_sys_errmsg): Ditto.
9519 (query): Ditto.
9520 * defs.h (perror_with_name): Update.
9521 (print_sys_errmsg): Update.
9522 (query): Update.
9523
aa32f823
DJ
95242002-02-25 Daniel Jacobowitz <drow@mvista.com>
9525
9526 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9527 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9528
19caaa45
PS
95292002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9530
9531 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9532 if it already matches the current architecture from the exec file.
9533 Include arch-utils.h for gdbarch_info_init prototype.
9534 * Makefile.in (rs6000-nat.o): Update dependencies.
9535
d951901f
EZ
95362002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9537
9538 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9539 list of exported variables.
9540
7ea81414
DJ
95412002-02-24 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * gdbserver/configure.srv: New file.
9544 * gdbserver/configure.in: Use configure.srv instead
9545 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9546 from it.
9547 * gdbserver/configure: Regenerated.
9548 * gdbserver/terminal.h: New file.
9549 * gdbserver/Makefile.in: Update for configure changes. Remove
9550 more unneeded include paths.
9551
080fe24b
AC
95522002-02-24 Andrew Cagney <ac131313@redhat.com>
9553
9554 From wiz at danbala:
9555 * config/sparc/tm-sp64.h: Fix grammar and typos.
9556 Fix PR gdb/287.
9557
8605d56e
AC
95582002-02-24 Andrew Cagney <ac131313@redhat.com>
9559
9560 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9561 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9562 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9563 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9564 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9565 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9566 * s390-tdep.c: Ditto.
92362027
AC
9567 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9568 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9569 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9570 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9571 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9572 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9573 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9574 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9575 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9576 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9577 Fix PR gdb/378.
7e336ba1 9578
8ed32cc0
AC
95792002-02-23 Andrew Cagney <ac131313@redhat.com>
9580
a3007b6f
AC
9581 * lin-thread.c: Delete file.
9582 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9583 to gdb_proc_service.h.
9584 * configure: Re-generate.
9585
50a9e2f1
AC
9586 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9587 * serial.c (serial_open): Delete check for "ocd".
9588 Fix PR gdb/349.
9589
8b6e7932
AC
9590 * Makefile.in (linux-thread.o): Delete target.
9591 * linux-thread.c: Delete file.
9592
d155c46b
AC
9593 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9594 renamed SH files to be consistent.
9595
8ed32cc0
AC
9596 * symtab.c (sort_search_symbols): Use xfree.
9597
0e18d038
RE
95982002-02-23 Richard Earnshaw <rearnsha@arm.com>
9599
9600 * arm-linux-tdep.c (arm_linux_init_abi): Register
9601 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9602 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9603 definition with undef, since we don't want the sysvr4 definition.
9604 (SKIP_TRAMPOLINE_CODE): Likewise.
9605
27aac7ff
AC
96062002-02-23 Andrew Cagney <ac131313@redhat.com>
9607
9608 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9609
9610 * configure.in: (AC_CHECK_FUNCS) Added test for
9611 canonicalize_file_name Regenerated.
9612 * config.in, configure: Regenerated.
9613 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9614 defined use canonicalize_file_name.
7e336ba1 9615
65a6e0ee
MC
96162002-02-23 Michael Chastain <mec@shout.net>
9617
9618 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9619
47b95330
AC
96202002-02-23 Andrew Cagney <ac131313@redhat.com>
9621
9622 * README: Remove references to cygnus.com.
9623 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9624 dot com'' form. Remove references to cygnus.com and sourceware.
9625
696f451b
AC
96262002-02-23 Andrew Cagney <ac131313@redhat.com>
9627
9628 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9629 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9630 1003.1-2001 no longer allows "head -1".
9631 * gdb/Makefile.in (version.c): Likewise.
9632 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9633 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9634 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9635
bbaca940
AC
96362002-02-23 Andrew Cagney <ac131313@redhat.com>
9637
9638 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9639 * command.h (cmd_cfunc_eq): Declare.
9640 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9641
9642 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9643 ``struct cmd_list_element *''.
9644 * cli/cli-cmds.c (is_complete_command): Update. Use
9645 cmd_cfunc_eq.
9646 * top.c (execute_command): Pass the command to
9647 is_complete_command.
9648 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9649
b8b8b047
AC
96502002-02-23 Andrew Cagney <ac131313@redhat.com>
9651
9652 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9653 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9654 architecture defines.
9655 * s390-tdep.c (s390_gdbarch_init): Likewise.
9656
19d3fc80
RE
96572002-02-23 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9660 (arm_linux_push_arguments): Likewise.
9661 (arm_linux_init_abi): Register them. Also register linux-specific
9662 call_dummy_words.
9663 (find_minsym_and_objfile): Use strcmp, not STREQ.
9664 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9665 (arm_linux_call_dummy_words): Delete declaration.
9666 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9667 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9668 declarations.
9669 (LOWEST_PC): Delete.
9670
3ab13650
PS
96712002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9672
9673 * maint.c (print_section_info): Do not prepend `0x' to filepos
9674 output, it will be handled by local_hex_string_custom.
9675
19d3fc80 96762002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9677
9678 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9679 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9680 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9681
d85a5daf
JB
96822002-02-22 Jim Blandy <jimb@redhat.com>
9683
9684 Indicate that the bcache functions don't change the strings
9685 they're passed.
9686 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9687 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9688
eeb25b8a
PM
96892002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9690
9691 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9692
6badb179
CF
96932002-02-21 Christopher Faylor <cgf@redhat.com>
9694
9695 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9696 find the complete path to a loaded DLL.
9697
e8717518
FF
96982002-02-21 Fred Fish <fnf@redhat.com>
9699
9700 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9701 that marks the end of the range of a function, enter a line number
9702 entry that has a line number of zero and a PC offset that matches
9703 the end of the function. This starts a range of PC's for which no
9704 line number information is known.
9705 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9706 PC's for which no line number info is found (line number is zero)
9707 then we didn't find any valid line information.
9708 * symtab.h: Document use of zero line number entry.
9709
9abe5450
EZ
97102002-02-21 Elena Zannoni <ezannoni@redhat.com>
9711
9712 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9713 (have_ptrace_getvrregs): Define for run time checks.
9714 (gdb_vrregset_t): New type for Altivec register handling.
9715 (fetch_register, store_register): Fetch/store altivec register
9716 when needed.
9717 (fetch_altivec_register, store_altivec_register): New functions.
9718 (supply_vrregset, fill_vrregset): New functions.
9719 (fetch_altivec_registers, store_altivec_registers): New functions.
9720 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9721 registers as well.
9722
aaa38bb5
AJ
97232002-02-21 Jiri Smid <smid@suse.cz>
9724
9725 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9726
b34db576
RE
97272002-02-21 Richard Earnshaw <rearnsha@arm.com>
9728
9729 * Makefile.in (armnbsd-nat.o): Update dependencies.
9730 * armnbsd-nat.c (supply_gregset): New function. Common code to
9731 supply the integer register set.
9732 (supply_fparegset): New function. Similar for FPA registers.
9733 (fetch_regs, fetch_fp_regs): Use them.
9734 (fetch_core_registers): Likewise.
9735 (fetch_elfcore_registers): New function.
9736 (arm_netbsd_elfcore_fns): New core-file type specification.
9737 (_initialize_arm_netbsd_nat): Register it.
9738
3e56fc4b
RE
97392002-02-21 Richard Earnshaw <rearnsha@arm.com>
9740
9741 * armnbsd-nat.c: Include gdbcore.h.
9742 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9743 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9744 'void' to declaration, to shut up ARI.
9745 (fetch_core_registers): Make static. Rewrite using supply_register.
9746 (arm_netbsd_core_fns): New core-file type specification.
9747 (_initialize_arm_netbsd_nat): New function.
9748
097f6b0b
CF
97492002-02-21 Christopher Faylor <cgf@redhat.com>
9750
9751 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9752 value.
9753
c914e0cc
CF
97542002-02-20 Christopher Faylor <cgf@redhat.com>
9755
9756 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9757 fails.
9758
385fa495
DJ
97592002-02-20 Daniel Jacobowitz <drow@mvista.com>
9760
9761 * jv-exp.y (parse_number): Change type of implicit longs
9762 to builtin_type_uint64.
9763
e5f1222d
DJ
97642002-02-20 Daniel Jacobowitz <drow@mvista.com>
9765
9766 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9767 to be an integer instead of a `union wait'.
9768
75c9abc6
DJ
97692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9770
9771 * mips-linux-nat.c: Call the operating system GNU/Linux.
9772 * mips-linux-tdep.c: Likewise.
9773 * mips-tdep.c: Likewise.
9774
551792a5
DJ
97752002-02-20 Daniel Jacobowitz <drow@mvista.com>
9776
9777 Fix PR gdb/265.
9778 * jv-exp.y (parse_number): Handle 64-bit integers.
9779
ee6e2b82
DJ
97802002-02-20 Daniel Jacobowitz <drow@mvista.com>
9781
9782 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9783 AC_STDC_HEADERS to AC_HEADER_STDC.
9784 * gdbserver/configure: Regenerated.
9785
a48442a0
RE
97862002-02-20 Richard Earnshaw <rearnsha@arm.com>
9787
9788 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9789 is defined.
9790 * sparc-tdep.c (get_longjmp_target): Likewise.
9791
fe419ffc
RE
97922002-02-20 Richard Earnshaw <rearnsha@arm.com>
9793
9794 * News: Add news about ARM and Multi-arch. Mention the new target
9795 arm*-*-netbsd*.
9796
5832ed7e
JB
97972002-02-19 Jim Blandy <jimb@redhat.com>
9798
9799 * stabsread.c (error_type_complaint): Improve error message.
9800
84563040
DJ
98012002-02-19 Daniel Jacobowitz <drow@mvista.com>
9802
9803 * gdbserver/README: Update documentation.
9804 * gdbserver/configure.in: Update configury to match documentation.
9805 * gdbserver/Makefile.in: Likewise.
9806 * gdbserver/configure: Regenerated.
9807 * gdbserver/aclocal.m4: New file, generated by aclocal.
9808 * gdbserver/config.in: New file, generated by autoheader.
9809
375fd65b
RE
98102002-02-19 Richard Earnshaw <rearnsha@arm.com>
9811
9812 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9813 armnbsd-nat.c.
9814
08216dd7
RE
98152002-02-19 Richard Earnshaw <rearnsha@arm.com>
9816
9817 * arm-tdep.h (enum arm_float_model): New enum.
9818 (struct gdbarch_tdep): Add fp_model.
9819 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9820 up floating-point conversions until we know the floating-point model
9821 in use by the inferior. Don't complain about being unable to
9822 determine the ABI of the inferior when we don't have one.
9823 (arm_extract_return_value): Support different floating-point models.
9824 (arm_store_return_value): Likewise.
aaa38bb5 9825 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9826 ARM_FLOAT_SOFT.
9827 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9828
65d6d66a
PS
98292002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9830
9831 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9832 of ``current_gdbarch''.
9833
47221191
RE
98342002-02-19 Richard Earnshaw <rearnsha@arm.com>
9835
9836 * armnbsd-nat.c : ANSIfy all function declarations.
9837 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9838 (fetch_inferior_registers): Re-implement in terms of above.
9839 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9840 (store_inferior_registers): Re-implement in terms of above.
9841
fdf39c9a
RE
98422002-02-19 Richard Earnshaw <rearnsha@arm.com>
9843
aaa38bb5 9844 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9845 kernel.
9846 * arm-linux-tdep.c: Likewise.
9847 * config/arm/tm-linux.h: Likewise.
9848
93247f88
RE
98492002-02-19 Richard Earnshaw <rearnsha@arm.com>
9850
9851 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9852 * config/arm/nbsd.mt (TM_FILE): Delete.
9853 * config/arm/tm-nbsd.h: Delete.
9854
d7b486e7
RE
98552002-02-19 Richard Earnshaw <rearnsha@arm.com>
9856
9857 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9858 Initialize CALL_DUMMY_LENGTH.
9859
41d39a95
RE
98602002-02-19 Richard Earnshaw <rearnsha@arm.com>
9861
9862 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9863 function.
9864 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9865 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9866 defines one thing and that is incorrect for this port.
9867 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9868
e1195560
PM
98692002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9870
9871 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9872
c1748f97
PM
98732002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9874
9875 * win32-nat.c (display_selector): New function. Displays information
9876 about the information returned by GetThreadSelectorEntry API function.
9877 (display_selectors): New function. Displays the infomation of
9878 the selector given as argument, or of CS, DS ans FS selectors
9879 if no argument is given.
9880 ( _initialize_inftarg): Add "w32" as info prefix command.
9881 Add "info w32 selector" as command calling display_selectors.
9882
e41e6bbf
PM
98832002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9884
9885 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9886 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9887 if not defined.
9888
0d3a9f48
RE
98892002-02-18 Richard Earnshaw <rearnsha@arm.com>
9890
9891 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9892
3fb4b924
RE
98932002-02-18 Richard Earnshaw <rearnsha@arm.com>
9894
9895 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9896 (arm_fix_call_dummy): Call it.
9897 (arm_call_dummy_breakpoint_offset): Delete.
9898 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9899 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9900
7f55af32
AC
99012002-02-18 Andrew Cagney <ac131313@redhat.com>
9902
9903 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9904 Default to func_frame_chain_valid.
9905 * gdbarch.h, gdbarch.c: Re-generate.
9906 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9907
05f13b9c
EZ
99082002-02-18 Elena Zannoni <ezannoni@redhat.com>
9909
9910 * ppc-linux-nat.c: Update copyright.
9911 (fetch_register, store_register): Add tid parameter, don't compute
9912 tid here.
9913 (fetch_ppc_registers, store_ppc_registers): Add tid
9914 parameter. Pass it along to callees.
9915 (fetch_inferior_registers, store_inferior_registers): Compute tid
9916 here, and pass it to calleed functions.
9917 (fill_gregset, supply_fpregset): Clean up formatting.
9918
d7afb4c9
RE
99192002-02-18 Richard Earnshaw <rearnsha@arm.com>
9920
9921 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9922 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9923
9df628e0
RE
99242002-02-18 Richard Earnshaw <rearnsha@arm.com>
9925
9926 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9927 * gdbarch.c gdbarch.h: Regenerate.
9928 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9929 function.
9930 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9931 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9932 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9933
9934 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9935 * arm-tdep.c (arm_get_longjmp_target): New function.
9936 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9937 this to a positive value register arm_get_longjmp_target as the
9938 longjmp handler.
9939 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9940 (arm_linux_init_abi): Set up longjmp description in tdep.
9941 * armnbsd-nat.c (get_longjmp_target): Delete.
9942 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9943 description in tdep.
9944 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9945 (get_longjmp_target): Delete declaration.
9946 (GET_LONGJMP_TARGET): Delete.
9947 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9948 (GET_LONGJMP_TARGET): Delete.
9949
57bc8964
KB
99502002-02-17 Kevin Buettner <kevinb@redhat.com>
9951
9952 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9953 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9954 of ``current_gdbarch''.
9955
83d31a92
TT
99562002-02-17 Tom Tromey <tromey@redhat.com>
9957
9958 * cli/cli-cmds.c (compare_strings): New function.
9959 (complete_command): Only print each unique item once.
9960 * completer.h (complete_line): Declare.
9961 * completer.c (complete_line): New function.
9962 (line_completion_function): Use it.
9963
17ef5d92
AC
99642002-02-16 Andrew Cagney <ac131313@redhat.com>
9965
9966 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9967 * gdbarch.h, gdbarch.c: Re-generate.
9968
491b8946
DJ
99692002-02-16 Daniel Jacobowitz <drow@mvista.com>
9970
9971 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9972
99732002-02-16 Daniel Jacobowitz <drow@mvista.com>
9974
9975 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9976 * valops.c (value_arg_coerce): Don't take the address of a reference
9977 to convert an argument to a reference.
9978
dfe7f3ac
CF
99792002-02-15 Christopher Faylor <cgf@redhat.com>
9980
9981 * win32-nat.c (get_image_name): New function.
9982 (handle_load_dll): Use get_image_name function.
9983 (get_child_debug_event): Avoid registering debug events until possibly
9984 execed process is started.
9985 (child_create_inferior): Allow invocation via shell so that command
9986 line redirection, etc. works ok.
9987 (_initialize_inftarg): Add new command: "set shell" to control whether
9988 a shell is used to start a process.
9989
1d33e73a
DJ
99902002-02-15 Daniel Jacobowitz <drow@mvista.com>
9991
9992 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9993 instead of find_register_by_number.
9994 (cannot_store_register): Likewise.
9995
48cd0caa
PM
99962002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9997
aaa38bb5 9998 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9999 fprintf_unfiltered (gdb_stderr, ...).
10000
8656e7d8
DJ
100012002-02-15 Daniel Jacobowitz <drow@mvista.com>
10002
10003 * gdbserver/gdbserver.1: Document --attach.
10004
66e810cd
RE
100052002-02-15 Richard Earnshaw <rearnsha@arm.com>
10006
10007 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10008 descriptions.
10009 * arm-tdep.c (arm_default_arm_le_breakpoint)
10010 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10011 (arm_default_thumb_be_breakpoint): New. Initialize them from
10012 traditional breakpoint defines.
10013 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10014 (arm_gdbarch_init): Initialize new breakpoint variables.
10015 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10016 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10017 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10018 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10019 code out to ...
10020 (arm_netbsd_init_abi_common): ... here; new function.
10021 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10022 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10023 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10024 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10025
97e03143
RE
100262002-02-15 Richard Earnshaw <rearnsha@arm.com>
10027
10028 * arm-tdep.h (enum arm_abi): New enum.
10029 (struct gdbarch_tdep): New structure.
10030 (LOWEST_PC): Provide a default.
10031 (arm_gdbarch_register_os_abi): Declare new function.
10032 * arm-tdep.c (arm_abi_names): New array.
10033 (process_note_abi_tag_sections): New function.
10034 (get_elfosabi): New function.
10035 (arm_gdbarch_register_os_abi): New function.
10036 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10037 support for that ABI has been built in, then call the appropriate
10038 configuration routine. Use gdbarch_num_regs() to get the number
10039 of registers.
10040 (arm_dump_tdep): New function.
10041 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10042 place-holder functions.
10043 (_initialize_arm_tdep): Register them.
10044 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10045
10046 * armnbsd-tdep.c: New file.
10047 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10048 * config/arm/nbsd.mt (TDEPFILES): Add it.
10049 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10050
10051 * armnbsd-nat.c: Include regcache.h.
10052 * Makefile.in (armnbsd-nat.o): Update dependency list.
10053
10054 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10055
ad68be46
DJ
100562002-02-14 Daniel Jacobowitz <drow@mvista.com>
10057
10058 * gdbserver/Makefile.in: Fix typos in target rules.
10059
003d6d1d
DJ
100602002-02-14 Daniel Jacobowitz <drow@mvista.com>
10061
aaa38bb5 10062 Fix part of PR gdb/267.
003d6d1d
DJ
10063 * linespec.c (find_methods): Handle constructors specially for now.
10064
6b230f1b
CV
100652002-02-14 Corinna Vinschen <vinschen@redhat.com>
10066
10067 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10068 handling.
10069 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10070 standard_coerce_float_to_double().
10071
1ea98d12
CF
100722002-02-14 Christopher Faylor <cgf@redhat.com>
10073
10074 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10075 GDBINIT_FILENAME.
10076
dd47e6fd
EZ
100772002-02-14 Elena Zannoni <ezannoni@redhat.com>
10078
10079 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10080 find_variant_by_name, because it confuses the multiarch
10081 framework. Return NULL if there isn't an architecture with the
10082 user supplied name, instead of forcing a different one without
10083 recording the change with the multiarch machinery.
10084 (find_variant_by_name): Delete.
10085
d7e39b9e
PS
100862002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10087
10088 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10089 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10090
76e42a4f
MH
100912002-02-13 Martin M. Hunt <hunt@redhat.com>
10092
aaa38bb5 10093 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10094 print_frame_info_listing_hook, set current_source_symtab.
10095
0a30fbc4
DJ
100962002-02-14 Daniel Jacobowitz <drow@mvista.com>
10097
10098 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10099 and remove unused $(INCLUDE_DIR).
10100 Add regcache.c to OBS.
10101 Add generated register protocol files to clean target.
10102 Update dependencies for new objects, obsolete old target code.
10103
10104 * gdbserver/linux-low.c: Remove all platform-specific code to
10105 new files. Remove various dead code. Update to use regcache
10106 functionality.
10107 * gdbserver/remote-utils.c (fromhex): Add return statement
10108 to quiet warning.
10109 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10110 constant.
10111 (input_interrupt): Add integer parameter to match prototype
10112 of a signal handler.
10113 (outreg): Use register_data ().
10114 (prepare_resume_reply): Use gdbserver_expedite_regs.
10115 * gdbserver/server.c (main): Dynamically allocate own_buf because
10116 PBUFSIZ is no longer constant. Use registers_to_string () and
10117 registers_from_string ().
10118 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10119 for error (), fatal (), and warning (). Update definition of
10120 PBUFSIZ to use regcache functionality. Add include guard.
10121 * gdbserver/utils.c (fatal): Add missing ``const''.
10122 (warning): New function.
10123
10124 * regformats/regdat.sh: Include "regcache.h" in generated files.
10125 Provide init_registers () function.
10126 * regformats/regdef.h: Add prototype for set_register_cache ().
10127 Add include guard.
10128
10129 * gdbserver/linux-arm-low.c: New file.
10130 * gdbserver/linux-i386-low.c: New file.
10131 * gdbserver/linux-ia64-low.c: New file.
10132 * gdbserver/linux-m68k-low.c: New file.
10133 * gdbserver/linux-mips-low.c: New file.
10134 * gdbserver/linux-ppc-low.c: New file.
10135 * gdbserver/linux-sh-low.c: New file.
10136
10137 * gdbserver/regcache.c: New file.
10138 * gdbserver/regcache.h: New file.
10139
10140 * gdbserver/low-linux.c: Removed obsolete file.
10141
4cc841d0
DJ
101422002-02-14 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10145 * config/i386/linux.mt: Likewise.
10146 * config/ia64/linux.mt: Likewise.
10147 * config/m68k/linux.mh: Likewise.
10148 * config/powerpc/linux.mh: Likewise.
10149 * config/mips/linux.mt: Likewise.
10150
10151 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10152
10153 * config/i386/i386lynx.mh: Mark gdbserver variables
10154 as (currently) obsolete for this target.
10155 * config/i386/nbsd.mt: Likewise.
10156 * config/i386/nbsdelf.mt: Likewise.
10157 * config/m32r/m32r.mt: Likewise.
10158 * config/m68k/m68klynx.mh: Likewise.
10159 * config/m68k/nbsd.mt: Likewise.
10160 * config/m68k/sun3os4.mh: Likewise.
10161 * config/mips/vr5000.mt: Likewise.
10162 * config/ns32k/nbsd.mt: Likewise.
10163 * config/pa/hppabsd.mh: Likewise.
10164 * config/pa/hppaosf.mh: Likewise.
10165 * config/powerpc/nbsd.mt: Likewise.
10166 * config/rs6000/rs6000lynx.mh: Likewise.
10167 * config/s390/s390.mt: Likewise.
10168 * config/s390/s390x.mt: Likewise.
10169 * config/sparc/sparclynx.mh: Likewise.
10170 * config/sparc/sun4os4.mh: Likewise.
10171 * config/i386/x86-64linux.mt: Likewise.
10172 * config/sparc/linux.mh: Likewise.
10173
a85f51e7
DJ
101742002-02-14 Daniel Jacobowitz <drow@mvista.com>
10175
10176 * configure.tgt: Configure gdbserver only for known working
10177 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10178 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10179 SUBDIRS if it is configured. Update comment for ${nativefile}.
10180 * configure: Regenerated.
10181
65554fef
MS
101822002-02-13 Michael Snyder <msnyder@redhat.com>
10183
670a52db
MS
10184 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10185
6dbdc4a3
MS
10186 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10187 (default_gcore_mach): Just return 0, work around a problem in bfd.
10188 (default_gcore_target): OK to return NULL if exec_bfd is null.
10189 (make_mem_sec): Use a cast, avoid a warning.
10190
10191 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10192 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10193 sizeof (host pointer) != sizeof (target pointer)).
10194 (procfs_make_note_section): Avoid overflow in psargs string.
10195
aaa38bb5 10196 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10197 implementation return an error.
10198
101992002-02-13 Rodney Brown <rbrown64@csc.com.au>
10200
10201 * procfs.c (procfs_make_note_section): Provide a default definition
10202 (for alpha-dec-osf4.0f). Fix typos.
10203
1e4d76e7
EZ
102042002-02-13 Elena Zannoni <ezannoni@redhat.com>
10205
10206 * linux-proc.c: Add include of regcache.h.
10207 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10208
b6d1a1d5
AC
102092002-02-13 Andrew Cagney <ac131313@redhat.com>
10210
10211 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10212 * memattr.c (create_mem_region): Disallow useless empty region.
10213 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10214 non-overlapping.
b6d1a1d5 10215
6c6ea35e
MC
102162002-02-13 Michael Chastain <mec@shout.net>
10217
10218 * defs.h: Kill CONST_PTR.
10219 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10220 * c-lang.c (c_builtin_types): Likewise.
10221 * ch-lang.c (ch_builtin_types): Likewise.
10222 * f-lang.c (f_builtin_types): Likewise.
10223 * language.c (unknown_builtin_types): Likewise.
10224 * m2-lang.c (m2_builtin_types): Likewise.
10225 * p-lang.c (pascal_builtin_types): Likewise.
10226 * scm-lang.c (c_builtin_types): Likewise.
10227
3e0b0f48
KS
102282002-02-13 Keith Seitz <keiths@redhat.com>
10229
10230 * arm-tdep.h (arm_get_next_pc): Add declaration.
10231
67255d04
RE
102322002-02-13 Richard Earnshaw <rearnsha@arm.com>
10233
10234 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10235 with other related struct-returning functions.
10236 (arm_extract_struct_value_address): New function.
10237 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10238 initialize float_format, double_format and long_double_format as
10239 appropriate to the endianness of the target.
10240 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10241 (arm_use_struct_convention): Delete declaration.
10242 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10243
079777f6
KS
102442002-02-13 Keith Seitz <keiths@redhat.com>
10245
10246 * defs.h (core_addr_to_string_nz): New function.
10247
34588f23
MK
102482002-02-13 Mark Kettenis <kettenis@gnu.org>
10249
10250 Apply missing bits of 2002-01-15 patch.
10251 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10252 (fill_fpregset): Use i387_fill_fsave.
10253
49b563f9
KS
102542002-02-12 Keith Seitz <keiths@redhat.com>
10255
49b563f9
KS
10256 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10257 (core_addr_to_string_nz): New function.
10258
aeb98c60
RE
102592002-02-11 Richard Earnshaw <rearnsha@arm.com>
10260
10261 * arm-linux-nat.c: Really include arm-tdep.h.
10262 * config/arm/tm-linux.h (struct type, struct value): Declare.
10263
65554fef
MS
102642002-02-11 Michael Snyder <msnyder@redhat.com>
10265
10266 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10267 (gcore section): Ifdef for Solaris and Unixware only.
10268 (procfs_do_thread_registers): Unixware needs one lwpstatus
10269 per thread (not one prstatus or pstatus).
10270 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10271 not over all gdb threads. For unixware, call elfcore_write_pstatus
10272 once before iterating over threads.
10273
34e8f22d
RE
102742002-02-11 Richard Earnshaw <rearnsha@arm.com>
10275
10276 * arm-tdep.h: New file.
10277 * arm-tdep.c: Include arm-tdep.h.
10278 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10279 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10280 (arm_print_float_info, arm_register_type, convert_to_extended)
10281 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10282 (arm_extract_return_value, arm_register_name): Make static.
10283 (arm_software_single_step): Similarly. Fix types in declaration.
10284 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10285 (arm_store_return_value, arm_store_struct_return): New functions.
10286 (arm_gdbarch_init): Register the above functions. Also register
10287 call_dummy_start_offset, sizeof_call_dummy_words,
10288 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10289 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10290 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10291 prologue_cache.saved_regs here, rather than ...
10292 (_initialize_arm_tdep): ... here.
10293 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10294 declarations.
10295 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10296 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10297 (arm_print_float_info, arm_register_type, convert_to_extended)
10298 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10299 (arm_extract_return_value, arm_register_name): Delete declarations.
10300 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10301 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10302 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10303 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10304 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10305 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10306 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10307 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10308 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10309 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10310 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10311 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10312 interface.
10313 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10314 * remote-rdi.c remote-rdp.c: Likewise.
10315 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10316 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10317 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10318 definition.
10319
10320 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10321 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10322 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10323 from non-ARM_ prefixed definitions.
10324 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10325 all uses of above.
10326 * remote-rdi.c remote-rdp.c: Likewise.
10327 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10328
148754e5
RE
103292002-02-11 Richard Earnshaw <rearnsha@arm.com>
10330
10331 * arm-tdep.c (arm_frameless_function_invocation)
10332 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10333 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10334 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10335 (arm_pop_frame, arm_get_next_pc): Make static.
10336 (arm_gdbarch_init): Register above in gdbarch structure.
10337 (arm_read_fp): Renamed from arm_target_read_fp.
10338 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10339 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10340 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10341 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10342 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10343 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10344 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10345 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10346 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10347 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10348 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10349
434d2d4f
DJ
103502002-02-10 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * symtab.c (compare_search_syms): New function.
10353 (sort_search_symbols): New function.
10354 (search_symbols): Sort symbols after searching rather than
10355 before.
10356
55241689
AC
103572002-02-10 Andrew Cagney <ac131313@redhat.com>
10358
10359 * NEWS: Linux -> GNU/Linux.
10360
028c194b
AC
103612002-02-10 Andrew Cagney <ac131313@redhat.com>
10362
10363 * gdbarch.sh: For for level one methods, disallow a definition
10364 when partially multi-arched. Add comments explaining rationale.
10365 * gdbarch.h: Re-generate.
10366
6acf50cd
AC
103672002-02-10 Andrew Cagney <ac131313@redhat.com>
10368
10369 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10370 multi-arch partial.
aaa38bb5 10371
50248794
AC
103722002-02-10 Andrew Cagney <ac131313@redhat.com>
10373
10374 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10375 field. Use diff -u.
10376 * gdbarch.c: Re-generate.
10377
c30e0066
AC
103782002-02-10 Andrew Cagney <ac131313@redhat.com>
10379
9b56c5f3 10380 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10381 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10382 partial.
10383
6e6d6484
AC
103842002-02-10 Andrew Cagney <ac131313@redhat.com>
10385
10386 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10387 multi-arch partial.
10388 (PUSH_ARGUMENTS): Switch to using predefault.
10389 * gdbarch.c: Regenerate.
10390
c203844d
AC
103912002-02-10 Andrew Cagney <ac131313@redhat.com>
10392
10393 * valops.c (PUSH_ARGUMENTS): Delete definition.
10394 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10395 partial. Default to default_push_arguments.
10396 * gdbarch.h, gdbarch.c: Regenerate.
10397
b5a2688f
AC
103982002-02-09 Andrew Cagney <ac131313@redhat.com>
10399
10400 * defs.h (throw_exception): Rename return_to_top_level. Update
10401 comments.
10402 * utils.c (error_stream, internal_verror, quit): Ditto.
10403 * top.c (throw_exception, catcher): Ditto.
10404 * sparclet-rom.c (sparclet_load): Ditto.
10405 * remote.c (interrupt_query, minitelnet): Ditto.
10406 * remote-sds.c (interrupt_query): Ditto.
10407 * remote-mips.c (mips_error, mips_kill): Ditto.
10408 * ocd.c (interrupt_query): Ditto.
10409 * monitor.c (monitor_interrupt_query): Ditto.
10410 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10411 * target.h: Update comment.
aaa38bb5 10412
b5a2688f 10413 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10414
2fa5c1e0
AC
104152002-02-09 Andrew Cagney <ac131313@redhat.com>
10416
10417 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10418 default_double_format.
10419 * gdbarch.h, gdbarch.c: Re-generate.
10420 * findvar.c (floatformat_unknown): Delete variable definition.
10421 * doublest.h (floatformat_unknown): Delete variable declaration.
10422
da966255
JB
104232002-02-09 Jim Blandy <jimb@redhat.com>
10424
10425 * stabsread.c (read_type): Add code to parse Sun's syntax for
10426 prototyped function types.
10427
123a4891
AC
104282002-02-09 Andrew Cagney <ac131313@redhat.com>
10429
10430 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10431 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10432
fb39c8f3
PS
104332002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10434
10435 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10436 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10437 now _initialize_xcoffsolib gets called again and overrides the
10438 commands from solib.c in a native configuration.
10439
0b87a11d
MK
104402002-02-09 Mark Kettenis <kettenis@gnu.org>
10441
10442 * doublest.c (store_typed_floating): Don't try to return a value.
10443 Fixes PR gdb/290.
10444
bdc2fc72
JB
104452002-02-08 Jim Blandy <jimb@redhat.com>
10446
10447 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10448 is prototyped and has no arguments, print its argument list as
10449 `(void)'.
10450
da69bbcf
CD
104512002-02-08 Chris Demetriou <cgd@broadcom.com>
10452
10453 * MAINTAINERS (write-after-approval): Add myself.
10454 (paper-trail): I've escaped!
aaa38bb5 10455
b69571f5
CF
104562002-02-08 Christopher Faylor <cgf@redhat.com>
10457
10458 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10459 changes.
10460 (_initialize_check_for_gdb_ini): Ditto.
10461
f6871398
MH
104622002-02-08 Martin M. Hunt <hunt@redhat.com>
10463
10464 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10465 xaprintf -> xasprintf.
10466
4e52d31c
PM
104672002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10468
10469 * win32-nat.c: Remove use of printf and sprintf functions.
10470
39bbf761
RE
104712002-02-08 Richard Earnshaw <rearnsha@arm.com>
10472
10473 * arm-tdep.c (arm_frame_chain_valid): Make static.
10474 (arm_push_arguments): Likewise.
10475 (arm_gdbarch_init): New function.
10476 (_initialize_arm_tdep): Call it.
10477 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10478 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10479 (FRAME_CHAIN_VALID): Delete.
10480 (arm_frame_chain_valid): Delete declaration.
10481 (PUSH_ARGUMENTS): Delete.
10482 (arm_push_arguments): Delete declaration.
10483 (CALL_DUMMY_P): Delete.
10484
9c9532c9
CV
104852002-02-08 Andrew Cagney <ac131313@redhat.com>
10486 Corinna Vinschen <vinschen@redhat.com>
10487
10488 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10489 on builtin float types.
10490
4e8f7a8b
DJ
104912002-02-08 Daniel Jacobowitz <drow@mvista.com>
10492
10493 * utils.c: Include <curses.h> before "bfd.h".
10494 * tui/tui-hooks.c: Likewise.
10495 * tui/tui.c: Likewise.
10496 * tui/tuiCommand.c: Likewise.
10497 * tui/tuiData.c: Likewise.
10498 * tui/tuiDataWin.c: Likewise.
10499 * tui/tuiDisassem.c: Likewise.
10500 * tui/tuiGeneralWin.c: Likewise.
10501 * tui/tuiIO.c: Likewise.
10502 * tui/tuiLayout.c: Likewise.
10503 * tui/tuiRegs.c: Likewise.
10504 * tui/tuiSource.c: Likewise.
10505 * tui/tuiSourceWin.c: Likewise.
10506 * tui/tuiStack.c: Likewise.
10507 * tui/tuiWin.c: Likewise.
10508
cd4bffcf
EZ
105092002-02-07 Elena Zannoni <ezannoni@redhat.com>
10510
10511 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10512 to include space for pseudoregs as well. Update loops accordingly.
10513 (sh_fp_frame_init_saved_regs): Ditto.
10514 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10515
26806ce2
AC
105162002-02-07 Andrew Cagney <ac131313@redhat.com>
10517
10518 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10519 Add Richard Earnshaw to Arm maintainers.
10520
97fdab62
AC
105212002-02-07 Andrew Cagney <ac131313@redhat.com>
10522
a6b98203
AC
10523 * defs.h (warning_begin): Delete declaration.
10524
97fdab62
AC
10525 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10526 Delete macro.
10527
78b29b40
MS
105282002-02-07 Michael Snyder <msnyder@redhat.com>
10529
aaa38bb5 10530 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10531 Logic bug, remove misplaced else.
10532
d8849953
KD
105332002-02-07 Klee Dienes <klee@apple.com>
10534
10535 * fork-inferior.c (fork_inferior): Add '!' to the list of
10536 characters that need to be quoted when building a string for the
10537 shell. Quote '!' specifically with a backslash, since CSH chokes
10538 when trying to evaluate "str!str".
aaa38bb5 10539
095778a0
NC
105402002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10541
10542 * rdi-share/host.h: Only provide a typedef for bool if it is not
10543 defined.
10544
1900040c
MS
105452002-02-04 Michael Snyder <msnyder@redhat.com>
10546
10547 * breakpoint.h (enum bptype): Add new overlay event bp type.
10548 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10549
1900040c
MS
10550 * breakpoint.c (create_internal_breakpoint): New function.
10551 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10552 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10553 (create_thread_event_breakpoint): Ditto.
10554 (create_solib_event_breakpoint): Ditto.
10555 (create_overlay_event_breakpoint): New function.
10556 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10557 (update_breakpoints_after_exec): Delete and re-initialize
10558 overlay event breakpoints after an exec. Add FIXME comment
10559 about longjmp breakpoint.
10560 (print_it_typical): Ignore overlay event breakpoints.
10561 (print_one_breakpoint): Ditto.
10562 (mention): Ditto.
10563 (bpstat_what): Do not stop for overlay event breakpoints.
10564 (delete_breakpoint): Don't delete overlay event breakpoints.
10565 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10566 (breakpoint_re_set): Re-create overlay event breakpoint.
10567
10568 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10569 (overlay_manual_command): Disable overlay breakpoints.
10570 (overlay_off_command): Disable overlay breakpoints.
10571
082fc60d
RE
105722002-02-06 Richard Earnshaw <rearnsha@arm.com>
10573
10574 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10575 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10576 to here from config/tm-arm.h.
10577 (coff_sym_is_thumb): Make static.
10578 (arm_elf_make_msymbol_special): New function.
10579 (arm_coff_make_msymbol_special): New function.
10580 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10581 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10582 (coff_sym_is_thumb): Delete declaration.
10583 (arm_elf_make_msymbol_special): Declare.
10584 (arm_coff_make_msymbol_special): Declare.
10585 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10586 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10587
039c5766
RE
105882002-02-06 Richard Earnshaw <rearnsha@arm.com>
10589
10590 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10591
105922002-02-06 Richard Earnshaw <rearnsha@arm.com>
10593
10594 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10595 * gdbarch.c gdbarch.h: Regenerate.
10596 * arch-utils.c (default_print_float_info): New function.
10597 * arch-utils.h (default_print_float_info): Prototype it.
10598 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10599 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10600 (PRINT_FLOAT_INFO): Document it.
10601
10602 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10603 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10604 (PRINT_FLOAT_INFO): Define.
10605
58fa08f0
PM
106062002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10607
aaa38bb5 10608 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10609 Add typecast to sprintf argument to suppress a warning.
10610
7393af7c
PM
106112002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10612
58fa08f0 10613 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10614 to allow easier handling of pass state.
10615 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10616 that gives exception name and address.
10617 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10618 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10619 exceptions added.
aaa38bb5
AJ
10620 (child_continue): Correctly report continue_status.
10621 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10622 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10623 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10624 the exception should be passed to debuggee or not.
10625
6af4589c
MS
106262002-02-05 Michael Snyder <msnyder@redhat.com>
10627
10628 * regcache.c (fetch_register): Call target_fetch_register
10629 only if we don't call FETCH_PSEUDO_REGISTER.
10630 (store_register): Call target_store_register only if we
10631 don't call STORE_PSEUDO_REGISTER.
10632
a2cf933a
EZ
106332002-02-05 Elena Zannoni <ezannoni@redhat.com>
10634
10635 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10636 ELF_MAKE_MSYMBOL_SPECIAL.
10637 * gdbarch.c, gdbarch.h: Regenerate.
10638 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10639 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10640 * elfread.c (elf_symtab_read): Compile use of
10641 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10642 multiarched.
10643 * coffread.c (coff_symtab_read): Ditto, for
10644 COFF_MAKE_MSYMBOL_SPECIAL.
10645
6bb7be43
JB
106462002-02-05 Jim Blandy <jimb@redhat.com>
10647
10648 * solib-svr4.c (svr4_truncate_ptr): New function.
10649 (svr4_relocate_section_addresses): Do the address arithmetic with
10650 the appropriate truncation for target addresses, even when
10651 CORE_ADDR is larger than a target address.
10652
e18651ec
DJ
106532002-02-05 Daniel Jacobowitz <drow@mvista.com>
10654
10655 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10656 to (int *).
10657
6b2725be
DJ
106582002-02-05 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10661 code.
10662
fca9e603
DJ
106632002-02-05 Daniel Jacobowitz <drow@mvista.com>
10664
10665 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10666
6c537a52
DJ
106672002-02-05 Daniel Jacobowitz <drow@mvista.com>
10668
10669 * gdbserver/linux-low.c: Remove unused include files.
10670
d844cde6
DJ
106712002-02-05 Daniel Jacobowitz <drow@mvista.com>
10672
10673 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10674 (read_inferior_memory): Use it.
10675 (write_inferior_memory): Likewise.
10676
d07c63e7
DJ
106772002-02-05 Daniel Jacobowitz <drow@mvista.com>
10678
10679 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10680 grubbing through sys_errlist.
10681
da6d8c04
DJ
106822002-02-05 Daniel Jacobowitz <drow@mvista.com>
10683
10684 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10685
5b421780
PM
106862002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10687 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10688
9f60d481
AC
106892002-02-04 Andrew Cagney <ac131313@redhat.com>
10690
10691 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10692 (do_sfunc, set_cmd_sfunc): New functions.
10693
10694 * command.h (struct cmd_list_element): Add field func.
10695 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10696 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10697 * cli/cli-decode.h: Ditto.
10698
10699 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10700 (help_all, help_cmd_list): Ditto.
10701 (find_cmd, complete_on_cmdlist): Ditto.
10702 * top.c (execute_command): Ditto.
10703
10704 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10705 function.sfunc.
10706
10707 * infcmd.c (notice_args_read): Fix function signature.
10708
10709 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10710 * cli/cli-decode.c (add_set_cmd): Ditto.
10711 * utils.c (initialize_utils): Ditto.
10712 * maint.c (_initialize_maint_cmds): Ditto.
10713 * infrun.c (_initialize_infrun): Ditto.
10714 * demangle.c (_initialize_demangler): Ditto.
10715 * remote.c (add_packet_config_cmd): Ditto.
10716 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10717 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10718 * proc-api.c (_initialize_proc_api): Ditto.
10719 * kod.c (_initialize_kod): Ditto.
10720 * valprint.c (_initialize_valprint): Ditto.
10721 * top.c (init_main): Ditto.
10722 * infcmd.c (_initialize_infcmd): Ditto.
10723 * corefile.c (_initialize_core): Ditto.
10724 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10725 * arch-utils.c (initialize_current_architecture): Ditto.
10726 (_initialize_gdbarch_utils): Ditto.
10727 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10728
10729 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10730 * wince.c (_initialize_inftarg): Ditto.
10731 * symfile.c (_initialize_symfile): Ditto.
10732 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10733 * language.c (_initialize_language): Ditto.
10734 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10735
f9ba0717
MS
107362002-02-04 Michael Snyder <msnyder@redhat.com>
10737
10738 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10739
0c74b2a7
DJ
107402002-02-04 Daniel Jacobowitz <drow@mvista.com>
10741
10742 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10743 Add rules for building the register data files.
10744
c638789f
DJ
107452002-02-04 Daniel Jacobowitz <drow@mvista.com>
10746
10747 * regformats/regdat.sh: Add braces to the definition of
10748 expedite_regs_${arch}.
10749
db253027
DJ
107502002-02-04 Daniel Jacobowitz <drow@mvista.com>
10751
10752 * regformats/regdef.h (struct reg): Add comment describing the
10753 requirements for offset and size fields.
10754
206be19c
AS
107552002-02-04 Andreas Schwab <schwab@suse.de>
10756
10757 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10758 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10759
181c1381
RE
107602002-02-04 Richard Earnshaw <rearnsha@arm.com>
10761
10762 * gdbarch.sh (copyright): Update years in generated header.
10763 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10764 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10765 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10766 * dbxread.c: Likewise.
10767 * dwarfread.c: Likewise.
10768 * elfread.c: Likewise.
10769 * somread.c: Likewise.
10770
10771 * arm-tdep.c (arm_smash_text_address): New function.
10772 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10773
fa4ba8da
PM
107742002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10775
10776 Add support for hardware watchpoints on win32 native.
aaa38bb5 10777 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10778 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10779 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10780 of debug registers.
10781 (debug_registers_changed): New variable. Reflects when debug registers
10782 are changed and need to be written to inferior.
aaa38bb5 10783 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10784 was set, used when new threads are created.
10785 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10786 i386-nat code.
10787 (thread_rec): Set dr array if id is the thread of current_event .
10788 (child_continue, child_resume): Change the debug registers for all
10789 threads if debug_registers_changed.
10790 (child_add_thread): Change the debug registers if debug_registers_used.
10791 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10792 Link nm.h to new nm-cygwin.h file.
10793 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10794 of hardware registers.
10795
a73c86fb
AC
107962002-02-03 Andrew Cagney <ac131313@redhat.com>
10797
10798 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10799 Restore behavour broken by 2002-01-20 Andrew Cagney
10800 <ac131313@redhat.com> IEEE_FLOAT removal.
10801
acf5ed49
DJ
108022002-02-03 Daniel Jacobowitz <drow@mvista.com>
10803
10804 * c-valprint.c (c_val_print): Pass a proper valaddr to
10805 cp_print_class_method.
10806 * valops.c (search_struct_method): If there is only one method
10807 and args is NULL, return that method.
10808
493d28d5
DJ
108092002-02-03 Daniel Jacobowitz <drow@mvista.com>
10810
10811 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10812 accessing tag_name directly.
10813
7495dfdb
DJ
108142002-02-03 Daniel Jacobowitz <drow@mvista.com>
10815
10816 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10817 of accessing tag_name directly.
10818
dd6bda65
DJ
108192002-02-03 Daniel Jacobowitz <drow@mvista.com>
10820
10821 PR gdb/280
10822 * gdbtypes.c (replace_type): New function.
10823 * gdbtypes.h (replace_type): Add prototype.
10824 * stabsread.c (read_type): Use replace_type.
10825
88fe217c
RE
108262002-02-03 Richard Earnshaw <rearnsha@arm.com>
10827
10828 * Makefile.in (memattr.o): Add missing dependencies rule.
10829
e5d66720
PS
108302002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10831
10832 * breakpoint.c (break_at_finish_command): Really export.
10833 (break_at_finish_at_depth_command): Ditto.
10834 (tbreak_at_finish_command): Ditto.
10835 * hppa-tdep.c: Include completer.h.
10836 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10837 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10838
fffee0be
AC
108392002-02-01 Andrew Cagney <ac131313@redhat.com>
10840
10841 * utils.c (do_write): New function.
10842 (error_stream): Rewrite combining the code from error_begin and
10843 verror.
10844 (verror): Rewrite using error_stream.
10845 (error_begin): Delete function.
10846
255e7dbf
AC
108472002-02-01 Andrew Cagney <ac131313@redhat.com>
10848
10849 * utils.c (error_begin): Make static.
10850 * defs.h (error_begin): Delete declaration.
10851
10852 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10853 (decode_line_1): Use cplusplus_error instead of error_begin,
10854 cplusplus_hint and return_to_top_level.
10855 * coffread.c (coff_symfile_read): Use error instead of error_begin
10856 and return_to_top_level.
10857 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10858
ddfe3c15
AC
108592002-02-01 Andrew Cagney <ac131313@redhat.com>
10860
10861 * language.h (type_error, range_error): Make string parameter
10862 constant.
10863 * language.c (warning_pre_print): Delete extern declaration.
10864 * dwarfread.c (warning_pre_print): Ditto.
10865 * language.c (type_error, range_error): Rewrite to use verror and
10866 vwarning instead of warning_begin.
10867
03ac34d5
MS
108682002-02-01 Michael Snyder <msnyder@redhat.com>
10869
261c4ca2
MS
10870 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10871 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10872
e00d1dc8
AC
108732002-02-01 Andrew Cagney <ac131313@redhat.com>
10874
10875 * command.h (NO_FUNCTION): Delete macro.
10876 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10877 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10878 * tracepoint.c (_initialize_tracepoint): Ditto.
10879 * cli/cli-decode.c (add_set_cmd): Ditto.
10880 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10881
76b79d6e
DJ
108822002-02-01 Daniel Jacobowitz <drow@mvista.com>
10883
10884 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10885 Update ``this'' pointer when calling virtual functions.
10886
799f9e91
MS
108872002-02-01 Michael Snyder <msnyder@redhat.com>
10888
c7bd442c 10889 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10890 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10891
3cf384d4
DJ
108922002-02-01 Daniel Jacobowitz <drow@mvista.com>
10893
10894 * regformats/reg-arm.dat: New file.
10895 * regformats/reg-i386.dat: New file.
10896 * regformats/reg-ia64.dat: New file.
10897 * regformats/reg-m68k.dat: New file.
10898 * regformats/reg-mips.dat: New file.
10899 * regformats/reg-ppc.dat: New file.
10900 * regformats/reg-sh.dat: New file.
10901 * regformats/regdef.h: New file.
10902 * regformats/regdat.sh: New file.
10903
0defa245
RE
109042002-02-01 Richard Earnshaw <reanrsha@arm.com>
10905
10906 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10907 (arm_frame_args_address, arm_frame_locals_address): New functions.
10908 (arm_frame_num_args): New function.
10909 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10910 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10911 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10912
405f26e6
MS
109132002-01-31 Michael Snyder <msnyder@redhat.com>
10914
502fd408
MS
10915 * breakpoint.c (break_at_finish_command): Export.
10916 (break_at_finish_at_depth_command): Export.
10917 (tbreak_at_finish_command): Export.
d6020d45 10918 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10919 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10920 "txbreak" commands, which are HPPA specific.
502fd408 10921
7d35e135
MS
10922 * printcmd.c (disassemble_command): Remove an ancient
10923 artifact of an old merge.
10924
aaa38bb5 10925 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10926 Define enum constant values for overlay mode.
10927 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10928 (overlay_is_mapped, overlay_auto_command,
10929 overlay_manual_command): Ditto.
d874f1e2 10930
aaa38bb5
AJ
10931 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10932 breakpoint_here_p, breakpoint_inserted_here_p,
10933 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10934 describe_other_breakpoints, check_duplicates, clear_command):
10935 Coding standard fixes.
10936
8add0441 10937 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10938 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10939 code: check bfd SEC_READONLY flag for section.
10940
e351066e
AC
109412002-01-31 Andrew Cagney <ac131313@redhat.com>
10942
7d35e135 10943 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10944
8a48e967
DJ
109452002-01-30 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10948 data symbols, since we search based on textlow and texthigh.
10949 (find_pc_sect_symtab): Likewise.
10950
f5a96129
AC
109512002-01-30 Andrew Cagney <ac131313@redhat.com>
10952
10953 * defs.h (vwarning): Declare.
f5a96129
AC
10954 * utils.c (vwarning): New function.
10955 (warning): Call vwarning.
10956 (warning_begin): Delete function.
10957
10958 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10959 the warning message.
10960 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10961 warning_begin.
10962
cefd4ef5
MS
109632002-01-30 Michael Snyder <msnyder@redhat.com>
10964
1a703748
MS
10965 * NEWS: Mention "set trust-readonly-sections" command.
10966 Mention generate-core-file command.
cefd4ef5 10967
3a11626d
MS
109682002-01-15 Michael Snyder <msnyder@redhat.com>
10969
10970 * target.c: New command, "set trust-readonly-sections on".
10971 (do_xfer_memory): Honor the suggestion to trust readonly sections
10972 by reading them from the object file instead of from the target.
10973 (initialize_targets): Register command "set trust-readonly-sections".
10974
d1c7e53b
AC
109752002-01-29 Andrew Cagney <ac131313@redhat.com>
10976
10977 * parse.c (target_map_name_to_register): Simplify, search regs and
10978 pseudo-regs using a single loop.
10979
e2c9a72c
AC
109802002-01-30 Andrew Cagney <ac131313@redhat.com>
10981
10982 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10983
69824b4e
MK
109842002-01-15 Rodney Brown <rbrown64@csc.com.au>
10985
10986 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10987 * config/i386/i386v42mp.mh: Add i387-nat.o .
10988 * i386v4-nat.c: Include i387-nat.h.
10989 (supply_fpregset): Use i387_supply_fsave.
10990 (fill_fpregset): Use i387_fill_fsave.
10991
6eb69eab
RE
109922002-01-30 Richard Earnshaw <rearnsha@arm.com>
10993
10994 * arm-tdep.c (arm_call_dummy_words): Define.
10995 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10996 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10997 (CALL_DUMMY_WORDS): Define.
10998 (arm_call_dummy_words): Declare.
10999 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11000 (arm_linux_call_dummy_words): Declare.
11001
9852326a
AS
110022002-01-30 Andreas Schwab <schwab@suse.de>
11003
11004 * m68klinux-nat.c: Fix last change to use regcache_collect
11005 instead of referencing registers[] directly.
11006
977a3030
AC
110072002-01-29 Andrew Cagney <ac131313@redhat.com>
11008
11009 * parse.c (target_map_name_to_register): Delete code wrapped in
11010 #ifdef REGISTER_NAME_ALIAS_HOOK.
11011
2076c72b
MS
110122002-01-28 Michael Snyder <msnyder@redhat.com>
11013
11014 * regcache.c (legacy_read_register_gen): Need to be able to
11015 read pseudo-register as well as real register.
11016 (legacy_write_register_gen): Ditto.
11017
8fcc723b
AC
110182002-01-28 Andrew Cagney <ac131313@redhat.com>
11019
11020 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11021 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11022 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11023 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11024 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11025 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11026 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11027 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11028 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11029 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11030 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11031 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11032 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11033 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11034 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11035 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11036 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11037 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11038 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11039 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11040
afe64c1a
AC
110412002-01-28 Andrew Cagney <ac131313@redhat.com>
11042
11043 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11044 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11045 (initialize_current_architecture): Update target_byte_order using
11046 information from BFD.
aaa38bb5 11047 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11048 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11049
75bc7ddf
AC
110502002-01-28 Andrew Cagney <ac131313@redhat.com>
11051
11052 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11053 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11054
11055 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11056 #ifdef INVALID_FLOAT.
11057 * infcmd.c (do_registers_info): Ditto.
11058 * values.c (unpack_double): Ditto. Add comment.
11059
11060 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11061 already commented out.
11062
0280a90a
AS
110632002-01-26 Andreas Schwab <schwab@suse.de>
11064
11065 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11066 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11067 registers and add support for PTRACE_GETREGS.
11068
7072a954
AC
110692002-01-24 Andrew Cagney <ac131313@redhat.com>
11070
11071 GDB 5.1.1 released from 5.1 branch.
11072 * NEWS: Add 5.1.1 news.
11073 * README: Sync with 5.1 branch.
11074
86f902e0
FF
110752002-01-23 Fred Fish <fnf@redhat.com>
11076
11077 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11078 stabstring on initial malloc. Reallocing will copy it for us,
11079 if necessary.
11080
8af51c36
EZ
110812002-01-23 Elena Zannoni <ezannoni@redhat.com>
11082
aaa38bb5 11083 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11084 (HFILES_NO_SRCDIR): Remove hpread.h.
11085 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11086 (hpread.o): Update dependencies.
11087 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11088
11089 * hp-psymtab-read.c: Remove file.
11090 * hp-symtab-read.c: Remove file.
11091 * hpread.h: Remove file.
11092
11093 * hpread.c: Merge all contents of hp-psymtab-read.c,
11094 hp-symtab-read.c and hpread.h into this file, as it was prior to
11095 January 1999.
11096
11097 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11098 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11099 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11100 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11101
dc5cfeb6
EZ
111022002-01-23 Elena Zannoni <ezannoni@redhat.com>
11103
11104 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11105 fill_gregset): Call gdbarch_tdep() just once, assign result to
11106 variable and use that, instead of calling the function several
11107 times.
11108
ea87b71b
AO
111092002-01-24 Alexandre Oliva <aoliva@redhat.com>
11110
11111 * configure.host: Accept sparcv9 as alias for sparc64.
11112 * configure.tgt: Likewise.
11113
13fc0c2f
KB
111142002-01-22 Kevin Buettner <kevinb@redhat.com>
11115
11116 * solib-aix5.c (build_so_list_from_mapfile)
11117 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11118 arguments is not reversed.
11119 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11120 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11121
7bd872fe
EZ
111222002-01-22 Elena Zannoni <ezannoni@redhat.com>
11123
11124 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11125 modified version of obsolete sh_fetch_pseudo_register.
11126 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11127 (sh4_register_read): New function.
11128 (sh_pseudo_register_write): New function. Renamed and modified
11129 version of obsolete sh_store_pseudo_register.
11130 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11131 (sh4_register_write): New function.
11132 (sh_gdbarch_init): Remove setting of gdbarch function
11133 fetch_pseudo_register and store_pseudo_register. Remove setting of
11134 register_convert_to_raw, register_convert_to_virtual,
11135 register_convertible.
11136 (sh_sh4_register_convertible): Delete. No longer needed. All is
11137 taken care by architecture specific functions
11138 register_read/register_write.
11139 (sh_sh4_register_convert_to_virtual): Make static.
11140 (sh_sh4_register_convert_to_raw): Ditto.
11141
069e84fd
AC
111422002-01-22 Andrew Cagney <ac131313@redhat.com>
11143
11144 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11145 (floatformat_is_nan, floatformat_mantissa): Ditto.
11146
11147 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11148 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11149 builtin_type_ieee_double_little,
11150 builtin_type_ieee_double_littlebyte_bigword,
11151 builtin_type_m68881_ext, builtin_type_i960_ext,
11152 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11153 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11154 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11155 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11156
211a4f69
CV
111572002-01-22 Corinna Vinschen <vinschen@redhat.com>
11158
11159 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11160 parameter. Set frameless flag if it exists and depended of
11161 whether the scanned function is frameless or not.
11162 (xstormy16_skip_prologue): If function is frameless, return
11163 result of xstormy16_scan_prologue().
11164 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11165 call.
11166
f81353e4
EZ
111672002-01-21 Elena Zannoni <ezannoni@redhat.com>
11168
11169 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11170 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11171 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11172 sh_sh4_register_byte, sh_sh4_register_raw_size,
11173 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11174 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11175 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11176 sh_store_pseudo_register, sh_do_pseudo_register): Call
11177 gdbarch_tdep() just once, assign result to variable and use that,
11178 instead of calling the function several times.
11179
63c73a17
MK
111802002-01-20 Mark Kettenis <kettenis@gnu.org>
11181
11182 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11183 macros instead of LAST_FPU_CTRL_REGNUM.
11184 (store_register): Likewise.
11185
39ad761d
JB
111862002-01-21 Jim Blandy <jimb@redhat.com>
11187
11188 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11189 is up-to-date before running the program, not just when a program
11190 exits.
11191
3d74b771
FF
111922002-01-21 Fred Fish <fnf@redhat.com>
11193
11194 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11195 when we have found all instructions we are looking for.
11196
966fbf70
RE
111972002-01-21 Richard Earnshaw <rearnsha@arm.com>
11198
11199 * arm-tdep.c (arm_register_name): New function.
11200 (arm_registers_names): Make static.
11201 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11202 (arm_register_name): Declare.
11203 (REGISTER_NAME): Use it.
11204
c3b4394c
RE
112052002-01-21 Richard Earnshaw <rearnsha@arm.com>
11206 Kevin Buettner <kevinb@redhat.com>
11207
11208 Convert arm targets to new FRAME interface.
11209 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11210 (arm_frame_find_save_regs): Delete.
11211 (arm_frame_init_saved_regs): New.
11212 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11213 Allocate extra_info as required. Convert all uses of fsr.regs
11214 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11215 to use extra_info.
11216 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11217 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11218 (check_prologue_cache, save_prologue_cache): Likewise.
11219 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11220 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11221 (FRAME_FIND_SAVED_REGS): Delete.
11222 (arm_frame_find_saved_regs): Delete prototype.
11223 (arm_frame_init_saved_regs): New prototype.
11224 (FRAME_INIT_SAVED_REGS): Define.
11225
61d99182
AC
112262002-01-20 Andrew Cagney <ac131313@redhat.com>
11227
11228 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11229
6aaea291
AC
112302002-01-20 Andrew Cagney <ac131313@redhat.com>
11231
11232 From Jeff Law <law@redhat.com>:
11233 * infttrace.c: Include <sys/pstat.h>.
11234 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11235 exec file if the ttrace equivalent fails.
11236
15f698d2
AC
112372002-01-20 Andrew Cagney <ac131313@redhat.com>
11238
11239 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11240 (closeLogFile): Ditto.
11241
f86ddd7c
MC
112422002-01-20 Michael Chastain <mec@shout.net>
11243
11244 * top.c (print_gdb_version): Bump copyright year to 2002.
11245
904507ce
AC
112462002-01-20 Andrew Cagney <ac131313@redhat.com>
11247
11248 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11249 Zannoni and Eli Zaretskii.
11250
d7f0b9ce
DJ
112512002-01-20 Daniel Jacobowitz <drow@mvista.com>
11252
11253 * buildsym.c: Update copyright years.
11254 * c-typeprint.c: Likewise.
11255 * dwarf2read.c: Likewise.
11256 * f-typeprint.c: Likewise.
11257 * gdbtypes.c: Likewise.
11258 * gdbtypes.h: Likewise.
11259 * hp-symtab-read.c: Likewise.
11260 * hpread.c: Likewise.
11261 * mdebugread.c: Likewise.
11262 * p-typeprint.c: Likewise.
11263
3fd3d7d2
AC
112642002-01-20 Andrew Cagney <ac131313@redhat.com>
11265
11266 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11267 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11268 byte-order selectable.
11269 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11270 * arch-utils.c: Ditto.
11271 (set_endian): Ditto.
11272 (set_endian_from_file): Ditto.
11273 * gdbserver/low-sim.c (create_inferior): Ditto.
11274 * gdbarch.sh: Ditto.
11275 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11276 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11277 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11278 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11279 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11280 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11281 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11282 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11283 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11284 macro definition.
11285 * config/mips/tm-wince.h: Remove #undef of macro
11286 TARGET_BYTE_ORDER_SELECTABLE.
11287 * config/sh/tm-wince.h: Ditto.
11288
b02dede2
DJ
112892002-01-20 Daniel Jacobowitz <drow@mvista.com>
11290
11291 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11292 member function fields. Add accessor macro
11293 TYPE_FN_FIELD_ARTIFICIAL.
11294 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11295 * c-typeprint.c (c_type_print_base): Skip artificial member
11296 functions.
11297
c3643761
DJ
112982002-01-20 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * f-typeprint.c: Delete unused function f_type_print_args.
11301 * p-typeprint.c: Delete unused function pascal_type_print_args.
11302
8176bb6d
DJ
113032002-01-20 Daniel Jacobowitz <drow@mvista.com>
11304
11305 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11306 comment. Add ``artificial'' to ``union field_location''.
11307
11308 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11309
11310 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11311 * mdebugread.c (parse_symbol): Likewise.
11312 * stabsread.c (define_symbol): Likewise.
11313 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11314 initializing TYPE_FIELD_BITPOS to n (obsolete).
11315 (hpread_doc_function_type): Likewise.
11316 * hpread.c (hpread_function_type): Likewise.
11317
7fd60527
AC
113182002-01-20 Andrew Cagney <ac131313@redhat.com>
11319
11320 * configure.in (host_makefile_frag): Only require a host makefile
11321 fragment when a native build.
11322 * configure: Re-generate.
11323
c2f05ac9
AC
113242002-01-20 Andrew Cagney <ac131313@redhat.com>
11325
11326 * doublest.h (floatformat_from_type): Declare.
11327 * doublest.c (floatformat_from_type): New function.
11328 (convert_typed_floating): Use.
11329
11330 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11331 call to function floatformat_from_type.
11332
11333 * gdbarch.sh (IEEE_FLOAT): Delete.
11334 * gdbarch.h, gdbarch.c: Re-generate.
11335 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11336 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11337 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11338 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11339 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11340 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11341 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11342 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11343 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11344 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11345 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11346 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11347
11348 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11349 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11350 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11351 * sh-tdep.c (sh_gdbarch_init): Ditto.
11352 * mips-tdep.c (mips_gdbarch_init): Ditto.
11353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11354 * cris-tdep.c (cris_gdbarch_init): Ditto.
11355
abf22e64
AJ
113562002-01-20 Jiri Smid <smid@suse.cz>
11357
11358 * configure.host, configure.tgt: Support x86-64.
11359 * NEWS: Note new target x86-64.
11360
b7c4cbf8
AJ
11361 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11362 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11363 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11364 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11365 x86-64-linux-nat.o): Fix dependencies.
11366
82600034
AC
113672002-01-19 Andrew Cagney <ac131313@redhat.com>
11368
11369 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11370 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11371 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11372 * config/sparc/xm-sun4os4.h: Delete file.
11373 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11374
bbe5c628
AC
113752002-01-19 Andrew Cagney <ac131313@redhat.com>
11376
11377 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11378 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11379 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11380 * config/i386/i386lynx.mh (XM_FILE): Delete.
11381 * config/rs6000/xm-rs6000ly.h: Delete file.
11382 * config/sparc/xm-sparclynx.h: Delete file.
11383 * config/m68k/xm-m68klynx.h: Delete file.
11384 * config/i386/xm-i386lynx.h: Delete file.
11385 * config/xm-lynx.h: Delete file.
11386 * config/djgpp/fnchange.lst: Update.
11387
f8453e34
JT
113882002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11389
11390 * alpha-tdep.c (alpha_register_byte): New function.
11391 (alpha_register_raw_size): Ditto.
11392 (alpha_register_virtual_size): Ditto.
11393 (alpha_skip_prologue_internal): Renamed from
11394 alpha_skip_prologue.
11395 (alpha_skip_prologue): New version that calls
11396 alpha_skip_prologue_internal.
11397 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11398 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11399 second argument from alpha_skip_prologue.
11400 (REGISTER_BYTE): Use alpha_register_byte.
11401 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11402 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11403 (FRAMELESS_FUNCTION_INVOCATION): Use
11404 generic_frameless_function_invocation_not.
11405 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11406 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11407
52d9e613
AC
114082002-01-19 Andrew Cagney <ac131313@redhat.com>
11409
11410 * config/mips/xm-news-mips.h: Delete file.
11411 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11412
11413 * config/m88k/xm-m88k.h: Delete file.
11414 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11415 * config/m88k/xm-delta88v4.h: Ditto.
11416 * config/m88k/xm-delta88.h: Ditto.
11417
11418 * config/alpha/xm-fbsd.h: Delete file.
11419 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11420
11421 * config/sparc/xm-sparc.h: Delete file.
11422 * Makefile.in (xm-sun4os4.h): Delete dependency.
11423 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11424 * config/sparc/xm-sun4os4.h: Ditto.
11425 * config/sparc/xm-linux.h: Ditto.
11426
11427 * config/i386/xm-windows.h: Delete file.
11428
2d1b2124
AC
114292002-01-19 Andrew Cagney <ac131313@redhat.com>
11430
11431 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11432 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11433
ee1f65f0
JT
114342002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11435
11436 * alpha-tdep.c (alpha_call_dummy_words): New.
11437 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11438 (CALL_DUMMY_P): Define.
11439 (CALL_DUMMY_WORDS): Define.
11440 (SIZEOF_CALL_DUMMY_WORDS): Define.
11441
98081e55
PB
114422002-01-19 Per Bothner <per@bothner.com>
11443
11444 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11445 isn't NULL, which can happen with some gcj-3.x-produced code.
11446
0d056799
JT
114472002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11448
11449 * alpha-tdep.c (alpha_register_virtual_type): New function.
11450 (alpha_init_frame_pc_first): Ditto.
11451 (alpha_fix_call_dummy): Ditto.
11452 (alpha_store_struct_return): Ditto.
11453 (alpha_extract_struct_value_address): Ditto.
11454 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11455 alpha_register_virtual_type.
11456 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11457 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11458 alpha_extract_struct_value_address.
11459 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11460 (INIT_FRAME_PC): Use init_frame_pc_noop.
11461 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11462
4604bcad
MK
114632002-01-19 Mark Kettenis <kettenis@gnu.org>
11464
11465 * i386gnu-nat.c: Include "i386-tdep.h".
11466 (fetch_fpregs): Simplify code dealing with uninitialized floating
11467 point states such that it doesn't require FP7_REGNUM.
11468
140f9984
JT
114692002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11470
abf22e64
AJ
11471 * alpha-tdep.c (frame_extra_info): New.
11472 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11473 frame->extra_info.
11474 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11475 (alpha_frame_saved_pc): Use frame->extra_info.
11476 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11477 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11478 (init_extra_frame_info): Rename to...
11479 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11480 (alpha_print_extra_frame_info): New function.
140f9984
JT
11481 (alpha_frame_locals_address): Ditto.
11482 (alpha_frame_args_address): Ditto.
abf22e64 11483 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11484 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11485 alpha_frame_args_address.
abf22e64 11486 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11487 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11488 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11489 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11490 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11491 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11492
d734c450
JT
114932002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11494
11495 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11496 (alpha_cannot_fetch_register): Ditto.
11497 (alpha_cannot_store_register): Ditto.
11498 (alpha_register_convertible): Ditto.
11499 (alpha_use_struct_convention): Ditto.
11500 * config/alpha/tm-alpha.h: Update copyright years.
11501 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11502 (INNER_THAN): Use core_addr_lessthan.
11503 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11504 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11505 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11506 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11507 (FRAME_CHAIN): Remove unnecessary cast.
11508
b4ceaee6
AC
115092002-01-18 Andrew Cagney <ac131313@redhat.com>
11510
11511 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11512 obsolete.
11513
0a65a603
AC
115142002-01-18 Andrew Cagney <ac131313@redhat.com>
11515
11516 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11517 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11518 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11519 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11520 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11521 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11522 * x86-64-linux-nat.c: Ditto.
11523
636a6dfc
JT
115242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11525
abf22e64 11526 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11527 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11528 (REGISTER_NAME): Define.
11529
acceddb6
JT
115302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11531
11532 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11533
ec32e4be
JT
115342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11535
11536 * alpha-tdep.c: Update copyright years.
11537 (alpha_next_pc): New function.
11538 (alpha_software_single_step): Ditto.
11539 * config/alpha/tm-alpha.h: Add prototype for
11540 alpha_software_single_step.
11541
e771a871
JT
115422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11543
11544 * alphabsd-nat.c: Update copyright years.
11545 (fill_gregset): Use regcache_collect.
11546 (fill_fpregset): Likewise.
11547 (fetch_inferior_registers): Only fetch integer registers
11548 if requested to do so.
11549 (store_inferior_registers): Only store integer registers
11550 if requested to do so.
11551
7708fa01
AC
115522002-01-17 Andrew Cagney <ac131313@redhat.com>
11553
11554 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11555 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11556 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11557 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11558 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11559 * config/arm/linux.mh (XDEPFILES): Delete.
11560 * config/arm/nbsd.mh (XDEPFILES): Delete.
11561 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11562 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11563 * config/i386/i386m3.mh (XDEPFILES): Delete.
11564 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11565 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11566 * config/i386/fbsd.mh (XDEPFILES): Delete.
11567 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11568 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11569 * config/i386/i386v4.mh (XDEPFILES): Delete.
11570 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11571 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11572 * config/i386/i386aix.mh (XDEPFILES): Delete.
11573 * config/i386/go32.mh (XDEPFILES): Delete.
11574 * config/i386/cygwin.mh (XDEPFILES): Delete.
11575 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11576 * config/i386/i386mach.mh (XDEPFILES): Delete.
11577 * config/i386/i386v32.mh (XDEPFILES): Delete.
11578 * config/i386/linux.mh (XDEPFILES): Delete.
11579 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11580 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11581 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11582 * config/i386/i386sco.mh (XDEPFILES): Delete.
11583 * config/i386/i386v.mh (XDEPFILES): Delete.
11584 * config/i386/nbsd.mh (XDEPFILES): Delete.
11585 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11586 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11587 * config/i386/symmetry.mh (XDEPFILES): Delete.
11588 * config/i386/obsd.mh (XDEPFILES): Delete.
11589 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11590 * config/ia64/linux.mh (XDEPFILES): Delete.
11591 * config/ia64/aix.mh (XDEPFILES): Delete.
11592 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11593 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11594 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11595 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11596 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11597 * config/m68k/linux.mh (XDEPFILES): Delete.
11598 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11599 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11600 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11601 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11602 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11603 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11604 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11605 * config/m88k/delta88.mh (XDEPFILES): Delete.
11606 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11607 * config/m88k/m88k.mh (XDEPFILES): Delete.
11608 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11609 * config/mips/linux.mh (XDEPFILES): Delete.
11610 * config/mips/irix6.mh (XDEPFILES): Delete.
11611 * config/mips/irix5.mh (XDEPFILES): Delete.
11612 * config/mips/irix4.mh (XDEPFILES): Delete.
11613 * config/mips/irix3.mh (XDEPFILES): Delete.
11614 * config/mips/decstation.mh (XDEPFILES): Delete.
11615 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11616 (NATDEPFILES): Move core-aout.o to here.
11617 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11618 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11619 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11620 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11621 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11622 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11623 * config/pa/hpux11.mh (XDEPFILES): Delete.
11624 * config/powerpc/aix.mh (XDEPFILES): Delete.
11625 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11626 * config/powerpc/linux.mh (XDEPFILES): Delete.
11627 * config/romp/rtbsd.mh: Rename XDEPFILES.
11628 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11629 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11630 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11631 * config/s390/s390.mh (XDEPFILES): Delete.
11632 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11633 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11634 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11635 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11636 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11637 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11638 * config/sparc/linux.mh (XDEPFILES): Delete.
11639 * config/vax/vaxult.mh (XDEPFILES): Delete.
11640 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11641 * Makefile.in (DEPFILES): Remove XDEPFILES.
11642
375fc983
AC
116432002-01-17 Andrew Cagney <ac131313@redhat.com>
11644
11645 * utils.c (internal_verror): Fix comments, default is yes not no.
11646 Update queries to match. Default to quit and dump core.
11647
8926118c
AC
116482002-01-17 Andrew Cagney <ac131313@redhat.com>
11649
11650 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11651 copyright.
11652 * defs.h, event-top.c, gdbcmd.h: Ditto.
11653 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11654 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11655 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11656 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11657 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11658 * mi/mi-main.c:Ditto.
11659
11660 * stack.c, symfile.c: Update copyright.
11661
45b7b345
DJ
116622002-01-17 Daniel Jacobowitz <drow@mvista.com>
11663
db728ff7
DJ
11664 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11665 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11666 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11667 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11668
db728ff7
DJ
116692002-01-17 Daniel Jacobowitz <drow@mvista.com>
11670
11671 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11672 * gdbserver/low-lynx.c (myattach): Likewise.
11673 * gdbserver/low-nbsd.c (myattach): Likewise.
11674 * gdbserver/low-sim.c (myattach): Likewise.
11675 * gdbserver/low-sparc.c (myattach): Likewise.
11676 * gdbserver/low-sun3.c (myattach): Likewise.
11677
11678 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11679
db728ff7 11680 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11681 (main): Handle "--attach".
11682
8de3c354
AC
116832002-01-16 Andrew Cagney <ac131313@redhat.com>
11684
11685 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11686 maintainer.
11687
b0129042
DJ
116882002-01-15 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * c-typeprint.c (is_type_conversion_operator): Add additional
11691 check for non-conversion operators.
11692
ba8679fb 116932002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11694
11695 * linux-proc.c: Add "info proc" command, a la procfs.c.
11696 (read_mapping): New function, abstract and re-use code.
11697 (linux_find_memory_regions): Use new func read_mapping.
11698 (linux_info_proc_cmd): New function, implement "info proc".
11699 (_initialize_linux_proc): Add new command "info proc".
11700
e4f9b4d5
MS
117012002-01-15 Michael Snyder <msnyder@redhat.com>
11702
11703 * symfile.c (generic_load): Use bfd_map_over_sections method
11704 instead of manipulating bfd structure members directly.
11705 (add_section_size_callback): New function, bfd sections callback
11706 used by generic_load.
11707 (load_sections_callback): New function, bfd sections callback
11708 used by generic_load.
11709
08cf96df
EZ
117102002-01-15 Elena Zannoni <ezannoni@redhat.com>
11711
abf22e64 11712 [Based on work by Jim Blandy]
08cf96df
EZ
11713 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11714 (builtin_type_vec128): Export.
11715 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11716 types.
11717 (builtin_type_vec128): New builtin type for 128 bit vector
11718 registers.
11719 (build_gdbtypes): Initialize builtin_type_v16qi and
11720 builtin_type_v8hi. Create the vec128 register builtin type
11721 structure.
11722 (build_builtin_type_vec128): New function.
abf22e64 11723 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11724 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11725 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11726 AltiVec register to new builtin type.
11727
d7242108
DJ
117282001-01-15 Daniel Jacobowitz <drow@mvista.com>
11729
11730 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11731 to make_cv_type.
11732
4ee3352d
AC
117332002-01-14 Andrew Cagney <ac131313@redhat.com>
11734
11735 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11736 CLEAN_UP_REGISTER_VALUE.
11737 * regcache.c (supply_register): Update only call.
11738
f015b2e7
AC
117392002-01-14 Andrew Cagney <ac131313@redhat.com>
11740
11741 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11742 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11743 a29k-*-vxworks* targets as obsolete.
11744
356ae49d
MS
117452002-01-14 Michael Snyder <msnyder@redhat.com>
11746
11747 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11748 until we can resolve portability issues.
11749 * gregset.h: Remove references to fpxregs.
11750 * gcore.c (gcore_command): Initialize note_sec to NULL.
11751
ade8f45e
AC
117522002-01-13 Andrew Cagney <ac131313@redhat.com>
11753
11754 * signals.c (target_signal_to_name): Rewrite. Only use
11755 signals[].name when in bounds and non-NULL.
abf22e64 11756
89c49e7a
AC
117572002-01-13 Andrew Cagney <ac131313@redhat.com>
11758
11759 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11760 * signals.c (target_signal_to_name): Verify that SIG is within the
11761 bounds of the signals array.
11762
4daa9f9f
AC
117632002-01-13 Andrew Cagney <ac131313@redhat.com>
11764
11765 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11766
ba4bbdcb
KS
117672002-01-13 Keith Seitz <keiths@redhat.com>
11768
11769 * stack.c (print_frame_info_base): Print the frame's pc
11770 only if when print_frame_info_listing_hook is not defined.
11771
575bbeb6
KS
117722002-01-13 Keith Seitz <keiths@redhat.com>
11773
11774 * varobj.c (varobj_set_value): Make sure that there were no
11775 errors evaluating the object before attempting to set its
11776 value.
11777 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11778 so this offset adjustment is no longer necessary.
11779 (create_child): Don't set the error flag if the child is
11780 a CPLUS_FAKE_CHILD.
11781 (value_of_child): If value_fetch_lazy fails, return NULL
11782 so that callers will be notified that an error occurred.
11783 (c_value_of_variable): Delay check of variable's validity
11784 until later. We actually want all structs and unions to have
11785 the value "{...}".
11786 Do not return "???" for variables which could not be evaluated.
11787 This error condition must be returned to the caller so that it
11788 can get the error condition from gdb.
11789 (cplus_name_of_child): Adjust index for vptr before figuring
11790 out the name of the child.
11791 (cplus_value_of_child): If a child's (real) parent is not valid,
11792 don't even bother trying to give a value for it. Just return
11793 an error. Change all instances in this function.
11794 (cplus_type_of_child): If our parent is one of the "fake"
11795 parents, we need to get at the type of the real parent, and
11796 derive the child's true type using this information.
11797
b76898ab
AC
117982002-01-13 Andrew Cagney <ac131313@redhat.com>
11799
11800 From 2002-01-09 John Marshall <johnm@falch.net>:
11801 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11802 sources.redhat.com, and tweak some related URLs which had
11803 suffered from linkrot.
11804
b6649e88
AC
118052002-01-13 Andrew Cagney <ac131313@redhat.com>
11806
11807 From Jeff law:
11808 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11809 structures passed in registers.
11810
82cc5033
EZ
118112002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11812
11813 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11814 white space which prevented compilation. Reported by DSK
11815 <dsk@student.unsw.edu.au>.
11816
ba5f2f8a
MS
118172002-01-11 Michael Snyder <msnyder@redhat.com>
11818
fbd35540
MS
11819 * symfile.c (build_section_addr_info_from_section_tab):
11820 Use bfd access method instead of manipulating bfd directly.
11821 (syms_from_objfile): Ditto.
11822 (simple_overlay_update_1): Ditto.
11823 (simple_overlay_update): Ditto.
11824 (generic_load): Ditto.
11825 (overlay_unmapped_address): FIXME comment, bfd access methods.
11826 (sections_overlap): FIXME comment, bfd access methods.
11827 (pc_in_mapped_range): FIXME comment, bfd access methods.
11828 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11829 (section_is_mapped): FIXME comment, bfd access methods.
11830 (section_is_overlay): FIXME comment, bfd access methods.
11831
ba5f2f8a
MS
11832 * symfile.c (generic_load): Whitespace and long line cleanups.
11833 Remove duplicate variable, change several local variables to
11834 more appropriate data types.
11835 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11836
17df2af6
AC
118372002-01-12 Andrew Cagney <ac131313@redhat.com>
11838
11839 From Peter Schauer:
11840 * language.c (longest_local_hex_string_custom): Use phex_nz to
11841 convert NUM to a hex string.
11842
ec920329
EZ
118432002-01-12 Elena Zannoni <ezannoni@redhat.com>
11844
11845 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11846 the function.
538a76d6 11847 Update Copyright year.
ec920329 11848
3abd2e01
AC
118492002-01-12 Andrew Cagney <ac131313@redhat.com>
11850
11851 * language.c (longest_raw_hex_string): Delete unused function.
11852
b21b22e0
PS
118532002-01-11 Petr Sorfa <petrs@caldera.com>
11854
11855 * MAINTAINERS (write-after-approval): Add myself.
11856 * dwarf2read.c (read_tag_string_type): Handling of
11857 DW_AT_byte_size.
11858 (read_tag_string_type): FORTRAN fix to prevent propagation of
11859 first string size.
11860 (set_cu_language): Handling of DW_LANG_Fortran95
11861
747fe712
RE
118622002-01-11 Richard Earnshaw <rearnsha@arm.com>
11863
11864 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11865 GETPID(inferior_ptid).
11866 (store_inferior_registers): Likewise.
11867
f1bea926
JM
118682002-01-10 Jason Merrill <jason@redhat.com>
11869
11870 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11871 Fix DW_OP_minus.
11872
ae940673
AC
118732002-01-10 Andrew Cagney <ac131313@redhat.com>
11874
11875 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11876 and bfd/elf32-sh-nbsd.c.
11877
00546b04
MS
118782002-01-10 Michael Snyder <msnyder@redhat.com>
11879
352ed7b4
MS
11880 * NEWS: Mention --pid and corefile/proc-id behavior change.
11881
c18be923
MS
11882 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11883 * gcore.c: Include cli/cli-decode.h instead of command.h.
11884
00546b04
MS
11885 * main.c (captured_main): Add new command line option "--pid".
11886 If the second command line argument (following the symbol-file)
11887 begins with a digit, try to attach to it before trying to open
11888 it as a corefile.
11889 (print_gdb_help): Document the "--pid" argument.
11890
db60ec62
EZ
118912002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11892
11893 * completer.c (command_completer): New function.
11894
11895 * completer.h <command_completer>: Add prototype.
11896
11897 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11898 completer for the "help" command.
11899
39c22d1a
JM
119002002-01-09 Jason Merrill <jason@redhat.com>
11901
11902 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11903
c564377f
MS
119042002-01-09 Michael Snyder <msnyder@redhat.com>
11905
975aec09
MS
11906 * i386-linux-nat.c (fill_fpxregset): Make global.
11907 (store_fpxregset): Ditto.
11908
db4a10fa
MS
11909 * gregset.h (gdb_fpxregset_t): Define.
11910 (supply_fpxregset): Prototype.
11911 (fill_fpxregset): Prototype.
11912
c564377f
MS
11913 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11914
c3d45d70
RE
119152002-01-09 Richard Earnshaw <rearnsha@arm.com>
11916
11917 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11918 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11919 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11920
fcc87af1
AC
119212002-01-09 Andrew Cagney <ac131313@redhat.com>
11922
11923 * MAINTAINERS: Update target maintainer rules so that any
11924 Maintainer can approve a tested patch for a maintenance-only
11925 target.
11926
dd96c05b
RE
119272002-01-09 Richard Earnshaw <rearnsha@arm.com>
11928
d4297db9 11929 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11930
d4297db9 11931 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11932 IN_SIGTRAMP.
11933
145fdc6e
MS
119342002-01-08 Michael Snyder <msnyder@redhat.com>
11935
11936 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11937 real name of the executable, rather than the /proc name.
11938
be4d1333
MS
119392002-01-03 Michael Snyder <msnyder@redhat.com>
11940
11941 Implement a "generate-core-file" command in gdb, save target state.
11942 * gcore.c: New file. Implement new command 'generate-core-file'.
11943 Save a corefile image of the current state of the inferior.
11944 * linux-proc.c: Add linux-specific code for saving corefiles.
11945 * target.h (struct target_ops): Add new target vectors for saving
11946 corefiles; to_find_memory_regions and to_make_corefile_notes.
11947 (target_find_memory_regions): New macro.
11948 (target_make_corefile_notes): New macro.
11949 * target.c (update_current_target): Inherit new target methods.
11950 (dummy_find_memory_regions): New place-holder method.
11951 (dummy_make_corefile_notes): New place-holder method.
11952 (init_dummy_target): Initialize new dummy target vectors.
11953 * exec.c (exec_set_find_memory_regions): New function.
11954 Allow the exec_ops vector for memory regions to be taken over.
11955 (exec_make_note_section): New function, target vector method.
11956 * defs.h (exec_set_find_memory_regions): Export prototype.
11957 * procfs.c (proc_find_memory_regions): New function, corefile method.
11958 (procfs_make_note_section): New function, corefile method.
11959 (init_procfs_ops): Set new target vector pointers.
11960 (find_memory_regions_callback): New function.
11961 (procfs_do_thread_registers): New function.
11962 (procfs_corefile_thread_callback): New function.
11963 * sol-thread.c (sol_find_memory_regions): New function.
11964 (sol_make_note_section): New function.
11965 (init_sol_thread_ops): Initialize new target vectors.
11966 * inftarg.c (inftarg_set_find_memory_regions): New function.
11967 Allow to_find_memory_regions vector to be taken over.
11968 (inftarg_set_make_corefile_notes): New function.
11969 Allow to_make_corefile_notes vector to be taken over.
11970 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11971 interface layer if not target_has_execution (may be a corefile).
11972 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11973 * config/sparc/sun4sol2.mh: Ditto.
11974 * config/alpha/alpha-linux.mh: Ditto.
11975 * config/arm/linux.mh: Ditto.
11976 * config/i386/x86-64linux.mh: Ditto.
11977 * config/ia64/linux.mh: Ditto.
11978 * config/m68k/linux.mh: Ditto.
11979 * config/mips/linux.mh: Ditto.
11980 * config/powerpc/linux.mh: Ditto.
11981 * config/sparc/linux.mh: Ditto.
11982
c6b92abd
MS
119832002-01-07 Michael Snyder <msnyder@redhat.com>
11984
11985 * arm-linux-nat.c: Remove references to regcache.c internal data
11986 (registers[] and register_valid[]).
11987
4b09dc8c
MS
119882002-01-07 Michael Snyder <msnyder@redhat.com>
11989
abf22e64
AJ
11990 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11991 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11992 symbol file and shlibs.
11993 * Makefile.in: Add rule for linux-proc.o.
11994 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11995 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11996 * config/arm/linux.mh: Ditto.
11997 * config/i386/linux.mh: Ditto.
11998 * config/i386/x86-64linux.mh: Ditto.
11999 * config/ia64/linux.mh: Ditto.
12000 * config/m68k/linux.mh: Ditto.
12001 * config/mips/linux.mh: Ditto.
12002 * config/powerpc/linux.mh: Ditto.
12003 * config/sparc/linux.mh: Ditto.
12004
c25b74ac
PM
120052002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12006
12007 * win32-nat.c: Add i386-tdep.h dependency.
12008
94cd915f
MS
120092002-01-07 Michael Snyder <msnyder@redhat.com>
12010
c7cccb76
MS
12011 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12012 instead of bfd_get_arch_size. Don't bail out just because
12013 there's no exec_bfd.
abf22e64 12014
34c0bd93
MS
12015 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12016 * p-valprint.c (pascal_object_print_value): Ditto.
12017 * somread.c (som_symtab_read): Ditto.
12018 * symfile.c (simple_free_overlay_region_table): Ditto.
12019 * valops.c (value_assign): Ditto.
12020
21c1c920
MS
12021 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12022 use tilde_expand and strerror for opening save-tracepoints file.
12023
5bbd998e
MS
12024 * thread-db.c (thread_db_new_objfile): Indendation fix.
12025
94cd915f
MS
12026 * infptrace.c (GDB_MAX_ALLOCA): New define.
12027 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12028 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12029 can be overridden with whatever value is appropriate to the host).
12030 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12031 alloca to allocate potentially large buffer.
12032 * rs6000-nat.c (child_xfer_memory): Ditto.
12033 * symm-nat.c (child_xfer_memory): Ditto.
12034 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12035
494e8a93
JSC
120362002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12037
12038 From Nick Clifton <nickc@redhat.com>
12039 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12040
d0e1d48e
MS
120412002-01-07 Michael Snyder <msnyder@redhat.com>
12042
abf22e64 12043 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12044 Don't use exec_bfd if it's NULL.
12045
290b2c7a
MK
120462002-01-06 Mark Kettenis <kettenis@gnu.org>
12047
abf22e64 12048 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12049
aef21287
AC
120502002-01-06 Andrew Cagney <ac131313@redhat.com>
12051
12052 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12053 * gnu-nat.c: Ditto.
12054
30efa627
AC
120552002-01-06 Andrew Cagney <ac131313@redhat.com>
12056
12057 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12058 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12059 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12060 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12061 z8k-coff have not been multi-arched. Update z8k-coff build
12062 status.
12063
9b4ff276
AC
120642002-01-06 Andrew Cagney <ac131313@redhat.com>
12065
12066 * MAINTAINERS: Mark a29k target as obsolete.
12067 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12068 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12069 comments.
12070 * NEWS: Note that a29k targets are obsolete.
12071 * a29k-tdep.c: Mark as obsolete.
12072 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12073 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12074 a29k-*-vxworks* targets as obsolete.
12075 * remote-adapt.c: Obsolete.
12076 * remote-eb.c: Obsolete.
12077 * remote-mm.c: Obsolete.
12078 * remote-udi.c: Obsolete.
12079 * config/a29k/a29k-udi.mt: Obsolete.
12080 * config/a29k/a29k.mt: Obsolete.
12081 * config/a29k/tm-a29k.h: Obsolete.
12082 * config/a29k/tm-vx29k.h: Obsolete.
12083 * config/a29k/vx29k.mt: Obsolete.
12084
a9011d31
AC
120852002-01-05 Andrew Cagney <ac131313@redhat.com>
12086
12087 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12088 with BFD_ENDIAN_BIG.
12089
9299404e
AC
120902002-01-05 Andrew Cagney <ac131313@redhat.com>
12091
12092 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12093 * configure, config.in: Re-generate.
12094 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12095 * defs.h: Do not include <endian.h>.
12096
7e89e357
JT
120972002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12098
12099 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12100 * config.in: Regenerate.
12101 * configure.in: Update copyright years.
12102 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12103 * configure: Regenerate.
12104 * i386bsd-nat.c: Update copyright years.
12105 (fill_gregset): Use regcache_collect.
12106 (fetch_inferior_registers): Only fetch integer registers
12107 if requested to do so. Add support for XMM registers
12108 using PT_GETXMMREGS.
12109 (store_inferior_registers): Only store integer registers
12110 if requested to do so. Add support for XMM registers
12111 using PT_SETXMMREGS.
12112 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12113 (store_inferior_registers): Remove.
12114 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12115 (fetch_elfcore_registers): New function.
12116 (i386nbsd_elfcore_fns): New.
12117 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12118 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12119 i386bsd-nat.o.
12120 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12121 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12122 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12123 * config/i386/tm-nbsd.h: Update copyright years.
12124 (HAVE_SSE_REGS): Define.
12125 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12126 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12127 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12128 (SIGCONTEXT_PC_OFFSET): Remove.
12129 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12130
a752853e
AC
121312002-01-05 Andrew Cagney <ac131313@redhat.com>
12132
12133 * configure.tgt: Remove powerpc-*-macos* target.
12134 * config/m68k/xm-mpw.h: Delete file.
12135 * config/xm-mpw.h: Delete file.
12136 * ser-mac.c: Delete file.
12137 * mpw-make.sed: Delete file.
12138 * mpw-config.in: Delete file.
12139 * mac-xdep.c: Delete file.
12140 * mac-gdb.r: Delete file.
12141 * mac-defs.h: Delete file.
12142 * mac-nat.c: Delete file.
12143 * config/powerpc/macos.mh: Delete file.
12144 * config/powerpc/macos.mt: Delete file.
12145 * config/powerpc/nm-macos.h: Delete file.
12146 * config/powerpc/tm-macos.h: Delete file.
12147 * source.c (openp, open_source_file): Remove obsolete code.
12148 * top.c (gdb_readline): Ditto.
12149 * utils.c (query): Ditto.
12150 * event-top.c (display_gdb_prompt): Ditto.
12151 * Makefile.in (ser-mac.o): Delete obsolete target.
12152 * NEWS: Update.
12153
d7449b42
AC
121542002-01-04 Andrew Cagney <ac131313@redhat.com>
12155
12156 * defs.h (BIG_ENDIAN): Delete macro definition.
12157 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12158 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12159 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12160 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12161 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12162 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12163 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12164 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12165 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12166 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12167 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12168 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12169 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12170 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12171 * gdbarch.c: Re-generate.
12172
356374e8
DJ
121732002-01-04 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12176 for core files.
12177
a2b8f8f8
JT
121782002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12179
12180 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12181
12466af9
AC
121822002-01-04 Andrew Cagney <ac131313@redhat.com>
12183
12184 * value.h (value_ptr): Delete typedef.
12185
3549ab40
JT
121862002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12187
12188 * i386nbsd-nat.c: Update copyright years.
12189 Include i386-tdep.h.
12190
fedbd091
EZ
121912002-01-04 Elena Zannoni <ezannoni@redhat.com>
12192
12193 * stabsread.c: Update copyright years.
12194
12195 From Debashis Mahata <debashis.mahata@wipro.com>:
12196 (read_struct_fields): Deal with Sun C compiler erroneous stab
12197 output for structs and unions.
fec8b34f 12198 Fix PR gdb/269.
fedbd091 12199
eb43544b
DJ
122002002-01-04 Daniel Jacobowitz <drow@mvista.com>
12201
12202 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12203 prototype.
12204
1514d34e
DJ
122052002-01-04 Daniel Jacobowitz <drow@mvista.com>
12206
12207 * cp-abi.c: Fix whitespace.
12208 (baseclass_offset): New wrapper function.
12209 * cp-abi.h (baseclass_offset): Add prototype.
12210 (struct cp_abi_ops): Add baseclass_offset pointer.
12211
12212 * valops.c (vb_match): Move to...
12213 * gnu-v2-abi.c (vb_match): here.
12214 * valops.c (baseclass_offset): Move to...
12215 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12216
12217 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12218
12219 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12220 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12221 * hpacc-abi.c (init_hpacc_ops): Likewise.
12222
7f8c9282
DJ
122232002-01-04 Daniel Jacobowitz <drow@mvista.com>
12224
12225 * valops.c (find_overload_match): Accept obj as a
12226 reference parameter. Update it before returning.
12227 * value.h (find_overload_match): Update prototype.
12228 * eval.c (evaluate_subexp_standard): Pass object to
12229 find_overload_match by reference.
12230
f23631e4
AC
122312002-01-03 Andrew Cagney <ac131313@redhat.com>
12232
12233 * valarith.c: Replace value_ptr with struct value pointer. Remove
12234 register attribute from value declarations.
12235 * valops.c: Ditto.
12236 * value.h: Ditto.
12237 * scm-lang.c (scm_lookup_name): Ditto.
12238
79e10fab 122392002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12240
79e10fab
AC
12241 Abstract the functionality of iterating over mapped memory
12242 regions into a general purpose iterator function.
abf22e64 12243 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12244 iterator for memory sections.
12245 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12246 (solib_mappings_callback): New function, callback for above.
12247 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12248 (info_mappings_callback): New function, callback for above.
12249
12250 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12251
c5ad026a
MK
122522002-01-01 Mark Kettenis <kettenis@gnu.org>
12253
d2a7c97a
MK
12254 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12255 * i386-tdep.c: Include "elf-bfd.h".
12256 (process_note_abi_tag_sections): New function.
12257 (i386_gdbarch_init): Add code to recognize various OS/ABI
12258 combinations.
12259
c5ad026a
MK
12260 * maint.c (_initialize_maint_cmds): Add missing \ in
12261 string-literal.
12262
a1a5b71e 12263For older changes see ChangeLog-2001
c906108c
SS
12264\f
12265Local Variables:
12266mode: change-log
12267left-margin: 8
12268fill-column: 74
12269version-control: never
12270End:
This page took 0.890489 seconds and 4 git commands to generate.