Reindented.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
baed091b
ML
12002-10-24 Michal Ludvig <mludvig@suse.cz>
2
3 * dwarf2cfi.c (struct context)
4 (struct context_reg): Moved to dwarf2cfi.h
5 (context_alloc, frame_state_alloc, context_cpy):
6 Made extern instead of static, removed prototypes.
7 * dwarf2cfi.h (struct context)
8 (struct context_reg): New, moved from dwarf2cfi.c
9 (context_alloc, frame_state_alloc, context_cpy):
10 New prototypes.
11 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
12 Changed from static to extern.
13 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
14 (LINUX_SIGCONTEXT_FP_OFFSET)
15 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
16 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
17 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
18 * x86-64-tdep.c (x86_64_gdbarch_init): Several
19 set_gdbarch_*() calls now use x86-64 specific functions
20 instead of DWARF2 CFI ones.
21 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
22 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
23 (x86_64_init_extra_frame_info): New prototypes.
24
c38da1af
DC
252002-10-23 David Carlton <carlton@math.stanford.edu>
26
27 * linespec.c: #include "parser-defs.h".
28 Delete prototype for find_template_name_end.
29 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
30
fb9b6b35
JJ
312002-10-23 Jeff Johnston <jjohnstn@redhat.com>
32
33 * NEWS: add recent mi fixes.
34 * varobj.c (struct varobj): Add new "updated" flag.
35 (new_variable): Default "updated" flag to 0.
36 (varobj_set_value): Set "updated" flag to 1 if value
37 changes.
38 (varobj_update): Check varobj "updated" flag before
39 comparing old and refreshed values. Fix for
40 PR gdb/702.
41
8da065d5
DC
422002-10-23 David Carlton <carlton@math.stanford.edu>
43
44 * parse.c (parse_exp_1): Use BLOCK_START.
45 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
46 SYMBOL_BLOCK_VALUE.
47 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
48
87f2f08c
DC
492002-10-23 David Carlton <carlton@math.stanford.edu>
50
51 * symtab.c: Delete cplusplus_hint.
52 Delete prototype for find_template_name_end.
53
88cda038
EZ
542002-10-23 Elena Zannoni <ezannoni@redhat.com>
55
56 * symtab.h: Update comment.
57
2625d86c
MS
582002-10-23 Michael Snyder <msnyder@redhat.com>
59
60 * printcmd.c (address_info): Restore quotes in output.
61 * valops.c (value_of_local): Restore quotes in error message.
62
9cc0d196
EZ
632002-10-23 Elena Zannoni <ezannoni@redhat.com>
64
65 * symtab.c (symbol_demangled_name): New function.
66 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
67 turning most of it into a function.
68 (symbol_demangled_name): Export.
69
19de93d0
MS
702002-10-23 Michael Snyder <msnyder@redhat.com>
71
72 * valops.c (value_of_local): Restore quotes in error message.
73
89aad1f9
EZ
742002-10-23 Elena Zannoni <ezannoni@redhat.com>
75
76 * symtab.c (symbol_init_language_specific): New function.
77 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
78 turning most of it into a function.
79 (symbol_init_language_specific): Export.
80
d9fa45fe
DC
812002-10-23 David Carlton <carlton@math.stanford.edu>
82
83 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
84 (dwarf_attr_name): Ditto.
85 (dwarf_type_encoding_name): Ditto.
86 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
87 (process_die): Handle DW_TAG_namespace,
88 DW_TAG_imported_declaration, DW_TAG_imported_module.
89 (read_namespace): New function.
90
1045b512
JB
912002-10-22 Joel Brobecker <brobecker@gnat.com>
92
93 * configure.in: Define NEW_PROC_API on Interix too.
94 * configure: Regenerate.
95
962002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
97
98 * configure: Regenerate using the proper version of autoconf.
99
3987b9d4
EZ
1002002-10-21 Elena Zannoni <ezannoni@redhat.com>
101
102 * findvar.c (read_var_value): Temporarily disable TLS code, until
103 complete TLS support is added.
104
9d774e44
EZ
1052002-10-21 Jim Blandy <jimb@redhat.com>
106 Elena Zannoni <ezannoni@redhat.com>
107
108 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
109 for thread local storage locations.
110 (struct symbol): Add objfile field.
111 (SYMBOL_OBJFILE): Define.
112 * dwarf2read.c (is_thread_local): New static variable.
113 (new_symbol): If variable is in thread local fill in address class
114 and objfile appropriately.
115 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
116 stack operation.
117 * printcmd.c (address_info): Print the information for thread
118 local storage variable.
119 * findvar.c (read_var_value): In case of thread local variable,
120 defer to the target vector code to compute address.
121
bc4a16ae
EZ
1222002-10-21 Elena Zannoni <ezannoni@redhat.com>
123
124 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
125 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
126
407caf07
EZ
1272002-10-21 Elena Zannoni <ezannoni@redhat.com>
128
129 * symtab.h (address_class): Rename
130 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
131 * hpread.c (hpread_process_one_debug_symbol): Ditto.
132 * printcmd.c (address_info): Ditto.
133 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
134
005328e3
MK
1352002-10-20 Mark Kettenis <kettenis@gnu.org>
136
afdb036a
MK
137 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
138 DBREG_DRX macro to acces debug registers.
139
ca02e098
MK
140 * Makefile.in (i386obsd-tdep.o): New target.
141
03cc47f7
MK
142 * solib-sunos.c: Include "bcache.h" and "regcache.h".
143 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
144
005328e3
MK
145 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
146 * config/i386/obsd.mt: New file.
147 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
148 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
149 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
150 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
151 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
152 * i386obsd-tdep.c: New file.
153
9c96f9f2
AF
1542002-10-19 Adam Fedor <fedor@gnu.org>
155
156 * objc-exp.y (name_not_typename): Fix invalid comment.
157
ce1ed485
MK
1582002-10-20 Mark Kettenis <kettenis@gnu.org>
159
160 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
161 to allocate partial syms and macro byte caches.
162
1efc7aaa
DC
1632002-10-18 David Carlton <carlton@math.stanford.edu>
164
165 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
166
7e1d63ec
AF
1672002-10-18 Adam Fedor <fedor@gnu.org>
168
169 * stabsread.c (find_name_end): New function.
170 (define_symbol): Use it.
171
6e8d29a9
DJ
1722002-10-18 Daniel Jacobowitz <drow@mvista.com>
173
174 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
175 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
176 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
177 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
178
1efc7aaa 1792002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
180
181 * symfile.h: Add opaque declaration for struct obstack.
182 Declare obsavestring to take a const char *.
183 * symfile.c (obsavestring): Make first argument a const char *.
184
1aeae86e
AF
1852002-10-16 Adam Fedor <fedor@gnu.org>
186
187 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
188 names when matching breakpoints in current file.
189
8b2dbe47
KB
1902002-10-16 Kevin Buettner <kevinb@redhat.com>
191
192 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
193 (read_tag_pointer_type): Add address class support.
194 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
195 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
196 New methods.
197 * gdbarch.h, gdbarch.c: Regenerate.
198 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
199 (make_type_with_address_space, recursive_type_dump): Add address
200 class support.
201 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
202 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
203 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
204
74451869
KD
2052002-10-16 Klee Dienes <kdienes@apple.com>
206
207 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
208 to get the last character of a char[] buffer, not
209 name[sizeof(vptr_name)-1].
210
ff4cb3e8
AF
2112002-10-14 Adam Fedor <fedor@gnu.org>
212
213 * symtab.h: New objc_specific struct.
214 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
215 (SYMBOL_DEMANGLED_NAME): Likewise.
216
da2cf7e0
AF
2172002-10-14 Adam Fedor <fedor@gnu.org>
218
219 * symfile.c (init_filename_language_table): Add ObjC file extension.
220
4a351cef
AF
2212002-10-14 Adam Fedor <fedor@gnu.org>
222
223 * utils.c (puts_filtered_tabular): New function.
224 (fprintf_symbol_filtered): Get ObjC demangled name.
225 * defs.h (puts_filtered_tabular): Declared.
226
9750e763
KB
2272002-10-14 Kevin Buettner <kevinb@redhat.com>
228
229 * c-lang.h (c_type_print_varspec_prefix): Delete.
230 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
231 ``need_post_space'' parameter. Adjust all callers.
232
eee771c1
DJ
2332002-10-14 Daniel Jacobowitz <drow@mvista.com>
234
235 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
236 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
237 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
238 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
239
46c82446
AF
2402002-10-13 Adam Fedor <fedor@gnu.org>
241
242 * source.c (print_source_lines): Update comments.
243
d069f99d
AF
2442002-10-13 Adam Fedor <fedor@gnu.org>
245
246 * valops.c (value_of_local): New function.
247 (value_of_this): Use it.
248 * value.h (value_of_local): Declared.
249
53c551b7
AF
2502002-10-13 Adam Fedor <fedor@gnu.org>
251
252 * parse.c: (length_of_subexp, prefixify_subexp): Handle
253 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
254
eb392fbf
AF
2552002-10-12 Adam Fedor <fedor@gnu.org>
256
257 * language.c (binop_result_type): Add language_objc to case.
258 (integral_type): Likewise.
259 (character_type): Likewise.
260 (string_type): Likewise.
261 (boolean_type): Likewise.
262 (structured_type): Likewise.
263 (binop_type_check): Likewise.
264
e2b23ee9
AF
2652002-10-11 Adam Fedor <fedor@gnu.org>
266
267 * printcmd.c (address_info): Print 'self' for ObjC.
268
b01ab485
AF
2692002-10-11 Adam Fedor <fedor@gnu.org>
270
271 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
272 OP_SELF.
273
806e6073
AF
2742002-10-11 Adam Fedor <fedor@gnu.org>
275
276 * language.h (CAST_IS_CONVERSION): Add language_objc.
277
50f85cdf
AF
2782002-10-11 Adam Fedor <fedor@gnu.org>
279
280 * defs.h (enum language): Add language_objc.
281
0d540cdf
KD
2822002-10-11 Klee Dienes <kdienes@apple.com>
283
284 * findvar.c (read_memory_typed_address): New function.
285 * gdbcore.h (read_memory_typed_address): Add prototype.
286 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
287 to read a value destined for a CORE_ADDR, not read_memory_integer.
288 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
289 (f77_get_dynamic_lowerbound): Ditto.
290
d5dc7960
MH
2912002-10-11 Martin M. Hunt <hunt@redhat.com>
292
293 * utils.c (string_to_core_addr): After turning string into
294 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
295 which will do necessary sign-extension, etc.
296
8343f86c
DJ
2972002-10-11 Daniel Jacobowitz <drow@mvista.com>
298
299 * c-exp.y (THIS): Delete token and grammar rule.
300 (yylex): Don't return THIS.
301 * cp-valprint.c (vtbl_ptr_name_old): Delete.
302 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
303 * demangle.c (cplus_markers): Update comment. Put '$'
304 first. Remove CPLUS_MARKER.
305 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
306 * jv-exp.y (THIS): Delete token and grammar rule.
307 (yylex): Don't return THIS.
308 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
309 * objc-exp.y (THIS): Delete token and grammar rule.
310 (yylex): Don't return THIS.
311 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
312 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
313 (read_member_functions): Likewise for opname.
314 (read_tilde_fields): Use is_cplus_marker.
315
316 * defs.h (CPLUS_MARKER): Don't define.
317 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
318 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
319 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
320 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
321 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
322
323 * config/i386/tm-i386v4.h: Delete file.
324 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
325 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
326 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
327 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
328 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
329 * config/i386/i386sco5.mt (TM_FILE): Likewise.
330 * config/i386/i386v4.mt (TM_FILE): Likewise.
331 * config/i386/ncr3000.mt (TM_FILE): Likewise.
332
967c0d83
MM
3332002-10-10 Marko Mlinar <markom@opencores.org>
334
335 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
336 accidentially not commited 2002-10-09
337 * gdbarch.h, gdbarch.c: Re-generate.
338
f74fa174
MM
3392002-10-09 Marko Mlinar <markom@opencores.org>
340
341 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
342 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
343 * gdbarch.h, gdbarch.c: Re-generate.
344
57349743
JB
3452002-10-08 Petr Sorfa <petrs@caldera.com>
346
347 Revised and re-submitted by John Wolfe <jlw@caldera.com>
348
349 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
350 so we can work on more than one compilation unit at a time. This
351 helps prepare GDB to handle inter-CU die references.
352 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
353 the code to be defined before struct comp_unit_head.
354 (comp_unit_head): Added new members - offset, cu_head,
355 begin_die, next and dwarf2_abbrevs.
356 (dwarf2_abbrevs): Removed single static var; now member of
357 struct comp_unit_head.
358 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
359 members.
360 (psymtab_to_symtab_1): Changed to work with the new
361 struct comp_unit_head.
362 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
363 constructs the dwarf2_abbrevs[] inside the cu_header.
364 (dwarf2_empty_abbrev_table): Now expects a ptr to a
365 dwarf2_abbrev table to clean up.
366 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
367 handling of dwarf2_abbrevs inside the cu_header.
368 (read_partial_die): Now supports the call to the new
369 dwarf2_lookup_abbrev.
370 (read_full_die): Now supports the call to the new
371 dwarf2_lookup_abbrev.
372
4092aadb
CF
3732002-10-06 Christopher Faylor <cgf@redhat.com>
374
375 * Makefile.in (install-gdbtk): Add missing continuation backslash to
376 insure that shell variables, such as "transformed_name" are propagated
377 to later shell statements in rule.
378
af0b2512
MK
3792002-10-06 Mark Kettenis <kettenis@gnu.org>
380
381 * config/i386/nm-i386sco.h: Add protection against
382 multiple-inclusion. Include "i386/nm-i386v.h".
383 (REGISTER_U_ADDR): Remove define.
384 (i386_register_u_addr): Remove prototype.
385
d6020d45
MS
3862002-10-04 Michael Snyder <msnyder@redhat.com>
387
388 * m32r-stub.c (handle_exception): Make sure exception is "trap"
389 before treating it as a single-step event.
390
7248f48e
AF
3912002-10-03 Adam Fedor <fedor@gnu.org>
392
393 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
394 (objc_demangle): Remove assignment in if statements, Replace
395 free with xfree.
396 (add_msglist): Likewise.
397 (end_msglist): Likewise.
398 (complare_selectors): Likewise.
399 (selectors_info): Likewise.
400 (compare_classes): Likewise.
401 (classes_info): Likewise.
402 (print_object_command): Likewise.
403 (find_objc_msgcall_submethod): Replace PTR with void *.
404 * objc-lang.h: Remove check for __STDC__.
405
52c6a6ac
JJ
4062002-10-03 Jeff Johnston <jjohnstn@redhat.com>
407
408 * ui-out.h (ui_out_field_fmt_int): New prototype.
409 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
410 of field width and alignment.
411 * stack.c (print_frame_info_base): When printing frame level, use
412 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
413 PR gdb/192
414
7e3cec17
JJ
4152002-10-03 Jeff Johnston <jjohnstn@redhat.com>
416
417 * MAINTAINERS: Add self to Write After Approval list.
418
a58dd373
EZ
4192002-10-02 Elena Zannoni <ezannoni@redhat.com>
420
421 * infcmd.c (interrupt_target_command_wrapper): Delete.
422 (interrupt_target_command): Make non static.
423 (nofp_registers_info): Make static.
424 * stack.c (return_command_wrapper): Delete.
425 (return_command): Make non static.
426
cee6ddeb
EZ
4272002-10-02 Elena Zannoni <ezannoni@redhat.com>
428
429 * event-top.c (gdb_setup_readline): New function. Code moved from
430 _initialize_event_loop().
431 (_initialize_event_loop): Call gdb_setup_readline().
432
c4ed33b9
AC
4332002-10-02 Andrew Cagney <ac131313@redhat.com>
434
435 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
436 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
437 * gdbarch.h, gdbarch.c: Re-generate.
438
cef4f5dd
DJ
4392002-10-02 Daniel Jacobowitz <drow@mvista.com>
440
441 Fix PR gdb/778
442 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
443 before recursing.
444 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
445 of fill_in_vptr_fieldno.
446
36dc181b 4472002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 448
36dc181b
EZ
449 * inferior.h (registers_info, stepi_command, nexti_command,
450 continue_command, interrupt_target_command): Export from infcmd.c.
451 * frame.h (args_info, selected_frame_level_changed_hook,
452 return_command): Export from stack.c.
453 * v850ice.c (stepi_command, nexti_command, continue_command): use
454 prototypes from inferior.h.
455 * tracepoint.c (registers_info, args_info, locals_info): Use
456 prototypes from frame.h and inferior.h.
457 * Makefile.in (mi-main.o): Add dependency on frame.h.
458
6f99cb26
AC
4592002-10-02 Andrew Cagney <ac131313@redhat.com>
460
da3eff49
AC
461 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
462 value in register 3 adjusted by ppc_gp0_regnum.
463
6f99cb26
AC
464 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
465
da615bee
MM
4662002-10-02 Marko Mlinar <markom@opencores.org>
467
468 * MAINTAINERS: Add myself to the Write After Approval list.
469
d154bee2
AO
4702002-10-01 Alexandre Oliva <aoliva@redhat.com>
471
62a49b2c
AO
472 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
473 of the section for the N64 ABI, fixed.
474
d154bee2
AO
475 * config/mips/tm-irix6.h: Include solib.h.
476
ed348acc
EZ
4772002-10-01 Elena Zannoni <ezannoni@redhat.com>
478
479 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
480 GNU operators.
481
da0f9dcd
AC
4822002-10-01 Andrew Cagney <ac131313@redhat.com>
483
484 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
485 and that "mi0" syntax has been removed.
486
bdf64bac
DC
4872002-09-30 David Carlton <carlton@math.stanford.edu>
488
489 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
490 * ppc-sysv-tdep.c: #include "gdb_string.h".
491 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
492 pacify GCC.
493
54c2a1e6
AC
4942002-10-01 Andrew Cagney <ac131313@redhat.com>
495
496 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
497 "vrsave"'s register number.
498
cedea778
AC
4992002-09-30 Andrew Cagney <ac131313@redhat.com>
500
501 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
502 use frame_unwind_signed_register to obtain the PC.
503 (mips_frame_chain): Handle a generic dummy frame.
504 (mips_init_extra_frame_info): When a generic dummy frame, don't
505 re-compute the frame base.
506 (mips_pop_frame): Handle generic dummy frames.
507 (mips_gdbarch_init): When generic dummy frames, set
508 use_generic_dummy_frames, push_dummy_frame to
509 generic_push_dummy_frame, pc_in_call_dummy to
510 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
511 generic_save_dummy_frame_tos.
512
68315eb8
AC
5132002-09-30 Andrew Cagney <ac131313@redhat.com>
514
515 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
516 against TOP when TOP was explictly set.
517 (generic_push_dummy_frame): Set TOP to zero.
518
3b8630c3
EZ
5192002-09-30 Elena Zannoni <ezannoni@redhat.com>
520
521 * event-loop.c (start_event_loop): Rename variable 'result' to
522 'gdb_result', to avoid conflicts with upcoming intepreters changes.
523
28ee05e9
KS
5242002-09-30 Keith Seitz <keiths@redhat.com>
525
526 * gdb-events.sh (selected_thread_changed): New event.
527 * gdb-events.c: Regenerated.
528 * gdb-events.h: Regenerated.
529
6eecb1c8
HPN
5302002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
531
532 * MAINTAINERS: Add self to Write After Approval list.
533
92df71f0
FN
5342002-09-30 Fernando Nasser <fnasser@redhat.com>
535
3b8630c3
EZ
536 * disasm.c: New file.
537 * disasm.h: New file.
92df71f0
FN
538 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
539 (compare_lines): Ditto.
540 (dump_insns): Ditto.
3b8630c3
EZ
541 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
542 argument.
92df71f0 543 (do_assembly_only): Ditto.
3b8630c3
EZ
544 (do_disassembly): Renamed to gdb_disassembly and moved to
545 disasm.c. Sdded uiout argument.
546 * Makefile.in: Add new files. Reorder SFILES list. Update
547 dependencies. Include libgdb.a later in the insight executable.
92df71f0 548
0c22854d
AC
5492002-09-29 Andrew Cagney <ac131313@redhat.com>
550
551 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
552 bfd/elf64-alpha-fbsd.c.
553
e67f2023
AC
5542002-09-29 Andrew Cagney <ac131313@redhat.com>
555
556 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
557 i386gnu-tdep.c.
558
89396210
AC
5592002-09-29 Andrew Cagney <ac131313@redhat.com>
560
561 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
562 __FUNCTION__.
563 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
564 function name.
565 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
566 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
567 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
568 (S_msg_sig_post_reply): Ditto.
569
7079c36c
CV
5702002-09-28 Corinna Vinschen <vinschen@redhat.com>
571
89396210
AC
572 * sh-tdep.c (sh_use_struct_convention): Use definition according
573 to ABI.
7079c36c
CV
574 (sh_push_arguments): Store in register with correct endianess.
575 (sh_default_store_return_value): Ditto.
576 (sh_gdbarch_init): Set sizeof long double to 8.
577
975ac915
MK
5782002-09-27 Mark Kettenis <kettenis@gnu.org>
579
580 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
581 Fix some whitespace problems.
582
9bbe19fb
DC
5832002-09-27 David Carlton <carlton@math.stanford.edu>
584
585 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
586 (mcore-tdep.o): Ditto.
587 (ns32k-tdep.o): Ditto.
588 (ns32knbsd-tdep.o): Ditto.
589 (sh3-rom.o): Ditto.
590 (vax-tdep.o): Ditto.
591 * cris-tdep.c: #include "gdb_string.h"
592 * mcore-tdep.c: Ditto.
593 * ns32k-tdep.c: Ditto.
594 * ns32knbsd-tdep.c: Ditto.
595 * sh3-rom.c: Ditto.
596 * vax-tdep.c: Ditto.
597
43b2fdc7
DC
5982002-09-27 David Carlton <carlton@math.stanford.edu>
599
600 * config/djgpp/fnchange.lst: Add entries for
601 gdb/testsuite/gdb.c++/m-static files.
602
e8cfbbd9
JW
6032002-09-27 Jim Wilson <wilson@redhat.com>
604
605 * MAINTAINERS: Add myself to the Write After Approval list.
606
43b2fdc7 6072002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
608
609 * mips-tdep.c (find_proc_desc): Initialize startaddr.
610
611
9f3b7f07
AC
6122002-09-26 Andrew Cagney <ac131313@redhat.com>
613
614 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
615 frame.
616
11269d7e
AC
6172002-09-26 Andrew Cagney <ac131313@redhat.com>
618
619 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
620 (rs6000_struct_return_address): Delete variable.
621 (rs6000_store_struct_return): Update.
622 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
623 deprecated_extract_struct_value_address.
624 (rs6000_frame_align): New function.
625 (rs6000_gdbarch_init): Set frame_align.
626
f15ab4a7
AC
6272002-09-26 Andrew Cagney <ac131313@redhat.com>
628
629 From Grace Sainsbury <graces@redhat.com>:
630 * Makefile.in (gdbtk-main.o): New target.
631 (gdb.o): New target.
632 (main_h): Define.
633 (main.o): Update dependencies.
634 (gdb$(EXEEXT)): Add gdb.o.
635 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
636 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
637 (SUBDIR_GDBTK_CLEAN): Set.
638 (install-gdbtk): Install the insight binary.
639 (uninstall-gdbtk): New target.
640 (all-gdbtk, clean-gdbtk): New rule.
641 * top.c (use_windows): Default to zero.
642 * main.c: Include "main.h".
643 (main): Delete.
644 (struct captured_main_args): Delete.
645 (gdb_main): New function.
646 * main.h: New file.
647 * gdb.c: New File.
648
e36180d7
AC
6492002-09-25 Andrew Cagney <cagney@redhat.com>
650
651 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
652 (frame_map_regnum_to_name): New function.
653 (frame_map_name_to_regnum): New function.
654 * frame.h (frame_map_name_to_regnum): Declare.
655 (frame_map_regnum_to_name): Declare.
656 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
657 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
658 * parse.c: Do not include "builtin-regs.h".
659 (target_map_name_to_register): Delete function.
660 (write_dollar_variable): Use frame_map_name_to_regnum.
661 * parser-defs.h (target_map_name_to_register): Delete declaration.
662 * expprint.c: Include "frame.h".
663 (print_subexp): Use frame_map_regnum_to_name.
664 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
665 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
666
8b69000d
AC
6672002-09-25 Andrew Cagney <ac131313@redhat.com>
668
669 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
670 wasn't saved, and the next innermost frame is a dummy, return the
671 dummy frame's link register.
672
046ca86a
JB
6732002-09-24 Jim Blandy <jimb@redhat.com>
674
675 Fix from Paul Breed:
676 * main.c (captured_main): Add a `break' after the case for 'b'.
677
94b66fa7
KS
6782002-09-24 Keith Seitz <keiths@redhat.com>
679
680 * varobj.c (c_type_of_child): Use get_target_type instead
681 of TYPE_TARGET_TYPE.
682
c214a6fd
FN
6832002-09-22 Fernando Nasser <fnasser@redhat.com>
684
53cb0458
FN
685 * source.c (get_current_or_default_source_symtab_and_line): Remove
686 function.
687 (set_default_source_symtab_and_line): New function. Attempts to
688 determine a source file to list lines from if one is not currently
689 defined.
690 (get_current_source_symtab_and_line): Initialize sal.pc and
691 sal.end fields.
692 (set_current_source_symtab_and_line): Mark argument as const.
693 * source.h: Update declarations and comments.
694 * linespec.c (decode_line_1): Replace call to removed routine above.
695 * stack.c (print_frame_info_base): Ditto.
696 * cli/cli-cmds.c (edit_command): Ditto.
697 (list_command): Ditto.
698
6992002-09-22 Fernando Nasser <fnasser@redhat.com>
700
d6020d45 701 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 702 sal.pc and sal.end fields.
c214a6fd
FN
703 (get_current_or_default_source_symtab_and_line): Ditto.
704 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
705 so we do not cause a new source symtab to be searched for (reverting an
706 unintentional change from the 2002-09-20 patch).
707 * scm-lang.c (scm_unpac): Ditto.
708
cc3b68a5
AC
7092002-09-21 Andrew Cagney <cagney@redhat.com>
710
711 * complaints.c (symfile_explanations): Remove new-line from
712 ``isolated_message''.
713 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
714 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
715
5835abe7
NC
7162002-09-20 Nick Clifton <nickc@redhat.com>
717
718 * NEWS: Announce that V850EA ISA is no longer supported.
719 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
720
a15ef5f5
DC
7212002-09-20 David Carlton <carlton@math.stanford.edu>
722
06ba1b39
DC
723 * Makefile.in (c-lang.o): Correct dependencies.
724 (utils.o): Gather dependencies.
725 (charset.o): Move.
a15ef5f5
DC
726 * c-lang.c: #include "gdb_string.h"
727
87885426
FN
7282002-09-20 Fernando Nasser <fnasser@redhat.com>
729
730 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
731 * cli/cli-cmds.c (list_command): New function. Implements the new
732 cli edit command.
733 (_init_cli_cmds): Add new command definition.
734 * gdb.1: Document edit command.
735 * doc/gdb.texinfo: Document edit command.
736
7372002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
738
739 * source.c: Make global variables current_source_symtab and
740 current_source_line static.
741 (list_command): Moved to cli/cli-cmds.c.
742 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
743 (get_first_line_listed): New accessor function.
744 (get_lines_to_list): New accessor function.
745 (get_current_source_symtab_and_line): New function. Retrieves the
746 position in the source code that we consider current.
747 (get_current_or_default_source_symtab_and_line): New function.
748 Like the above but attempts to determine a default position if one
749 is not currently defined.
750 (set_current_source_symtab_and_line): New function. Sets the source
751 code position considered current and returns the previously set one.
752 (clear_current_source_symtab_and_line): Reset stored information about
753 a current source line.
754 (_initialize_source): Remove registration for the "list" command and
755 its alias.
756 * source.h: Add declarations for the new functions above.
757 * symtab.h: Remove declarations for the global variables mentioned
758 above.
759 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
760 obtain current source line.
761 * linespec.c (decode_line_1): Ditto.
762 * macroscope.c (default_macro_scope): Ditto.
763 * scm-lang.c (scm_unpac): Ditto.
764 * stack.c (print_frame_info_base): Ditto.
765 * symfile.c (clear_symtab_users): Ditto.
766 * symtab.c (decode_line_spec): Ditto.
767 * cli/cli-cmds.c (list_command): Moved here from source.c.
768 (ambiguous_line_spec): Moved here from source.c.
769 (_init_cli_cmds): Add definition for "list" and its alias.
770 * Makefile.in: Update dependencies.
771
ddd216ea
CV
7722002-09-20 Corinna Vinschen <vinschen@redhat.com>
773
774 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
775 with what gcc thinks is correct.
776
6d305052
CV
7772002-09-20 Corinna Vinschen <vinschen@redhat.com>
778
779 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
780 multiple register push instruction.
781
234b45d4
KB
7822002-09-19 Jim Blandy <jimb@redhat.com>
783
784 Add support for distinct host and target character sets.
785 * charset.c, charset.h: New files.
786 * c-exp.y: #include "charset.h".
787 (yylex): Convert character and string literals to the target
788 character set, before returning them as the semantic value of the
789 token.
790 * c-lang.c: #include "charset.h".
791 (c_emit_char): Use charset-specific methods to recognize
792 characters with backslash escape forms, to decide which characters
793 to print literally and which to print using numeric escape
794 sequences, and to convert target characters to host characters
795 before printing.
796 * utils.c: #include "charset.h".
797 (no_control_char_error): New function.
798 (parse_escape): Use charset-specific methods to recognize
799 backslash escapes, parse `control character' notation, and convert
800 characters from the host character set to the target character set.
801 * configure.in: Set the default host character set.
802 Check where to find iconv, and what its argument types might be.
803 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
804 * Makefile.in (SFILES): List charset.c.
805 (COMMON_OBS): List charset.o.
806 (charset.o): New rule.
807 (charset_h): New header dependency variable.
808 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
809 (LIBICONV): New variable, set by configure.
810 (CLIBS): Include $(LIBICONV) here.
811 * aclocal.m4, config.in, configure: Regenerated.
812
525d6a61
JB
8132002-09-19 Joel Brobecker <brobecker@gnat.com>
814
815 * ada-exp.y: Add missing semicolons to end rules. Fixes a
816 bison 1.35 warning.
817
3ed93867
RE
8182002-09-19 Richard Earnshaw <rearnsha@arm.com>
819
820 * gdb_mbuild.sh: New file.
821
437666f8
AC
8222002-09-19 Andrew Cagney <ac131313@redhat.com>
823
824 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
825
389e51db
AC
8262002-09-18 Andrew Cagney <ac131313@redhat.com>
827
828 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
829 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
830 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
831 valops.c, value.h: Revert previous change.
832
3b4efeaa
MS
8332002-09-18 Michael Snyder <msnyder@redhat.com>
834
835 Preliminary support for Objective-C:
836 * defs.h (language_objc): New enum value.
837 (puts_filtered_tabular): Declaration only, exported from utils.c.
838 (skip_quoted): Delete, declared in completer.h.
839 * c-exp.y: Include completer.h.
840 * p-exp.y: Ditto.
841 * jv-exp.y: Ditto.
842 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
843 New operator enum values.
844 * language.h (CAST_IS_CONVERSION): Test for language_objc.
845 * language.c (binop_result_type): Handle language_objc case.
846 (integral_type, character_type, string_type, boolean_type,
847 structured_type, binop_type_check): Ditto.
848 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
849 (struct objc_specific): Add to general_symbol_info.
850 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
851 (SYMBOL_DEMANGLED_NAME): Handle objc case.
852 * parser-defs.h (struct objc_class_str): New struct type.
853 (start_msglist, end_msglist, add_msglist): Declaration only,
854 exported from objc-lang.c.
855 * value.h (value_of_local, value_nsstring,
856 call_function_by_hand_expecting_type): Exported from valops.c.
857 * valops.c (find_function_addr): Export.
858 (call_function_by_hand_expecting_type): New function.
859 (value_of_local): New function.
860 * symfile.c (init_filename_language_table): Add ".m" extension
861 for Objective-C.
862 * utils.c (puts_filtered_tabular): New function.
863 (fprintf_symbol_filtered): Add objc demangling support (disabled).
864 (set/show demangle): Extend help-string to refer to ObjC.
865 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
866 * stabsread.c (symbol_reference_defined): Objective-C symbols
867 may contain colons: make allowances when scanning stabs strings
868 for colons.
869 (objc_find_colon): New function.
870 * printcmd.c (address_info): If language == objc then print
871 "self" instead of "this".
872 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
873 OP_NSSTRING, and OP_SELF.
874 (prefixify_subexp): Ditto.
875 * source.c (print_source_lines): Mention objc in comment.
876 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
877 method names.
878
b9caf505
AC
8792002-09-18 Andrew Cagney <ac131313@redhat.com>
880
881 * complaints.h: Update copyright.
882 (struct complaints): Declare.
883 (struct complaint): Make `message' constant.
884 (internal_complaint): Declare.
885 (complaint): Declare.
886 (complaint_root): Delete declaration.
887 (symfile_complaints): Delete declaration.
888 (struct complaints): Add opaque declaration.
889 (clear_complaints): Add a complaints parameter.
890 * complaints.c: Update copyright.
891 (enum complaint_series): Define.
892 (complaint_root): Delete.
893 (struct complaints): Define.
894 (complaint_sentinel, symfile_complaint_book): New variables.
895 (symfile_explanations, symfile_complaints): New variables.
896 New variables.
897 (get_complaints): New function.
898 (vcomplaint): New function.
899 (complaint): New function.
900 (internal_complaint): New function.
901 (complain): Call vcomplain with symfile_complaint.
902 (clear_complaints): Rewrite.
903 (_initialize_complaints): Use add_setshow_command.
904 * Makefile.in (complaints.o): Update dependencies.
905 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
906 to call to clear_complaints.
907 (new_symfile_objfile, reread_symbols): Ditto.
908 (oldsyms_complaint): Delete.
909 (empty_symtab_complaint, unknown_option_complaint): Delete.
910 (free_named_symtabs): Use complaint instead of complain.
911
d2e6263c
MS
9122002-09-18 Michael Snyder <msnyder@redhat.com>
913
5fb2031a
AC
914 Contributed by Apple Computer, Inc. Merged with current sources
915 by Adam Fedor <fedor@doc.com> [cagney].
916
d2e6263c
MS
917 * objc-lang.c: First clean-up round: comments, indentation.
918 * objc-lang.h: Ditto.
919 * objc-lang.y: Ditto.
920
dec43320
AC
9212002-09-18 Andrew Cagney <ac131313@redhat.com>
922
923 * maint.c (maintenance_internal_error): Print the parameter as the
924 error message.
925 (maintenance_internal_warning): New function.
926 (_initialize_maint_cmds): Add command `maint internal-warning'.
927
928 * defs.h (internal_warning, internal_vwarning): Declare.
929 * utils.c (struct internal_problem): Define.
930 (internal_vproblem): New function.
931 (internal_warning): New function.
932 (internal_vwarning): New function.
933 (internal_warning_problem, internal_error_problem): New variables.
934 (internal_verror): Just call internal_vproblem.
935
b81654f1
MS
9362002-09-18 Michael Snyder <msnyder@redhat.com>
937
938 * objc-lang.c: New file, support for Objective-C.
939 Preliminary check-in, not yet integrated into gdb.
940 * objc-lang.h: New file.
941 * objc-exp.y: New file.
942
0542c381
AC
9432002-09-18 Andrew Cagney <ac131313@redhat.com>
944
7bda5e4a
AC
945 * infrun.c (signal_stop_update): Convert definition to ISO C.
946 (signal_print_update): Ditto.
947 (signal_pass_update): Ditto.
948 * inflow.c (terminal_save_ours): Ditto.
949
5247b418
AC
950 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
951 comments.
952
fc60962c
AC
953 * config/djgpp/fnchange.lst: Handle name clashes between
954 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
955 bfd/coff-tic80.c.
956
0542c381
AC
957 * i386-linux-tdep.h: Fix tipo.
958
5b924b9b
AF
9592002-09-18 Adam Fedor <fedor@gnu.org>
960
961 * MAINTAINERS: Add myself to the Write After Approval list.
962
5afc051b
JB
9632002-09-18 Jim Blandy <jimb@redhat.com>
964
965 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
966 texthigh and textlow to reader-specific structs caused
967 objfile_relocate to miss them. This is fixable, but the work that
968 the change was supposed to prepare GDB for never got done anyway.
969
eb944380
DC
9702002-09-18 David Carlton <carlton@math.stanford.edu>
971
972 * MAINTAINERS: Alphabetize Write After Approval list.
973
948e66d9
DJ
9742002-09-18 Daniel Jacobowitz <drow@mvista.com>
975
976 Fix PR gdb/709
977 * values.c (value_static_field): Call read_var_value.
978
dc604539
AC
9792002-09-18 Andrew Cagney <ac131313@redhat.com>
980
981 * valops.c (hand_function_call): Align the initial stack pointer
982 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
983 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
984 return value.
985 * mips-tdep.c (mips_frame_align): New function.
986 (mips_gdbarch_init): Set frame_align.
987 * gdbarch.sh (FRAME_ALIGN): New method.
988 * gdbarch.h, gdbarch.c: Re-generate.
989
cb7e422f
ML
9902002-09-18 Michal Ludvig <mludvig@suse.cz>
991
992 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
993 registers.
994
a094c6fb
AC
9952002-09-17 Andrew Cagney <ac131313@redhat.com>
996
997 * NEWS: Mention that MIPS $fp behavior changed.
998 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
999 reference to FP_REGNUM.
1000 (mipsnbsd_cannot_store_register): Ditto.
1001 * mips-linux-nat.c: Update copyright.
1002 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1003 (mips_linux_cannot_store_register): Ditto.
1004 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1005 * config/mips/tm-mips.h: Update copyright.
1006 (FP_REGNUM): Delete macro.
1007 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1008 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1009 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1010 (mips_r3041_reg_names, mips_r3051_reg_names)
1011 (mips_r3081_reg_names): Replace "fp" with "".
1012 Fix PR gdb/480.
1013
45cf40d1
TR
10142002-09-17 Theodore A. Roth <troth@verinet.com>
1015
1016 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1017 generic_read_register_dummy() (PR gdb/703).
1018 (avr_push_return_address): #if 0 out unused vars.
1019 (avr_gdbarch_init): Enable use of avr_push_return_address().
1020
c7e701b5
MS
10212002-09-17 Michael Snyder <msnyder@redhat.com>
1022
d76ba2a5 1023 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1024 RTE will take care of it.
1025
20bcf01c
AC
10262002-09-17 Andrew Cagney <ac131313@redhat.com>
1027
1028 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1029 invalid, return SP_REGNUM.
1030
009a9971 10312002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1032
1033 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1034 point registers without sign extension.
1035
135c175f
AC
10362002-09-17 Andrew Cagney <cagney@redhat.com>
1037
1038 * blockframe.c (deprecated_read_register_dummy): Rename
1039 generic_read_register_dummy.
1040 * frame.c (frame_unwind_signed_register): New function.
1041 (frame_unwind_unsigned_register): New function.
1042 * frame.h (frame_unwind_signed_register): Declare.
1043 (frame_unwind_unsigned_register): Declare.
1044 (deprecated_read_register_dummy): Rename
1045 generic_read_register_dummy.
1046
1047 * h8300-tdep.c (h8300_frame_chain): Update.
1048 (h8300_frame_saved_pc): Update.
1049 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1050 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1051 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1052 (s390_frame_chain): Update.
1053 * v850-tdep.c (v850_find_callers_reg): Update.
1054 (v850_frame_saved_pc): Update.
1055 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1056 (m32r_find_callers_reg): Update.
1057 (m32r_frame_saved_pc): Update.
1058 * sh-tdep.c (sh_find_callers_reg): Update.
1059 (sh64_get_saved_pr): Update.
1060 (sh_init_extra_frame_info): Update.
1061 (sh_init_extra_frame_info): Update.
1062 (sh64_init_extra_frame_info): Update.
1063 (sh64_init_extra_frame_info): Update.
1064 * mcore-tdep.c (mcore_find_callers_reg): Update.
1065 (mcore_frame_saved_pc): Update.
1066 (mcore_init_extra_frame_info): Update.
1067 * i386-tdep.c (i386_frame_saved_pc): Update.
1068 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1069 (ia64_init_extra_frame_info): Update.
1070 (ia64_init_extra_frame_info): Update.
1071 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1072 * cris-tdep.c (cris_init_extra_frame_info): Update.
1073 * avr-tdep.c (avr_frame_chain): Update.
1074 (avr_init_extra_frame_info): Update.
1075 (avr_frame_saved_pc): Update.
1076 * arm-tdep.c (arm_find_callers_reg): Update.
1077 (arm_init_extra_frame_info): Update.
1078 (arm_frame_saved_pc): Update.
1079
a741e514
TT
10802002-09-17 Tom Tromey <tromey@redhat.com>
1081
1082 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1083 is "'".
1084
d1a8e808
CV
10852002-09-17 Corinna Vinschen <vinschen@redhat.com>
1086
1087 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1088 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1089 NEXT_PROLOGUE_INSN.
1090 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1091 NEXT_PROLOGUE_INSN.
1092
d9025a18
JB
10932002-09-16 Joel Brobecker <brobecker@gnat.com>
1094
1095 * osfsolib.c: Remove file, replaced by solib-osf.c.
1096 * Makefile.in: Remove compilation rules for osfsolib.c.
1097
1b2ef1b6
DC
10982002-09-16 David Carlton <carlton@math.stanford.edu>
1099
1100 * cp-valprint.c (cp_print_class_method): Correct args to
1101 check_stub_method_group.
1102
928e48af
CV
11032002-09-16 Corinna Vinschen <vinschen@redhat.com>
1104
1105 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1106 `set architecture'. Unify naming convention of functions.
1107 (h8300_skip_prologue): Improve prologue analysis.
1108 (h8300_push_arguments): Rewritten to more closely match GCC's
1109 bizarre argument-passing behavior, along with the comment describing
1110 said behavior.
1111 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1112 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1113 sim, remote-e7000.c, remote-hms.c and remote.c
1114
5e3397bb
MK
11152002-09-15 Mark Kettenis <kettenis@gnu.org>
1116
1117 * i386-tdep.c (gdb_print_insn_i386): Removed.
1118 (i386_print_insn): New function.
1119 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1120 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1121 tm_print_insn_info.
1122
f710f4fc
MK
11232002-09-14 Mark Kettenis <kettenis@gnu.org>
1124
1125 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1126 zero.
1127
db54fef4
CV
11282002-09-14 Corinna Vinschen <vinschen@redhat.com>
1129
1130 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1131 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1132 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1133
2becadee
CF
11342002-09-13 Christopher Faylor <cgf@redhat.com>
1135
1136 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1137
de17c821
DJ
11382002-09-13 Daniel Jacobowitz <drow@mvista.com>
1139
1140 * gdbtypes.c (check_stub_method): Make static.
1141 (check_stub_method_group): New function.
1142 * gdbtypes.h: Update prototypes.
1143 * cp-support.c: New file.
1144 * cp-support.h: New file.
1145
1146 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1147 (update_method_name_from_physname): New function.
1148 (read_member_functions): Correct method names for operators
1149 and v3 constructors/destructors. Separate v2 constructors and
1150 destructors.
1151 * Makefile.in (stabsread.o): Update dependencies.
1152 (SFILES): Add cp-support.c.
1153 (COMMON_OBS): Add cp-support.o.
1154 (cp_support_h, cp-support.o): Add.
1155
1156 * cp-valprint.c (cp_print_class_method): Call
1157 check_stub_method_group instead of check_stub_method. Remove
1158 extraneous QUITs.
1159 * p-valprint.c (pascal_object_print_class_method): Likewise.
1160 * valops.c (search_struct_method): Likewise.
1161 (find_method_list, value_struct_elt_for_reference): Likewise.
1162
e76cff22
AC
11632002-09-13 Andrew Cagney <cagney@redhat.com>
1164
1165 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1166 * gdbarch.h, gdbarch.c: Regenerate.
1167
905abb3f
AC
11682002-09-13 Andrew Cagney <ac131313@redhat.com>
1169
1170 * frame.c (find_saved_register): Delete function.
1171 * frame.h (find_saved_register): Delete declaration.
1172 Fix PR gdb/631.
1173
64159455
AC
1174Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1175
1176 * mips-tdep.c (read_next_frame_reg): Re-hack using
1177 frame_register_unwind.
1178
795e1e11
AC
1179Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1180
1181 * mips-tdep.c (mips_get_saved_register): Re-hack using
1182 frame_register_unwind.
1183
5720643c
JB
11842002-09-12 Joel Brobecker <brobecker@gnat.com>
1185
1186 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1187 vector. Will be useful for Interix.
1188 * gdbarch.h, gdbarch.c: Regenerate.
1189
1190 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1191 name of the malloc function by NAME_OF_MALLOC.
1192
3bada2a2
JB
11932002-09-12 Joel Brobecker <brobecker@gnat.com>
1194
1195 * value.h (find_function_in_inferior): Add const keyword to
1196 one of the parameters. Allows us to invoke this function with
1197 a const char *.
1198 * valops.c (find_function_in_inferior): Likewise.
1199
3db26b01
JB
12002002-09-12 Joel Brobecker <brobecker@gnat.com>
1201
1202 * exec.c (xfer_memory): Fix compilation warning with old versions
1203 of GCC.
1204 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1205
17c5ed2c
DC
12062002-09-12 David Carlton <carlton@math.stanford.edu>
1207
1208 * symtab.h: Run through gdb_indent.h.
1209 Add 2002 to Copyright year list.
1210
ecd1107e
AM
12112002-09-12 Alan Modra <amodra@bigpond.net.au>
1212
1213 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1214 mach constants.
1215 * MAINTAINERS: Add myself to write after approval list.
1216
e64f66d1
JB
12172002-09-11 J. Brobecker <brobecker@gnat.com>
1218
1219 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1220
f9395794
JB
12212002-09-11 J. Brobecker <brobecker@gnat.com>
1222
1223 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1224 Interix.
1225
1a303dec
MS
12262002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1227
1228 * procfs.c (do_detach): Clear current signal, not just fault.
1229 Corrects problem with breakpoint trap signal leaking to detached
1230 process on Tru64.
1231
c0219d42
MS
12322002-09-10 Michael Snyder <msnyder@redhat.com>
1233
1234 * buildsym.c (finish_block): Protect against null pointer.
1235
9d84ac84
AC
12362002-09-10 Andrew Cagney <cagney@redhat.com>
1237
1238 * infcmd.c (default_print_registers_info): Send all output to
1239 ``file'' instead of ``gdb_stdout''.
1240
77d8f2b4
MS
12412002-09-10 Michael Snyder <msnyder@redhat.com>
1242
1243 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1244 LONGEST, and use signed register read (addresses are sign-
1245 extended for mips).
1246
99656a61
SC
12472002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1248
1249 * event-loop.c (gdb_do_one_event): Make public.
1250 * event-loop.h (gdb_do_one_event): Declare.
1251
da12f4d8
JL
12522002-09-10 Jeff Law <law@redhat.com>
1253
1254 * infttrace.c (child_resume): Simplify and rework to avoid
1255 TT_PROC_CONTINUE.
1256
d0aee0c4
FF
12572002-09-09 Fred Fish <fnf@intrinsity.com>
1258
1259 * printcmd.c (print_scalar_formatted): "len" is the number of
1260 target bytes, NOT the number of target bits.
1261
7cb3ec5e
EZ
12622002-09-09 Elena Zannoni <ezannoni@redhat.com>
1263
1264 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1265 * top.c (init_main): Set rl_terminal_name.
1266
4dc81987
AS
12672002-09-08 Aidan Skinner <aidan@velvet.net>
1268
1269 * ada-lang.c (ada_array_bound, ada_type_match,
1270 _initialize_ada_language): Fix K&R definitions.
1271 * ada-tasks.c (get_current_task): Fix K&R definitions.
1272 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1273
842330b4
CF
12742002-09-07 Christopher Faylor <cgf@redhat.com>
1275
1276 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1277 Add XP.
1278
43156d82
MK
12792002-09-06 Mark Kettenis <kettenis@gnu.org>
1280
66da5fd8
MK
1281 * i386-tdep.c (i386_register_virtual_type,
1282 i386_register_convertible, i386_register_convert_to_virtual,
1283 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1284 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1285 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1286 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1287 Don't set push_arguments twice.
1288
4b218c18
MK
1289 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1290 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1291 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1292 sigtramp_end to NULL.
1293 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1294 defines.
1295 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1296
4cc314d5
MK
1297 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1298 whitespace.
1299
43156d82
MK
1300 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1301 * gdbarch.h, gdbarch.c: Re-generate.
1302 * blockframe.c (find_pc_sect_partial_function): Convert to use
1303 SIGTRAMP_START_P predicate.
1304
6672060b
MS
13052002-09-05 Michael Snyder <msnyder@redhat.com>
1306
a90c3637
MS
1307 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1308 generic_dummy_frame method and old method. Also distinguish
1309 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1310 (arm_extract_return_value): Use new regcache method.
a90c3637 1311
6672060b
MS
1312 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1313 adjustment that doesn't conform to the ABI.
1314 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1315 saved regcache, not from current regcache.
1316
299ffc64
AC
13172002-09-05 Andrew Cagney <ac131313@redhat.com>
1318
1319 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1320 * README: Update.
1321
a3a2ee65
JT
13222002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1323
1324 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1325 if arm_apcs_32 is false.
1326
2bc7eea9
AC
13272002-09-04 Andrew Cagney <ac131313@redhat.com>
1328
1329 GDB 5.3 branch created.
1330
8a55a7c5
TR
13312002-09-03 Theodore A. Roth <troth@verinet.com>
1332
1333 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1334 generic_unwind_get_saved_register.
1335
e26fb1d7
DC
13362002-09-03 David Carlton <carlton@math.stanford.edu>
1337
1338 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1339 argument (PR gdb/653). Update call to smash_to_method_type.
1340 (read_structure_scope): Update call to dwarf2_add_member_fn.
1341
30d52491
ML
13422002-09-03 Michal Ludvig <mludvig@suse.cz>
1343
1344 * x86-64-linux-tdep.c: Include gdb_string.h
1345 * x86-64-linux-nat.c: Ditto.
1346
06891d83
JT
13472002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1348
1349 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1350 when YYDEBUG is set to 1.
1351 * c-exp.y: Likewise.
1352 * f-exp.y: Likewise.
1353 * jv-exp.y: Likewise.
1354 * m2-exp.y: Likewise.
1355 * p-exp.y: Likewise.
1356
7d400e77
JT
13572002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1358
1359 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1360 dependency list.
1361 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1362 solib_svr4_fetch_link_map_offsets to
1363 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1364 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1365 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1366 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1367 solib-svr4.o, and solib-legacy.o.
1368 * config/i386/tm-nbsd.h: Include solib.h.
1369
704a27c4
JT
13702002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1371
1372 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1373 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1374 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1375 comment noting that this needs its own target configuration.
1376 * config/i386/nbsd.mt: New file.
1377 * config/i386/nbsdaout.mt: Remove.
1378 * config/i386/nbsdelf.mt: Ditto.
1379 * config/i386/tm-nbsdaout.h: Ditto.
1380
d66198e1
JT
13812002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1382
1383 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1384 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1385 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1386 tdep->sigtramp_end.
1387 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1388 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1389 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1390
3cac699e
JT
13912002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1392
1393 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1394 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1395 * i386-tdep.h (i386bsd_init_abi): New prototype.
1396 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1397 function declaration.
1398 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1399 for NetBSD-a.out or NetBSD-ELF.
1400 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1401 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1402 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1403 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1404 and nbsd-tdep.h.
1405 (i386nbsd_pc_in_sigtramp): New function.
1406 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1407 i386nbsd_pc_in_sigtramp.
1408 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1409 and i386nbsdelf_init_abi OS ABI handlers.
1410 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1411 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1412
7010ca0a
MK
14132002-09-02 Mark Kettenis <kettenis@gnu.org>
1414
1415 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1416 registers if the target really has them.
1417
6dd93b72
JT
14182002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1419
1420 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1421 than nbsd-tdep.h.
1422
2ca8ae21
JT
14232002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1424
1425 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1426 list.
1427 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1428 (alphanbsd_skip_sigtramp_frame): New functions.
1429 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1430 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1431 to alphanbsd_sigcontext_addr.
1432
3d9b49b0
JT
14332002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1434
1435 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1436 list.
1437 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1438 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1439 nbsd_pc_in_sigtramp.
1440 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1441 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1442 * nbsd-tdep.c: Include gdb_string.h.
1443 (nbsd_pc_in_sigtramp): New function.
1444 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1445 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1446 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1447 ppcnbsd_pc_in_sigtramp.
1448 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1449 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1450 shnbsd_pc_in_sigtramp.
1451 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1452 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1453 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1454
c860120c
PM
14552002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1456
1457 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1458 watchpoints to NULL.
1459 (insert_breakpoints): set val field of watchpoints if NULL.
1460
1461
c7612d53
JB
14622002-08-29 Jim Blandy <jimb@redhat.com>
1463
1464 * symtab.c (lookup_symbol_aux): In the cases where we find a
1465 minimal symbol of an appropriate name and use its address to
1466 select a symtab to read and search, use `name' (as passed to us)
1467 as the demangled name when searching the symtab's global and
1468 static blocks, not the minsym's name.
1469
66609862
KS
14702002-08-29 Keith Seitz <keiths@redhat.com>
1471
1472 * stack.c (print_frame_info_base): Always set current_source_symtab
1473 and current_source_line.
1474
151fefe2
JB
14752002-08-29 Donn Terry <donnte@microsoft.com>
1476
1477 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1478
bfb3754e
KS
14792002-08-28 Keith Seitz <keiths@redhat.com>
1480
1481 * stack.c (select_frame): Add FIXME concerning selected-frame
1482 events.
1483 (select_frame_command): Send selected-frame-level-changed
1484 event notification, but only if the level actually changed.
1485 (up_silently_base): Add selected-frame-level-changed event
1486 notification.
1487 (down_silently_base): Likewise.
1488
e822a2a0
AC
14892002-08-28 Andrew Cagney <ac131313@redhat.com>
1490
1491 * Makefile.in: Update dependencies for all gdb/*.c files.
1492
309367d4
TT
14932002-08-27 Tom Tromey <tromey@redhat.com>
1494
1495 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1496 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1497 Update dependencies.
1498 * i387-tdep.c: Include gdb_string.h.
1499 * osabi.c: Likewise.
1500 * i386-linux-nat.c: Likewise.
1501 * lin-lwp.c: Likewise.
1502 * ax-gdb.c: Likewise.
1503 * signals/signals.c: Likewise.
1504 * jv-valprint.c: Likewise.
1505 * p-lang.c: Likewise.
1506 * c-valprint.c: Likewise.
1507 * cp-abi.c: Likewise.
1508
e1507482
EZ
15092002-08-27 Elena Zannoni <ezannoni@redhat.com>
1510
1511 * cli/cli-script.h (copy_command_lines): Export.
1512 * breakpoint.c: Include cli/cli-script.h.
1513 * Makefile.in (breakpoint.o): Update dependencies.
1514
c6510018
MS
15152002-08-26 Michael Snyder <msnyder@redhat.com>
1516
1517 * breakpoint.c (insert_breakpoints): Protect all references
1518 to 'process_warning'. Shorten long lines.
1519
c2b8ed2c
MS
15202002-08-26 Joel Brobecker <brobecker@gnat.com>
1521
1522 * cli/cli-script.c (copy_command_lines): New function.
1523 * defs.h (copy_command_lines): Export.
1524 * testsuite/gdb.base/commands.exp: New tests for commands
1525 attached to a temporary breakpoint, and for commands that
1526 delete the breakpoint they are attached to.
1527
15282002-08-26 Michael Snyder <msnyder@redhat.com>
1529
1530 * breakpoint.c (bpstat_stop_status): Instead of copying the
1531 pointer to the breakpoint commands struct, make a new copy
1532 of the struct and point to that.
1533 (bpstat_clear): Free the commands struct.
1534 (bpstat_clear_actions): Free the commands struct.
1535 (bpstat_do_actions): Free the command actions. Also execute
1536 the local cleanups, instead of deleting them.
1537 (delete_breakpoint): Leave the commands field of the bpstat
1538 chain alone -- it will be freed later.
1539
64b84175
KB
15402002-08-26 Kevin Buettner <kevinb@redhat.com>
1541
1542 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1543 deleted in 2002-08-20 commit. This function is still used by
1544 ppc-linux-nat.c.
1545
55970da6
KS
15462002-08-26 Keith Seitz <keiths@redhat.com>
1547
1548 * gdb-events.sh: Add selected-frame-level-changed event.
1549 * gdb-events.c: Regenerated.
1550 * gdb-events.h: Regenerated.
1551
a790ad35
SC
15522002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1553
1554 Fix PR gdb/393:
1555 * inflow.c (terminal_save_ours): New function to save terminal
1556 settings.
1557 * inferior.h (terminal_save_ours): Declare.
1558 * target.c (debug_to_terminal_save_ours): New function.
1559 (cleanup_target): Defaults to_terminal_save_ours.
1560 (update_current_target): Inherit to_terminal_save_ours.
1561 (setup_target_debug): Set to_terminal_save_ours.
1562 * target.h (target_terminal_save_ours): New to save terminal settings.
1563 (target_ops): New member to_terminal_save_ours.
1564 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1565 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1566 * inftarg.c (init_child_ops): Likewise.
1567 * m3-nat.c (init_m3_ops): Likewise.
1568 * procfs.c (init_procfs_ops): Likewise.
1569 * wince.c (init_child_ops): Likewise.
1570 * win32-nat.c (init_child_ops): Likewise.
1571 * sol-thread.c (init_sol_thread_ops): Likewise.
1572
c00dcbe9
MK
15732002-08-26 Mark Kettenis <kettenis@gnu.org>
1574
3d7f4f49
MK
1575 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1576 use regcache_* functions.
1577 (i386_gdbarch_init): Set store_return_value instead of
1578 deprecated_store_return_value.
1579
c00dcbe9
MK
1580 * regcache.c (regcache_raw_write_signed,
1581 regcache_raw_write_unsigned): New functions.
1582 * regcache.h (regcache_raw_write_signed,
1583 regcache_raw_write_unsigned): New prototypes.
1584
0e0d15ca
AC
15852002-08-25 Andrew Cagney <ac131313@redhat.com>
1586
1587 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1588 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1589 source file dependencies. Cleanup corresponding generator rules.
1590
d3b22ed5
AC
15912002-08-25 Andrew Cagney <ac131313@redhat.com>
1592
1593 * regcache.h (register_offset_hack): Declare.
1594 (regcache_cooked_read_using_offset_hack): Declare.
1595 (regcache_cooked_write_using_offset_hack): Declare.
1596
1597 * regcache.c (register_offset_hack): New function.
1598 (regcache_cooked_read_using_offset_hack): New function.
1599 (regcache_cooked_write_using_offset_hack): New function.
1600 (regcache_dump): Check that the registers, according to their
1601 offset, are packed hard against each other.
1602 (cooked_xfer_using_offset_hack): New function.
1603
bb425013
AC
16042002-08-25 Andrew Cagney <ac131313@redhat.com>
1605
1606 * regcache.c (struct regcache_descr): Add field register_type.
1607 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1608 in as a parameter
1609 (init_regcache_descr): Initialize register_type. Pass the descr
1610 to init_legacy_regcache_descr. Use register_type instead of
1611 REGISTER_VIRTUAL_TYPE.
1612 (register_type): New function.
1613 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1614 * regcache.h (register_type): Declare.
1615
d0403e00
AC
16162002-08-25 Andrew Cagney <ac131313@redhat.com>
1617
1618 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1619 instead of deprecated_store_return_value. Fix fallout from
1620 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1621
0ed04cce
AC
16222002-08-25 Andrew Cagney <ac131313@redhat.com>
1623
1624 * regcache.c (max_register_size): New function.
1625 (init_legacy_regcache_descr): Ensure that max_register_size is
1626 large enough for REGISTER_VIRTUAL_SIZE.
1627 * regcache.h (max_register_size): Declare.
1628
46d79c04
AC
16292002-08-24 Andrew Cagney <ac131313@redhat.com>
1630
1631 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1632 store_return_value.
1633 (e500_extract_return_value): Change type of valbuf pointer to
1634 void.
1635
853c7bd0
MK
16362002-08-24 Mark Kettenis <kettenis@gnu.org>
1637
cd87e769
MK
1638 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1639 workaround.
1640
853c7bd0
MK
1641 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1642 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1643 long long) to prevent compiler warning on 64-bit systems.
1644
ebba8386
AC
16452002-08-23 Andrew Cagney <cagney@redhat.com>
1646
1647 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1648 (DEPRECATED_STORE_RETURN_VALUE): New method.
1649 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1650 * gdbarch.h, gdbarch.c: Re-generate.
1651
1652 * values.c (set_return_value): Pass current_regcache to
1653 STORE_RETURN_VALUE.
1654 * arch-utils.h (legacy_store_return_value): Declare.
1655 * arch-utils.c (legacy_store_return_value): New function.
1656 (legacy_extract_return_value): Update parameters.
1657
1658 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1659 STORE_RETURN_VALUE.
1660 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1661 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1662 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1663 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1664 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1665 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1666 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1667 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1668 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1669 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1670
1671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1672 * i386-tdep.c (i386_extract_return_value): Update.
1673 * arch-utils.c (legacy_extract_return_value): Update.
1674 * frv-tdep.c (frv_gdbarch_init): Update.
1675 * cris-tdep.c (cris_gdbarch_init): Update.
1676 * d10v-tdep.c (d10v_gdbarch_init): Update.
1677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1678 * m68k-tdep.c (m68k_gdbarch_init): Update.
1679 * mcore-tdep.c (mcore_gdbarch_init): Update.
1680 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1681 * s390-tdep.c (s390_gdbarch_init): Update.
1682 * sparc-tdep.c (sparc_gdbarch_init): Update.
1683 * sh-tdep.c (sh_gdbarch_init): Update.
1684 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1685 * v850-tdep.c (v850_gdbarch_init): Update.
1686 * avr-tdep.c (avr_gdbarch_init): Update.
1687 * ia64-tdep.c (ia64_gdbarch_init): Update.
1688 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1689 * vax-tdep.c (vax_gdbarch_init): Update.
1690 * alpha-tdep.c (alpha_gdbarch_init): Update.
1691 * arm-tdep.c (arm_gdbarch_init): Update.
1692 * mips-tdep.c (mips_gdbarch_init): Update.
1693 * i386-tdep.c (i386_gdbarch_init): Update.
1694
5bd8c6d0
AC
16952002-08-23 Andrew Cagney <ac131313@redhat.com>
1696
1697 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1698 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1699
e73e1724
MK
17002002-08-24 Mark Kettenis <kettenis@gnu.org>
1701
1702 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1703 problems.
1704
3e6564e1
JB
17052002-08-23 Joel Brobecker <brobecker@gnat.com>
1706
1707 * infrun.c (handle_inferior_event): Move a comment outside of a
1708 function call, in order to avoid indent reformatting this part
1709 of the code in an unreadable way.
1710
81d0cc19
GS
17112002-08-23 Grace Sainsbury <graces@redhat.com>
1712
1713 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1714 when breakpoints fail. Move general breakpoint error messages to
1715 insert_breakpoints.
1716 * breakpoint.c (insert_breakpoints): Change warnings when
1717 breakpoints are nto inserted to specify the type. Remove call to
1718 memory_error when hardware breakpoints can't be inserted. Remove
1719 multiple calls to warning so all messages are sent to the user at
1720 once.
1721 (delete_breakpoints): Make insert error messsages more explicit.
1722
17574093
DJ
17232002-08-23 Daniel Jacobowitz <drow@mvista.com>
1724
1725 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1726 gdbserver/ChangeLog.
1727
8acc2935
MK
17282002-08-23 Mark Kettenis <kettenis@gnu.org>
1729
dfe01d39
MK
1730 * i386-tdep.c: Include "objfiles.h".
1731 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1732 skip_trampoline_code.
1733 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1734 (CPLUS_MARKER): Define to '.'.
1735
8acc2935
MK
1736 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1737 member.
1738 (linux_corefile_thread_callback): Increase args->num_notes.
1739 (linux_make_note_section): Initialize thread_args.num_notes, and
1740 use it to determine whether notes for any threads were created.
1741
151fefe2 17422002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1743
1744 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1745 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1746 and PCUNKILL.
1747 (write_with_trace): Conditionalize out the switch branch handling
1748 PCSHOLD if the corresponding macro is not defined. Likewise for
1749 PRSABORT and PRSTOP.
1750 This change will be needed by the Interix port.
1751
e1507482
EZ
17522002-08-22 Elena Zannoni <ezannoni@redhat.com>
1753
1754 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1755 write_register wherever possible instead of manipulating the
1756 register bytes directly.
1757 Assign VALUE_CONTENTS to a variable and use that.
1758 The GPR numbers are now dependent on the architecture.
1759
96ff0de4
EZ
17602002-08-22 Elena Zannoni <ezannoni@redhat.com>
1761
1762 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1763 ev_offset fields.
1764 (skip_prologue): Add support for BookE/e500 instructions.
1765 (e500_extract_return_value): New function.
1766 (frame_get_saved_regs): Add support for saving ev registers and
1767 pseudo gpr's.
1768 (e500_store_return_value): New function.
1769 (rs6000_gdbarch_init): Move up default intializations of
1770 deprecated_extract_return_value and store_return_value. Overwrite
1771 init of store_return_value with e500 specific version.
1772 Set extract_return_value for e500.
1773
fbefca5b
EZ
17742002-08-22 Elena Zannoni <ezannoni@redhat.com>
1775
1776 * blockframe.c (generic_call_dummy_register_unwind): Use
1777 regcache_cooked_read to catch cases in which the variable is
1778 stored in a pseudo register.
1779
4d210288
AC
17802002-08-22 Andrew Cagney <cagney@redhat.com>
1781
1782 * NEWS: Mention that the i960 has been made obsolete.
1783 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1784 i960-tdep.c
1785 (remote-nrom.o): Obsolete target.
1786 (remote-nindy.o, i960-tdep.o): Ditto.
1787 * remote-nrom.c: Make file obsolete.
1788 * remote-nindy.c, remote-vx960.c: Ditto.
1789 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1790 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1791 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1792 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1793 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1794 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1795 i960-*-vxworks* obsolete.
1796 * MAINTAINERS: Note that the i960 is obsolete.
1797
6c0c456d
CV
17982002-08-21 Corinna Vinschen <vinschen@redhat.com
1799
1800 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1801 detach to allow reinitialization.
1802
9f9d12b3
AC
18032002-08-22 Andrew Cagney <ac131313@redhat.com>
1804
1805 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1806 attempt).
1807
ebeb39fe
JB
18082002-08-22 Jim Blandy <jimb@redhat.com>
1809
1810 * coffread.c (coff_symfile_read): Don't try to read the line
1811 number table from disk if the image file doesn't have a symbol
1812 table; we'll never actually look at the info anyway, and Windows
1813 ships DLL's with bogus file offsets for the line number data.
1814
5bf1c677
EZ
18152002-08-21 Elena Zannoni <ezannoni@redhat.com>
1816
1817 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1818 an e500 executable.
1819
71b8ef93
MS
18202002-08-21 Michael Snyder <msnyder@redhat.com>
1821
1822 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1823 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1824 (DEFAULT_MIPS_TYPE): Delete unused macro.
1825 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1826 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1827
d174216d
JB
18282002-08-21 Jim Blandy <jimb@redhat.com>
1829
1830 * valops.c (value_cast): Simplify and correct logic for doing a
1831 static cast from a pointer to a base class to a pointer to a
1832 derived class.
1833
0ab7a791
AC
18342002-08-21 Andrew Cagney <ac131313@redhat.com>
1835
1836 * infcmd.c (default_print_registers_info): Replace
1837 do_registers_info.
1838 (registers_info): Use gdbarch_print_registers_info instead of
1839 DO_REGISTERS_INFO.
1840 * inferior.h (default_print_registers_info): Replace
1841 do_registers_info.
1842 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1843 (DO_REGISTERS_INFO): Change to a predicate function.
1844 * gdbarch.h, gdbarch.c: Regenerate.
1845
e23792cc
KS
18462002-08-21 Keith Seitz <keiths@redhat.com>
1847
1848 * gdb-events.sh: Add target-changed event.
1849 * gdb-events.c: Regenerated.
1850 * gdb-events.c: Regenerated.
1851 * valops.c (value_assign): Add target-changed event notification
1852 to inlval_register, lval_memory, and lval_reg_frame_relative.
1853
9fb14e79
JB
18542002-08-21 Joel Brobecker <brobecker@gnat.com>
1855
1856 * NEWS: Add an entry regarding the improvement of the next/step
1857 operation on Alpha Tru64 multi-processor machines.
1858
6d39a69f
AC
18592002-08-21 Andrew Cagney <ac131313@redhat.com>
1860
72acd513
AC
1861 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1862 directores.
342af04b 1863 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1864 * Makefile.in (install-gdbtk): Move to install section.
1865 (rdi-share/libangsd.a): Move to end of file.
1866
fa5f27c7
AC
18672002-08-19 Andrew Cagney <ac131313@redhat.com>
1868
1869 * frame.c (frame_register_unwind): When a register, set addrp to
1870 the register's byte.
1871
5a89d8aa
MS
18722002-08-20 Michael Snyder <msnyder@redhat.com>
1873
1874 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1875 used locally, so move them from the target machine header to here.
1876 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1877 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1878 Make static.
1879 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1880
822e978b
AC
18812002-08-20 Andrew Cagney <cagney@redhat.com>
1882
1883 * NEWS: Mention that the Apollo line was made obsolete.
1884 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1885 m68*-hp-hpux* obsolete.
1886 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1887 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1888 * buildsym.c (make_blockvector): Make static.
1889 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1890 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1891 (ALLDEPFILES): Remove dstread.c.
1892 (dstread.o): Obsolete make rule.
1893 * dstread.c: Makefile obsolete.
1894 * dst.h: Ditto.
1895 * config/m68k/hp300hpux.mt: Ditto.
1896 * config/m68k/hp300hpux.mh: Ditto.
1897 * config/m68k/hp300bsd.mt: Ditto.
1898 * config/m68k/hp300bsd.mh: Ditto.
1899 * config/m68k/apollo68b.mt: Ditto.
1900 * config/m68k/apollo68v.mh: Ditto.
1901 * config/m68k/apollo68b.mh: Ditto.
1902
e41b17f0
MS
19032002-08-20 Michael Snyder <msnyder@redhat.com>
1904
1905 * mips-tdep.c (mips_in_return_stub): Make static.
1906 (mips_gdbarch_init): Set in_solib_return_trampoline.
1907 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1908
d50355b6
MS
19092002-08-20 Michael Snyder <msnyder@redhat.com>
1910
1911 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1912 * gdbarch.c, gdbarch.h: Regenerate.
1913 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1914 Add.
1915 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1916
757a7cc6
MS
19172002-08-20 Michael Snyder <msnyder@redhat.com>
1918
1919 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1920 (mips_gdbarch_init): Set skip_trampoline_code,
1921 in_solib_call_trampoline.
1922 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1923 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1924
c8001721
EZ
19252002-08-20 Elena Zannoni <ezannoni@redhat.com>
1926
1927 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1928
1929 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1930 vector type for ev registers.
1931 (e500_pseudo_register_read): New function.
1932 (e500_pseudo_register_write): New function.
1933 (e500_dwarf2_reg_to_regnum): New function.
1934 (PPC_UISA_NOFP_SPRS): New macro.
1935 (PPC_EV_REGS): New macro.
1936 (PPC_GPRS_PSEUDO_REGS): New macro.
1937 (registers_e500): New register set for e500.
1938 (variants): Add e500 variant.
1939 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1940 before setting architectural dependent variations. Initialize ev
1941 registers numbers. Add case for e500 architecture. Set the
1942 number of pseudo registers.
1943
64366f1c
EZ
19442002-08-20 Elena Zannoni <ezannoni@redhat.com>
1945
1946 * rs6000-tdep.c: Clean up comments.
1947
7e78f0ca
AC
19482002-08-20 Andrew Cagney <cagney@redhat.com>
1949
1950 * h8300-tdep.c: Re-indent file.
1951
697f7479
JB
19522002-08-20 Jim Blandy <jimb@redhat.com>
1953
1954 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1955 default for this.
697f7479 1956
e86ae29f
KS
19572002-08-20 Keith Seitz <keiths@redhat.com>
1958
1959 * breakpoints.c (watch_command_1): Use internal breakpoint
1960 when setting a watchpoint_scope breakpoint.
1961
216b504f
EZ
19622002-08-20 Elena Zannoni <ezannoni@redhat.com>
1963
1964 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1965 (build_builtin_type_vec64i): Ditto.
1966 (build_builtin_type_vec128): Ditto.
1967 (build_builtin_type_vec128i): Ditto.
1968
f7ab6ec6
MS
19692002-08-19 Michael Snyder <msnyder@redhat.com>
1970
1971 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1972 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1973 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1974 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1975 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1976 CALL_DUMMY_ADDRESS): Delete.
1977 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1978 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1979 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1980 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1981 push_return_address.
1982 (mips_register_raw_size, mips_eabi_use_struct_convention,
1983 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1984 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1985 mips_init_extra_frame_info, mips_eabi_push_arguments,
1986 mips_n32n64_push_arguments, mips_push_return_address,
1987 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1988 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1989
b5d1566e
MS
19902002-08-19 Michael Snyder <msnyder@redhat.com>
1991
1992 * mips-tdep.c (mips_frame_num_args): New function.
1993 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1994 frame_saved_pc, frame_args_address, frame_locals_address,
1995 frame_num_args, and frame_args_skip.
1996 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1997 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1998 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1999 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2000
2f1488ce
MS
20012002-08-20 Michael Snyder <msnyder@redhat.com>
2002
2003 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2004 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2005 * mips-tdep.c (mips_store_struct_return): New function.
2006 (mips_extract_struct_value_address): New function.
2007 (mips_gdbarch_init): Set store_struct_return and
2008 extract_struct_value_address.
2009
41ff2da1
DC
20102002-08-20 David Carlton <carlton@math.stanford.edu>
2011
2012 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2013 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2014 (read_file_scope): Check that line_header is nonzero before
2015 decoding macro information.
2016
e5451d58
MK
20172002-08-20 Mark Kettenis <kettenis@gnu.org>
2018
2019 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2020 flag the general-purpose registers as floating-point on targets
2021 that don't support the floating-point registers.
2022
4a6daafa
EZ
20232002-08-20 Elena Zannoni <ezannoni@redhat.com>
2024
2025 * rs6000-tdep.c (altivec_register_p): Delete.
2026 (rs6000_do_altivec_registers): Delete.
2027 (rs6000_altivec_registers_info): Delete.
2028 (rs6000_do_registers_info): Delete.
2029 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2030 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2031
ab4327e0
EZ
20322002-08-20 Elena Zannoni <ezannoni@redhat.com>
2033
2034 * infcmd.c (do_registers_info): Print vector registers in hex
2035 format only.
2036 (print_vector_info): Check that printing registers
2037 makes sense.
2038 (print_float_info): Ditto.
2039
cb1d2653
AC
20402002-08-20 Andrew Cagney <ac131313@redhat.com>
2041
2042 * mips-tdep.c (mips_gdbarch_init): Update.
2043 (mips_o32_extract_return_value): Rewrite.
2044 (mips_o32_store_return_value): Rewrite.
2045 (mips_o32_xfer_return_value): New function.
2046 (mips_xfer_register): Tweak debug print message. Allow for
2047 buf_offset when dumping the value transfered.
2048
dfc3d9b2
AC
20492002-08-20 Andrew Cagney <ac131313@redhat.com>
2050
2051 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2052 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2053 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2054 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2055 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2056
7807aa61
MS
20572002-08-14 Michael Snyder <msnyder@redhat.com>
2058
2059 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2060
489461e2
EZ
20612002-08-19 Elena Zannoni <ezannoni@redhat.com>
2062
2063 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2064 register.
2065 (P): New macro to define a register as a pseudo register.
2066 (R, R4, R8, R16, FR32, R64, R0): Updated.
2067 (struct variant): Add new fields for number of pseudo registers
2068 and number of total registers.
2069 (tot_num_registers): New macro replacing....
2070 (num_registers): ...deleted macro.
2071 (num_registers): New function.
2072 (num_pseudo_registers): New function.
2073 (variants): Update all variants to intialize new fields correctly.
2074 Postpone initialization of number of pseudo regs and real regs.
2075 (init_variants): New function.
2076 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2077 registers offsets.
2078
fcaffe4c
DC
20792002-08-19 David Carlton <carlton@math.stanford.edu>
2080
2c2738a0
DC
2081 * valops.c (search_struct_field): Change error message to treat
2082 return value of 0 from value_static_field as meaning that field is
2083 optimized out.
2084 (value_struct_elt_for_reference): Ditto.
2085 * values.c (value_static_field): Treat an unresolved location the
2086 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2087 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2088 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2089 * MAINTAINERS: Add self to Write After Approval list.
2090
88658117
AC
20912002-08-19 Andrew Cagney <ac131313@redhat.com>
2092
2093 * mips-tdep.c (mips_xfer_register): New function.
2094 (mips_n32n64_extract_return_value): Rewrite.
2095 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2096 instead of deprecated_extract_return_value.
2097
21283beb
EZ
20982002-08-19 Elena Zannoni <ezannoni@redhat.com>
2099
2100 * rs6000-tdep.c (TDEP): Delete macro.
2101 (branch_dest): Replace use of TDEP macro with its body.
2102 (rs6000_pop_frame): Ditto.
2103 (rs6000_push_arguments): Ditto.
2104 (rs6000_skip_trampoline_code): Ditto.
2105 (rs6000_frame_saved_pc): Ditto.
2106 (rs6000_frame_chain): Ditto.
2107 (rs6000_register_name): Ditto.
2108 (rs6000_register_byte): Ditto.
2109 (rs6000_register_raw_size): Ditto.
2110 (rs6000_register_virtual_type): Ditto.
2111 (rs6000_register_convertible): Ditto.
2112 (rs6000_convert_from_func_ptr_addr): Ditto.
2113
bf072999
DJ
21142002-08-19 Daniel Jacobowitz <drow@mvista.com>
2115
2116 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2117 conditionally.
2118 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2119 MIPS_LINUX_JB_ELEMENT_SIZE.
2120 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2121 for MAX_REGISTER_RAW_SIZE arrays.
2122 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2123 MIPS_LINUX_JB_ELEMENT_SIZE.
2124
9b949a49
PM
21252002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2126
2127 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2128
6d3e79c6
AS
21292002-08-19 Aidan Skinner <aidan@velvet.net>
2130
2131 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2132 ada-valprint.c ada-tasks.c.
2133 (YYFILES): Add ada-exp.y.
2134 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2135 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2136 (ada-exp.tab.o): New target.
2137
06c0b04e
AC
21382002-08-18 Andrew Cagney <ac131313@redhat.com>
2139
2140 * regcache.c (regcache_xfer_part): New function.
2141 (regcache_raw_read_part): New function.
2142 (regcache_raw_write_part): New function.
2143 (regcache_cooked_read_part): New function.
2144 (regcache_cooked_write_part): New function.
2145 * regcache.h (regcache_raw_read_part): Declare.
2146 (regcache_raw_write_part): Declare.
2147 (regcache_cooked_read_part): Declare.
2148 (regcache_cooked_write_part): Declare.
2149
92d1e331
DJ
21502002-08-18 Daniel Jacobowitz <drow@mvista.com>
2151
2152 * remote.c (remote_open_1): Add async_p.
2153 (remote_async_open_1): Delete.
2154 (open_remote_target): Delete.
2155 (remote_open, extended_remote_open): Update calls to remote_open_1.
2156 (remote_async_open, extended_remote_async_open): Call
2157 remote_open_1 instead of remote_async_open_1.
2158
247055de
MK
21592002-08-19 Mark Kettenis <kettenis@gnu.org>
2160
2161 * blockframe.c: Fix a few coding standard violations.
2162
641eda39
MK
21632002-08-19 Mark Kettenis <kettenis@gnu.org>
2164
0b717710
MK
2165 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2166 here from ...
2167 * config/i386/tm-i386sco5.h: ... here. File removed.
2168 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2169
26d28e12 2170 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2171 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2172 (TM_FILE): Set to tm-i386.h.
2173 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2174 * config/i386/tm-i386v.h: Remove file.
2175 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2176 instead of "i386/tm-i386v.h".
2177 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2178 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2179 "i386/tm-i386v.h".
2180 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2181 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2182 "i386/tm-i386.h".
2183
d4e0bab4
MK
21842002-08-18 Mark Kettenis <kettenis@gnu.org>
2185
2186 * config/i386/nm-i386v.h: Add protection against
2187 multiple-inclusion.
2188 (i386_register_u_addr): Remove prototype.
2189 (register_u_addr): New prototype.
2190 (REGISTER_U_ADDR): Redefine accordingly.
2191 * i386v-nat.c: Improve several comments.
2192 (i386_register_u_addr): Change signature and rename to
2193 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2194 ubase variable.
2195
46cac009
AC
21962002-08-18 Andrew Cagney <ac131313@redhat.com>
2197
2198 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2199 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2200 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2201 deprecated_extract_return_value.
2202 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2203 rename mips_o32o64_push_arguments.
2204 (mips_gdbarch_init): Update.
2205 (mips_extract_return_value): Delete.
2206 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2207 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2208 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2209 (mips_n32n64_extract_return_value): Clone
2210 mips_extract_return_value.
2211 (mips_store_return_value): Delete.
2212 (mips_o32_store_return_value): Clone mips_store_return_value.
2213 (mips_o64_store_return_value): Clone mips_store_return_value.
2214 (mips_eabi_store_return_value): Clone mips_store_return_value.
2215 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2216
d2e4a39e
AS
22172002-08-18 Aidan Skinner <aidan@velvet.net>
2218
0c30c098
AS
2219 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2220 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2221
22222002-08-18 Aidan Skinner <aidan@velvet.net>
2223
2224 * ada-lang.c: Run through gdb_indent.sh.
2225 * ada-lang.h: Run through gdb_indent.sh.
2226 * ada-tasks.c: Run through gdb_indent.sh.
2227 * ada-typeprint.c: Run through gdb_indent.sh.
2228 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2229
01fc4e33
AC
22302002-08-18 Andrew Cagney <ac131313@redhat.com>
2231
2232 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2233 ABI.
2234
d8ee244c
MK
22352002-08-18 Mark Kettenis <kettenis@gnu.org>
2236
c38d8261
MK
2237 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2238
222db64c
MK
2239 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2240 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2241
c2848c82
MK
2242 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2243 write_register_gen instead of write_register_bytes.
2244
d8ee244c
MK
2245 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2246 i[3456]-*-osf1mk* configurations have been made obsolete.
2247 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2248 i[3456]86-*-osf1mk* hosts obsolete.
2249 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2250 targets obsolete.
2251 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2252 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2253 config/i386/i386m3.mt, config/i386/nm-m3.h,
2254 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2255 config/i386/i386mk.mh, config/i386/i386mk.mt,
2256 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2257 obsolete.
2258 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2259 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2260 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2261
61d8d407
AC
22622002-08-18 Andrew Cagney <ac131313@redhat.com>
2263
2264 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2265 (hppa_value_returned_from_stack): Declare.
2266 (hppa_extract_return_value): Declare.
2267 * config/pa/hppa.mt: New file.
2268 * configure.tgt: Recognize hppa*-*-*.
2269 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2270
0c52bd59
MK
22712002-08-18 Mark Kettenis <kettenis@gnu.org>
2272
2273 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2274 comment.
2275
b5686e99
MK
22762002-08-17 Mark Kettenis <kettenis@gnu.org>
2277
2278 * top.c (gdb_rl_operate_and_get_next): Make sure
2279 operate-and-get-next functions correctly even when the history
2280 list is completely filled.
2281
c1bab85b
AC
22822002-08-18 Andrew Cagney <ac131313@redhat.com>
2283
2284 * MAINTAINERS (Target Instruction Set Architectures): Rename
2285 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2286 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2287 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2288 already listed under Host/Native.
2289
2290 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2291 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2292 mips*-*-*.
2293
32089c7c
AC
22942002-08-17 Andrew Cagney <ac131313@redhat.com>
2295
2296 * config/ia64/ia64.mt: New file.
2297 * config/alpha/alpha.mt: New file.
2298 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2299 ia64-linux-gnu. Mention that ia64-elf is broken.
2300 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2301
b4671f85
MK
23022002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2303
2304 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2305 generic_func_frame_valid instead of func_frame_valid.
2306
c8edd8b4
JB
23072002-08-16 Joel Brobecker <brobecker@gnat.com>
2308
2309 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2310 procfs appears to be broken when debugging on multi-processor
2311 machines. So enable software single stepping in order to avoid
2312 using the procfs interface to do next/step operations, using
2313 internal breakpoints instead.
2314
2315 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2316 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2317 make this pc address equal to the value it would have if the
2318 system stepping capability was used. Also set a new flag used
2319 to ensure that we don't readjust the PC one more time later.
2320
2321 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2322 address by DECR_PC_AFTER_BREAK when software single step is
2323 in use for this architecture, as this has already been taken
2324 care of in handle_inferior_event().
2325
238617f6
JB
23262002-08-16 Joel Brobecker <brobecker@gnat.com>
2327
2328 * infrun.c (handle_inferior_event): Minor reformatting, to make
2329 a rather long condition expression easier to read.
2330
541a7aac
AC
23312002-08-16 Andrew Cagney <ac131313@redhat.com>
2332
2333 * Makefile.in (gdbtk.o): Move to end of file.
2334 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2335 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2336 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2337 (gdbtk-wrapper.o, gdbres.o): Ditto.
2338
f92d4a7b
AC
23392002-08-16 Andrew Cagney <ac131313@redhat.com>
2340
2341 * Makefile.in (copying.o): Separate out compile rule.
2342 (hpux-thread.o, procfs.o, signals.o): Ditto.
2343 (v850ice.o, z8k-tdep.o): Ditto.
2344 (tui-file.o): Move to TUI section.
2345 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2346 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2347
1cce71eb
JB
23482002-08-16 Joel Brobecker <brobecker@gnat.com>
2349
2350 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2351 skip_trampoline_code, for better namespace-proofing.
2352
2353 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2354
0851f23d
JB
23552002-08-16 Joel Brobecker <brobecker@gnat.com>
2356
2357 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2358
f8d40ec8
JB
23592002-08-16 Joel Brobecker <brobecker@gnat.com>
2360
2361 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2362 signal, check whether we hit a breakpoint before checking for a
2363 single step breakpoint. Otherwise, GDB fails to notice that a
2364 breakpoint has been hit when stepping onto a breakpoint.
2365
63d022e0
KS
23662002-08-16 Keith Seitz <keiths@redhat.com>
2367
2368 * gdb-events.sh (clear_gdb_event_hooks): New function.
2369 * gdb-events.c: Regenerate.
2370 * gdb-events.h: Regenerate.
2371
6e31adb3
AC
23722002-08-16 Andrew Cagney <ac131313@redhat.com>
2373
2374 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2375 not_a_sw_breakpoint.
2376 * breakpoint.h (bpstat_stop_status): Add parameter names.
2377
c8189ed1
GS
23782002-08-16 Grace Sainsbury <graces@redhat.com>
2379
2380 * remote.c (remote_insert_hw_breakpoint)
2381 (remote_remove_hw_breakpoint): Fix calculation of length field
2382 for Z-packet.
2383
d05285fa
MS
23842002-08-15 Michael Snyder <msnyder@redhat.com>
2385
466d7106
MS
2386 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2387 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2388 (supply_fpregset): Ditto.
2389
d05285fa
MS
2390 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2391 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2392 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2393 (TARGET_READ_SP): Delete.
bf1f5b4c 2394 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2395 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2396 Delete.
2397 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2398 from macros to functions.
bf1f5b4c 2399
d05285fa
MS
2400 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2401 (mips_register_convertible, mips_register_convert_to_virtual,
2402 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2403 (mips_read_sp): New function.
2404 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2405 (mips_do_registers_info): Make static.
2406 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2407 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2408 (mips_register_convert_from_type, mips_register_convert_to_type):
2409 New functions.
2410 (mips_gdbarch_init): Set up function_start_offset,
2411 register_virtual_size, pc_in_sigtramp.
d05285fa 2412
e76f1f2e
AC
24132002-08-15 Andrew Cagney <ac131313@redhat.com>
2414
2415 * infcmd.c (vector_info): New function.
2416 (_initialize_infcmd): Add command "info vector".
2417 (print_vector_info): New function.
2418
2419 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2420 * gdbarch.h, gdbarch.c: Regenerate.
2421
4782dc19
AC
24222002-08-15 Andrew Cagney <ac131313@redhat.com>
2423
2424 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2425 ``print_all''. Only print vector registers when ``print_all''.
2426
23e3a7ac
AC
24272002-08-15 Andrew Cagney <ac131313@redhat.com>
2428
8e186fd6
AC
2429 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2430 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2431
23e3a7ac
AC
2432 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2433 Add `args' parameter.
2434 * gdbarch.h, gdbarch.c: Regenerate.
2435
2436 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2437
2438 * infcmd.c (float_info): Call print_float_info.
2439 (print_float_info): New function. By default, print the
2440 floating-point registers.
2441
2442 * arch-utils.h (default_print_float_info): Delete declaration.
2443 * arch-utils.c (default_print_float_info): Delete function.
2444
e0ca2bb9
MK
24452002-08-16 Mark Kettenis <kettenis@gnu.org>
2446
3f733acc
MK
2447 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2448 out define.
2449
7d8d2918
MK
2450 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2451 FRAME.
2452
1c7cc583
MK
2453 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2454 * configure.host: Make i[3456]86-*-aix host obsolete.
2455 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2456 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2457 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2458 config/i386/xm-i386aix.h: Make files obsolete.
2459 * i386aix-nat.c: Make file obsolete.
2460 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2461 (i386aix-nat.o): Make target obsolete.
2462
e0ca2bb9
MK
2463 * config/i386/nm-gnu.h: Removed.
2464 * config/i386/nm-i386gnu.h: New file.
2465 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2466 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2467 Moved here from ...
2468 * config/i386/tm-i386gnu.h: ... here. Removed.
2469 * config/i386/xm-i386gnu.h: Removed.
2470 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2471 (NAT_FILE): Set to nm-i386gnu.h.
2472 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2473 * i386-tdep.c: New file.
2474 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2475 (i386gnu-tdep.o): Specify dependencies.
2476
16057ec7 24772002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2478
6b99ee2e
MK
2479 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2480 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2481 Adjust a few comments to reflect reality a bit closer.
2482 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2483 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2484 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2485 target_insert_watchpoint, target_remove_watchpoint):
2486 Move defines to ...
2487 * config/i386/nm-i386sco5.h: ... here.
2488 (kernel_u_size): Add prototype. Improve a few comments and add
2489 protection against multiple inclusion.
2490
d9a6f65c
MK
2491 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2492 out define.
2493
047eff6a
MK
2494 * uw-thread.c (SP_ARG0): Define if not already defined.
2495 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2496
dcdb1290
MK
2497 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2498
5d2d0b2a
MK
2499 * config/i386/tm-i386.h: Don't include "regcache.h".
2500
61113f8b
MK
2501 * i387-tdep.h (i387_print_float_info): New prototype.
2502 * i387-tdep.c (print_i387_value, print_i387_ext,
2503 print_i387_status_word, print_i387_control_word): Add `struct
2504 ui_file *' argument and use it for output.
2505 (i387_print_float_info): Renamed from i387_float_info. Add
2506 `struct gdbarch *' and `struct ui_file *' arguments and use the
2507 latter for output.
2508 * i386-tdep.c: Include "i387-tdep.h".
2509 (i386_gdbarch_init): Set print_float_info.
2510 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2511 (FLOAT_INFO): Remove define.
2512
46e0f506
MS
25132002-08-13 Michael Snyder <msnyder@redhat.com>
2514
2515 * mips-tdep.c (mips_push_arguments): Rename to
2516 mips_eabi_push_arguments, and tune for EABI.
2517 (MIPS_REGS_HAVE_HOME_P): Delete.
2518 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2519 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2520 Delete references to mips_regs_have_home_p.
2521
409268de
KS
25222002-08-14 Keith Seitz <keiths@redhat.com>
2523
2524 * Makefile.in (install-gdbtk): Create insight plugin directory.
2525 Install plugins.tcl file.
2526
ffc6a242
KS
25272002-08-14 Keith Seitz <keiths@redhat.com>
2528
2529 * configure.in: Move SUBDIRS to near top of the file so that
2530 --enable options may add things to it.
2531 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2532 * configure: Regenerate.
2533
ebafbe83
MS
25342002-08-13 Michael Snyder <msnyder@redhat.com>
2535
2536 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2537 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2538 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2539
32f6f25d
AC
25402002-08-13 Andrew Cagney <ac131313@redhat.com>
2541
2542 * vax-tdep.c (vax_get_saved_register): Delete function.
2543 (vax_gdbarch_init): Update.
2544 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2545 (ns32k_gdbarch_init): Update.
2546 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2547 (alpha_gdbarch_init): Update.
2548
53826de9
AC
25492002-08-13 Andrew Cagney <cagney@redhat.com>
2550
2551 * regcache.c (init_regcache_descr): Overallocate the
2552 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2553 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2554 nr_raw_registers.
2555 (set_register_cached): Add range checking assertions. Use
2556 current_regcache.
2557
16057ec7 25582002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2559
2560 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2561 numbers for MMX registers.
2562
7b4c2dce
AC
25632002-08-13 Andrew Cagney <cagney@redhat.com>
2564
2565 * i386-tdep.c (i386_gdbarch_init): Use
2566 generic_unwind_get_saved_register.
2567
1e03ad20
KB
25682002-08-13 Kevin Buettner <kevinb@redhat.com>
2569
2570 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2571 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2572 target vector.
2573 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2574 Delete. Add comment regarding this now-deleted target method.
2575
548bcbec
SC
25762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2577
2578 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2579 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2580 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2581 real PC and the page number (if it's within the memory bank window).
2582 (m68hc11_pseudo_register_write): Likewise when saving.
2583 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2584 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2585 (m68hc11_register_raw_size): And use 32-bit for it.
2586 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2587 16K memory bank is used by the prog; also use the virtual pc.
2588
7df11f59
SC
25892002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2590
2591 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2592 (m68hc11_gdbarch_init): Install it in gdbarch.
2593 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2594 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2595 (MSYMBOL_SIZE): New for documentation.
2596 (insn_return_kind): Enum to specify how a function returns.
2597 (frame_extra_info): Cleanup and record the return mode.
2598 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2599 register in address computation.
2600 (m68hc11_get_return_insn): New to obtain the return instruction used
2601 by the function.
2602 (m68hc11_frame_init_saved_regs): Take into account the return
2603 instruction used by the function for far and interrupt functions.
2604 (m68hc11_init_extra_frame_info): Take into account page register.
2605 (m68hc11_frame_args_address): Adjust according to the return mode.
2606 (show_regs): Print page register only when it's used.
2607
5706502a
SC
26082002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2609
2610 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2611 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2612 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2613 registers.
2614 (m68hc11_register_raw_size): Likewise.
2615
28fc6740
AC
26162002-08-13 Andrew Cagney <cagney@redhat.com>
2617
2618 * i386-tdep.c (i386_register_name): Handle mmx registers.
2619 (mmx_regnum_p): New function.
2620 (i386_mmx_names): New array.
2621 (mmx_num_regs): New variable.
2622 (i386_pseudo_register_read): New function.
2623 (i386_pseudo_register_write): New function.
2624 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2625
2626 * regcache.c (regcache_raw_read_unsigned): New function.
2627 (regcache_raw_read_signed): New function.
2628 * regcache.h (regcache_raw_read_unsigned): Declare.
2629 (regcache_raw_read_signed): Declare.
2630
a378f419
AC
26312002-08-13 Andrew Cagney <cagney@redhat.com>
2632
2633 * regcache.c (regcache_raw_read_as_address): Delete function.
2634 (regcache_cooked_read_signed): New function.
2635 (regcache_cooked_read_unsigned): New function.
2636 * regcache.h (regcache_cooked_read_signed): Declare.
2637 (regcache_cooked_read_unsigned): Declare.
2638 (regcache_raw_read_as_address): Delete declaration.
2639
2640 * blockframe.c (generic_read_register_dummy): Use
2641 regcache_cooked_read_unsigned.
2642 * i386-tdep.c (i386_extract_struct_value_address): Use
2643 regcache_cooked_read_unsigned.
2644
81967506
SC
26452002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2646
2647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2648 double sizes according to ELF ABI flags.
2649 (gdbarch_tdep): Record elf_flags.
2650
ffe1f3ee
SC
26512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2652
2653 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2654 (m6812_prolog): They can appear in 68HC12 function prologue.
2655 (m68hc11_frame_chain): Cleanup.
2656
98216c5d
AC
26572002-08-12 Andrew Cagney <cagney@redhat.com>
2658
2659 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2660 declarations.
2661 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2662 (i386_linux_register_raw_size): Delete function.
2663 (i386_linux_init_abi): Update.
2664 * i386-tdep.c (i386_register_raw_size): Delete function.
2665 (i386_register_byte): Delete function.
2666 (i386_gdbarch_init): Update.
2667 (i386_register_size): Delete array.
2668 (i386_register_offset): Delete array.
2669
2670 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2671 (REGISTER_RAW_SIZE): Delete macro.
2672 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2673 (REGISTER_BYTE): Delete macro.
2674
3b19021e
AS
26752002-08-11 Aidan Skinner <aidan@velvet.net>
2676
2677 * ada-lang.c (ada_lookup_partial_symbol)
2678 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2679 prototype names so that grep ^func works properly.
2680
2681 * ada-lang.c (ada_array_element_type)
2682 (ada_lookup_partial_symbol): Fix typos in parameter list.
2683
2684 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2685 Fix prototype names so that grep ^func works properly.
2686
b063e7a2
AC
26872002-08-10 Andrew Cagney <cagney@redhat.com>
2688 Elena Zannoni <ezannoni@redhat.com>
2689 Martin M. Hunt <hunt@redhat.com>
2690
2691 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2692 (build_builtin_type_vec128i): Set the vector bit.
2693 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2694 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2695 (build_builtin_type_vec64): New function.
2696 (build_builtin_type_vec64i): New function.
2697 (build_gdbtypes): Initialize builtin_type_vec64 and
2698 builtin_type_vec64i.
2699
a7e3c2ad
AC
27002002-08-09 Andrew Cagney <cagney@redhat.com>
2701
2702 * regcache.c (regcache_dump): Compare the register offset
2703 with REGISTER_BYTE.
2704 * arch-utils.c (generic_register_byte): New function.
2705 * arch-utils.h (generic_register_byte): Declare.
2706 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2707 * gdbarch.h, gdbarch.c: Regenerate.
2708
af030b9a
AC
27092002-08-09 Andrew Cagney <cagney@redhat.com>
2710
2711 * regcache.c: Include "gdbcmd.h"
2712 (_initialize_regcache): Add commands "maintenance print
2713 registers", "maintenance print raw-registers" and "maintenance
2714 print cooked-registers".
2715 (enum regcache_dump_what): Define.
2716 (dump_endian_bytes): New function.
2717 (regcache_dump): New function.
2718 (regcache_print): New function.
2719 (maintenance_print_registers): New function.
2720 (maintenance_print_raw_registers): New function.
2721 (maintenance_print_cooked_registers): New function.
2722 * Makefile.in (regcache.o): Update dependencies.
2723
cb3d25d1
MS
27242002-08-09 Michael Snyder <msnyder@redhat.com>
2725
2726 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2727 (mips_push_arguments): Correct some comments. Use paddr_nz
2728 for printing addresses in debug output. Replace static
2729 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2730 (mips_n32n64_push_arguments): New function, cloned from
2731 mips_push_arguments and tuned for the n32/n64 ABI.
2732 (mips_push_register): Buffer needs dynamic allocation.
2733 (mips_print_register): Ditto.
2734 (do_gp_register_row): Ditto.
2735 (mips_store_return_value): Ditto.
2736 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2737
2163ab9d
DH
27382002-08-09 Don Howard <dhoward@redhat.com>
2739
2740 * memattr.c (mem_info_command): Print special case of upper bound
2741 as max CORE_ADDR + 1.
2742
b78bcb18
MS
27432002-08-08 Michael Snyder <msnyder@redhat.com>
2744
2745 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2746 returns structs by ref if they're too big to fit in two registers.
2747
ffabd70d
KB
27482002-08-09 Kevin Buettner <kevinb@redhat.com>
2749
2750 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2751 saved regs value.
2752 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2753 mips_find_saved_regs().
2754 (mips_pop_frame): Likewise.
2755
fbcdb4a3
KB
27562002-08-09 Kevin Buettner <kevinb@redhat.com>
2757
2758 * blockframe.c (frame_saved_regs_register_unwind): Revise
2759 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2760 frames are in use.
2761
3c3bea1c
GS
27622002-08-09 Grace Sainsbury <graces@redhat.com>
2763
2764 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2765 T-packets; the 'a' is not taken as a register number.
2766 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2767 (remote_stopped_data_address): New functions; add to target
2768 vector.
2769 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2770 prototypes to match other implementations of this
2771 function. replace integer argument with pointer -- the length
2772 field in the Z-packet is the length of what is pointed to or 1 if
2773 pointer is null. Add to target vector.
2774 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2775 target vector.
2776
2777 From Mark Salter:
2778 * remote.c (remote_wait): Add support to extract optional
2779 watchpoint information from T-packet. Ignore unrecognized
2780 optional info in T-packet.
2781 (remote_async_wait): Ditto.
2782
5d1d95de
CV
27832002-08-09 Corinna Vinschen <vinschen@redhat.com>
2784
2785 * cli/cli-dump.c: Change fopen modes to use binary open modes
2786 as defined in include/fopen-bin.h throughout.
2787
c86b5b38
MS
27882002-08-08 Michael Snyder <msnyder@redhat.com>
2789
2790 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2791
b30590dc
KB
27922002-08-08 Kevin Buettner <kevinb@redhat.com>
2793
2794 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2795 assertion failure by returning early after a warning.
2796
498868ed
KB
27972002-08-08 Kevin Buettner <kevinb@redhat.com>
2798
2799 * mips-tdep.c (mips_find_saved_regs): Make static.
2800 (mips_frame_init_saved_regs): New function.
2801 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2802 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2803 (mips_find_saved_regs): Delete declaration.
2804
b2dd6311
GS
28052002-08-08 Grace Sainsbury <graces@redhat.com>
2806
3c3bea1c
GS
2807 * remote.c (remote_wait, remote_async_wait): Change
2808 thread_num from int to ULONGEST.
2809 (unpack_varlen_hex): Change result parameter from
2810 int * to ULONGEST *.
b2dd6311 2811
ea47855f
AC
28122002-08-08 Andrew Cagney <ac131313@redhat.com>
2813
2814 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2815 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2816 powerpc*-*-*.
2817 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2818
69db8bae
AC
28192002-08-08 Andrew Cagney <cagney@redhat.com>
2820
2821 * gcore.c (override_derive_stack_segment): Delete variable.
2822 (preempt_derive_stack_segment): Delete function.
2823 (derive_stack_segment): Delete function.
2824 (default_derive_stack_segment): Renamed to derive_stack_segment.
2825 (override_derive_heap_segment): Delete variable.
2826 (preempt_derive_heap_segment): Delete function.
2827 (derive_heap_segment): Delete function.
2828 (default_derive_heap_segment): Rename to derive_heap_segment.
2829
cb811fe7
MS
28302002-08-06 Michael Snyder <msnyder@redhat.com>
2831
2832 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2833 * mips-tdep.c (mips_EABI_use_struct_convention,
2834 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2835 New functions. (mips_use_struct_convention): Delete.
2836 (mips_gdbarch_init): set use_gdbarch_convention.
2837
8b389c40
MS
28382002-08-06 Michael Snyder <msnyder@redhat.com>
2839
2840 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2841 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2842 mips_o32_reg_struct_has_addr): New functions.
2843 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2844
5c27f28a
AC
28452002-08-07 Andrew Cagney <ac131313@redhat.com>
2846
2847 * regcache.c (pseudo_register): Delete function.
2848 (fetch_register): Delete function.
2849 (store_register): Delete function.
2850 (regcache_raw_read, legacy_read_register_gen): Use
2851 target_fetch_registers instead of fetch_register.
2852 (legacy_write_register_gen, regcache_raw_write): Use
2853 target_store_register instead of store_register.
2854 (write_register_bytes): Ditto.
2855
2856 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2857 (STORE_PSEUDO_REGISTER): Delete.
2858 * gdbarch.h, gdbarch.c: Regenerate.
2859
5b331675
CV
28602002-08-06 Corinna Vinschen <vinschen@redhat.com>
2861
2862 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2863 write dump file binary.
2864
6acdf5c7
MS
28652002-08-05 Michael Snyder <msnyder@redhat.com>
2866
2867 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2868 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2869 (mips_gdbarch_init): Set N32 target to be mips64.
2870
b2f01c35
KB
28712002-08-06 Kevin Buettner <kevinb@redhat.com>
2872
2873 * frame.c (find_saved_register): Break out of loop once saved
2874 register address is found. Don't mention sparc in loop comment
2875 anymore.
2876
63db5580
KB
28772002-08-06 Kevin Buettner <kevinb@redhat.com>
2878
2879 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2880 mips_default_saved_regsize to 8.
2881
5e34e75e
AC
28822002-08-06 Andrew Cagney <ac131313@redhat.com>
2883
2884 * gcore.c: Do not include <sys/procfs.h>.
2885 * Makefile.in (gcore.o): Update dependencies.
2886
eb4c54a2
AC
28872002-08-06 Andrew Cagney <cagney@redhat.com>
2888
2889 * configure.tgt: Make arc-*-* obsolete.
2890 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2891 * MAINTAINERS: Make arc-elf obsolete.
2892 * arc-tdep.c: Make file obsolete.
2893 * config/arc/arc.mt: Ditto.
2894 * config/arc/tm-arc.h: Ditto.
2895
ced15480
TR
28962002-08-05 Theodore A. Roth <troth@verinet.com>
2897
c1bab85b 2898 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2899
b4743822
AC
29002002-08-05 Andrew Cagney <ac131313@redhat.com>
2901
2902 * mcore-tdep.c (mcore_gdbarch_init): Use
2903 generic_unwind_get_saved_register instead of
2904 generic_get_saved_register.
2905 * v850-tdep.c (v850_gdbarch_init): Ditto.
2906 * frv-tdep.c (frv_gdbarch_init): Ditto.
2907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2908 * s390-tdep.c (s390_gdbarch_init): Ditto.
2909 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2910 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2911 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2912
3956d554
JB
29132002-08-05 Joel Brobecker <brobecker@gnat.com>
2914
2915 * objfiles.h: Add missing #include "symfile.h"
2916
2917 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2918
8249c0d6
AC
29192002-08-04 Andrew Cagney <ac131313@redhat.com>
2920
2921 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2922 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2923 of FIELD_BITSIZE.
2924
b9d14705
DJ
29252002-08-04 Daniel Jacobowitz <drow@mvista.com>
2926
2927 * NEWS: Cleanup and nitpick.
2928
dd73b9bb
AC
29292002-08-03 Andrew Cagney <ac131313@redhat.com>
2930
2931 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2932
043a27f8
AC
29332002-08-03 Andrew Cagney <ac131313@redhat.com>
2934
2935 * Makefile.in (gdbtk-bp.o): Update dependencies.
2936 (gdbtk-register.o): Ditto.
2937 (gdbtk-varobj.o): Ditto.
2938
46ce284d
AC
29392002-08-03 Andrew Cagney <cagney@redhat.com>
2940
2941 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2942 m68hc11_fetch_pseudo_register.
2943 (m68hc11_pseudo_register_write): Replace
2944 m68hc11_store_pseudo_register.
2945 (m68hc11_gdbarch_init): Update.
2946
b66d6d2e
AC
2947Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2948
2949 * gdbarch.sh: Include "gdb_string.h".
2950 * gdbarch.c: Regenerate.
2951
2952 * regcache.c: Include "gdb_string.h".
2953 * ax-general.c: Ditto.
2954 * varobj.c: Ditto.
2955 * std-regs.c: Ditto.
2956 * fbsd-proc.c: Ditto.
2957 * thread.c: Ditto.
2958
2959 * Makefile.in (regcache.o): Update dependencies.
2960 (thread.o, gdbarch.o): Ditto.
2961 (ax-general.o, gdbarch.o): Ditto.
2962 (varobj.o, std-regs.o): Ditto.
2963 (fbsd-proc.o): Specify dependencies.
2964
29e1842b
AC
29652002-08-02 Andrew Cagney <cagney@redhat.com>
2966
2967 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2968 regnum.
2969 (regcache_cooked_write): Ditto.
2970
68365089
AC
29712002-08-02 Andrew Cagney <ac131313@redhat.com>
2972
2973 * regcache.c (regcache_cooked_read): New function.
2974 (regcache_cooked_write): New function.
2975 (read_register_gen): Rewrite using regcache_cooked_read.
2976 (write_register_gen): Rewrite using regcache_cooked_write.
2977
2978 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2979 Declare.
2980
d8124050
AC
29812002-08-02 Andrew Cagney <cagney@redhat.com>
2982
2983 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2984 Replace the architecture methods register_read and register_write.
2985 * gdbarch.h, gdbarch.c: Regenerate.
2986 * regcache.c (init_regcache_descr): Update.
2987 (read_register_gen): Update.
2988 (write_register_gen): Update.
2989 (supply_register): Update comment.
2990
2991 * sh-tdep.c (sh_gdbarch_init): Update.
2992 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2993 `regcache' and `gdbarch' parameters. Make `buffer' a void
2994 pointer. Update code.
2995 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2996 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2997 void pointer. Update code.
2998 (sh64_register_write): Delete.
2999 (sh4_register_read): Delete.
3000 (sh64_register_read): Delete.
3001 (sh4_register_write): Delete.
3002 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3003 void pointer, `to' parameter a void pointer.
3004 (sh_sh64_register_convert_to_raw): Ditto.
3005
a6425924
KB
30062002-08-01 Kevin Buettner <kevinb@redhat.com>
3007
3008 * mips-tdep.c (mips_register_virtual_type): Use architecture
3009 invariant return values.
3010
ff5922b5
AC
30112002-08-01 Andrew Cagney <cagney@redhat.com>
3012
3013 * linux-proc.c: Include "gdb_string.h".
3014 * Makefile.in (linux-proc.o): Update dependency list.
3015
32a6503c
KB
30162002-08-01 Kevin Buettner <kevinb@redhat.com>
3017
3018 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3019 comment.
3020
ccaa32c7
GS
30212002-08-01 Grace Sainsbury <graces@redhat.com>
3022
3023 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3024 to_insert_watchpoint, to_remove_watchpoint,
3025 to_stopped_by_watchpoint, to_stopped_data_address,
3026 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3027 target vecctor. Define their corresponding macros so they call
3028 them.
3029
3030 * target.c: Add default and debug versions of for
3031 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3032 to_insert_watchpoint, to_remove_watchpoint,
3033 to_stopped_by_watchpoint, to_stopped_data_address,
3034 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3035
78fde5f8
KB
30362002-08-01 Kevin Buettner <kevinb@redhat.com>
3037
3038 * mips-tdep.c (mips_register_virtual_type): New function.
3039 (mips_gdbarch_init): Register mips_register_virtual_type()
3040 with gdbarch machinery.
3041 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3042 this file instead of tm-bigmips.h.
3043 (MIPS_REGSIZE): Delete this macro.
3044 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3045 multiarch version in mips-tdep.c will be found.
3046
db034ac5
AC
30472002-08-01 Andrew Cagney <cagney@redhat.com>
3048
3049 * NEWS: Menion that CHILL has been made obsolete.
3050
3051 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3052 * stabsread.c (read_range_type): Ditto.
3053 * gdbtypes.h: Ditto.
3054 * language.c (binop_type_check): Ditto.
3055 (binop_result_type): Ditto.
3056 (integral_type): Ditto.
3057 (character_type): Ditto.
3058 (string_type): Ditto.
3059 (boolean_type): Ditto.
3060 (structured_type): Ditto.
3061 (lang_bool_type): Ditto.
3062 (binop_type_check): Ditto.
3063 * language.h (_LANG_chill): Ditto.
3064 * dwarfread.c (set_cu_language): Ditto.
3065 * dwarfread.c (CHILL_PRODUCER): Ditto.
3066 * dwarfread.c (handle_producer): Ditto.
3067 * expression.h (enum exp_opcode): Ditto.
3068 * eval.c: Ditto for comments.
3069 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3070 * expprint.c (print_subexp): Ditto.
3071 (print_subexp): Ditto.
3072 * valops.c (value_cast): Ditto.
3073 (search_struct_field): Ditto.
3074 * value.h (COERCE_VARYING_ARRAY): Ditto.
3075 * symfile.c (init_filename_language_table): Ditto.
3076 (add_psymbol_with_dem_name_to_list): Ditto.
3077 * valarith.c (value_binop): Ditto.
3078 (value_neg): Ditto.
3079 * valops.c (value_slice): Ditto.
3080 * symtab.h (union language_specific): Ditto.
3081 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3082 (SYMBOL_DEMANGLED_NAME): Ditto.
3083 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3084 * defs.h (enum language): Ditto.
3085 * symtab.c (got_symtab): Ditto.
3086 * utils.c (fprintf_symbol_filtered): Ditto.
3087
3088 * ch-typeprint.c: Make file obsolete.
3089 * ch-valprint.c: Make file obsolete.
3090 * ch-lang.h: Make file obsolete.
3091 * ch-exp.c: Make file obsolete.
3092 * ch-lang.c: Make file obsolete.
3093
3094 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3095 CHILL_LIB.
3096 (TARGET_FLAGS_TO_PASS): Ditto.
3097 (CHILLFLAGS): Obsolete.
3098 (CHILL): Obsolete.
3099 (CHILL_FOR_TARGET): Obsolete.
3100 (CHILL_LIB): Obsolete.
3101 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3102 ch-valprint.c.
3103 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3104 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3105 ch-lang.o.
3106 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3107 targets.
3108
8aaf0b47
JB
31092002-07-31 Joel Brobecker <brobecker@gnat.com>
3110
3111 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3112 This does not change anything at the moment, but will be helpful
3113 later when full Ada support is integrated.
3114
f3a7b3a5
KB
31152002-07-31 Kevin Buettner <kevinb@redhat.com>
3116
3117 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3118 help message.
3119
fb850278
KB
31202002-07-31 Kevin Buettner <kevinb@redhat.com>
3121
3122 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3123 and save it in a local variable. Use variable in later test.
3124
e3bddbfa
KB
31252002-07-31 Kevin Buettner <kevinb@redhat.com>
3126
3127 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3128 test. (Thanks to Daniel Jacobowitz.)
3129
28d169de
KB
31302002-07-31 Kevin Buettner <kevinb@redhat.com>
3131
3132 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3133 (mips_abi_strings): Add "n64".
3134 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3135
7fe7e44e
KB
31362002-07-31 Kevin Buettner <kevinb@redhat.com>
3137
3138 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3139 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3140
c6caf090
KB
31412002-07-31 Kevin Buettner <kevinb@redhat.com>
3142
3143 * utils.c (host_pointer_to_address, address_to_host_pointer):
3144 Use gdb_assert() instead of explicit call to internal_error().
3145
c41669e0
KB
31462002-07-30 Kevin Buettner <kevinb@redhat.com>
3147
3148 * Makefile.in (rs6000-nat.o): Update dependencies.
3149
3150 From Nicholas Duffek:
3151 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3152 (aix-thread.o): New rule.
3153 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3154 * config/powerpc/aix432.mh: New file.
3155
2fda4977
DJ
31562002-07-30 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3159 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3160 (fetch_core_registers, ppc_linux_supply_gregset)
3161 (ppc_linux_supply_fpregset): New functions.
3162 (ppc_linux_regset_core_fns): New.
3163 (_initialize_ppc_linux_tdep): Call add_core_fns.
3164 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3165 and ppc_linux_supply_gregset.
3166 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3167 (supply_fpregset): Call ppc_linux_supply_fpregset.
3168 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3169 corelow.o.
3170 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3171
729051e6
DJ
31722002-07-30 Daniel Jacobowitz <drow@mvista.com>
3173
3174 * symtab.c (lookup_symbol): Demangle before lowercasing.
3175
5f8a3188
AC
31762002-07-30 Andrew Cagney <ac131313@redhat.com>
3177
3178 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3179 declaration.
3180 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3181 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3182 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3183 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3184 "gdb_string.h".
3185 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3186 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3187 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3188 (avr-tdep.o, mon960-rom.o): Ditto.
3189 (aout_stabs_gnu_h): Define.
3190 (symtab_h): Remove $(gdb_obstack_h).
3191
67f07146
JB
31922002-07-30 Jim Blandy <jimb@redhat.com>
3193
3194 Patch from David Carlton <carlton@math.stanford.edu>:
3195 * gdbinit.in: Move the `dir' commands that add GDB's own source
3196 directory to the search path to the end, so that the `gdb' source
3197 directory will be searched first.
3198
04ea0df1
AC
31992002-07-29 Andrew Cagney <ac131313@redhat.com>
3200
3201 * gdb_obstack.h: New file.
3202 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3203 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3204 * objfiles.h: Include "gdb_obstack.h".
3205 * Makefile.in (gdb_obstack_h): Define.
3206 (symtab_h): Add $(gdb_obstack_h).
3207 (objfiles_h): Add $(gdb_obstack_h).
3208
3209 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3210 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3211 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3212 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3213 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3214 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3215 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3216 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3217
3218 * Makefile.in (bcache.o): Update dependencies.
3219 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3220 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3221 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3222 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3223 (stabsread.o, symfile.o, symmisc.o): Ditto.
3224 (symtab.o, typeprint.o, macroexp.o): Ditto.
3225 (macrotab.o, mdebugread.o): Ditto.
3226 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3227 (coff_ecoff_h, aout_aout64_h): Define.
3228 (aout_stabs_gnu_h, libaout_h): Define.
3229
d138e37a
AC
32302002-07-29 Andrew Cagney <cagney@redhat.com>
3231
3232 * regcache.c (struct regcache_descr): Rename nr_registers to
3233 nr_cooked_registers. Revise comments describing the structure
3234 member fields.
3235 (init_regcache_descr): Update.
3236 (init_legacy_regcache_descr): Update.
3237 (read_register_gen, write_register_gen): When a cooked register in
3238 the raw register range, directly access the value from the raw
3239 register cache.
3240
460e6ec3
AC
32412002-07-29 Andrew Cagney <ac131313@redhat.com>
3242
3243 * z8k-tdep.c: Do not include "obstack.h".
3244 * h8300-tdep.c, h8500-tdep.c: Ditto.
3245 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3246 * valprint.c, v850-tdep.c: Ditto.
3247 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3248 * mn10200-tdep.c: Ditto.
3249
3250 * Makefile.in (z8k-tdep.o): Update dependencies.
3251 (m68hc11-tdep.o, valprint.o): Ditto.
3252 (v850-tdep.o, d10v-tdep.o): Ditto.
3253 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3254 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3255 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3256 (sh_opc_h, gdb_sim_sh_h): Define.
3257 (elf_sh_h, elf_bfd_h): Define.
3258 (opcode_m68hc11_h): Define.
3259 (OPCODES_SRC, OPCODES_DIR): define.
3260 (OPCODES): Use $(OPCODES_DIR).
3261 (gdb_sim_d10v_h): Rename sim_d10v_h.
3262 (gdb_sim_arm_h): Rename sim_arm_h.
3263
790c9cf0
KB
32642002-07-26 Kevin Buettner <kevinb@redhat.com>
3265
3266 * utils.c (host_pointer_to_address, address_to_host_pointer):
3267 Change internal_error() message to indicate function responsible
3268 for the error.
3269
9647fa49
KB
32702002-07-26 Kevin Buettner <kevinb@redhat.com>
3271
3272 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3273 calls to local_hex_string_custom().
3274
dabbe2c0
KB
32752002-07-26 Kevin Buettner <kevinb@redhat.com>
3276
3277 * irix5-nat.c: Move IRIX shared library support from here...
3278 * solib-irix.c: ...to here. Revised substantially to work with
3279 generic solib framework.
3280
b96d0a4e
KB
3281 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3282 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3283 * mips-irix-tdep.c: New file.
3284
313fb2f6
KB
3285 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3286 (mips-irix-tdep.o, solib-irix.o): New rules.
3287 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3288 solib-irix.o.
3289 * config/mips/irix6.mt (TDEPFILES): Likewise.
3290 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3291
ab2eaf26
KB
32922002-07-26 Kevin Buettner <kevinb@redhat.com>
3293
177e4768 3294 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3295 disabled (via ``#if 0'') includes.
3296
7244546a
KB
32972002-07-26 Kevin Buettner <kevinb@redhat.com>
3298
3299 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3300 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3301 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3302 Add support for the fpscr register.
3303 * rs6000-nat.c (regmap, fetch_inferior_registers)
3304 (store_inferior_registers, fetch_core_registers): Likewise.
3305
dd7be90a
KB
33062002-07-26 Kevin Buettner <kevinb@redhat.com>
3307
3308 * rs6000-nat.c (language.h): Include.
3309 (special_regs): Delete this array.
3310 (regmap): New function.
3311 (fetch_register, store_register): Use regmap() to map gdb
3312 register numbers to ptrace register numbers. Also, use
3313 outputs from regmap() to make decisions regarding type of
3314 ptrace() call to make. In particular, don't compare against
3315 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3316 (fetch_inferior_registers, store_inferior_registers): Where
3317 possible, obtain register numbers from tdep struct. Don't
3318 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3319 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3320 (LAST_UISA_SP_REGNUM): Delete.
3321
11bf77db
KB
33222002-07-25 Kevin Buettner <kevinb@redhat.com>
3323
3324 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3325 (fetch_registers, store_register, fetch_core_registers): Don't
3326 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3327 regcache_collect() as appropriate.
3328 (find_toc_address): Format hex address with local_hex_string().
3329
06afebeb
AC
33302002-07-25 Andrew Cagney <ac131313@redhat.com>
3331
3332 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3333 bfd/elf32-frv.c.
3334
8c554d79
TT
33352002-07-24 Tom Tromey <tromey@redhat.com>
3336
3337 * jv-exp.y: Marked all strings with _().
3338 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3339 internal_error.
3340 (MethodInvocation, CastExpression, parse_number, yyerror,
3341 java_type_from_name, push_expression_name, yylex): Typo fixes.
3342
e4c242d9
DJ
33432002-07-24 Daniel Jacobowitz <drow@mvista.com>
3344
3345 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3346 (tee_file_flush, tee_file_write, tee_file_fputs)
3347 (tee_file_isatty): New.
3348 * ui-file.h (tee_file_new): Add prototype.
3349
ebf56fd3
AS
33502002-07-24 Aidan Skinner <aidan@velvet.net>
3351
3352 * ada-lang.c: Change k&r style function definitions to prototyped
3353 form.
3354 * ada-typeprint.c: Change k&r style function definitions to prototyped
3355 form.
3356 * ada-valprint.c: Change k&r style function definitions to prototyped
3357 form.
3358
7fb623f7
AC
33592002-07-24 Andrew Cagney <cagney@redhat.com>
3360
3361 * README: Remove reference to remote-bug.
3362 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3363 remote-bug.c.
3364 (m88k-nat.o): Delete rule.
3365 (m88k-tdep.o): Delete rule.
3366 (remote-bug.o): Delete rule.
3367 * MAINTAINERS: Mark as obsolete.
3368 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3369 * m88k-tdep.c: Make file obsolete.
3370 * config/m88k/m88k.mh: Ditto.
3371 * config/m88k/delta88v4.mh: Ditto.
3372 * config/m88k/delta88v4.mt: Ditto.
3373 * config/m88k/delta88.mt: Ditto.
3374 * config/m88k/delta88.mh: Ditto.
3375 * remote-bug.c: Ditto.
3376 * config/m88k/tm-delta88.h: Ditto.
3377 * config/m88k/nm-delta88v4.h: Ditto.
3378 * config/m88k/xm-delta88.h: Ditto.
3379 * config/m88k/xm-dgux.h: Ditto.
3380 * config/m88k/tm-m88k.h: Ditto.
3381 * config/m88k/nm-m88k.h: Ditto.
3382 * config/m88k/tm-delta88v4.h: Ditto.
3383 * m88k-nat.c: Ditto.
3384 * cxux-nat.c: Ditto.
3385 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3386 and m88*-*-* obsolete.
3387 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3388 m88*-*-* obsolete.
3389
37611a2b
AC
33902002-07-24 Andrew Cagney <cagney@redhat.com>
3391
3392 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3393 constant. Same for local pointer variables.
3394 (extract_signed_integer): Ditto.
3395 * defs.h (extract_unsigned_integer): Update.
3396 (extract_signed_integer): Update.
3397
1aaa5f99
AC
33982002-07-24 Andrew Cagney <cagney@redhat.com>
3399
3400 * regcache.c (regcache_raw_write): Change buf parameter to a
3401 constant void pointer.
3402 (regcache_raw_read): Change buf parameter to a void pointer.
3403 (legacy_write_register_gen): Change myaddr parameter a constant
3404 void pointer.
3405 (supply_register): Change val parameter to a const void pointer.
3406 * regcache.h (regcache_raw_write): Update declaration.
3407 (regcache_raw_read): Update declaration.
3408 (supply_register): Update declaration.
3409
b4f5539f
TT
34102002-07-24 Tom Tromey <tromey@redhat.com>
3411
3412 * defs.h (gdb_readline_wrapper): Declare.
3413 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3414 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3415 * top.c (gdb_readline_wrapper): New function.
3416 (command_line_input): Use it.
3417
0818c12a
AC
34182002-07-24 Andrew Cagney <cagney@redhat.com>
3419
3420 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3421 regcache_read and regcache_write.
3422 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3423 * regcache.c: Update.
3424 * sh-tdep.c (sh64_push_arguments): Update comment.
3425 (sh_pseudo_register_read): Update.
3426 (sh_pseudo_register_write): Update.
3427 (sh4_register_read): Update.
3428 (sh4_register_write): Update.
3429 (sh64_pseudo_register_read): Update.
3430 (sh64_pseudo_register_write): Update.
3431 (sh64_register_read): Update.
3432 (sh64_register_write): Update.
3433 * i386-tdep.c (i386_extract_return_value): Update.
3434 (i386_extract_struct_value_address): Update.
3435 (i386_extract_return_value): Update.
3436 * blockframe.c (generic_read_register_dummy): Update.
3437 (generic_call_dummy_register_unwind): Update
3438 * infrun.c (write_inferior_status_register): Update.
3439
f7321c06
JB
34402002-07-23 Jim Blandy <jimb@redhat.com>
3441
3442 * parser-defs.h (expression_context_pc): Make this extern.
3443 (Thanks to Michael Snyder.)
3444
2037aebb
AC
34452002-07-23 Andrew Cagney <ac131313@redhat.com>
3446
3447 GDB 5.2.1 released from 5.2 branch.
3448 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3449 * README: Update to mention 5.2.1.
3450
66504d44
MS
34512002-07-23 Mark Salter <msalter@redhat.com>
3452
3453 * remote.c (remote_read_bytes): Fix check for error.
3454
27bae383
KB
34552002-07-22 Kevin Buettner <kevinb@redhat.com>
3456
3457 * aix-thread.c (language.h): Include.
3458 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3459 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3460 Print newlines at end of debug messages.
3461 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3462 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3463
34642002-07-22 Kevin Buettner <kevinb@redhat.com>
3465
3466 * aix-thread.c (ppc-tdep.h): Include.
3467 (special_register_p): New function.
3468 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3469 (store_regs_user_thread): Use register number information from
3470 gdbarch_tdep struct instead of hardcoded offsets relative to
3471 FIRST_UISA_SP_REGNUM.
3472 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3473 special_register_p() instead of using FPLAST_REGNUM and
3474 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3475 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3476 will be MQ's register number.
3477
34782002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3479
3480 * aix-thread.c (ops): Rename to aix_thread_ops.
3481 (base_ops): Rename to base_target.
3482 (ops_attach): Rename to aix_thread_attach.
3483 (ops_detach): Rename to aix_thread_detach.
3484 (ops_resume): Rename to aix_thread_detach.
3485 (ops_wait): Rename to aix_thread_wait.
3486 (ops_kill): Rename to aix_thread_kill.
3487 (init_ops): Rename to init_aix_thread_ops.
3488 (ops_fetch_register): Rename to aix_thread_fetch_register.
3489 (ops_store_register): Rename to aix_thread_store_register.
3490 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3491 (ops_thread_alive): Rename to aix_thread_thread_alive.
3492 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3493 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3494 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3495 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3496 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3497 (store_regs_lib): Rename to store_regs_user_thread.
3498 (store_regs_kern): Rename to store_regs_kernel_thread.
3499
27bae383 35002002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3501
3502 * aix-thread.c (ops_prepare_to_store): Eliminate.
3503 (init_ops): Don't initialize ops.prepare_to_store.
3504 (store_regs_kern): Pre-fetch register buffers from child,
3505 because some registers may not be in the cache. Copy
3506 regs from register cache only if they are cached.
3507 (store_regs_lib): Copy regs from register cache only
3508 if they are cached.
3509 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3510 fill_gprs64): Ditto.
3511
61c5da0b
KB
35122002-07-22 Kevin Buettner <kevinb@redhat.com>
3513
3514 * aix-thread.c (gdb_assert.h): Include.
3515 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3516 register sizes (from register cache) match size of buffer holding
3517 register data.
3518 (fill_sprs32): Change parameter types to match those in the ptrace()
3519 buffer.
3520 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3521 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3522
35232002-07-22 Michael Snyder <msnyder@redhat.com>
3524
3525 * aix-thread.c (supply_sprs64): Cosmetic change.
3526 (supply_sprs32): Cosmetic change.
3527 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3528 (fill_sprs64): Use regcache_collect instead of read_register.
3529 (store_regs_lib): Use regcache_collect instead of
3530 read_register. Use fill_sprs32 instead of fill_sprs64,
3531 if debugging a 32-bit architecture.
3532 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3533 out of the register cache, instead of passing a pointer into
3534 the register cache directly to ptrace. Use regcache_collect
3535 insteaad of read_register.
3536 (ops_prepare_to_store): Use target_read_registers instead
3537 of read_register_bytes.
3538
36479eb1
AS
35392002-07-20 Aidan Skinner <aidan@velvet.net>
3540
3541 * MAINTAINERS: Add self under write after approval.
3542
80ae6ee2
AS
35432002-07-20 Aidan Skinner <aidan@velvet.net>
3544
3545 * ada-tasks.c: Change k&r style function definitions to prototyped
3546 form.
3547
8a8ab2b9
AC
35482002-07-19 Andrew Cagney <ac131313@redhat.com>
3549
3550 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3551 * x86-64-tdep.c: Include "objfiles.h".
3552 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3553 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3554
fb16b900
ML
35552002-07-17 Michal Ludvig <michal@suse.cz>
3556
3557 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3558 (update_context): Initialise cfa variable.
3559
0fe7bf7b
MS
35602002-07-17 Michael Snyder <msnyder@redhat.com>
3561
3562 * aix-thread.c: Shorten some long lines.
3563 Bring comments into line with code spec.
3564
488f131b
JB
35652002-07-18 Joel Brobecker <brobecker@gnat.com>
3566
3567 * infrun.c: Re-indent using gdb_indent.sh.
3568
46c415d2
JB
35692002-07-18 Joel Brobecker <brobecker@gnat.com>
3570
3571 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3572 Leave the indentation temporarily untouched, to minimize the diffs.
3573
cdecafbe
EZ
35742002-07-18 Elena Zannoni <ezannoni@redhat.com>
3575
3576 * stabsread.c: Make os9k sections of the code obsolete,
3577 for real this time.
3578 * stabsread.h: Make os9k sections of the code obsolete.
3579
7b6aa020
ML
35802002-07-18 Michal Ludvig <mludvig@suse.cz>
3581
09ec9b38
ML
3582 * linux-low.c (regsets_store_inferior_registers): Add free()
3583 at the end of a loop to prevent memory leak.
3584 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3585 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3586 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3587 line a comment.
4894ac5d 3588 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3589
233282cd
JB
35902002-07-17 Jim Blandy <jimb@redhat.com>
3591
3592 * macrocmd.c (info_macro_command): Remove newline from error
3593 message.
3594
7b6aa020 35952002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3596
3597 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3598 (sh_gdbarch_init): Use it for sh-dsp.
3599
f7ef9339
KB
36002002-07-16 Kevin Buettner <kevinb@redhat.com>
3601
3602 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3603 64-bit DWARF2 format.
3604
8dd72958
JB
36052002-07-16 Joel Brobecker <brobecker@gnat.com>
3606
3607 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3608 <sys/proc.h> when not available.
3609
a99a9e1b
AC
36102002-07-16 Andrew Cagney <ac131313@redhat.com>
3611
3612 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3613 * stabsread.c: Make os9k sections of the code obsolete.
3614 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3615 * config/i386/i386os9k.mt: Make file obsolete.
3616 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3617 (COMMON_OBS): Remove os9kread.o
3618 (SFILES): Remove os9kread.c.
3619 (os9kread.o, remote-os9k.o): Make target obsolete.
3620 * remote-os9k.c: Make file obsolete.
3621 * os9kread.c: Make file obsolete.
3622 * Makefile.in
3623
7a3085c1
AC
36242002-07-16 Andrew Cagney <ac131313@redhat.com>
3625
3626 * NEWS: Mention that the FR30 has been made obsolete.
3627 * fr30-tdep.c: Make file obsolete.
3628 * config/fr30/tm-fr30.h: Ditto.
3629 * config/fr30/fr30.mt: Ditto.
3630 * configure.tgt: Make fr30-*-elf obsolete.
3631 * MAINTAINERS: Make fr30-elf obsolete.
3632
28a93f5a
PM
36332002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3634
3635 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3636 found is not inside a section.
3637
be006b8b
KB
36382002-07-15 Kevin Buettner <kevinb@redhat.com>
3639
3640 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3641 strerror().
3642 (pdc_realloc): Use xrealloc() instead of realloc().
3643
14fa3751
KB
36442002-07-15 Kevin Buettner <kevinb@redhat.com>
3645
3646 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3647 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3648 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3649 macros.
3650
42cc437f
KB
36512002-07-15 Kevin Buettner <kevinb@redhat.com>
3652
3653 * aix-thread.c (ptrace_check): Eliminate goto.
3654 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3655 problem.
3656
8e2c28d4
KB
36572002-07-15 Kevin Buettner <kevinb@redhat.com>
3658
3659 * aix-thread.c (gdbcmd.h): Include.
3660 (DEBUG, DBG, DBG2, dbg): Eliminate.
3661 (debug_aix_thread): New static global.
3662 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3663 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3664 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3665 invocations to DBG and DBG2 macros to test against
3666 ``debug_aix_thread'' and call fprintf_unfiltered().
3667 (_initialize_aix_thread): Add new command "set debug aix-thread".
3668
30413464
AC
36692002-07-15 Andrew Cagney <ac131313@redhat.com>
3670
3671 From Gerhard Tonn <TON@de.ibm.com>:
3672 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3673 instead of supply_register.
3674
7c43edc1
AC
36752002-07-15 Andrew Cagney <ac131313@redhat.com>
3676
3677 * dwarf2cfi.c: Include "gdb_assert.h".
3678 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3679 non-NULL.
3680 (update_context): Do not use __func__. Add missing ``break''.
3681 (update_context): Do not use __func__.
3682
9364a0ef
EZ
36832002-07-15 Elena Zannoni <ezannoni@redhat.com>
3684
3685 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3686 and its setting. Set gdbarch instruction printing functions
3687 directly. For non-rs6000 case use new function
3688 gdb_print_insn_powerpc.
3689 (gdb_print_insn_powerpc): New function.
3690
3fbeef0b
AC
36912002-07-13 Andrew Cagney <ac131313@redhat.com>
3692
92eb23c5 3693 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3694 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3695 * configure.tgt: Mark d30v-*-* as obsolete.
3696 * d30v-tdep.c: Mark file as obsolete.
3697 * config/d30v/d30v.mt: Ditto.
3698 * config/d30v/tm-d30v.h: Ditto.
3699
aacb1f0a
AS
37002002-07-13 Aidan Skinner <aidan@velvet.net>
3701
3702 * ada-tasks.c (add_task_entry): replace calls to
3703 malloc() with xmalloc
3704 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3705
3706 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3707 ada_finish_decode_line_1, all_sals_for_line
3708 ada_breakpoint_rewrite): replace calls to free() with xfree()
3709
c11d79f2
KB
37102002-07-12 Kevin Buettner <kevinb@redhat.com>
3711
3712 From Nicholas Duffek (with minor changes by Martin Hunt,
3713 Louis Hamilton, and Kevin Buettner):
3714 * aix-thread.c: New file.
3715
8e19ed76
PS
37162002-07-12 Petr Sorfa <petrs@caldera.com>
3717
3718 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3719 complaint for invalid attribute class or form.
3720 (read_func_scope): DW_AT_frame_base
3721 better handling of DW_AT_block*.
3722 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3723 better handling of DW_AT_block*.
3724 (read_common_block): DW_AT_location
3725 better handling of DW_AT_block*.
3726 (read_partial_die): DW_AT_location better handling
3727 of DW_AT_block*.
3728 (new_symbol): DW_AT_external better handling of
3729 DW_AT_block*. Proper initialization of variable
3730 "addr".
3731 (attr_form_is_block): New function that returns true
3732 if the attribute's form is of DW_FORM_block*.
3733
295401f7
DJ
37342002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3735
3736 * valops.c (find_method_list): Remove comment about
3737 removed STATIC_MEMFUNCP argument.
3738 (value_find_oload_method_list): Likewise.
3739
e42dc924
KB
37402002-07-12 Kevin Buettner <kevinb@redhat.com>
3741
3742 From Nicholas Duffek:
3743 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3744 target_new_objfile_hook.
3745
6904b546
KB
37462002-07-12 Kevin Buettner <kevinb@redhat.com>
3747
3748 From Nicholas Duffek:
3749 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3750 csect.
3751
53fe9346
AC
37522002-07-12 Andrew Cagney <cagney@redhat.com>
3753
3754 * MAINTAINERS: Mention --enable-sim-build-warnings.
3755 (m68hc11-elf): Disable sim build warnings.
3756 (m32r-elf): Mark as broken obsolete candidate.
3757 (x86_64-linux-gnu): Mark as buildable with -Werror.
3758 (arm-elf): Change -w to ``,'' which enables warnings but not
3759 -Werror.
3760
af5f3db6
AC
37612002-07-12 Andrew Cagney <ac131313@redhat.com>
3762
3763 * bcache.h: Update copyright.
3764 (struct bstring, struct bcache): Move definition to "bcache.c".
3765 Replaced by opaque declaration.
3766 (bcache_xfree): Replace free_bcache.
3767 (bcache_xmalloc, bcache_memory_used): Declare.
3768
3769 * bcache.c: Update copyright.
3770 (struct bstring, struct bcache): Moved to here from "bcache.h".
3771 Update comments.
3772 (bcache_xmalloc, bcache_memory_used): New functions.
3773 (bcache_xfree): Replace function free_bcache.
3774
3775 * Makefile.in (objfiles.o): Add $(bcache_h).
3776 (objfiles_h): Remove $(bcache_h).
3777 (symfile.o): Add $(bcache_h).
3778
3779 * symmisc.c: Update copyright.
3780 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3781 (print_objfile_statistics): Use bcache_memory_used.
3782
3783 * symfile.c: Include "bcache.h".
3784 (reread_symbols): Use bcache_xfree.
3785 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3786 (add_psymbol_to_list): Pass psymbol_cache by value.
3787 (add_psymbol_with_dem_name_to_list): Ditto.
3788
3789 * objfiles.h: Update copyright.
3790 (struct bcache): Declare opaque. Do not include "bcache.h".
3791 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3792 bcache'' pointers.
3793 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3794
3795 * objfiles.c: Include "bcache.h". Update copyright.
3796 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3797 macro_cache.
3798 (free_objfile): Use bcache_xfree.
3799
444199e7
GS
38002002-07-11 Grace Sainsbury <graces@redhat.com>
3801
3802 * monitor.c (monitor_fetch_register): Make name a constant.
3803 (monitor_store_register): Same.
3804
261397f8
DJ
38052002-07-11 Daniel Jacobowitz <drow@mvista.com>
3806
3807 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3808 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3809 (finish_block) For non-function blocks, hash the symbol table. For
3810 function blocks, mark the symbol table as unhashed.
3811 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3812 (msymbol_hash_iw): Likewise.
3813 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3814 value.
3815 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3816 (lookup_minimal_symbol): Likewise for both.
3817 * symtab.h (struct block): Add `hashtable' flag. Comment the
3818 hashtable.
3819 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3820 (ALL_BLOCK_SYMBOLS): Update.
3821 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3822 (struct symbol): Add `hash_next' pointer.
3823 * symtab.c (lookup_block_symbol): Search using the hash table when
3824 possible.
3825 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3826 (search_symbols, find_addr_symbol): Likewise.
3827
3828 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3829 (read_dst_symtab): Likewise.
3830 * jv-lang.c (get_java_class_symtab): Likewise.
3831 * mdebugread.c: Include "gdb_assert.h".
3832 (shrink_block): Assert that the block being modified is not hashed.
3833 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3834 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3835 symbols.
3836 (dump_symtab): Recognize hashed blocks.
3837 * printcmd.c (print_frame_args): Assert that function blocks do not
3838 have hashed symbol tables.
3839 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3840 (fill_in_ada_prototype, debug_print_block): Likewise.
3841 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3842
6f0eaa01
CV
38432002-07-11 Corinna Vinschen <vinschen@redhat.com>
3844
3845 * stack.c (print_frame): Use result of frame_address_in_block()
3846 instead of fi->pc when evaluating symbols.
3847 (backtrace_command_1): Ditto.
3848
a208b0cb
AC
38492002-07-11 Andrew Cagney <cagney@redhat.com>
3850
3851 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3852 Make static.
3853
3854 * arm-tdep.c (arm_register_name): Make return type constant.
3855
a6b6b089
AC
38562002-07-10 Andrew Cagney <ac131313@redhat.com>
3857
5ae5f592
AC
3858 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3859 prototype.
3860 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3861 * s390-tdep.c (s390_fp_regnum): Ditto.
3862 (s390_read_fp): Ditto.
3863 (s390_pop_frame): Ditto.
3864 (_initialize_s390_tdep): Ditto.
3865 * remote.c (get_remote_state): Ditto.
3866 * procfs.c (mappingflags): Ditto.
3867 * memattr.c (_initialize_mem): Ditto.
3868 * mcore-tdep.c (mcore_pop_frame): Ditto.
3869 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3870 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3871 * language.c (set_case_str): Ditto.
3872 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3873 * frv-tdep.c (new_variant): Ditto.
3874 (frv_stopped_data_address): Ditto.
3875 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3876 (context_alloc): Ditto.
3877 (frame_state_alloc): Ditto.
3878 (unwind_tmp_obstack_init): Ditto.
3879 (unwind_tmp_obstack_free): Ditto.
3880 (cfi_read_fp): Ditto.
3881 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3882 (cris_pop_frame): Ditto.
3883 * c-lang.c (scanning_macro_expansion): Ditto.
3884 (finished_macro_expansion): Ditto.
3885 (c_preprocess_and_parse): Ditto.
3886 * gdbarch.sh: Ditto.
3887 * gdbarch.h, gdbarch.c: Regenerate.
3888 * config/mn10200/tm-mn10200.h: Adjust indentation.
3889 * target.c: Adjust indentation.
3890 * symtab.h: Adjust indentation.
3891 * stabsread.h: Adjust indentation.
3892 * remote-es.c: Adjust indentation.
3893 * os9kread.c: Adjust indentation.
3894
38952002-07-10 Andrew Cagney <ac131313@redhat.com>
3896
a6b6b089
AC
3897 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3898 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3899
a1789893
GS
39002002-07-10 Grace Sainsbury <graces@redhat.com>
3901
3902 * NEWS: Mention m68k, mcore multi-arching.
3903 * MAINTAINERS: Change status of m68k, mcore to reflect
3904 multi-arching.
3905
02f0d45d
DJ
39062002-07-10 Daniel Jacobowitz <drow@mvista.com>
3907
3908 * valops.c (find_overload_match): Free oload_syms.
3909
f15f768e
JB
39102002-07-09 Joel Brobecker <brobecker@gnat.com>
3911
3912 Define HAVE_SYS_PROC_H if sys/proc.h exists
3913 * configure.in: Add check for sys/proc.h
3914 * config.in: Regenerate.
3915 * configure: Regenerate.
3916
902a7139
GS
39172002-07-09 Grace Sainsbury <graces@redhat.com>
3918
3919 * config/m68k/tm-m68k.h: Remove macros wrapped in
3920 #if !GDB_MULTI_ARCH.
3921
a534e424
AC
39222002-07-08 Andrew Cagney <ac131313@redhat.com>
3923
3924 * config.in, configure: Regenerate.
3925
9b94f7bf
MK
39262002-07-08 Mark Kettenis <kettenis@gnu.org>
3927
3928 * dwarf2cfi.c: Include "gcore.h".
3929 (execute_stack_op): Fix implementation of the
3930 DW_OP_deref and DW_OP_deref_size operators by letting do their
3931 lookup in the target.
3932
1d34db41
MK
39332002-07-07 Mark Kettenis <kettenis@gnu.org>
3934
3935 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3936 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3937 tdep->sc_sp_offset.
3938
79d5b63a
DJ
39392002-07-05 Daniel Jacobowitz <drow@mvista.com>
3940
3941 Fix PR gdb/595, gdb/602
3942 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3943 Don't call value_cast, just read the vtable pointer; update comments
3944 to match.
3945
3bb912e8
GS
39462002-07-05 Grace Sainsbury <graces@redhat.com>
3947
3948 * config/mcore/tm-mcore.h: Remove file.
3949 * config/mcore/mcore.mt: Remove definition of TM_FILE
3950 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3951
ca39387d
MK
39522002-07-05 Mark Kettenis <kettenis@gnu.org>
3953
3954 * i386bsd-tdep.c: Include "gdb_string.h".
3955
efdc1108
GS
39562002-07-04 Grace Sainsbury <graces@redhat.com>
3957
3958 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3959 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3960 mcore-tdep.
3961 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3962 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3963 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3964 (RETVAL_REGNUM): Move macros from tm-mcore.h
3965 (mcore_reg_struct_has_addr): New function.
3966 (mcore_gdbarch_init): Added initializations for the macros removed
3967 from tm-mcore.h.
3968
bb21884d
MK
39692002-07-04 Mark Kettenis <kettenis@gnu.org>
3970
3971 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3972 traditonal string branding within the ELF header.
3973
228c6d41
DJ
39742002-07-04 Daniel Jacobowitz <drow@mvista.com>
3975
3976 * symtab.c (remove_params): New function.
3977 (make_symbol_overload_list): Use it instead of cplus_demangle.
3978 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3979
2404952e
MK
39802002-07-04 Mark Kettenis <kettenis@gnu.org>
3981
e5e4acad
MK
3982 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3983
baadce09
MK
3984 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3985 New variables.
3986 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3987 and tdep->sigtramp_end.
3988 * i386obsd-nat.c: New file.
3989 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3990
2404952e
MK
3991 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3992 Don't call get_current_frame().
3993
9b4f1ba7
PM
39942002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3995
3996 * i386-nat.c (child_post_startup_inferior): New function
3997 calling i386_cleanup_dregs if
3998 I386_USE_GENERIC_WATCHPOINTS is defined.
3999 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4000 conditional to acknowledge that i386-nat.c has its
4001 own child_post_startup_inferior function.
4002
c0d1d883
MK
40032002-07-04 Mark Kettenis <kettenis@gnu.org>
4004
00f8375e
MK
4005 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4006 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4007 instead of MAX_REGISTER_RAW_SIZE.
4008 (i386_extract_return_value, i386_extract_struct_value_address):
4009 Convert to use regcache.
4010 (i386_gdbarch_init): Set max_register_raw_size and
4011 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4012 Set extract_return_value and extract_struct_value_address instead
4013 of their deprecated variants.
4014
c0d1d883
MK
4015 Convert i386 target to generic dummy frames.
4016 * i386-tdep.c: Include "symfile.h".
4017 (i386_frameless_signal_p): Consider a function to be frameless if
4018 the pc points at the first instruction of the function.
4019 (i386_frame_chain): Handle (generic) call dummies.
4020 (i386_frame_saved_pc): Likewise.
4021 (i386_frame_init_saved_regs): Remove code dealing with call
4022 dummies on the stack.
4023 (i386_push_dummy_frame): Removed.
4024 (i386_call_dummy_words): Removed.
4025 (i386_fix_call_dummy): Removed.
4026 (i386_push_return_address): New function.
4027 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4028 parameter, and don't call get_current_frame.
4029 (i386_pop_frame): New function.
4030 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4031 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4032 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4033 call_dummy_length to 0, set call_dummy_words to NULL, set
4034 sizeof_call_dummy_words to 0, set fix_call_dummy to
4035 generic_fix_call_dummy, set pc_in_call_dummy to
4036 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4037 generic_push_dummy_frame, set push_return_address to
4038 i386_push_return_address and set frame_chain_valid to
4039 generic_file_frame_chain_valid.
4040
049ee0e4
AC
40412002-07-03 Andrew Cagney <ac131313@redhat.com>
4042
4043 * gdbarch.sh (struct regcache): Add opaque declaration.
4044 (EXTRACT_RETURN_VALUE): New architecture method.
4045 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4046 * gdbarch.h, gdbarch.c: Regenerate.
4047 * arch-utils.c (legacy_extract_return_value): New function.
4048 * arch-utils.h (legacy_extract_return_value): Declare.
4049 * values.c (value_being_returned): Re-enable code handling
4050 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4051 deprecated_grub_regcache_for_registers call to block handling
4052 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4053 (EXTRACT_RETURN_VALUE): Do not define.
4054
4e0d9804
GS
40552002-07-03 Grace Sainsbury <graces@redhat.com>
4056
4057 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4058 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4059 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4060 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4061 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4062 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4063 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4064 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4065 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4066 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4067 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4068 argument so the function fits the prototype in the architecture
4069 vector.
4070 (mcore_pop_frame): Remove argument so the function fits the
4071 prototype. Use get_current_frame instead of the argument.
4072 (mcore_push_arguments): Change type of struct_return so the
4073 function can be used in the architecture vector.
4074 (mcore_store_struct_return): Add.
4075 (mcore_frame_init_saved_regs): Add.
4076 (mcore_gdbarch_init): Add function calls to replace the macros
4077 removed from tm-mcore.h
4078
36160dc4
AC
40792002-07-03 Andrew Cagney <ac131313@redhat.com>
4080
4081 * infcmd.c (print_return_value): Remove compatibility code calling
4082 deprecated_grub_regcache_for_registers.
4083
4084 * values.c: Include "regcache.h".
4085 (value_being_returned): Update. Use
4086 deprecated_grub_regcache_for_registers to extract the register
4087 buffer address.
4088 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4089 ``struct regcache''.
4090 * Makefile.in (values.o): Add dependency on $(regcache_h).
4091
4092 * inferior.h (run_stack_dummy): Change type of second parameter to
4093 a ``struct regcache''.
4094 * valops.c (hand_function_call): Change type of retbuf to ``struct
4095 regcache''. Allocate using regcache_xmalloc, clean using
4096 make_cleanup_regcache_xfree.
4097 * infcmd.c (run_stack_dummy): Update. Use
4098 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4099
4100 * regcache.c (do_regcache_xfree): New function.
4101 (make_cleanup_regcache_xfree): New function.
4102 * regcache.h (make_cleanup_regcache_xfree): Declare.
4103
e64d9b3d
MH
41042002-07-03 Martin M. Hunt <hunt@redhat.com>
4105
4dd79c29
MH
4106 * event-top.c (command_line_handler): Don't read past
4107 beginning of buffer.
e64d9b3d 4108
4dd79c29
MH
41092002-07-03 Martin M. Hunt <hunt@redhat.com>
4110
e64d9b3d
MH
4111 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4112 struct frame_id.
4113 (varobj_create): Store frame_id for root.
4114 (varobj_gen_name): Use xasprintf.
4115 (varobj_update): Save and restore frame using get_frame_id() and
4116 frame_find_by_id().
4117 (create_child): Use xasprintf.
4118 (new_root_variable): Initialize frame_id.
4119 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4120 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4121 to prevent memory leak.
4122
26e6c56a
AC
41232002-07-03 Andrew Cagney <ac131313@redhat.com>
4124
4125 * valops.c (hand_function_call): Move declaration of retbuf to
4126 start of function, allocate using malloc, add a cleanup but before
4127 the inf_status cleanup, cleanup the buffer. Rename local variable
4128 old_chain to inf_status_cleanup.
4129
f436dd25
MH
41302002-07-03 Martin M. Hunt <hunt@redhat.com>
4131
4132 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4133
4134 * cli/cli-decode.c (cmd_func_p): New function.
4135 (cmd_func): New function.
4136
4137 * command.h: Add cmd_func() and cmd_func_p().
4138
4cfe2084
GS
41392002-07-03 Grace Sainsbury <graces@redhat.com>
4140
4141 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4142 (REGISTER_SIZE): Remove.
4143 (MAX_REGISTER_RAW_SIZE): Remove.
4144 (REGISTER_VIRTUAL_TYPE): Remove.
4145 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4146 (REGISTER_NAME): Remove.
4147 (USE_GENERIC_DUMMY_FRAMES): Remove.
4148 (CALL_DUMMY): Remove.
4149 (CALL_DUMMY_START_OFFSET): Remove.
4150 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4151 (CALL_DUMMY_LOCATION): Remove.
4152 (FIX_CALL_DUMMY): Remove.
4153 (CALL_DUMMY_ADDRESS): Remove.
4154 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4155 (SAVE_DUMMY_FRAME_TOS): Remove.
4156 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4157 (mcore_register_virtual_type): New function.
4158 (mcore_register_byte): New function.
4159 (mcore_register_size): New function.
4160 (mcore_register_name): New function.
4161 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4162 macros removed from tm-mcore.h.
4163 (mcore_dump_tdep): Add.
4164 (_initialize_mcore_tdep): Add gdbarch_register call.
4165
4fd667e9
MK
41662002-07-03 Mark Kettenis <kettenis@gnu.org>
4167
4168 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4169 frameless_look_for_prologue, such that we actually call this
4170 function.
4171
42f99ac2
JB
41722002-07-02 Joel Brobecker <brobecker@gnat.com>
4173
4174 * frame.h (frame_address_in_block): New function.
4175
4176 * blockframe.c (frame_address_in_block): New function extracted
4177 from get_frame_block().
4178 (get_frame_block): Use frame_address_in_block().
4179 (block_innermost_frame): Use frame_address_in_block() to match
4180 the frame pc address against the block boundaries rather than
4181 the frame pc directly. This prevents a failure when a frame pc
4182 is actually a return-address pointing immediately after the end
4183 of the given block.
4184
103a1597 41852002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4186
4187 * MAINTAINERS: Add self under write after approval.
4188
41892002-07-02 Grace Sainsbury <graces@redhat.com>
4190
103a1597
GS
4191 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4192 used in architecture vector. The default is
4193 m68k_local_breakpoint_from_pc.
4194 (m68k_local_breakpoint_from_pc): Add.
4195 (enum): Add register numbers from tm-m68k.h.
4196 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4197 vector.
4198 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4199 GDB_MULTI_ARCH_PARTIAL.
4200 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4201 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4202 m68k-tdep.c.
4203 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4204 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4205 to enum in m68k-tdep.c
4206
7a5a0534
JB
42072002-07-02 Joel Brobecker <brobecker@gnat.com>
4208
4209 * solib-osf.c (open_map): Compute the list of shared libraries
4210 loaded by the inferior, rather than the list of libraries loaded
4211 by GDB itself. Otherwise, GDB ends up reading the symbols from
4212 the wrong shared libraries...
4213
6f558d74
MK
42142002-07-02 Mark Kettenis <kettenis@gnu.org>
4215
b7d15bf7
MK
4216 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4217 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4218 macros.
4219 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4220 Remove functions.
4221 (FRAMELESS_SIGNAL): Remove function.
4222 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4223 i386_linux_saved_pc_after_call): Removed.
4224 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4225 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4226 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4227
6bff26de
MK
4228 * i386-tdep.c (i386_frameless_signal_p): New function.
4229 (i386_frame_chain): Deal with frameless signals.
4230 (i386_sigtramp_saved_sp): New function.
4231 (i386_frame_saved_pc): Deal with frameless signals.
4232 (i386_saved_pc_after_call): Make sure the correct value is
4233 returned just after entry into a sigtramp.
4234 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4235 i386fbsd4_sc_sp_offset): New variables.
4236 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4237 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4238 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4239 similiar to what we already did for sc_pc_offset.
4240 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4241 tdep->sc_sp_offset.
4242
6f558d74
MK
4243 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4244
145564b7
ML
42452002-07-02 Michal Ludvig <mludvig@suse.cz>
4246
4247 * config/i386/tm-x86-64linux.h: New.
4248 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4249 definitions.
4250 * config/i386/nm-x86-64.h: Rename to ...
4251 * config/i386/nm-x86-64linux.h: ... this one.
4252 * config/i386/x86-64linux.mh: Reflect the above change.
4253
3a1e71e3
MK
42542002-07-01 Mark Kettenis <kettenis@gnu.org>
4255
21d0e8a4
MK
4256 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4257 with sigcontext_addr. Add sc_sp_offset.
4258 (i386bsd_sigtramp_saved_pc): Remove prototype.
4259 (i386bsd_sicontext_addr): Add prototype.
4260 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4261 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4262 (i386_svr4_sigtramp_saved_pc): Removed.
4263 (i386_svr4_sigcontext_addr): New function.
4264 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4265 Initialize tdep->sigcontext_addr instead. Initialize
4266 tdep->sc_pc_offset and tdep->sc_sp_offset.
4267 (i386_gdbarch_init): Likewise.
4268 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4269 any more.
4270 (i386bsd_sigtramp_saved_pc): Remove function.
4271 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4272 Initialize tdep->sigcontext_addr instead. Initialize
4273 tdep->sc_pc_offset.
4274 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4275 of tdep->sigtramp_saved_pc.
4276 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4277 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4278 instead.
4279
3a1e71e3
MK
4280 * i386-tdep.c (i386_frameless_function_invocation,
4281 i386_frame_num_args, i386_frame_init_saved_regs,
4282 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4283 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4284 i386_extract_return_value, i386_store_return_value,
4285 i386_extract_struct_value_address, i386_register_virtual_type,
4286 i386_register_convertible, i386_register_convert_to_virtual,
4287 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4288 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4289 static.
4290
52e9098c
MK
42912002-07-01 Mark Kettenis <kettenis@gnu.org>
4292
77b13a25
MK
4293 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4294
52e9098c
MK
4295 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4296 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4297 this macro. Include "value.h".
4298
1b372fff
AS
42992002-06-30 Aidan Skinner <aidan@velvet.net>
4300
4301 * ada-exp.tab.c: remove as it's a generated file
4302 * ada-lex.c: remove as it's a generated file
4303
9c5045b5
MK
43042002-06-30 Mark Kettenis <kettenis@gnu.org>
4305
4a93c5bb
MK
4306 * config/i386/tm-i386.h (struct frame_info, struct
4307 frame_saved_regs, struct value, struct type): Remove forward
4308 declarations.
4309
322d4fe0
MK
4310 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4311 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4312 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4313 (FILL_FPXREGSET): Define.
4314
fdd8263d
MK
4315 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4316
482e577b
MK
4317 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4318 i[3456]86-*-netbsd* case.
4319 * config/i386/tm-obsd.h: Removed.
4320 * config/i386/obsd.mt: Removed.
4321 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4322 core-aout.o.
4323 (MH_CFLAGS): Add -DYYDEBUG=0.
4324
6916549a
MK
4325 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4326 i386nbsd_sc_pc_offset on OpenBSD too.
4327
9c5045b5
MK
4328 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4329 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4330 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4331 define.
4332 * i386bsd-tdep.c: Include "arch-utils.h".
4333 (i386bsd_aout_in_solib_call_trampoline): New function.
4334 (i386bsd_init_abi): Set in_solib_call_trampoline to
4335 i386bsd_aout_in_solib_call_trampoline.
4336 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4337 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4338
aa84d1bb
AC
43392002-06-28 Andrew Cagney <ac131313@redhat.com>
4340
4341 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4342 (struct obstack, struct bcache): Add opaque declarations.
4343 * Makefile.in (macrotab_h): Update
4344
b4d83933
AC
43452002-06-28 Andrew Cagney <ac131313@redhat.com>
4346
4347 * blockframe.c (generic_find_dummy_frame): Change return type to
4348 ``struct regcache''.
4349 (struct dummy_frame): Replace field ``registers'' with regcache, a
4350 struct regcache object.
4351 (generic_find_dummy_frame): Update.
4352 (generic_push_dummy_frame): Update. Use regcache_xfree,
4353 regcache_xmalloc and regcache_cpy.
4354 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4355 regcache_xfree.
4356 (deprecated_generic_find_dummy_frame): Update.
4357 (generic_read_register_dummy): Update. Use
4358 regcache_read_as_address.
4359 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4360 (generic_get_saved_register): Update. Use regcache_read.
4361
08c0b5bc
AC
43622002-06-28 Andrew Cagney <ac131313@redhat.com>
4363
4364 * Makefile.in (objfiles_h): Add $(bcache_h).
4365 * objfiles.h: Include "bcache.h".
4366
4367 * Makefile.in (symtab_h): Remove $(bcache_h).
4368 * symtab.h: Do not include "bcache.h".
4369
1f89801a
AC
43702002-06-28 Andrew Cagney <ac131313@redhat.com>
4371
4372 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4373 generic_func_frame_chain_valid.
4374
b9644b58
DB
43752002-06-28 David O'Brien <obrien@FreeBSD.org>
4376
4377 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4378 * config/i386/tm-fbsd.h: Likewise.
4379
dd486634
AC
43802002-06-28 Andrew Cagney <ac131313@redhat.com>
4381
4382 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4383 generic_unwind_get_saved_register.
4384
0b434a00
AC
43852002-06-27 Andrew Cagney <ac131313@redhat.com>
4386
4387 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4388 * regcache.c (supply_register): Add missing argument to
4389 register_buffer call.
4390
f30e5a77
AC
43912002-06-27 Andrew Cagney <ac131313@redhat.com>
4392
4393 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4394 Solaris /bin/grep does not not like it. From Peter Schauer.
4395
9f064c95
TT
43962002-06-26 Tom Tromey <tromey@redhat.com>
4397
4398 * command.h (add_setshow_cmd): Declare.
4399 (add_setshow_cmd_full): Declare.
4400 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4401 returns void. Use add_setshow_cmd_full.
4402 (add_setshow_cmd_full): New function.
4403 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4404 (add_setshow_boolean_cmd): Likewise.
4405
099c7589
JT
44062002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4407
4408 * config/vax/tm-vax.h: Protect from multiple inclusion.
4409 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4410 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4411 * config/vax/tm-vaxbsd.h: ...here. New file.
4412 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4413
1d049c5e
JT
44142002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4415
4416 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4417 (BELIEVE_PCC_PROMOTION): Remove.
4418 (AP_REGNUM): Move to...
4419 * config/vax/nm-vax.h: ...here.
4420 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4421 (vax_breakpoint_from_pc): New function.
4422 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4423 and gdbarch_believe_pcc_promotion.
4424
4791e091
JT
44252002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4426
4427 * Makefile.in (vax_tdep_h): Define.
4428 (vax-tdep.o): Use $(vax_tdep_h).
4429 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4430 (vax_dump_tdep): New function.
4431 (_initialize_vax_tdep): Register vax_dump_tdep.
4432 * vax-tdep.h: Include osabi.h.
4433 (struct gdbarch_tdep): New.
4434
da130f98
AC
44352002-06-26 Andrew Cagney <cagney@redhat.com>
4436
4437 * frame.h (deprecated_generic_find_dummy_frame): Rename
4438 generic_find_dummy_frame.
4439 * blockframe.c (generic_find_dummy_frame): Make static.
4440 (deprecated_generic_find_dummy_frame): New function.
4441 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4442 generic_find_dummy_frame with deprecated_find_dummy_frame.
4443 (sh64_nofp_frame_init_saved_regs): Ditto.
4444 (sh_fp_frame_init_saved_regs): Ditto.
4445 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4446 (s390_frame_chain): Ditto.
4447 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4448
6300c360
GS
44492002-06-26 Grace Sainsbury <graces@redhat.com>
4450
4451 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4452 gdbarch vector are at the top.
4453 (NUM_REGS): Remove.
4454 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4455 (FRAME_ARGS_ADDRESS): Remove.
4456 (FRAME_LOCALS_ADDRESS): Remove.
4457 (FRAME_NUM_ARGS): Remove.
4458 (FRAME_ARGS_SKIP): Remove.
4459 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4460 (m68k_gdbarch_init): Add gdbarch initializations for macros
4461 undefined in tm-m68k.h
4462
1c617db8
GS
44632002-06-26 Grace Sainsbury <graces@redhat.com>
4464
4465 * monitor.h: Add the function regname to monitor_ops
4466 structure. This way NUM_REGS does not have to be a constant.
4467 * monitor.c (monitor_fetch_register): Added support for regname
4468 function. The function is called if the array regnames is NULL.
4469 (monitor_store_register): Same.
da130f98
AC
4470 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4471 regnames array.
1c617db8
GS
4472 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4473 cpu32bug_cmds.regname to point to new function.
4474 * abug-rom.c (abug_regname): Same as above.
4475 (init_abug_cmds): Same.
4476 * dbug-rom.c (dbug_regname): Same as above.
4477 (init_dbug_cmds): Same.
4478 * remote-est.c (est_regname): Same.
4479 (init_est_cmds): Same.
4480 * rom68k-rom.c (rom68k_regname): Same.
4481 (init_rom68k_cmds): Same.
4482
ea9365bb
TT
44832002-06-25 Tom Tromey <tromey@redhat.com>
4484
4485 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4486
72cec141
AC
44872002-06-25 Andrew Cagney <cagney@redhat.com>
4488
4489 * infrun.c (stop_registers): Change variable's type to ``struct
4490 regcache'''.
4491 (xmalloc_inferior_status): Delete function.
4492 (free_inferior_status): Delete function.
4493 (normal_stop): Use regcache_cpy.
4494 (struct inferior_status): Change type of fields ``stop_registers''
4495 and ``registers'' to ``struct regcache''.
4496 (write_inferior_status_register): Use regcache_write.
4497 (save_inferior_status): Instead of calling
4498 xmalloc_inferior_status, allocate the inf_status buffer directly.
4499 Use regcache_dup_no_passthrough and regcache_dup to save the
4500 buffers.
4501 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4502 Replace the stop_registers regcache instead of overriding it. Use
4503 regcache_xfree. Instead of calling free_inferior_status, xfree
4504 the buffer directly.
4505 (discard_inferior_status): Use regcache_xfree. Instead of calling
4506 free_inferior_status, xfree the buffer directly.
4507 (build_infrun): Use regcache_xmalloc.
4508 (_initialize_infrun): Delete redundant call to build_infrun.
4509
4510 * Makefile.in (infcmd.o): Add $(regcache_h).
4511
4512 * infcmd.c: Include "regcache.h".
4513 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4514 obtain the address of `stop_registers' register buffer.
4515 (print_return_value): Ditto.
4516
4517 * inferior.h (struct regcache): Add opaque declaration.
4518 (stop_registers): Change variable's declared type to ``struct
4519 regcache''.
4520
defc6f8c
TT
45212002-06-24 Tom Tromey <tromey@redhat.com>
4522
c0e624e7
TT
4523 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4524 * target.c (initialize_targets): Fixed typo in
4525 trust-readonly-sections `show' documentation.
4526
defc6f8c
TT
4527 * main.c: Marked all strings with _().
4528
2b236d82
DH
45292002-06-24 Don Howard <dhoward@redhat.com>
4530
4531 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4532 that means max CORE_ADDR+1.
4533 (lookup_mem_region): Ditto.
4534 (mem_info_command): Ditto.
4535
942dc0e9
GS
45362002-06-24 Grace Sainsbury <graces@redhat.com>
4537
4538 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4539 (REGISTER_BYTES_OK): Remove.
4540 (REGISTER_BYTES): Remove.
4541 (STORE_STRUCT_RETURN): Remove.
4542 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4543 (STORE_RETURN_VALUE): Remove.
4544 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4545 (FRAME_CHAIN): Remove.
4546 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4547 (FRAME_SAVED_PC): Remove.
4548 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4549 (m68k_store_struct_return): Add.
4550 (m68k_deprecated_extract_return_value): Add.
4551 (m68k_deprecated_extract_struct_value_address): Add.
4552 (m68k_store_return_value): Add.
4553 (m68k_frame_chain): Add.
4554 (m68k_frameless_function_invocation): Add.
4555 (m68k_frame_saved_pc): Add.
4556 (m68k_gdbarch_init): added set_gdbarch calls for new
4557 functions and deleted macros.
4558
03c30d4d
TT
45592002-06-23 Tom Tromey <tromey@redhat.com>
4560
4561 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4562 (ALLDEPFILES): Likewise.
4563 (udiheaders): Removed.
4564 (udip2soc.o): Likewise.
4565 (udi2go32.o): Likewise.
4566 (udr.o): Likewise.
4567 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4568
37e71372
AC
45692002-06-22 Andrew Cagney <ac131313@redhat.com>
4570
06a6ac57
AC
4571 * infrun.c (_initialize_infrun): Delete unnecessary call to
4572 build_infrun.
4573
37e71372
AC
4574 * regcache.h: Update comments describing the regcache_cpy family
4575 of functions.
4576 (regcache_save, regcache_restore): Delete declaration.
4577 (regcache_save_no_passthrough): Delete declaration.
4578 (regcache_restore_no_passthrough): Delete declaration.
4579 * regcache.c (regcache_save): Delete function.
4580 (regcache_save_no_passthrough): Delete function.
4581 (regcache_restore): Delete function.
4582 (regcache_restore_no_passthrough): Delete function.
4583
78f6d055
AC
45842002-06-21 Andrew Cagney <ac131313@redhat.com>
4585
4586 * config/m68k/tm-m68k.h: Fix typo.
4587 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4588 (m68k_frame_init_saved_regs): Declare.
4589
78b119cb
JB
45902002-06-21 Jim Blandy <jimb@redhat.com>
4591
4592 Remove some vestiges of Harris 88k support.
4593 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4594 register numbering quirk.
4595 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4596 odd symbols occurring in Harris 88k ELF targets.
4597
0fbb3da7
TT
45982002-06-21 Tom Tromey <tromey@redhat.com>
4599
4600 * gdb_locale.h: New file.
4601 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4602 (defs_h): Added gdb_locale.h.
4603 * configure, config.in: Rebuilt.
4604 * configure.in (PACKAGE): Define.
4605 * defs.h: Include gdb_locale.h.
4606 * main.c (captured_main): Call setlocale, bindtextdomain,
4607 textdomain.
4608
456f8b9d
DB
46092002-06-21 Dave Brolley <brolley@redhat.com>
4610
4611 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4612 * config/frv/frv.mt: New file.
4613 * config/frv/tm-frv.h: New file.
4614 * configure.tgt: Support frv-*-*.
4615 * Makefile.in (frv-tdep.o): New target.
4616 * frv-tdep.c: New file.
4617 * NEWS: Mention frv.
4618
cdd463f9
DB
46192002-06-21 Dave Brolley <brolley@redhat.com>
4620
4621 * MAINTAINERS: Add self to "Write After Approval" list.
4622
5d3ed2e3
GS
46232002-06-21 Grace Sainsbury <graces@redhat.com>
4624
4625 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4626 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4627 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4628 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4629 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4630
4631 * m68k-tdep.c: Include arch-utils.h
4632 (m68k_register_raw_size): Add.
4633 (m68k_register_virtual_size): Add.
4634 (m68k_register_virtual_type): Add.
4635 (m68k_register_name): Add.
4636 (m68k_stack_align): Add.
4637 (m68k_register_byte): Add.
4638 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4639 tm-m68k.h.
4640
7f8e7424
GS
46412002-06-21 Grace Sainsbury <graces@redhat.com>
4642
a2c6a6d5 4643 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4644 m68k_find_saved_regs.
4645 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4646 references to it with frame->saved_regs.
7f8e7424
GS
4647 (m68k_gdbarch_init): Added function calls to initialize the
4648 gdbarch structure.
a2c6a6d5
GS
4649 (m68k_fix_call_dummy): Add.
4650 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4651 (CALL_DUMMY): Remove.
4652 (CALL_DUMMY_LENGTH): Remove.
4653 (CALL_DUMMY_START_OFFSET): Remove.
4654 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4655 (FIX_CALL_DUMMY): Remove.
4656 (PUSH_DUMMY_FRAME): Remove.
4657 (POP_FRAME): Remove.
7f8e7424 4658
f461f5cf
PM
46592002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4660
4661 * parse.c (parse_fprintf): New function used to avoid calls to
4662 fprintf in bison parser generated debug code.
4663 * parser-defs.h: Declaration of new parse_fprintf function.
4664 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4665 Set YYDEBUG to 1 by default.
4666 Set YYFPRINTF as parse_fprintf.
4667
7f0c12ed
ML
46682002-06-21 Michal Ludvig <mludvig@suse.cz>
4669
4670 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4671 encoding anymore.
4672 (pointer_encoding, enum ptr_encoding): New.
4673 (execute_cfa_program): Take care about pointer encoding.
4674 (dwarf2_build_frame_info): Only call parse_frame_info for
4675 .debug_frame and .eh_frame.
4676 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4677 fixed augmentation handling, added relative addressing,
4678 ignore duplicate FDEs. Added comments.
19d833a2 4679 * dwarf2cfi.c: Reindented.
7f0c12ed 4680
87c4a039
EZ
46812002-06-20 Elena Zannoni <ezannoni@redhat.com>
4682
4683 * event-top.c (command_handler): Don't use space_at_cmd_start
4684 unless there is sbrk() on the host. Assign time and space data
4685 to union fields of the appropriate length.
4686
1cf877ad
ML
46872002-06-20 Michal Ludvig <mludvig@suse.cz>
4688
4689 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4690 x86_64_register_name. Return type changed to 'const char *'.
4691 (x86_64_register_name2nr): Rename to x86_64_register_number.
4692 (x86_64_gdbarch_init): Update to reflect the change.
4693 * x86-64-tdep.h: Ditto.
4694 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4695 (supply_fpregset): Ditto.
4696
3fadccb3
AC
46972002-06-19 Andrew Cagney <cagney@redhat.com>
4698
4699 * regcache.h: Update copyright.
4700 (struct regcache, struct gdbarch): Add opaque declarations.
4701 (current_regcache): Declare global variable.
4702 (regcache_read, regcache_write): Add gdbarch parameter.
4703 (regcache_save, regcache_save_no_passthrough)
4704 (regcache_restore, regcache_restore_no_passthrough)
4705 (regcache_dup, regcache_dup_no_passthrough)
4706 (regcache_cpy, regcache_cpy_no_passthrough)
4707 (deprecated_grub_regcache_for_registers)
4708 (deprecated_grub_regcache_for_register_valid)
4709 (regcache_valid_p): Add function declarations.
4710
4711 * regcache.c: Update copyright.
4712 (regcache_descr_handle): New global variable.
4713 (struct regcache_descr): Define.
4714 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4715 (regcache_descr, xfree_regcache_descr): New functions.
4716 (struct regcache): Define.
4717 (regcache_xmalloc, regcache_xfree): New functions.
4718 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4719 (regcache_dup, regcache_dup_no_passthrough): New functions.
4720 (regcache_valid_p, regcache_read_as_address): New functions.
4721 (deprecated_grub_regcache_for_registers): New function.
4722 (deprecated_grub_regcache_for_register_valid): New function.
4723 (current_regcache): New global variable.
4724 (register_buffer): Add regcache parameter. Update calls.
4725 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4726 (read_register_gen, write_register_gen): Update register_buffer
4727 call. Test for legacy_p instead of gdbarch_register_read_p or
4728 gdbarch_register_write_p.
4729 (regcache_collect): Update register_buffer call.
4730 (build_regcache): Rewrite. Use deprecated grub functions.
4731 (regcache_save, regcache_save_no_passthrough): New functions.
4732 (regcache_restore, regcache_restore_no_passthrough): New
4733 functions.
4734 (_initialize_regcache): Create the regcache_data_handle. Swap
4735 current_regcache global variable.
4736
4737 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4738 parameter to regcache_read and regcache_write calls.
4739 (sh4_register_read): Ditto.
4740 (sh64_pseudo_register_read): Ditto.
4741 (sh64_register_read): Ditto.
4742 (sh_pseudo_register_write): Ditto.
4743 (sh4_register_write): Ditto.
4744 (sh64_pseudo_register_write): Ditto.
4745 (sh64_register_write): Ditto.
4746
4747 * defs.h (XCALLOC): Define.
4748
152d9db6
GS
47492002-06-19 Grace Sainsbury <graces@redhat.com>
4750
4751 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4752 * m68k-tdep.c (m68k_gdbarch_init): Added.
4753 (m68k_dump_tdep): Added.
4754
170911c7
DJ
47552002-06-19 Daniel Jacobowitz <drow@mvista.com>
4756
4757 * ada-lang.c (fill_in_ada_prototype): Update comment.
4758
2e4ebe70
DJ
47592002-06-19 Daniel Jacobowitz <drow@mvista.com>
4760
4761 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4762 MIPS_ABI_LAST.
4763 (mips_abi_string, mips_abi_strings): New.
4764 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4765 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4766 tdep->mips_abi_string. Honor mips_abi_string. Default to
4767 O32 if no ABI is found.
4768 (mips_dump_tdep): Use mips_abi_strings.
4769 (mips_abi_update): New function.
4770 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4771 ``set mips abi'' and ``show mips abi''. Check the size of
4772 mips_abi_strings.
4773
16775908
AC
47742002-06-19 Andrew Cagney <cagney@redhat.com>
4775
4776 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4777 constant.
4778
5051bfa4 47792002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4780
5051bfa4
JB
4781 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4782 current frame using only the first stack size adjustment. All
4783 subsequent size adjustments are not considered to be part of
4784 the "static" part of the current frame.
4785 Compute the address of the saved registers relative to the
4786 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4787 in use in this frame.
4788
56468235
DH
47892002-06-18 Don Howard <dhoward@redhat.com>
4790
4791 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4792 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4793 suggesting this solution.
4794
0b624158
AC
47952002-06-18 Andrew Cagney <ac131313@redhat.com>
4796
4797 * config/romp/xm-rtbsd.h: Delete file.
4798 * config/romp/rtbsd.mh: Delete file.
4799
221ea385
KS
48002002-06-18 Keith Seitz <keiths@redhat.com>
4801
4802 * breakpoint.c (condition_command): Post breakpoint_modify
4803 when a condition is added to an existing breakpoint.
4804 (commands_command): Likewise for commands.
4805 (set_ignore_count): Likewise for ignore counts.
4806 If no tty, do not simply return, still need to send event
4807 notification.
4808 (ignore_command): Only print a newline if the command came
4809 from a tty.
4810 Don't call breakpoints_changed, since this is now properly
4811 handled by set_ignore_count.
4812
5402eed1
AC
48132002-06-18 Andrew Cagney <cagney@redhat.com>
4814
4815 * MAINTAINERS: Note that cris-elf target can be compiled with
4816 -Werror.
4817 * cris-tdep.c (cris_register_name): Make return type constant.
4818 (cris_breakpoint_from_pc): Ditto.
4819
cc22880b
ML
48202002-06-18 Michal Ludvig <mludvig@suse.cz>
4821
4822 * frame.h (struct frame_info): Change type of context to
4823 'struct context'.
4824
fa88f677
AC
48252002-06-17 Andrew Cagney <cagney@redhat.com>
4826
4827 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4828 pointer.
4829 * gdbarch.h, gdbarch.c: Regenerate.
4830 * config/mips/tm-mips.h (mips_register_name): Update.
4831 * i386-tdep.h (i386_register_name): Update.
4832 * mips-tdep.c (mips_register_name): Update
4833 * alpha-tdep.c (alpha_register_name): Update.
4834 * arch-utils.c (legacy_register_name): Update.
4835 * arch-utils.h (legacy_register_name): Update.
4836 * avr-tdep.c (avr_register_name): Update.
4837 * ia64-tdep.c (ia64_register_name): Update.
4838 * i386-tdep.c (i386_register_name): Update.
4839 * sparc-tdep.c (sparc32_register_name): Update.
4840 (sparc64_register_name): Update.
4841 (sparclite_register_name): Update.
4842 (sparclet_register_name): Update.
4843 * sh-tdep.c (sh_generic_register_name): Update.
4844 (sh_sh_register_name): Update.
4845 (sh_sh3_register_name): Update.
4846 (sh_sh3e_register_name): Update.
4847 (sh_sh_dsp_register_name): Update.
4848 (sh_sh3_dsp_register_name): Update.
4849 (sh_sh4_register_name): Update.
4850 (sh_sh64_register_name): Update.
4851 * s390-tdep.c (s390_register_name): Update.
4852 * rs6000-tdep.c (rs6000_register_name): Update.
4853 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4854 (ns32k_register_name_32382): Update.
4855 * d10v-tdep.c (d10v_ts2_register_name): Update.
4856 (d10v_ts3_register_name): Update.
4857 * xstormy16-tdep.c (xstormy16_register_name): Update.
4858 * vax-tdep.c (vax_register_name): Update.
4859 * v850-tdep.c (v850_register_name): Update.
4860 * m68hc11-tdep.c (m68hc11_register_name): Update.
4861 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4862 (am33_register_name): Update.
4863
ea1e7ef6
GS
48642002-06-17 Grace Sainsbury <graces@redhat.com>
4865
4866 * m68k-tdep.c: Reindented.
4867
9b02dd1b
AC
48682002-06-17 Andrew Cagney <ac131313@redhat.com>
4869
4870 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4871 list of predefined types.
4872
8758dec1
MK
48732002-06-16 Mark Kettenis <kettenis@gnu.org>
4874
b6197528
MK
4875 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4876 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4877 REGISTER_CONVERT_TO_RAW): Remove defines.
4878 (i386_register_virtual_type, i386_register_convertible,
4879 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4880 Remove prototypes.
4881 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4882 macros mentioned above.
4883
82b47e62
MK
4884 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4885 (i386lynx_saved_pc_after_call): Remove prototype.
4886 * i386ly-tdep.c: Include "i386-tdep.h".
4887 (i386lynx_saved_pc_after_call): Make static. Use
4888 read_memory_nobpt instead of read_memory. Use
4889 read_memory_unsigned_integer instead of read_memory_integer.
4890 (i386lynx_init_abi): New function.
4891 (i386lynx_coff_osabi_sniffer): New function.
4892 (_initialize_i386bsd_tdep): New function.
4893
8758dec1
MK
4894 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4895 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4896 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4897 (i386_fix_call_dummy): Remove prototype.
4898 * i386-tdep.c (i386_call_dummy_words): New variable.
4899 (i386_gdbarch_init): Adjust for removal of the
4900 macros mentioned above.
4901
e9e68a56
AC
49022002-06-15 Andrew Cagney <ac131313@redhat.com>
4903
4904 * command.h (add_setshow_auto_boolean_cmd): Replace
4905 add_set_auto_boolean_cmd.
4906 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4907 add_set_auto_boolean_cmd.
4908 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4909 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4910 mask-address'' command.
4911 (show_mask_address): Add cmd parameter.
4912 * remote.c (add_packet_config_cmd): Update. Change type of
4913 set_func and show_func to cmd_sfunc_ftype.
4914 (_initialize_remote): Update `set remote Z-packet'
4915 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4916 (show_remote_protocol_e_packet_cmd): Ditto.
4917 (show_remote_protocol_E_packet_cmd): Ditto.
4918 (show_remote_protocol_P_packet_cmd): Ditto.
4919 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4920 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4921 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4922 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4923 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4924 (show_remote_protocol_Z_packet_cmd): Ditto.
4925 (show_remote_protocol_binary_download_cmd): Ditto.
4926 (show_remote_cmd): Pass NULL to all of above.
4927
fc08ec52
MK
49282002-06-15 Mark Kettenis <kettenis@gnu.org>
4929
4930 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4931 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4932 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4933 POP_FRAME): Remove defines.
4934 (i386_push_arguments, i386_store_struct_return,
4935 i386_extract_return_value, i386_store_return_value,
4936 i386_extract_struct_value_address, i386_push_dummy_frame,
4937 i386_pop_frame): Renove prototypes.
4938 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4939 macros mentioned above.
4940
e707bbc2
AC
49412002-06-15 Andrew Cagney <ac131313@redhat.com>
4942
4943 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4944 add_set_boolean_cmd.
4945 (add_setshow_cmd): New function.
4946 * command.h (add_setshow_boolean_cmd): Replace
4947 add_set_boolean_cmd.
4948 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4949 and ``set rdiromatzero''.
4950 * maint.c (_initialize_maint_cmds): Update commented out code.
4951 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4952 * target.c (initialize_targets): Update `set
4953 trust-readonly-sections'.
4954 * remote.c (_initialize_remote): Update `set remotebreak'.
4955
42fdc8df
MK
49562002-06-15 Mark Kettenis <kettenis@gnu.org>
4957
93924b6b
MK
4958 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4959 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4960 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4961 fit into multi-arch framework.
4962 (i386_breakpoint_from_pc): New function.
4963 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4964 above.
4965
42fdc8df
MK
4966 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4967 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4968 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4969 (i386_frameless_function_invocation, i386_frame_num_args,
4970 i386_frame_init_saved_regs): Remove prototypes.
4971 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4972 macros mentioned above.
4973
9773a94b
AC
49742002-06-15 Andrew Cagney <ac131313@redhat.com>
4975
4976 * cli/cli-decode.c (set_cmd_cfunc): Update.
4977 (set_cmd_sfunc): Update.
4978 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4979 (set_cmd_sfunc, set_cmd_cfunc): Update.
4980 * cli/cli-decode.h: Update.
4981
6e157172
MK
49822002-06-15 Mark Kettenis <kettenis@gnu.org>
4983
4984 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4985 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4986
7f19b9a2
AC
49872002-06-15 Andrew Cagney <ac131313@redhat.com>
4988
4989 * defs.h (auto_boolean): Declare enum.
4990 * command.h (cmd_auto_boolean): Delete enum.
4991 * mips-tdep.c (mask_address_var): Update.
4992 (mips_mask_address_p): Update.
4993 (show_mask_address): Update.
4994 * remote.c (struct packet_config): Update.
4995 (update_packet_config): Update.
4996 (show_packet_config_cmd): Update.
4997 (packet_ok): Update.
4998 (add_packet_config_cmd): Update.
4999 (_initialize_remote):
5000 * command.h: Update.
5001 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5002 (do_setshow_command): Update.
5003 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5004 * cli/cli-decode.h: Update.
5005
1cf88de5
MK
50062002-06-15 Mark Kettenis <kettenis@gnu.org>
5007
22ba8cf2
MK
5008 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5009 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5010 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5011 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5012 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5013 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5014
762c5349
MK
5015 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5016 list of DJGPP COFF targets.
5017
091198bb
MK
5018 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5019 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5020 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5021 (FP0_REGNUM): Remove define.
5022 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5023 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5024 (i386_register_virtual_size): Remove protoype.
5025 * i386-tdep.c (i386_register_virtual_size): Removed.
5026 (i386_extract_return_value, i386_store_return_value): Use
5027 FP0_REGNUM instead of NUM_FREGS to determine whether the
5028 floating-point registers are available.
5029 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5030 Adjust for removal of macros mentioned above.
5031
50322002-06-15 Mark Kettenis <kettenis@gnu.org>
5033
fcc9bf01
MK
5034 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5035 comments.
5036 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5037 Remove prototypes.
5038 (supply_gregset, fill_gregset): Remove use of register keyword and
5039 remove declaration for regmap. Use I386_NUM_GREGS instead of
5040 NUM_REGS and NUM_FREGS.
5041 (FPREGSET_FSAVE_OFFSET): Remove.
5042 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5043 NUM_FREGS to determine whether the floating-point registers are
5044 available.
5045
65e78234
MK
5046 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5047 gnu_store_registers): Replace usage of NUM_GREGS with
5048 I386_NUM_GREGS.
5049
98df6387
MK
5050 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5051 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5052 usage of NUM_GREGS with I386_NUM_GREGS.
5053
099a9414
MK
5054 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5055
57976e88
MK
5056 * i386bsd-nat.c: Include "i386-tdep.h".
5057 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5058 I386_NUM_GREGS.
5059
b335f4a6
MK
5060 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5061 and associated comment. They no longer make any sense, since we
5062 don't use this file anymore on Linux.
5063
1cf88de5
MK
5064 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5065 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5066 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5067 elements in these arrays.
5068 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5069 MAX_NUM_REGS.
5070
daa66587
MK
50712002-06-15 Mark Kettenis <kettenis@gnu.org>
5072
5073 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5074 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5075
26e9b323
AC
50762002-06-14 Andrew Cagney <cagney@redhat.com>
5077
5078 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5079 EXTRACT_RETURN_VALUE.
5080 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5081 EXTRACT_STRUCT_VALUE_ADDRESS.
5082 * gdbarch.h, gdbarch.c: Regenerate.
5083
5084 * values.c (value_being_returned): Handle
5085 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5086 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5087
5088 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5089 * arm-tdep.c (arm_gdbarch_init): Update.
5090 * avr-tdep.c (avr_gdbarch_init): Update.
5091 * cris-tdep.c (cris_gdbarch_init): Update.
5092 * d10v-tdep.c (d10v_gdbarch_init): Update.
5093 * ia64-tdep.c (ia64_gdbarch_init): Update.
5094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5095 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5096 * s390-tdep.c (s390_gdbarch_init): Update.
5097 * sh-tdep.c (sh_gdbarch_init): Update.
5098 * s390-tdep.c (s390_gdbarch_init): Update.
5099 * sparc-tdep.c (sparc_gdbarch_init): Update.
5100 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5101 * v850-tdep.c (v850_gdbarch_init): Update.
5102 * vax-tdep.c (vax_gdbarch_init): Update.
5103 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5105
5106 * config/arc/tm-arc.h: Update.
5107 * config/d30v/tm-d30v.h: Update.
5108 * config/fr30/tm-fr30.h: Update.
5109 * config/h8300/tm-h8300.h: Update.
5110 * config/h8500/tm-h8500.h: Update.
5111 * config/i386/tm-i386.h: Update.
5112 * config/i386/tm-ptx.h: Update.
5113 * config/i386/tm-symmetry.h: Update.
5114 * config/i960/tm-i960.h: Update.
5115 * config/m32r/tm-m32r.h: Update.
5116 * config/m68k/tm-delta68.h: Update.
5117 * config/m68k/tm-linux.h: Update.
5118 * config/m68k/tm-m68k.h: Update.
5119 * config/m88k/tm-m88k.h: Update.
5120 * config/mcore/tm-mcore.h: Update.
5121 * config/mips/tm-mips.h: Update.
5122 * config/mn10200/tm-mn10200.h: Update.
5123 * config/pa/tm-hppa.h: Update.
5124 * config/pa/tm-hppa64.h: Update.
5125 * config/sparc/tm-sp64.h: Update.
5126 * config/sparc/tm-sparc.h: Update.
5127 * config/sparc/tm-sparclet.h: Update.
5128 * config/z8k/tm-z8k.h: Update.
5129
5179e78f
AC
51302002-06-14 Andrew Cagney <cagney@redhat.com>
5131
5132 * Makefile.in (i386_linux_tdep_h): Define.
5133 (i386_tdep_h, i387_tdep_h): Define.
5134 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5135 $(i386_tdep_h) and $(i387_tdep_h).
5136 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5137
8201327c
MK
51382002-06-14 Mark Kettenis <kettenis@gnu.org>
5139
edf393ac
MK
5140 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5141 Already covered by the default.
5142
896fb97d
MK
5143 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5144 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5145 (i386_gdbarch_init): Initialize long_double_format and long_double
5146 bit.
5147
8201327c
MK
5148 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5149 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5150 Move these to ...
5151 * config/i386/i386sol2.mh: ... here.
5152 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5153 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5154 (SIGCONTEXT_PC_OFFSET): Remove define.
5155 (IN_SIGTRAMP): Remove define.
5156 * i386-sol2-tdep.c: New file.
5157
5158 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5159 * config/i386/tm-i386nw.h: Removed.
5160
5161 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5162 USE_STRUCT_CONVENTION): Remove defines.
5163 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5164 (get_longjmp_target): Remove prototype.
5165 (IN_SIGTRAMP): Remove define.
5166 (i386bsd_in_sigtramp): Remove prototype.
5167 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5168 function. Update comment accordingly
5169 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5170 (FRAME_SAVED_PC): Remove define.
5171 (i386bsd_frame_saved_pc): Remove prototype.
5172 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5173 GET_LONGJMP_TARGET): Remove defines.
5174 (get_longjmp_target): Remove prototype.
5175 (IN_SIGTRAMP): Remove define.
5176 (i386bsd_in_sigtramp): Remove prototype.
5177 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5178 function. Update comment accordingly
5179 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5180 (FRAME_SAVED_PC): Remove define.
5181 (i386bsd_frame_saved_pc): Remove prototype.
5182 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5183 Remove prototype.
5184 (USE_STRUCT_CONVENTION): Remove prototype.
5185 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5186 declaration.
5187 (_initialize_i386bsd_nat): Revise logic to determine some
5188 constants at compile time when compiling a native GDB. Warn if
5189 things don't match up with what we expect.
5190 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5191 Remove variables.
5192 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5193 to use date stored in `struct gdbarch_tdep'.
5194 (i386bsd_sigcontext_offset): Remove varaible.
5195 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5196 stored in `struct gdbarch_tdep'.
5197 (i386bsd_frame_saved_pc): Make static.
5198 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5199 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5200 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5201 i386fbsd4_sc_pc_offset): New variables.
5202 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5203 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5204 functions.
5205 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5206 functions.
5207 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5208 Modify the value of i386fbsd_sigtramp_start and
5209 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5210 i386fbsd_sigtramp_end.
5211 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5212 function.
5213
5214 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5215 define to i386-linux-tdep.h.
5216 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5217 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5218 defines.
5219 (i386_linux_register_name, i386_linux_register_byte,
5220 i386_linux_register_raw_size): Remove prototypes.
5221 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5222 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5223 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5224 TARGET_WRITE_PC): Remove defines.
5225 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5226 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5227 i386_linux_write_pc): Remove prototypes.
5228 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5229 (get_longjmp_target): Remove prototype.
5230 * i386-linux-tdep.h: New file.
5231 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5232 * i386-linux-tdep.c: Include "i386-tdep.h" and
5233 "i386-linux-tdep.h".
5234 (i386_linux_register_name, i386_linux_register_byte,
5235 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5236 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5237 Make static.
5238 (i386_linux_init_abi): New function.
5239 (_initialize_i386_linux_tdep): New function.
5240
5241 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5242 (i386_saved_pc_after_call): Remove prototype.
5243 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5244 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5245 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5246 (i386_register_name, i386_stab_reg_to_regnum,
5247 i386_dwarf_reg_to_regnum): Remove prototypes.
5248 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5249 SIZEOF_SSE_REGS): Remove defines.
5250 (REGISTER_BYTES): Remove define.
5251 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5252 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5253 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5254 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5255 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5256 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5257 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5258 (get_longjmp_target): Remove prototype.
5259 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5260 (sigtramp_saved_pc): Remove define.
5261 (i386v4_sigtramp_saved_pc): Remove prototype.
5262 * config/i386/tm-go32.h (FRAME_CHAIN,
5263 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5264 (i386go32_frame_saved_pc): Remove prototype.
5265 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5266 (get_longjmp_target): Remove prototype.
5267 * i386-tdep.h: Include "osabi.h".
5268 (enum i386_abi): Removed.
5269 (enum struct_return): New enum.
5270 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5271 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5272 sc_pc_offset members.
5273 (i386_gdbarch_register_os_abi): Remove prototype.
5274 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5275 I386_SSE_NUM_REGS): New defines.
5276 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5277 I386_SSE_SIZEOF_REGS): New defines.
5278 (i386_register_name, i386_register_byte, i386_register_raw_size):
5279 New prototypes.
5280 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5281 (i386bsd_sigtramp_saved_pc): New prototype.
5282 * i386-tdep.c: Don't include "elf-bfd.h".
5283 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5284 i386_frame_chain, i386_saved_pc_after_call): Make static.
5285 (i386_frame_saved_pc): Rewrite to call architecture dependent
5286 function to deal with signal handlers. Make static.
5287 (i386go32_frame_saved_pc): Removed.
5288 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5289 Removed.
5290 (i386_get_longjmp_target): New function.
5291 (default_struct_convention, pcc_struct_convention,
5292 reg_struct_convention, valid_conventions, struct_convention): New
5293 variables.
5294 (i386_use_struct_convention): New function.
5295 (i386v4_sigtramp_saved_pc): Renamed to
5296 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5297 (i386_pc_in_sigtramp): New function.
5298 (i386_abi_names): Removed.
5299 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5300 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5301 Removed.
5302 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5303 i386_gdbarch_register_os_abi): Removed.
5304 (struct i386_abi_handler): Removed.
5305 (i386_abi_handler_list): Removed.
5306 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5307 functions.
5308 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5309 i386_nw_init_abi): New functions.
5310 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5311 Use set_gdbarch_xxx() calls instead of relying on macros for a
5312 number of calls.
5313 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5314 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5315 Register the various architecture variants defined in this file.
5316
ad2f7632
DJ
53172002-06-14 Daniel Jacobowitz <drow@mvista.com>
5318
5319 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5320 (struct main_type): Remove arg_types member. Update comments for
5321 struct field.
5322 (TYPE_ARG_TYPES): Remove.
5323 (TYPE_FN_FIELD_ARGS): Update.
5324 (smash_to_method_type): Update prototype.
5325
5326 * c-typeprint.c (cp_type_print_method_args): Take method type
5327 instead of argument list. Use new argument layout. Simplify.
5328 (c_type_print_args): Use new argument layout. Simplify.
5329 (c_type_print_base): Update call to cp_type_print_method_args.
5330 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5331 argument; use die->type instead. Update call to
5332 smash_to_method_type.
5333 (read_structure_scope): Update call to dwarf2_add_member_fn.
5334 * gdbtypes.c (allocate_stub_method): Update comment.
5335 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5336 Use new argument layout.
5337 (check_stub_method): Use new argument layout. Don't count
5338 void as an argument.
5339 (print_arg_types): Update comments. Use new argument layout.
5340 (recursive_dump_type): Don't print arg_types member.
5341 * hpread.c (hpread_read_struct_type): Use new argument layout.
5342 (fixup_class_method_type): Likewise.
5343 (hpread_type_lookup): Likewise.
5344 * stabsread.c (read_type): Update calls to read_args and
5345 smash_to_method_type.
5346 (read_args): Use new argument layout. Simplify.
5347 * valops.c (typecmp): Use new argument layout. Update parameters
5348 and comments. Simplify.
5349 (hand_function_call): Use new argument layout.
5350 (search_struct_method): Update call to typecmp.
5351 (find_overload_match): Use new argument layout.
5352
6da02953
DJ
53532002-06-13 Daniel Jacobowitz <drow@mvista.com>
5354
5355 * NEWS: Mention multithreaded debug support for gdbserver.
5356
519b2366
DJ
53572002-06-13 Daniel Jacobowitz <drow@mvista.com>
5358
5359 * MAINTAINERS: Mention NEWS.
5360
6c0d6680
DJ
53612002-06-13 Daniel Jacobowitz <drow@mvista.com>
5362
5363 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5364 (struct mips_objfile_private, compare_pdr_entries): New.
5365 (non_heuristic_proc_desc): Read the ".pdr" section if it
5366 is present.
5367
6529d2dd
AC
53682002-06-12 Andrew Cagney <ac131313@redhat.com>
5369
5370 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5371 (arm_debug): New static variable.
5372 (_initialize_arm_tdep): Add ``set debug arm'' command.
5373
26216b98
AC
53742002-06-12 Andrew Cagney <ac131313@redhat.com>
5375
5376 * Makefile.in (sim_arm_h): Define.
5377 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5378 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5379 (arm_register_sim_regno): New function, map an internal REGNUM
5380 onto a simulator register number.
5381 (arm_gdbarch_init): Set register_sim_regno.
5382
814b3ba0
AH
53832002-06-09 Aldy Hernandez <aldyh@redhat.com>
5384
5385 * MAINTAINERS: Add self.
5386
475b0867
JB
53872002-06-11 Jim Blandy <jimb@redhat.com>
5388
919d772c
JB
5389 * source.c (source_info): Mention whether the symtab has
5390 information about preprocessor macros.
5391
475b0867
JB
5392 Call the command `info macro', not `show macro'.
5393 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5394 Fix error message.
5395 (_initialize_macrocmd): Register `info_macro_command' in
5396 `infolist', not `showlist'.
5397
9e364162
DJ
53982002-06-11 Daniel Jacobowitz <drow@mvista.com>
5399
5400 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5401 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5402 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5403 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5404 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5405 unconditionally.
5406 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5407 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5408 (_initialize_mips_tdep): Remove dead code.
5409 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5410 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5411 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5412 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5413 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5414 MIPS_LAST_FP_ARG_REGNUM): Remove.
5415
23aa4c72
ML
54162002-06-11 Michal Ludvig <mludvig@suse.cz>
5417
5418 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5419 (unwind_tmp_obstack_free, parse_frame_info)
5420 (update_context, cfi_read_fp, cfi_write_fp)
5421 (cfi_frame_chain, cfi_init_extra_frame_info)
5422 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5423 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5424
70eb15a4
CV
54252002-06-11 Corinna Vinschen <vinschen@redhat.com>
5426
5427 * v850-tdep.c (v850_type_is_scalar): New function.
5428 (v850_use_struct_convention): Match current gcc implementation
5429 as close as possible.
5430 (v850_push_arguments): Fix stack_offset handling. Don't write
5431 struct_addr into register. This is done by v850_store_struct_return.
5432 (v850_extract_return_value): Care for structs.
5433 (v850_store_return_value): Ditto.
5434 (v850_store_struct_return): Actually write address.
5435
482a4d06
ML
54362002-06-11 Michal Ludvig <mludvig@suse.cz>
5437
5438 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5439 without debug information too.
5440
d855c300
AC
54412002-06-10 Andrew Cagney <ac131313@redhat.com>
5442
5443 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5444 Make multi-arch pure.
5445 * gdbarch.h, gdbarch.c: Re-generate.
5446 * arm-tdep.c (arm_print_float_info): Update.
5447 * arch-utils.h (default_print_float_info): Update.
5448 * arch-utils.c (default_print_float_info): Update.
5449 * infcmd.c (float_info): Update call.
5450
dd12a101
AC
54512002-06-10 Andrew Cagney <ac131313@redhat.com>
5452
5453 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5454 the front of the initialize list.
5455
101dcfbe
AC
54562002-06-10 Andrew Cagney <ac131313@redhat.com>
5457
5458 * infrun.c (struct inferior_status): Replace fields
5459 selected_frame_address and selected_level with field
5460 selected_frame_id.
5461 (save_inferior_status): Update. Use get_frame_id.
5462 (struct restore_selected_frame_args): Delete.
5463 (restore_selected_frame): Update. Use frame_find_by_id.
5464 (restore_inferior_status): Update.
5465
5466 * breakpoint.h (struct breakpoint): Change type of
5467 watchpoint_frame to frame_id.
5468 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5469 call to get_current_frame.
5470 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5471 get_current_frame.
5472 (watchpoint_check): Use frame_find_by_id.
5473
5474 * frame.h (record_selected_frame): Delete declaration.
5475 * stack.c (record_selected_frame): Delete function.
5476
5477 * frame.h (struct frame_id): Define.
5478 (get_frame_id): Declare.
5479 (frame_find_by_id): Declare.
5480 * frame.c (frame_find_by_id): New function.
5481 (get_frame_id): New function.
5482
304270b6
AV
54832002-06-10 Andrey Volkov <avolkov@transas.com>
5484
5485 * ser-e7kpc.c: Fix duplicated define and call of
5486 _initialize_ser_e7000pc
5487
2f2cf184
DJ
54882002-06-09 Daniel Jacobowitz <drow@mvista.com>
5489
5490 * signals/signals.c (target_signal_from_host): Fix #ifdef
5491 SIGRTMIN case.
5492 (do_target_signal_to_host): Likewise.
5493
caaa3122
DJ
54942002-06-09 Daniel Jacobowitz <drow@mvista.com>
5495
5496 * mips-tdep.c (mips_find_abi_section): New function.
5497 (mips_gdbarch_init): Call it.
5498
6ac5df3a
MK
54992002-06-09 Mark Kettenis <kettenis@gnu.org>
5500
5501 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5502 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5503 after Andrew's 2002-06-08 gdbarch change.
5504
82ea117a
MK
55052002-06-09 Mark Kettenis <kettenis@gnu.org>
5506
5507 * i386-linux-nat.c (suppy_gregset): Don't supply
5508 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5509 register cache.
5510 (fill_gregset): Don't fetch it under the same circumstances.
5511
3c25f8c7
AC
55122002-06-09 Andrew Cagney <cagney@redhat.com>
5513
5514 * Makefile.in (callback_h): Define.
5515 (remote_sim_h): Update path to remote-sim.h.
5516 (remote-rdp.o): Add $(callback_h).
5517 (remote-sim.o): Use $(callback_h).
5518 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5519 * remote-rdp.c: Include "gdb/callback.h".
5520
1029b7fa
MK
55212002-06-09 Mark Kettenis <kettenis@gnu.org>
5522
5523 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5524 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5525
616675d3
AC
55262002-06-08 Andrew Cagney <ac131313@redhat.com>
5527
a3efda28
AC
5528 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5529 * rdi-share/serpardr.c: Ditto.
5530 * rdi-share/unixcomm.c: Ditto.
5531 * rdi-share/serdrv.c: Ditto.
5532 * rdi-share/hostchan.h: Ditto.
5533 * rdi-share/hostchan.c: Ditto.
5534 * rdi-share/host.h: Ditto.
5535 * rdi-share/devsw.c: Ditto.
5536
c5f10366
AC
5537 * objfiles.h: Change type of obj_private to void pointer.
5538 * pa64solib.c: Update copyright. Don't include "assert.h", use
5539 strcmp instead of STREQ, use LONGEST, do not use PTR
5540 * somsolib.c: Ditto.
5541
616675d3
AC
5542 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5543 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5544 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5545
e4b415d9
AC
55462002-06-08 Andrew Cagney <ac131313@redhat.com>
5547
5548 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5549 (default_get_saved_register): Delete function.
5550 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5551 generic_unwind_get_saved_register.
5552 * gdbarch.h, gdbarch.c: Re-generate.
5553
ca0d0b52
AC
55542002-06-08 Andrew Cagney <ac131313@redhat.com>
5555
5556 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5557 generic_func_frame_chain_valid.
5558 * gdbarch.h, gdbarch.c: Re-generate.
5559 * blockframe.c (generic_func_frame_chain_valid): Only check
5560 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5561 passing FP to PC_IN_CALL_DUMMY.
5562 Fix PR gdb/360.
5563
76860b5f
AC
55642002-06-08 Andrew Cagney <ac131313@redhat.com>
5565
5566 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5567 (register_gdbarch_data): Initialize init_p.
5568 (gdbarch_data): Initialize data pointer using the init function.
5569 (init_gdbarch_data): Delete function.
5570 (gdbarch_update_p): Update.
5571 (initialize_non_multiarch): Update.
5572 (struct gdbarch): Add field initialized_p.
5573 * gdbarch.h, gdbarch.c: Re-generate.
5574
8dda9770
ML
55752002-06-07 Michal Ludvig <mludvig@suse.cz>
5576
5577 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5578 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5579 better do the things actually here.
5580 * x86-64-tdep.c (x86_64_register_name2nr): New.
5581 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5582 (x86_64_gdbarch_init): Respect the above change.
5583 * x86-64-tdep.h (x86_64_register_name2nr)
5584 (x86_64_register_nr2name): Add prototypes.
5585 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5586
3d79a47c
MS
55872002-06-06 Michael Snyder <msnyder@redhat.com>
5588
7bd91a28
MS
5589 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5590 Delete extra braces and re-indent.
5591 (d10v_store_return_value): Char return values
3d79a47c
MS
5592 must be shifted over by one byte in R0.
5593 (d10v_extract_return_value): Delete extra braces, re-indent.
5594
095a4c96
EZ
55952002-06-06 Elena Zannoni <ezannoni@redhat.com>
5596
5597 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5598 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5599 (d10v_integer_to_address): Rewrite.
5600 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5601 the d10v specific functions which take care of converting to the
5602 correct space.
5603
e8a77ca4
EZ
56042002-06-06 Elena Zannoni <ezannoni@redhat.com>
5605
5606 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5607 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5608
4f2e4a4f
AC
56092002-06-02 Andrew Cagney <ac131313@redhat.com>
5610
5611 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5612 includes.
5613 * config/tm-linux.h: Ditto.
5614 * config/alpha/tm-alphalinux.h: Ditto.
5615 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5616 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5617 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5618 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5619 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5620 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5621 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5622 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5623 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5624 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5625 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5626 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5627 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5628 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5629 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5630 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5631 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5632 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5633 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5634 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5635 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5636 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5637 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5638 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5639 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5640 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5641 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5642 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5643 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5644 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5645 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5646 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5647 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5648 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5649 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5650 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5651 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5652
ae2ab2ce
AS
56532002-05-04 Aidan Skinner <aidan@velvet.net>
5654
5655 * ada-exp.tab.c: New file
5656 * ada-exp.y: New file
5657 * ada-lang.c: New file
5658 * ada-lang.h: New file
5659 * ada-lex.c: New file
5660 * ada-lex.l: New file
5661 * ada-tasks.c: New file
5662 * ada-typeprint.c: New file
5663 * ada-valprint.c: New file
5664
0ddd0135
JT
56652002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5666
5667 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5668 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5669
750fbacc
JT
56702002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5671
5672 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5673 insetead of ppc-linux-tdep.o.
5674 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5675 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5676
df94e18a
AC
56772002-06-02 Andrew Cagney <ac131313@redhat.com>
5678
5679 2002-05-07 Christian Groessler <chris@groessler.org>
5680 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5681 bit register contents for little endian hosts.
5682
1a38ab75
AC
56832002-06-01 Andrew Cagney <ac131313@redhat.com>
5684
5685 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5686 any maintainer.
5687
8b1632ac
AC
56882002-06-01 Andrew Cagney <ac131313@redhat.com>
5689
5690 * gdbarch.h: Regenerate.
5691
627054c8
AC
56922002-06-01 Andrew Cagney <ac131313@redhat.com>
5693
5694 * MAINTAINERS: Add everyone to write-after-approval list.
5695
4f460812
AC
56962002-06-01 Andrew Cagney <ac131313@redhat.com>
5697
5698 * stack.c (frame_info): Use frame_register_unwind instead of
5699 saved_regs. Mention when the SP is on the stack or in a register.
5700
5701 * frame.h (frame_register_unwind_ftype): Define. Document.
5702 (struct frame_info): Add field register_unwind and
5703 register_unwind_cache.
5704 (frame_register_unwind): Declare.
5705 (generic_unwind_get_saved_register): Declare.
5706
5707 * frame.c (frame_register_unwind): New function.
5708 (generic_unwind_get_saved_register): New function.
5709
5710 * blockframe.c (generic_call_dummy_register_unwind): New function.
5711 (frame_saved_regs_register_unwind): New function.
5712 (set_unwind_by_pc): New function.
5713 (create_new_frame): New function.
5714 (get_prev_frame): New function.
5715
de888f76
AC
57162002-05-30 Andrew Cagney <ac131313@redhat.com>
5717
5718 * a29k-share/: Delete directory.
5719 * remote-vx29k.c: Delete file.
5720
2f2c3626
JT
57212002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5722
5723 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5724 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5725
9ce5c36a
JT
57262002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5727
5728 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5729 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5730 (sparc64nbsd-nat.o)
5731 (sparcnbsd-nat.o)
5732 (sparcnbsd-tdep.o): New dependency lists.
5733 * NEWS: Note new UltraSPARC NetBSD native configuration.
5734 * configure.host (sparc64-*-netbsd*): New host.
5735 * configure.tgt (sparc-*-netbsdelf*)
5736 (sparc-*-netbsd*): Set gdb_target to nbsd.
5737 (sparc64-*-netbsd*): New target.
5738 * sparc64nbsd-nat.c: New file.
5739 * sparcnbsd-nat.c: New file.
5740 * sparcnbsd-tdep.c: New file.
5741 * sparcnbsd-tdep.h: New file.
5742 * config/sparc/nbsd.mt: New file.
5743 * config/sparc/nbsd64.mh: New file.
5744 * config/sparc/nbsd64.mt: New file.
5745 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5746 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5747 (HOST_IPC): Remove.
5748 * config/sparc/nbsdaout.mt: Remove.
5749 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5750 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5751 (HOST_IPC): Remove.
5752 * config/sparc/nbsdelf.mt: Remove.
5753 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5754 sparc-nat.c compatiblity defines.
5755 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5756 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5757 * config/sparc/tm-nbsd64.h: New file.
5758 * config/sparc/tm-nbsdaout.h: Remove.
5759 * config/sparc/xm-nbsd.h: Remove.
5760
ef3cf062
JT
57612002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5762
5763 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5764 * sparc-tdep.c: Include osabi.h.
5765 (gdbarch_tdep): Add osabi member.
5766 (_initialize_sparc_tdep): Use gdbarch_register.
5767 (sparc_gdbarch_init): Use generic OS ABI framework.
5768 (sparc_dump_tdep): New function.
5769
ee8ff470
KB
57702002-05-30 Kevin Buettner <kevinb@redhat.com>
5771
5772 * corefile.c (do_captured_read_memory_integer): Return non-zero
5773 result.
5774 (safe_read_memory_integer): Copy result of memory read when
5775 status is non-zero. Also, add comments.
5776
7b112f9c
JT
57772002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5778
5779 * Makefile.in (ppc_tdep_h): Define.
5780 (ppc-linux-nat.o)
5781 (ppc-linux-tdep.o)
5782 (rs6000-tdep.o): Use $(ppc_tdep_h).
5783 (ppc-sysv-tdep.o)
5784 (ppcnbsd-nat.o)
5785 (ppcnbsd-tdep.o): New dependency lists.
5786 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5787 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5788 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5789 (ppc_sysv_abi_broken_use_struct_convention)
5790 (ppc_sysv_abi_use_struct_convention)
5791 (ppc_sysv_abi_push_arguments): Move to...
5792 * ppc-sysv-tdep.c: ...here.
5793 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5794 * rs6000-tdep.c (process_note_abi_tag_sections)
5795 (get_elfosabi): Remove.
5796 (rs6000_gdbarch_init): Use generic OS ABI framework.
5797 (rs6000_dump_tdep): New function.
5798 (_initialize_rs6000_tdep): Use gdbarch_register.
5799 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5800 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5801 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5802 of ppc-linux-tdep.o.
5803 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5804 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5805 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5806 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5807 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5808 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5809
480dd42a
JB
58102002-05-29 Jim Blandy <jimb@redhat.com>
5811
5812 * macroscope.c (default_macro_scope): Put `void' in empty argument
5813 list.
5814
4182591f
AC
58152002-05-29 Andrew Cagney <ac131313@redhat.com>
5816
5817 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5818 * arch-utils.c: Include "sim-regno.h".
5819 * gdbarch.sh: Don't include "sim-regno.h".
5820 * gdbarch.h, gdbarch.c: Regenerate.
5821 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5822 here.
5823 * arch-utils.h (legacy_register_sim_regno): To here.
5824 * remote-sim.c (legacy_register_sim_regno): Move function from
5825 here.
5826 * arch-utils.c (legacy_register_sim_regno): To here.
5827
8238d0bf
AC
58282002-05-28 Andrew Cagney <ac131313@redhat.com>
5829
5830 * sim-regno.h: New file.
5831 * Makefile.in (sim_regno_h): Define.
5832 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5833 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5834 (legacy_register_sim_regno): New function.
5835 (one2one_register_sim_regno): New function.
5836 (gdbsim_fetch_register): Rewrite.
5837 (gdbsim_store_register): Only store a register when
5838 REGISTER_SIM_REGNO is valid.
5839 * d10v-tdep.c: Include "sim-regno.h".
5840 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5841 (d10v_ts3_register_sim_regno): Ditto.
5842 * gdbarch.sh: Include "sim-regno.h".
5843 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5844 * gdbarch.h, gdbarch.c: Regenerate.
5845 * arch-utils.h (default_register_sim_regno): Delete declaration.
5846 * arch-utils.c (default_register_sim_regno): Delete function.
5847
485721b1
JT
58482002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5849
5850 * ppcnbsd-nat.c: Rewrite.
5851 * ppcnbsd-tdep.c: New file.
5852 * ppcnbsd-tdep.h: New file.
5853 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5854 solib.o, and solib-svr4.o.
5855 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5856 nbsd-tdep.o, and corelow.o.
5857
697f244d
AC
58582002-05-28 Andrew Cagney <ac131313@redhat.com>
5859
5860 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5861 `tr' and `sed'. Mention that `broken' targets are not expected to
5862 build.
5863
f08caad1 58642002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5865
5866 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5867 Let PC point right after the prologue before looking up symbols.
5868
3139facc
MH
58692002-05-27 Martin M. Hunt <hunt@redhat.com>
5870
5871 * i386-tdep.c (i386_register_virtual_type): Return
5872 builtin_type_vec128i for SSE registers.
5873
5874 * gdbtypes.h (builtin_type_vec128i): Declare.
5875
5876 * gdbtypes.c (build_builtin_type_vec128i): New function.
5877 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5878 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5879 (build_gdbtypes): Initialize new builtin vector types.
5880 (_initialize_gdbtypes): Register new vector types with gdbarch.
5881
6e3ba3b8
JT
58822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5883
5884 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5885 since it has been multi-arch'd.
5886 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5887 Move Alpha and VAX multi-arch news entries to same section
5888 as other multi-arch news.
5889
93d5585d
JT
58902002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5891
5892 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5893 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5894 static. Rename some register numbers to put them in ns32k-tdep
5895 private namespace.
5896 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5897 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5898 functions.
5899 (_initialize_ns32k_tdep): Use gdbarch_register.
5900 * ns32k-tdep.h: New file.
5901 * ns32knbsd-tdep.c: New file.
5902 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5903 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5904 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5905 REGISTER_BYTES, REGISTER_BYTE): Remove.
5906 * config/ns32k/tm-ns32k.h: New file.
5907 * config/ns32k/tm-umax.h: Remove.
5908
efb2c70e
JT
59092002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5910
5911 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5912 ns32k_store_struct_return, ns32k_extract_return_value,
5913 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5914 functions.
5915 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5916 ns32k_saved_pc_after_call.
5917 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5918 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5919 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5920 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5921 ns32k_extract_struct_value_address.
5922
7bcc927b
JT
59232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5924
5925 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5926 ns32k_fix_call_dummy): New.
5927 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5928 ns32k_call_dummy_words.
5929 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5930 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5931 CALL_DUMMY_NARGS): Remove.
5932 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5933
78f9d765
JT
59342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5935
5936 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5937 ns32k_frame_saved_pc, ns32k_frame_args_address,
5938 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5939 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5940 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5941 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5942 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5943 (BREAKPOINT): Remove..
5944 (FRAME_CHAIN): Define as ns32k_frame_chain.
5945 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5946 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5947 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5948 (FRAME_FIND_SAVED_REGS): Remove.
5949 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5950 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5951 (POP_FRAME): Define as ns32k_pop_frame.
5952
f2c762e0
JT
59532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5954
5955 * ns32k-tdep.c (ns32k_register_byte_32082,
5956 ns32k_register_byte_32382, ns32k_register_raw_size,
5957 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5958 functions.
5959 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5960 ns32k_register_byte_32382.
5961 * config/ns32k/tm-umax.h: Update copyright years.
5962 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5963 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5964 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5965 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5966 (ns32k_get_enter_addr): Fix prototype.
5967
af137673
JT
59682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5969
5970 * ns32k-tdep.c: Update copyright years.
5971 (ns32k_register_name_32082): New function.
5972 (ns32k_register_name_32382): Ditto.
5973 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5974 (REGISTER_NAME): Define as ns32k_register_name_32382.
5975 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5976 (REGISTER_NAME): Define as ns32k_register_name_32082.
5977
a8bc7b56
JB
59782002-05-24 Jim Blandy <jimb@redhat.com>
5979
5980 * dwarf2read.c (free_line_header): Use xfree, not free.
5981
83a45910
JT
59822002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5983
5984 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5985 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5986
0db71247
AC
59872002-05-23 Andrew Cagney <ac131313@redhat.com>
5988
5989 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5990
b9e5e4dd
AC
59912002-05-23 Andrew Cagney <ac131313@redhat.com>
5992
5993 From Ross Alexander at NEC Europe:
5994 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5995
de530e84
MS
59962002-05-23 Michael Snyder <msnyder@redhat.com>
5997
5998 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5999 for input, rather than parse_and_eval_address.
6000
b91b96f4
AC
60012002-05-23 Andrew Cagney <ac131313@redhat.com>
6002
6003 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6004 * Makefile.in (sim_d10v_h): Update definition.
6005
8b279e7a
AC
60062002-05-24 Andrew Cagney <cagney@redhat.com>
6007
6008 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6009 change `2002-05-22 Michael Snyder' below.
6010 (d10v_push_arguments): Ditto.
6011 (d10v_extract_return_value): Ditto.
6012
0a3d0425
JB
60132002-05-23 Jim Blandy <jimb@redhat.com>
6014
6015 * macrotab.c (check_for_redefinition): Don't complain if the new
6016 definition is the same as the previous one. Take more arguments
6017 to allow the comparison.
6018 (macro_define_object, macro_define_function): Pass more arguments
6019 to check_for_redefinition.
6020
78eac43e
MS
60212002-05-22 Michael Snyder <msnyder@redhat.com>
6022
6023 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6024 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6025 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6026 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6027 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6028 Add a temp variable to save a call (and a memory read).
6029 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6030 if possible (so that PC_IN_CALL_DUMMY will work).
6031
9bc1edb8
CV
60322002-05-22 Corinna Vinschen <vinschen@redhat.com>
6033
6034 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6035
005ef3d2
ML
60362002-05-22 Michal Ludvig <mludvig@suse.cz>
6037
6038 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6039 fde->cie_ptr.
6040 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6041 (dwarf2_build_frame_info): Add offset to fde->initial_location
6042 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6043 (execute_stack_op): Change type of 'result' from ULONGEST to
6044 CORE_ADDR.
005ef3d2 6045
fcf4f891
JT
60462002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6047
6048 * config/alpha/tm-nbsd.h: Include solib.h.
6049
cfef91e4
JT
60502002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6051
6052 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6053 assumptions about the host's byte order.
6054
9964235a
JT
60552002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6056
6057 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6058 to dependency list.
6059 * alphanbsd-tdep.c: Include solib-svr4.h.
6060 * shnbsd-tdep.c: Ditto.
6061
9eeef8ef
JT
60622002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6063
6064 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6065 nbsd-tdep.h to dependency list.
6066 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6067 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6068 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6069 nbsdaout.mh and nbsdelf.mh consistently.
6070 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6071 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6072 nbsdaout.mt and nbsdelf.mh consistently.
6073 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6074 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6075 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6076 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6077 a.out shared library stuff from here...
6078 * config/nm-nbsdaout.h: ...to here.
6079 * config/tm-nbsd.h: Remove.
6080 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6081 * config/arm/nbsd.mh: Remove.
6082 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6083 nbsd-tdep.o.
6084 * config/arm/nbsdaout.mh: New file.
6085 * config/arm/nbsdelf.mh: New file.
6086 * config/arm/nm-nbsdaout.h: New file.
6087 * config/i386/nbsd.mh: Remove.
6088 * config/i386/nbsd.mt: Remove.
6089 * config/i386/nbsdaout.mh: New file.
6090 * config/i386/nbsdaout.mt: New file.
6091 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6092 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6093 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6094 i386_register_u_addr): Remove.
6095 * config/i386/nm-nbsdaout.h: New file.
6096 * config/i386/nm-nbsdelf.h: Remove.
6097 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6098 (USE_STRUCT_CONVENTION): Remove.
6099 * config/i386/tm-nbsdaout.h: New file.
6100 * config/i386/tm-nbsdelf.h: Remove.
6101 * config/m68k/nbsd.mh: Remove.
6102 * config/m68k/nbsd.mt: Remove.
6103 * config/m68k/nbsdaout.mh: New file.
6104 * config/m68k/nbsdaout.mt: New file.
6105 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6106 * config/m68k/nm-nbsdaout.h: New file.
6107 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6108 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6109 * config/ns32k/nbsd.mh: Remove.
6110 * config/ns32k/nbsd.mt: Remove.
6111 * config/ns32k/nbsdaout.mh: New file.
6112 * config/ns32k/nbsdaout.mt: New file.
6113 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6114 * config/ns32k/nm-nbsdaout.h: New file.
6115 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6116 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6117 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6118 (SVR4_SHARED_LIBS): Remove.
6119 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6120 * config/sparc/nbsd.mh: Remove.
6121 * config/sparc/nbsd.mt: Remove.
6122 * config/sparc/nbsdaout.mh: New file.
6123 * config/sparc/nbsdaout.mt: New file.
6124 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6125 * config/sparc/nbsdelf.mt: New file.
6126 * config/sparc/nm-nbsdaout.h: New file.
6127 * config/sparc/nm-nbsdelf.h: Remove.
6128 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6129 * config/sparc/tm-nbsdaout.h: New file.
6130
257ce470
JT
61312002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6132
6133 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6134 mipsnbsd-tdep.c
6135 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6136
76a6d5fe
JT
61372002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6138
6139 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6140 shnbsd-nat.c.
6141 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6142
45888261
JT
61432002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6144
6145 * NEWS: Note new MIPS NetBSD native configuration.
6146 * configure.host (mips*-*-netbsd*): New host.
6147 * configure.tgt (mips*-*-netbsd*): New target.
6148 * mipsnbsd-nat.c: New file.
6149 * mipsnbsd-tdep.c: New file.
6150 * mipsnbsd-tdep.h: New file.
6151 * config/mips/nbsd.mh: New file.
6152 * config/mips/nbsd.mt: New file.
6153 * config/mips/nm-nbsd.h: New file.
6154 * config/mips/tm-nbsd.h: New file.
6155
70f80edf
JT
61562002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * Makefile.in (SFILES): Add osabi.c.
6159 (COMMON_OBS): Add osabi.o.
6160 (osabi.o): New dependency list.
6161 * osabi.c: New file.
6162 * osabi.h: New file.
6163 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6164
6165 * Makefile.in (alpha_tdep_h): Define and use instead of
6166 alpha-tdep.h.
6167 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6168 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6169 Remove.
6170 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6171 * alpha-tdep.h: Include osabi.h.
6172 (alpha_abi): Remove.
6173 (gdbarch_tdep): Use generic OS ABI framework.
6174 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6175 gdbarch_register_osabi.
6176 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6177 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6178 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6179
6180 * Makefile.in (sh_tdep_h): Add osabi.h.
6181 * sh-tdep.h (sh_osabi): Remove.
6182 (gdbarch_tdep): Use generic OS ABI framework.
6183 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6184 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6185 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6186 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6187
6188 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6189 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6190 gdbarch_register_osabi.
6191 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6192 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6193 (get_elfosabi): Rename to...
6194 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6195 ABI framework support routines.
6196 (arm_gdbarch_init): Use generic OS ABI framework.
6197 (arm_dump_tdep): Likewise.
6198 (_initialize_arm_tdep): Likewise.
6199 * arm-tdep.h: Include osabi.h.
6200 (arm_abi): Remove.
6201 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6202 osabi member.
6203 (arm_gdbarch_register_os_abi): Remove prototype.
6204 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6205 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6206
6207 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6208 * mips-tdep.c: Include osabi.h.
6209 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6210 OS ABI framework.
6211
d194345b
KH
62122002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6213
6214 * h8300-tdep.c: Fix formatting.
6215
70c6b0d1
EZ
62162002-05-20 Elena Zannoni <ezannoni@redhat.com>
6217
6218 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6219 printing vector registers.
6220
165b8e33
AC
62212002-05-19 Andrew Cagney <ac131313@redhat.com>
6222
6223 From Fernando Nasser:
6224 * remote.c (remote_async_open_1): Re-throw the exception when the
6225 connection fails.
6226 (remote_cisco_open): Ditto.
6227 (remote_open_1): Ditto.
6228
36918e70
AC
62292002-05-19 Andrew Cagney <ac131313@redhat.com>
6230
6231 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6232 (remote_start_remote): Add uiout parameter. Pass through to
6233 remote_start_remote_dummy.
6234 (remote_open_1): Use catch_exception instead of catch_errors.
6235 (remote_async_open_1): Ditto.
6236 (remote_cisco_open): Ditto.
6237
ae44c0c4
AC
62382002-05-19 Andrew Cagney <ac131313@redhat.com>
6239
6240 * remote.c (remote_start_remote): Replace PTR with void pointer.
6241 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6242 static.
6243
8efe637d
AC
62442002-05-18 Andrew Cagney <ac131313@redhat.com>
6245
6246 * gdb_indent.sh: Allow the script to be run in the sim directory.
6247
2f1b5984
MK
62482002-05-18 Mark Kettenis <kettenis@gnu.org>
6249
f0f625e2
MK
6250 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6251 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6252
2f1b5984
MK
6253 * corelow.c (core_open): Only call set_gdbarch_from_file if
6254 exec_bfd is NULL.
6255
fc974602
AV
62562002-05-17 Andrey Volkov <avolkov@transas.com>
6257
6258 * h8300-tdep.c: Add support of EXR register
6259 * config/h8300/tm-h8300.h: Ditto.
6260
906709f4
AV
62612002-05-17 Andrey Volkov <avolkov@transas.com>
6262
6263 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6264
6e591d68
AV
62652002-05-17 Andrey Volkov <avolkov@transas.com>
6266
6267 * h8300-tdep.c: Change literal regnums to REGNO.
6268
84f0252a
JB
62692002-05-17 Jim Blandy <jimb@redhat.com>
6270
e0e9281e
JB
6271 * NEWS: Note addition of macro support.
6272
84f0252a
JB
6273 Expand preprocessor macros in C expressions.
6274 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6275 (scan_macro_expansion, scanning_macro_expansion,
6276 finished_macro_expansion): New function declarations.
6277 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6278 variable declarations.
6279 * parser-defs.h (expression_context_pc): New declaration.
6280 * parse.c (expression_context_pc): New variable.
6281 (parse_exp_1): Set expression_context_pc, as well as
6282 expression_context_block.
6283 * c-exp.y (yylex): If we're not already reading the result of a
6284 macro expansion, try to macro-expand the next token. When we're
6285 done scanning a macro expansion, switch back to the mainline text.
6286 Commas and `if's in a macro's expansion don't terminate the input.
6287 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6288 (macro_original_text, macro_expanded_text,
6289 expression_macro_lookup_func, expression_macro_lookup_baton): New
6290 variables.
6291 (scan_macro_expansion, scanning_macro_expansion,
6292 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6293 c_preprocess_and_parse): New functions.
6294 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6295 c_preprocess_and_parse, instead of c_parse.
6296 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6297 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6298
1c509ca8
JR
6299Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6300
6301 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6302 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6303 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6304
2250ee0c
CV
63052002-05-17 Corinna Vinschen <vinschen@redhat.com>
6306
6307 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6308
ab3b8126
JT
63092002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6310
6311 * Makefile.in (sh_tdep_h): Define and use.
6312 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6313 register enum): Move to...
6314 * * sh-tdep.h: ...here.
6315 * sh-tdep.c: Include sh-tdep.h.
6316 * sh3-rom.c: Likewise.
6317 * shnbsd-tdep.c: Likewise.
6318
ed9d4749
MS
63192002-05-16 Michael Snyder <msnyder@redhat.com>
6320
6321 * arm-tdep.c: Spelling fix in comment.
6322
2e276125
JB
63232002-05-16 Jim Blandy <jimb@redhat.com>
6324
6821892e
JB
6325 Add commands for manually expanding macros and showing their
6326 definitions.
6327 * macrocmd.c, macroscope.c, macroscope.h: New files.
6328 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6329 (macroscope_h): New variable.
6330 (HFILES_NO_SRCDIR): Add macroscope.h.
6331 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6332 (macroscope.o, macrocmd.o): New rules.
6333
2e276125
JB
6334 Teach the Dwarf 2 reader to read macro information.
6335 * dwarf2read.c: #include "macrotab.h".
6336 (dwarf_macinfo_buffer): New variable.
6337 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6338 dwarf_macinfo_size.
6339 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6340 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6341 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6342 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6343 dwarf2_macro_spaces_in_definition): New complaints.
6344 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6345 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6346 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6347 the partial symbol table.
6348 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6349 from what's recorded in the partial symbol table.
6350 (read_file_scope): If the compilation unit has a
6351 `DW_AT_macro_info' attribute, read its macro information.
6352 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6353
2f53fe6c
DJ
63542002-05-16 Daniel Jacobowitz <drow@mvista.com>
6355
6356 Fix PR gdb/546
6357 * ser-tcp.c: Don't include <netinet/udp.h>.
6358
2be99286
SC
63592002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6360
6361 * MAINTAINERS: Update my email address.
6362
c9af212b 63632002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6364
6365 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6366 include file of the same name.
6367
bf5f1a52
CV
63682002-05-16 Corinna Vinschen <vinschen@redhat.com>
6369
6370 * configure.tgt: Mark v850 as multi-arched.
6371 * config/v850/tm-v850.h: Remove file.
6372 * config/v850/v850.mt: Eliminate TM_FILE.
6373
435e042a
CV
63742002-05-16 Corinna Vinschen <vinschen@redhat.com>
6375
6376 * v850-tdep.c: Full multi-arch.
6377 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6378 Define GDB_MULTI_ARCH to 2.
6379
9819c6c8
PM
63802002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6381
6382 * p-exp.y (current_type): New static variable.
6383 Carries the type of the expression at the position that is parsed.
6384 (push_current_type, pop_current_type): Two new functions. Used
6385 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6386 (search_field): New static variable. Set to one after parsing a point
6387 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6388 (FIELDNAME): New token. After a point only a token belonging to
6389 current_type type definition is allowed.
6390 (all over token rules): reset and change current_type according
6391 to rules.
6392 (exp '[' rule): insert implicit array index field if
6393 exp is a pascal string type.
6394
3a06899a
CV
63952002-05-16 Corinna Vinschen <vinschen@redhat.com>
6396
6397 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6398 frame info. Use frame_info's saved_regs instead of matching member
6399 in extra_frame_info throughout.
6400 (v850_frame_init_saved_regs): New function.
6401 (v850_init_extra_frame_info): Move most functionality into
6402 v850_frame_init_saved_regs().
6403 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6404 (v850_frame_find_saved_regs): Remove declaration.
6405 (FRAME_FIND_SAVED_REGS): Remove definition.
6406 (v850_frame_init_saved_regs): Add declaration.
6407 (FRAME_INIT_SAVED_REGS): Add definition.
6408
6ed14b0e
CV
64092002-05-16 Corinna Vinschen <vinschen@redhat.com>
6410
6411 * v850-tdep.c: Begin multi-arch'ing v850.
6412 (v850_target_architecture_hook): Remove function.
6413 (v850_gdbarch_init): New function. Add code previously in
6414 v850_target_architecture_hook().
6415 (_initialize_v850_tdep): Don't set target_architecture_hook.
6416 Call register_gdbarch_init() instead.
6417
42725910
DJ
64182002-05-16 Daniel Jacobowitz <drow@mvista.com>
6419
6420 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6421 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6422 (fixup_class_method_type): Likewise.
6423
99d9066e
JB
64242002-05-15 Jim Blandy <jimb@redhat.com>
6425
6426 Add macro structures to GDB's symbol tables. Nobody puts anything
6427 in them yet.
6428 * symtab.h (struct symtab): New member: `macro_table'.
6429 * buildsym.h (pending_macros): New global variable.
6430 * buildsym.c: #include "macrotab.h".
6431 (buildsym_init): Initialize `pending_macros'.
6432 (end_symtab): If we found macro information while reading a CU's
6433 debugging info, do build a symtab structure for it. Make the
6434 symtab point to the macro information, and clear the
6435 `pending_macros' pointer which held it while we were reading the
6436 debug info.
6437 (really_free_pendings): Free any pending macro table.
6438 * objfiles.h (struct objfile): New member: `macro_cache'.
6439 * objfiles.c (allocate_objfile): Set allocate and free functions
6440 for the macro cache's objstack.
6441 (free_objfile): Empty the macro cache's obstack.
6442 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6443 set new allocate and free functions for it.
6444 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6445 free functions for the macro cache's objstack. (Why is this
6446 function building its own objfile?)
6447 * symmisc.c (print_objfile_statistics): Print statistics on the
6448 macro bcache.
6449 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6450
c899585b
RE
64512002-05-15 Richard Earnshaw <rearnsha@arm.com>
6452
6453 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6454 (REGISTER_U_ADDR): Delete definition.
6455 (arm_register_u_addr): Delete declaration.
6456
a6cdd8c5
RE
64572002-05-15 Richard Earnshaw <rearnsha@arm.com>
6458
6459 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6460 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6461
c97dcfc7
AC
64622002-05-14 Andrew Cagney <ac131313@redhat.com>
6463
6464 * regcache.c (register_valid): Revise comments refering to "Not
6465 available" and "unavailable".
6466 * frame.c (frame_register_read): Ditto.
6467 * findvar.c (value_of_register): Ditto.
6468
93021b7d
AC
64692002-05-15 Andrew Cagney <cagney@redhat.com>
6470
6471 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6472 (remote-sim.o): Update dependencies.
6473 (d10v-tdep.o): Specify dependencies.
6474 (sim_d10v_h): Define.
6475
a86bc61c
JB
64762002-05-14 Jim Blandy <jimb@redhat.com>
6477
6478 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6479 * macrotab.c (macro_lookup_inclusion, find_definition,
6480 new_macro_table): Same.
6481
6482 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6483 not `! strcmp ()'. This is a dubious improvement.
6484 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6485
6486 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6487 although it's not necessary, to avoid a warning.
6488
2fdde8f8
DJ
64892002-05-14 Daniel Jacobowitz <drow@mvista.com>
6490
6491 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6492 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6493 TYPE_INSTANCE_FLAGS.
6494 (struct main_type): New.
6495 (struct type): Move most members to struct main_type. Change
6496 cv_type and as_type to new type_chain member. Add instance_flags.
6497 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6498 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6499 (finish_cv_type): Remove prototype.
6500 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6501 Set TYPE_CHAIN.
6502 (alloc_type_instance): New function.
6503 (smash_type): New function.
6504 (make_pointer_type, make_reference_type, make_function_type)
6505 (smash_to_member_type, smash_to_method_type): Call smash_type.
6506 (make_qualified_type): New function.
6507 (make_type_with_address_space): Call make_qualified_type.
6508 (make_cv_type): Likewise.
6509 (finish_cv_type): Remove unnecessary function.
6510 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6511 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6512 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6513 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6514 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6515 * hpread.c (hpread_read_struct_type): Likewise.
6516 * stabsread.c (read_struct_type): Likewise.
6517
843fedf4
EZ
65182002-05-14 Elena Zannoni <ezannoni@redhat.com>
6519
6520 * configure.tgt: Add a catch all sh* target, for cases like
6521 sh[2,3,4]-elf and sh-hms.
6522
05a6c72c
KS
65232002-05-14 Keith Seitz <keiths@redhat.com>
6524
6525 * event-loop.c (create_file_handler): Don't do anything but
6526 update data when we are given a fd which we are already
6527 monitoring.
6528
5d085aaf
ML
65292002-05-14 Michal Ludvig <mludvig@suse.cz>
6530
6531 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6532 (update_context): Use __func__ in warnings.
6533
9db8d71f
DJ
65342002-05-14 Daniel Jacobowitz <drow@mvista.com>
6535
6536 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6537 and tcp_close to net_open and net_close.
6538 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6539 using UDP if requested. Don't try to disable Nagle on UDP
6540 sockets.
6541 * remote.c (remote_serial_open): New function. Warn about UDP.
6542 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6543
5dbc6baa
EZ
65442002-05-13 Elena Zannoni <ezannoni@redhat.com>
6545
6546 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6547
cc3023f7
EZ
65482002-05-13 Elena Zannoni <ezannoni@redhat.com>
6549
6550 * configure.tgt: Remove sh-hms target.
6551 * MAINTAINERS: Don't list sh-hms as a separate target.
6552
ec2bcbe7
JB
65532002-05-13 Jim Blandy <jimb@redhat.com>
6554
6555 Add first preprocessor macro-expansion files.
6556 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6557 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6558 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6559 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6560 (COMMON_OBS): Add macrotab.o, macroexp.o.
6561 (macroexp.o, macrotab.o): New rules.
6562
6d531722
AC
65632002-05-13 Andrew Cagney <ac131313@redhat.com>
6564
6565 * config/m88k/tm-m88k.h: Update copyright.
6566 (m88k_target_write_pc): Declare
6567 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6568 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6569 (SHIFT_INST_REGS): Update definition.
6570 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6571 using old definition of TARGET_WRITE_PC.
6572 * regcache.c (generic_target_write_pc): Delete code handling
6573 NNPC_REGNUM.
6574 * gdbarch.sh (NNPC_REGNUM): Delete.
6575 * gdbarch.h, gdbarch.c: Regenerate.
6576
3e3f2739
RE
65772002-05-13 Richard Earnshaw <rearnsha@arm.com>
6578
6579 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6580 builtin reg number.
6581
0004e5a2
DJ
65822002-05-13 Daniel Jacobowitz <drow@mvista.com>
6583
6584 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6585 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6586 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6587 access macros.
6588 * c-typeprint.c (cp_type_print_method_args): Likewise.
6589 (c_type_print_args): Likewise.
6590 * d10v-tdep.c (d10v_push_arguments): Likewise.
6591 (d10v_extract_return_value): Likewise.
6592 * expprint.c (print_subexp): Likewise.
6593 * gdbtypes.c (lookup_primitive_typename): Likewise.
6594 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6595 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6596 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6597 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6598 (TYPE_VECTOR): Likewise.
6599 * hpread.c (hpread_read_struct_type)
6600 (fix_static_member_physnames, fixup_class_method_type)
6601 (hpread_type_lookup): Likewise.
6602 * mdebugread.c (parse_symbol, parse_type): Likewise.
6603 * p-lang.c (is_pascal_string_type): Likewise.
6604 * valops.c (hand_function_call): Likewise.
6605 * x86-64-tdep.c (classify_argument): Likewise.
6606
6607 * hpread.c (hpread_read_function_type)
6608 (hpread_read_doc_function_type): Call replace_type.
6609 * dstread.c (create_new_type): Delete.
6610 (decode_dst_structure, process_dst_function): Call alloc_type.
6611 Use type access macros.
6612
dff95cc7
MK
66132002-05-12 Mark Kettenis <kettenis@gnu.org>
6614
6615 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6616 the're not supported by the current architecture.
6617 (i387_fill_fxsave): Likewise.
6618
bbcd32ad
FF
66192002-05-12 Fred Fish <fnf@redhat.com>
6620
6621 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6622 sect_index_xxx members to index the first slot in section_offsets
6623 if all of the section_offsets are zero.
6624
89cf4787
MK
66252002-05-12 Mark Kettenis <kettenis@gnu.org>
6626
6627 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6628 checked in with last change.
6629
1f77ffc5
MK
66302002-05-12 Mark Kettenis <kettenis@gnu.org>
6631
6632 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6633 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6634 config.sub.
6635
89b8b4a9
DJ
66362002-05-12 Daniel Jacobowitz <drow@mvista.com>
6637
6638 * Makefile.in: Update dependencies.
6639
14a5e767
AC
66402002-05-11 Andrew Cagney <ac131313@redhat.com>
6641
6642 * language.c (local_hex_string_custom): Simplify. Do not depend
6643 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6644
6645 * memattr.c (mem_info_command): Replace calls to
6646 longest_local_hex_string and longest_local_hex_string_custom.
6647 * buildsym.c (make_blockvector): Ditto.
6648 * solib.c (info_sharedlibrary_command): Ditto.
6649 * tracepoint.c (tracepoints_info): Ditto.
6650 * symtab.c (print_msymbol_info): Ditto.
6651
6652 * language.c (local_hex_string): Delete.
6653 (local_hex_string_custom): Delete.
6654 (longest_local_hex_string): Rename to local_hex_string.
6655 (longest_local_hex_string_custom): Rename to
6656 local_hex_string_custom.
6657 * language.h (local_hex_string): Change parameter type to LONGEST.
6658 (local_hex_string_custom): Ditto.
6659 (longest_local_hex_string): Delete declaration.
6660 (longest_local_hex_string_custom): Ditto.
6661
6662 * solib.c: Update copyright.
6663 * memattr.c: Update copyright.
6664
13d01224
AC
66652002-05-11 Andrew Cagney <ac131313@redhat.com>
6666
6667 * arch-utils.h (legacy_register_to_value): Declare.
6668 (legacy_value_to_register): Declare.
6669 (legacy_convert_register_p): Declare.
6670 * arch-utils.c (legacy_register_to_value): New function.
6671 (legacy_value_to_register): New function.
6672 (legacy_convert_register_p): New function.
6673
6674 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6675 (VALUE_TO_REGISTER): Define.
6676 (CONVERT_REGISTER_P): Define.
6677 * gdbarch.h, gdbarch.c: Regenerate.
6678
6679 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6680 VALUE_TO_REGISTER.
6681 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6682 CONVERT_REGISTER_P.
6683
4a1970e4
DJ
66842005-05-11 Daniel Jacobowitz <drow@mvista.com>
6685 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6686
6687 * Makefile.in: Update dependencies for valops.c.
6688 * valops.c: Include "gdb_assert.h".
6689 (typecmp): Skip THIS parameter to methods.
6690 (find_method_list): Remove static_memfuncp argument,
6691 update callers. Check for stub methods.
6692 (find_value_oload_method_list): Don't set *static_memfuncp.
6693 (find_overload_match): Don't check for stub methods. Assert
6694 that methods are not stubbed. Handle static methods.
6695 (value_find_oload_method_list): Remove static_memfuncp argument.
6696 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6697 to the argument list for static stub methods.
6698 * value.h (value_find_oload_method_list): Update prototype.
6699
b2e75d78
AC
67002002-05-11 Andrew Cagney <ac131313@redhat.com>
6701
6702 * arch-utils.h (generic_register_size): Declare.
6703 (generic_register_raw_size, generic_register_virtual_size): Delete
6704 declarations.
6705 * arch-utils.c (generic_register_raw_size): Delete.
6706 (generic_register_size): New function.
6707 (generic_register_virtual_size): Delete.
6708
6709 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6710 default generic_register_size.
6711 * gdbarch.h, gdbarch.c: Re-generate.
6712
6713 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6714 register_virtual_size.
6715 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6716 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6717
451fbdda
AC
67182002-05-11 Andrew Cagney <ac131313@redhat.com>
6719
6720 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6721 * gdbarch.h, gdbarch.c: Regenerate.
6722 * gnu-v3-abi.c: Update copyright.
6723 (vtable_address_point_offset): Update.
6724 (gnuv3_rtti_type): Update.
6725 (gnuv3_baseclass_offset): Update.
6726 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6727 (init_fetch_link_map_offsets): Update.
6728 * remote.c (get_remote_state): Update.
6729
6d2f5cea
DJ
67302002-05-11 Daniel Jacobowitz <drow@mvista.com>
6731
6732 * TODO: Remove value_headof/value_from_vtable_info comment.
6733 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6734 * values.c (value_headof, value_from_vtable_info): Delete.
6735 * value.h (value_from_vtable_info): Delete prototype.
6736
d2324da4
AC
67372002-05-11 Andrew Cagney <ac131313@redhat.com>
6738
6739 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6740 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6741 $(gdb_regex_h).
6742 (gdb_assert_h): Define.
6743 (gdb_wait_h): Define.
6744 (gdb_regex_h): Define.
6745
5c717440
DJ
67462002-05-11 Daniel Jacobowitz <drow@mvista.com>
6747
6748 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6749 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6750
6c7861b3
JT
67512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6752
6753 * nbsd-tdep.c: Fix comment.
6754
ea5bc2a6
JT
67552002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6756
6757 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6758 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6759 (nbsd-tdep.o): New dependency list.
6760 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6761 nbsd-tdep.h.
6762 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6763 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6764 * nbsd-tdep.c: New file.
6765 * nbsd-tdep.h: New file.
6766 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6767 nbsd-tdep.h.
6768 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6769 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6770 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6771 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6772
b28da865
JT
67732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6774
6775 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6776 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6777 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6778 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6779 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6780 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6781
4b8ff1fa
JT
67822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6783
6784 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6785 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6786 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6787 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6788 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6789 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6790 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6791
dfe6eb1f
JT
67922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6793
6794 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6795 fetch_elfcore_registers to...
6796 * i386nbsd-tdep.c: ...here.
6797 (i386nbsd_use_struct_convention): Rename to...
6798 (i386nbsd_aout_use_struct_convention): ...this.
6799 (i386nbsd_supply_reg): New function.
6800 (i386nbsd_fill_reg): New function.
6801 (fetch_core_registers): Use i386nbsd_supply_reg.
6802 (fetch_elfcore_registers): Likewise.
6803 (_initialize_i386nbsd_tdep): New function.
6804 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6805 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6806 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6807 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6808 (i386nbsd_aout_use_struct_convention): ...this.
6809
20cb8cda
JT
68102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6811
6812 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6813 (store_inferior_registers): Use shnbsd_fill_reg.
6814 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6815 sh_nbsd_supply_register): Collapse into...
6816 (shnbsd_supply_reg): ...this.
6817 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6818 (shnbsd_fill_reg): ...this.
6819 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6820 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6821 (fetch_core_registers): Use shnbsd_supply_reg.
6822 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6823 (sh_nbsd_core_fns): Rename to...
6824 (shnbsd_core_fns): ...this.
6825 (sh_nbsd_elfcore_fns): Rename to...
6826 (shnbsd_elfcore_fns): ...this.
6827 (sh_nbsd_init_abi): Rename to...
6828 (shnbsd_init_abi): ...this.
6829 (_initialize_sh_nbsd_tdep): Rename to...
6830 (_initialize_shnbsd_tdep): ...this.
6831 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6832 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6833 sh_nbsd_fill_register): Remove prototypes.
6834 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6835
e750d25e
JT
68362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6837
6838 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6839 (i387-nat.o): Delete dependency list.
6840 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6841 (x86-64-linux-nat.o): Likewise.
6842 * i387-nat.c: Delete file, moving contents to...
6843 * i387-tdep.c: ...here.
6844 * i387-nat.h: Rename...
6845 * i387-tdep.h: ...to this.
6846 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6847 * i386-linux-nat.c: Likewise.
6848 * i386bsd-nat.c: Likewise.
6849 * i386gnu-nat.c: Likewise.
6850 * i386nbsd-nat.c: Likewise.
6851 * i386v4-nat.c: Likewise.
6852 * x86-64-linux-nat.c: Likewise.
6853 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6854 * config/i386/go32.mh (NATDEPFILES): Likewise.
6855 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6856 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6857 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6858 * config/i386/linux.mh (NATDEPFILES): Likewise.
6859 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6860 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6861 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6862 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6863
1aee598a
JT
68642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6867 (alphanbsd-nat.o): Remove dependency list.
6868 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6869 * alphanbsd-nat.c: Delete. Contents moved to...
6870 * alphanbsd-tdep.c: ...here.
6871 (_initialize_alphanbsd_tdep): Register core functions.
6872 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6873
12bcb0fe
JT
68742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6875
6876 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6877 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6878 (alphanbsd-nat.o): Likewise.
6879 (alphabsd-tdep.o): New dependency list.
6880 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6881 (fill_gregset): Use alphabsd_fill_reg.
6882 (supply_fpregset): Use alphabsd_supply_fpreg.
6883 (fill_fpregset): Use alphabsd_fill_fpreg.
6884 (fetch_inferior_registers): Use struct reg and struct fpreg
6885 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6886 and alphabsd_supply_fpreg.
6887 (store_inferior_registers): Use struct reg and struct fpreg
6888 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6889 and alphabsd_fill_fpreg.
6890 * alphabsd-tdep.c: New file.
6891 * alphabsd-tdep.h: New file.
6892 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6893 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6894 alphabsd_supply_fpreg.
6895 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6896 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6897
361d1df0
EC
68982002-05-11 Eric Christopher <echristo@redhat.com>
6899
6900 * mips-tdep.c (mips_double_register_type): Fix thinko.
6901 (mips_single_register_type): Ditto.
6902 * MAINTAINERS: Add self.
6903
92dd7cee
MK
69042002-05-11 Mark Kettenis <kettenis@gnu.org>
6905
6906 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6907 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6908 right thing on architectures with different endianness and/or
6909 integer sizes.
6910
e27da16d
JT
69112002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6912
6913 From Christian Limpach <chris@Pin.LU>
6914 * configure.in: Change sed expression which comments out
6915 NATDEPFILES to also comment out continuation lines.
6916 * configure: Regenerate.
6917
ddde02bd
EZ
69182002-05-10 Elena Zannoni <ezannoni@redhat.com>
6919
6920 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6921 big patch.
6922
1c922164
EZ
69232002-05-10 Elena Zannoni <ezannoni@redhat.com>
6924
6925 * sh-tdep.c: Include correct file.
6926
283150cd
EZ
69272002-05-10 Elena Zannoni <ezannoni@redhat.com>
6928
6929 New support for sh64-elf (sh5) target.
6930
6931 * configure.tgt: For sh64-elf target, default to sh-elf.
6932
6933 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6934 (struct gdbarch_tdep): Add new fields for new registers and ABI
6935 info.
361d1df0 6936
283150cd
EZ
6937 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6938 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6939 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6940 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6941 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6942 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6943 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6944 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6945 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6946 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6947 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6948 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6949 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6950 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6951 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6952 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6953 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6954 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6955 sign_extend, sh64_nofp_frame_init_saved_regs,
6956 sh64_init_extra_frame_info, sh64_get_saved_register,
6957 sh64_extract_struct_value_address, sh64_pop_frame,
6958 sh64_push_arguments, sh64_extract_return_value,
6959 sh64_store_return_value, sh64_show_media_regs,
6960 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6961 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6962 sh_sh64_register_virtual_type,
6963 sh_sh64_register_convert_to_virtual,
6964 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6965 sh64_register_read, sh64_pseudo_register_write,
6966 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6967 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6968 sh64_do_pseudo_register, sh_compact_do_registers_info,
6969 sh64_do_registers_info, sh_gdbarch_init): New functions.
6970
3117ed25
EZ
69712002-05-10 Elena Zannoni <ezannoni@redhat.com>
6972
6973 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6974
2654e6d4
DJ
69752002-05-10 Daniel Jacobowitz <drow@mvista.com>
6976
6977 * linespec.c (decode_line_1): Check for a double quote after
6978 a filename correctly.
6979
9ab3e532
JB
69802002-05-10 Jim Blandy <jimb@redhat.com>
6981
6982 Properly track the size of the current objfile's .debug_line section.
6983 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6984 (DWARF_LINE_SIZE): New macro.
6985 (dwarf2_build_psymtabs_hard): Record the line section's size in
6986 the partial symbol table.
6987 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6988 symbol table.
6989
126fa72d
PS
69902002-05-10 Petr Sorfa <petrs@caldera.com>
6991
6992 * ia64-tdep.c: Handle breakpoints on L instruction type
6993 in MLX instruction bundle by moving the breakpoint to
6994 the third slot (X instruction type) as L holds only data.
6995
1f077a3e
KB
69962002-05-10 Kevin Buettner <kevinb@redhat.com>
6997
6998 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6999 (process_one_symbol): Complain about discarding local symbols
7000 due to a misplaced N_LBRAC entry.
7001
8120c9d5 70022002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7003
7004 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7005 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7006 decrease the depth we are at, in the case of templates.
361d1df0 7007
67b2c998
DJ
70082002-05-09 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * mips-tdep.c (mips_float_register_type): New function.
7011 (mips_double_register_type): New function.
7012 (mips_print_register): Use them.
7013 (do_fp_register_row): Likewise.
7014
fd326606
DJ
70152002-05-09 Daniel Jacobowitz <drow@mvista.com>
7016
6609d9af 7017 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7018 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7019 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7020
bef35864
MS
70212002-05-09 Michael Snyder <msnyder@redhat.com>
7022
7023 * remote-rdp.c (remote_rdp_can_run): Remove.
7024
c55a3f73
TT
70252002-05-09 Tom Tromey <tromey@redhat.com>
7026
7027 * jv-valprint.c (java_val_print): Handle `char' as a special case
7028 of TYPE_CODE_INT.
7029
b8d5e71d
MS
70302002-05-09 Michael Snyder <msnyder@redhat.com>
7031
7032 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7033 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7034 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7035 str r(0123),[sp,#nn].
361d1df0 7036 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7037 order-independent by placing it in a loop.
7038
e2cd42dd
MS
70392002-05-06 Michael Snyder <msnyder@redhat.com>
7040
7041 * stabsread.c (read_type): Add recognition for new attribute:
7042 "@V;" means that an array type is actually a vector.
7043 This is analogous to the vector flag that's been added to dwarf2.
7044
3ce1502b
MK
70452002-05-09 Mark Kettenis <kettenis@gnu.org>
7046
7047 * i386-tdep.h (i386_abi): New enum.
7048 (struct gdbarch_tdep): Replace os_ident member with abi.
7049 (i386_gdbarch_register_os_abi): New prototype.
7050 * i386-tdep.c (i386_abi_names): New array.
7051 (process_note_abi_tag_sections): Removed.
7052 (process_note_sections): New function.
7053 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7054 (struct i386_abi_handler): New struct.
7055 (i386_abi_handler_list): New variable.
7056 (i386_gdbarch_register_os_abi): New function.
7057 (i386_gdbarch_init): Adapt for the changes given above.
7058
084c156a
DJ
70592002-05-08 Daniel Jacobowitz <drow@mvista.com>
7060
7061 * gregset.h: Say "GNU/Linux".
7062
6599f021
EZ
70632002-05-08 Elena Zannoni <ezannoni@redhat.com>
7064
7065 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7066 (build_gdbtypes): Build builtin_type_v2_float.
7067 (_initialize_gdbtypes): Register new builtin type.
7068
40af4b0c
AC
70692002-05-08 Andrew Cagney <ac131313@redhat.com>
7070
7071 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7072 (clear_gdbarch_swap): New function.
7073 (initialize_non_multiarch): Call.
7074 (gdbarch_update_p): Before calling init(), swap out and clear the
7075 existing architecture.
7076 * gdbarch.c: Regenerate.
7077
4fe84f46
JT
70782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7079
7080 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7081 alphanbsd-tdep.c.
7082
4015edd1
JT
70832002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7084
7085 * sh-nbsd-nat.c: Rename to...
7086 * shnbsd-nat.c: ...this.
7087 * sh-nbsd-tdep.c: Rename to...
7088 * shnbsd-tdep.c: ...this.
7089 * sh-nbsd-tdep.h: Rename to...
7090 * shnbsd-tdep.h: ...this.
7091 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7092 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7093
0e2bd219
RE
70942002-05-08 Richard Earnshaw <rearnsha@arm.com>
7095
7096 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7097 concatenation for command help messages.
7098
13a38d45
JT
70992002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7100
7101 * NEWS: Note new sh*-*-netbsdelf* configuration.
7102 * configure.host: Set gdb_host_cpu to sh for all sh*.
7103 (sh*-*-netbsdelf*): New host.
7104 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7105 (sh*-*-netbsdelf*): New target.
7106 * sh-nbsd-nat.c: New file.
7107 * sh-nbsd-tdep.c: New file.
7108 * sh-nbsd-tdep.h: New file.
7109 * config/sh/nbsd.mh: New file.
7110 * config/sh/nbsd.mt: New file.
7111 * config/sh/nm-nbsd.h: New file.
7112 * config/sh/tm-nbsd.h: New file.
7113
d658f924
JT
71142002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7115
7116 * sh-tdep.c (sh_osabi_names): Declare.
7117 (process_note_abi_tag_sections): New function.
7118 (get_elfosabi): Ditto.
7119 (sh_gdbarch_register_os_abi): Ditto.
7120 (sh_dump_tdep): Ditto.
7121 _initialize_sh_tdep): Use gdbarch_register to register
7122 sh_gdbarch_init and sh_dump_tdep.
7123 * config/sh/tm-sh.h (sh_osabi): Declare.
7124 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7125
848cfffb
AC
71262002-05-07 Andrew Cagney <ac131313@redhat.com>
7127
7128 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7129 (thumb_scan_prologue): Ditto.
7130 (arm_find_callers_reg): Ditto.
7131 (arm_frame_chain): Ditto.
7132 (arm_init_extra_frame_info): Ditto.
7133 (arm_frame_saved_pc): Ditto.
7134 (arm_pop_frame): Ditto.
7135 (arm_push_return_address): New function.
7136 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7137 call_dummy_location, call_dummy_breakpoint_offset_p,
7138 call_dummy_breakpoint_offset, call_dummy_p,
7139 call_dummy_stack_adjust_p, call_dummy_words,
7140 sizeof_call_dummy_words, call_dummy_start_offset,
7141 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7142 call_dummy_address, push_return_address and push_dummy_frame for
7143 generic dummy frames.
7144
e7d717c0
JT
71452002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7146
7147 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7148 size computation for alloca.
7149 (sh_fp_frame_init_saved_regs): Likewise.
7150
7bbcf283
RE
71512002-05-07 Richard Earnshaw <rearnsha@arm.com>
7152
7153 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7154 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7155 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7156 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7157 * remote-rdp.c (remote_rdp_fetch_register): Use
7158 ARM_MAX_REGISTER_RAW_SIZE.
7159 (remote_rdp_store_register): Likewise.
7160
4657573b
ML
71612002-05-07 Michal Ludvig <mludvig@suse.cz>
7162
361d1df0 7163 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7164 added default labels to switch {} statements.
7165 * x86-64-tdep.c: Ditto.
7166 * x86-64-linux-nat.c: Ditto.
7167
010f3b2f
JT
71682002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7169
7170 * solib.h: Protect against multiple inclusion.
7171
debd256d
JB
71722002-05-06 Jim Blandy <jimb@redhat.com>
7173
9ab3e532
JB
7174 Add first preprocessor macro-expansion files.
7175 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7176 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7177 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7178 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7179 (COMMON_OBS): Add macrotab.o, macroexp.o.
7180 (macroexp.o, macrotab.o): New rules.
7181
debd256d
JB
7182 Separate the job of reading the line number info statement program
7183 header (...expialidocious) out into its own function.
7184 * dwarf2read.c (struct line_head, struct filenames, struct
7185 directories): Replace with...
7186 (struct line_header): New structure, containing the full
7187 contents of the statement program header, including the
7188 include directory and file name tables.
7189 (read_file_scope): If we have line number info, instead of just
7190 calling dwarf_decode_lines to do all the work, call
7191 dwarf_decode_line_header first to get a `struct line_header'
7192 containing the data in the statement program header, and then
7193 pass that to dwarf_decode_lines, which will pick up where that
7194 left off. Be sure to clean up the `struct line_header' object.
7195 (dwarf_decode_line_header, free_line_header, add_include_dir,
7196 add_file_name): New functions.
7197 (dwarf_decode_lines): Move all the code to read the statement
7198 program header into dwarf_decode_line_header. Take the line
7199 header it built as the first argument, instead of the offset to
7200 the compilation unit's line number info. Use the new `struct
7201 line_header' type instead of the old structures. No need to do
7202 cleanups here now, since we don't allocate anything.
7203 (dwarf2_statement_list_fits_in_line_number_section,
7204 dwarf2_line_header_too_long): New complaints.
7205
ac3aafc7
EZ
72062002-05-06 Elena Zannoni <ezannoni@redhat.com>
7207
7208 * gdbtypes.c (init_vector_type): New function.
7209 (build_builtin_type_vec128): Simplify the representation of SIMD
7210 registers.
7211 (build_gdbtypes): Initialize new builtin vector types.
7212 (_initialize_gdbtypes): Register new vector types with gdbarch.
7213 (builtin_type_v4_float, builtin_type_v4_int32,
7214 builtin_type_v8_int16, builtin_type_v16_int8,
7215 builtin_type_v2_int32, builtin_type_v4_int16,
7216 builtin_type_v8_int8): New (renamed) SIMD types.
7217
13e49980
MK
72182002-05-06 Mark Kettenis <kettenis@gnu.org>
7219
7220 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7221 (i387_fill_fxsave): Likewise.
7222
997b20b8
AO
72232002-05-05 Alexandre Oliva <aoliva@redhat.com>
7224
7225 * alpha-tdep.c (alpha_extract_return_value): Don't use
7226 non-constant array size in prototype.
7227
535c96ce
AC
72282002-05-04 Andrew Cagney <ac131313@redhat.com>
7229
7230 From Brian Taylor <briant at model dot com>:
7231 * ui-out.c (ui_out_field_core_addr): Use the function
7232 longest_local_hex_string_custom'to format addresses > 32 bits
7233 wide.
7234
7235 * ui-out.c (ui_out_field_core_addr): Update comment.
7236
bedfa57b
AC
72372002-05-04 Andrew Cagney <ac131313@redhat.com>
7238
7239 * stack.c (select_and_print_frame): Make static. Delete the
7240 parameter `level'.
7241 (func_command): Update call.
7242 (select_frame_command): Delete code computing the frame level.
7243 * frame.h (select_and_print_frame): Delete declaration.
7244
f621c63e
AC
72452002-05-04 Andrew Cagney <ac131313@redhat.com>
7246
7247 * sparc-tdep.c (sparc_get_saved_register): Comment why
7248 get_prev_frame call is safe.
7249
0f7d239c
AC
72502002-05-04 Andrew Cagney <ac131313@redhat.com>
7251
7252 * frame.h (select_frame): Delete level parameter.
7253 * stack.c (select_frame): Update. Use frame_relative_level to
7254 obtain the frame's level.
7255 (select_and_print_frame): Update call.
7256 (select_frame_command): Ditto.
7257 (up_silently_base): Ditto.
7258 (down_silently_base): Ditto.
7259 * ocd.c (ocd_start_remote): Ditto.
7260 * remote-rdp.c (remote_rdp_open): Ditto.
7261 * remote-mips.c (mips_initialize): Ditto.
7262 (common_open): Ditto.
7263 * remote-e7000.c (e7000_start_remote): Ditto.
7264 * m3-nat.c (select_thread): Ditto.
7265 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7266 (child_get_current_exception_event): Ditto.
7267 * varobj.c (varobj_create): Ditto.
7268 (varobj_update): Ditto.
7269 (c_value_of_root): Ditto.
7270 * tracepoint.c (finish_tfind_command): Ditto.
7271 * corelow.c (core_open): Ditto.
7272 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7273 * thread.c (info_threads_command): Ditto.
7274 (switch_to_thread): Ditto.
7275 * infrun.c (normal_stop): Ditto.
7276 (restore_selected_frame): Ditto.
7277 (restore_inferior_status): Ditto.
7278 * breakpoint.c (insert_breakpoints): Ditto.
7279 (watchpoint_check): Ditto.
7280 (bpstat_stop_status): Ditto.
7281 (do_enable_breakpoint): Ditto.
7282 * blockframe.c (flush_cached_frames): Ditto.
7283 (reinit_frame_cache): Ditto.
7284
71d6c7b1
AC
72852002-05-04 Andrew Cagney <ac131313@redhat.com>
7286
7287 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7288 maintainer.
7289
cda6c68a
JB
72902002-05-04 Jim Blandy <jimb@redhat.com>
7291
7292 * gdbtypes.c (replace_type): Doc fix.
7293
5c1c87f0
AC
72942002-05-04 Andrew Cagney <ac131313@redhat.com>
7295
7296 * valprint.c (strcat_longest): Delete commented out function.
7297 Update copyright.
7298
cd9bfe15
AC
72992002-05-04 Andrew Cagney <ac131313@redhat.com>
7300
7301 * MAINTAINERS: Mark a29k as deleted.
7302 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7303 Move new configurations to the top.
7304 * configure.tgt: Remove a29k.
7305 * config/a29k/tm-vx29k.h: Delete.
7306 * config/a29k/vx29k.mt: Delete.
7307 * config/a29k/tm-a29k.h: Delete.
7308 * config/a29k/a29k-udi.mt: Delete.
7309 * config/a29k/a29k.mt: Delete.
7310 * a29k-tdep.c: Delete.
7311 * remote-udi.c: Delete.
7312 * remote-mm.c: Delete.
7313 * remote-eb.c: Delete.
7314 * remote-adapt.c: Delete.
7315 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7316 * config/s390/s390x.mt: Ditto.
7317 * config/s390/s390.mt: Ditto.
7318 * config/sparc/sparclynx.mh: Ditto.
7319 * config/sparc/linux.mh: Ditto.
7320 * config/pa/hppaosf.mh: Ditto.
7321 * config/pa/hppabsd.mh: Ditto.
7322 * config/ns32k/nbsd.mt: Ditto.
7323 * config/mips/vr5000.mt: Ditto.
7324 * config/m68k/sun3os4.mh: Ditto.
7325 * config/m68k/nbsd.mt: Ditto.
7326 * config/m68k/m68klynx.mh: Ditto.
7327 * config/m32r/m32r.mt: Ditto.
7328 * config/i386/x86-64linux.mt: Ditto.
7329 * config/i386/nbsdelf.mt: Ditto.
7330 * config/i386/nbsd.mt: Ditto.
7331 * config/i386/i386lynx.mh: Ditto.
7332
bf0c5130
AC
73332002-05-04 Andrew Cagney <ac131313@redhat.com>
7334
7335 * target.c (debug_print_register): New function. Handle oversize
7336 registers.
7337 (debug_to_fetch_registers): Call.
7338 (debug_to_store_registers): Call.
7339
2ae1c2d2
JB
73402002-05-03 Jim Blandy <jimb@redhat.com>
7341
13a393b0
JB
7342 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7343 (read_type): Doc fix.
7344 * gdbtypes.c (replace_type): Doc fix.
7345
2ae1c2d2
JB
7346 * stabsread.c (multiply_defined_struct): New complaint.
7347 (read_struct_type): If the type we were passed isn't empty, or
7348 incomplete, don't read the new struct type into it; complain,
7349 and return the original type unchanged. Take a new `type_code'
7350 argument, which is the type code for the new type.
7351 (read_type): Rather than storing the type's type code here, pass
7352 it as an argument to read_struct_type, and let that take care of
7353 storing it. That way, we don't overwrite the original type code,
7354 so read_struct_type can use it to decide whether we're overwriting
7355 something we shouldn't.
7356 (complain_about_struct_wipeout): New function.
7357
8de9bdc4
AC
73582002-05-03 Andrew Cagney <ac131313@redhat.com>
7359
7360 * gdbarch.sh: Assert that gdbarch is non-NULL.
7361 * gdbarch.c: Regenerate.
7362
f773fdbb
JM
73632002-05-03 Jason Merrill <jason@redhat.com>
7364
7365 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7366 and return NULL.
7367
0e04a514
ML
73682002-05-03 Michal Ludvig <mludvig@suse.cz>
7369
7370 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7371 (x86_64_dwarf2gdb_regno_map_length),
7372 (x86_64_dwarf2_reg_to_regnum): Added.
7373 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7374 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7375 (_initialize_x86_64_tdep): Synced with the change above.
7376 (x86_64_skip_prologue): Reformulated message.
7377
065432a8
PM
73782002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7379
7380 * f-exp.y: Also use new prev_lexptr variable
7381 to improve error reporting. Based on Michael Snyder
7382 2002-04-24 dated patch to c-exp.y.
7383 * jv-exp.y: Likewise.
7384 * m2-exp.y: Likewise.
7385
a3162708
EZ
73862002-05-02 Elena Zannoni <ezannoni@redhat.com>
7387
7388 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7389 we are dealing with vectors.
7390
03620c38
PM
73912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7392
7393 * config/m68k/tm-nbsd.h: Obvious fix,
7394 correct machine name.
7395
6604db2e
PM
73962002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7397
7398 * p-typeprint.c (pascal_type_print_base): Add support
7399 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7400
0906b739
PM
74012002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7402
7403 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7404 for fondamental pascal 'char' type.
7405
e2625b33
PM
74062002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7407
7408 * p-lang.h (is_pascal_string_type): Declaration changed,
7409 new sixth argument of type char ** added.
361d1df0 7410 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7411 changed. Args length_pos, length_size, string_pos, char_size
7412 can now be NULL. New argument arrayname set to the field
7413 name of the char array. Return value set to char array
7414 field index plus one.
361d1df0 7415 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7416 is_pascal_string_type function.
7417
cf17c188
AC
74182002-05-02 Andrew Cagney <cagney@redhat.com>
7419
7420 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7421 <cagney@redhat.com> change.
7422 * gdbarch.c: Regenerate.
7423
52bca491
AC
74242002-05-02 Andrew Cagney <cagney@redhat.com>
7425
7426 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7427 before probing for a new one. Detect errorenous gdbarch_init
7428 functions.
7429 * gdbarch.c: Regenerate.
7430
d5e72505
AC
74312002-05-01 Andrew Cagney <cagney@redhat.com>
7432
7433 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7434 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7435 * config/v850/tm-v850.h: Ditto. Update copyright.
7436
af566d9f
AC
74372002-04-30 Andrew Cagney <ac131313@redhat.com>
7438
7439 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7440 current_gdbarch.
7441
880d85fa
MS
74422002-04-30 Michael Snyder <msnyder@redhat.com>
7443
94c30b78
MS
7444 * arm-tdep.c: Whitespace clean-ups.
7445 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7446 should have been removed as part of 4/24 change.
7447
6f5987a6
KB
74482002-04-30 Kevin Buettner <kevinb@redhat.com>
7449
7450 * rs6000-tdep.c: Added comment describing how fpscr register
7451 numbers were chosen.
7452
1a113c93
MS
74532002-04-30 Michael Snyder <msnyder@redhat.com>
7454
7455 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7456
9a6f53fe
EZ
74572002-04-29 Elena Zannoni <ezannoni@redhat.com>
7458
7459 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7460 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7461 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7462
11ed25ac
KB
74632002-04-29 Kevin Buettner <kevinb@redhat.com>
7464
7465 From Louis Hamilton <hamilton@redhat.com>:
7466 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7467 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7468 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7469 not bfd-private xcoff data, to determine wordsize.
7470 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7471
ae232405
AC
74722002-04-29 Andrew Cagney <ac131313@redhat.com>
7473
7474 GDB 5.2 released from 5.2 branch.
7475
91fd20f7
ML
74762002-04-29 Michal Ludvig <mludvig@suse.cz>
7477
7478 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7479 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7480 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7481
2dc5091b
EZ
74822002-04-29 Elena Zannoni <ezannoni@redhat.com>
7483
7484 * rs6000-tdep.c (rs6000_extract_return_value,
7485 rs6000_store_return_value): Handle returning vectors.
7486 (rs6000_gdbarch_init): Use
7487 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7488 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7489 New function.
7490 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7491 vectors.
7492 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7493 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7494
2b9848d8
PM
74952002-04-24 Pierre Muller <ics.u-strasbg.fr>
7496
7497 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7498 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7499 with fprintf_unfiltered (gdb_stderr,...).
7500
f8d17dc5
PM
75012002-04-24 Pierre Muller <ics.u-strasbg.fr>
7502
7503 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7504 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7505 Replace fprintf (stderr,...
7506 with fprintf_unfiltered (gdb_stderr,....
7507 * remote-es.c: Likewise.
7508 * remote-os9k.c: Likewise.
7509 * remote-st.c: Likewise.
7510
2f2f1ad1
AS
75112002-04-28 Andreas Schwab <schwab@suse.de>
7512
7513 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7514 linux-proc.o and gcore.o.
7515
b6779aa2
AC
75162002-04-26 Michal Ludvig <mludvig@suse.cz>
7517
7518 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7519 code without frame pointers.
7520
7e57f5f4
AC
75212002-04-26 Andrew Cagney <ac131313@redhat.com>
7522
7523 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7524 ON_STACK is needed.
7525
2ceb85d0
BE
75262002-04-26 Ben Elliston <bje@redhat.com>
7527
7528 * target.c (do_xfer_memory): Correct reference to the new option
7529 "trust-readonly-sections".
7530
f5f8a009
EZ
75312002-04-26 Elena Zannoni <ezannoni@redhat.com>
7532
7533 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7534 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7535 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7536 vectors.
7537 (read_array_type): Record the fact that this array type is really a
7538 vector (i.e. are passed in by value).
7539
5868c862
JT
75402002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7543 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7544 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7545 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7546 * alpha-linux-tdep.c: Include frame.h.
7547 (alpha_linux_sigcontext_addr): New function.
7548 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7549 alpha_linux_sigcontext_addr.
7550 * alpha-osf1-tdep.c: Include gdbcore.h.
7551 (alpha_osf1_sigcontext_addr): New function.
7552 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7553 alpha_osf1_sigcontext_addr.
7554 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7555 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7556
bfb01f37
AC
75572002-04-26 Andrew Cagney <ac131313@redhat.com>
7558
361d1df0 7559 * stack.c (selected_frame_level):
bfb01f37
AC
7560 (select_frame): Do not set selected_frame_level.
7561 * frame.h (selected_frame_level): Delete declaration.
7562
15813d3f
AC
75632002-04-26 Andrew Cagney <ac131313@redhat.com>
7564
7565 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7566 convert_from_func_ptr-addr when AIX / PowerOpen.
7567
6096c27a
AC
75682002-04-25 Andrew Cagney <ac131313@redhat.com>
7569
7570 * valops.c (hand_function_call): Call
7571 generic_save_call_dummy_addr.
7572 * frame.h (generic_save_call_dummy_addr): Declare.
7573 * blockframe.c (struct dummy_frame): Add fields call_lo and
7574 call_hi.
7575 (generic_find_dummy_frame): Check for PC in range call_lo to
7576 call_hi instead of entry_point_address.
7577 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7578 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7579 (generic_save_call_dummy_addr): New function.
7580
f510d44e
DM
75812002-04-24 David S. Miller <davem@redhat.com>
7582
7583 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7584 sparc_skip_prologue.
7585 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7586 information to find prologue when possible.
7587 (sparc_prologue_frameless_p): Call examine_prologue directly.
7588 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7589 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7590 second argument.
7591 (SKIP_PROLOGUE): Likewise.
7592
15d72a92
JT
75932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7594
7595 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7596 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7597 indicate that the condition it was testing is always true.
7598 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7599 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7600 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7601
accc6d1f
JT
76022002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7603
7604 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7605 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7606 tdep->jb_pc and tdep->jb_elt_size.
7607 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7608 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7609 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7610 * alpha-nat.c (get_longjmp_target): Remove.
7611 (JB_ELEMENT_SIZE): Ditto.
7612 (JB_PC): Ditto.
7613 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7614 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7615 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7616 to alpha_get_longjmp_target.
7617 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7618 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7619 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7620
1bfdc549
AC
76212002-04-25 Andrew Cagney <ac131313@redhat.com>
7622
7623 * README: Update to GDB 5.2.
7624
1bd316f0
AC
76252002-04-25 Andrew Cagney <ac131313@redhat.com>
7626
7627 * gdbarch.sh (LC_ALL): Set to `c'.
7628
2e5ff58c
TR
76292002-04-25 Theodore A. Roth <troth@verinet.com>
7630
7631 * avr-tdep.c: Ran through gdb_indent.sh.
7632
e33ce519
TR
76332002-04-25 Theodore A. Roth <troth@verinet.com>
7634
7635 * MAINTAINERS: Add myself as AVR maintainer.
7636 * NEWS: Note new target avr.
7637
8818c391
TR
76382002-04-25 Theodore A. Roth <troth@verinet.com>
7639
7640 * Makefile.in: Add support for AVR target.
7641 * configure.tgt: Add support for AVR target.
7642 * avr-tdep.c: New file
7643 * config/avr/avr.mt: New file.
7644
79509c2d
TR
76452002-04-25 Theodore A. Roth <troth@verinet.com>
7646
7647 * MAINTAINERS: Add myself to write-after-approval.
7648
dac8068e
PM
76492002-04-24 Pierre Muller <ics.u-strasbg.fr>
7650
7651 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7652 with fprintf_unfiltered (gdb_stderr,....
7653
25bf3106
PM
76542002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7655
7656 Fix PR gdb/508.
7657 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7658
24467a86
PM
76592002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7660
7661 * p-exp.y: Also use new prev_lexptr variable
7662 to improve error reporting. Based on Michael Snyder
7663 2002-04-24 dated patch to c-exp.y.
7664
95b80706
JT
76652002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7666
7667 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7668 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7669 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7670 to 0.
7671 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7672 and struct value.
7673 (FUNCTION_START_OFFSET): Remove.
7674 (BREAKPOINT): Ditto.
7675
e90cc612
JT
76762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7677
7678 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7679 * NEWS: Ditto.
7680
6c72f9f9
JT
76812002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7682
7683 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7684 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7685 alpha_linux_pc_in_sigtramp.
7686 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7687 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7688 alpha_osf1_pc_in_sigtramp.
7689 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7690 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7691 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7692 alphafbsd_pc_in_sigtramp.
7693 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7694 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7695 alphanbsd_pc_in_sigtramp.
7696 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7697 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7698
5e4f3379
JT
76992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7700
7701 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7702
da8ca43d
JT
77032002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7706 alphanbsd-tdep.c.
7707 (alphanbsd-nat.o): New dependency list.
7708 (alphanbsd-tdep.o): Ditto.
7709 * NEWS: Note new native NetBSD/alpha configuration.
7710 * alphanbsd-nat.c: New file.
7711 * alphanbsd-tdep.c: Ditto.
7712 * configure.host (alpha*-*-netbsd*): New host.
7713 * configure.tgt (alpha*-*-netbsd*): New target.
7714 * config/alpha/nbsd.mh: New file.
7715 * config/alpha/nbsd.mt: Ditto.
7716 * config/alpha/nm-nbsd.h: Ditto.
7717 * config/alpha/tm-nbsd.h: Ditto.
7718
36a6271d
JT
77192002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7722 (alpha-osf1-tdep.o): New dependency list.
7723 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7724 and skip_sigtramp_frame members.
7725 * alpha-linux-tdep.c: Include gdbcore.h.
7726 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7727 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7728 * alpha-osf1-tdep.c: New file.
7729 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7730 alpha-osf1-dep.c.
7731 (alpha_frame_past_sigtramp_frame): New function.
7732 (alpha_dynamic_sigtramp_offset): Ditto.
7733 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7734 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7735 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7736 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7737 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7738 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7739 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7740 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7741 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7742 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7743 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7744 to find_solib_trampoline_target.
7745 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7746 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7747 (SKIP_TRAMPOLINE_CODE): Remove.
7748 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7749 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7750 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7751 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7752 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7753 (PROC_SIGTRAMP_MAGIC): Ditto.
7754 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7755 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7756 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7757 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7758 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7759
2f4bc57b
JT
77602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7761
7762 * NEWS: Note that Alpha targets are now multi-arch.
7763
665132f9
MS
77642002-04-24 Michael Snyder <msnyder@redhat.com>
7765
7766 * parser-defs.h (prev_lexptr): New external variable.
7767 * parse.c (parse_exp_1): Set prev_lexptr to null before
7768 calling the language-specific parser.
7769 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7770 (yyerror): Use prev_lexptr in error reporting.
7771
32872fa7
DJ
77722002-04-24 Daniel Jacobowitz <drow@mvista.com>
7773
7774 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7775 * gregset.h: If FILL_FPXREGSET is defined, provide
7776 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7777 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7778 is defined, call fill_fpxregset.
7779
57e76fac
MS
77802002-04-24 Roland McGrath <roland@frob.com>
7781
7782 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7783 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7784 (supply_gregset, supply_fpregset): New functions.
7785
7786 * gnu-nat.c (gnu_find_memory_regions): New function.
7787 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7788 (gnu_xfer_memory): Add a cast.
7789
f43845b3
MS
77902002-04-24 Michael Snyder <msnyder@redhat.com>
7791
361d1df0 7792 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7793 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7794 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7795 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7796 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7797 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7798
a0abec03
AC
7799Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7800
7801 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7802 NUM_PSEUDO_REGS can be used.
7803
d7bd68ca
AC
78042002-04-24 Andrew Cagney <ac131313@redhat.com>
7805
7806 * arch-utils.h: Update copyright.
7807
7808 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7809 * gdbarch.h, gdbarch.c: Re-generate.
7810
7811 * inferior.h (IN_SIGTRAMP): Delete definition.
7812 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7813 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7814
7815 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7816 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7817 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7818 (find_proc_framesize): Ditto.
7819 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7820 (alpha_init_extra_frame_info): Ditto.
7821 * infrun.c (handle_inferior_event): Ditto.
7822 (handle_inferior_event): Ditto.
7823 (check_sigtramp2): Ditto.
7824 * blockframe.c (create_new_frame): Ditto.
7825 (get_prev_frame): Ditto.
7826 * ppc-linux-tdep.c: Update comments.
7827 * i386-linux-tdep.c: Update comments.
7828 * breakpoint.c (bpstat_what): Update comment.
7829
4867e41e
DM
78302002-04-24 David S. Miller <davem@redhat.com>
7831
21d83aa5
DM
7832 * i960-tdep.c (register_in_window_p): New function.
7833 (i960_find_saved_register): Use it instead of
7834 REGISTER_IN_WINDOW_P.
7835 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7836
4867e41e
DM
7837 * symtab.h (find_stab_function_addr): Kill extern.
7838 * minsyms.c (find_stab_function_addr): Remove from here...
7839 * dbxread.c: ... to here, and mark it static.
7840
69cdf6a2
DM
78412002-04-20 David S. Miller <davem@redhat.com>
7842
7843 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7844 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7845
5a595886
DM
78462002-04-21 David S. Miller <davem@redhat.com>
7847
7848 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7849 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7850 (vx_write_register): Likewise.
7851
1da1a192
JB
78522002-04-23 J. Brobecker <brobecker@gnat.com>
7853
7854 * source.c (is_regular_file): New function.
7855 (openp): Check wether file to open is a regular file
7856 to avoid opening directories.
7857
baa6f10b
JT
78582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7859
7860 * findvar.c (extract_signed_integer): Cast printf argument
7861 to suppress format warning.
7862 (extract_unsigned_integer): Likewise.
7863 * infcmd.c (registers_info): Likewise.
7864 * top.c (get_prompt_1): Likewise.
7865 * valops.c (value_assign): Likewise.
7866 * valprint.c (print_decimal): Likewise.
7867
b2c4da81
L
78682002-04-22 H.J. Lu (hjl@gnu.org)
7869
7870 * c-exp.y (typebase): Support
361d1df0 7871
b2c4da81
L
7872 [long|long long|short] [signed|unsigned] [int|]
7873
7874 and
7875
7876 signed [long|long long|short] int
7877
f267bd6a
JT
78782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7879
7880 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7881 and vax-tdep.h.
7882 * vax-tdep.h: New file.
7883 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7884 Make several routines static.
7885 (vax_get_saved_register): New function.
7886 (vax_gdbarch_init): New function.
7887 (_initialize_vax_tdep): Register vax_gdbarch_init.
7888 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7889 Remove macros now under the control of gdbarch.
7890
da3c6d4a
MS
78912002-04-22 Michael Snyder <msnyder@redhat.com>
7892
11d3b27d
MS
7893 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7894 Some whitespace and coding standards tweaks.
da3c6d4a 7895
a33f7558
JT
78962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7897
7898 * vax-tdep.c: Include regcache.h.
7899 (vax_call_dummy_words): New.
7900 (sizeof_vax_call_dummy_words): New.
7901 (vax_fix_call_dummy): New function.
7902 (vax_saved_pc_after_call): Ditto.
7903 * config/vax/tm-vax.h: Don't include regcache.h.
7904 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7905 (CALL_DUMMY): Remove.
7906 (CALL_DUMMY_WORDS): Define.
7907 (SIZEOF_CALL_DUMMY_WORDS): Define.
7908 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7909
47a73475
MS
79102002-04-18 Michael Snyder <msnyder@redhat.com>
7911
7912 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7913
52efde73
JT
79142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7915
7916 * vax-tdep.c (vax_frame_chain): New function.
7917 (vax_push_dummy_frame): Ditto.
7918 (vax_pop_frame): Ditto.
7919 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7920 (FRAMELESS_FUNCTION_INVOCATION): Use
7921 generic_frameless_function_invocation_not.
7922 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7923 (POP_FRAME): Use vax_pop_frame.
7924
ea74468c
JT
79252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7926
7927 * vax-tdep.c (vax_store_struct_return): New function.
7928 (vax_extract_return_value): Ditto.
7929 (vax_store_return_value): Ditto.
7930 (vax_extract_struct_value_address): Ditto.
7931 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7932 vax_store_struct_return.
7933 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7934 (STORE_RETURN_VALUE): Use vax_store_return_value.
7935 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7936
5516aa92
JT
79372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7938
7939 * vax-tdep.c (vax_frame_saved_pc): New function.
7940 (vax_frame_args_address_correct): Ditto.
7941 (vax_frame_args_address): Ditto.
7942 (vax_frame_locals_address): Ditto.
7943 (vax_frame_num_args): Move code to be in proximity to
7944 other frame-related functions.
7945 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7946 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7947 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7948 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7949 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7950
36af0b35
L
79512002-04-22 H.J. Lu (hjl@gnu.org)
7952
7953 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7954 includedir.
7955
ab62c900
JT
79562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7957
7958 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7959 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7960 (FRAME_INIT_SAVED_REGS): New macro.
7961
7232b100
JT
79622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7963
7964 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7965
b70d2aee
JT
79662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7967
7968 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7969 where needed.
7970 (fetch_osf_core_registers): Likewise.
7971 (supply_gregset): Likewise.
7972
a0e8a2d1 79732002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7974
a0e8a2d1
JB
7975 * symfile.h (get_section_index): Define.
7976 * symfile.c (get_section_index): New function.
7977 * mdebugread.c (SC_IS_SBSS): New macro.
7978 (SC_IS_BSS): Return true for the scBss storage class only, as
7979 the scSBss storage class refers to the .sbss section.
7980 (parse_partial_symbols): Discard the symbols which associated
7981 section does not exist.
7982 Make sure to use the .sbss section index for symbols which
7983 storage class is scBss, rather than using the .bss section index.
7984
51eb8b08
JT
79852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7986
7987 * vax-tdep.c: Update copyright years.
7988 (vax_register_name): New function.
7989 (vax_register_byte): Ditto.
7990 (vax_register_raw_size): Ditto.
7991 (vax_register_virtual_size): Ditto.
7992 (vax_register_virtual_type): Ditto.
7993 * config/vax/tm-vax.h: Update copyright years.
7994 (REGISTER_NAMES): Remove.
7995 (REGISTER_NAME): Define.
7996 (REGISTER_BYTE): Use vax_register_byte.
7997 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7998 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7999 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8000
6cc1c0a8
AC
80012002-04-21 Andrew Cagney <ac131313@redhat.com>
8002
8003 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8004 declaration
8005 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8006
9319a2fe
DM
80072002-04-21 David S. Miller <davem@redhat.com>
8008
8009 * arch-utils.c (generic_prologue_frameless_p): Kill
8010 SKIP_PROLOGUE_FRAMELESS_P code.
8011 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8012 references.
8013 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8014 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8015 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8016 references.
8017 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8018 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8019 (sparc_gdbarch_init): Pass it to
8020 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8021
e9ed6d01
JT
80222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8023
8024 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8025 (alphabsd-nat.o): New dependency list.
8026
36012033
JT
80272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8028
8029 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8030 alphafbsd-tdep.c.
8031 (alpha-linux-tdep.o): New dependency list.
8032 (alphafbsd-tdep.o): Likewise.
8033
3379287a
JT
80342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8035
8036 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8037 to here...
8038 * alpha-tdep.c: ...from here.
8039 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8040
4bcbd6cb
JT
80412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8042
8043 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8044 prototype from here...
8045 * alpha-tdep.h: ...to here.
8046
b31da25e
AC
80472002-04-21 Andrew Cagney <ac131313@redhat.com>
8048
8049 * frame.h (selected_frame_level): Document as deprecated.
8050 (frame_relative_level): Declare.
8051 * stack.c (frame_relative_level): New function.
8052 (selected_frame_level): Document as deprecated.
8053 (select_frame): Do not set the selected_frame_level.
8054
8055 * stack.c (frame_info, record_selected_frame): Update.
8056 (frame_command, current_frame_command): Update.
8057 (up_silently_base, up_command, down_silently_base): Update.
8058 (down_command): Update.
8059 * inflow.c (kill_command): Update.
8060 * tracepoint.c (finish_tfind_command): Update.
8061 * corelow.c (core_open): Update.
8062 * thread.c (info_threads_command): Update.
8063 (do_captured_thread_select): Update.
8064 * infcmd.c (finish_command): Update.
8065 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8066
9c1d6fe5
JT
80672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8068
8069 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8070
ab89facf
AC
80712002-04-21 Andrew Cagney <ac131313@redhat.com>
8072
8073 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8074 type const.
8075
82a4efa1
JT
80762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8077
8078 * alphafbsd-tdep.c: Update copyright years. Include
8079 alpha-tdep.h.
8080 (alphafbsd_use_struct_convention): Make static.
8081 (alphafbsd_init_abi): New function.
8082 (_initialize_alphafbsd_tdep): New function.
8083 * config/alpha/tm-fbsd.h: Update copyright years.
8084 (USE_STRUCT_CONVENTION): Remove.
8085
44dffaac
JT
80862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8087
8088 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8089 an Alpha ABI variant.
8090 (alpha_abi_handler_list): Declare.
8091 (alpha_gdbarch_register_os_abi): New function.
8092 (alpha_gdbarch_init): Give registered ABI variant handlers a
8093 chance to tweak the gdbarch once we have set up defaults.
8094 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8095
65585be4
JT
80962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8097
8098 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8099 to standard_coerce_float_to_double.
8100 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8101
d9b023cc
JT
81022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8103
8104 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8105 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8106 from gdbarch_tdep rather than a constant.
8107 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8108 the default text address for all Alpha Unix ABIs.
8109 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8110 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8111
dc129d82
JT
81122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8113
8114 * alpha-tdep.h: New file. Includes several Alpha target constants
8115 taken from...
8116 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8117 let gdbarch deal with.
8118 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8119 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8120 to dependency list.
8121 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8122 Alpha target register names.
8123 * alphabsd-nat.c: Likewise.
8124 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8125 Alpha target register names. Make serveral routines static.
8126 (alpha_get_saved_register): New function.
8127 (alpha_abi_names): New.
8128 (process_note_abi_tag_sections): New function.
8129 (get_elfosabi): New function.
8130 (alpha_gdbarch_init): New function.
8131 (alpha_dump_tdep): New function.
8132 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8133
d49d1e0a
AC
81342002-04-21 Andrew Cagney <ac131313@redhat.com>
8135
8136 * frame.c (find_saved_register): Delete #ifdef
8137 HAVE_REGISTER_WINDOWS code.
8138 * config/sparc/tm-sparc.h: Update comments.
8139 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8140
92e8c9ed
AC
81412002-04-21 Andrew Cagney <ac131313@redhat.com>
8142
8143 * i960-tdep.c (i960_find_saved_register): New function.
8144 (i960_get_saved_register): New function.
8145 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8146 (i960_get_saved_register): Declare.
8147 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8148
e1925118
DM
81492002-04-20 David S. Miller <davem@redhat.com>
8150
8151 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8152
29673b29
AC
81532002-04-20 Andrew Cagney <ac131313@redhat.com>
8154
8155 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8156 instead of NUM_PSEUDO_REGS.
8157
6c86dcd5
DM
81582002-04-20 David S. Miller <davem@redhat.com>
8159
8160 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8161 GDB_MULTI_ARCH_PARTIAL
8162 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8163 define, let tm-sp64.h do it.
8164
aa40ec90
JT
81652002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8166
8167 * frame.c (find_saved_register): Avoid a NULL pointer
8168 dereference and actually walk the frame list.
8169
0f79675b
AC
81702002-04-20 Andrew Cagney <ac131313@redhat.com>
8171
8172 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8173 sorted in most most-recent-used order. Document.
8174 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8175
f91305dd 81762002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8177
8178 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8179 instead of ->prev.
8180 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8181 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8182 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8183 instead of ->prev.
8184
73d322b1
EZ
81852002-04-19 Elena Zannoni <ezannoni@redhat.com>
8186
8187 Fix PR gdb/471.
8188 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8189 (build_builtin_type_vec128): Ditto.
8190 (append_composite_type_field): Fix calculation of type length in
8191 union case.
8192
ccd9a834
EZ
81932002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8194
8195 * config/djgpp/README: Update.
8196
8197 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8198 compiler warnings.
8199
a57f9e49
JT
82002002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8201
8202 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8203 (alpha_setup_arbitrary_frame): ...to this.
8204 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8205 for alpha_setup_arbitrary_frame.
8206
f4f9705a
AC
82072002-04-18 Andrew Cagney <cagney@redhat.com>
8208
8209 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8210 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8211
f4f9705a
AC
8212 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8213 * target.h (memory_breakpoint_from_pc): Update declaration.
8214 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8215
8216 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8217 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8218 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8219 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8220 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8221 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8222 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8223 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8224 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8225 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8226 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8227 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8228
8229 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8230 const pointer.
8231 * monitor.c (monitor_insert_breakpoint): Ditto.
8232 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8233
8234 * config/mcore/tm-mcore.h: Update copyright.
8235 * mem-break.c: Ditto.
8236 * xstormy16-tdep.c: Ditto.
8237
29f319b8
PM
82382002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8239
8240 * p-exp.y: Add precedence rule for '^' token.
8241 This removes the shift/reduce conflicts.
8242 Remove the comment concerning these shift/reduce conflicts.
8243
ebeac11a
EZ
82442002-04-18 Elena Zannoni <ezannoni@redhat.com>
8245
8246 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8247 (registers_powerpc_nofp): New register set for processors
8248 without floating point unit.
8249
27c31547
DM
82502002-04-18 David S. Miller <davem@redhat.com>
8251
8252 * MAINTAINERS: Add myself to write-after-approval.
8253
47a73475
MS
82542002-04-17 Michael Snyder <msnyder@redhat.com>
8255
8256 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8257
953836b2
AC
82582002-04-17 Andrew Cagney <ac131313@redhat.com>
8259
8260 * rs6000-tdep.c (frame_initial_stack_address): Use
8261 frame_register_read to read the alloca_reg.
8262
8b0d4340
AC
82632002-04-17 Andrew Cagney <ac131313@redhat.com>
8264
8265 * frame.c (find_saved_register): Find saved registers in the next
8266 not prev frame.
8267 Fix PR gdb/365.
8268
d8864532
AC
82692002-04-17 Andrew Cagney <ac131313@redhat.com>
8270
8271 * gdbarch.sh (LANG): Set to ``c''.
8272
36cc83a3 82732002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8274
36cc83a3 8275 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8276
2f4150cc 82772002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8278
8279 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8280 Update copyright.
8281
628703c6 8282 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8283 Also fix PR gdb/391.
361d1df0 8284
56157b4a
AC
82852002-04-14 Andrew Cagney <ac131313@redhat.com>
8286
8287 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8288 * aclocal.m4, configure: Re-generate.
8289 Fix PR gdb/391.
361d1df0 8290
6d1e3329
EZ
82912002-04-14 Elena Zannoni <ezannoni@redhat.com>
8292
8293 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8294 instead of tm_print_insn.
8295
cb06fa07
EZ
82962002-04-14 Elena Zannoni <ezannoni@redhat.com>
8297
8298 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8299
f208ba17
AC
83002002-04-14 Andrew Cagney <ac131313@redhat.com>
8301
8302 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8303 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8304 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8305
20f01a46
DH
83062002-04-12 Don Howard <dhoward@redhat.com>
8307
8308 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8309 max_user_call_depth.
8310 (init_cmd_lists): Initialize the new value;
8311 * cli/cli-script.c (execute_user_command): Limit the call depth of
8312 user defined commands. This avoids a core-dump when user commands
8313 are infinitly recursive.
8314
a88376a3
KB
83152002-04-12 Kevin Buettner <kevinb@redhat.com>
8316
8317 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8318 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8319 from tdep struct instead of DEFAULT_LR_SAVE.
8320 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8321 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8322 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8323
f2172603
MS
83242002-04-12 Michael Snyder <msnyder@redhat.com>
8325
694f61fb 8326 * Remote.c: Spelling fix.
20fe79c8
MS
8327 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8328 If no symbol found for "sbrk", try "_sbrk".
8329 (make_output_phdrs): Use bfd_section_name.
8330 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8331 * eval.c: Indentation fix-ups.
169a7369
MS
8332 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8333 in case it gets applied to an address that is already
8334 in the instruction space.
de74f71f
MS
8335 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8336 * symfile.c: Fix indentation, long lines.
f2172603
MS
8337 * source.c: White space fix-up.
8338
cda5a58a
AC
83392002-04-12 Andrew Cagney <cagney@redhat.com>
8340
8341 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8342 * frame.c (frame_register_read): New function. Return non-zero on
8343 success.
8344 (read_relative_register_raw_bytes_for_frame): Delete.
8345 (read_relative_register_raw_bytes): Delete.
8346 * frame.h (frame_register_read): Declare.
8347 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8348 * sh-tdep.c: Ditto.
8349 * infcmd.c (do_registers_info): Ditto.
8350 * hppa-tdep.c: Ditto.
8351 * rs6000-tdep.c: Ditto.
8352 * h8500-tdep.c: Ditto.
8353 * mips-tdep.c: Ditto.
8354 * h8300-tdep.c: Ditto.
8355 * z8k-tdep.c: Ditto.
8356
2ea5f656
KB
83572002-04-12 Kevin Buettner <kevinb@redhat.com>
8358
8359 From Jimi X <jimix@watson.ibm.com>:
8360 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8361 64-bit SysV ABI.
8362
27b15785
KB
83632002-04-12 Kevin Buettner <kevinb@redhat.com>
8364
8365 From Jimi X <jimix@watson.ibm.com>:
8366 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8367 bfd info.
8368
5d57ee30
KB
83692002-04-12 Kevin Buettner <kevinb@redhat.com>
8370
8371 From Jimi X <jimix@watson.ibm.com>:
8372 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8373 register sets for these processor variants.
8374
bc1e36ca
DJ
83752002-04-11 Daniel Jacobowitz <drow@mvista.com>
8376
bc1e36ca
DJ
8377 * regformats/reg-ppc.dat: Support FPSCR.
8378
e3f36dbd
KB
83792002-04-11 Kevin Buettner <kevinb@redhat.com>
8380
8381 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8382 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8383 Add fpscr as an invalid/unfetchable register.
8384 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8385 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8386 (fill_fpregset): Add support for register fpscr.
8387 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8388 (fill_gregset): Account for the fact that register ``mq'' might
8389 not exist.
8390 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8391 (registers_power): Add fpscr to register set at slot 71.
8392 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8393 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8394
943c9c25
MS
83952002-04-11 Michael Snyder <msnyder@redhat.com>
8396
8397 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8398 * configure: Regenerate.
8399 * config.in: Regenerate.
8400 * acconfig.h: Add define for _SYSCALL32.
8401 * core-sol2.c: Remove #define _SYSCALL32.
8402 * solib-legacy.c: Remove #define _SYSCALL32.
8403
d8c0a2e7
AC
84042002-04-10 Andrew Cagney <ac131313@redhat.com>
8405
8406 * stack.c (select_frame): Cleanup internal error message, do not
8407 use %p.
8408
7cc19214
AC
84092002-04-10 Andrew Cagney <ac131313@redhat.com>
8410
8411 * stack.c (select_frame): Check that selected_frame and the
8412 specified level are as expected.
8413 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8414 Update copyright.
8415 * frame.h (struct frame_info): Add field `level'. Update
8416 copyright.
8417 Work-in-progress PR gdb/464.
8418
67a2b77e
AC
84192002-04-10 Andrew Cagney <ac131313@redhat.com>
8420
8421 * maint.c (maint_print_section_info): Rename print_section_info.
8422 (print_bfd_section_info, print_objfile_section_info): Update.
8423 * inferior.h (struct gdbarch): Add opaque declaration.
8424 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8425 * gdbarch.h: Regenerate.
8426
8cfda98c
ML
84272002-04-10 Michal Ludvig <mludvig@suse.cz>
8428
8429 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8430 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8431 (kernel_u_size): Added.
8432 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8433 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8434
ca439ad2 84352002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8436
ca439ad2
JI
8437 * valarith.c (find_size_for_pointer_math): New function, either returns
8438 the size for a pointer's target, returns 1 for void *, or errors for
8439 incomplete types.
8440 (value_add, value_sub): use find_size_for_pointer_math.
8441
2f2893d9
DJ
84422002-04-09 Daniel Jacobowitz <drow@mvista.com>
8443
8444 * linux-low.c (linux_look_up_symbols): New hook.
8445 (linux_target_ops): Add linux_look_up_symbols.
8446 * remote-utils.c (decode_address): New function.
8447 (look_up_one_symbol): New function.
8448 * server.c (handle_query): Call target look_up_symbols hook.
8449 * server.h (look_up_one_symbol): Add prototype.
8450 * target.h (struct target_ops): Add look_up_symbols hook.
8451
96cb11df
AC
84522002-04-09 Andrew Cagney <ac131313@redhat.com>
8453
8454 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8455 override FP_REGNUM with frame->fp. Update copyright.
8456 * parse.c (num_std_regs, std_regs): Delete.
8457 (target_map_name_to_register): Do not search std_regs. Update
8458 function description.
8459 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8460 declarations. Update copyright.
8461 Fix PR gdb/251.
361d1df0 8462
97658e92
DJ
84632002-04-09 Daniel Jacobowitz <drow@mvista.com>
8464
8465 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8466 after the last symbol in a block.
8467
6044e3eb
PM
84682002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8469
8470 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8471 is non zero as a found symbol.
8472
0406ec40
AC
84732002-04-08 Andrew Cagney <ac131313@redhat.com>
8474
8475 * findvar.c: Include "builtin-regs.h".
8476 (value_of_register): Call value_of_builtin_reg when applicable.
8477 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8478 (target_map_name_to_register): Call
8479 builtin_reg_map_name_to_regnum.
8480 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8481 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8482 (builtin_regs_h): Define.
8483 (builtin-regs.o): New target.
8484 (findvar.o): Add $(builtin_regs_h).
8485 * builtin-regs.c, builtin-regs.h: New files.
8486 * std-regs.c: New file.
8487 Partial fix for PR gdb/251.
8488
56a6dfb9
KB
84892002-04-08 Kevin Buettner <kevinb@redhat.com>
8490
8491 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8492 it's no longer required.
8493
3a808432
AC
84942002-04-08 Andrew Cagney <ac131313@redhat.com>
8495
8496 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8497
7c40d541
KB
84982002-04-08 Kevin Buettner <kevinb@redhat.com>
8499
8500 From Jimi X <jimix@watson.ibm.com>:
8501 * rs6000-tdep.c (rs6000_software_single_step): Use
8502 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8503 and size. Use target_insert_breakpoint() and
8504 target_remove_breakpoint() to insert and remove breakpoints
8505 instead of explicit memory reads and writes.
8506
cc9836a8
KB
85072002-04-08 Kevin Buettner <kevinb@redhat.com>
8508
8509 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8510 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8511 ELF_OBJECT_FORMAT ifdef.
8512
7495d1dc
KB
85132002-04-08 Kevin Buettner <kevinb@redhat.com>
8514
8515 From Jimi X <jimix@watson.ibm.com>:
8516 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8517
4288e836
KB
85182002-04-08 Kevin Buettner <kevinb@redhat.com>
8519
8520 From Jimi X <jimix@watson.ibm.com>:
8521 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8522 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8523
a4e4e501
MK
85242002-04-07 Mark Kettenis <kettenis@gnu.org>
8525
8526 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8527 s/asprintf/xasprintf/.
8528 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8529
006defba
AC
85302002-04-07 Andrew Cagney <ac131313@redhat.com>
8531
8532 I believe Jeff Law denies responsability for this one:
8533 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8534 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8535 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8536 Work-around for PR gdb/366.
8537
7aa83cac
EZ
85382002-04-07 Elena Zannoni <ezannoni@redhat.com>
8539
8540 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8541 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8542 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8543
cf1fcca1
EZ
85442002-04-07 Elena Zannoni <ezannoni@redhat.com>
8545
8546 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8547 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8548 information.
8549
3f289e6f
AC
85502002-04-07 Andrew Cagney <ac131313@redhat.com>
8551
8552 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8553 maintainer.
8554
129188f6
AC
85552002-04-07 Andrew Cagney <ac131313@redhat.com>
8556
8557 * README (Reporting Bugs in GDB): Document the bug web page as the
8558 prefered way of submitting bugs.
8559 Fix PR gdb/402.
8560
1200cd6e
AC
85612002-04-06 Andrew Cagney <ac131313@redhat.com>
8562
8563 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8564 -1. Update comment.
8565 * gdbarch.h, gdbarch.c: Re-generate.
8566
2853c33c
AS
85672002-04-07 Andreas Schwab <schwab@suse.de>
8568
8569 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8570 buffer to regcache_collect.
8571
c2169756
AC
85722002-04-06 Andrew Cagney <ac131313@redhat.com>
8573
8574 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8575 * gdbarch.c, gdbarch.h: Re-generate.
8576
25f1b008
AC
85772002-04-06 Andrew Cagney <ac131313@redhat.com>
8578
8579 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8580 declaration. Fix -Werror.
8581
59263426
DJ
85822002-04-05 Daniel Jacobowitz <drow@mvista.com>
8583
8584 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8585 * gdbarch.c: Regenerate.
8586
f5db4da3
MS
85872002-04-05 Michael Snyder <msnyder@redhat.com>
8588
80f8a6eb
MS
8589 * breakpoint.c (clear_command): Rewrite middle section to
8590 combine two loops with identical control conditions.
8591 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8592 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8593
ad3dcc5c
L
85942002-04-05 H.J. Lu (hjl@gnu.org)
8595
8596 * solib-svr4.c (bkpt_names): Add "__start".
8597
f32e7a74
AC
85982002-04-04 Andrew Cagney <ac131313@redhat.com>
8599
8600 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8601 as test for 64 bit target.
8602
8227c0ff
AC
86032002-04-05 Andrew Cagney <ac131313@redhat.com>
8604
8605 * h8500-tdep.c (h8500_write_fp): Delete function.
8606 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8607 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8608 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8610 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8611 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8612 (s390_write_fp):
8613 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8614 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8615 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8616 (d10v_write_fp): Delete function.
8617 * inferior.h (write_fp, generic_target_write_fp): Delete
8618 declarations.
8619 * regcache.c (generic_target_write_fp): Delete function.
8620 (write_fp): Delete function.
8621 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8622 * gdbarch.h, gdbarch.c: Regenerate.
8623 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8624 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8625 (sparc64_write_fp): Delete declaration.
8626 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8627 (h8500_write_fp): Delete declaration.
8628
2757dd86
AC
86292002-04-04 Andrew Cagney <ac131313@redhat.com>
8630
8631 * sparc-tdep.c (sparc64_write_fp): Delete.
8632 (sparc_push_dummy_frame): Replace write_fp call with code to store
8633 the FP directly.
8634 (sparc_gdbarch_init): Do not initialize write_fp.
8635
c69255e1
KB
86362002-04-05 Kevin Buettner <kevinb@redhat.com>
8637
8638 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8639 clause.
8640
ae767bfb
JB
86412002-03-29 Jim Blandy <jimb@redhat.com>
8642
8643 * stack.c (get_selected_block): Add new argument `addr_in_block',
8644 used to return the exact code address we used to select the block,
8645 not just the block.
8646 * blockframe.c (get_frame_block, get_current_block): Same.
8647 * frame.h (get_frame_block, get_current_block,
8648 get_selected_block): Update declarations.
8649 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8650 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8651
84d2ac95
MS
86522002-04-05 Michael Snyder <msnyder@redhat.com>
8653
8654 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8655 warning message.
8656
596aa3bf
JB
86572002-04-05 J. Brobecker <brobecker@gnat.com>
8658
8659 * utils.c (xfullpath): New function.
8660 * defs.h (xfullpath): Add declaration.
8661 * source.c (openp): Use xfullpath in place of gdb_realpath to
8662 avoid resolving the basename part of filenames when the
8663 associated file is a symbolic link. This fixes a potential
8664 inconsistency between the filenames known to GDB and the
8665 filenames it prints in the annotations.
8666 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8667 to be able to match a filename with either the real filename, or
8668 the name of any symbolic link to this file.
8669 (lookup_partial_symtab): Ditto.
8670
c02f5703
MS
86712002-04-04 Michael Snyder <msnyder@redhat.com>
8672
8673 * breakpoint.c: Add support for hardware breakpoints in overlays.
8674 (overlay_events_enabled): New state variable.
8675 (insert_breakpoints): Use overlay_events_enabled to decide
8676 whether to attempt to set a breakpoint at the overlay load addr.
8677 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8678 (remove_breakpoint): Use overlay_events_enabled to decide
8679 whether breakpoints need to be removed from overlay load addr.
8680 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8681 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8682 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8683 disable_overlay_breakpoints): Update overlay_events_enabled.
8684
5fb290d7
DJ
86852002-04-04 Daniel Jacobowitz <drow@mvista.com>
8686
8687 * dwarf2read.c (struct function_range): New.
8688 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8689 (check_cu_functions): New.
8690 (read_file_scope): Initialize global function lists.
8691 Call dwarf_decode_line after processing children.
8692 (read_func_scope): Add to global function list.
8693 (dwarf_decode_lines): Call check_cu_functions everywhere
8694 record_line is called. Call record_line with a linenumber
8695 of 0 to mark sequence ends.
8696
7b3fabf0
ML
86972002-04-04 Michal Ludvig <mludvig@suse.cz>
8698
361d1df0 8699 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8700 change sync with glibc.
8701
bce58c09
JB
87022002-04-03 Jim Blandy <jimb@redhat.com>
8703
8704 * configure.in: Call AC_C_INLINE.
8705 * configure: Regenerated.
361d1df0 8706
2fccf04a
DJ
87072002-04-01 Daniel Jacobowitz <drow@mvista.com>
8708
8709 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8710 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8711
2d1bfe2e
MK
87122002-03-31 Mark Kettenis <kettenis@gnu.org>
8713
a5941fbf
MK
8714 * NEWS: Mention gcore support on FreeBSD/i386.
8715
a90cd31d
MK
8716 * fbsd-proc.c: New file.
8717 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8718 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8719
2d1bfe2e
MK
8720 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8721 while statement.
8722
9eb6e5a1
JB
87232002-03-29 Jim Blandy <jimb@redhat.com>
8724
8725 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8726 unescaped newlines in string literals, but newer ones don't. So
8727 escape them.
8728
f02df580
MS
87292002-03-26 Michael Snyder <msnyder@redhat.com>
8730 Andrew Cagney <cagney@redhat.com>
8731
361d1df0 8732 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8733 restore file to memory.
8734 * cli/cli-dump.h: New file.
8735 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8736 * NEWS: Mention new commands.
f02df580 8737
109f874e
MS
87382002-03-28 Michael Snyder <msnyder@redhat.com>
8739
8740 * symfile.c (symbol_file_add): Move test for null symbols to later.
8741
520f6ade
AC
87422002-03-27 Andrew Cagney <ac131313@redhat.com>
8743
8744 From veksler at il.ibm.com:
8745 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8746 the xstrduped original path.
8747 Fix PR gdb/417.
8748
d4654627
MS
87492002-03-27 Michael Snyder <msnyder@redhat.com>
8750
8751 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8752 * infcmd.c (_initialize_infcmd): Ditto.
8753 * language.c (_initialize_language): Ditto.
8754 * symfile.c (_initialize_symfile): Ditto.
8755 * top.c (_init_main): Ditto.
8756 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8757
6be8bc0c
EZ
87582002-03-27 Elena Zannoni <ezannoni@redhat.com>
8759
8760 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8761 vector registers handling.
8762 (skip_prologue): Handle new AltiVec instructions. Fill in new
8763 fields of frame data.
8764 (frame_get_saved_regs): Fill in information for AltiVec registers.
8765
12af6855
JB
87662002-03-27 Jim Blandy <jimb@redhat.com>
8767
8768 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8769 a function; leave this macro here to invoke that function.
8770 (symbol_init_mangled_name): Declaration for that function.
8771 * symtab.c (symbol_init_mangled_name): New function.
8772
dc672865
AC
87732002-03-27 Andrew Cagney <ac131313@redhat.com>
8774
8775 * valarith.c: Replace strerror with safe_strerror.
8776 * tracepoint.c: Ditto.
8777 * lin-lwp.c: Ditto.
8778 * go32-nat.c: Ditto.
8779 * inflow.c: Ditto.
8780 * gnu-nat.c: Ditto.
8781
d96429cd
AS
87822002-03-27 Andreas Schwab <schwab@suse.de>
8783
8784 * event-top.c (command_line_handler): Remove useless if.
8785
7e336ba1
AJ
87862002-03-27 Andreas Jaeger <aj@suse.de>
8787
8788 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8789 comment.
8790
de220d0f
ML
87912002-03-27 Michal Ludvig <mludvig@suse.cz>
8792
8793 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8794 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8795 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8796 (x86_64_linux_dr_get_status, supply_gregset),
8797 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8798 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8799 (x86_64_register_info_table): Add.
8800 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8801 (x86_64_register_raw_size, x86_64_register_virtual_type),
8802 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8803 general x86_64_register_info_table.
8804 (i386_gdbarch_init): gdbarch_register_bytes is now set
8805 dynamicaly during initialization.
8806 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8807 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8808
0e98d0a7
DJ
88092002-03-27 Daniel Jacobowitz <drow@mvista.com>
8810
8811 * gdbserver/server.c (main): Call target_signal_to_host_p
8812 and target_signal_to_host on signals received from the remote.
8813 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8814 target_signal_from_host on signals sent to the remote.
8815 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8816 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8817
3130066b
DJ
88182002-03-27 Daniel Jacobowitz <drow@mvista.com>
8819
8820 * signals/signals.c: Include "server.h" in gdbserver build.
8821 (target_signal_from_name): Don't use STREQ.
8822 (_initialize_signals): Likewise. Don't include function in
8823 gdbserver build.
8824
9aedf4f4
DJ
88252002-03-27 Daniel Jacobowitz <drow@mvista.com>
8826
8827 * signals.c: Moved to...
8828 * signals/signals.c: Here.
7e336ba1 8829 * Makefile (signals.o): Update.
9aedf4f4 8830
3fa41cdb
JL
88312002-03-26 Jeff Law (law@redhat.com)
8832
8833 * somread.c (som_symtab_read): Remove some commented out code and
8834 updated related comments. Do not set the minimal symbol table to
8835 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8836 in a dynamic executable.
8837 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8838 where we are unable to find the minimal symbol for the given
8839 PC value.
8840
ee677e8d
MS
88412002-03-25 Jeff Law (law@redhat.com)
8842
8843 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8844
e76e1718
ML
88452002-03-25 Michal Ludvig <mludvig@suse.cz>
8846
8847 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8848
18a642a1
AC
88492002-03-23 Andrew Cagney <ac131313@redhat.com>
8850
8851 * command.h: Update copyright.
8852 (struct cmd_list_element): Replace definition with opaque
8853 declaration.
8854 (enum cmd_types): Document that it will eventually be moved to
8855 cli/cli-decode.h
8856 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8857 (MALLOCED_REPLACEMENT): Delete macro.
8858 * Makefile.in (cli_decode_h): Add $(command_h).
8859 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8860 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8861 * completer.c: Include "cli/cli-decode.h".
8862 * maint.c: Include "cli/cli-decode.h".
8863 * cli/cli-decode.h: Include "command.h".
8864 (enum command_class): Delete.
8865 (enum cmd_types): Comment out.
8866 (enum cmd_auto_boolean): Delete.
8867 (enum var_types): Delete.
8868
b2875cc0
AC
88692002-03-23 Andrew Cagney <ac131313@redhat.com>
8870
8871 * cli/cli-decode.c: Include "gdb_assert.h".
8872 (add_set_or_show_cmd): New static function.
8873 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8874 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8875 all fields, such as func, from the set command.
8876
3b45974e
AC
88772002-03-23 Andrew Cagney <ac131313@redhat.com>
8878
8879 * MAINTAINERS (sh-elf): Change warning flag to -w.
8880
823ca731
AC
88812002-03-23 Andrew Cagney <cagney@redhat.com>
8882
8883 * defs.h (error): Add printf format attribute.
8884 * thread-db.c (thread_from_lwp): Fix error format string.
8885 * stack.c (parse_frame_specification): Ditto.
8886 * cli/cli-decode.c (undef_cmd_error): Ditto.
8887 * scm-lang.c (scm_lookup_name): Ditto.
8888 * tracepoint.c (trace_error): Ditto.
8889 * remote-utils.c (usage): Ditto.
8890 * remote.c (compare_sections_command): Ditto.
8891 Fix PR gdb/328.
8892
0e101458
AC
88932002-03-22 Andrew Cagney <ac131313@redhat.com>
8894
8895 * gdbtypes.c (append_composite_type_field): New function.
8896 (init_composite_type): New function.
8897 * gdbtypes.h (append_composite_type_field): Declare.
8898 (init_composite_type): Ditto.
8899
8e0662df
EZ
89002002-03-22 Elena Zannoni <ezannoni@redhat.com>
8901
8902 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8903 function.
8e0662df
EZ
8904 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8905 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8906 structure returning convention for SYSV ABI case, but not
8907 for GNU/Linux, FreeBSD, or NetBSD.
8908
3121eff0
DJ
89092002-03-22 Daniel Jacobowitz <drow@mvista.com>
8910
8911 * symtab.h (lookup_block_symbol): Add mangled_name argument
8912 to prototype.
8913
8914 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8915 with new mangled_name argument.
8916 * linespec.c (decode_line_1): Likewise.
8917 * valops (value_of_this): Likewise.
8918 * symtab.c (lookup_transparent_type): Likewise.
8919 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8920 (lookup_symbol): If we are given a mangled name, pass it down
8921 to lookup_symbol_aux.
8922 (lookup_block_symbol): If we are given a mangled name to check
8923 against, only return symbols which match it.
8924
349b409f
CF
89252002-03-22 Christopher Faylor <cgf@redhat.com>
8926
8927 * win32-nat.c (child_create_inferior): Check for proper shell to use
8928 here, in case the user changes it on the fly.
8929 (_initialize_inftarg): Remove shell path considerations.
8930
2a873819
EZ
89312002-03-21 Elena Zannoni <ezannoni@redhat.com>
8932
8933 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8934 for gdbarch_max_register_raw_size and max_register_virtual_size.
8935 Adjust copyright year.
8936
a1b9830c
DJ
89372002-03-21 Daniel Jacobowitz <drow@mvista.com>
8938
8939 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8940 in a function to cover the entire beginning of the function
8941 as well if it does not already.
8942
8b5790f2
TR
89432002-03-21 Tom Rix <trix@redhat.com>
8944
8945 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8946 (rs6000_ptrace64): Renamed from ptrace64.
8947
bdbe5747
MH
89482002-03-20 Martin M. Hunt <hunt@redhat.com>
8949
8950 * gdbserver/remote-utils.c (remote_open): Don't call
8951 getprotobyname, we're all using TCP here so just use
8952 IPPROTO_TCP.
7e336ba1 8953 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8954
89552002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8956
bdbe5747
MH
8957 * regcache.c (_initialize_regcache): No need to call
8958 build_regcache() at this time; it gets called whenever
8959 the gdbarch changes.
8960
7781cd62
DB
89612002-03-20 David O'Brien <obrien@FreeBSD.org>
8962
8963 * sparc-nat.c: Include sys/param.h where possible.
8964
f65ca430
DJ
89652002-03-20 Daniel Jacobowitz <drow@mvista.com>
8966
8967 Fix PR gdb/422.
8968 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8969 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8970 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8971 complex types.
8972 * stabsread.c (rs6000_builtin_type): Likewise.
8973 (read_sun_floating_type): Likewise.
8974
0c867556
PS
89752002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8976
8977 * stabsread.c (read_member_functions): Remove skip code for duplicate
8978 constructor/destructor methods. Use standard parsing for these
8979 methods and just do not chain them to the list of methods after
8980 parsing.
8981
12b9c64f
AO
89822002-03-19 Alexandre Oliva <aoliva@redhat.com>
8983
8984 * coffread.c: Remove redundant static declarations. Replace
8985 occurrences of `PTR' with `void *'.
8986 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8987 * top.h (quit_cover): Likewise.
8988 * defs.h (catch_errors): Likewise.
8989
349c5d5f
AC
89902002-03-18 Andrew Cagney <ac131313@redhat.com>
8991
8992 * defs.h (XMALLOC): Define.
8993 * gdb-events.sh (XMALLOC): Delete macro.
8994 * gdb-events.c, gdb-events.h: Regenerate.
8995 * gdbarch.sh (XMALLOC): Delete macro.
8996 * gdbarch.c: Regenerate.
8997 * serial.c (XMALLOC): Delete macro.
8998 * ui-file.c (XMALLOC): Ditto.
8999 * ser-unix.h (XMALLOC): Ditto.
9000 * sh-tdep.c (XMALLOC): Ditto.
9001 * ui-out.c (XMALLOC): Ditto.
9002 * utils.c (XMALLOC): Ditto.
9003 * i386-tdep.c (XMALLOC): Ditto.
9004 * gdb-events.c (XMALLOC): Ditto.
9005 * d10v-tdep.c (XMALLOC): Ditto.
9006 * cli-out.c (XMALLOC): Ditto.
9007
9008 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9009 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9010 * ui-file.c, ui-out.c: Ditto.
9011
7d0766f3
AC
90122002-03-18 Andrew Cagney <ac131313@redhat.com>
9013
9014 * command.h (struct cmd_list_element): Add field context.
9015 (set_cmd_context, get_cmd_context): Declare.
9016 * cli/cli-decode.h: Ditto.
9017 * cli/cli-decode.c (get_cmd_context): New function.
9018 (set_cmd_context): New function.
9019 (add_cmd): Initialize context.
9020 Part of fixing PR gdb/145 and PR gdb/146.
9021
5913bcb0
AC
90222002-03-17 Andrew Cagney <ac131313@redhat.com>
9023
1868c04e
AC
9024 * cli/cli-decode.c (cmd_type): New function.
9025 * command.h (cmd_type): Declare.
9026 * infrun.c (set_schedlock_func): Call function cmd_type.
9027 * kod.c (kod_set_os): Call cmd_type.
9028 * cris-tdep.c (cris_version_update): Use function cmd_type.
9029 (cris_mode_update, cris_abi_update): Ditto.
9030
5913bcb0
AC
9031 * command.h: (execute_cmd_post_hook): Declare.
9032 (execute_cmd_pre_hook): Declare.
9033 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9034 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9035 functions. Execute pre/post hook while ensuring that afterwords
9036 hook_in is cleared.
9037 * top.c (execute_command): Use execute_cmd_post_hook, and
9038 execute_cmd_pre_hook to execute pre/post commands.
9039 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9040 hook_stop_stub.
9041 (hook_stop_stub): Call execute_cmd_pre_hook.
9042
b51450c9
AC
90432002-03-17 Andrew Cagney <ac131313@redhat.com>
9044
9045 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9046 set'' and this leads to a core dump. Move xstrdup of
9047 operating_system to after check that it is not NULL.
9048
f66c9f11
AC
90492002-03-17 Andrew Cagney <ac131313@redhat.com>
9050
8e694ecf
AC
9051 * kod.c (kod_set_os): Remove unnecessary check that
9052 ``command->type'' is set_cmd.
9053
f66c9f11
AC
9054 * valprint.c (set_input_radix): Use input_radix.
9055 (set_output_radix): Use output_radix.
9056 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9057 isn't reverted.
9058
9d01611c
AC
90592002-03-16 Andrew Cagney <ac131313@redhat.com>
9060
9061 * value.h (struct value): Delete field ``substring_addr''. Change
9062 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9063 force_core_addr_align and force_pointer_aligh.
9064
9065 * value.h (struct value): Fix typo in above change.
9d01611c 9066
4156bb53
PS
90672002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9068
9069 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9070 to fix internal_error from ``maintenance print architecture''.
9071
0e5e3ea6
PS
90722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9073
9074 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9075 for gcc versions after gcc-2.8.1.
9076
9b013045
PS
90772002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9078
9079 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9080 for method resolution. Restore adjustment of ``this'' pointer after
9081 calling value_struct_elt, which was accidentally removed during the
9082 HP merge.
9083
376c9600
AC
90842002-03-15 Andrew Cagney <ac131313@redhat.com>
9085
9086 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9087 value_of_register.
9088 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9089 get_saved_register.
9090 * value.h (value_of_register): Update.
9091
a4db0f07
RH
90922002-03-14 Richard Henderson <rth@redhat.com>
9093
9094 * configure.in: Detect declaration for canonicalize_file_name.
9095 * utils.c (canonicalize_file_name): Declare, if needed.
9096 (gdb_realpath): Prefer realpath if available and usable.
9097 * config.in, configure: Rebuild.
9098
96383835
RH
90992002-03-14 Richard Henderson <rth@redhat.com>
9100
9101 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9102 a constant array bound.
9103
9104 * MAINTAINERS: Add myself to write-after-approval.
9105
75245b24
MS
91062002-03-14 Michael Snyder <msnyder@redhat.com>
9107
9108 * symfile.c (syms_from_objfile): Return immediately if no syms.
9109 (symbol_file_add): Return immediately if no syms.
9110 (find_sym_fns): Return immediately if no syms.
9111
e641a1ca
ML
91122002-03-13 Michal Ludvig <mludvig@suse.cz>
9113
9114 * gdbserver/remote-util.c (remote_open): Print remote-side's
9115 IP address when remote debugging over the network.
7e336ba1 9116
df08bfec
DB
91172002-03-12 David O'Brien <obrien@FreeBSD.org>
9118
9119 * config/sparc/fbsd.mh: Fix copyright.
9120 * config/sparc/fbsd.mt: Likewise.
9121
9a57864f
RE
91222002-03-11 Richard Earnshaw <rearnsha@arm.com>
9123
9124 * MAINTAINERS: Fix typo in name of gdb warnings option.
9125 (x86-64): Fix formating so that this can be parsed by awk.
9126
dd7bf85e
DJ
91272002-03-10 Daniel Jacobowitz <drow@mvista.com>
9128
9129 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9130 * defs.h: Include "gdb/signals.h".
9131 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9132
33a0a2ac
ML
91332002-03-10 Michal Ludvig <mludvig@suse.cz>
9134
9135 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9136 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9137 from x86-64-tdep.h
9138
dd824b04
DJ
91392002-03-10 Daniel Jacobowitz <drow@mvista.com>
9140 Don Howard <dhoward@redhat.com>
9141
9142 * mips-tdep.c (ST0_FR): Define.
9143 (mips2_fp_compat): New function, temporarily disabled.
9144 (mips_read_fp_register_single): New function.
9145 (mips_read_fp_register_double): New function.
9146 (mips_print_register): Use them.
9147 (do_fp_register_row): Likewise.
9148
6a41ff59
AC
91492002-03-09 Andrew Cagney <ac131313@redhat.com>
9150
9151 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9152 approval''.
9153
4ea09c10
PS
91542002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9155
9156 * stabsread.c (read_member_functions): Fix is_stub test for
9157 static member functions, improve comment.
9158
6ccc741d
RE
91592002-03-07 Richard Earnshaw <rearnsha@arm.com>
9160
9161 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9162 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9163 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9164 commands that set boolean values.
9165 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9166 (arm_rdi_resume): Always initialize PC.
9167 (arm_rdi_open): Don't use rslt as a boolean.
9168 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9169 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9170 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9171 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9172
438013df
AO
91732002-03-06 Alexandre Oliva <aoliva@redhat.com>
9174
9175 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9176 * configure: Rebuilt.
9177
70ed8774
SC
91782002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9179
9180 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9181 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9182
5ba2abeb
AC
91832002-03-06 Andrew Cagney <ac131313@redhat.com>
9184
9185 * cli/cli-decode.c (set_cmd_completer): New function.
9186 * command.h (set_cmd_completer): Declare.
9187 * cli/cli-decode.h (set_cmd_completer): Ditto.
9188
9189 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9190 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9191 * win32-nat.c (_initialize_inftarg): Ditto.
9192 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9193 * proc-api.c (_initialize_proc_api): Ditto.
9194 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9195 * source.c (_initialize_source): Ditto.
9196 * exec.c (_initialize_exec): Ditto.
9197 * solib.c (_initialize_solib): Ditto.
9198 * top.c (init_main): Ditto.
9199 * tracepoint.c (_initialize_tracepoint): Ditto.
9200 * symfile.c (_initialize_symfile): Ditto.
9201 * printcmd.c (_initialize_printcmd): Ditto.
9202 * infcmd.c (_initialize_infcmd): Ditto.
9203 * corefile.c (_initialize_core): Ditto.
9204
f779ca99
AC
92052002-03-05 Andrew Cagney <ac131313@redhat.com>
9206
9207 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9208
01a3934b
AC
92092002-03-05 Andrew Cagney <ac131313@redhat.com>
9210
9211 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9212
37057839
AC
92132002-03-05 Andrew Cagney <ac131313@redhat.com>
9214
9215 * NEWS: Update headings, 5.2 has branched.
9216
c6ecbae5
DJ
92172002-03-04 Daniel Jacobowitz <drow@mvista.com>
9218
9219 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9220 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9221 (register_addr, REGISTER_RAW_SIZE): Likewise.
9222 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9223 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9224
e9f30c21
ML
92252002-03-03 Michal Ludvig <mludvig@suse.cz>
9226
9227 * MAINTAINERS (x86-64): Add myself.
9228 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9229 changed value_ptr -> struct value *
9230
54394ac3
DB
92312002-03-01 David O'Brien <obrien@FreeBSD.org>
9232
9233 * configure.host (sparc64-*-freebsd): Add.
9234 * configure.tgt: Likewise.
9235 * config/sparc/fbsd.mh: New file.
9236 * config/sparc/fbsd.mt: Likewise.
9237 * config/sparc/nm-fbsd.h: Likewise.
9238 * config/sparc/tm-fbsd.h: Likewise.
9239
bfe95955
DJ
92402002-03-01 Daniel Jacobowitz <drow@mvista.com>
9241
9242 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9243 regformats/reg-s390x.dat.
9244
f33c6cbf
AC
92452002-03-01 Andrew Cagney <ac131313@redhat.com>
9246
9247 * utils.c: Add FIXME explaining true/false problem.
9248
5ecaa7dd
AC
92492002-02-28 Andrew Cagney <ac131313@redhat.com>
9250
9251 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9252
2a251cc2
MC
92532002-02-28 Michael Chastain <mec@shout.net>
9254
9255 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9256
6a8031a3 92572002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9258
9259 * gdbserver/linux-s390-low.c: New file.
9260 * regformats/reg-s390.dat: New file.
9261 * regformats/reg-s390x.dat: New file.
9262 * gdbserver/configure.srv: Add S/390.
9263 * gdbserver/Makefile.in: Add S/390.
9264 * configure.tgt: Enable gdbserver for S/390.
9265
ac469903
EZ
92662002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9267
9268 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9269 first line of the doc string for "info dos", except at the end of
9270 the sentence, since the short help stops at the first period.
9271
985cb1a3
JM
92722002-02-28 Jason Merrill <jason@redhat.com>
9273
9274 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9275
c570663e
FF
92762002-02-27 Fred Fish <fnf@redhat.com>
9277
9278 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9279 comment (dumy -> dummy).
9280
43630227
PS
92812002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9282
9283 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9284
b84911e8
RB
92852002-02-27 Rodney Brown <rbrown64@csc.com.au>
9286
9287 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9288
58caa3dc
DJ
92892002-02-27 Daniel Jacobowitz <drow@mvista.com>
9290
9291 * gdbserver/acconfig.h: New file.
9292 * gdbserver/i387-fp.c: New file.
9293 * gdbserver/i387-fp.h: New file.
9294 * gdbserver/linux-x86-64.c: New file.
9295 * regformats/reg-x86-64.dat: New file.
9296 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9297 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9298 * gdbserver/configure.in: Add support for regsets.
9299 * gdbserver/config.in: Regenerate.
9300 * gdbserver/configure: Regenerate.
9301 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9302 * gdbserver/linux-low.h: New file.
9303 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9304 for regsets.
9305 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9306 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9307 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9308 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9309 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9310 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9311 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9312 "i387-fp.h". Add PTRACE_GETREGS and friends.
9313 * gdbserver/regcache.c (supply_register): New function.
9314 (supply_register_by_name): New function.
9315 (collect_register): New function.
9316 (collect_register_by_name): New function.
9317
93652174
DJ
93182002-02-27 Daniel Jacobowitz <drow@mvista.com>
9319
9320 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9321 (config.status): Add configure.srv dependency.
9322 (server_h): Add config.h dependency.
9323
a02e4a61
DJ
93242002-02-27 Daniel Jacobowitz <drow@mvista.com>
9325
9326 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9327 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9328 * gdbserver/configure.srv: Change i386-*-linux* to use
9329 reg-i386-linux.o.
9330
ce0eebec
AC
93312002-02-26 Andrew Cagney <ac131313@redhat.com>
9332
9333 * x86-64-tdep.c: Re-indent. Update copyright date.
9334
82dbc5f7
AC
93352002-02-26 Andrew Cagney <ac131313@redhat.com>
9336
9337 From Michal Ludvig <mludvig@suse.cz>:
9338 * x86-64-tdep.c (value.h): Delete.
9339 (gdb_assert.h): Include.
9340 (x86_64_register_convert_to_virtual,
9341 x86_64_register_convert_to_raw ): Add check which lets only
9342 floating-point values to be converted.
9343 (value_push): Delete.
9344 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9345 (i386_gdbarch_init): Number of register_bytes fixed.
9346
e4621584
AC
93472002-02-26 Andrew Cagney <ac131313@redhat.com>
9348
9349 * MAINTAINERS: Add x86-64 target.
9350
81a9a963
AC
93512002-02-26 Andrew Cagney <ac131313@redhat.com>
9352
9353 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9354 * osfsolib.c (solib_map_sections): Ditto.
9355 * irix5-nat.c (solib_map_sections): Ditto.
9356 * corelow.c (gdb_check_format): Ditto.
9357 * symfile.c (symfile_bfd_open): Ditto.
9358 * solib.c (solib_map_sections): Ditto.
9359 Fix PR gdb/354.
7e336ba1 9360
0f017ab9
AC
93612002-02-26 Andrew Cagney <ac131313@redhat.com>
9362
9363 * remote.c (_initialize_remote): By default, disable ``e'' and
9364 ``E'' step out-of-range packets.
9365
75738c29
AS
93662002-02-26 Andreas Schwab <schwab@suse.de>
9367
9368 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9369 m68k_linux_frame_saved_pc.
9370 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9371 in_sigtramp.
9372 (SIGCONTEXT_PC_OFFSET): Remove.
9373 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9374 m68k_linux_sigtramp_saved_pc): New functions.
9375 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9376 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9377 (UCONTEXT_PC_OFFSET): Define.
9378 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9379 non-RT and RT signal trampolines.
9380
7e8ed687
RE
93812002-02-26 Richard Earnshaw <rearnsha@arm.com>
9382
9383 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9384 (TARGET_NBPG, STACK_END_ADDR): Delete
9385 (VARIABLES_INSIDE_BLOCK): Delete.
9386
6972bc8b
AC
93872002-02-25 Andrew Cagney <ac131313@redhat.com>
9388
9389 * utils.c (perror_with_name): Make string parameter constant.
9390 (print_sys_errmsg): Ditto.
9391 (query): Ditto.
9392 * defs.h (perror_with_name): Update.
9393 (print_sys_errmsg): Update.
9394 (query): Update.
9395
aa32f823
DJ
93962002-02-25 Daniel Jacobowitz <drow@mvista.com>
9397
9398 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9399 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9400
19caaa45
PS
94012002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9402
9403 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9404 if it already matches the current architecture from the exec file.
9405 Include arch-utils.h for gdbarch_info_init prototype.
9406 * Makefile.in (rs6000-nat.o): Update dependencies.
9407
d951901f
EZ
94082002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9409
9410 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9411 list of exported variables.
9412
7ea81414
DJ
94132002-02-24 Daniel Jacobowitz <drow@mvista.com>
9414
9415 * gdbserver/configure.srv: New file.
9416 * gdbserver/configure.in: Use configure.srv instead
9417 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9418 from it.
9419 * gdbserver/configure: Regenerated.
9420 * gdbserver/terminal.h: New file.
9421 * gdbserver/Makefile.in: Update for configure changes. Remove
9422 more unneeded include paths.
9423
080fe24b
AC
94242002-02-24 Andrew Cagney <ac131313@redhat.com>
9425
9426 From wiz at danbala:
9427 * config/sparc/tm-sp64.h: Fix grammar and typos.
9428 Fix PR gdb/287.
9429
8605d56e
AC
94302002-02-24 Andrew Cagney <ac131313@redhat.com>
9431
9432 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9433 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9434 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9435 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9436 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9437 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9438 * s390-tdep.c: Ditto.
92362027
AC
9439 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9440 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9441 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9442 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9443 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9444 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9445 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9446 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9447 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9448 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9449 Fix PR gdb/378.
7e336ba1 9450
8ed32cc0
AC
94512002-02-23 Andrew Cagney <ac131313@redhat.com>
9452
a3007b6f
AC
9453 * lin-thread.c: Delete file.
9454 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9455 to gdb_proc_service.h.
9456 * configure: Re-generate.
9457
50a9e2f1
AC
9458 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9459 * serial.c (serial_open): Delete check for "ocd".
9460 Fix PR gdb/349.
9461
8b6e7932
AC
9462 * Makefile.in (linux-thread.o): Delete target.
9463 * linux-thread.c: Delete file.
9464
d155c46b
AC
9465 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9466 renamed SH files to be consistent.
9467
8ed32cc0
AC
9468 * symtab.c (sort_search_symbols): Use xfree.
9469
0e18d038
RE
94702002-02-23 Richard Earnshaw <rearnsha@arm.com>
9471
9472 * arm-linux-tdep.c (arm_linux_init_abi): Register
9473 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9474 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9475 definition with undef, since we don't want the sysvr4 definition.
9476 (SKIP_TRAMPOLINE_CODE): Likewise.
9477
27aac7ff
AC
94782002-02-23 Andrew Cagney <ac131313@redhat.com>
9479
9480 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9481
9482 * configure.in: (AC_CHECK_FUNCS) Added test for
9483 canonicalize_file_name Regenerated.
9484 * config.in, configure: Regenerated.
9485 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9486 defined use canonicalize_file_name.
7e336ba1 9487
65a6e0ee
MC
94882002-02-23 Michael Chastain <mec@shout.net>
9489
9490 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9491
47b95330
AC
94922002-02-23 Andrew Cagney <ac131313@redhat.com>
9493
9494 * README: Remove references to cygnus.com.
9495 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9496 dot com'' form. Remove references to cygnus.com and sourceware.
9497
696f451b
AC
94982002-02-23 Andrew Cagney <ac131313@redhat.com>
9499
9500 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9501 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9502 1003.1-2001 no longer allows "head -1".
9503 * gdb/Makefile.in (version.c): Likewise.
9504 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9505 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9506 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9507
bbaca940
AC
95082002-02-23 Andrew Cagney <ac131313@redhat.com>
9509
9510 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9511 * command.h (cmd_cfunc_eq): Declare.
9512 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9513
9514 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9515 ``struct cmd_list_element *''.
9516 * cli/cli-cmds.c (is_complete_command): Update. Use
9517 cmd_cfunc_eq.
9518 * top.c (execute_command): Pass the command to
9519 is_complete_command.
9520 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9521
b8b8b047
AC
95222002-02-23 Andrew Cagney <ac131313@redhat.com>
9523
9524 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9525 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9526 architecture defines.
9527 * s390-tdep.c (s390_gdbarch_init): Likewise.
9528
19d3fc80
RE
95292002-02-23 Richard Earnshaw <rearnsha@arm.com>
9530
9531 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9532 (arm_linux_push_arguments): Likewise.
9533 (arm_linux_init_abi): Register them. Also register linux-specific
9534 call_dummy_words.
9535 (find_minsym_and_objfile): Use strcmp, not STREQ.
9536 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9537 (arm_linux_call_dummy_words): Delete declaration.
9538 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9539 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9540 declarations.
9541 (LOWEST_PC): Delete.
9542
3ab13650
PS
95432002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9544
9545 * maint.c (print_section_info): Do not prepend `0x' to filepos
9546 output, it will be handled by local_hex_string_custom.
9547
19d3fc80 95482002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9549
9550 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9551 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9552 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9553
d85a5daf
JB
95542002-02-22 Jim Blandy <jimb@redhat.com>
9555
9556 Indicate that the bcache functions don't change the strings
9557 they're passed.
9558 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9559 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9560
eeb25b8a
PM
95612002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9562
9563 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9564
6badb179
CF
95652002-02-21 Christopher Faylor <cgf@redhat.com>
9566
9567 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9568 find the complete path to a loaded DLL.
9569
e8717518
FF
95702002-02-21 Fred Fish <fnf@redhat.com>
9571
9572 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9573 that marks the end of the range of a function, enter a line number
9574 entry that has a line number of zero and a PC offset that matches
9575 the end of the function. This starts a range of PC's for which no
9576 line number information is known.
9577 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9578 PC's for which no line number info is found (line number is zero)
9579 then we didn't find any valid line information.
9580 * symtab.h: Document use of zero line number entry.
9581
9abe5450
EZ
95822002-02-21 Elena Zannoni <ezannoni@redhat.com>
9583
9584 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9585 (have_ptrace_getvrregs): Define for run time checks.
9586 (gdb_vrregset_t): New type for Altivec register handling.
9587 (fetch_register, store_register): Fetch/store altivec register
9588 when needed.
9589 (fetch_altivec_register, store_altivec_register): New functions.
9590 (supply_vrregset, fill_vrregset): New functions.
9591 (fetch_altivec_registers, store_altivec_registers): New functions.
9592 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9593 registers as well.
9594
aaa38bb5
AJ
95952002-02-21 Jiri Smid <smid@suse.cz>
9596
9597 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9598
b34db576
RE
95992002-02-21 Richard Earnshaw <rearnsha@arm.com>
9600
9601 * Makefile.in (armnbsd-nat.o): Update dependencies.
9602 * armnbsd-nat.c (supply_gregset): New function. Common code to
9603 supply the integer register set.
9604 (supply_fparegset): New function. Similar for FPA registers.
9605 (fetch_regs, fetch_fp_regs): Use them.
9606 (fetch_core_registers): Likewise.
9607 (fetch_elfcore_registers): New function.
9608 (arm_netbsd_elfcore_fns): New core-file type specification.
9609 (_initialize_arm_netbsd_nat): Register it.
9610
3e56fc4b
RE
96112002-02-21 Richard Earnshaw <rearnsha@arm.com>
9612
9613 * armnbsd-nat.c: Include gdbcore.h.
9614 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9615 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9616 'void' to declaration, to shut up ARI.
9617 (fetch_core_registers): Make static. Rewrite using supply_register.
9618 (arm_netbsd_core_fns): New core-file type specification.
9619 (_initialize_arm_netbsd_nat): New function.
9620
097f6b0b
CF
96212002-02-21 Christopher Faylor <cgf@redhat.com>
9622
9623 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9624 value.
9625
c914e0cc
CF
96262002-02-20 Christopher Faylor <cgf@redhat.com>
9627
9628 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9629 fails.
9630
385fa495
DJ
96312002-02-20 Daniel Jacobowitz <drow@mvista.com>
9632
9633 * jv-exp.y (parse_number): Change type of implicit longs
9634 to builtin_type_uint64.
9635
e5f1222d
DJ
96362002-02-20 Daniel Jacobowitz <drow@mvista.com>
9637
9638 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9639 to be an integer instead of a `union wait'.
9640
75c9abc6
DJ
96412002-02-20 Daniel Jacobowitz <drow@mvista.com>
9642
9643 * mips-linux-nat.c: Call the operating system GNU/Linux.
9644 * mips-linux-tdep.c: Likewise.
9645 * mips-tdep.c: Likewise.
9646
551792a5
DJ
96472002-02-20 Daniel Jacobowitz <drow@mvista.com>
9648
9649 Fix PR gdb/265.
9650 * jv-exp.y (parse_number): Handle 64-bit integers.
9651
ee6e2b82
DJ
96522002-02-20 Daniel Jacobowitz <drow@mvista.com>
9653
9654 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9655 AC_STDC_HEADERS to AC_HEADER_STDC.
9656 * gdbserver/configure: Regenerated.
9657
a48442a0
RE
96582002-02-20 Richard Earnshaw <rearnsha@arm.com>
9659
9660 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9661 is defined.
9662 * sparc-tdep.c (get_longjmp_target): Likewise.
9663
fe419ffc
RE
96642002-02-20 Richard Earnshaw <rearnsha@arm.com>
9665
9666 * News: Add news about ARM and Multi-arch. Mention the new target
9667 arm*-*-netbsd*.
9668
5832ed7e
JB
96692002-02-19 Jim Blandy <jimb@redhat.com>
9670
9671 * stabsread.c (error_type_complaint): Improve error message.
9672
84563040
DJ
96732002-02-19 Daniel Jacobowitz <drow@mvista.com>
9674
9675 * gdbserver/README: Update documentation.
9676 * gdbserver/configure.in: Update configury to match documentation.
9677 * gdbserver/Makefile.in: Likewise.
9678 * gdbserver/configure: Regenerated.
9679 * gdbserver/aclocal.m4: New file, generated by aclocal.
9680 * gdbserver/config.in: New file, generated by autoheader.
9681
375fd65b
RE
96822002-02-19 Richard Earnshaw <rearnsha@arm.com>
9683
9684 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9685 armnbsd-nat.c.
9686
08216dd7
RE
96872002-02-19 Richard Earnshaw <rearnsha@arm.com>
9688
9689 * arm-tdep.h (enum arm_float_model): New enum.
9690 (struct gdbarch_tdep): Add fp_model.
9691 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9692 up floating-point conversions until we know the floating-point model
9693 in use by the inferior. Don't complain about being unable to
9694 determine the ABI of the inferior when we don't have one.
9695 (arm_extract_return_value): Support different floating-point models.
9696 (arm_store_return_value): Likewise.
aaa38bb5 9697 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9698 ARM_FLOAT_SOFT.
9699 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9700
65d6d66a
PS
97012002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9702
9703 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9704 of ``current_gdbarch''.
9705
47221191
RE
97062002-02-19 Richard Earnshaw <rearnsha@arm.com>
9707
9708 * armnbsd-nat.c : ANSIfy all function declarations.
9709 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9710 (fetch_inferior_registers): Re-implement in terms of above.
9711 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9712 (store_inferior_registers): Re-implement in terms of above.
9713
fdf39c9a
RE
97142002-02-19 Richard Earnshaw <rearnsha@arm.com>
9715
aaa38bb5 9716 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9717 kernel.
9718 * arm-linux-tdep.c: Likewise.
9719 * config/arm/tm-linux.h: Likewise.
9720
93247f88
RE
97212002-02-19 Richard Earnshaw <rearnsha@arm.com>
9722
9723 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9724 * config/arm/nbsd.mt (TM_FILE): Delete.
9725 * config/arm/tm-nbsd.h: Delete.
9726
d7b486e7
RE
97272002-02-19 Richard Earnshaw <rearnsha@arm.com>
9728
9729 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9730 Initialize CALL_DUMMY_LENGTH.
9731
41d39a95
RE
97322002-02-19 Richard Earnshaw <rearnsha@arm.com>
9733
9734 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9735 function.
9736 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9737 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9738 defines one thing and that is incorrect for this port.
9739 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9740
e1195560
PM
97412002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9742
9743 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9744
c1748f97
PM
97452002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9746
9747 * win32-nat.c (display_selector): New function. Displays information
9748 about the information returned by GetThreadSelectorEntry API function.
9749 (display_selectors): New function. Displays the infomation of
9750 the selector given as argument, or of CS, DS ans FS selectors
9751 if no argument is given.
9752 ( _initialize_inftarg): Add "w32" as info prefix command.
9753 Add "info w32 selector" as command calling display_selectors.
9754
e41e6bbf
PM
97552002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9756
9757 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9758 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9759 if not defined.
9760
0d3a9f48
RE
97612002-02-18 Richard Earnshaw <rearnsha@arm.com>
9762
9763 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9764
3fb4b924
RE
97652002-02-18 Richard Earnshaw <rearnsha@arm.com>
9766
9767 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9768 (arm_fix_call_dummy): Call it.
9769 (arm_call_dummy_breakpoint_offset): Delete.
9770 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9771 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9772
7f55af32
AC
97732002-02-18 Andrew Cagney <ac131313@redhat.com>
9774
9775 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9776 Default to func_frame_chain_valid.
9777 * gdbarch.h, gdbarch.c: Re-generate.
9778 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9779
05f13b9c
EZ
97802002-02-18 Elena Zannoni <ezannoni@redhat.com>
9781
9782 * ppc-linux-nat.c: Update copyright.
9783 (fetch_register, store_register): Add tid parameter, don't compute
9784 tid here.
9785 (fetch_ppc_registers, store_ppc_registers): Add tid
9786 parameter. Pass it along to callees.
9787 (fetch_inferior_registers, store_inferior_registers): Compute tid
9788 here, and pass it to calleed functions.
9789 (fill_gregset, supply_fpregset): Clean up formatting.
9790
d7afb4c9
RE
97912002-02-18 Richard Earnshaw <rearnsha@arm.com>
9792
9793 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9794 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9795
9df628e0
RE
97962002-02-18 Richard Earnshaw <rearnsha@arm.com>
9797
9798 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9799 * gdbarch.c gdbarch.h: Regenerate.
9800 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9801 function.
9802 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9803 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9804 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9805
9806 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9807 * arm-tdep.c (arm_get_longjmp_target): New function.
9808 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9809 this to a positive value register arm_get_longjmp_target as the
9810 longjmp handler.
9811 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9812 (arm_linux_init_abi): Set up longjmp description in tdep.
9813 * armnbsd-nat.c (get_longjmp_target): Delete.
9814 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9815 description in tdep.
9816 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9817 (get_longjmp_target): Delete declaration.
9818 (GET_LONGJMP_TARGET): Delete.
9819 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9820 (GET_LONGJMP_TARGET): Delete.
9821
57bc8964
KB
98222002-02-17 Kevin Buettner <kevinb@redhat.com>
9823
9824 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9825 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9826 of ``current_gdbarch''.
9827
83d31a92
TT
98282002-02-17 Tom Tromey <tromey@redhat.com>
9829
9830 * cli/cli-cmds.c (compare_strings): New function.
9831 (complete_command): Only print each unique item once.
9832 * completer.h (complete_line): Declare.
9833 * completer.c (complete_line): New function.
9834 (line_completion_function): Use it.
9835
17ef5d92
AC
98362002-02-16 Andrew Cagney <ac131313@redhat.com>
9837
9838 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9839 * gdbarch.h, gdbarch.c: Re-generate.
9840
491b8946
DJ
98412002-02-16 Daniel Jacobowitz <drow@mvista.com>
9842
9843 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9844
98452002-02-16 Daniel Jacobowitz <drow@mvista.com>
9846
9847 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9848 * valops.c (value_arg_coerce): Don't take the address of a reference
9849 to convert an argument to a reference.
9850
dfe7f3ac
CF
98512002-02-15 Christopher Faylor <cgf@redhat.com>
9852
9853 * win32-nat.c (get_image_name): New function.
9854 (handle_load_dll): Use get_image_name function.
9855 (get_child_debug_event): Avoid registering debug events until possibly
9856 execed process is started.
9857 (child_create_inferior): Allow invocation via shell so that command
9858 line redirection, etc. works ok.
9859 (_initialize_inftarg): Add new command: "set shell" to control whether
9860 a shell is used to start a process.
9861
1d33e73a
DJ
98622002-02-15 Daniel Jacobowitz <drow@mvista.com>
9863
9864 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9865 instead of find_register_by_number.
9866 (cannot_store_register): Likewise.
9867
48cd0caa
PM
98682002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9869
aaa38bb5 9870 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9871 fprintf_unfiltered (gdb_stderr, ...).
9872
8656e7d8
DJ
98732002-02-15 Daniel Jacobowitz <drow@mvista.com>
9874
9875 * gdbserver/gdbserver.1: Document --attach.
9876
66e810cd
RE
98772002-02-15 Richard Earnshaw <rearnsha@arm.com>
9878
9879 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9880 descriptions.
9881 * arm-tdep.c (arm_default_arm_le_breakpoint)
9882 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9883 (arm_default_thumb_be_breakpoint): New. Initialize them from
9884 traditional breakpoint defines.
9885 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9886 (arm_gdbarch_init): Initialize new breakpoint variables.
9887 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9888 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9889 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9890 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9891 code out to ...
9892 (arm_netbsd_init_abi_common): ... here; new function.
9893 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9894 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9895 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9896 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9897
97e03143
RE
98982002-02-15 Richard Earnshaw <rearnsha@arm.com>
9899
9900 * arm-tdep.h (enum arm_abi): New enum.
9901 (struct gdbarch_tdep): New structure.
9902 (LOWEST_PC): Provide a default.
9903 (arm_gdbarch_register_os_abi): Declare new function.
9904 * arm-tdep.c (arm_abi_names): New array.
9905 (process_note_abi_tag_sections): New function.
9906 (get_elfosabi): New function.
9907 (arm_gdbarch_register_os_abi): New function.
9908 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9909 support for that ABI has been built in, then call the appropriate
9910 configuration routine. Use gdbarch_num_regs() to get the number
9911 of registers.
9912 (arm_dump_tdep): New function.
9913 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9914 place-holder functions.
9915 (_initialize_arm_tdep): Register them.
9916 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9917
9918 * armnbsd-tdep.c: New file.
9919 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9920 * config/arm/nbsd.mt (TDEPFILES): Add it.
9921 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9922
9923 * armnbsd-nat.c: Include regcache.h.
9924 * Makefile.in (armnbsd-nat.o): Update dependency list.
9925
9926 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9927
ad68be46
DJ
99282002-02-14 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * gdbserver/Makefile.in: Fix typos in target rules.
9931
003d6d1d
DJ
99322002-02-14 Daniel Jacobowitz <drow@mvista.com>
9933
aaa38bb5 9934 Fix part of PR gdb/267.
003d6d1d
DJ
9935 * linespec.c (find_methods): Handle constructors specially for now.
9936
6b230f1b
CV
99372002-02-14 Corinna Vinschen <vinschen@redhat.com>
9938
9939 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9940 handling.
9941 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9942 standard_coerce_float_to_double().
9943
1ea98d12
CF
99442002-02-14 Christopher Faylor <cgf@redhat.com>
9945
9946 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9947 GDBINIT_FILENAME.
9948
dd47e6fd
EZ
99492002-02-14 Elena Zannoni <ezannoni@redhat.com>
9950
9951 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9952 find_variant_by_name, because it confuses the multiarch
9953 framework. Return NULL if there isn't an architecture with the
9954 user supplied name, instead of forcing a different one without
9955 recording the change with the multiarch machinery.
9956 (find_variant_by_name): Delete.
9957
d7e39b9e
PS
99582002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9959
9960 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9961 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9962
76e42a4f
MH
99632002-02-13 Martin M. Hunt <hunt@redhat.com>
9964
aaa38bb5 9965 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9966 print_frame_info_listing_hook, set current_source_symtab.
9967
0a30fbc4
DJ
99682002-02-14 Daniel Jacobowitz <drow@mvista.com>
9969
9970 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9971 and remove unused $(INCLUDE_DIR).
9972 Add regcache.c to OBS.
9973 Add generated register protocol files to clean target.
9974 Update dependencies for new objects, obsolete old target code.
9975
9976 * gdbserver/linux-low.c: Remove all platform-specific code to
9977 new files. Remove various dead code. Update to use regcache
9978 functionality.
9979 * gdbserver/remote-utils.c (fromhex): Add return statement
9980 to quiet warning.
9981 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9982 constant.
9983 (input_interrupt): Add integer parameter to match prototype
9984 of a signal handler.
9985 (outreg): Use register_data ().
9986 (prepare_resume_reply): Use gdbserver_expedite_regs.
9987 * gdbserver/server.c (main): Dynamically allocate own_buf because
9988 PBUFSIZ is no longer constant. Use registers_to_string () and
9989 registers_from_string ().
9990 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9991 for error (), fatal (), and warning (). Update definition of
9992 PBUFSIZ to use regcache functionality. Add include guard.
9993 * gdbserver/utils.c (fatal): Add missing ``const''.
9994 (warning): New function.
9995
9996 * regformats/regdat.sh: Include "regcache.h" in generated files.
9997 Provide init_registers () function.
9998 * regformats/regdef.h: Add prototype for set_register_cache ().
9999 Add include guard.
10000
10001 * gdbserver/linux-arm-low.c: New file.
10002 * gdbserver/linux-i386-low.c: New file.
10003 * gdbserver/linux-ia64-low.c: New file.
10004 * gdbserver/linux-m68k-low.c: New file.
10005 * gdbserver/linux-mips-low.c: New file.
10006 * gdbserver/linux-ppc-low.c: New file.
10007 * gdbserver/linux-sh-low.c: New file.
10008
10009 * gdbserver/regcache.c: New file.
10010 * gdbserver/regcache.h: New file.
10011
10012 * gdbserver/low-linux.c: Removed obsolete file.
10013
4cc841d0
DJ
100142002-02-14 Daniel Jacobowitz <drow@mvista.com>
10015
10016 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10017 * config/i386/linux.mt: Likewise.
10018 * config/ia64/linux.mt: Likewise.
10019 * config/m68k/linux.mh: Likewise.
10020 * config/powerpc/linux.mh: Likewise.
10021 * config/mips/linux.mt: Likewise.
10022
10023 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10024
10025 * config/i386/i386lynx.mh: Mark gdbserver variables
10026 as (currently) obsolete for this target.
10027 * config/i386/nbsd.mt: Likewise.
10028 * config/i386/nbsdelf.mt: Likewise.
10029 * config/m32r/m32r.mt: Likewise.
10030 * config/m68k/m68klynx.mh: Likewise.
10031 * config/m68k/nbsd.mt: Likewise.
10032 * config/m68k/sun3os4.mh: Likewise.
10033 * config/mips/vr5000.mt: Likewise.
10034 * config/ns32k/nbsd.mt: Likewise.
10035 * config/pa/hppabsd.mh: Likewise.
10036 * config/pa/hppaosf.mh: Likewise.
10037 * config/powerpc/nbsd.mt: Likewise.
10038 * config/rs6000/rs6000lynx.mh: Likewise.
10039 * config/s390/s390.mt: Likewise.
10040 * config/s390/s390x.mt: Likewise.
10041 * config/sparc/sparclynx.mh: Likewise.
10042 * config/sparc/sun4os4.mh: Likewise.
10043 * config/i386/x86-64linux.mt: Likewise.
10044 * config/sparc/linux.mh: Likewise.
10045
a85f51e7
DJ
100462002-02-14 Daniel Jacobowitz <drow@mvista.com>
10047
10048 * configure.tgt: Configure gdbserver only for known working
10049 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10050 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10051 SUBDIRS if it is configured. Update comment for ${nativefile}.
10052 * configure: Regenerated.
10053
65554fef
MS
100542002-02-13 Michael Snyder <msnyder@redhat.com>
10055
670a52db
MS
10056 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10057
6dbdc4a3
MS
10058 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10059 (default_gcore_mach): Just return 0, work around a problem in bfd.
10060 (default_gcore_target): OK to return NULL if exec_bfd is null.
10061 (make_mem_sec): Use a cast, avoid a warning.
10062
10063 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10064 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10065 sizeof (host pointer) != sizeof (target pointer)).
10066 (procfs_make_note_section): Avoid overflow in psargs string.
10067
aaa38bb5 10068 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10069 implementation return an error.
10070
100712002-02-13 Rodney Brown <rbrown64@csc.com.au>
10072
10073 * procfs.c (procfs_make_note_section): Provide a default definition
10074 (for alpha-dec-osf4.0f). Fix typos.
10075
1e4d76e7
EZ
100762002-02-13 Elena Zannoni <ezannoni@redhat.com>
10077
10078 * linux-proc.c: Add include of regcache.h.
10079 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10080
b6d1a1d5
AC
100812002-02-13 Andrew Cagney <ac131313@redhat.com>
10082
10083 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10084 * memattr.c (create_mem_region): Disallow useless empty region.
10085 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10086 non-overlapping.
b6d1a1d5 10087
6c6ea35e
MC
100882002-02-13 Michael Chastain <mec@shout.net>
10089
10090 * defs.h: Kill CONST_PTR.
10091 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10092 * c-lang.c (c_builtin_types): Likewise.
10093 * ch-lang.c (ch_builtin_types): Likewise.
10094 * f-lang.c (f_builtin_types): Likewise.
10095 * language.c (unknown_builtin_types): Likewise.
10096 * m2-lang.c (m2_builtin_types): Likewise.
10097 * p-lang.c (pascal_builtin_types): Likewise.
10098 * scm-lang.c (c_builtin_types): Likewise.
10099
3e0b0f48
KS
101002002-02-13 Keith Seitz <keiths@redhat.com>
10101
10102 * arm-tdep.h (arm_get_next_pc): Add declaration.
10103
67255d04
RE
101042002-02-13 Richard Earnshaw <rearnsha@arm.com>
10105
10106 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10107 with other related struct-returning functions.
10108 (arm_extract_struct_value_address): New function.
10109 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10110 initialize float_format, double_format and long_double_format as
10111 appropriate to the endianness of the target.
10112 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10113 (arm_use_struct_convention): Delete declaration.
10114 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10115
079777f6
KS
101162002-02-13 Keith Seitz <keiths@redhat.com>
10117
10118 * defs.h (core_addr_to_string_nz): New function.
10119
34588f23
MK
101202002-02-13 Mark Kettenis <kettenis@gnu.org>
10121
10122 Apply missing bits of 2002-01-15 patch.
10123 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10124 (fill_fpregset): Use i387_fill_fsave.
10125
49b563f9
KS
101262002-02-12 Keith Seitz <keiths@redhat.com>
10127
49b563f9
KS
10128 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10129 (core_addr_to_string_nz): New function.
10130
aeb98c60
RE
101312002-02-11 Richard Earnshaw <rearnsha@arm.com>
10132
10133 * arm-linux-nat.c: Really include arm-tdep.h.
10134 * config/arm/tm-linux.h (struct type, struct value): Declare.
10135
65554fef
MS
101362002-02-11 Michael Snyder <msnyder@redhat.com>
10137
10138 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10139 (gcore section): Ifdef for Solaris and Unixware only.
10140 (procfs_do_thread_registers): Unixware needs one lwpstatus
10141 per thread (not one prstatus or pstatus).
10142 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10143 not over all gdb threads. For unixware, call elfcore_write_pstatus
10144 once before iterating over threads.
10145
34e8f22d
RE
101462002-02-11 Richard Earnshaw <rearnsha@arm.com>
10147
10148 * arm-tdep.h: New file.
10149 * arm-tdep.c: Include arm-tdep.h.
10150 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10151 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10152 (arm_print_float_info, arm_register_type, convert_to_extended)
10153 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10154 (arm_extract_return_value, arm_register_name): Make static.
10155 (arm_software_single_step): Similarly. Fix types in declaration.
10156 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10157 (arm_store_return_value, arm_store_struct_return): New functions.
10158 (arm_gdbarch_init): Register the above functions. Also register
10159 call_dummy_start_offset, sizeof_call_dummy_words,
10160 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10161 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10162 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10163 prologue_cache.saved_regs here, rather than ...
10164 (_initialize_arm_tdep): ... here.
10165 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10166 declarations.
10167 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10168 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10169 (arm_print_float_info, arm_register_type, convert_to_extended)
10170 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10171 (arm_extract_return_value, arm_register_name): Delete declarations.
10172 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10173 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10174 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10175 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10176 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10177 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10178 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10179 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10180 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10181 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10182 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10183 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10184 interface.
10185 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10186 * remote-rdi.c remote-rdp.c: Likewise.
10187 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10188 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10189 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10190 definition.
10191
10192 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10193 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10194 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10195 from non-ARM_ prefixed definitions.
10196 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10197 all uses of above.
10198 * remote-rdi.c remote-rdp.c: Likewise.
10199 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10200
148754e5
RE
102012002-02-11 Richard Earnshaw <rearnsha@arm.com>
10202
10203 * arm-tdep.c (arm_frameless_function_invocation)
10204 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10205 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10206 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10207 (arm_pop_frame, arm_get_next_pc): Make static.
10208 (arm_gdbarch_init): Register above in gdbarch structure.
10209 (arm_read_fp): Renamed from arm_target_read_fp.
10210 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10211 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10212 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10213 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10214 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10215 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10216 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10217 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10218 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10219 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10220 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10221
434d2d4f
DJ
102222002-02-10 Daniel Jacobowitz <drow@mvista.com>
10223
10224 * symtab.c (compare_search_syms): New function.
10225 (sort_search_symbols): New function.
10226 (search_symbols): Sort symbols after searching rather than
10227 before.
10228
55241689
AC
102292002-02-10 Andrew Cagney <ac131313@redhat.com>
10230
10231 * NEWS: Linux -> GNU/Linux.
10232
028c194b
AC
102332002-02-10 Andrew Cagney <ac131313@redhat.com>
10234
10235 * gdbarch.sh: For for level one methods, disallow a definition
10236 when partially multi-arched. Add comments explaining rationale.
10237 * gdbarch.h: Re-generate.
10238
6acf50cd
AC
102392002-02-10 Andrew Cagney <ac131313@redhat.com>
10240
10241 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10242 multi-arch partial.
aaa38bb5 10243
50248794
AC
102442002-02-10 Andrew Cagney <ac131313@redhat.com>
10245
10246 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10247 field. Use diff -u.
10248 * gdbarch.c: Re-generate.
10249
c30e0066
AC
102502002-02-10 Andrew Cagney <ac131313@redhat.com>
10251
9b56c5f3 10252 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10253 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10254 partial.
10255
6e6d6484
AC
102562002-02-10 Andrew Cagney <ac131313@redhat.com>
10257
10258 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10259 multi-arch partial.
10260 (PUSH_ARGUMENTS): Switch to using predefault.
10261 * gdbarch.c: Regenerate.
10262
c203844d
AC
102632002-02-10 Andrew Cagney <ac131313@redhat.com>
10264
10265 * valops.c (PUSH_ARGUMENTS): Delete definition.
10266 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10267 partial. Default to default_push_arguments.
10268 * gdbarch.h, gdbarch.c: Regenerate.
10269
b5a2688f
AC
102702002-02-09 Andrew Cagney <ac131313@redhat.com>
10271
10272 * defs.h (throw_exception): Rename return_to_top_level. Update
10273 comments.
10274 * utils.c (error_stream, internal_verror, quit): Ditto.
10275 * top.c (throw_exception, catcher): Ditto.
10276 * sparclet-rom.c (sparclet_load): Ditto.
10277 * remote.c (interrupt_query, minitelnet): Ditto.
10278 * remote-sds.c (interrupt_query): Ditto.
10279 * remote-mips.c (mips_error, mips_kill): Ditto.
10280 * ocd.c (interrupt_query): Ditto.
10281 * monitor.c (monitor_interrupt_query): Ditto.
10282 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10283 * target.h: Update comment.
aaa38bb5 10284
b5a2688f 10285 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10286
2fa5c1e0
AC
102872002-02-09 Andrew Cagney <ac131313@redhat.com>
10288
10289 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10290 default_double_format.
10291 * gdbarch.h, gdbarch.c: Re-generate.
10292 * findvar.c (floatformat_unknown): Delete variable definition.
10293 * doublest.h (floatformat_unknown): Delete variable declaration.
10294
da966255
JB
102952002-02-09 Jim Blandy <jimb@redhat.com>
10296
10297 * stabsread.c (read_type): Add code to parse Sun's syntax for
10298 prototyped function types.
10299
123a4891
AC
103002002-02-09 Andrew Cagney <ac131313@redhat.com>
10301
10302 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10303 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10304
fb39c8f3
PS
103052002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10306
10307 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10308 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10309 now _initialize_xcoffsolib gets called again and overrides the
10310 commands from solib.c in a native configuration.
10311
0b87a11d
MK
103122002-02-09 Mark Kettenis <kettenis@gnu.org>
10313
10314 * doublest.c (store_typed_floating): Don't try to return a value.
10315 Fixes PR gdb/290.
10316
bdc2fc72
JB
103172002-02-08 Jim Blandy <jimb@redhat.com>
10318
10319 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10320 is prototyped and has no arguments, print its argument list as
10321 `(void)'.
10322
da69bbcf
CD
103232002-02-08 Chris Demetriou <cgd@broadcom.com>
10324
10325 * MAINTAINERS (write-after-approval): Add myself.
10326 (paper-trail): I've escaped!
aaa38bb5 10327
b69571f5
CF
103282002-02-08 Christopher Faylor <cgf@redhat.com>
10329
10330 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10331 changes.
10332 (_initialize_check_for_gdb_ini): Ditto.
10333
f6871398
MH
103342002-02-08 Martin M. Hunt <hunt@redhat.com>
10335
10336 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10337 xaprintf -> xasprintf.
10338
4e52d31c
PM
103392002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10340
10341 * win32-nat.c: Remove use of printf and sprintf functions.
10342
39bbf761
RE
103432002-02-08 Richard Earnshaw <rearnsha@arm.com>
10344
10345 * arm-tdep.c (arm_frame_chain_valid): Make static.
10346 (arm_push_arguments): Likewise.
10347 (arm_gdbarch_init): New function.
10348 (_initialize_arm_tdep): Call it.
10349 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10350 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10351 (FRAME_CHAIN_VALID): Delete.
10352 (arm_frame_chain_valid): Delete declaration.
10353 (PUSH_ARGUMENTS): Delete.
10354 (arm_push_arguments): Delete declaration.
10355 (CALL_DUMMY_P): Delete.
10356
9c9532c9
CV
103572002-02-08 Andrew Cagney <ac131313@redhat.com>
10358 Corinna Vinschen <vinschen@redhat.com>
10359
10360 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10361 on builtin float types.
10362
4e8f7a8b
DJ
103632002-02-08 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * utils.c: Include <curses.h> before "bfd.h".
10366 * tui/tui-hooks.c: Likewise.
10367 * tui/tui.c: Likewise.
10368 * tui/tuiCommand.c: Likewise.
10369 * tui/tuiData.c: Likewise.
10370 * tui/tuiDataWin.c: Likewise.
10371 * tui/tuiDisassem.c: Likewise.
10372 * tui/tuiGeneralWin.c: Likewise.
10373 * tui/tuiIO.c: Likewise.
10374 * tui/tuiLayout.c: Likewise.
10375 * tui/tuiRegs.c: Likewise.
10376 * tui/tuiSource.c: Likewise.
10377 * tui/tuiSourceWin.c: Likewise.
10378 * tui/tuiStack.c: Likewise.
10379 * tui/tuiWin.c: Likewise.
10380
cd4bffcf
EZ
103812002-02-07 Elena Zannoni <ezannoni@redhat.com>
10382
10383 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10384 to include space for pseudoregs as well. Update loops accordingly.
10385 (sh_fp_frame_init_saved_regs): Ditto.
10386 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10387
26806ce2
AC
103882002-02-07 Andrew Cagney <ac131313@redhat.com>
10389
10390 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10391 Add Richard Earnshaw to Arm maintainers.
10392
97fdab62
AC
103932002-02-07 Andrew Cagney <ac131313@redhat.com>
10394
a6b98203
AC
10395 * defs.h (warning_begin): Delete declaration.
10396
97fdab62
AC
10397 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10398 Delete macro.
10399
78b29b40
MS
104002002-02-07 Michael Snyder <msnyder@redhat.com>
10401
aaa38bb5 10402 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10403 Logic bug, remove misplaced else.
10404
d8849953
KD
104052002-02-07 Klee Dienes <klee@apple.com>
10406
10407 * fork-inferior.c (fork_inferior): Add '!' to the list of
10408 characters that need to be quoted when building a string for the
10409 shell. Quote '!' specifically with a backslash, since CSH chokes
10410 when trying to evaluate "str!str".
aaa38bb5 10411
095778a0
NC
104122002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10413
10414 * rdi-share/host.h: Only provide a typedef for bool if it is not
10415 defined.
10416
1900040c
MS
104172002-02-04 Michael Snyder <msnyder@redhat.com>
10418
10419 * breakpoint.h (enum bptype): Add new overlay event bp type.
10420 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10421
1900040c
MS
10422 * breakpoint.c (create_internal_breakpoint): New function.
10423 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10424 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10425 (create_thread_event_breakpoint): Ditto.
10426 (create_solib_event_breakpoint): Ditto.
10427 (create_overlay_event_breakpoint): New function.
10428 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10429 (update_breakpoints_after_exec): Delete and re-initialize
10430 overlay event breakpoints after an exec. Add FIXME comment
10431 about longjmp breakpoint.
10432 (print_it_typical): Ignore overlay event breakpoints.
10433 (print_one_breakpoint): Ditto.
10434 (mention): Ditto.
10435 (bpstat_what): Do not stop for overlay event breakpoints.
10436 (delete_breakpoint): Don't delete overlay event breakpoints.
10437 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10438 (breakpoint_re_set): Re-create overlay event breakpoint.
10439
10440 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10441 (overlay_manual_command): Disable overlay breakpoints.
10442 (overlay_off_command): Disable overlay breakpoints.
10443
082fc60d
RE
104442002-02-06 Richard Earnshaw <rearnsha@arm.com>
10445
10446 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10447 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10448 to here from config/tm-arm.h.
10449 (coff_sym_is_thumb): Make static.
10450 (arm_elf_make_msymbol_special): New function.
10451 (arm_coff_make_msymbol_special): New function.
10452 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10453 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10454 (coff_sym_is_thumb): Delete declaration.
10455 (arm_elf_make_msymbol_special): Declare.
10456 (arm_coff_make_msymbol_special): Declare.
10457 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10458 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10459
039c5766
RE
104602002-02-06 Richard Earnshaw <rearnsha@arm.com>
10461
10462 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10463
104642002-02-06 Richard Earnshaw <rearnsha@arm.com>
10465
10466 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10467 * gdbarch.c gdbarch.h: Regenerate.
10468 * arch-utils.c (default_print_float_info): New function.
10469 * arch-utils.h (default_print_float_info): Prototype it.
10470 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10471 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10472 (PRINT_FLOAT_INFO): Document it.
10473
10474 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10475 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10476 (PRINT_FLOAT_INFO): Define.
10477
58fa08f0
PM
104782002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10479
aaa38bb5 10480 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10481 Add typecast to sprintf argument to suppress a warning.
10482
7393af7c
PM
104832002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10484
58fa08f0 10485 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10486 to allow easier handling of pass state.
10487 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10488 that gives exception name and address.
10489 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10490 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10491 exceptions added.
aaa38bb5
AJ
10492 (child_continue): Correctly report continue_status.
10493 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10494 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10495 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10496 the exception should be passed to debuggee or not.
10497
6af4589c
MS
104982002-02-05 Michael Snyder <msnyder@redhat.com>
10499
10500 * regcache.c (fetch_register): Call target_fetch_register
10501 only if we don't call FETCH_PSEUDO_REGISTER.
10502 (store_register): Call target_store_register only if we
10503 don't call STORE_PSEUDO_REGISTER.
10504
a2cf933a
EZ
105052002-02-05 Elena Zannoni <ezannoni@redhat.com>
10506
10507 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10508 ELF_MAKE_MSYMBOL_SPECIAL.
10509 * gdbarch.c, gdbarch.h: Regenerate.
10510 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10511 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10512 * elfread.c (elf_symtab_read): Compile use of
10513 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10514 multiarched.
10515 * coffread.c (coff_symtab_read): Ditto, for
10516 COFF_MAKE_MSYMBOL_SPECIAL.
10517
6bb7be43
JB
105182002-02-05 Jim Blandy <jimb@redhat.com>
10519
10520 * solib-svr4.c (svr4_truncate_ptr): New function.
10521 (svr4_relocate_section_addresses): Do the address arithmetic with
10522 the appropriate truncation for target addresses, even when
10523 CORE_ADDR is larger than a target address.
10524
e18651ec
DJ
105252002-02-05 Daniel Jacobowitz <drow@mvista.com>
10526
10527 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10528 to (int *).
10529
6b2725be
DJ
105302002-02-05 Daniel Jacobowitz <drow@mvista.com>
10531
10532 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10533 code.
10534
fca9e603
DJ
105352002-02-05 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10538
6c537a52
DJ
105392002-02-05 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * gdbserver/linux-low.c: Remove unused include files.
10542
d844cde6
DJ
105432002-02-05 Daniel Jacobowitz <drow@mvista.com>
10544
10545 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10546 (read_inferior_memory): Use it.
10547 (write_inferior_memory): Likewise.
10548
d07c63e7
DJ
105492002-02-05 Daniel Jacobowitz <drow@mvista.com>
10550
10551 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10552 grubbing through sys_errlist.
10553
da6d8c04
DJ
105542002-02-05 Daniel Jacobowitz <drow@mvista.com>
10555
10556 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10557
5b421780
PM
105582002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10559 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10560
9f60d481
AC
105612002-02-04 Andrew Cagney <ac131313@redhat.com>
10562
10563 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10564 (do_sfunc, set_cmd_sfunc): New functions.
10565
10566 * command.h (struct cmd_list_element): Add field func.
10567 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10568 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10569 * cli/cli-decode.h: Ditto.
10570
10571 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10572 (help_all, help_cmd_list): Ditto.
10573 (find_cmd, complete_on_cmdlist): Ditto.
10574 * top.c (execute_command): Ditto.
10575
10576 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10577 function.sfunc.
10578
10579 * infcmd.c (notice_args_read): Fix function signature.
10580
10581 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10582 * cli/cli-decode.c (add_set_cmd): Ditto.
10583 * utils.c (initialize_utils): Ditto.
10584 * maint.c (_initialize_maint_cmds): Ditto.
10585 * infrun.c (_initialize_infrun): Ditto.
10586 * demangle.c (_initialize_demangler): Ditto.
10587 * remote.c (add_packet_config_cmd): Ditto.
10588 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10589 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10590 * proc-api.c (_initialize_proc_api): Ditto.
10591 * kod.c (_initialize_kod): Ditto.
10592 * valprint.c (_initialize_valprint): Ditto.
10593 * top.c (init_main): Ditto.
10594 * infcmd.c (_initialize_infcmd): Ditto.
10595 * corefile.c (_initialize_core): Ditto.
10596 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10597 * arch-utils.c (initialize_current_architecture): Ditto.
10598 (_initialize_gdbarch_utils): Ditto.
10599 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10600
10601 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10602 * wince.c (_initialize_inftarg): Ditto.
10603 * symfile.c (_initialize_symfile): Ditto.
10604 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10605 * language.c (_initialize_language): Ditto.
10606 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10607
f9ba0717
MS
106082002-02-04 Michael Snyder <msnyder@redhat.com>
10609
10610 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10611
0c74b2a7
DJ
106122002-02-04 Daniel Jacobowitz <drow@mvista.com>
10613
10614 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10615 Add rules for building the register data files.
10616
c638789f
DJ
106172002-02-04 Daniel Jacobowitz <drow@mvista.com>
10618
10619 * regformats/regdat.sh: Add braces to the definition of
10620 expedite_regs_${arch}.
10621
db253027
DJ
106222002-02-04 Daniel Jacobowitz <drow@mvista.com>
10623
10624 * regformats/regdef.h (struct reg): Add comment describing the
10625 requirements for offset and size fields.
10626
206be19c
AS
106272002-02-04 Andreas Schwab <schwab@suse.de>
10628
10629 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10630 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10631
181c1381
RE
106322002-02-04 Richard Earnshaw <rearnsha@arm.com>
10633
10634 * gdbarch.sh (copyright): Update years in generated header.
10635 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10636 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10637 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10638 * dbxread.c: Likewise.
10639 * dwarfread.c: Likewise.
10640 * elfread.c: Likewise.
10641 * somread.c: Likewise.
10642
10643 * arm-tdep.c (arm_smash_text_address): New function.
10644 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10645
fa4ba8da
PM
106462002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10647
10648 Add support for hardware watchpoints on win32 native.
aaa38bb5 10649 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10650 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10651 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10652 of debug registers.
10653 (debug_registers_changed): New variable. Reflects when debug registers
10654 are changed and need to be written to inferior.
aaa38bb5 10655 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10656 was set, used when new threads are created.
10657 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10658 i386-nat code.
10659 (thread_rec): Set dr array if id is the thread of current_event .
10660 (child_continue, child_resume): Change the debug registers for all
10661 threads if debug_registers_changed.
10662 (child_add_thread): Change the debug registers if debug_registers_used.
10663 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10664 Link nm.h to new nm-cygwin.h file.
10665 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10666 of hardware registers.
10667
a73c86fb
AC
106682002-02-03 Andrew Cagney <ac131313@redhat.com>
10669
10670 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10671 Restore behavour broken by 2002-01-20 Andrew Cagney
10672 <ac131313@redhat.com> IEEE_FLOAT removal.
10673
acf5ed49
DJ
106742002-02-03 Daniel Jacobowitz <drow@mvista.com>
10675
10676 * c-valprint.c (c_val_print): Pass a proper valaddr to
10677 cp_print_class_method.
10678 * valops.c (search_struct_method): If there is only one method
10679 and args is NULL, return that method.
10680
493d28d5
DJ
106812002-02-03 Daniel Jacobowitz <drow@mvista.com>
10682
10683 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10684 accessing tag_name directly.
10685
7495dfdb
DJ
106862002-02-03 Daniel Jacobowitz <drow@mvista.com>
10687
10688 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10689 of accessing tag_name directly.
10690
dd6bda65
DJ
106912002-02-03 Daniel Jacobowitz <drow@mvista.com>
10692
10693 PR gdb/280
10694 * gdbtypes.c (replace_type): New function.
10695 * gdbtypes.h (replace_type): Add prototype.
10696 * stabsread.c (read_type): Use replace_type.
10697
88fe217c
RE
106982002-02-03 Richard Earnshaw <rearnsha@arm.com>
10699
10700 * Makefile.in (memattr.o): Add missing dependencies rule.
10701
e5d66720
PS
107022002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10703
10704 * breakpoint.c (break_at_finish_command): Really export.
10705 (break_at_finish_at_depth_command): Ditto.
10706 (tbreak_at_finish_command): Ditto.
10707 * hppa-tdep.c: Include completer.h.
10708 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10709 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10710
fffee0be
AC
107112002-02-01 Andrew Cagney <ac131313@redhat.com>
10712
10713 * utils.c (do_write): New function.
10714 (error_stream): Rewrite combining the code from error_begin and
10715 verror.
10716 (verror): Rewrite using error_stream.
10717 (error_begin): Delete function.
10718
255e7dbf
AC
107192002-02-01 Andrew Cagney <ac131313@redhat.com>
10720
10721 * utils.c (error_begin): Make static.
10722 * defs.h (error_begin): Delete declaration.
10723
10724 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10725 (decode_line_1): Use cplusplus_error instead of error_begin,
10726 cplusplus_hint and return_to_top_level.
10727 * coffread.c (coff_symfile_read): Use error instead of error_begin
10728 and return_to_top_level.
10729 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10730
ddfe3c15
AC
107312002-02-01 Andrew Cagney <ac131313@redhat.com>
10732
10733 * language.h (type_error, range_error): Make string parameter
10734 constant.
10735 * language.c (warning_pre_print): Delete extern declaration.
10736 * dwarfread.c (warning_pre_print): Ditto.
10737 * language.c (type_error, range_error): Rewrite to use verror and
10738 vwarning instead of warning_begin.
10739
03ac34d5
MS
107402002-02-01 Michael Snyder <msnyder@redhat.com>
10741
261c4ca2
MS
10742 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10743 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10744
e00d1dc8
AC
107452002-02-01 Andrew Cagney <ac131313@redhat.com>
10746
10747 * command.h (NO_FUNCTION): Delete macro.
10748 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10749 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10750 * tracepoint.c (_initialize_tracepoint): Ditto.
10751 * cli/cli-decode.c (add_set_cmd): Ditto.
10752 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10753
76b79d6e
DJ
107542002-02-01 Daniel Jacobowitz <drow@mvista.com>
10755
10756 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10757 Update ``this'' pointer when calling virtual functions.
10758
799f9e91
MS
107592002-02-01 Michael Snyder <msnyder@redhat.com>
10760
c7bd442c 10761 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10762 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10763
3cf384d4
DJ
107642002-02-01 Daniel Jacobowitz <drow@mvista.com>
10765
10766 * regformats/reg-arm.dat: New file.
10767 * regformats/reg-i386.dat: New file.
10768 * regformats/reg-ia64.dat: New file.
10769 * regformats/reg-m68k.dat: New file.
10770 * regformats/reg-mips.dat: New file.
10771 * regformats/reg-ppc.dat: New file.
10772 * regformats/reg-sh.dat: New file.
10773 * regformats/regdef.h: New file.
10774 * regformats/regdat.sh: New file.
10775
0defa245
RE
107762002-02-01 Richard Earnshaw <reanrsha@arm.com>
10777
10778 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10779 (arm_frame_args_address, arm_frame_locals_address): New functions.
10780 (arm_frame_num_args): New function.
10781 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10782 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10783 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10784
405f26e6
MS
107852002-01-31 Michael Snyder <msnyder@redhat.com>
10786
502fd408
MS
10787 * breakpoint.c (break_at_finish_command): Export.
10788 (break_at_finish_at_depth_command): Export.
10789 (tbreak_at_finish_command): Export.
d6020d45 10790 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10791 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10792 "txbreak" commands, which are HPPA specific.
502fd408 10793
7d35e135
MS
10794 * printcmd.c (disassemble_command): Remove an ancient
10795 artifact of an old merge.
10796
aaa38bb5 10797 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10798 Define enum constant values for overlay mode.
10799 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10800 (overlay_is_mapped, overlay_auto_command,
10801 overlay_manual_command): Ditto.
d874f1e2 10802
aaa38bb5
AJ
10803 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10804 breakpoint_here_p, breakpoint_inserted_here_p,
10805 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10806 describe_other_breakpoints, check_duplicates, clear_command):
10807 Coding standard fixes.
10808
8add0441 10809 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10810 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10811 code: check bfd SEC_READONLY flag for section.
10812
e351066e
AC
108132002-01-31 Andrew Cagney <ac131313@redhat.com>
10814
7d35e135 10815 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10816
8a48e967
DJ
108172002-01-30 Daniel Jacobowitz <drow@mvista.com>
10818
10819 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10820 data symbols, since we search based on textlow and texthigh.
10821 (find_pc_sect_symtab): Likewise.
10822
f5a96129
AC
108232002-01-30 Andrew Cagney <ac131313@redhat.com>
10824
10825 * defs.h (vwarning): Declare.
f5a96129
AC
10826 * utils.c (vwarning): New function.
10827 (warning): Call vwarning.
10828 (warning_begin): Delete function.
10829
10830 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10831 the warning message.
10832 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10833 warning_begin.
10834
cefd4ef5
MS
108352002-01-30 Michael Snyder <msnyder@redhat.com>
10836
1a703748
MS
10837 * NEWS: Mention "set trust-readonly-sections" command.
10838 Mention generate-core-file command.
cefd4ef5 10839
3a11626d
MS
108402002-01-15 Michael Snyder <msnyder@redhat.com>
10841
10842 * target.c: New command, "set trust-readonly-sections on".
10843 (do_xfer_memory): Honor the suggestion to trust readonly sections
10844 by reading them from the object file instead of from the target.
10845 (initialize_targets): Register command "set trust-readonly-sections".
10846
d1c7e53b
AC
108472002-01-29 Andrew Cagney <ac131313@redhat.com>
10848
10849 * parse.c (target_map_name_to_register): Simplify, search regs and
10850 pseudo-regs using a single loop.
10851
e2c9a72c
AC
108522002-01-30 Andrew Cagney <ac131313@redhat.com>
10853
10854 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10855
69824b4e
MK
108562002-01-15 Rodney Brown <rbrown64@csc.com.au>
10857
10858 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10859 * config/i386/i386v42mp.mh: Add i387-nat.o .
10860 * i386v4-nat.c: Include i387-nat.h.
10861 (supply_fpregset): Use i387_supply_fsave.
10862 (fill_fpregset): Use i387_fill_fsave.
10863
6eb69eab
RE
108642002-01-30 Richard Earnshaw <rearnsha@arm.com>
10865
10866 * arm-tdep.c (arm_call_dummy_words): Define.
10867 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10868 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10869 (CALL_DUMMY_WORDS): Define.
10870 (arm_call_dummy_words): Declare.
10871 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10872 (arm_linux_call_dummy_words): Declare.
10873
9852326a
AS
108742002-01-30 Andreas Schwab <schwab@suse.de>
10875
10876 * m68klinux-nat.c: Fix last change to use regcache_collect
10877 instead of referencing registers[] directly.
10878
977a3030
AC
108792002-01-29 Andrew Cagney <ac131313@redhat.com>
10880
10881 * parse.c (target_map_name_to_register): Delete code wrapped in
10882 #ifdef REGISTER_NAME_ALIAS_HOOK.
10883
2076c72b
MS
108842002-01-28 Michael Snyder <msnyder@redhat.com>
10885
10886 * regcache.c (legacy_read_register_gen): Need to be able to
10887 read pseudo-register as well as real register.
10888 (legacy_write_register_gen): Ditto.
10889
8fcc723b
AC
108902002-01-28 Andrew Cagney <ac131313@redhat.com>
10891
10892 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10893 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10894 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10895 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10896 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10897 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10898 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10899 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10900 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10901 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10902 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10903 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10904 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10905 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10906 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10907 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10908 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10909 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10910 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10911 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10912
afe64c1a
AC
109132002-01-28 Andrew Cagney <ac131313@redhat.com>
10914
10915 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10916 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10917 (initialize_current_architecture): Update target_byte_order using
10918 information from BFD.
aaa38bb5 10919 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10920 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10921
75bc7ddf
AC
109222002-01-28 Andrew Cagney <ac131313@redhat.com>
10923
10924 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10925 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10926
10927 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10928 #ifdef INVALID_FLOAT.
10929 * infcmd.c (do_registers_info): Ditto.
10930 * values.c (unpack_double): Ditto. Add comment.
10931
10932 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10933 already commented out.
10934
0280a90a
AS
109352002-01-26 Andreas Schwab <schwab@suse.de>
10936
10937 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10938 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10939 registers and add support for PTRACE_GETREGS.
10940
7072a954
AC
109412002-01-24 Andrew Cagney <ac131313@redhat.com>
10942
10943 GDB 5.1.1 released from 5.1 branch.
10944 * NEWS: Add 5.1.1 news.
10945 * README: Sync with 5.1 branch.
10946
86f902e0
FF
109472002-01-23 Fred Fish <fnf@redhat.com>
10948
10949 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10950 stabstring on initial malloc. Reallocing will copy it for us,
10951 if necessary.
10952
8af51c36
EZ
109532002-01-23 Elena Zannoni <ezannoni@redhat.com>
10954
aaa38bb5 10955 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10956 (HFILES_NO_SRCDIR): Remove hpread.h.
10957 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10958 (hpread.o): Update dependencies.
10959 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10960
10961 * hp-psymtab-read.c: Remove file.
10962 * hp-symtab-read.c: Remove file.
10963 * hpread.h: Remove file.
10964
10965 * hpread.c: Merge all contents of hp-psymtab-read.c,
10966 hp-symtab-read.c and hpread.h into this file, as it was prior to
10967 January 1999.
10968
10969 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10970 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10971 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10972 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10973
dc5cfeb6
EZ
109742002-01-23 Elena Zannoni <ezannoni@redhat.com>
10975
10976 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10977 fill_gregset): Call gdbarch_tdep() just once, assign result to
10978 variable and use that, instead of calling the function several
10979 times.
10980
ea87b71b
AO
109812002-01-24 Alexandre Oliva <aoliva@redhat.com>
10982
10983 * configure.host: Accept sparcv9 as alias for sparc64.
10984 * configure.tgt: Likewise.
10985
13fc0c2f
KB
109862002-01-22 Kevin Buettner <kevinb@redhat.com>
10987
10988 * solib-aix5.c (build_so_list_from_mapfile)
10989 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10990 arguments is not reversed.
10991 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10992 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10993
7bd872fe
EZ
109942002-01-22 Elena Zannoni <ezannoni@redhat.com>
10995
10996 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10997 modified version of obsolete sh_fetch_pseudo_register.
10998 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10999 (sh4_register_read): New function.
11000 (sh_pseudo_register_write): New function. Renamed and modified
11001 version of obsolete sh_store_pseudo_register.
11002 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11003 (sh4_register_write): New function.
11004 (sh_gdbarch_init): Remove setting of gdbarch function
11005 fetch_pseudo_register and store_pseudo_register. Remove setting of
11006 register_convert_to_raw, register_convert_to_virtual,
11007 register_convertible.
11008 (sh_sh4_register_convertible): Delete. No longer needed. All is
11009 taken care by architecture specific functions
11010 register_read/register_write.
11011 (sh_sh4_register_convert_to_virtual): Make static.
11012 (sh_sh4_register_convert_to_raw): Ditto.
11013
069e84fd
AC
110142002-01-22 Andrew Cagney <ac131313@redhat.com>
11015
11016 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11017 (floatformat_is_nan, floatformat_mantissa): Ditto.
11018
11019 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11020 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11021 builtin_type_ieee_double_little,
11022 builtin_type_ieee_double_littlebyte_bigword,
11023 builtin_type_m68881_ext, builtin_type_i960_ext,
11024 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11025 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11026 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11027 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11028
211a4f69
CV
110292002-01-22 Corinna Vinschen <vinschen@redhat.com>
11030
11031 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11032 parameter. Set frameless flag if it exists and depended of
11033 whether the scanned function is frameless or not.
11034 (xstormy16_skip_prologue): If function is frameless, return
11035 result of xstormy16_scan_prologue().
11036 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11037 call.
11038
f81353e4
EZ
110392002-01-21 Elena Zannoni <ezannoni@redhat.com>
11040
11041 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11042 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11043 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11044 sh_sh4_register_byte, sh_sh4_register_raw_size,
11045 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11046 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11047 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11048 sh_store_pseudo_register, sh_do_pseudo_register): Call
11049 gdbarch_tdep() just once, assign result to variable and use that,
11050 instead of calling the function several times.
11051
63c73a17
MK
110522002-01-20 Mark Kettenis <kettenis@gnu.org>
11053
11054 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11055 macros instead of LAST_FPU_CTRL_REGNUM.
11056 (store_register): Likewise.
11057
39ad761d
JB
110582002-01-21 Jim Blandy <jimb@redhat.com>
11059
11060 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11061 is up-to-date before running the program, not just when a program
11062 exits.
11063
3d74b771
FF
110642002-01-21 Fred Fish <fnf@redhat.com>
11065
11066 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11067 when we have found all instructions we are looking for.
11068
966fbf70
RE
110692002-01-21 Richard Earnshaw <rearnsha@arm.com>
11070
11071 * arm-tdep.c (arm_register_name): New function.
11072 (arm_registers_names): Make static.
11073 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11074 (arm_register_name): Declare.
11075 (REGISTER_NAME): Use it.
11076
c3b4394c
RE
110772002-01-21 Richard Earnshaw <rearnsha@arm.com>
11078 Kevin Buettner <kevinb@redhat.com>
11079
11080 Convert arm targets to new FRAME interface.
11081 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11082 (arm_frame_find_save_regs): Delete.
11083 (arm_frame_init_saved_regs): New.
11084 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11085 Allocate extra_info as required. Convert all uses of fsr.regs
11086 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11087 to use extra_info.
11088 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11089 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11090 (check_prologue_cache, save_prologue_cache): Likewise.
11091 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11092 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11093 (FRAME_FIND_SAVED_REGS): Delete.
11094 (arm_frame_find_saved_regs): Delete prototype.
11095 (arm_frame_init_saved_regs): New prototype.
11096 (FRAME_INIT_SAVED_REGS): Define.
11097
61d99182
AC
110982002-01-20 Andrew Cagney <ac131313@redhat.com>
11099
11100 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11101
6aaea291
AC
111022002-01-20 Andrew Cagney <ac131313@redhat.com>
11103
11104 From Jeff Law <law@redhat.com>:
11105 * infttrace.c: Include <sys/pstat.h>.
11106 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11107 exec file if the ttrace equivalent fails.
11108
15f698d2
AC
111092002-01-20 Andrew Cagney <ac131313@redhat.com>
11110
11111 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11112 (closeLogFile): Ditto.
11113
f86ddd7c
MC
111142002-01-20 Michael Chastain <mec@shout.net>
11115
11116 * top.c (print_gdb_version): Bump copyright year to 2002.
11117
904507ce
AC
111182002-01-20 Andrew Cagney <ac131313@redhat.com>
11119
11120 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11121 Zannoni and Eli Zaretskii.
11122
d7f0b9ce
DJ
111232002-01-20 Daniel Jacobowitz <drow@mvista.com>
11124
11125 * buildsym.c: Update copyright years.
11126 * c-typeprint.c: Likewise.
11127 * dwarf2read.c: Likewise.
11128 * f-typeprint.c: Likewise.
11129 * gdbtypes.c: Likewise.
11130 * gdbtypes.h: Likewise.
11131 * hp-symtab-read.c: Likewise.
11132 * hpread.c: Likewise.
11133 * mdebugread.c: Likewise.
11134 * p-typeprint.c: Likewise.
11135
3fd3d7d2
AC
111362002-01-20 Andrew Cagney <ac131313@redhat.com>
11137
11138 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11139 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11140 byte-order selectable.
11141 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11142 * arch-utils.c: Ditto.
11143 (set_endian): Ditto.
11144 (set_endian_from_file): Ditto.
11145 * gdbserver/low-sim.c (create_inferior): Ditto.
11146 * gdbarch.sh: Ditto.
11147 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11148 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11149 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11150 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11151 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11152 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11153 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11154 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11155 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11156 macro definition.
11157 * config/mips/tm-wince.h: Remove #undef of macro
11158 TARGET_BYTE_ORDER_SELECTABLE.
11159 * config/sh/tm-wince.h: Ditto.
11160
b02dede2
DJ
111612002-01-20 Daniel Jacobowitz <drow@mvista.com>
11162
11163 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11164 member function fields. Add accessor macro
11165 TYPE_FN_FIELD_ARTIFICIAL.
11166 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11167 * c-typeprint.c (c_type_print_base): Skip artificial member
11168 functions.
11169
c3643761
DJ
111702002-01-20 Daniel Jacobowitz <drow@mvista.com>
11171
11172 * f-typeprint.c: Delete unused function f_type_print_args.
11173 * p-typeprint.c: Delete unused function pascal_type_print_args.
11174
8176bb6d
DJ
111752002-01-20 Daniel Jacobowitz <drow@mvista.com>
11176
11177 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11178 comment. Add ``artificial'' to ``union field_location''.
11179
11180 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11181
11182 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11183 * mdebugread.c (parse_symbol): Likewise.
11184 * stabsread.c (define_symbol): Likewise.
11185 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11186 initializing TYPE_FIELD_BITPOS to n (obsolete).
11187 (hpread_doc_function_type): Likewise.
11188 * hpread.c (hpread_function_type): Likewise.
11189
7fd60527
AC
111902002-01-20 Andrew Cagney <ac131313@redhat.com>
11191
11192 * configure.in (host_makefile_frag): Only require a host makefile
11193 fragment when a native build.
11194 * configure: Re-generate.
11195
c2f05ac9
AC
111962002-01-20 Andrew Cagney <ac131313@redhat.com>
11197
11198 * doublest.h (floatformat_from_type): Declare.
11199 * doublest.c (floatformat_from_type): New function.
11200 (convert_typed_floating): Use.
11201
11202 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11203 call to function floatformat_from_type.
11204
11205 * gdbarch.sh (IEEE_FLOAT): Delete.
11206 * gdbarch.h, gdbarch.c: Re-generate.
11207 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11208 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11209 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11210 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11211 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11212 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11213 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11214 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11215 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11216 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11217 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11218 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11219
11220 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11221 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11222 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11223 * sh-tdep.c (sh_gdbarch_init): Ditto.
11224 * mips-tdep.c (mips_gdbarch_init): Ditto.
11225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11226 * cris-tdep.c (cris_gdbarch_init): Ditto.
11227
abf22e64
AJ
112282002-01-20 Jiri Smid <smid@suse.cz>
11229
11230 * configure.host, configure.tgt: Support x86-64.
11231 * NEWS: Note new target x86-64.
11232
b7c4cbf8
AJ
11233 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11234 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11235 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11236 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11237 x86-64-linux-nat.o): Fix dependencies.
11238
82600034
AC
112392002-01-19 Andrew Cagney <ac131313@redhat.com>
11240
11241 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11242 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11243 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11244 * config/sparc/xm-sun4os4.h: Delete file.
11245 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11246
bbe5c628
AC
112472002-01-19 Andrew Cagney <ac131313@redhat.com>
11248
11249 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11250 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11251 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11252 * config/i386/i386lynx.mh (XM_FILE): Delete.
11253 * config/rs6000/xm-rs6000ly.h: Delete file.
11254 * config/sparc/xm-sparclynx.h: Delete file.
11255 * config/m68k/xm-m68klynx.h: Delete file.
11256 * config/i386/xm-i386lynx.h: Delete file.
11257 * config/xm-lynx.h: Delete file.
11258 * config/djgpp/fnchange.lst: Update.
11259
f8453e34
JT
112602002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11261
11262 * alpha-tdep.c (alpha_register_byte): New function.
11263 (alpha_register_raw_size): Ditto.
11264 (alpha_register_virtual_size): Ditto.
11265 (alpha_skip_prologue_internal): Renamed from
11266 alpha_skip_prologue.
11267 (alpha_skip_prologue): New version that calls
11268 alpha_skip_prologue_internal.
11269 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11270 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11271 second argument from alpha_skip_prologue.
11272 (REGISTER_BYTE): Use alpha_register_byte.
11273 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11274 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11275 (FRAMELESS_FUNCTION_INVOCATION): Use
11276 generic_frameless_function_invocation_not.
11277 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11278 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11279
52d9e613
AC
112802002-01-19 Andrew Cagney <ac131313@redhat.com>
11281
11282 * config/mips/xm-news-mips.h: Delete file.
11283 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11284
11285 * config/m88k/xm-m88k.h: Delete file.
11286 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11287 * config/m88k/xm-delta88v4.h: Ditto.
11288 * config/m88k/xm-delta88.h: Ditto.
11289
11290 * config/alpha/xm-fbsd.h: Delete file.
11291 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11292
11293 * config/sparc/xm-sparc.h: Delete file.
11294 * Makefile.in (xm-sun4os4.h): Delete dependency.
11295 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11296 * config/sparc/xm-sun4os4.h: Ditto.
11297 * config/sparc/xm-linux.h: Ditto.
11298
11299 * config/i386/xm-windows.h: Delete file.
11300
2d1b2124
AC
113012002-01-19 Andrew Cagney <ac131313@redhat.com>
11302
11303 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11304 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11305
ee1f65f0
JT
113062002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11307
11308 * alpha-tdep.c (alpha_call_dummy_words): New.
11309 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11310 (CALL_DUMMY_P): Define.
11311 (CALL_DUMMY_WORDS): Define.
11312 (SIZEOF_CALL_DUMMY_WORDS): Define.
11313
98081e55
PB
113142002-01-19 Per Bothner <per@bothner.com>
11315
11316 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11317 isn't NULL, which can happen with some gcj-3.x-produced code.
11318
0d056799
JT
113192002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11320
11321 * alpha-tdep.c (alpha_register_virtual_type): New function.
11322 (alpha_init_frame_pc_first): Ditto.
11323 (alpha_fix_call_dummy): Ditto.
11324 (alpha_store_struct_return): Ditto.
11325 (alpha_extract_struct_value_address): Ditto.
11326 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11327 alpha_register_virtual_type.
11328 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11329 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11330 alpha_extract_struct_value_address.
11331 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11332 (INIT_FRAME_PC): Use init_frame_pc_noop.
11333 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11334
4604bcad
MK
113352002-01-19 Mark Kettenis <kettenis@gnu.org>
11336
11337 * i386gnu-nat.c: Include "i386-tdep.h".
11338 (fetch_fpregs): Simplify code dealing with uninitialized floating
11339 point states such that it doesn't require FP7_REGNUM.
11340
140f9984
JT
113412002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11342
abf22e64
AJ
11343 * alpha-tdep.c (frame_extra_info): New.
11344 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11345 frame->extra_info.
11346 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11347 (alpha_frame_saved_pc): Use frame->extra_info.
11348 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11349 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11350 (init_extra_frame_info): Rename to...
11351 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11352 (alpha_print_extra_frame_info): New function.
140f9984
JT
11353 (alpha_frame_locals_address): Ditto.
11354 (alpha_frame_args_address): Ditto.
abf22e64 11355 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11356 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11357 alpha_frame_args_address.
abf22e64 11358 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11359 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11360 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11361 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11362 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11363 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11364
d734c450
JT
113652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11366
11367 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11368 (alpha_cannot_fetch_register): Ditto.
11369 (alpha_cannot_store_register): Ditto.
11370 (alpha_register_convertible): Ditto.
11371 (alpha_use_struct_convention): Ditto.
11372 * config/alpha/tm-alpha.h: Update copyright years.
11373 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11374 (INNER_THAN): Use core_addr_lessthan.
11375 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11376 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11377 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11378 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11379 (FRAME_CHAIN): Remove unnecessary cast.
11380
b4ceaee6
AC
113812002-01-18 Andrew Cagney <ac131313@redhat.com>
11382
11383 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11384 obsolete.
11385
0a65a603
AC
113862002-01-18 Andrew Cagney <ac131313@redhat.com>
11387
11388 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11389 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11390 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11391 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11392 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11393 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11394 * x86-64-linux-nat.c: Ditto.
11395
636a6dfc
JT
113962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11397
abf22e64 11398 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11399 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11400 (REGISTER_NAME): Define.
11401
acceddb6
JT
114022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11403
11404 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11405
ec32e4be
JT
114062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11407
11408 * alpha-tdep.c: Update copyright years.
11409 (alpha_next_pc): New function.
11410 (alpha_software_single_step): Ditto.
11411 * config/alpha/tm-alpha.h: Add prototype for
11412 alpha_software_single_step.
11413
e771a871
JT
114142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11415
11416 * alphabsd-nat.c: Update copyright years.
11417 (fill_gregset): Use regcache_collect.
11418 (fill_fpregset): Likewise.
11419 (fetch_inferior_registers): Only fetch integer registers
11420 if requested to do so.
11421 (store_inferior_registers): Only store integer registers
11422 if requested to do so.
11423
7708fa01
AC
114242002-01-17 Andrew Cagney <ac131313@redhat.com>
11425
11426 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11427 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11428 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11429 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11430 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11431 * config/arm/linux.mh (XDEPFILES): Delete.
11432 * config/arm/nbsd.mh (XDEPFILES): Delete.
11433 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11434 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11435 * config/i386/i386m3.mh (XDEPFILES): Delete.
11436 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11437 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11438 * config/i386/fbsd.mh (XDEPFILES): Delete.
11439 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11440 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11441 * config/i386/i386v4.mh (XDEPFILES): Delete.
11442 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11443 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11444 * config/i386/i386aix.mh (XDEPFILES): Delete.
11445 * config/i386/go32.mh (XDEPFILES): Delete.
11446 * config/i386/cygwin.mh (XDEPFILES): Delete.
11447 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11448 * config/i386/i386mach.mh (XDEPFILES): Delete.
11449 * config/i386/i386v32.mh (XDEPFILES): Delete.
11450 * config/i386/linux.mh (XDEPFILES): Delete.
11451 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11452 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11453 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11454 * config/i386/i386sco.mh (XDEPFILES): Delete.
11455 * config/i386/i386v.mh (XDEPFILES): Delete.
11456 * config/i386/nbsd.mh (XDEPFILES): Delete.
11457 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11458 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11459 * config/i386/symmetry.mh (XDEPFILES): Delete.
11460 * config/i386/obsd.mh (XDEPFILES): Delete.
11461 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11462 * config/ia64/linux.mh (XDEPFILES): Delete.
11463 * config/ia64/aix.mh (XDEPFILES): Delete.
11464 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11465 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11466 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11467 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11468 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11469 * config/m68k/linux.mh (XDEPFILES): Delete.
11470 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11471 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11472 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11473 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11474 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11475 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11476 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11477 * config/m88k/delta88.mh (XDEPFILES): Delete.
11478 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11479 * config/m88k/m88k.mh (XDEPFILES): Delete.
11480 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11481 * config/mips/linux.mh (XDEPFILES): Delete.
11482 * config/mips/irix6.mh (XDEPFILES): Delete.
11483 * config/mips/irix5.mh (XDEPFILES): Delete.
11484 * config/mips/irix4.mh (XDEPFILES): Delete.
11485 * config/mips/irix3.mh (XDEPFILES): Delete.
11486 * config/mips/decstation.mh (XDEPFILES): Delete.
11487 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11488 (NATDEPFILES): Move core-aout.o to here.
11489 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11490 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11491 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11492 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11493 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11494 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11495 * config/pa/hpux11.mh (XDEPFILES): Delete.
11496 * config/powerpc/aix.mh (XDEPFILES): Delete.
11497 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11498 * config/powerpc/linux.mh (XDEPFILES): Delete.
11499 * config/romp/rtbsd.mh: Rename XDEPFILES.
11500 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11501 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11502 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11503 * config/s390/s390.mh (XDEPFILES): Delete.
11504 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11505 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11506 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11507 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11508 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11509 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11510 * config/sparc/linux.mh (XDEPFILES): Delete.
11511 * config/vax/vaxult.mh (XDEPFILES): Delete.
11512 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11513 * Makefile.in (DEPFILES): Remove XDEPFILES.
11514
375fc983
AC
115152002-01-17 Andrew Cagney <ac131313@redhat.com>
11516
11517 * utils.c (internal_verror): Fix comments, default is yes not no.
11518 Update queries to match. Default to quit and dump core.
11519
8926118c
AC
115202002-01-17 Andrew Cagney <ac131313@redhat.com>
11521
11522 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11523 copyright.
11524 * defs.h, event-top.c, gdbcmd.h: Ditto.
11525 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11526 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11527 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11528 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11529 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11530 * mi/mi-main.c:Ditto.
11531
11532 * stack.c, symfile.c: Update copyright.
11533
45b7b345
DJ
115342002-01-17 Daniel Jacobowitz <drow@mvista.com>
11535
db728ff7
DJ
11536 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11537 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11538 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11539 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11540
db728ff7
DJ
115412002-01-17 Daniel Jacobowitz <drow@mvista.com>
11542
11543 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11544 * gdbserver/low-lynx.c (myattach): Likewise.
11545 * gdbserver/low-nbsd.c (myattach): Likewise.
11546 * gdbserver/low-sim.c (myattach): Likewise.
11547 * gdbserver/low-sparc.c (myattach): Likewise.
11548 * gdbserver/low-sun3.c (myattach): Likewise.
11549
11550 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11551
db728ff7 11552 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11553 (main): Handle "--attach".
11554
8de3c354
AC
115552002-01-16 Andrew Cagney <ac131313@redhat.com>
11556
11557 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11558 maintainer.
11559
b0129042
DJ
115602002-01-15 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * c-typeprint.c (is_type_conversion_operator): Add additional
11563 check for non-conversion operators.
11564
ba8679fb 115652002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11566
11567 * linux-proc.c: Add "info proc" command, a la procfs.c.
11568 (read_mapping): New function, abstract and re-use code.
11569 (linux_find_memory_regions): Use new func read_mapping.
11570 (linux_info_proc_cmd): New function, implement "info proc".
11571 (_initialize_linux_proc): Add new command "info proc".
11572
e4f9b4d5
MS
115732002-01-15 Michael Snyder <msnyder@redhat.com>
11574
11575 * symfile.c (generic_load): Use bfd_map_over_sections method
11576 instead of manipulating bfd structure members directly.
11577 (add_section_size_callback): New function, bfd sections callback
11578 used by generic_load.
11579 (load_sections_callback): New function, bfd sections callback
11580 used by generic_load.
11581
08cf96df
EZ
115822002-01-15 Elena Zannoni <ezannoni@redhat.com>
11583
abf22e64 11584 [Based on work by Jim Blandy]
08cf96df
EZ
11585 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11586 (builtin_type_vec128): Export.
11587 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11588 types.
11589 (builtin_type_vec128): New builtin type for 128 bit vector
11590 registers.
11591 (build_gdbtypes): Initialize builtin_type_v16qi and
11592 builtin_type_v8hi. Create the vec128 register builtin type
11593 structure.
11594 (build_builtin_type_vec128): New function.
abf22e64 11595 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11596 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11597 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11598 AltiVec register to new builtin type.
11599
d7242108
DJ
116002001-01-15 Daniel Jacobowitz <drow@mvista.com>
11601
11602 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11603 to make_cv_type.
11604
4ee3352d
AC
116052002-01-14 Andrew Cagney <ac131313@redhat.com>
11606
11607 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11608 CLEAN_UP_REGISTER_VALUE.
11609 * regcache.c (supply_register): Update only call.
11610
f015b2e7
AC
116112002-01-14 Andrew Cagney <ac131313@redhat.com>
11612
11613 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11614 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11615 a29k-*-vxworks* targets as obsolete.
11616
356ae49d
MS
116172002-01-14 Michael Snyder <msnyder@redhat.com>
11618
11619 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11620 until we can resolve portability issues.
11621 * gregset.h: Remove references to fpxregs.
11622 * gcore.c (gcore_command): Initialize note_sec to NULL.
11623
ade8f45e
AC
116242002-01-13 Andrew Cagney <ac131313@redhat.com>
11625
11626 * signals.c (target_signal_to_name): Rewrite. Only use
11627 signals[].name when in bounds and non-NULL.
abf22e64 11628
89c49e7a
AC
116292002-01-13 Andrew Cagney <ac131313@redhat.com>
11630
11631 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11632 * signals.c (target_signal_to_name): Verify that SIG is within the
11633 bounds of the signals array.
11634
4daa9f9f
AC
116352002-01-13 Andrew Cagney <ac131313@redhat.com>
11636
11637 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11638
ba4bbdcb
KS
116392002-01-13 Keith Seitz <keiths@redhat.com>
11640
11641 * stack.c (print_frame_info_base): Print the frame's pc
11642 only if when print_frame_info_listing_hook is not defined.
11643
575bbeb6
KS
116442002-01-13 Keith Seitz <keiths@redhat.com>
11645
11646 * varobj.c (varobj_set_value): Make sure that there were no
11647 errors evaluating the object before attempting to set its
11648 value.
11649 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11650 so this offset adjustment is no longer necessary.
11651 (create_child): Don't set the error flag if the child is
11652 a CPLUS_FAKE_CHILD.
11653 (value_of_child): If value_fetch_lazy fails, return NULL
11654 so that callers will be notified that an error occurred.
11655 (c_value_of_variable): Delay check of variable's validity
11656 until later. We actually want all structs and unions to have
11657 the value "{...}".
11658 Do not return "???" for variables which could not be evaluated.
11659 This error condition must be returned to the caller so that it
11660 can get the error condition from gdb.
11661 (cplus_name_of_child): Adjust index for vptr before figuring
11662 out the name of the child.
11663 (cplus_value_of_child): If a child's (real) parent is not valid,
11664 don't even bother trying to give a value for it. Just return
11665 an error. Change all instances in this function.
11666 (cplus_type_of_child): If our parent is one of the "fake"
11667 parents, we need to get at the type of the real parent, and
11668 derive the child's true type using this information.
11669
b76898ab
AC
116702002-01-13 Andrew Cagney <ac131313@redhat.com>
11671
11672 From 2002-01-09 John Marshall <johnm@falch.net>:
11673 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11674 sources.redhat.com, and tweak some related URLs which had
11675 suffered from linkrot.
11676
b6649e88
AC
116772002-01-13 Andrew Cagney <ac131313@redhat.com>
11678
11679 From Jeff law:
11680 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11681 structures passed in registers.
11682
82cc5033
EZ
116832002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11684
11685 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11686 white space which prevented compilation. Reported by DSK
11687 <dsk@student.unsw.edu.au>.
11688
ba5f2f8a
MS
116892002-01-11 Michael Snyder <msnyder@redhat.com>
11690
fbd35540
MS
11691 * symfile.c (build_section_addr_info_from_section_tab):
11692 Use bfd access method instead of manipulating bfd directly.
11693 (syms_from_objfile): Ditto.
11694 (simple_overlay_update_1): Ditto.
11695 (simple_overlay_update): Ditto.
11696 (generic_load): Ditto.
11697 (overlay_unmapped_address): FIXME comment, bfd access methods.
11698 (sections_overlap): FIXME comment, bfd access methods.
11699 (pc_in_mapped_range): FIXME comment, bfd access methods.
11700 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11701 (section_is_mapped): FIXME comment, bfd access methods.
11702 (section_is_overlay): FIXME comment, bfd access methods.
11703
ba5f2f8a
MS
11704 * symfile.c (generic_load): Whitespace and long line cleanups.
11705 Remove duplicate variable, change several local variables to
11706 more appropriate data types.
11707 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11708
17df2af6
AC
117092002-01-12 Andrew Cagney <ac131313@redhat.com>
11710
11711 From Peter Schauer:
11712 * language.c (longest_local_hex_string_custom): Use phex_nz to
11713 convert NUM to a hex string.
11714
ec920329
EZ
117152002-01-12 Elena Zannoni <ezannoni@redhat.com>
11716
11717 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11718 the function.
538a76d6 11719 Update Copyright year.
ec920329 11720
3abd2e01
AC
117212002-01-12 Andrew Cagney <ac131313@redhat.com>
11722
11723 * language.c (longest_raw_hex_string): Delete unused function.
11724
b21b22e0
PS
117252002-01-11 Petr Sorfa <petrs@caldera.com>
11726
11727 * MAINTAINERS (write-after-approval): Add myself.
11728 * dwarf2read.c (read_tag_string_type): Handling of
11729 DW_AT_byte_size.
11730 (read_tag_string_type): FORTRAN fix to prevent propagation of
11731 first string size.
11732 (set_cu_language): Handling of DW_LANG_Fortran95
11733
747fe712
RE
117342002-01-11 Richard Earnshaw <rearnsha@arm.com>
11735
11736 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11737 GETPID(inferior_ptid).
11738 (store_inferior_registers): Likewise.
11739
f1bea926
JM
117402002-01-10 Jason Merrill <jason@redhat.com>
11741
11742 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11743 Fix DW_OP_minus.
11744
ae940673
AC
117452002-01-10 Andrew Cagney <ac131313@redhat.com>
11746
11747 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11748 and bfd/elf32-sh-nbsd.c.
11749
00546b04
MS
117502002-01-10 Michael Snyder <msnyder@redhat.com>
11751
352ed7b4
MS
11752 * NEWS: Mention --pid and corefile/proc-id behavior change.
11753
c18be923
MS
11754 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11755 * gcore.c: Include cli/cli-decode.h instead of command.h.
11756
00546b04
MS
11757 * main.c (captured_main): Add new command line option "--pid".
11758 If the second command line argument (following the symbol-file)
11759 begins with a digit, try to attach to it before trying to open
11760 it as a corefile.
11761 (print_gdb_help): Document the "--pid" argument.
11762
db60ec62
EZ
117632002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11764
11765 * completer.c (command_completer): New function.
11766
11767 * completer.h <command_completer>: Add prototype.
11768
11769 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11770 completer for the "help" command.
11771
39c22d1a
JM
117722002-01-09 Jason Merrill <jason@redhat.com>
11773
11774 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11775
c564377f
MS
117762002-01-09 Michael Snyder <msnyder@redhat.com>
11777
975aec09
MS
11778 * i386-linux-nat.c (fill_fpxregset): Make global.
11779 (store_fpxregset): Ditto.
11780
db4a10fa
MS
11781 * gregset.h (gdb_fpxregset_t): Define.
11782 (supply_fpxregset): Prototype.
11783 (fill_fpxregset): Prototype.
11784
c564377f
MS
11785 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11786
c3d45d70
RE
117872002-01-09 Richard Earnshaw <rearnsha@arm.com>
11788
11789 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11790 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11791 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11792
fcc87af1
AC
117932002-01-09 Andrew Cagney <ac131313@redhat.com>
11794
11795 * MAINTAINERS: Update target maintainer rules so that any
11796 Maintainer can approve a tested patch for a maintenance-only
11797 target.
11798
dd96c05b
RE
117992002-01-09 Richard Earnshaw <rearnsha@arm.com>
11800
d4297db9 11801 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11802
d4297db9 11803 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11804 IN_SIGTRAMP.
11805
145fdc6e
MS
118062002-01-08 Michael Snyder <msnyder@redhat.com>
11807
11808 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11809 real name of the executable, rather than the /proc name.
11810
be4d1333
MS
118112002-01-03 Michael Snyder <msnyder@redhat.com>
11812
11813 Implement a "generate-core-file" command in gdb, save target state.
11814 * gcore.c: New file. Implement new command 'generate-core-file'.
11815 Save a corefile image of the current state of the inferior.
11816 * linux-proc.c: Add linux-specific code for saving corefiles.
11817 * target.h (struct target_ops): Add new target vectors for saving
11818 corefiles; to_find_memory_regions and to_make_corefile_notes.
11819 (target_find_memory_regions): New macro.
11820 (target_make_corefile_notes): New macro.
11821 * target.c (update_current_target): Inherit new target methods.
11822 (dummy_find_memory_regions): New place-holder method.
11823 (dummy_make_corefile_notes): New place-holder method.
11824 (init_dummy_target): Initialize new dummy target vectors.
11825 * exec.c (exec_set_find_memory_regions): New function.
11826 Allow the exec_ops vector for memory regions to be taken over.
11827 (exec_make_note_section): New function, target vector method.
11828 * defs.h (exec_set_find_memory_regions): Export prototype.
11829 * procfs.c (proc_find_memory_regions): New function, corefile method.
11830 (procfs_make_note_section): New function, corefile method.
11831 (init_procfs_ops): Set new target vector pointers.
11832 (find_memory_regions_callback): New function.
11833 (procfs_do_thread_registers): New function.
11834 (procfs_corefile_thread_callback): New function.
11835 * sol-thread.c (sol_find_memory_regions): New function.
11836 (sol_make_note_section): New function.
11837 (init_sol_thread_ops): Initialize new target vectors.
11838 * inftarg.c (inftarg_set_find_memory_regions): New function.
11839 Allow to_find_memory_regions vector to be taken over.
11840 (inftarg_set_make_corefile_notes): New function.
11841 Allow to_make_corefile_notes vector to be taken over.
11842 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11843 interface layer if not target_has_execution (may be a corefile).
11844 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11845 * config/sparc/sun4sol2.mh: Ditto.
11846 * config/alpha/alpha-linux.mh: Ditto.
11847 * config/arm/linux.mh: Ditto.
11848 * config/i386/x86-64linux.mh: Ditto.
11849 * config/ia64/linux.mh: Ditto.
11850 * config/m68k/linux.mh: Ditto.
11851 * config/mips/linux.mh: Ditto.
11852 * config/powerpc/linux.mh: Ditto.
11853 * config/sparc/linux.mh: Ditto.
11854
c6b92abd
MS
118552002-01-07 Michael Snyder <msnyder@redhat.com>
11856
11857 * arm-linux-nat.c: Remove references to regcache.c internal data
11858 (registers[] and register_valid[]).
11859
4b09dc8c
MS
118602002-01-07 Michael Snyder <msnyder@redhat.com>
11861
abf22e64
AJ
11862 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11863 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11864 symbol file and shlibs.
11865 * Makefile.in: Add rule for linux-proc.o.
11866 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11867 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11868 * config/arm/linux.mh: Ditto.
11869 * config/i386/linux.mh: Ditto.
11870 * config/i386/x86-64linux.mh: Ditto.
11871 * config/ia64/linux.mh: Ditto.
11872 * config/m68k/linux.mh: Ditto.
11873 * config/mips/linux.mh: Ditto.
11874 * config/powerpc/linux.mh: Ditto.
11875 * config/sparc/linux.mh: Ditto.
11876
c25b74ac
PM
118772002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11878
11879 * win32-nat.c: Add i386-tdep.h dependency.
11880
94cd915f
MS
118812002-01-07 Michael Snyder <msnyder@redhat.com>
11882
c7cccb76
MS
11883 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11884 instead of bfd_get_arch_size. Don't bail out just because
11885 there's no exec_bfd.
abf22e64 11886
34c0bd93
MS
11887 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11888 * p-valprint.c (pascal_object_print_value): Ditto.
11889 * somread.c (som_symtab_read): Ditto.
11890 * symfile.c (simple_free_overlay_region_table): Ditto.
11891 * valops.c (value_assign): Ditto.
11892
21c1c920
MS
11893 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11894 use tilde_expand and strerror for opening save-tracepoints file.
11895
5bbd998e
MS
11896 * thread-db.c (thread_db_new_objfile): Indendation fix.
11897
94cd915f
MS
11898 * infptrace.c (GDB_MAX_ALLOCA): New define.
11899 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11900 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11901 can be overridden with whatever value is appropriate to the host).
11902 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11903 alloca to allocate potentially large buffer.
11904 * rs6000-nat.c (child_xfer_memory): Ditto.
11905 * symm-nat.c (child_xfer_memory): Ditto.
11906 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11907
494e8a93
JSC
119082002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11909
11910 From Nick Clifton <nickc@redhat.com>
11911 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11912
d0e1d48e
MS
119132002-01-07 Michael Snyder <msnyder@redhat.com>
11914
abf22e64 11915 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11916 Don't use exec_bfd if it's NULL.
11917
290b2c7a
MK
119182002-01-06 Mark Kettenis <kettenis@gnu.org>
11919
abf22e64 11920 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11921
aef21287
AC
119222002-01-06 Andrew Cagney <ac131313@redhat.com>
11923
11924 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11925 * gnu-nat.c: Ditto.
11926
30efa627
AC
119272002-01-06 Andrew Cagney <ac131313@redhat.com>
11928
11929 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11930 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11931 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11932 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11933 z8k-coff have not been multi-arched. Update z8k-coff build
11934 status.
11935
9b4ff276
AC
119362002-01-06 Andrew Cagney <ac131313@redhat.com>
11937
11938 * MAINTAINERS: Mark a29k target as obsolete.
11939 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11940 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11941 comments.
11942 * NEWS: Note that a29k targets are obsolete.
11943 * a29k-tdep.c: Mark as obsolete.
11944 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11945 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11946 a29k-*-vxworks* targets as obsolete.
11947 * remote-adapt.c: Obsolete.
11948 * remote-eb.c: Obsolete.
11949 * remote-mm.c: Obsolete.
11950 * remote-udi.c: Obsolete.
11951 * config/a29k/a29k-udi.mt: Obsolete.
11952 * config/a29k/a29k.mt: Obsolete.
11953 * config/a29k/tm-a29k.h: Obsolete.
11954 * config/a29k/tm-vx29k.h: Obsolete.
11955 * config/a29k/vx29k.mt: Obsolete.
11956
a9011d31
AC
119572002-01-05 Andrew Cagney <ac131313@redhat.com>
11958
11959 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11960 with BFD_ENDIAN_BIG.
11961
9299404e
AC
119622002-01-05 Andrew Cagney <ac131313@redhat.com>
11963
11964 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11965 * configure, config.in: Re-generate.
11966 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11967 * defs.h: Do not include <endian.h>.
11968
7e89e357
JT
119692002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11970
11971 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11972 * config.in: Regenerate.
11973 * configure.in: Update copyright years.
11974 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11975 * configure: Regenerate.
11976 * i386bsd-nat.c: Update copyright years.
11977 (fill_gregset): Use regcache_collect.
11978 (fetch_inferior_registers): Only fetch integer registers
11979 if requested to do so. Add support for XMM registers
11980 using PT_GETXMMREGS.
11981 (store_inferior_registers): Only store integer registers
11982 if requested to do so. Add support for XMM registers
11983 using PT_SETXMMREGS.
11984 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11985 (store_inferior_registers): Remove.
11986 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11987 (fetch_elfcore_registers): New function.
11988 (i386nbsd_elfcore_fns): New.
11989 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11990 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11991 i386bsd-nat.o.
11992 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11993 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11994 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11995 * config/i386/tm-nbsd.h: Update copyright years.
11996 (HAVE_SSE_REGS): Define.
11997 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11998 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11999 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12000 (SIGCONTEXT_PC_OFFSET): Remove.
12001 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12002
a752853e
AC
120032002-01-05 Andrew Cagney <ac131313@redhat.com>
12004
12005 * configure.tgt: Remove powerpc-*-macos* target.
12006 * config/m68k/xm-mpw.h: Delete file.
12007 * config/xm-mpw.h: Delete file.
12008 * ser-mac.c: Delete file.
12009 * mpw-make.sed: Delete file.
12010 * mpw-config.in: Delete file.
12011 * mac-xdep.c: Delete file.
12012 * mac-gdb.r: Delete file.
12013 * mac-defs.h: Delete file.
12014 * mac-nat.c: Delete file.
12015 * config/powerpc/macos.mh: Delete file.
12016 * config/powerpc/macos.mt: Delete file.
12017 * config/powerpc/nm-macos.h: Delete file.
12018 * config/powerpc/tm-macos.h: Delete file.
12019 * source.c (openp, open_source_file): Remove obsolete code.
12020 * top.c (gdb_readline): Ditto.
12021 * utils.c (query): Ditto.
12022 * event-top.c (display_gdb_prompt): Ditto.
12023 * Makefile.in (ser-mac.o): Delete obsolete target.
12024 * NEWS: Update.
12025
d7449b42
AC
120262002-01-04 Andrew Cagney <ac131313@redhat.com>
12027
12028 * defs.h (BIG_ENDIAN): Delete macro definition.
12029 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12030 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12031 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12032 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12033 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12034 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12035 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12036 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12037 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12038 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12039 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12040 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12041 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12042 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12043 * gdbarch.c: Re-generate.
12044
356374e8
DJ
120452002-01-04 Daniel Jacobowitz <drow@mvista.com>
12046
12047 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12048 for core files.
12049
a2b8f8f8
JT
120502002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12051
12052 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12053
12466af9
AC
120542002-01-04 Andrew Cagney <ac131313@redhat.com>
12055
12056 * value.h (value_ptr): Delete typedef.
12057
3549ab40
JT
120582002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12059
12060 * i386nbsd-nat.c: Update copyright years.
12061 Include i386-tdep.h.
12062
fedbd091
EZ
120632002-01-04 Elena Zannoni <ezannoni@redhat.com>
12064
12065 * stabsread.c: Update copyright years.
12066
12067 From Debashis Mahata <debashis.mahata@wipro.com>:
12068 (read_struct_fields): Deal with Sun C compiler erroneous stab
12069 output for structs and unions.
fec8b34f 12070 Fix PR gdb/269.
fedbd091 12071
eb43544b
DJ
120722002-01-04 Daniel Jacobowitz <drow@mvista.com>
12073
12074 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12075 prototype.
12076
1514d34e
DJ
120772002-01-04 Daniel Jacobowitz <drow@mvista.com>
12078
12079 * cp-abi.c: Fix whitespace.
12080 (baseclass_offset): New wrapper function.
12081 * cp-abi.h (baseclass_offset): Add prototype.
12082 (struct cp_abi_ops): Add baseclass_offset pointer.
12083
12084 * valops.c (vb_match): Move to...
12085 * gnu-v2-abi.c (vb_match): here.
12086 * valops.c (baseclass_offset): Move to...
12087 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12088
12089 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12090
12091 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12092 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12093 * hpacc-abi.c (init_hpacc_ops): Likewise.
12094
7f8c9282
DJ
120952002-01-04 Daniel Jacobowitz <drow@mvista.com>
12096
12097 * valops.c (find_overload_match): Accept obj as a
12098 reference parameter. Update it before returning.
12099 * value.h (find_overload_match): Update prototype.
12100 * eval.c (evaluate_subexp_standard): Pass object to
12101 find_overload_match by reference.
12102
f23631e4
AC
121032002-01-03 Andrew Cagney <ac131313@redhat.com>
12104
12105 * valarith.c: Replace value_ptr with struct value pointer. Remove
12106 register attribute from value declarations.
12107 * valops.c: Ditto.
12108 * value.h: Ditto.
12109 * scm-lang.c (scm_lookup_name): Ditto.
12110
79e10fab 121112002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12112
79e10fab
AC
12113 Abstract the functionality of iterating over mapped memory
12114 regions into a general purpose iterator function.
abf22e64 12115 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12116 iterator for memory sections.
12117 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12118 (solib_mappings_callback): New function, callback for above.
12119 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12120 (info_mappings_callback): New function, callback for above.
12121
12122 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12123
c5ad026a
MK
121242002-01-01 Mark Kettenis <kettenis@gnu.org>
12125
d2a7c97a
MK
12126 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12127 * i386-tdep.c: Include "elf-bfd.h".
12128 (process_note_abi_tag_sections): New function.
12129 (i386_gdbarch_init): Add code to recognize various OS/ABI
12130 combinations.
12131
c5ad026a
MK
12132 * maint.c (_initialize_maint_cmds): Add missing \ in
12133 string-literal.
12134
a1a5b71e 12135For older changes see ChangeLog-2001
c906108c
SS
12136\f
12137Local Variables:
12138mode: change-log
12139left-margin: 8
12140fill-column: 74
12141version-control: never
12142End:
This page took 0.861139 seconds and 4 git commands to generate.