* elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7e20f3fb
AC
12002-11-02 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh (register_reggroup_p): Allow default value.
4 * gdbarch.h, gdbarch.c: Regenerate.
5
192dbe33
AC
62002-11-02 Andrew Cagney <ac131313@redhat.com>
7
8 * regcache.h: Add coment indicating replacements for deprecated
9 functions.
10
b59ff9d5
AC
112002-11-02 Andrew Cagney <cagney@redhat.com>
12
13 * reggroups.h, reggroups.c: New files.
14 * regcache.c: Include "reggroups.h".
15 (enum regcache_dump_what): Add `regcache_dump_groups'.
16 (regcache_dump): Contract size of the "Type" column. When
17 specified, dump the register's groups.
18 (maintenance_print_register_groups): New function.
19 (_initialize_regcache): Add command `maint print register-groups'.
20 * Makefile.in (COMMON_OBS): Add reggroups.o
21 (SFILES): Add reggroups.c.
22 (reggroups_h): Define.
23 (regcache.o, gdbarch.o): Update dependencies.
24 (reggroups.o): Specify dependencies.
25 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
26 Add opaque declaration for `struct reggroup' in generated .h file.
27 Include "reggroups.h" in generated .c file.
28 gdbarch.h, gdbarch.c: Re-generate.
29
4caf0990
AC
302002-11-02 Andrew Cagney <cagney@redhat.com>
31
32 * regcache.h (deprecated_read_register_gen): Rename
33 read_register_gen.
34 (deprecated_write_register_gen): Rename write_register_gen.
35 * i387-tdep.c: Update.
36 * x86-64-linux-nat.c: Update
37 * wince.c: Update.
38 * thread-db.c: Update.
39 * win32-nat.c: Update.
40 * mips-tdep.c: Update.
41 * d10v-tdep.c: Update.
42 * cris-tdep.c: Update.
43 * remote-sim.c: Update.
44 * remote-rdi.c: Update.
45 * remote-rdp.c: Update.
46 * frame.c: Update.
47 * target.c: Update.
48 * blockframe.c: Update.
49 * x86-64-tdep.c: Update.
50 * xstormy16-tdep.c: Update.
51 * sh-tdep.c: Update.
52 * s390-tdep.c: Update.
53 * rs6000-tdep.c: Update.
54 * sparc-tdep.c: Update.
55 * i386-tdep.c: Update.
56 * dwarf2cfi.c: Update.
57 * regcache.c: Update.
58
7a7adcdf
JB
592002-11-01 Joel Brobecker <brobecker@gnat.com>
60
61 New interix-specific files:
62 * config/i386/nm-interix.h: New file.
63 * config/i386/interix.mh: New file.
64 * config/i386/interix.mt: New file.
65 * i386-interix-nat.c: New file.
66 * i386-interix-tdep.c: New file.
67
bdcdd535
AC
682002-11-01 Andrew Cagney <cagney@redhat.com>
69
70 * frame.h (deprecated_generic_get_saved_register): Rename
71 generic_get_saved_register.
72 * blockframe.c (deprecated_generic_get_saved_register): Update.
73 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
74 (xstormy16_frame_saved_register): Update.
75 * sh-tdep.c (sh_gdbarch_init): Update.
76 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
77 * ia64-tdep.c (ia64_get_saved_register): Update.
78 * cris-tdep.c (cris_gdbarch_init): Update.
79 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
80 * arm-tdep.c (arm_gdbarch_init): Update.
81
2a4b7c45
DJ
822002-10-31 Daniel Jacobowitz <drow@mvista.com>
83
84 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
85
ef17e74b
DJ
862002-10-31 Daniel Jacobowitz <drow@mvista.com>
87
88 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
89 trampolines in sigaction.
90
4904ba5b
AC
912002-10-31 Andrew Cagney <cagney@redhat.com>
92
93 * h8300-tdep.c: Include "gdb_assert.h".
94 (h8300_print_register): Add gdbarch, file and frame parameters.
95 Use frame_read_unsigned_register to read the register's value.
96 Use fprintf_filtered to display output.
97 (h8300_print_registers_info): Replace h8300_do_registers_info.
98 (h8300_gdbarch_init): Set print_registers_info.
99
f908a0eb
AC
1002002-10-31 Andrew Cagney <cagney@redhat.com>
101
102 * frame.c (frame_read_unsigned_register): New function.
103 (frame_read_signed_register): New function.
104 * frame.h (frame_read_unsigned_register): Declare.
105 (frame_read_signed_register): Declare.
106
c5646e11
AC
1072002-10-31 Andrew Cagney <cagney@redhat.com>
108
109 * h8500-tdep.c (h8500_print_registers_info): New static function,
110 clone of infcmd.c's default_print_registers_info.
111 (h8500_do_registers_info): New funtion.
112 (h8500_print_register_hook): Rename print_register_hook, make
113 static.
114
115 * config/h8500/tm-h8500.h: Update copyright.
116 (DEPRECATED_DO_REGISTERS_INFO): Define.
117 (h8500_do_registers_info: Declare.
118 (PRINT_REGISTER_HOOK): Delete macro.
119 (print_register_hook): Delete function.
120
0bdd672b
AC
1212002-10-31 Andrew Cagney <cagney@redhat.com>
122
123 * z8k-tdep.c (z8k_print_register_hook): Make static.
124 (z8k_print_registers_info): New static function, clone of
125 infcmd.c's default_print_registers_info.
126 (z8k_do_registers_info): New function. Wrap
127 z8k_print_registers_info.
128 * config/z8k/tm-z8k.h: Update copyright.
129 (PRINT_REGISTER_HOOK): Delete macro.
130 (z8k_print_register_hook): Delete declaration.
131 (DEPRECATED_DO_REGISTERS_INFO): Define.
132 (z8k_do_registers_info): Declare.
133
bf9c25dc
JB
1342002-10-30 Joel Brobecker <brobecker@gnat.com>
135
136 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
137 as this is already provided by value.h, and was actually causing
138 a compilation error because of a conflict in parameter type
139 declaration due to a missing const keyword.
140 (low_text_segment_addres): Fix a compilation warning.
141
2c665b51
DJ
1422002-10-29 Daniel Jacobowitz <drow@mvista.com>
143
144 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
145 registers without a name.
146 (mips_linux_cannot_store_register): Don't store registers without
147 a name.
148
e70ea697
DC
1492002-10-28 David Carlton <carlton@math.stanford.edu>
150
151 * symtab.c (find_addr_symbol): Delete. (It was already commented
152 out.)
153 * symtab.h: Delete prototype for find_addr_symbol.
154
903ad3a6
AC
1552002-10-26 Andrew Cagney <cagney@redhat.com>
156
157 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
158 DO_REGISTERS_INFO.
159 gdbarch.h, gdbarch.c: Re-generate.
160 * infcmd.c (default_print_registers_info): Update reference.
161 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
162 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
163 * sh-tdep.c (sh_gdbarch_init): Ditto.
164 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
166
ab91194c
MK
1672002-10-26 Mark Kettenis <kettenis@gnu.org>
168
e3033f15
MK
169 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
170 cfi_init_extra_frame_info.
171 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
172 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
173
b83b026c
MK
174 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
175 target where necessary. Add more comments and remove the ones
176 that don't provide any useful information.
177
267bf4bb
MK
178 * i386-tdep.c (i386_frame_saved_pc): Replace call to
179 deprecated_read_register_dummy with
180 frame_unwind_unsigned_register.
181
751f1375
MK
182 * i386-tdep.c (i386_extract_struct_value_address): Use
183 regcache_raw_read_unsigned instead of
184 regcache_cooked_read_unsigned since we know that the register
185 we're reading isn't a pseudo register. Rename variable 'val' into
186 the more descriptive 'addr'.
187
26abbdc4
MK
188 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
189 (x86_64_push_return_address): Add comment.
190 (x86_64_pop_frame): Make static.
191 (examine_argument): Clarify comment.
192 (x86_64_skip_prologue): Make prolog_expact variable static.
193
9f1549cc
MK
194 * dwarf2cfi.c: Fix some formatting problems.
195 (context_cpy, read_encoded_pointer): Clarify comments.
196
ab91194c
MK
197 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
198 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
199 i386 target back into x86_64_gdbarch_init. Add some comments and
200 remove meaningless ones.
201
72367fb4
AC
2022002-10-25 Andrew Cagney <cagney@redhat.com>
203
204 * complaints.h (struct deprecated_complaint): Rename `struct
205 complaint'.
206 * complaints.c (complain): Update.
207 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
208 incorrect comment indicating that "symfile.h" was being included
209 for the `struct complaint' definition.
210 * remote-vx.c: Update.
211 * objc-lang.c: Update.
212 * xcoffread.c: Update.
213 * hpread.c: Update.
214 * mdebugread.c: Update.
215 * stabsread.c: Update.
216 * dwarf2read.c: Update.
217 * dwarfread.c: Update.
218 * elfread.c: Update.
219 * coffread.c: Update.
220 * stabsread.h: Update.
221 * dbxread.c: Update.
222 * buildsym.c: Update.
223 * gdbtypes.c: Update.
224 * macrotab.c: Update.
225
1f2baacc
MK
2262002-10-25 Mark Kettenis <kettenis@gnu.org>
227
0c1a73d6
MK
228 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
229 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
230 (x86_64_init_abi): ...new function.
231
6aee4d54 232 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
233 * i386v-nat.c: Include "i386-tdep.h".
234
8f9cbe01
AC
2352002-10-25 Andrew Cagney <cagney@redhat.com>
236
5f11f355
AC
237 * gdbtypes.c (address_space_name_to_int): Update.
238 (address_space_int_to_name): Update.
239 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
240 multi-arch predicate.
241 (address_class_name_to_type_flags): Ditto.
242 * gdbarch.h, gdbarch.c: Re-generate.
243
8f9cbe01
AC
244 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
245
e8d96a5d
MH
2462002-10-24 Martin M. Hunt <hunt@redhat.com>
247
248 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
249
fe39c653
EZ
2502002-10-24 Elena Zannoni <ezannoni@redhat.com>
251
252 * symtab.h (INIT_SAL): Delete macro.
253 (init_sal): Export.
254 * symtab.c (init_sal): New function.
255
256 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
257 to init_sal function call.
258 (find_sal_from_funcs_and_line): Ditto.
259 (all_sals_for_line): Ditto.
260 * breakpoint.c (create_internal_breakpoint): Ditto.
261 (create_fork_vfork_event_catchpoint): Ditto.
262 (create_exec_event_catchpoint): Ditto.
263 (parse_breakpoint_sals): Ditto.
264 (watch_command_1): Ditto.
265 (handle_gnu_4_16_catch_command): Ditto.
266 (clear_command): Ditto.
267 * hppa-tdep.c (child_enable_exception_callback): Ditto.
268 * infcmd.c (run_stack_dummy): Ditto.
269 * infrun.c (process_event_stop_test): Ditto.
270 (check_sigtramp2): Ditto.
271 (step_over_function): Ditto.
272 * linespec.c (decode_line_2): Ditto.
273 (decode_line_1): Ditto.
274 * source.c (line_info): Ditto.
275 * symtab.c (find_pc_sect_line): Ditto.
276
baed091b
ML
2772002-10-24 Michal Ludvig <mludvig@suse.cz>
278
279 * dwarf2cfi.c (struct context)
280 (struct context_reg): Moved to dwarf2cfi.h
281 (context_alloc, frame_state_alloc, context_cpy):
282 Made extern instead of static, removed prototypes.
283 * dwarf2cfi.h (struct context)
284 (struct context_reg): New, moved from dwarf2cfi.c
285 (context_alloc, frame_state_alloc, context_cpy):
286 New prototypes.
287 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
288 Changed from static to extern.
289 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
290 (LINUX_SIGCONTEXT_FP_OFFSET)
291 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
292 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
293 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
294 * x86-64-tdep.c (x86_64_gdbarch_init): Several
295 set_gdbarch_*() calls now use x86-64 specific functions
296 instead of DWARF2 CFI ones.
297 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
298 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
299 (x86_64_init_extra_frame_info): New prototypes.
300
c38da1af
DC
3012002-10-23 David Carlton <carlton@math.stanford.edu>
302
303 * linespec.c: #include "parser-defs.h".
304 Delete prototype for find_template_name_end.
305 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
306
fb9b6b35
JJ
3072002-10-23 Jeff Johnston <jjohnstn@redhat.com>
308
309 * NEWS: add recent mi fixes.
310 * varobj.c (struct varobj): Add new "updated" flag.
311 (new_variable): Default "updated" flag to 0.
312 (varobj_set_value): Set "updated" flag to 1 if value
313 changes.
314 (varobj_update): Check varobj "updated" flag before
315 comparing old and refreshed values. Fix for
316 PR gdb/702.
317
8da065d5
DC
3182002-10-23 David Carlton <carlton@math.stanford.edu>
319
320 * parse.c (parse_exp_1): Use BLOCK_START.
321 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
322 SYMBOL_BLOCK_VALUE.
323 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
324
87f2f08c
DC
3252002-10-23 David Carlton <carlton@math.stanford.edu>
326
327 * symtab.c: Delete cplusplus_hint.
328 Delete prototype for find_template_name_end.
329
88cda038
EZ
3302002-10-23 Elena Zannoni <ezannoni@redhat.com>
331
332 * symtab.h: Update comment.
333
2625d86c
MS
3342002-10-23 Michael Snyder <msnyder@redhat.com>
335
336 * printcmd.c (address_info): Restore quotes in output.
337 * valops.c (value_of_local): Restore quotes in error message.
338
9cc0d196
EZ
3392002-10-23 Elena Zannoni <ezannoni@redhat.com>
340
341 * symtab.c (symbol_demangled_name): New function.
342 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
343 turning most of it into a function.
344 (symbol_demangled_name): Export.
345
19de93d0
MS
3462002-10-23 Michael Snyder <msnyder@redhat.com>
347
348 * valops.c (value_of_local): Restore quotes in error message.
349
89aad1f9
EZ
3502002-10-23 Elena Zannoni <ezannoni@redhat.com>
351
352 * symtab.c (symbol_init_language_specific): New function.
353 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
354 turning most of it into a function.
355 (symbol_init_language_specific): Export.
356
d9fa45fe
DC
3572002-10-23 David Carlton <carlton@math.stanford.edu>
358
359 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
360 (dwarf_attr_name): Ditto.
361 (dwarf_type_encoding_name): Ditto.
362 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
363 (process_die): Handle DW_TAG_namespace,
364 DW_TAG_imported_declaration, DW_TAG_imported_module.
365 (read_namespace): New function.
366
1045b512
JB
3672002-10-22 Joel Brobecker <brobecker@gnat.com>
368
369 * configure.in: Define NEW_PROC_API on Interix too.
370 * configure: Regenerate.
371
3722002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
373
374 * configure: Regenerate using the proper version of autoconf.
375
3987b9d4
EZ
3762002-10-21 Elena Zannoni <ezannoni@redhat.com>
377
378 * findvar.c (read_var_value): Temporarily disable TLS code, until
379 complete TLS support is added.
380
9d774e44
EZ
3812002-10-21 Jim Blandy <jimb@redhat.com>
382 Elena Zannoni <ezannoni@redhat.com>
383
384 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
385 for thread local storage locations.
386 (struct symbol): Add objfile field.
387 (SYMBOL_OBJFILE): Define.
388 * dwarf2read.c (is_thread_local): New static variable.
389 (new_symbol): If variable is in thread local fill in address class
390 and objfile appropriately.
391 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
392 stack operation.
393 * printcmd.c (address_info): Print the information for thread
394 local storage variable.
395 * findvar.c (read_var_value): In case of thread local variable,
396 defer to the target vector code to compute address.
397
bc4a16ae
EZ
3982002-10-21 Elena Zannoni <ezannoni@redhat.com>
399
400 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
401 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
402
407caf07
EZ
4032002-10-21 Elena Zannoni <ezannoni@redhat.com>
404
405 * symtab.h (address_class): Rename
406 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
407 * hpread.c (hpread_process_one_debug_symbol): Ditto.
408 * printcmd.c (address_info): Ditto.
409 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
410
005328e3
MK
4112002-10-20 Mark Kettenis <kettenis@gnu.org>
412
afdb036a
MK
413 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
414 DBREG_DRX macro to acces debug registers.
415
ca02e098
MK
416 * Makefile.in (i386obsd-tdep.o): New target.
417
03cc47f7
MK
418 * solib-sunos.c: Include "bcache.h" and "regcache.h".
419 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
420
005328e3
MK
421 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
422 * config/i386/obsd.mt: New file.
423 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
424 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
425 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
426 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
427 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
428 * i386obsd-tdep.c: New file.
429
9c96f9f2
AF
4302002-10-19 Adam Fedor <fedor@gnu.org>
431
432 * objc-exp.y (name_not_typename): Fix invalid comment.
433
ce1ed485
MK
4342002-10-20 Mark Kettenis <kettenis@gnu.org>
435
436 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
437 to allocate partial syms and macro byte caches.
438
1efc7aaa
DC
4392002-10-18 David Carlton <carlton@math.stanford.edu>
440
441 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
442
7e1d63ec
AF
4432002-10-18 Adam Fedor <fedor@gnu.org>
444
445 * stabsread.c (find_name_end): New function.
446 (define_symbol): Use it.
447
6e8d29a9
DJ
4482002-10-18 Daniel Jacobowitz <drow@mvista.com>
449
450 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
451 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
452 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
453 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
454
1efc7aaa 4552002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
456
457 * symfile.h: Add opaque declaration for struct obstack.
458 Declare obsavestring to take a const char *.
459 * symfile.c (obsavestring): Make first argument a const char *.
460
1aeae86e
AF
4612002-10-16 Adam Fedor <fedor@gnu.org>
462
463 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
464 names when matching breakpoints in current file.
465
8b2dbe47
KB
4662002-10-16 Kevin Buettner <kevinb@redhat.com>
467
468 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
469 (read_tag_pointer_type): Add address class support.
470 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
471 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
472 New methods.
473 * gdbarch.h, gdbarch.c: Regenerate.
474 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
475 (make_type_with_address_space, recursive_type_dump): Add address
476 class support.
477 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
478 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
479 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
480
74451869
KD
4812002-10-16 Klee Dienes <kdienes@apple.com>
482
483 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
484 to get the last character of a char[] buffer, not
485 name[sizeof(vptr_name)-1].
486
ff4cb3e8
AF
4872002-10-14 Adam Fedor <fedor@gnu.org>
488
489 * symtab.h: New objc_specific struct.
490 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
491 (SYMBOL_DEMANGLED_NAME): Likewise.
492
da2cf7e0
AF
4932002-10-14 Adam Fedor <fedor@gnu.org>
494
495 * symfile.c (init_filename_language_table): Add ObjC file extension.
496
4a351cef
AF
4972002-10-14 Adam Fedor <fedor@gnu.org>
498
499 * utils.c (puts_filtered_tabular): New function.
500 (fprintf_symbol_filtered): Get ObjC demangled name.
501 * defs.h (puts_filtered_tabular): Declared.
502
9750e763
KB
5032002-10-14 Kevin Buettner <kevinb@redhat.com>
504
505 * c-lang.h (c_type_print_varspec_prefix): Delete.
506 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
507 ``need_post_space'' parameter. Adjust all callers.
508
eee771c1
DJ
5092002-10-14 Daniel Jacobowitz <drow@mvista.com>
510
511 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
512 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
513 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
514 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
515
46c82446
AF
5162002-10-13 Adam Fedor <fedor@gnu.org>
517
518 * source.c (print_source_lines): Update comments.
519
d069f99d
AF
5202002-10-13 Adam Fedor <fedor@gnu.org>
521
522 * valops.c (value_of_local): New function.
523 (value_of_this): Use it.
524 * value.h (value_of_local): Declared.
525
53c551b7
AF
5262002-10-13 Adam Fedor <fedor@gnu.org>
527
528 * parse.c: (length_of_subexp, prefixify_subexp): Handle
529 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
530
eb392fbf
AF
5312002-10-12 Adam Fedor <fedor@gnu.org>
532
533 * language.c (binop_result_type): Add language_objc to case.
534 (integral_type): Likewise.
535 (character_type): Likewise.
536 (string_type): Likewise.
537 (boolean_type): Likewise.
538 (structured_type): Likewise.
539 (binop_type_check): Likewise.
540
e2b23ee9
AF
5412002-10-11 Adam Fedor <fedor@gnu.org>
542
543 * printcmd.c (address_info): Print 'self' for ObjC.
544
b01ab485
AF
5452002-10-11 Adam Fedor <fedor@gnu.org>
546
547 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
548 OP_SELF.
549
806e6073
AF
5502002-10-11 Adam Fedor <fedor@gnu.org>
551
552 * language.h (CAST_IS_CONVERSION): Add language_objc.
553
50f85cdf
AF
5542002-10-11 Adam Fedor <fedor@gnu.org>
555
556 * defs.h (enum language): Add language_objc.
557
0d540cdf
KD
5582002-10-11 Klee Dienes <kdienes@apple.com>
559
560 * findvar.c (read_memory_typed_address): New function.
561 * gdbcore.h (read_memory_typed_address): Add prototype.
562 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
563 to read a value destined for a CORE_ADDR, not read_memory_integer.
564 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
565 (f77_get_dynamic_lowerbound): Ditto.
566
d5dc7960
MH
5672002-10-11 Martin M. Hunt <hunt@redhat.com>
568
569 * utils.c (string_to_core_addr): After turning string into
570 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
571 which will do necessary sign-extension, etc.
572
8343f86c
DJ
5732002-10-11 Daniel Jacobowitz <drow@mvista.com>
574
575 * c-exp.y (THIS): Delete token and grammar rule.
576 (yylex): Don't return THIS.
577 * cp-valprint.c (vtbl_ptr_name_old): Delete.
578 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
579 * demangle.c (cplus_markers): Update comment. Put '$'
580 first. Remove CPLUS_MARKER.
581 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
582 * jv-exp.y (THIS): Delete token and grammar rule.
583 (yylex): Don't return THIS.
584 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
585 * objc-exp.y (THIS): Delete token and grammar rule.
586 (yylex): Don't return THIS.
587 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
588 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
589 (read_member_functions): Likewise for opname.
590 (read_tilde_fields): Use is_cplus_marker.
591
592 * defs.h (CPLUS_MARKER): Don't define.
593 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
594 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
595 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
596 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
597 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
598
599 * config/i386/tm-i386v4.h: Delete file.
600 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
601 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
602 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
603 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
604 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
605 * config/i386/i386sco5.mt (TM_FILE): Likewise.
606 * config/i386/i386v4.mt (TM_FILE): Likewise.
607 * config/i386/ncr3000.mt (TM_FILE): Likewise.
608
967c0d83
MM
6092002-10-10 Marko Mlinar <markom@opencores.org>
610
611 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
612 accidentially not commited 2002-10-09
613 * gdbarch.h, gdbarch.c: Re-generate.
614
f74fa174
MM
6152002-10-09 Marko Mlinar <markom@opencores.org>
616
617 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
618 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
619 * gdbarch.h, gdbarch.c: Re-generate.
620
57349743
JB
6212002-10-08 Petr Sorfa <petrs@caldera.com>
622
623 Revised and re-submitted by John Wolfe <jlw@caldera.com>
624
625 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
626 so we can work on more than one compilation unit at a time. This
627 helps prepare GDB to handle inter-CU die references.
628 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
629 the code to be defined before struct comp_unit_head.
630 (comp_unit_head): Added new members - offset, cu_head,
631 begin_die, next and dwarf2_abbrevs.
632 (dwarf2_abbrevs): Removed single static var; now member of
633 struct comp_unit_head.
634 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
635 members.
636 (psymtab_to_symtab_1): Changed to work with the new
637 struct comp_unit_head.
638 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
639 constructs the dwarf2_abbrevs[] inside the cu_header.
640 (dwarf2_empty_abbrev_table): Now expects a ptr to a
641 dwarf2_abbrev table to clean up.
642 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
643 handling of dwarf2_abbrevs inside the cu_header.
644 (read_partial_die): Now supports the call to the new
645 dwarf2_lookup_abbrev.
646 (read_full_die): Now supports the call to the new
647 dwarf2_lookup_abbrev.
648
4092aadb
CF
6492002-10-06 Christopher Faylor <cgf@redhat.com>
650
651 * Makefile.in (install-gdbtk): Add missing continuation backslash to
652 insure that shell variables, such as "transformed_name" are propagated
653 to later shell statements in rule.
654
af0b2512
MK
6552002-10-06 Mark Kettenis <kettenis@gnu.org>
656
657 * config/i386/nm-i386sco.h: Add protection against
658 multiple-inclusion. Include "i386/nm-i386v.h".
659 (REGISTER_U_ADDR): Remove define.
660 (i386_register_u_addr): Remove prototype.
661
d6020d45
MS
6622002-10-04 Michael Snyder <msnyder@redhat.com>
663
664 * m32r-stub.c (handle_exception): Make sure exception is "trap"
665 before treating it as a single-step event.
666
7248f48e
AF
6672002-10-03 Adam Fedor <fedor@gnu.org>
668
669 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
670 (objc_demangle): Remove assignment in if statements, Replace
671 free with xfree.
672 (add_msglist): Likewise.
673 (end_msglist): Likewise.
674 (complare_selectors): Likewise.
675 (selectors_info): Likewise.
676 (compare_classes): Likewise.
677 (classes_info): Likewise.
678 (print_object_command): Likewise.
679 (find_objc_msgcall_submethod): Replace PTR with void *.
680 * objc-lang.h: Remove check for __STDC__.
681
52c6a6ac
JJ
6822002-10-03 Jeff Johnston <jjohnstn@redhat.com>
683
684 * ui-out.h (ui_out_field_fmt_int): New prototype.
685 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
686 of field width and alignment.
687 * stack.c (print_frame_info_base): When printing frame level, use
688 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
689 PR gdb/192
690
7e3cec17
JJ
6912002-10-03 Jeff Johnston <jjohnstn@redhat.com>
692
693 * MAINTAINERS: Add self to Write After Approval list.
694
a58dd373
EZ
6952002-10-02 Elena Zannoni <ezannoni@redhat.com>
696
697 * infcmd.c (interrupt_target_command_wrapper): Delete.
698 (interrupt_target_command): Make non static.
699 (nofp_registers_info): Make static.
700 * stack.c (return_command_wrapper): Delete.
701 (return_command): Make non static.
702
cee6ddeb
EZ
7032002-10-02 Elena Zannoni <ezannoni@redhat.com>
704
705 * event-top.c (gdb_setup_readline): New function. Code moved from
706 _initialize_event_loop().
707 (_initialize_event_loop): Call gdb_setup_readline().
708
c4ed33b9
AC
7092002-10-02 Andrew Cagney <ac131313@redhat.com>
710
711 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
712 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
713 * gdbarch.h, gdbarch.c: Re-generate.
714
cef4f5dd
DJ
7152002-10-02 Daniel Jacobowitz <drow@mvista.com>
716
717 Fix PR gdb/778
718 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
719 before recursing.
720 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
721 of fill_in_vptr_fieldno.
722
36dc181b 7232002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 724
36dc181b
EZ
725 * inferior.h (registers_info, stepi_command, nexti_command,
726 continue_command, interrupt_target_command): Export from infcmd.c.
727 * frame.h (args_info, selected_frame_level_changed_hook,
728 return_command): Export from stack.c.
729 * v850ice.c (stepi_command, nexti_command, continue_command): use
730 prototypes from inferior.h.
731 * tracepoint.c (registers_info, args_info, locals_info): Use
732 prototypes from frame.h and inferior.h.
733 * Makefile.in (mi-main.o): Add dependency on frame.h.
734
6f99cb26
AC
7352002-10-02 Andrew Cagney <ac131313@redhat.com>
736
da3eff49
AC
737 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
738 value in register 3 adjusted by ppc_gp0_regnum.
739
6f99cb26
AC
740 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
741
da615bee
MM
7422002-10-02 Marko Mlinar <markom@opencores.org>
743
744 * MAINTAINERS: Add myself to the Write After Approval list.
745
d154bee2
AO
7462002-10-01 Alexandre Oliva <aoliva@redhat.com>
747
62a49b2c
AO
748 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
749 of the section for the N64 ABI, fixed.
750
d154bee2
AO
751 * config/mips/tm-irix6.h: Include solib.h.
752
ed348acc
EZ
7532002-10-01 Elena Zannoni <ezannoni@redhat.com>
754
755 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
756 GNU operators.
757
da0f9dcd
AC
7582002-10-01 Andrew Cagney <ac131313@redhat.com>
759
760 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
761 and that "mi0" syntax has been removed.
762
bdf64bac
DC
7632002-09-30 David Carlton <carlton@math.stanford.edu>
764
765 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
766 * ppc-sysv-tdep.c: #include "gdb_string.h".
767 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
768 pacify GCC.
769
54c2a1e6
AC
7702002-10-01 Andrew Cagney <ac131313@redhat.com>
771
772 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
773 "vrsave"'s register number.
774
cedea778
AC
7752002-09-30 Andrew Cagney <ac131313@redhat.com>
776
777 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
778 use frame_unwind_signed_register to obtain the PC.
779 (mips_frame_chain): Handle a generic dummy frame.
780 (mips_init_extra_frame_info): When a generic dummy frame, don't
781 re-compute the frame base.
782 (mips_pop_frame): Handle generic dummy frames.
783 (mips_gdbarch_init): When generic dummy frames, set
784 use_generic_dummy_frames, push_dummy_frame to
785 generic_push_dummy_frame, pc_in_call_dummy to
786 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
787 generic_save_dummy_frame_tos.
788
68315eb8
AC
7892002-09-30 Andrew Cagney <ac131313@redhat.com>
790
791 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
792 against TOP when TOP was explictly set.
793 (generic_push_dummy_frame): Set TOP to zero.
794
3b8630c3
EZ
7952002-09-30 Elena Zannoni <ezannoni@redhat.com>
796
797 * event-loop.c (start_event_loop): Rename variable 'result' to
798 'gdb_result', to avoid conflicts with upcoming intepreters changes.
799
28ee05e9
KS
8002002-09-30 Keith Seitz <keiths@redhat.com>
801
802 * gdb-events.sh (selected_thread_changed): New event.
803 * gdb-events.c: Regenerated.
804 * gdb-events.h: Regenerated.
805
6eecb1c8
HPN
8062002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
807
808 * MAINTAINERS: Add self to Write After Approval list.
809
92df71f0
FN
8102002-09-30 Fernando Nasser <fnasser@redhat.com>
811
3b8630c3
EZ
812 * disasm.c: New file.
813 * disasm.h: New file.
92df71f0
FN
814 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
815 (compare_lines): Ditto.
816 (dump_insns): Ditto.
3b8630c3
EZ
817 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
818 argument.
92df71f0 819 (do_assembly_only): Ditto.
3b8630c3
EZ
820 (do_disassembly): Renamed to gdb_disassembly and moved to
821 disasm.c. Sdded uiout argument.
822 * Makefile.in: Add new files. Reorder SFILES list. Update
823 dependencies. Include libgdb.a later in the insight executable.
92df71f0 824
0c22854d
AC
8252002-09-29 Andrew Cagney <ac131313@redhat.com>
826
827 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
828 bfd/elf64-alpha-fbsd.c.
829
e67f2023
AC
8302002-09-29 Andrew Cagney <ac131313@redhat.com>
831
832 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
833 i386gnu-tdep.c.
834
89396210
AC
8352002-09-29 Andrew Cagney <ac131313@redhat.com>
836
837 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
838 __FUNCTION__.
839 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
840 function name.
841 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
842 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
843 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
844 (S_msg_sig_post_reply): Ditto.
845
7079c36c
CV
8462002-09-28 Corinna Vinschen <vinschen@redhat.com>
847
89396210
AC
848 * sh-tdep.c (sh_use_struct_convention): Use definition according
849 to ABI.
7079c36c
CV
850 (sh_push_arguments): Store in register with correct endianess.
851 (sh_default_store_return_value): Ditto.
852 (sh_gdbarch_init): Set sizeof long double to 8.
853
975ac915
MK
8542002-09-27 Mark Kettenis <kettenis@gnu.org>
855
856 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
857 Fix some whitespace problems.
858
9bbe19fb
DC
8592002-09-27 David Carlton <carlton@math.stanford.edu>
860
861 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
862 (mcore-tdep.o): Ditto.
863 (ns32k-tdep.o): Ditto.
864 (ns32knbsd-tdep.o): Ditto.
865 (sh3-rom.o): Ditto.
866 (vax-tdep.o): Ditto.
867 * cris-tdep.c: #include "gdb_string.h"
868 * mcore-tdep.c: Ditto.
869 * ns32k-tdep.c: Ditto.
870 * ns32knbsd-tdep.c: Ditto.
871 * sh3-rom.c: Ditto.
872 * vax-tdep.c: Ditto.
873
43b2fdc7
DC
8742002-09-27 David Carlton <carlton@math.stanford.edu>
875
876 * config/djgpp/fnchange.lst: Add entries for
877 gdb/testsuite/gdb.c++/m-static files.
878
e8cfbbd9
JW
8792002-09-27 Jim Wilson <wilson@redhat.com>
880
881 * MAINTAINERS: Add myself to the Write After Approval list.
882
43b2fdc7 8832002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
884
885 * mips-tdep.c (find_proc_desc): Initialize startaddr.
886
887
9f3b7f07
AC
8882002-09-26 Andrew Cagney <ac131313@redhat.com>
889
890 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
891 frame.
892
11269d7e
AC
8932002-09-26 Andrew Cagney <ac131313@redhat.com>
894
895 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
896 (rs6000_struct_return_address): Delete variable.
897 (rs6000_store_struct_return): Update.
898 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
899 deprecated_extract_struct_value_address.
900 (rs6000_frame_align): New function.
901 (rs6000_gdbarch_init): Set frame_align.
902
f15ab4a7
AC
9032002-09-26 Andrew Cagney <ac131313@redhat.com>
904
905 From Grace Sainsbury <graces@redhat.com>:
906 * Makefile.in (gdbtk-main.o): New target.
907 (gdb.o): New target.
908 (main_h): Define.
909 (main.o): Update dependencies.
910 (gdb$(EXEEXT)): Add gdb.o.
911 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
912 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
913 (SUBDIR_GDBTK_CLEAN): Set.
914 (install-gdbtk): Install the insight binary.
915 (uninstall-gdbtk): New target.
916 (all-gdbtk, clean-gdbtk): New rule.
917 * top.c (use_windows): Default to zero.
918 * main.c: Include "main.h".
919 (main): Delete.
920 (struct captured_main_args): Delete.
921 (gdb_main): New function.
922 * main.h: New file.
923 * gdb.c: New File.
924
e36180d7
AC
9252002-09-25 Andrew Cagney <cagney@redhat.com>
926
927 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
928 (frame_map_regnum_to_name): New function.
929 (frame_map_name_to_regnum): New function.
930 * frame.h (frame_map_name_to_regnum): Declare.
931 (frame_map_regnum_to_name): Declare.
932 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
933 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
934 * parse.c: Do not include "builtin-regs.h".
935 (target_map_name_to_register): Delete function.
936 (write_dollar_variable): Use frame_map_name_to_regnum.
937 * parser-defs.h (target_map_name_to_register): Delete declaration.
938 * expprint.c: Include "frame.h".
939 (print_subexp): Use frame_map_regnum_to_name.
940 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
941 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
942
8b69000d
AC
9432002-09-25 Andrew Cagney <ac131313@redhat.com>
944
945 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
946 wasn't saved, and the next innermost frame is a dummy, return the
947 dummy frame's link register.
948
046ca86a
JB
9492002-09-24 Jim Blandy <jimb@redhat.com>
950
951 Fix from Paul Breed:
952 * main.c (captured_main): Add a `break' after the case for 'b'.
953
94b66fa7
KS
9542002-09-24 Keith Seitz <keiths@redhat.com>
955
956 * varobj.c (c_type_of_child): Use get_target_type instead
957 of TYPE_TARGET_TYPE.
958
c214a6fd
FN
9592002-09-22 Fernando Nasser <fnasser@redhat.com>
960
53cb0458
FN
961 * source.c (get_current_or_default_source_symtab_and_line): Remove
962 function.
963 (set_default_source_symtab_and_line): New function. Attempts to
964 determine a source file to list lines from if one is not currently
965 defined.
966 (get_current_source_symtab_and_line): Initialize sal.pc and
967 sal.end fields.
968 (set_current_source_symtab_and_line): Mark argument as const.
969 * source.h: Update declarations and comments.
970 * linespec.c (decode_line_1): Replace call to removed routine above.
971 * stack.c (print_frame_info_base): Ditto.
972 * cli/cli-cmds.c (edit_command): Ditto.
973 (list_command): Ditto.
974
9752002-09-22 Fernando Nasser <fnasser@redhat.com>
976
d6020d45 977 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 978 sal.pc and sal.end fields.
c214a6fd
FN
979 (get_current_or_default_source_symtab_and_line): Ditto.
980 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
981 so we do not cause a new source symtab to be searched for (reverting an
982 unintentional change from the 2002-09-20 patch).
983 * scm-lang.c (scm_unpac): Ditto.
984
cc3b68a5
AC
9852002-09-21 Andrew Cagney <cagney@redhat.com>
986
987 * complaints.c (symfile_explanations): Remove new-line from
988 ``isolated_message''.
989 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
990 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
991
5835abe7
NC
9922002-09-20 Nick Clifton <nickc@redhat.com>
993
994 * NEWS: Announce that V850EA ISA is no longer supported.
995 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
996
a15ef5f5
DC
9972002-09-20 David Carlton <carlton@math.stanford.edu>
998
06ba1b39
DC
999 * Makefile.in (c-lang.o): Correct dependencies.
1000 (utils.o): Gather dependencies.
1001 (charset.o): Move.
a15ef5f5
DC
1002 * c-lang.c: #include "gdb_string.h"
1003
87885426
FN
10042002-09-20 Fernando Nasser <fnasser@redhat.com>
1005
1006 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1007 * cli/cli-cmds.c (list_command): New function. Implements the new
1008 cli edit command.
1009 (_init_cli_cmds): Add new command definition.
1010 * gdb.1: Document edit command.
1011 * doc/gdb.texinfo: Document edit command.
1012
10132002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
1014
1015 * source.c: Make global variables current_source_symtab and
1016 current_source_line static.
1017 (list_command): Moved to cli/cli-cmds.c.
1018 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1019 (get_first_line_listed): New accessor function.
1020 (get_lines_to_list): New accessor function.
1021 (get_current_source_symtab_and_line): New function. Retrieves the
1022 position in the source code that we consider current.
1023 (get_current_or_default_source_symtab_and_line): New function.
1024 Like the above but attempts to determine a default position if one
1025 is not currently defined.
1026 (set_current_source_symtab_and_line): New function. Sets the source
1027 code position considered current and returns the previously set one.
1028 (clear_current_source_symtab_and_line): Reset stored information about
1029 a current source line.
1030 (_initialize_source): Remove registration for the "list" command and
1031 its alias.
1032 * source.h: Add declarations for the new functions above.
1033 * symtab.h: Remove declarations for the global variables mentioned
1034 above.
1035 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1036 obtain current source line.
1037 * linespec.c (decode_line_1): Ditto.
1038 * macroscope.c (default_macro_scope): Ditto.
1039 * scm-lang.c (scm_unpac): Ditto.
1040 * stack.c (print_frame_info_base): Ditto.
1041 * symfile.c (clear_symtab_users): Ditto.
1042 * symtab.c (decode_line_spec): Ditto.
1043 * cli/cli-cmds.c (list_command): Moved here from source.c.
1044 (ambiguous_line_spec): Moved here from source.c.
1045 (_init_cli_cmds): Add definition for "list" and its alias.
1046 * Makefile.in: Update dependencies.
1047
ddd216ea
CV
10482002-09-20 Corinna Vinschen <vinschen@redhat.com>
1049
1050 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1051 with what gcc thinks is correct.
1052
6d305052
CV
10532002-09-20 Corinna Vinschen <vinschen@redhat.com>
1054
1055 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1056 multiple register push instruction.
1057
234b45d4
KB
10582002-09-19 Jim Blandy <jimb@redhat.com>
1059
1060 Add support for distinct host and target character sets.
1061 * charset.c, charset.h: New files.
1062 * c-exp.y: #include "charset.h".
1063 (yylex): Convert character and string literals to the target
1064 character set, before returning them as the semantic value of the
1065 token.
1066 * c-lang.c: #include "charset.h".
1067 (c_emit_char): Use charset-specific methods to recognize
1068 characters with backslash escape forms, to decide which characters
1069 to print literally and which to print using numeric escape
1070 sequences, and to convert target characters to host characters
1071 before printing.
1072 * utils.c: #include "charset.h".
1073 (no_control_char_error): New function.
1074 (parse_escape): Use charset-specific methods to recognize
1075 backslash escapes, parse `control character' notation, and convert
1076 characters from the host character set to the target character set.
1077 * configure.in: Set the default host character set.
1078 Check where to find iconv, and what its argument types might be.
1079 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1080 * Makefile.in (SFILES): List charset.c.
1081 (COMMON_OBS): List charset.o.
1082 (charset.o): New rule.
1083 (charset_h): New header dependency variable.
1084 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1085 (LIBICONV): New variable, set by configure.
1086 (CLIBS): Include $(LIBICONV) here.
1087 * aclocal.m4, config.in, configure: Regenerated.
1088
525d6a61
JB
10892002-09-19 Joel Brobecker <brobecker@gnat.com>
1090
1091 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1092 bison 1.35 warning.
1093
3ed93867
RE
10942002-09-19 Richard Earnshaw <rearnsha@arm.com>
1095
1096 * gdb_mbuild.sh: New file.
1097
437666f8
AC
10982002-09-19 Andrew Cagney <ac131313@redhat.com>
1099
1100 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1101
389e51db
AC
11022002-09-18 Andrew Cagney <ac131313@redhat.com>
1103
1104 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1105 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1106 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1107 valops.c, value.h: Revert previous change.
1108
3b4efeaa
MS
11092002-09-18 Michael Snyder <msnyder@redhat.com>
1110
1111 Preliminary support for Objective-C:
1112 * defs.h (language_objc): New enum value.
1113 (puts_filtered_tabular): Declaration only, exported from utils.c.
1114 (skip_quoted): Delete, declared in completer.h.
1115 * c-exp.y: Include completer.h.
1116 * p-exp.y: Ditto.
1117 * jv-exp.y: Ditto.
1118 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1119 New operator enum values.
1120 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1121 * language.c (binop_result_type): Handle language_objc case.
1122 (integral_type, character_type, string_type, boolean_type,
1123 structured_type, binop_type_check): Ditto.
1124 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1125 (struct objc_specific): Add to general_symbol_info.
1126 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1127 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1128 * parser-defs.h (struct objc_class_str): New struct type.
1129 (start_msglist, end_msglist, add_msglist): Declaration only,
1130 exported from objc-lang.c.
1131 * value.h (value_of_local, value_nsstring,
1132 call_function_by_hand_expecting_type): Exported from valops.c.
1133 * valops.c (find_function_addr): Export.
1134 (call_function_by_hand_expecting_type): New function.
1135 (value_of_local): New function.
1136 * symfile.c (init_filename_language_table): Add ".m" extension
1137 for Objective-C.
1138 * utils.c (puts_filtered_tabular): New function.
1139 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1140 (set/show demangle): Extend help-string to refer to ObjC.
1141 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1142 * stabsread.c (symbol_reference_defined): Objective-C symbols
1143 may contain colons: make allowances when scanning stabs strings
1144 for colons.
1145 (objc_find_colon): New function.
1146 * printcmd.c (address_info): If language == objc then print
1147 "self" instead of "this".
1148 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1149 OP_NSSTRING, and OP_SELF.
1150 (prefixify_subexp): Ditto.
1151 * source.c (print_source_lines): Mention objc in comment.
1152 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1153 method names.
1154
b9caf505
AC
11552002-09-18 Andrew Cagney <ac131313@redhat.com>
1156
1157 * complaints.h: Update copyright.
1158 (struct complaints): Declare.
1159 (struct complaint): Make `message' constant.
1160 (internal_complaint): Declare.
1161 (complaint): Declare.
1162 (complaint_root): Delete declaration.
1163 (symfile_complaints): Delete declaration.
1164 (struct complaints): Add opaque declaration.
1165 (clear_complaints): Add a complaints parameter.
1166 * complaints.c: Update copyright.
1167 (enum complaint_series): Define.
1168 (complaint_root): Delete.
1169 (struct complaints): Define.
1170 (complaint_sentinel, symfile_complaint_book): New variables.
1171 (symfile_explanations, symfile_complaints): New variables.
1172 New variables.
1173 (get_complaints): New function.
1174 (vcomplaint): New function.
1175 (complaint): New function.
1176 (internal_complaint): New function.
1177 (complain): Call vcomplain with symfile_complaint.
1178 (clear_complaints): Rewrite.
1179 (_initialize_complaints): Use add_setshow_command.
1180 * Makefile.in (complaints.o): Update dependencies.
1181 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1182 to call to clear_complaints.
1183 (new_symfile_objfile, reread_symbols): Ditto.
1184 (oldsyms_complaint): Delete.
1185 (empty_symtab_complaint, unknown_option_complaint): Delete.
1186 (free_named_symtabs): Use complaint instead of complain.
1187
d2e6263c
MS
11882002-09-18 Michael Snyder <msnyder@redhat.com>
1189
5fb2031a
AC
1190 Contributed by Apple Computer, Inc. Merged with current sources
1191 by Adam Fedor <fedor@doc.com> [cagney].
1192
d2e6263c
MS
1193 * objc-lang.c: First clean-up round: comments, indentation.
1194 * objc-lang.h: Ditto.
1195 * objc-lang.y: Ditto.
1196
dec43320
AC
11972002-09-18 Andrew Cagney <ac131313@redhat.com>
1198
1199 * maint.c (maintenance_internal_error): Print the parameter as the
1200 error message.
1201 (maintenance_internal_warning): New function.
1202 (_initialize_maint_cmds): Add command `maint internal-warning'.
1203
1204 * defs.h (internal_warning, internal_vwarning): Declare.
1205 * utils.c (struct internal_problem): Define.
1206 (internal_vproblem): New function.
1207 (internal_warning): New function.
1208 (internal_vwarning): New function.
1209 (internal_warning_problem, internal_error_problem): New variables.
1210 (internal_verror): Just call internal_vproblem.
1211
b81654f1
MS
12122002-09-18 Michael Snyder <msnyder@redhat.com>
1213
1214 * objc-lang.c: New file, support for Objective-C.
1215 Preliminary check-in, not yet integrated into gdb.
1216 * objc-lang.h: New file.
1217 * objc-exp.y: New file.
1218
0542c381
AC
12192002-09-18 Andrew Cagney <ac131313@redhat.com>
1220
7bda5e4a
AC
1221 * infrun.c (signal_stop_update): Convert definition to ISO C.
1222 (signal_print_update): Ditto.
1223 (signal_pass_update): Ditto.
1224 * inflow.c (terminal_save_ours): Ditto.
1225
5247b418
AC
1226 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1227 comments.
1228
fc60962c
AC
1229 * config/djgpp/fnchange.lst: Handle name clashes between
1230 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1231 bfd/coff-tic80.c.
1232
0542c381
AC
1233 * i386-linux-tdep.h: Fix tipo.
1234
5b924b9b
AF
12352002-09-18 Adam Fedor <fedor@gnu.org>
1236
1237 * MAINTAINERS: Add myself to the Write After Approval list.
1238
5afc051b
JB
12392002-09-18 Jim Blandy <jimb@redhat.com>
1240
1241 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1242 texthigh and textlow to reader-specific structs caused
1243 objfile_relocate to miss them. This is fixable, but the work that
1244 the change was supposed to prepare GDB for never got done anyway.
1245
eb944380
DC
12462002-09-18 David Carlton <carlton@math.stanford.edu>
1247
1248 * MAINTAINERS: Alphabetize Write After Approval list.
1249
948e66d9
DJ
12502002-09-18 Daniel Jacobowitz <drow@mvista.com>
1251
1252 Fix PR gdb/709
1253 * values.c (value_static_field): Call read_var_value.
1254
dc604539
AC
12552002-09-18 Andrew Cagney <ac131313@redhat.com>
1256
1257 * valops.c (hand_function_call): Align the initial stack pointer
1258 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1259 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1260 return value.
1261 * mips-tdep.c (mips_frame_align): New function.
1262 (mips_gdbarch_init): Set frame_align.
1263 * gdbarch.sh (FRAME_ALIGN): New method.
1264 * gdbarch.h, gdbarch.c: Re-generate.
1265
cb7e422f
ML
12662002-09-18 Michal Ludvig <mludvig@suse.cz>
1267
1268 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1269 registers.
1270
a094c6fb
AC
12712002-09-17 Andrew Cagney <ac131313@redhat.com>
1272
1273 * NEWS: Mention that MIPS $fp behavior changed.
1274 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1275 reference to FP_REGNUM.
1276 (mipsnbsd_cannot_store_register): Ditto.
1277 * mips-linux-nat.c: Update copyright.
1278 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1279 (mips_linux_cannot_store_register): Ditto.
1280 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1281 * config/mips/tm-mips.h: Update copyright.
1282 (FP_REGNUM): Delete macro.
1283 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1284 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1285 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1286 (mips_r3041_reg_names, mips_r3051_reg_names)
1287 (mips_r3081_reg_names): Replace "fp" with "".
1288 Fix PR gdb/480.
1289
45cf40d1
TR
12902002-09-17 Theodore A. Roth <troth@verinet.com>
1291
1292 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1293 generic_read_register_dummy() (PR gdb/703).
1294 (avr_push_return_address): #if 0 out unused vars.
1295 (avr_gdbarch_init): Enable use of avr_push_return_address().
1296
c7e701b5
MS
12972002-09-17 Michael Snyder <msnyder@redhat.com>
1298
d76ba2a5 1299 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1300 RTE will take care of it.
1301
20bcf01c
AC
13022002-09-17 Andrew Cagney <ac131313@redhat.com>
1303
1304 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1305 invalid, return SP_REGNUM.
1306
009a9971 13072002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1308
1309 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1310 point registers without sign extension.
1311
135c175f
AC
13122002-09-17 Andrew Cagney <cagney@redhat.com>
1313
1314 * blockframe.c (deprecated_read_register_dummy): Rename
1315 generic_read_register_dummy.
1316 * frame.c (frame_unwind_signed_register): New function.
1317 (frame_unwind_unsigned_register): New function.
1318 * frame.h (frame_unwind_signed_register): Declare.
1319 (frame_unwind_unsigned_register): Declare.
1320 (deprecated_read_register_dummy): Rename
1321 generic_read_register_dummy.
1322
1323 * h8300-tdep.c (h8300_frame_chain): Update.
1324 (h8300_frame_saved_pc): Update.
1325 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1326 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1327 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1328 (s390_frame_chain): Update.
1329 * v850-tdep.c (v850_find_callers_reg): Update.
1330 (v850_frame_saved_pc): Update.
1331 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1332 (m32r_find_callers_reg): Update.
1333 (m32r_frame_saved_pc): Update.
1334 * sh-tdep.c (sh_find_callers_reg): Update.
1335 (sh64_get_saved_pr): Update.
1336 (sh_init_extra_frame_info): Update.
1337 (sh_init_extra_frame_info): Update.
1338 (sh64_init_extra_frame_info): Update.
1339 (sh64_init_extra_frame_info): Update.
1340 * mcore-tdep.c (mcore_find_callers_reg): Update.
1341 (mcore_frame_saved_pc): Update.
1342 (mcore_init_extra_frame_info): Update.
1343 * i386-tdep.c (i386_frame_saved_pc): Update.
1344 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1345 (ia64_init_extra_frame_info): Update.
1346 (ia64_init_extra_frame_info): Update.
1347 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1348 * cris-tdep.c (cris_init_extra_frame_info): Update.
1349 * avr-tdep.c (avr_frame_chain): Update.
1350 (avr_init_extra_frame_info): Update.
1351 (avr_frame_saved_pc): Update.
1352 * arm-tdep.c (arm_find_callers_reg): Update.
1353 (arm_init_extra_frame_info): Update.
1354 (arm_frame_saved_pc): Update.
1355
a741e514
TT
13562002-09-17 Tom Tromey <tromey@redhat.com>
1357
1358 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1359 is "'".
1360
d1a8e808
CV
13612002-09-17 Corinna Vinschen <vinschen@redhat.com>
1362
1363 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1364 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1365 NEXT_PROLOGUE_INSN.
1366 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1367 NEXT_PROLOGUE_INSN.
1368
d9025a18
JB
13692002-09-16 Joel Brobecker <brobecker@gnat.com>
1370
1371 * osfsolib.c: Remove file, replaced by solib-osf.c.
1372 * Makefile.in: Remove compilation rules for osfsolib.c.
1373
1b2ef1b6
DC
13742002-09-16 David Carlton <carlton@math.stanford.edu>
1375
1376 * cp-valprint.c (cp_print_class_method): Correct args to
1377 check_stub_method_group.
1378
928e48af
CV
13792002-09-16 Corinna Vinschen <vinschen@redhat.com>
1380
1381 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1382 `set architecture'. Unify naming convention of functions.
1383 (h8300_skip_prologue): Improve prologue analysis.
1384 (h8300_push_arguments): Rewritten to more closely match GCC's
1385 bizarre argument-passing behavior, along with the comment describing
1386 said behavior.
1387 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1388 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1389 sim, remote-e7000.c, remote-hms.c and remote.c
1390
5e3397bb
MK
13912002-09-15 Mark Kettenis <kettenis@gnu.org>
1392
1393 * i386-tdep.c (gdb_print_insn_i386): Removed.
1394 (i386_print_insn): New function.
1395 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1396 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1397 tm_print_insn_info.
1398
f710f4fc
MK
13992002-09-14 Mark Kettenis <kettenis@gnu.org>
1400
1401 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1402 zero.
1403
db54fef4
CV
14042002-09-14 Corinna Vinschen <vinschen@redhat.com>
1405
1406 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1407 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1408 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1409
2becadee
CF
14102002-09-13 Christopher Faylor <cgf@redhat.com>
1411
1412 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1413
de17c821
DJ
14142002-09-13 Daniel Jacobowitz <drow@mvista.com>
1415
1416 * gdbtypes.c (check_stub_method): Make static.
1417 (check_stub_method_group): New function.
1418 * gdbtypes.h: Update prototypes.
1419 * cp-support.c: New file.
1420 * cp-support.h: New file.
1421
1422 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1423 (update_method_name_from_physname): New function.
1424 (read_member_functions): Correct method names for operators
1425 and v3 constructors/destructors. Separate v2 constructors and
1426 destructors.
1427 * Makefile.in (stabsread.o): Update dependencies.
1428 (SFILES): Add cp-support.c.
1429 (COMMON_OBS): Add cp-support.o.
1430 (cp_support_h, cp-support.o): Add.
1431
1432 * cp-valprint.c (cp_print_class_method): Call
1433 check_stub_method_group instead of check_stub_method. Remove
1434 extraneous QUITs.
1435 * p-valprint.c (pascal_object_print_class_method): Likewise.
1436 * valops.c (search_struct_method): Likewise.
1437 (find_method_list, value_struct_elt_for_reference): Likewise.
1438
e76cff22
AC
14392002-09-13 Andrew Cagney <cagney@redhat.com>
1440
1441 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1442 * gdbarch.h, gdbarch.c: Regenerate.
1443
905abb3f
AC
14442002-09-13 Andrew Cagney <ac131313@redhat.com>
1445
1446 * frame.c (find_saved_register): Delete function.
1447 * frame.h (find_saved_register): Delete declaration.
1448 Fix PR gdb/631.
1449
64159455
AC
1450Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1451
1452 * mips-tdep.c (read_next_frame_reg): Re-hack using
1453 frame_register_unwind.
1454
795e1e11
AC
1455Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1456
1457 * mips-tdep.c (mips_get_saved_register): Re-hack using
1458 frame_register_unwind.
1459
5720643c
JB
14602002-09-12 Joel Brobecker <brobecker@gnat.com>
1461
1462 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1463 vector. Will be useful for Interix.
1464 * gdbarch.h, gdbarch.c: Regenerate.
1465
1466 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1467 name of the malloc function by NAME_OF_MALLOC.
1468
3bada2a2
JB
14692002-09-12 Joel Brobecker <brobecker@gnat.com>
1470
1471 * value.h (find_function_in_inferior): Add const keyword to
1472 one of the parameters. Allows us to invoke this function with
1473 a const char *.
1474 * valops.c (find_function_in_inferior): Likewise.
1475
3db26b01
JB
14762002-09-12 Joel Brobecker <brobecker@gnat.com>
1477
1478 * exec.c (xfer_memory): Fix compilation warning with old versions
1479 of GCC.
1480 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1481
17c5ed2c
DC
14822002-09-12 David Carlton <carlton@math.stanford.edu>
1483
1484 * symtab.h: Run through gdb_indent.h.
1485 Add 2002 to Copyright year list.
1486
ecd1107e
AM
14872002-09-12 Alan Modra <amodra@bigpond.net.au>
1488
1489 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1490 mach constants.
1491 * MAINTAINERS: Add myself to write after approval list.
1492
e64f66d1
JB
14932002-09-11 J. Brobecker <brobecker@gnat.com>
1494
1495 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1496
f9395794
JB
14972002-09-11 J. Brobecker <brobecker@gnat.com>
1498
1499 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1500 Interix.
1501
1a303dec
MS
15022002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1503
1504 * procfs.c (do_detach): Clear current signal, not just fault.
1505 Corrects problem with breakpoint trap signal leaking to detached
1506 process on Tru64.
1507
c0219d42
MS
15082002-09-10 Michael Snyder <msnyder@redhat.com>
1509
1510 * buildsym.c (finish_block): Protect against null pointer.
1511
9d84ac84
AC
15122002-09-10 Andrew Cagney <cagney@redhat.com>
1513
1514 * infcmd.c (default_print_registers_info): Send all output to
1515 ``file'' instead of ``gdb_stdout''.
1516
77d8f2b4
MS
15172002-09-10 Michael Snyder <msnyder@redhat.com>
1518
1519 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1520 LONGEST, and use signed register read (addresses are sign-
1521 extended for mips).
1522
99656a61
SC
15232002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1524
1525 * event-loop.c (gdb_do_one_event): Make public.
1526 * event-loop.h (gdb_do_one_event): Declare.
1527
da12f4d8
JL
15282002-09-10 Jeff Law <law@redhat.com>
1529
1530 * infttrace.c (child_resume): Simplify and rework to avoid
1531 TT_PROC_CONTINUE.
1532
d0aee0c4
FF
15332002-09-09 Fred Fish <fnf@intrinsity.com>
1534
1535 * printcmd.c (print_scalar_formatted): "len" is the number of
1536 target bytes, NOT the number of target bits.
1537
7cb3ec5e
EZ
15382002-09-09 Elena Zannoni <ezannoni@redhat.com>
1539
1540 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1541 * top.c (init_main): Set rl_terminal_name.
1542
4dc81987
AS
15432002-09-08 Aidan Skinner <aidan@velvet.net>
1544
1545 * ada-lang.c (ada_array_bound, ada_type_match,
1546 _initialize_ada_language): Fix K&R definitions.
1547 * ada-tasks.c (get_current_task): Fix K&R definitions.
1548 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1549
842330b4
CF
15502002-09-07 Christopher Faylor <cgf@redhat.com>
1551
1552 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1553 Add XP.
1554
43156d82
MK
15552002-09-06 Mark Kettenis <kettenis@gnu.org>
1556
66da5fd8
MK
1557 * i386-tdep.c (i386_register_virtual_type,
1558 i386_register_convertible, i386_register_convert_to_virtual,
1559 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1560 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1561 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1562 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1563 Don't set push_arguments twice.
1564
4b218c18
MK
1565 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1566 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1567 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1568 sigtramp_end to NULL.
1569 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1570 defines.
1571 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1572
4cc314d5
MK
1573 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1574 whitespace.
1575
43156d82
MK
1576 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1577 * gdbarch.h, gdbarch.c: Re-generate.
1578 * blockframe.c (find_pc_sect_partial_function): Convert to use
1579 SIGTRAMP_START_P predicate.
1580
6672060b
MS
15812002-09-05 Michael Snyder <msnyder@redhat.com>
1582
a90c3637
MS
1583 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1584 generic_dummy_frame method and old method. Also distinguish
1585 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1586 (arm_extract_return_value): Use new regcache method.
a90c3637 1587
6672060b
MS
1588 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1589 adjustment that doesn't conform to the ABI.
1590 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1591 saved regcache, not from current regcache.
1592
299ffc64
AC
15932002-09-05 Andrew Cagney <ac131313@redhat.com>
1594
1595 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1596 * README: Update.
1597
a3a2ee65
JT
15982002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1599
1600 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1601 if arm_apcs_32 is false.
1602
2bc7eea9
AC
16032002-09-04 Andrew Cagney <ac131313@redhat.com>
1604
1605 GDB 5.3 branch created.
1606
8a55a7c5
TR
16072002-09-03 Theodore A. Roth <troth@verinet.com>
1608
1609 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1610 generic_unwind_get_saved_register.
1611
e26fb1d7
DC
16122002-09-03 David Carlton <carlton@math.stanford.edu>
1613
1614 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1615 argument (PR gdb/653). Update call to smash_to_method_type.
1616 (read_structure_scope): Update call to dwarf2_add_member_fn.
1617
30d52491
ML
16182002-09-03 Michal Ludvig <mludvig@suse.cz>
1619
1620 * x86-64-linux-tdep.c: Include gdb_string.h
1621 * x86-64-linux-nat.c: Ditto.
1622
06891d83
JT
16232002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1624
1625 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1626 when YYDEBUG is set to 1.
1627 * c-exp.y: Likewise.
1628 * f-exp.y: Likewise.
1629 * jv-exp.y: Likewise.
1630 * m2-exp.y: Likewise.
1631 * p-exp.y: Likewise.
1632
7d400e77
JT
16332002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1634
1635 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1636 dependency list.
1637 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1638 solib_svr4_fetch_link_map_offsets to
1639 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1640 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1641 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1642 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1643 solib-svr4.o, and solib-legacy.o.
1644 * config/i386/tm-nbsd.h: Include solib.h.
1645
704a27c4
JT
16462002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1647
1648 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1649 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1650 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1651 comment noting that this needs its own target configuration.
1652 * config/i386/nbsd.mt: New file.
1653 * config/i386/nbsdaout.mt: Remove.
1654 * config/i386/nbsdelf.mt: Ditto.
1655 * config/i386/tm-nbsdaout.h: Ditto.
1656
d66198e1
JT
16572002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1658
1659 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1660 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1661 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1662 tdep->sigtramp_end.
1663 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1664 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1665 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1666
3cac699e
JT
16672002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1668
1669 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1670 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1671 * i386-tdep.h (i386bsd_init_abi): New prototype.
1672 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1673 function declaration.
1674 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1675 for NetBSD-a.out or NetBSD-ELF.
1676 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1677 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1678 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1679 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1680 and nbsd-tdep.h.
1681 (i386nbsd_pc_in_sigtramp): New function.
1682 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1683 i386nbsd_pc_in_sigtramp.
1684 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1685 and i386nbsdelf_init_abi OS ABI handlers.
1686 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1687 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1688
7010ca0a
MK
16892002-09-02 Mark Kettenis <kettenis@gnu.org>
1690
1691 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1692 registers if the target really has them.
1693
6dd93b72
JT
16942002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1695
1696 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1697 than nbsd-tdep.h.
1698
2ca8ae21
JT
16992002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1700
1701 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1702 list.
1703 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1704 (alphanbsd_skip_sigtramp_frame): New functions.
1705 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1706 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1707 to alphanbsd_sigcontext_addr.
1708
3d9b49b0
JT
17092002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1710
1711 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1712 list.
1713 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1714 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1715 nbsd_pc_in_sigtramp.
1716 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1717 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1718 * nbsd-tdep.c: Include gdb_string.h.
1719 (nbsd_pc_in_sigtramp): New function.
1720 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1721 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1722 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1723 ppcnbsd_pc_in_sigtramp.
1724 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1725 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1726 shnbsd_pc_in_sigtramp.
1727 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1728 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1729 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1730
c860120c
PM
17312002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1732
1733 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1734 watchpoints to NULL.
1735 (insert_breakpoints): set val field of watchpoints if NULL.
1736
1737
c7612d53
JB
17382002-08-29 Jim Blandy <jimb@redhat.com>
1739
1740 * symtab.c (lookup_symbol_aux): In the cases where we find a
1741 minimal symbol of an appropriate name and use its address to
1742 select a symtab to read and search, use `name' (as passed to us)
1743 as the demangled name when searching the symtab's global and
1744 static blocks, not the minsym's name.
1745
66609862
KS
17462002-08-29 Keith Seitz <keiths@redhat.com>
1747
1748 * stack.c (print_frame_info_base): Always set current_source_symtab
1749 and current_source_line.
1750
151fefe2
JB
17512002-08-29 Donn Terry <donnte@microsoft.com>
1752
1753 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1754
bfb3754e
KS
17552002-08-28 Keith Seitz <keiths@redhat.com>
1756
1757 * stack.c (select_frame): Add FIXME concerning selected-frame
1758 events.
1759 (select_frame_command): Send selected-frame-level-changed
1760 event notification, but only if the level actually changed.
1761 (up_silently_base): Add selected-frame-level-changed event
1762 notification.
1763 (down_silently_base): Likewise.
1764
e822a2a0
AC
17652002-08-28 Andrew Cagney <ac131313@redhat.com>
1766
1767 * Makefile.in: Update dependencies for all gdb/*.c files.
1768
309367d4
TT
17692002-08-27 Tom Tromey <tromey@redhat.com>
1770
1771 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1772 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1773 Update dependencies.
1774 * i387-tdep.c: Include gdb_string.h.
1775 * osabi.c: Likewise.
1776 * i386-linux-nat.c: Likewise.
1777 * lin-lwp.c: Likewise.
1778 * ax-gdb.c: Likewise.
1779 * signals/signals.c: Likewise.
1780 * jv-valprint.c: Likewise.
1781 * p-lang.c: Likewise.
1782 * c-valprint.c: Likewise.
1783 * cp-abi.c: Likewise.
1784
e1507482
EZ
17852002-08-27 Elena Zannoni <ezannoni@redhat.com>
1786
1787 * cli/cli-script.h (copy_command_lines): Export.
1788 * breakpoint.c: Include cli/cli-script.h.
1789 * Makefile.in (breakpoint.o): Update dependencies.
1790
c6510018
MS
17912002-08-26 Michael Snyder <msnyder@redhat.com>
1792
1793 * breakpoint.c (insert_breakpoints): Protect all references
1794 to 'process_warning'. Shorten long lines.
1795
c2b8ed2c
MS
17962002-08-26 Joel Brobecker <brobecker@gnat.com>
1797
1798 * cli/cli-script.c (copy_command_lines): New function.
1799 * defs.h (copy_command_lines): Export.
1800 * testsuite/gdb.base/commands.exp: New tests for commands
1801 attached to a temporary breakpoint, and for commands that
1802 delete the breakpoint they are attached to.
1803
18042002-08-26 Michael Snyder <msnyder@redhat.com>
1805
1806 * breakpoint.c (bpstat_stop_status): Instead of copying the
1807 pointer to the breakpoint commands struct, make a new copy
1808 of the struct and point to that.
1809 (bpstat_clear): Free the commands struct.
1810 (bpstat_clear_actions): Free the commands struct.
1811 (bpstat_do_actions): Free the command actions. Also execute
1812 the local cleanups, instead of deleting them.
1813 (delete_breakpoint): Leave the commands field of the bpstat
1814 chain alone -- it will be freed later.
1815
64b84175
KB
18162002-08-26 Kevin Buettner <kevinb@redhat.com>
1817
1818 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1819 deleted in 2002-08-20 commit. This function is still used by
1820 ppc-linux-nat.c.
1821
55970da6
KS
18222002-08-26 Keith Seitz <keiths@redhat.com>
1823
1824 * gdb-events.sh: Add selected-frame-level-changed event.
1825 * gdb-events.c: Regenerated.
1826 * gdb-events.h: Regenerated.
1827
a790ad35
SC
18282002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1829
1830 Fix PR gdb/393:
1831 * inflow.c (terminal_save_ours): New function to save terminal
1832 settings.
1833 * inferior.h (terminal_save_ours): Declare.
1834 * target.c (debug_to_terminal_save_ours): New function.
1835 (cleanup_target): Defaults to_terminal_save_ours.
1836 (update_current_target): Inherit to_terminal_save_ours.
1837 (setup_target_debug): Set to_terminal_save_ours.
1838 * target.h (target_terminal_save_ours): New to save terminal settings.
1839 (target_ops): New member to_terminal_save_ours.
1840 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1841 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1842 * inftarg.c (init_child_ops): Likewise.
1843 * m3-nat.c (init_m3_ops): Likewise.
1844 * procfs.c (init_procfs_ops): Likewise.
1845 * wince.c (init_child_ops): Likewise.
1846 * win32-nat.c (init_child_ops): Likewise.
1847 * sol-thread.c (init_sol_thread_ops): Likewise.
1848
c00dcbe9
MK
18492002-08-26 Mark Kettenis <kettenis@gnu.org>
1850
3d7f4f49
MK
1851 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1852 use regcache_* functions.
1853 (i386_gdbarch_init): Set store_return_value instead of
1854 deprecated_store_return_value.
1855
c00dcbe9
MK
1856 * regcache.c (regcache_raw_write_signed,
1857 regcache_raw_write_unsigned): New functions.
1858 * regcache.h (regcache_raw_write_signed,
1859 regcache_raw_write_unsigned): New prototypes.
1860
0e0d15ca
AC
18612002-08-25 Andrew Cagney <ac131313@redhat.com>
1862
1863 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1864 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1865 source file dependencies. Cleanup corresponding generator rules.
1866
d3b22ed5
AC
18672002-08-25 Andrew Cagney <ac131313@redhat.com>
1868
1869 * regcache.h (register_offset_hack): Declare.
1870 (regcache_cooked_read_using_offset_hack): Declare.
1871 (regcache_cooked_write_using_offset_hack): Declare.
1872
1873 * regcache.c (register_offset_hack): New function.
1874 (regcache_cooked_read_using_offset_hack): New function.
1875 (regcache_cooked_write_using_offset_hack): New function.
1876 (regcache_dump): Check that the registers, according to their
1877 offset, are packed hard against each other.
1878 (cooked_xfer_using_offset_hack): New function.
1879
bb425013
AC
18802002-08-25 Andrew Cagney <ac131313@redhat.com>
1881
1882 * regcache.c (struct regcache_descr): Add field register_type.
1883 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1884 in as a parameter
1885 (init_regcache_descr): Initialize register_type. Pass the descr
1886 to init_legacy_regcache_descr. Use register_type instead of
1887 REGISTER_VIRTUAL_TYPE.
1888 (register_type): New function.
1889 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1890 * regcache.h (register_type): Declare.
1891
d0403e00
AC
18922002-08-25 Andrew Cagney <ac131313@redhat.com>
1893
1894 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1895 instead of deprecated_store_return_value. Fix fallout from
1896 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1897
0ed04cce
AC
18982002-08-25 Andrew Cagney <ac131313@redhat.com>
1899
1900 * regcache.c (max_register_size): New function.
1901 (init_legacy_regcache_descr): Ensure that max_register_size is
1902 large enough for REGISTER_VIRTUAL_SIZE.
1903 * regcache.h (max_register_size): Declare.
1904
46d79c04
AC
19052002-08-24 Andrew Cagney <ac131313@redhat.com>
1906
1907 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1908 store_return_value.
1909 (e500_extract_return_value): Change type of valbuf pointer to
1910 void.
1911
853c7bd0
MK
19122002-08-24 Mark Kettenis <kettenis@gnu.org>
1913
cd87e769
MK
1914 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1915 workaround.
1916
853c7bd0
MK
1917 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1918 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1919 long long) to prevent compiler warning on 64-bit systems.
1920
ebba8386
AC
19212002-08-23 Andrew Cagney <cagney@redhat.com>
1922
1923 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1924 (DEPRECATED_STORE_RETURN_VALUE): New method.
1925 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1926 * gdbarch.h, gdbarch.c: Re-generate.
1927
1928 * values.c (set_return_value): Pass current_regcache to
1929 STORE_RETURN_VALUE.
1930 * arch-utils.h (legacy_store_return_value): Declare.
1931 * arch-utils.c (legacy_store_return_value): New function.
1932 (legacy_extract_return_value): Update parameters.
1933
1934 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1935 STORE_RETURN_VALUE.
1936 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1937 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1938 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1939 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1940 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1941 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1942 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1943 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1944 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1945 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1946
1947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1948 * i386-tdep.c (i386_extract_return_value): Update.
1949 * arch-utils.c (legacy_extract_return_value): Update.
1950 * frv-tdep.c (frv_gdbarch_init): Update.
1951 * cris-tdep.c (cris_gdbarch_init): Update.
1952 * d10v-tdep.c (d10v_gdbarch_init): Update.
1953 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1954 * m68k-tdep.c (m68k_gdbarch_init): Update.
1955 * mcore-tdep.c (mcore_gdbarch_init): Update.
1956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1957 * s390-tdep.c (s390_gdbarch_init): Update.
1958 * sparc-tdep.c (sparc_gdbarch_init): Update.
1959 * sh-tdep.c (sh_gdbarch_init): Update.
1960 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1961 * v850-tdep.c (v850_gdbarch_init): Update.
1962 * avr-tdep.c (avr_gdbarch_init): Update.
1963 * ia64-tdep.c (ia64_gdbarch_init): Update.
1964 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1965 * vax-tdep.c (vax_gdbarch_init): Update.
1966 * alpha-tdep.c (alpha_gdbarch_init): Update.
1967 * arm-tdep.c (arm_gdbarch_init): Update.
1968 * mips-tdep.c (mips_gdbarch_init): Update.
1969 * i386-tdep.c (i386_gdbarch_init): Update.
1970
5bd8c6d0
AC
19712002-08-23 Andrew Cagney <ac131313@redhat.com>
1972
1973 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1974 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1975
e73e1724
MK
19762002-08-24 Mark Kettenis <kettenis@gnu.org>
1977
1978 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1979 problems.
1980
3e6564e1
JB
19812002-08-23 Joel Brobecker <brobecker@gnat.com>
1982
1983 * infrun.c (handle_inferior_event): Move a comment outside of a
1984 function call, in order to avoid indent reformatting this part
1985 of the code in an unreadable way.
1986
81d0cc19
GS
19872002-08-23 Grace Sainsbury <graces@redhat.com>
1988
1989 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1990 when breakpoints fail. Move general breakpoint error messages to
1991 insert_breakpoints.
1992 * breakpoint.c (insert_breakpoints): Change warnings when
1993 breakpoints are nto inserted to specify the type. Remove call to
1994 memory_error when hardware breakpoints can't be inserted. Remove
1995 multiple calls to warning so all messages are sent to the user at
1996 once.
1997 (delete_breakpoints): Make insert error messsages more explicit.
1998
17574093
DJ
19992002-08-23 Daniel Jacobowitz <drow@mvista.com>
2000
2001 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2002 gdbserver/ChangeLog.
2003
8acc2935
MK
20042002-08-23 Mark Kettenis <kettenis@gnu.org>
2005
dfe01d39
MK
2006 * i386-tdep.c: Include "objfiles.h".
2007 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2008 skip_trampoline_code.
2009 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2010 (CPLUS_MARKER): Define to '.'.
2011
8acc2935
MK
2012 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2013 member.
2014 (linux_corefile_thread_callback): Increase args->num_notes.
2015 (linux_make_note_section): Initialize thread_args.num_notes, and
2016 use it to determine whether notes for any threads were created.
2017
151fefe2 20182002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
2019
2020 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2021 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2022 and PCUNKILL.
2023 (write_with_trace): Conditionalize out the switch branch handling
2024 PCSHOLD if the corresponding macro is not defined. Likewise for
2025 PRSABORT and PRSTOP.
2026 This change will be needed by the Interix port.
2027
e1507482
EZ
20282002-08-22 Elena Zannoni <ezannoni@redhat.com>
2029
2030 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2031 write_register wherever possible instead of manipulating the
2032 register bytes directly.
2033 Assign VALUE_CONTENTS to a variable and use that.
2034 The GPR numbers are now dependent on the architecture.
2035
96ff0de4
EZ
20362002-08-22 Elena Zannoni <ezannoni@redhat.com>
2037
2038 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2039 ev_offset fields.
2040 (skip_prologue): Add support for BookE/e500 instructions.
2041 (e500_extract_return_value): New function.
2042 (frame_get_saved_regs): Add support for saving ev registers and
2043 pseudo gpr's.
2044 (e500_store_return_value): New function.
2045 (rs6000_gdbarch_init): Move up default intializations of
2046 deprecated_extract_return_value and store_return_value. Overwrite
2047 init of store_return_value with e500 specific version.
2048 Set extract_return_value for e500.
2049
fbefca5b
EZ
20502002-08-22 Elena Zannoni <ezannoni@redhat.com>
2051
2052 * blockframe.c (generic_call_dummy_register_unwind): Use
2053 regcache_cooked_read to catch cases in which the variable is
2054 stored in a pseudo register.
2055
4d210288
AC
20562002-08-22 Andrew Cagney <cagney@redhat.com>
2057
2058 * NEWS: Mention that the i960 has been made obsolete.
2059 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2060 i960-tdep.c
2061 (remote-nrom.o): Obsolete target.
2062 (remote-nindy.o, i960-tdep.o): Ditto.
2063 * remote-nrom.c: Make file obsolete.
2064 * remote-nindy.c, remote-vx960.c: Ditto.
2065 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2066 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2067 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2068 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2069 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2070 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2071 i960-*-vxworks* obsolete.
2072 * MAINTAINERS: Note that the i960 is obsolete.
2073
6c0c456d
CV
20742002-08-21 Corinna Vinschen <vinschen@redhat.com
2075
2076 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2077 detach to allow reinitialization.
2078
9f9d12b3
AC
20792002-08-22 Andrew Cagney <ac131313@redhat.com>
2080
2081 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2082 attempt).
2083
ebeb39fe
JB
20842002-08-22 Jim Blandy <jimb@redhat.com>
2085
2086 * coffread.c (coff_symfile_read): Don't try to read the line
2087 number table from disk if the image file doesn't have a symbol
2088 table; we'll never actually look at the info anyway, and Windows
2089 ships DLL's with bogus file offsets for the line number data.
2090
5bf1c677
EZ
20912002-08-21 Elena Zannoni <ezannoni@redhat.com>
2092
2093 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2094 an e500 executable.
2095
71b8ef93
MS
20962002-08-21 Michael Snyder <msnyder@redhat.com>
2097
2098 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2099 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2100 (DEFAULT_MIPS_TYPE): Delete unused macro.
2101 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2102 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2103
d174216d
JB
21042002-08-21 Jim Blandy <jimb@redhat.com>
2105
2106 * valops.c (value_cast): Simplify and correct logic for doing a
2107 static cast from a pointer to a base class to a pointer to a
2108 derived class.
2109
0ab7a791
AC
21102002-08-21 Andrew Cagney <ac131313@redhat.com>
2111
2112 * infcmd.c (default_print_registers_info): Replace
2113 do_registers_info.
2114 (registers_info): Use gdbarch_print_registers_info instead of
2115 DO_REGISTERS_INFO.
2116 * inferior.h (default_print_registers_info): Replace
2117 do_registers_info.
2118 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2119 (DO_REGISTERS_INFO): Change to a predicate function.
2120 * gdbarch.h, gdbarch.c: Regenerate.
2121
e23792cc
KS
21222002-08-21 Keith Seitz <keiths@redhat.com>
2123
2124 * gdb-events.sh: Add target-changed event.
2125 * gdb-events.c: Regenerated.
2126 * gdb-events.c: Regenerated.
2127 * valops.c (value_assign): Add target-changed event notification
2128 to inlval_register, lval_memory, and lval_reg_frame_relative.
2129
9fb14e79
JB
21302002-08-21 Joel Brobecker <brobecker@gnat.com>
2131
2132 * NEWS: Add an entry regarding the improvement of the next/step
2133 operation on Alpha Tru64 multi-processor machines.
2134
6d39a69f
AC
21352002-08-21 Andrew Cagney <ac131313@redhat.com>
2136
72acd513
AC
2137 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2138 directores.
342af04b 2139 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2140 * Makefile.in (install-gdbtk): Move to install section.
2141 (rdi-share/libangsd.a): Move to end of file.
2142
fa5f27c7
AC
21432002-08-19 Andrew Cagney <ac131313@redhat.com>
2144
2145 * frame.c (frame_register_unwind): When a register, set addrp to
2146 the register's byte.
2147
5a89d8aa
MS
21482002-08-20 Michael Snyder <msnyder@redhat.com>
2149
2150 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2151 used locally, so move them from the target machine header to here.
2152 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2153 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2154 Make static.
2155 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2156
822e978b
AC
21572002-08-20 Andrew Cagney <cagney@redhat.com>
2158
2159 * NEWS: Mention that the Apollo line was made obsolete.
2160 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2161 m68*-hp-hpux* obsolete.
2162 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2163 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2164 * buildsym.c (make_blockvector): Make static.
2165 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2166 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2167 (ALLDEPFILES): Remove dstread.c.
2168 (dstread.o): Obsolete make rule.
2169 * dstread.c: Makefile obsolete.
2170 * dst.h: Ditto.
2171 * config/m68k/hp300hpux.mt: Ditto.
2172 * config/m68k/hp300hpux.mh: Ditto.
2173 * config/m68k/hp300bsd.mt: Ditto.
2174 * config/m68k/hp300bsd.mh: Ditto.
2175 * config/m68k/apollo68b.mt: Ditto.
2176 * config/m68k/apollo68v.mh: Ditto.
2177 * config/m68k/apollo68b.mh: Ditto.
2178
e41b17f0
MS
21792002-08-20 Michael Snyder <msnyder@redhat.com>
2180
2181 * mips-tdep.c (mips_in_return_stub): Make static.
2182 (mips_gdbarch_init): Set in_solib_return_trampoline.
2183 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2184
d50355b6
MS
21852002-08-20 Michael Snyder <msnyder@redhat.com>
2186
2187 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2188 * gdbarch.c, gdbarch.h: Regenerate.
2189 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2190 Add.
2191 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2192
757a7cc6
MS
21932002-08-20 Michael Snyder <msnyder@redhat.com>
2194
2195 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2196 (mips_gdbarch_init): Set skip_trampoline_code,
2197 in_solib_call_trampoline.
2198 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2199 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2200
c8001721
EZ
22012002-08-20 Elena Zannoni <ezannoni@redhat.com>
2202
2203 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2204
2205 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2206 vector type for ev registers.
2207 (e500_pseudo_register_read): New function.
2208 (e500_pseudo_register_write): New function.
2209 (e500_dwarf2_reg_to_regnum): New function.
2210 (PPC_UISA_NOFP_SPRS): New macro.
2211 (PPC_EV_REGS): New macro.
2212 (PPC_GPRS_PSEUDO_REGS): New macro.
2213 (registers_e500): New register set for e500.
2214 (variants): Add e500 variant.
2215 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2216 before setting architectural dependent variations. Initialize ev
2217 registers numbers. Add case for e500 architecture. Set the
2218 number of pseudo registers.
2219
64366f1c
EZ
22202002-08-20 Elena Zannoni <ezannoni@redhat.com>
2221
2222 * rs6000-tdep.c: Clean up comments.
2223
7e78f0ca
AC
22242002-08-20 Andrew Cagney <cagney@redhat.com>
2225
2226 * h8300-tdep.c: Re-indent file.
2227
697f7479
JB
22282002-08-20 Jim Blandy <jimb@redhat.com>
2229
2230 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2231 default for this.
697f7479 2232
e86ae29f
KS
22332002-08-20 Keith Seitz <keiths@redhat.com>
2234
2235 * breakpoints.c (watch_command_1): Use internal breakpoint
2236 when setting a watchpoint_scope breakpoint.
2237
216b504f
EZ
22382002-08-20 Elena Zannoni <ezannoni@redhat.com>
2239
2240 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2241 (build_builtin_type_vec64i): Ditto.
2242 (build_builtin_type_vec128): Ditto.
2243 (build_builtin_type_vec128i): Ditto.
2244
f7ab6ec6
MS
22452002-08-19 Michael Snyder <msnyder@redhat.com>
2246
2247 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2248 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2249 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2250 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2251 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2252 CALL_DUMMY_ADDRESS): Delete.
2253 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2254 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2255 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2256 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2257 push_return_address.
2258 (mips_register_raw_size, mips_eabi_use_struct_convention,
2259 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2260 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2261 mips_init_extra_frame_info, mips_eabi_push_arguments,
2262 mips_n32n64_push_arguments, mips_push_return_address,
2263 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2264 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2265
b5d1566e
MS
22662002-08-19 Michael Snyder <msnyder@redhat.com>
2267
2268 * mips-tdep.c (mips_frame_num_args): New function.
2269 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2270 frame_saved_pc, frame_args_address, frame_locals_address,
2271 frame_num_args, and frame_args_skip.
2272 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2273 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2274 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2275 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2276
2f1488ce
MS
22772002-08-20 Michael Snyder <msnyder@redhat.com>
2278
2279 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2280 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2281 * mips-tdep.c (mips_store_struct_return): New function.
2282 (mips_extract_struct_value_address): New function.
2283 (mips_gdbarch_init): Set store_struct_return and
2284 extract_struct_value_address.
2285
41ff2da1
DC
22862002-08-20 David Carlton <carlton@math.stanford.edu>
2287
2288 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2289 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2290 (read_file_scope): Check that line_header is nonzero before
2291 decoding macro information.
2292
e5451d58
MK
22932002-08-20 Mark Kettenis <kettenis@gnu.org>
2294
2295 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2296 flag the general-purpose registers as floating-point on targets
2297 that don't support the floating-point registers.
2298
4a6daafa
EZ
22992002-08-20 Elena Zannoni <ezannoni@redhat.com>
2300
2301 * rs6000-tdep.c (altivec_register_p): Delete.
2302 (rs6000_do_altivec_registers): Delete.
2303 (rs6000_altivec_registers_info): Delete.
2304 (rs6000_do_registers_info): Delete.
2305 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2306 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2307
ab4327e0
EZ
23082002-08-20 Elena Zannoni <ezannoni@redhat.com>
2309
2310 * infcmd.c (do_registers_info): Print vector registers in hex
2311 format only.
2312 (print_vector_info): Check that printing registers
2313 makes sense.
2314 (print_float_info): Ditto.
2315
cb1d2653
AC
23162002-08-20 Andrew Cagney <ac131313@redhat.com>
2317
2318 * mips-tdep.c (mips_gdbarch_init): Update.
2319 (mips_o32_extract_return_value): Rewrite.
2320 (mips_o32_store_return_value): Rewrite.
2321 (mips_o32_xfer_return_value): New function.
2322 (mips_xfer_register): Tweak debug print message. Allow for
2323 buf_offset when dumping the value transfered.
2324
dfc3d9b2
AC
23252002-08-20 Andrew Cagney <ac131313@redhat.com>
2326
2327 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2328 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2329 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2330 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2331 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2332
7807aa61
MS
23332002-08-14 Michael Snyder <msnyder@redhat.com>
2334
2335 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2336
489461e2
EZ
23372002-08-19 Elena Zannoni <ezannoni@redhat.com>
2338
2339 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2340 register.
2341 (P): New macro to define a register as a pseudo register.
2342 (R, R4, R8, R16, FR32, R64, R0): Updated.
2343 (struct variant): Add new fields for number of pseudo registers
2344 and number of total registers.
2345 (tot_num_registers): New macro replacing....
2346 (num_registers): ...deleted macro.
2347 (num_registers): New function.
2348 (num_pseudo_registers): New function.
2349 (variants): Update all variants to intialize new fields correctly.
2350 Postpone initialization of number of pseudo regs and real regs.
2351 (init_variants): New function.
2352 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2353 registers offsets.
2354
fcaffe4c
DC
23552002-08-19 David Carlton <carlton@math.stanford.edu>
2356
2c2738a0
DC
2357 * valops.c (search_struct_field): Change error message to treat
2358 return value of 0 from value_static_field as meaning that field is
2359 optimized out.
2360 (value_struct_elt_for_reference): Ditto.
2361 * values.c (value_static_field): Treat an unresolved location the
2362 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2363 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2364 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2365 * MAINTAINERS: Add self to Write After Approval list.
2366
88658117
AC
23672002-08-19 Andrew Cagney <ac131313@redhat.com>
2368
2369 * mips-tdep.c (mips_xfer_register): New function.
2370 (mips_n32n64_extract_return_value): Rewrite.
2371 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2372 instead of deprecated_extract_return_value.
2373
21283beb
EZ
23742002-08-19 Elena Zannoni <ezannoni@redhat.com>
2375
2376 * rs6000-tdep.c (TDEP): Delete macro.
2377 (branch_dest): Replace use of TDEP macro with its body.
2378 (rs6000_pop_frame): Ditto.
2379 (rs6000_push_arguments): Ditto.
2380 (rs6000_skip_trampoline_code): Ditto.
2381 (rs6000_frame_saved_pc): Ditto.
2382 (rs6000_frame_chain): Ditto.
2383 (rs6000_register_name): Ditto.
2384 (rs6000_register_byte): Ditto.
2385 (rs6000_register_raw_size): Ditto.
2386 (rs6000_register_virtual_type): Ditto.
2387 (rs6000_register_convertible): Ditto.
2388 (rs6000_convert_from_func_ptr_addr): Ditto.
2389
bf072999
DJ
23902002-08-19 Daniel Jacobowitz <drow@mvista.com>
2391
2392 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2393 conditionally.
2394 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2395 MIPS_LINUX_JB_ELEMENT_SIZE.
2396 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2397 for MAX_REGISTER_RAW_SIZE arrays.
2398 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2399 MIPS_LINUX_JB_ELEMENT_SIZE.
2400
9b949a49
PM
24012002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2402
2403 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2404
6d3e79c6
AS
24052002-08-19 Aidan Skinner <aidan@velvet.net>
2406
2407 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2408 ada-valprint.c ada-tasks.c.
2409 (YYFILES): Add ada-exp.y.
2410 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2411 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2412 (ada-exp.tab.o): New target.
2413
06c0b04e
AC
24142002-08-18 Andrew Cagney <ac131313@redhat.com>
2415
2416 * regcache.c (regcache_xfer_part): New function.
2417 (regcache_raw_read_part): New function.
2418 (regcache_raw_write_part): New function.
2419 (regcache_cooked_read_part): New function.
2420 (regcache_cooked_write_part): New function.
2421 * regcache.h (regcache_raw_read_part): Declare.
2422 (regcache_raw_write_part): Declare.
2423 (regcache_cooked_read_part): Declare.
2424 (regcache_cooked_write_part): Declare.
2425
92d1e331
DJ
24262002-08-18 Daniel Jacobowitz <drow@mvista.com>
2427
2428 * remote.c (remote_open_1): Add async_p.
2429 (remote_async_open_1): Delete.
2430 (open_remote_target): Delete.
2431 (remote_open, extended_remote_open): Update calls to remote_open_1.
2432 (remote_async_open, extended_remote_async_open): Call
2433 remote_open_1 instead of remote_async_open_1.
2434
247055de
MK
24352002-08-19 Mark Kettenis <kettenis@gnu.org>
2436
2437 * blockframe.c: Fix a few coding standard violations.
2438
641eda39
MK
24392002-08-19 Mark Kettenis <kettenis@gnu.org>
2440
0b717710
MK
2441 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2442 here from ...
2443 * config/i386/tm-i386sco5.h: ... here. File removed.
2444 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2445
26d28e12 2446 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2447 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2448 (TM_FILE): Set to tm-i386.h.
2449 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2450 * config/i386/tm-i386v.h: Remove file.
2451 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2452 instead of "i386/tm-i386v.h".
2453 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2454 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2455 "i386/tm-i386v.h".
2456 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2457 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2458 "i386/tm-i386.h".
2459
d4e0bab4
MK
24602002-08-18 Mark Kettenis <kettenis@gnu.org>
2461
2462 * config/i386/nm-i386v.h: Add protection against
2463 multiple-inclusion.
2464 (i386_register_u_addr): Remove prototype.
2465 (register_u_addr): New prototype.
2466 (REGISTER_U_ADDR): Redefine accordingly.
2467 * i386v-nat.c: Improve several comments.
2468 (i386_register_u_addr): Change signature and rename to
2469 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2470 ubase variable.
2471
46cac009
AC
24722002-08-18 Andrew Cagney <ac131313@redhat.com>
2473
2474 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2475 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2476 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2477 deprecated_extract_return_value.
2478 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2479 rename mips_o32o64_push_arguments.
2480 (mips_gdbarch_init): Update.
2481 (mips_extract_return_value): Delete.
2482 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2483 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2484 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2485 (mips_n32n64_extract_return_value): Clone
2486 mips_extract_return_value.
2487 (mips_store_return_value): Delete.
2488 (mips_o32_store_return_value): Clone mips_store_return_value.
2489 (mips_o64_store_return_value): Clone mips_store_return_value.
2490 (mips_eabi_store_return_value): Clone mips_store_return_value.
2491 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2492
d2e4a39e
AS
24932002-08-18 Aidan Skinner <aidan@velvet.net>
2494
0c30c098
AS
2495 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2496 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2497
24982002-08-18 Aidan Skinner <aidan@velvet.net>
2499
2500 * ada-lang.c: Run through gdb_indent.sh.
2501 * ada-lang.h: Run through gdb_indent.sh.
2502 * ada-tasks.c: Run through gdb_indent.sh.
2503 * ada-typeprint.c: Run through gdb_indent.sh.
2504 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2505
01fc4e33
AC
25062002-08-18 Andrew Cagney <ac131313@redhat.com>
2507
2508 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2509 ABI.
2510
d8ee244c
MK
25112002-08-18 Mark Kettenis <kettenis@gnu.org>
2512
c38d8261
MK
2513 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2514
222db64c
MK
2515 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2516 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2517
c2848c82
MK
2518 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2519 write_register_gen instead of write_register_bytes.
2520
d8ee244c
MK
2521 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2522 i[3456]-*-osf1mk* configurations have been made obsolete.
2523 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2524 i[3456]86-*-osf1mk* hosts obsolete.
2525 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2526 targets obsolete.
2527 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2528 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2529 config/i386/i386m3.mt, config/i386/nm-m3.h,
2530 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2531 config/i386/i386mk.mh, config/i386/i386mk.mt,
2532 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2533 obsolete.
2534 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2535 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2536 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2537
61d8d407
AC
25382002-08-18 Andrew Cagney <ac131313@redhat.com>
2539
2540 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2541 (hppa_value_returned_from_stack): Declare.
2542 (hppa_extract_return_value): Declare.
2543 * config/pa/hppa.mt: New file.
2544 * configure.tgt: Recognize hppa*-*-*.
2545 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2546
0c52bd59
MK
25472002-08-18 Mark Kettenis <kettenis@gnu.org>
2548
2549 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2550 comment.
2551
b5686e99
MK
25522002-08-17 Mark Kettenis <kettenis@gnu.org>
2553
2554 * top.c (gdb_rl_operate_and_get_next): Make sure
2555 operate-and-get-next functions correctly even when the history
2556 list is completely filled.
2557
c1bab85b
AC
25582002-08-18 Andrew Cagney <ac131313@redhat.com>
2559
2560 * MAINTAINERS (Target Instruction Set Architectures): Rename
2561 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2562 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2563 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2564 already listed under Host/Native.
2565
2566 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2567 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2568 mips*-*-*.
2569
32089c7c
AC
25702002-08-17 Andrew Cagney <ac131313@redhat.com>
2571
2572 * config/ia64/ia64.mt: New file.
2573 * config/alpha/alpha.mt: New file.
2574 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2575 ia64-linux-gnu. Mention that ia64-elf is broken.
2576 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2577
b4671f85
MK
25782002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2579
2580 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2581 generic_func_frame_valid instead of func_frame_valid.
2582
c8edd8b4
JB
25832002-08-16 Joel Brobecker <brobecker@gnat.com>
2584
2585 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2586 procfs appears to be broken when debugging on multi-processor
2587 machines. So enable software single stepping in order to avoid
2588 using the procfs interface to do next/step operations, using
2589 internal breakpoints instead.
2590
2591 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2592 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2593 make this pc address equal to the value it would have if the
2594 system stepping capability was used. Also set a new flag used
2595 to ensure that we don't readjust the PC one more time later.
2596
2597 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2598 address by DECR_PC_AFTER_BREAK when software single step is
2599 in use for this architecture, as this has already been taken
2600 care of in handle_inferior_event().
2601
238617f6
JB
26022002-08-16 Joel Brobecker <brobecker@gnat.com>
2603
2604 * infrun.c (handle_inferior_event): Minor reformatting, to make
2605 a rather long condition expression easier to read.
2606
541a7aac
AC
26072002-08-16 Andrew Cagney <ac131313@redhat.com>
2608
2609 * Makefile.in (gdbtk.o): Move to end of file.
2610 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2611 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2612 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2613 (gdbtk-wrapper.o, gdbres.o): Ditto.
2614
f92d4a7b
AC
26152002-08-16 Andrew Cagney <ac131313@redhat.com>
2616
2617 * Makefile.in (copying.o): Separate out compile rule.
2618 (hpux-thread.o, procfs.o, signals.o): Ditto.
2619 (v850ice.o, z8k-tdep.o): Ditto.
2620 (tui-file.o): Move to TUI section.
2621 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2622 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2623
1cce71eb
JB
26242002-08-16 Joel Brobecker <brobecker@gnat.com>
2625
2626 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2627 skip_trampoline_code, for better namespace-proofing.
2628
2629 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2630
0851f23d
JB
26312002-08-16 Joel Brobecker <brobecker@gnat.com>
2632
2633 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2634
f8d40ec8
JB
26352002-08-16 Joel Brobecker <brobecker@gnat.com>
2636
2637 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2638 signal, check whether we hit a breakpoint before checking for a
2639 single step breakpoint. Otherwise, GDB fails to notice that a
2640 breakpoint has been hit when stepping onto a breakpoint.
2641
63d022e0
KS
26422002-08-16 Keith Seitz <keiths@redhat.com>
2643
2644 * gdb-events.sh (clear_gdb_event_hooks): New function.
2645 * gdb-events.c: Regenerate.
2646 * gdb-events.h: Regenerate.
2647
6e31adb3
AC
26482002-08-16 Andrew Cagney <ac131313@redhat.com>
2649
2650 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2651 not_a_sw_breakpoint.
2652 * breakpoint.h (bpstat_stop_status): Add parameter names.
2653
c8189ed1
GS
26542002-08-16 Grace Sainsbury <graces@redhat.com>
2655
2656 * remote.c (remote_insert_hw_breakpoint)
2657 (remote_remove_hw_breakpoint): Fix calculation of length field
2658 for Z-packet.
2659
d05285fa
MS
26602002-08-15 Michael Snyder <msnyder@redhat.com>
2661
466d7106
MS
2662 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2663 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2664 (supply_fpregset): Ditto.
2665
d05285fa
MS
2666 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2667 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2668 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2669 (TARGET_READ_SP): Delete.
bf1f5b4c 2670 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2671 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2672 Delete.
2673 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2674 from macros to functions.
bf1f5b4c 2675
d05285fa
MS
2676 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2677 (mips_register_convertible, mips_register_convert_to_virtual,
2678 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2679 (mips_read_sp): New function.
2680 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2681 (mips_do_registers_info): Make static.
2682 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2683 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2684 (mips_register_convert_from_type, mips_register_convert_to_type):
2685 New functions.
2686 (mips_gdbarch_init): Set up function_start_offset,
2687 register_virtual_size, pc_in_sigtramp.
d05285fa 2688
e76f1f2e
AC
26892002-08-15 Andrew Cagney <ac131313@redhat.com>
2690
2691 * infcmd.c (vector_info): New function.
2692 (_initialize_infcmd): Add command "info vector".
2693 (print_vector_info): New function.
2694
2695 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2696 * gdbarch.h, gdbarch.c: Regenerate.
2697
4782dc19
AC
26982002-08-15 Andrew Cagney <ac131313@redhat.com>
2699
2700 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2701 ``print_all''. Only print vector registers when ``print_all''.
2702
23e3a7ac
AC
27032002-08-15 Andrew Cagney <ac131313@redhat.com>
2704
8e186fd6
AC
2705 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2706 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2707
23e3a7ac
AC
2708 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2709 Add `args' parameter.
2710 * gdbarch.h, gdbarch.c: Regenerate.
2711
2712 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2713
2714 * infcmd.c (float_info): Call print_float_info.
2715 (print_float_info): New function. By default, print the
2716 floating-point registers.
2717
2718 * arch-utils.h (default_print_float_info): Delete declaration.
2719 * arch-utils.c (default_print_float_info): Delete function.
2720
e0ca2bb9
MK
27212002-08-16 Mark Kettenis <kettenis@gnu.org>
2722
3f733acc
MK
2723 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2724 out define.
2725
7d8d2918
MK
2726 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2727 FRAME.
2728
1c7cc583
MK
2729 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2730 * configure.host: Make i[3456]86-*-aix host obsolete.
2731 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2732 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2733 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2734 config/i386/xm-i386aix.h: Make files obsolete.
2735 * i386aix-nat.c: Make file obsolete.
2736 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2737 (i386aix-nat.o): Make target obsolete.
2738
e0ca2bb9
MK
2739 * config/i386/nm-gnu.h: Removed.
2740 * config/i386/nm-i386gnu.h: New file.
2741 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2742 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2743 Moved here from ...
2744 * config/i386/tm-i386gnu.h: ... here. Removed.
2745 * config/i386/xm-i386gnu.h: Removed.
2746 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2747 (NAT_FILE): Set to nm-i386gnu.h.
2748 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2749 * i386-tdep.c: New file.
2750 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2751 (i386gnu-tdep.o): Specify dependencies.
2752
16057ec7 27532002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2754
6b99ee2e
MK
2755 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2756 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2757 Adjust a few comments to reflect reality a bit closer.
2758 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2759 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2760 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2761 target_insert_watchpoint, target_remove_watchpoint):
2762 Move defines to ...
2763 * config/i386/nm-i386sco5.h: ... here.
2764 (kernel_u_size): Add prototype. Improve a few comments and add
2765 protection against multiple inclusion.
2766
d9a6f65c
MK
2767 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2768 out define.
2769
047eff6a
MK
2770 * uw-thread.c (SP_ARG0): Define if not already defined.
2771 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2772
dcdb1290
MK
2773 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2774
5d2d0b2a
MK
2775 * config/i386/tm-i386.h: Don't include "regcache.h".
2776
61113f8b
MK
2777 * i387-tdep.h (i387_print_float_info): New prototype.
2778 * i387-tdep.c (print_i387_value, print_i387_ext,
2779 print_i387_status_word, print_i387_control_word): Add `struct
2780 ui_file *' argument and use it for output.
2781 (i387_print_float_info): Renamed from i387_float_info. Add
2782 `struct gdbarch *' and `struct ui_file *' arguments and use the
2783 latter for output.
2784 * i386-tdep.c: Include "i387-tdep.h".
2785 (i386_gdbarch_init): Set print_float_info.
2786 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2787 (FLOAT_INFO): Remove define.
2788
46e0f506
MS
27892002-08-13 Michael Snyder <msnyder@redhat.com>
2790
2791 * mips-tdep.c (mips_push_arguments): Rename to
2792 mips_eabi_push_arguments, and tune for EABI.
2793 (MIPS_REGS_HAVE_HOME_P): Delete.
2794 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2795 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2796 Delete references to mips_regs_have_home_p.
2797
409268de
KS
27982002-08-14 Keith Seitz <keiths@redhat.com>
2799
2800 * Makefile.in (install-gdbtk): Create insight plugin directory.
2801 Install plugins.tcl file.
2802
ffc6a242
KS
28032002-08-14 Keith Seitz <keiths@redhat.com>
2804
2805 * configure.in: Move SUBDIRS to near top of the file so that
2806 --enable options may add things to it.
2807 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2808 * configure: Regenerate.
2809
ebafbe83
MS
28102002-08-13 Michael Snyder <msnyder@redhat.com>
2811
2812 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2813 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2814 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2815
32f6f25d
AC
28162002-08-13 Andrew Cagney <ac131313@redhat.com>
2817
2818 * vax-tdep.c (vax_get_saved_register): Delete function.
2819 (vax_gdbarch_init): Update.
2820 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2821 (ns32k_gdbarch_init): Update.
2822 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2823 (alpha_gdbarch_init): Update.
2824
53826de9
AC
28252002-08-13 Andrew Cagney <cagney@redhat.com>
2826
2827 * regcache.c (init_regcache_descr): Overallocate the
2828 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2829 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2830 nr_raw_registers.
2831 (set_register_cached): Add range checking assertions. Use
2832 current_regcache.
2833
16057ec7 28342002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2835
2836 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2837 numbers for MMX registers.
2838
7b4c2dce
AC
28392002-08-13 Andrew Cagney <cagney@redhat.com>
2840
2841 * i386-tdep.c (i386_gdbarch_init): Use
2842 generic_unwind_get_saved_register.
2843
1e03ad20
KB
28442002-08-13 Kevin Buettner <kevinb@redhat.com>
2845
2846 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2847 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2848 target vector.
2849 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2850 Delete. Add comment regarding this now-deleted target method.
2851
548bcbec
SC
28522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2853
2854 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2855 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2856 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2857 real PC and the page number (if it's within the memory bank window).
2858 (m68hc11_pseudo_register_write): Likewise when saving.
2859 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2860 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2861 (m68hc11_register_raw_size): And use 32-bit for it.
2862 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2863 16K memory bank is used by the prog; also use the virtual pc.
2864
7df11f59
SC
28652002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2866
2867 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2868 (m68hc11_gdbarch_init): Install it in gdbarch.
2869 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2870 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2871 (MSYMBOL_SIZE): New for documentation.
2872 (insn_return_kind): Enum to specify how a function returns.
2873 (frame_extra_info): Cleanup and record the return mode.
2874 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2875 register in address computation.
2876 (m68hc11_get_return_insn): New to obtain the return instruction used
2877 by the function.
2878 (m68hc11_frame_init_saved_regs): Take into account the return
2879 instruction used by the function for far and interrupt functions.
2880 (m68hc11_init_extra_frame_info): Take into account page register.
2881 (m68hc11_frame_args_address): Adjust according to the return mode.
2882 (show_regs): Print page register only when it's used.
2883
5706502a
SC
28842002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2885
2886 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2887 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2888 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2889 registers.
2890 (m68hc11_register_raw_size): Likewise.
2891
28fc6740
AC
28922002-08-13 Andrew Cagney <cagney@redhat.com>
2893
2894 * i386-tdep.c (i386_register_name): Handle mmx registers.
2895 (mmx_regnum_p): New function.
2896 (i386_mmx_names): New array.
2897 (mmx_num_regs): New variable.
2898 (i386_pseudo_register_read): New function.
2899 (i386_pseudo_register_write): New function.
2900 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2901
2902 * regcache.c (regcache_raw_read_unsigned): New function.
2903 (regcache_raw_read_signed): New function.
2904 * regcache.h (regcache_raw_read_unsigned): Declare.
2905 (regcache_raw_read_signed): Declare.
2906
a378f419
AC
29072002-08-13 Andrew Cagney <cagney@redhat.com>
2908
2909 * regcache.c (regcache_raw_read_as_address): Delete function.
2910 (regcache_cooked_read_signed): New function.
2911 (regcache_cooked_read_unsigned): New function.
2912 * regcache.h (regcache_cooked_read_signed): Declare.
2913 (regcache_cooked_read_unsigned): Declare.
2914 (regcache_raw_read_as_address): Delete declaration.
2915
2916 * blockframe.c (generic_read_register_dummy): Use
2917 regcache_cooked_read_unsigned.
2918 * i386-tdep.c (i386_extract_struct_value_address): Use
2919 regcache_cooked_read_unsigned.
2920
81967506
SC
29212002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2922
2923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2924 double sizes according to ELF ABI flags.
2925 (gdbarch_tdep): Record elf_flags.
2926
ffe1f3ee
SC
29272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2928
2929 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2930 (m6812_prolog): They can appear in 68HC12 function prologue.
2931 (m68hc11_frame_chain): Cleanup.
2932
98216c5d
AC
29332002-08-12 Andrew Cagney <cagney@redhat.com>
2934
2935 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2936 declarations.
2937 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2938 (i386_linux_register_raw_size): Delete function.
2939 (i386_linux_init_abi): Update.
2940 * i386-tdep.c (i386_register_raw_size): Delete function.
2941 (i386_register_byte): Delete function.
2942 (i386_gdbarch_init): Update.
2943 (i386_register_size): Delete array.
2944 (i386_register_offset): Delete array.
2945
2946 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2947 (REGISTER_RAW_SIZE): Delete macro.
2948 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2949 (REGISTER_BYTE): Delete macro.
2950
3b19021e
AS
29512002-08-11 Aidan Skinner <aidan@velvet.net>
2952
2953 * ada-lang.c (ada_lookup_partial_symbol)
2954 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2955 prototype names so that grep ^func works properly.
2956
2957 * ada-lang.c (ada_array_element_type)
2958 (ada_lookup_partial_symbol): Fix typos in parameter list.
2959
2960 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2961 Fix prototype names so that grep ^func works properly.
2962
b063e7a2
AC
29632002-08-10 Andrew Cagney <cagney@redhat.com>
2964 Elena Zannoni <ezannoni@redhat.com>
2965 Martin M. Hunt <hunt@redhat.com>
2966
2967 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2968 (build_builtin_type_vec128i): Set the vector bit.
2969 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2970 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2971 (build_builtin_type_vec64): New function.
2972 (build_builtin_type_vec64i): New function.
2973 (build_gdbtypes): Initialize builtin_type_vec64 and
2974 builtin_type_vec64i.
2975
a7e3c2ad
AC
29762002-08-09 Andrew Cagney <cagney@redhat.com>
2977
2978 * regcache.c (regcache_dump): Compare the register offset
2979 with REGISTER_BYTE.
2980 * arch-utils.c (generic_register_byte): New function.
2981 * arch-utils.h (generic_register_byte): Declare.
2982 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2983 * gdbarch.h, gdbarch.c: Regenerate.
2984
af030b9a
AC
29852002-08-09 Andrew Cagney <cagney@redhat.com>
2986
2987 * regcache.c: Include "gdbcmd.h"
2988 (_initialize_regcache): Add commands "maintenance print
2989 registers", "maintenance print raw-registers" and "maintenance
2990 print cooked-registers".
2991 (enum regcache_dump_what): Define.
2992 (dump_endian_bytes): New function.
2993 (regcache_dump): New function.
2994 (regcache_print): New function.
2995 (maintenance_print_registers): New function.
2996 (maintenance_print_raw_registers): New function.
2997 (maintenance_print_cooked_registers): New function.
2998 * Makefile.in (regcache.o): Update dependencies.
2999
cb3d25d1
MS
30002002-08-09 Michael Snyder <msnyder@redhat.com>
3001
3002 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3003 (mips_push_arguments): Correct some comments. Use paddr_nz
3004 for printing addresses in debug output. Replace static
3005 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3006 (mips_n32n64_push_arguments): New function, cloned from
3007 mips_push_arguments and tuned for the n32/n64 ABI.
3008 (mips_push_register): Buffer needs dynamic allocation.
3009 (mips_print_register): Ditto.
3010 (do_gp_register_row): Ditto.
3011 (mips_store_return_value): Ditto.
3012 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3013
2163ab9d
DH
30142002-08-09 Don Howard <dhoward@redhat.com>
3015
3016 * memattr.c (mem_info_command): Print special case of upper bound
3017 as max CORE_ADDR + 1.
3018
b78bcb18
MS
30192002-08-08 Michael Snyder <msnyder@redhat.com>
3020
3021 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3022 returns structs by ref if they're too big to fit in two registers.
3023
ffabd70d
KB
30242002-08-09 Kevin Buettner <kevinb@redhat.com>
3025
3026 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3027 saved regs value.
3028 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3029 mips_find_saved_regs().
3030 (mips_pop_frame): Likewise.
3031
fbcdb4a3
KB
30322002-08-09 Kevin Buettner <kevinb@redhat.com>
3033
3034 * blockframe.c (frame_saved_regs_register_unwind): Revise
3035 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3036 frames are in use.
3037
3c3bea1c
GS
30382002-08-09 Grace Sainsbury <graces@redhat.com>
3039
3040 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3041 T-packets; the 'a' is not taken as a register number.
3042 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3043 (remote_stopped_data_address): New functions; add to target
3044 vector.
3045 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3046 prototypes to match other implementations of this
3047 function. replace integer argument with pointer -- the length
3048 field in the Z-packet is the length of what is pointed to or 1 if
3049 pointer is null. Add to target vector.
3050 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3051 target vector.
3052
3053 From Mark Salter:
3054 * remote.c (remote_wait): Add support to extract optional
3055 watchpoint information from T-packet. Ignore unrecognized
3056 optional info in T-packet.
3057 (remote_async_wait): Ditto.
3058
5d1d95de
CV
30592002-08-09 Corinna Vinschen <vinschen@redhat.com>
3060
3061 * cli/cli-dump.c: Change fopen modes to use binary open modes
3062 as defined in include/fopen-bin.h throughout.
3063
c86b5b38
MS
30642002-08-08 Michael Snyder <msnyder@redhat.com>
3065
3066 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3067
b30590dc
KB
30682002-08-08 Kevin Buettner <kevinb@redhat.com>
3069
3070 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3071 assertion failure by returning early after a warning.
3072
498868ed
KB
30732002-08-08 Kevin Buettner <kevinb@redhat.com>
3074
3075 * mips-tdep.c (mips_find_saved_regs): Make static.
3076 (mips_frame_init_saved_regs): New function.
3077 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3078 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3079 (mips_find_saved_regs): Delete declaration.
3080
b2dd6311
GS
30812002-08-08 Grace Sainsbury <graces@redhat.com>
3082
3c3bea1c
GS
3083 * remote.c (remote_wait, remote_async_wait): Change
3084 thread_num from int to ULONGEST.
3085 (unpack_varlen_hex): Change result parameter from
3086 int * to ULONGEST *.
b2dd6311 3087
ea47855f
AC
30882002-08-08 Andrew Cagney <ac131313@redhat.com>
3089
3090 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3091 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3092 powerpc*-*-*.
3093 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3094
69db8bae
AC
30952002-08-08 Andrew Cagney <cagney@redhat.com>
3096
3097 * gcore.c (override_derive_stack_segment): Delete variable.
3098 (preempt_derive_stack_segment): Delete function.
3099 (derive_stack_segment): Delete function.
3100 (default_derive_stack_segment): Renamed to derive_stack_segment.
3101 (override_derive_heap_segment): Delete variable.
3102 (preempt_derive_heap_segment): Delete function.
3103 (derive_heap_segment): Delete function.
3104 (default_derive_heap_segment): Rename to derive_heap_segment.
3105
cb811fe7
MS
31062002-08-06 Michael Snyder <msnyder@redhat.com>
3107
3108 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3109 * mips-tdep.c (mips_EABI_use_struct_convention,
3110 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3111 New functions. (mips_use_struct_convention): Delete.
3112 (mips_gdbarch_init): set use_gdbarch_convention.
3113
8b389c40
MS
31142002-08-06 Michael Snyder <msnyder@redhat.com>
3115
3116 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3117 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3118 mips_o32_reg_struct_has_addr): New functions.
3119 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3120
5c27f28a
AC
31212002-08-07 Andrew Cagney <ac131313@redhat.com>
3122
3123 * regcache.c (pseudo_register): Delete function.
3124 (fetch_register): Delete function.
3125 (store_register): Delete function.
3126 (regcache_raw_read, legacy_read_register_gen): Use
3127 target_fetch_registers instead of fetch_register.
3128 (legacy_write_register_gen, regcache_raw_write): Use
3129 target_store_register instead of store_register.
3130 (write_register_bytes): Ditto.
3131
3132 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3133 (STORE_PSEUDO_REGISTER): Delete.
3134 * gdbarch.h, gdbarch.c: Regenerate.
3135
5b331675
CV
31362002-08-06 Corinna Vinschen <vinschen@redhat.com>
3137
3138 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3139 write dump file binary.
3140
6acdf5c7
MS
31412002-08-05 Michael Snyder <msnyder@redhat.com>
3142
3143 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3144 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3145 (mips_gdbarch_init): Set N32 target to be mips64.
3146
b2f01c35
KB
31472002-08-06 Kevin Buettner <kevinb@redhat.com>
3148
3149 * frame.c (find_saved_register): Break out of loop once saved
3150 register address is found. Don't mention sparc in loop comment
3151 anymore.
3152
63db5580
KB
31532002-08-06 Kevin Buettner <kevinb@redhat.com>
3154
3155 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3156 mips_default_saved_regsize to 8.
3157
5e34e75e
AC
31582002-08-06 Andrew Cagney <ac131313@redhat.com>
3159
3160 * gcore.c: Do not include <sys/procfs.h>.
3161 * Makefile.in (gcore.o): Update dependencies.
3162
eb4c54a2
AC
31632002-08-06 Andrew Cagney <cagney@redhat.com>
3164
3165 * configure.tgt: Make arc-*-* obsolete.
3166 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3167 * MAINTAINERS: Make arc-elf obsolete.
3168 * arc-tdep.c: Make file obsolete.
3169 * config/arc/arc.mt: Ditto.
3170 * config/arc/tm-arc.h: Ditto.
3171
ced15480
TR
31722002-08-05 Theodore A. Roth <troth@verinet.com>
3173
c1bab85b 3174 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3175
b4743822
AC
31762002-08-05 Andrew Cagney <ac131313@redhat.com>
3177
3178 * mcore-tdep.c (mcore_gdbarch_init): Use
3179 generic_unwind_get_saved_register instead of
3180 generic_get_saved_register.
3181 * v850-tdep.c (v850_gdbarch_init): Ditto.
3182 * frv-tdep.c (frv_gdbarch_init): Ditto.
3183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3184 * s390-tdep.c (s390_gdbarch_init): Ditto.
3185 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3186 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3187 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3188
3956d554
JB
31892002-08-05 Joel Brobecker <brobecker@gnat.com>
3190
3191 * objfiles.h: Add missing #include "symfile.h"
3192
3193 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3194
8249c0d6
AC
31952002-08-04 Andrew Cagney <ac131313@redhat.com>
3196
3197 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3198 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3199 of FIELD_BITSIZE.
3200
b9d14705
DJ
32012002-08-04 Daniel Jacobowitz <drow@mvista.com>
3202
3203 * NEWS: Cleanup and nitpick.
3204
dd73b9bb
AC
32052002-08-03 Andrew Cagney <ac131313@redhat.com>
3206
3207 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3208
043a27f8
AC
32092002-08-03 Andrew Cagney <ac131313@redhat.com>
3210
3211 * Makefile.in (gdbtk-bp.o): Update dependencies.
3212 (gdbtk-register.o): Ditto.
3213 (gdbtk-varobj.o): Ditto.
3214
46ce284d
AC
32152002-08-03 Andrew Cagney <cagney@redhat.com>
3216
3217 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3218 m68hc11_fetch_pseudo_register.
3219 (m68hc11_pseudo_register_write): Replace
3220 m68hc11_store_pseudo_register.
3221 (m68hc11_gdbarch_init): Update.
3222
b66d6d2e
AC
3223Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3224
3225 * gdbarch.sh: Include "gdb_string.h".
3226 * gdbarch.c: Regenerate.
3227
3228 * regcache.c: Include "gdb_string.h".
3229 * ax-general.c: Ditto.
3230 * varobj.c: Ditto.
3231 * std-regs.c: Ditto.
3232 * fbsd-proc.c: Ditto.
3233 * thread.c: Ditto.
3234
3235 * Makefile.in (regcache.o): Update dependencies.
3236 (thread.o, gdbarch.o): Ditto.
3237 (ax-general.o, gdbarch.o): Ditto.
3238 (varobj.o, std-regs.o): Ditto.
3239 (fbsd-proc.o): Specify dependencies.
3240
29e1842b
AC
32412002-08-02 Andrew Cagney <cagney@redhat.com>
3242
3243 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3244 regnum.
3245 (regcache_cooked_write): Ditto.
3246
68365089
AC
32472002-08-02 Andrew Cagney <ac131313@redhat.com>
3248
3249 * regcache.c (regcache_cooked_read): New function.
3250 (regcache_cooked_write): New function.
3251 (read_register_gen): Rewrite using regcache_cooked_read.
3252 (write_register_gen): Rewrite using regcache_cooked_write.
3253
3254 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3255 Declare.
3256
d8124050
AC
32572002-08-02 Andrew Cagney <cagney@redhat.com>
3258
3259 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3260 Replace the architecture methods register_read and register_write.
3261 * gdbarch.h, gdbarch.c: Regenerate.
3262 * regcache.c (init_regcache_descr): Update.
3263 (read_register_gen): Update.
3264 (write_register_gen): Update.
3265 (supply_register): Update comment.
3266
3267 * sh-tdep.c (sh_gdbarch_init): Update.
3268 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3269 `regcache' and `gdbarch' parameters. Make `buffer' a void
3270 pointer. Update code.
3271 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3272 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3273 void pointer. Update code.
3274 (sh64_register_write): Delete.
3275 (sh4_register_read): Delete.
3276 (sh64_register_read): Delete.
3277 (sh4_register_write): Delete.
3278 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3279 void pointer, `to' parameter a void pointer.
3280 (sh_sh64_register_convert_to_raw): Ditto.
3281
a6425924
KB
32822002-08-01 Kevin Buettner <kevinb@redhat.com>
3283
3284 * mips-tdep.c (mips_register_virtual_type): Use architecture
3285 invariant return values.
3286
ff5922b5
AC
32872002-08-01 Andrew Cagney <cagney@redhat.com>
3288
3289 * linux-proc.c: Include "gdb_string.h".
3290 * Makefile.in (linux-proc.o): Update dependency list.
3291
32a6503c
KB
32922002-08-01 Kevin Buettner <kevinb@redhat.com>
3293
3294 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3295 comment.
3296
ccaa32c7
GS
32972002-08-01 Grace Sainsbury <graces@redhat.com>
3298
3299 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3300 to_insert_watchpoint, to_remove_watchpoint,
3301 to_stopped_by_watchpoint, to_stopped_data_address,
3302 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3303 target vecctor. Define their corresponding macros so they call
3304 them.
3305
3306 * target.c: Add default and debug versions of for
3307 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3308 to_insert_watchpoint, to_remove_watchpoint,
3309 to_stopped_by_watchpoint, to_stopped_data_address,
3310 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3311
78fde5f8
KB
33122002-08-01 Kevin Buettner <kevinb@redhat.com>
3313
3314 * mips-tdep.c (mips_register_virtual_type): New function.
3315 (mips_gdbarch_init): Register mips_register_virtual_type()
3316 with gdbarch machinery.
3317 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3318 this file instead of tm-bigmips.h.
3319 (MIPS_REGSIZE): Delete this macro.
3320 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3321 multiarch version in mips-tdep.c will be found.
3322
db034ac5
AC
33232002-08-01 Andrew Cagney <cagney@redhat.com>
3324
3325 * NEWS: Menion that CHILL has been made obsolete.
3326
3327 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3328 * stabsread.c (read_range_type): Ditto.
3329 * gdbtypes.h: Ditto.
3330 * language.c (binop_type_check): Ditto.
3331 (binop_result_type): Ditto.
3332 (integral_type): Ditto.
3333 (character_type): Ditto.
3334 (string_type): Ditto.
3335 (boolean_type): Ditto.
3336 (structured_type): Ditto.
3337 (lang_bool_type): Ditto.
3338 (binop_type_check): Ditto.
3339 * language.h (_LANG_chill): Ditto.
3340 * dwarfread.c (set_cu_language): Ditto.
3341 * dwarfread.c (CHILL_PRODUCER): Ditto.
3342 * dwarfread.c (handle_producer): Ditto.
3343 * expression.h (enum exp_opcode): Ditto.
3344 * eval.c: Ditto for comments.
3345 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3346 * expprint.c (print_subexp): Ditto.
3347 (print_subexp): Ditto.
3348 * valops.c (value_cast): Ditto.
3349 (search_struct_field): Ditto.
3350 * value.h (COERCE_VARYING_ARRAY): Ditto.
3351 * symfile.c (init_filename_language_table): Ditto.
3352 (add_psymbol_with_dem_name_to_list): Ditto.
3353 * valarith.c (value_binop): Ditto.
3354 (value_neg): Ditto.
3355 * valops.c (value_slice): Ditto.
3356 * symtab.h (union language_specific): Ditto.
3357 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3358 (SYMBOL_DEMANGLED_NAME): Ditto.
3359 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3360 * defs.h (enum language): Ditto.
3361 * symtab.c (got_symtab): Ditto.
3362 * utils.c (fprintf_symbol_filtered): Ditto.
3363
3364 * ch-typeprint.c: Make file obsolete.
3365 * ch-valprint.c: Make file obsolete.
3366 * ch-lang.h: Make file obsolete.
3367 * ch-exp.c: Make file obsolete.
3368 * ch-lang.c: Make file obsolete.
3369
3370 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3371 CHILL_LIB.
3372 (TARGET_FLAGS_TO_PASS): Ditto.
3373 (CHILLFLAGS): Obsolete.
3374 (CHILL): Obsolete.
3375 (CHILL_FOR_TARGET): Obsolete.
3376 (CHILL_LIB): Obsolete.
3377 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3378 ch-valprint.c.
3379 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3380 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3381 ch-lang.o.
3382 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3383 targets.
3384
8aaf0b47
JB
33852002-07-31 Joel Brobecker <brobecker@gnat.com>
3386
3387 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3388 This does not change anything at the moment, but will be helpful
3389 later when full Ada support is integrated.
3390
f3a7b3a5
KB
33912002-07-31 Kevin Buettner <kevinb@redhat.com>
3392
3393 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3394 help message.
3395
fb850278
KB
33962002-07-31 Kevin Buettner <kevinb@redhat.com>
3397
3398 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3399 and save it in a local variable. Use variable in later test.
3400
e3bddbfa
KB
34012002-07-31 Kevin Buettner <kevinb@redhat.com>
3402
3403 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3404 test. (Thanks to Daniel Jacobowitz.)
3405
28d169de
KB
34062002-07-31 Kevin Buettner <kevinb@redhat.com>
3407
3408 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3409 (mips_abi_strings): Add "n64".
3410 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3411
7fe7e44e
KB
34122002-07-31 Kevin Buettner <kevinb@redhat.com>
3413
3414 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3415 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3416
c6caf090
KB
34172002-07-31 Kevin Buettner <kevinb@redhat.com>
3418
3419 * utils.c (host_pointer_to_address, address_to_host_pointer):
3420 Use gdb_assert() instead of explicit call to internal_error().
3421
c41669e0
KB
34222002-07-30 Kevin Buettner <kevinb@redhat.com>
3423
3424 * Makefile.in (rs6000-nat.o): Update dependencies.
3425
3426 From Nicholas Duffek:
3427 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3428 (aix-thread.o): New rule.
3429 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3430 * config/powerpc/aix432.mh: New file.
3431
2fda4977
DJ
34322002-07-30 Daniel Jacobowitz <drow@mvista.com>
3433
3434 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3435 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3436 (fetch_core_registers, ppc_linux_supply_gregset)
3437 (ppc_linux_supply_fpregset): New functions.
3438 (ppc_linux_regset_core_fns): New.
3439 (_initialize_ppc_linux_tdep): Call add_core_fns.
3440 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3441 and ppc_linux_supply_gregset.
3442 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3443 (supply_fpregset): Call ppc_linux_supply_fpregset.
3444 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3445 corelow.o.
3446 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3447
729051e6
DJ
34482002-07-30 Daniel Jacobowitz <drow@mvista.com>
3449
3450 * symtab.c (lookup_symbol): Demangle before lowercasing.
3451
5f8a3188
AC
34522002-07-30 Andrew Cagney <ac131313@redhat.com>
3453
3454 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3455 declaration.
3456 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3457 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3458 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3459 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3460 "gdb_string.h".
3461 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3462 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3463 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3464 (avr-tdep.o, mon960-rom.o): Ditto.
3465 (aout_stabs_gnu_h): Define.
3466 (symtab_h): Remove $(gdb_obstack_h).
3467
67f07146
JB
34682002-07-30 Jim Blandy <jimb@redhat.com>
3469
3470 Patch from David Carlton <carlton@math.stanford.edu>:
3471 * gdbinit.in: Move the `dir' commands that add GDB's own source
3472 directory to the search path to the end, so that the `gdb' source
3473 directory will be searched first.
3474
04ea0df1
AC
34752002-07-29 Andrew Cagney <ac131313@redhat.com>
3476
3477 * gdb_obstack.h: New file.
3478 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3479 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3480 * objfiles.h: Include "gdb_obstack.h".
3481 * Makefile.in (gdb_obstack_h): Define.
3482 (symtab_h): Add $(gdb_obstack_h).
3483 (objfiles_h): Add $(gdb_obstack_h).
3484
3485 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3486 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3487 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3488 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3489 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3490 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3491 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3492 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3493
3494 * Makefile.in (bcache.o): Update dependencies.
3495 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3496 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3497 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3498 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3499 (stabsread.o, symfile.o, symmisc.o): Ditto.
3500 (symtab.o, typeprint.o, macroexp.o): Ditto.
3501 (macrotab.o, mdebugread.o): Ditto.
3502 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3503 (coff_ecoff_h, aout_aout64_h): Define.
3504 (aout_stabs_gnu_h, libaout_h): Define.
3505
d138e37a
AC
35062002-07-29 Andrew Cagney <cagney@redhat.com>
3507
3508 * regcache.c (struct regcache_descr): Rename nr_registers to
3509 nr_cooked_registers. Revise comments describing the structure
3510 member fields.
3511 (init_regcache_descr): Update.
3512 (init_legacy_regcache_descr): Update.
3513 (read_register_gen, write_register_gen): When a cooked register in
3514 the raw register range, directly access the value from the raw
3515 register cache.
3516
460e6ec3
AC
35172002-07-29 Andrew Cagney <ac131313@redhat.com>
3518
3519 * z8k-tdep.c: Do not include "obstack.h".
3520 * h8300-tdep.c, h8500-tdep.c: Ditto.
3521 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3522 * valprint.c, v850-tdep.c: Ditto.
3523 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3524 * mn10200-tdep.c: Ditto.
3525
3526 * Makefile.in (z8k-tdep.o): Update dependencies.
3527 (m68hc11-tdep.o, valprint.o): Ditto.
3528 (v850-tdep.o, d10v-tdep.o): Ditto.
3529 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3530 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3531 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3532 (sh_opc_h, gdb_sim_sh_h): Define.
3533 (elf_sh_h, elf_bfd_h): Define.
3534 (opcode_m68hc11_h): Define.
3535 (OPCODES_SRC, OPCODES_DIR): define.
3536 (OPCODES): Use $(OPCODES_DIR).
3537 (gdb_sim_d10v_h): Rename sim_d10v_h.
3538 (gdb_sim_arm_h): Rename sim_arm_h.
3539
790c9cf0
KB
35402002-07-26 Kevin Buettner <kevinb@redhat.com>
3541
3542 * utils.c (host_pointer_to_address, address_to_host_pointer):
3543 Change internal_error() message to indicate function responsible
3544 for the error.
3545
9647fa49
KB
35462002-07-26 Kevin Buettner <kevinb@redhat.com>
3547
3548 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3549 calls to local_hex_string_custom().
3550
dabbe2c0
KB
35512002-07-26 Kevin Buettner <kevinb@redhat.com>
3552
3553 * irix5-nat.c: Move IRIX shared library support from here...
3554 * solib-irix.c: ...to here. Revised substantially to work with
3555 generic solib framework.
3556
b96d0a4e
KB
3557 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3558 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3559 * mips-irix-tdep.c: New file.
3560
313fb2f6
KB
3561 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3562 (mips-irix-tdep.o, solib-irix.o): New rules.
3563 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3564 solib-irix.o.
3565 * config/mips/irix6.mt (TDEPFILES): Likewise.
3566 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3567
ab2eaf26
KB
35682002-07-26 Kevin Buettner <kevinb@redhat.com>
3569
177e4768 3570 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3571 disabled (via ``#if 0'') includes.
3572
7244546a
KB
35732002-07-26 Kevin Buettner <kevinb@redhat.com>
3574
3575 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3576 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3577 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3578 Add support for the fpscr register.
3579 * rs6000-nat.c (regmap, fetch_inferior_registers)
3580 (store_inferior_registers, fetch_core_registers): Likewise.
3581
dd7be90a
KB
35822002-07-26 Kevin Buettner <kevinb@redhat.com>
3583
3584 * rs6000-nat.c (language.h): Include.
3585 (special_regs): Delete this array.
3586 (regmap): New function.
3587 (fetch_register, store_register): Use regmap() to map gdb
3588 register numbers to ptrace register numbers. Also, use
3589 outputs from regmap() to make decisions regarding type of
3590 ptrace() call to make. In particular, don't compare against
3591 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3592 (fetch_inferior_registers, store_inferior_registers): Where
3593 possible, obtain register numbers from tdep struct. Don't
3594 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3595 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3596 (LAST_UISA_SP_REGNUM): Delete.
3597
11bf77db
KB
35982002-07-25 Kevin Buettner <kevinb@redhat.com>
3599
3600 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3601 (fetch_registers, store_register, fetch_core_registers): Don't
3602 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3603 regcache_collect() as appropriate.
3604 (find_toc_address): Format hex address with local_hex_string().
3605
06afebeb
AC
36062002-07-25 Andrew Cagney <ac131313@redhat.com>
3607
3608 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3609 bfd/elf32-frv.c.
3610
8c554d79
TT
36112002-07-24 Tom Tromey <tromey@redhat.com>
3612
3613 * jv-exp.y: Marked all strings with _().
3614 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3615 internal_error.
3616 (MethodInvocation, CastExpression, parse_number, yyerror,
3617 java_type_from_name, push_expression_name, yylex): Typo fixes.
3618
e4c242d9
DJ
36192002-07-24 Daniel Jacobowitz <drow@mvista.com>
3620
3621 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3622 (tee_file_flush, tee_file_write, tee_file_fputs)
3623 (tee_file_isatty): New.
3624 * ui-file.h (tee_file_new): Add prototype.
3625
ebf56fd3
AS
36262002-07-24 Aidan Skinner <aidan@velvet.net>
3627
3628 * ada-lang.c: Change k&r style function definitions to prototyped
3629 form.
3630 * ada-typeprint.c: Change k&r style function definitions to prototyped
3631 form.
3632 * ada-valprint.c: Change k&r style function definitions to prototyped
3633 form.
3634
7fb623f7
AC
36352002-07-24 Andrew Cagney <cagney@redhat.com>
3636
3637 * README: Remove reference to remote-bug.
3638 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3639 remote-bug.c.
3640 (m88k-nat.o): Delete rule.
3641 (m88k-tdep.o): Delete rule.
3642 (remote-bug.o): Delete rule.
3643 * MAINTAINERS: Mark as obsolete.
3644 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3645 * m88k-tdep.c: Make file obsolete.
3646 * config/m88k/m88k.mh: Ditto.
3647 * config/m88k/delta88v4.mh: Ditto.
3648 * config/m88k/delta88v4.mt: Ditto.
3649 * config/m88k/delta88.mt: Ditto.
3650 * config/m88k/delta88.mh: Ditto.
3651 * remote-bug.c: Ditto.
3652 * config/m88k/tm-delta88.h: Ditto.
3653 * config/m88k/nm-delta88v4.h: Ditto.
3654 * config/m88k/xm-delta88.h: Ditto.
3655 * config/m88k/xm-dgux.h: Ditto.
3656 * config/m88k/tm-m88k.h: Ditto.
3657 * config/m88k/nm-m88k.h: Ditto.
3658 * config/m88k/tm-delta88v4.h: Ditto.
3659 * m88k-nat.c: Ditto.
3660 * cxux-nat.c: Ditto.
3661 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3662 and m88*-*-* obsolete.
3663 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3664 m88*-*-* obsolete.
3665
37611a2b
AC
36662002-07-24 Andrew Cagney <cagney@redhat.com>
3667
3668 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3669 constant. Same for local pointer variables.
3670 (extract_signed_integer): Ditto.
3671 * defs.h (extract_unsigned_integer): Update.
3672 (extract_signed_integer): Update.
3673
1aaa5f99
AC
36742002-07-24 Andrew Cagney <cagney@redhat.com>
3675
3676 * regcache.c (regcache_raw_write): Change buf parameter to a
3677 constant void pointer.
3678 (regcache_raw_read): Change buf parameter to a void pointer.
3679 (legacy_write_register_gen): Change myaddr parameter a constant
3680 void pointer.
3681 (supply_register): Change val parameter to a const void pointer.
3682 * regcache.h (regcache_raw_write): Update declaration.
3683 (regcache_raw_read): Update declaration.
3684 (supply_register): Update declaration.
3685
b4f5539f
TT
36862002-07-24 Tom Tromey <tromey@redhat.com>
3687
3688 * defs.h (gdb_readline_wrapper): Declare.
3689 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3690 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3691 * top.c (gdb_readline_wrapper): New function.
3692 (command_line_input): Use it.
3693
0818c12a
AC
36942002-07-24 Andrew Cagney <cagney@redhat.com>
3695
3696 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3697 regcache_read and regcache_write.
3698 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3699 * regcache.c: Update.
3700 * sh-tdep.c (sh64_push_arguments): Update comment.
3701 (sh_pseudo_register_read): Update.
3702 (sh_pseudo_register_write): Update.
3703 (sh4_register_read): Update.
3704 (sh4_register_write): Update.
3705 (sh64_pseudo_register_read): Update.
3706 (sh64_pseudo_register_write): Update.
3707 (sh64_register_read): Update.
3708 (sh64_register_write): Update.
3709 * i386-tdep.c (i386_extract_return_value): Update.
3710 (i386_extract_struct_value_address): Update.
3711 (i386_extract_return_value): Update.
3712 * blockframe.c (generic_read_register_dummy): Update.
3713 (generic_call_dummy_register_unwind): Update
3714 * infrun.c (write_inferior_status_register): Update.
3715
f7321c06
JB
37162002-07-23 Jim Blandy <jimb@redhat.com>
3717
3718 * parser-defs.h (expression_context_pc): Make this extern.
3719 (Thanks to Michael Snyder.)
3720
2037aebb
AC
37212002-07-23 Andrew Cagney <ac131313@redhat.com>
3722
3723 GDB 5.2.1 released from 5.2 branch.
3724 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3725 * README: Update to mention 5.2.1.
3726
66504d44
MS
37272002-07-23 Mark Salter <msalter@redhat.com>
3728
3729 * remote.c (remote_read_bytes): Fix check for error.
3730
27bae383
KB
37312002-07-22 Kevin Buettner <kevinb@redhat.com>
3732
3733 * aix-thread.c (language.h): Include.
3734 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3735 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3736 Print newlines at end of debug messages.
3737 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3738 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3739
37402002-07-22 Kevin Buettner <kevinb@redhat.com>
3741
3742 * aix-thread.c (ppc-tdep.h): Include.
3743 (special_register_p): New function.
3744 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3745 (store_regs_user_thread): Use register number information from
3746 gdbarch_tdep struct instead of hardcoded offsets relative to
3747 FIRST_UISA_SP_REGNUM.
3748 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3749 special_register_p() instead of using FPLAST_REGNUM and
3750 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3751 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3752 will be MQ's register number.
3753
37542002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3755
3756 * aix-thread.c (ops): Rename to aix_thread_ops.
3757 (base_ops): Rename to base_target.
3758 (ops_attach): Rename to aix_thread_attach.
3759 (ops_detach): Rename to aix_thread_detach.
3760 (ops_resume): Rename to aix_thread_detach.
3761 (ops_wait): Rename to aix_thread_wait.
3762 (ops_kill): Rename to aix_thread_kill.
3763 (init_ops): Rename to init_aix_thread_ops.
3764 (ops_fetch_register): Rename to aix_thread_fetch_register.
3765 (ops_store_register): Rename to aix_thread_store_register.
3766 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3767 (ops_thread_alive): Rename to aix_thread_thread_alive.
3768 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3769 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3770 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3771 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3772 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3773 (store_regs_lib): Rename to store_regs_user_thread.
3774 (store_regs_kern): Rename to store_regs_kernel_thread.
3775
27bae383 37762002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3777
3778 * aix-thread.c (ops_prepare_to_store): Eliminate.
3779 (init_ops): Don't initialize ops.prepare_to_store.
3780 (store_regs_kern): Pre-fetch register buffers from child,
3781 because some registers may not be in the cache. Copy
3782 regs from register cache only if they are cached.
3783 (store_regs_lib): Copy regs from register cache only
3784 if they are cached.
3785 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3786 fill_gprs64): Ditto.
3787
61c5da0b
KB
37882002-07-22 Kevin Buettner <kevinb@redhat.com>
3789
3790 * aix-thread.c (gdb_assert.h): Include.
3791 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3792 register sizes (from register cache) match size of buffer holding
3793 register data.
3794 (fill_sprs32): Change parameter types to match those in the ptrace()
3795 buffer.
3796 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3797 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3798
37992002-07-22 Michael Snyder <msnyder@redhat.com>
3800
3801 * aix-thread.c (supply_sprs64): Cosmetic change.
3802 (supply_sprs32): Cosmetic change.
3803 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3804 (fill_sprs64): Use regcache_collect instead of read_register.
3805 (store_regs_lib): Use regcache_collect instead of
3806 read_register. Use fill_sprs32 instead of fill_sprs64,
3807 if debugging a 32-bit architecture.
3808 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3809 out of the register cache, instead of passing a pointer into
3810 the register cache directly to ptrace. Use regcache_collect
3811 insteaad of read_register.
3812 (ops_prepare_to_store): Use target_read_registers instead
3813 of read_register_bytes.
3814
36479eb1
AS
38152002-07-20 Aidan Skinner <aidan@velvet.net>
3816
3817 * MAINTAINERS: Add self under write after approval.
3818
80ae6ee2
AS
38192002-07-20 Aidan Skinner <aidan@velvet.net>
3820
3821 * ada-tasks.c: Change k&r style function definitions to prototyped
3822 form.
3823
8a8ab2b9
AC
38242002-07-19 Andrew Cagney <ac131313@redhat.com>
3825
3826 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3827 * x86-64-tdep.c: Include "objfiles.h".
3828 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3829 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3830
fb16b900
ML
38312002-07-17 Michal Ludvig <michal@suse.cz>
3832
3833 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3834 (update_context): Initialise cfa variable.
3835
0fe7bf7b
MS
38362002-07-17 Michael Snyder <msnyder@redhat.com>
3837
3838 * aix-thread.c: Shorten some long lines.
3839 Bring comments into line with code spec.
3840
488f131b
JB
38412002-07-18 Joel Brobecker <brobecker@gnat.com>
3842
3843 * infrun.c: Re-indent using gdb_indent.sh.
3844
46c415d2
JB
38452002-07-18 Joel Brobecker <brobecker@gnat.com>
3846
3847 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3848 Leave the indentation temporarily untouched, to minimize the diffs.
3849
cdecafbe
EZ
38502002-07-18 Elena Zannoni <ezannoni@redhat.com>
3851
3852 * stabsread.c: Make os9k sections of the code obsolete,
3853 for real this time.
3854 * stabsread.h: Make os9k sections of the code obsolete.
3855
7b6aa020
ML
38562002-07-18 Michal Ludvig <mludvig@suse.cz>
3857
09ec9b38
ML
3858 * linux-low.c (regsets_store_inferior_registers): Add free()
3859 at the end of a loop to prevent memory leak.
3860 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3861 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3862 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3863 line a comment.
4894ac5d 3864 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3865
233282cd
JB
38662002-07-17 Jim Blandy <jimb@redhat.com>
3867
3868 * macrocmd.c (info_macro_command): Remove newline from error
3869 message.
3870
7b6aa020 38712002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3872
3873 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3874 (sh_gdbarch_init): Use it for sh-dsp.
3875
f7ef9339
KB
38762002-07-16 Kevin Buettner <kevinb@redhat.com>
3877
3878 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3879 64-bit DWARF2 format.
3880
8dd72958
JB
38812002-07-16 Joel Brobecker <brobecker@gnat.com>
3882
3883 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3884 <sys/proc.h> when not available.
3885
a99a9e1b
AC
38862002-07-16 Andrew Cagney <ac131313@redhat.com>
3887
3888 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3889 * stabsread.c: Make os9k sections of the code obsolete.
3890 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3891 * config/i386/i386os9k.mt: Make file obsolete.
3892 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3893 (COMMON_OBS): Remove os9kread.o
3894 (SFILES): Remove os9kread.c.
3895 (os9kread.o, remote-os9k.o): Make target obsolete.
3896 * remote-os9k.c: Make file obsolete.
3897 * os9kread.c: Make file obsolete.
3898 * Makefile.in
3899
7a3085c1
AC
39002002-07-16 Andrew Cagney <ac131313@redhat.com>
3901
3902 * NEWS: Mention that the FR30 has been made obsolete.
3903 * fr30-tdep.c: Make file obsolete.
3904 * config/fr30/tm-fr30.h: Ditto.
3905 * config/fr30/fr30.mt: Ditto.
3906 * configure.tgt: Make fr30-*-elf obsolete.
3907 * MAINTAINERS: Make fr30-elf obsolete.
3908
28a93f5a
PM
39092002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3910
3911 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3912 found is not inside a section.
3913
be006b8b
KB
39142002-07-15 Kevin Buettner <kevinb@redhat.com>
3915
3916 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3917 strerror().
3918 (pdc_realloc): Use xrealloc() instead of realloc().
3919
14fa3751
KB
39202002-07-15 Kevin Buettner <kevinb@redhat.com>
3921
3922 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3923 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3924 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3925 macros.
3926
42cc437f
KB
39272002-07-15 Kevin Buettner <kevinb@redhat.com>
3928
3929 * aix-thread.c (ptrace_check): Eliminate goto.
3930 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3931 problem.
3932
8e2c28d4
KB
39332002-07-15 Kevin Buettner <kevinb@redhat.com>
3934
3935 * aix-thread.c (gdbcmd.h): Include.
3936 (DEBUG, DBG, DBG2, dbg): Eliminate.
3937 (debug_aix_thread): New static global.
3938 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3939 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3940 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3941 invocations to DBG and DBG2 macros to test against
3942 ``debug_aix_thread'' and call fprintf_unfiltered().
3943 (_initialize_aix_thread): Add new command "set debug aix-thread".
3944
30413464
AC
39452002-07-15 Andrew Cagney <ac131313@redhat.com>
3946
3947 From Gerhard Tonn <TON@de.ibm.com>:
3948 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3949 instead of supply_register.
3950
7c43edc1
AC
39512002-07-15 Andrew Cagney <ac131313@redhat.com>
3952
3953 * dwarf2cfi.c: Include "gdb_assert.h".
3954 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3955 non-NULL.
3956 (update_context): Do not use __func__. Add missing ``break''.
3957 (update_context): Do not use __func__.
3958
9364a0ef
EZ
39592002-07-15 Elena Zannoni <ezannoni@redhat.com>
3960
3961 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3962 and its setting. Set gdbarch instruction printing functions
3963 directly. For non-rs6000 case use new function
3964 gdb_print_insn_powerpc.
3965 (gdb_print_insn_powerpc): New function.
3966
3fbeef0b
AC
39672002-07-13 Andrew Cagney <ac131313@redhat.com>
3968
92eb23c5 3969 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3970 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3971 * configure.tgt: Mark d30v-*-* as obsolete.
3972 * d30v-tdep.c: Mark file as obsolete.
3973 * config/d30v/d30v.mt: Ditto.
3974 * config/d30v/tm-d30v.h: Ditto.
3975
aacb1f0a
AS
39762002-07-13 Aidan Skinner <aidan@velvet.net>
3977
3978 * ada-tasks.c (add_task_entry): replace calls to
3979 malloc() with xmalloc
3980 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3981
3982 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3983 ada_finish_decode_line_1, all_sals_for_line
3984 ada_breakpoint_rewrite): replace calls to free() with xfree()
3985
c11d79f2
KB
39862002-07-12 Kevin Buettner <kevinb@redhat.com>
3987
3988 From Nicholas Duffek (with minor changes by Martin Hunt,
3989 Louis Hamilton, and Kevin Buettner):
3990 * aix-thread.c: New file.
3991
8e19ed76
PS
39922002-07-12 Petr Sorfa <petrs@caldera.com>
3993
3994 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3995 complaint for invalid attribute class or form.
3996 (read_func_scope): DW_AT_frame_base
3997 better handling of DW_AT_block*.
3998 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3999 better handling of DW_AT_block*.
4000 (read_common_block): DW_AT_location
4001 better handling of DW_AT_block*.
4002 (read_partial_die): DW_AT_location better handling
4003 of DW_AT_block*.
4004 (new_symbol): DW_AT_external better handling of
4005 DW_AT_block*. Proper initialization of variable
4006 "addr".
4007 (attr_form_is_block): New function that returns true
4008 if the attribute's form is of DW_FORM_block*.
4009
295401f7
DJ
40102002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4011
4012 * valops.c (find_method_list): Remove comment about
4013 removed STATIC_MEMFUNCP argument.
4014 (value_find_oload_method_list): Likewise.
4015
e42dc924
KB
40162002-07-12 Kevin Buettner <kevinb@redhat.com>
4017
4018 From Nicholas Duffek:
4019 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4020 target_new_objfile_hook.
4021
6904b546
KB
40222002-07-12 Kevin Buettner <kevinb@redhat.com>
4023
4024 From Nicholas Duffek:
4025 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4026 csect.
4027
53fe9346
AC
40282002-07-12 Andrew Cagney <cagney@redhat.com>
4029
4030 * MAINTAINERS: Mention --enable-sim-build-warnings.
4031 (m68hc11-elf): Disable sim build warnings.
4032 (m32r-elf): Mark as broken obsolete candidate.
4033 (x86_64-linux-gnu): Mark as buildable with -Werror.
4034 (arm-elf): Change -w to ``,'' which enables warnings but not
4035 -Werror.
4036
af5f3db6
AC
40372002-07-12 Andrew Cagney <ac131313@redhat.com>
4038
4039 * bcache.h: Update copyright.
4040 (struct bstring, struct bcache): Move definition to "bcache.c".
4041 Replaced by opaque declaration.
4042 (bcache_xfree): Replace free_bcache.
4043 (bcache_xmalloc, bcache_memory_used): Declare.
4044
4045 * bcache.c: Update copyright.
4046 (struct bstring, struct bcache): Moved to here from "bcache.h".
4047 Update comments.
4048 (bcache_xmalloc, bcache_memory_used): New functions.
4049 (bcache_xfree): Replace function free_bcache.
4050
4051 * Makefile.in (objfiles.o): Add $(bcache_h).
4052 (objfiles_h): Remove $(bcache_h).
4053 (symfile.o): Add $(bcache_h).
4054
4055 * symmisc.c: Update copyright.
4056 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4057 (print_objfile_statistics): Use bcache_memory_used.
4058
4059 * symfile.c: Include "bcache.h".
4060 (reread_symbols): Use bcache_xfree.
4061 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4062 (add_psymbol_to_list): Pass psymbol_cache by value.
4063 (add_psymbol_with_dem_name_to_list): Ditto.
4064
4065 * objfiles.h: Update copyright.
4066 (struct bcache): Declare opaque. Do not include "bcache.h".
4067 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4068 bcache'' pointers.
4069 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4070
4071 * objfiles.c: Include "bcache.h". Update copyright.
4072 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4073 macro_cache.
4074 (free_objfile): Use bcache_xfree.
4075
444199e7
GS
40762002-07-11 Grace Sainsbury <graces@redhat.com>
4077
4078 * monitor.c (monitor_fetch_register): Make name a constant.
4079 (monitor_store_register): Same.
4080
261397f8
DJ
40812002-07-11 Daniel Jacobowitz <drow@mvista.com>
4082
4083 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4084 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4085 (finish_block) For non-function blocks, hash the symbol table. For
4086 function blocks, mark the symbol table as unhashed.
4087 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4088 (msymbol_hash_iw): Likewise.
4089 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4090 value.
4091 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4092 (lookup_minimal_symbol): Likewise for both.
4093 * symtab.h (struct block): Add `hashtable' flag. Comment the
4094 hashtable.
4095 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4096 (ALL_BLOCK_SYMBOLS): Update.
4097 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4098 (struct symbol): Add `hash_next' pointer.
4099 * symtab.c (lookup_block_symbol): Search using the hash table when
4100 possible.
4101 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4102 (search_symbols, find_addr_symbol): Likewise.
4103
4104 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4105 (read_dst_symtab): Likewise.
4106 * jv-lang.c (get_java_class_symtab): Likewise.
4107 * mdebugread.c: Include "gdb_assert.h".
4108 (shrink_block): Assert that the block being modified is not hashed.
4109 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4110 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4111 symbols.
4112 (dump_symtab): Recognize hashed blocks.
4113 * printcmd.c (print_frame_args): Assert that function blocks do not
4114 have hashed symbol tables.
4115 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4116 (fill_in_ada_prototype, debug_print_block): Likewise.
4117 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4118
6f0eaa01
CV
41192002-07-11 Corinna Vinschen <vinschen@redhat.com>
4120
4121 * stack.c (print_frame): Use result of frame_address_in_block()
4122 instead of fi->pc when evaluating symbols.
4123 (backtrace_command_1): Ditto.
4124
a208b0cb
AC
41252002-07-11 Andrew Cagney <cagney@redhat.com>
4126
4127 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4128 Make static.
4129
4130 * arm-tdep.c (arm_register_name): Make return type constant.
4131
a6b6b089
AC
41322002-07-10 Andrew Cagney <ac131313@redhat.com>
4133
5ae5f592
AC
4134 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4135 prototype.
4136 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4137 * s390-tdep.c (s390_fp_regnum): Ditto.
4138 (s390_read_fp): Ditto.
4139 (s390_pop_frame): Ditto.
4140 (_initialize_s390_tdep): Ditto.
4141 * remote.c (get_remote_state): Ditto.
4142 * procfs.c (mappingflags): Ditto.
4143 * memattr.c (_initialize_mem): Ditto.
4144 * mcore-tdep.c (mcore_pop_frame): Ditto.
4145 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4146 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4147 * language.c (set_case_str): Ditto.
4148 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4149 * frv-tdep.c (new_variant): Ditto.
4150 (frv_stopped_data_address): Ditto.
4151 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4152 (context_alloc): Ditto.
4153 (frame_state_alloc): Ditto.
4154 (unwind_tmp_obstack_init): Ditto.
4155 (unwind_tmp_obstack_free): Ditto.
4156 (cfi_read_fp): Ditto.
4157 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4158 (cris_pop_frame): Ditto.
4159 * c-lang.c (scanning_macro_expansion): Ditto.
4160 (finished_macro_expansion): Ditto.
4161 (c_preprocess_and_parse): Ditto.
4162 * gdbarch.sh: Ditto.
4163 * gdbarch.h, gdbarch.c: Regenerate.
4164 * config/mn10200/tm-mn10200.h: Adjust indentation.
4165 * target.c: Adjust indentation.
4166 * symtab.h: Adjust indentation.
4167 * stabsread.h: Adjust indentation.
4168 * remote-es.c: Adjust indentation.
4169 * os9kread.c: Adjust indentation.
4170
41712002-07-10 Andrew Cagney <ac131313@redhat.com>
4172
a6b6b089
AC
4173 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4174 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4175
a1789893
GS
41762002-07-10 Grace Sainsbury <graces@redhat.com>
4177
4178 * NEWS: Mention m68k, mcore multi-arching.
4179 * MAINTAINERS: Change status of m68k, mcore to reflect
4180 multi-arching.
4181
02f0d45d
DJ
41822002-07-10 Daniel Jacobowitz <drow@mvista.com>
4183
4184 * valops.c (find_overload_match): Free oload_syms.
4185
f15f768e
JB
41862002-07-09 Joel Brobecker <brobecker@gnat.com>
4187
4188 Define HAVE_SYS_PROC_H if sys/proc.h exists
4189 * configure.in: Add check for sys/proc.h
4190 * config.in: Regenerate.
4191 * configure: Regenerate.
4192
902a7139
GS
41932002-07-09 Grace Sainsbury <graces@redhat.com>
4194
4195 * config/m68k/tm-m68k.h: Remove macros wrapped in
4196 #if !GDB_MULTI_ARCH.
4197
a534e424
AC
41982002-07-08 Andrew Cagney <ac131313@redhat.com>
4199
4200 * config.in, configure: Regenerate.
4201
9b94f7bf
MK
42022002-07-08 Mark Kettenis <kettenis@gnu.org>
4203
4204 * dwarf2cfi.c: Include "gcore.h".
4205 (execute_stack_op): Fix implementation of the
4206 DW_OP_deref and DW_OP_deref_size operators by letting do their
4207 lookup in the target.
4208
1d34db41
MK
42092002-07-07 Mark Kettenis <kettenis@gnu.org>
4210
4211 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4212 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4213 tdep->sc_sp_offset.
4214
79d5b63a
DJ
42152002-07-05 Daniel Jacobowitz <drow@mvista.com>
4216
4217 Fix PR gdb/595, gdb/602
4218 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4219 Don't call value_cast, just read the vtable pointer; update comments
4220 to match.
4221
3bb912e8
GS
42222002-07-05 Grace Sainsbury <graces@redhat.com>
4223
4224 * config/mcore/tm-mcore.h: Remove file.
4225 * config/mcore/mcore.mt: Remove definition of TM_FILE
4226 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4227
ca39387d
MK
42282002-07-05 Mark Kettenis <kettenis@gnu.org>
4229
4230 * i386bsd-tdep.c: Include "gdb_string.h".
4231
efdc1108
GS
42322002-07-04 Grace Sainsbury <graces@redhat.com>
4233
4234 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4235 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4236 mcore-tdep.
4237 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4238 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4239 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4240 (RETVAL_REGNUM): Move macros from tm-mcore.h
4241 (mcore_reg_struct_has_addr): New function.
4242 (mcore_gdbarch_init): Added initializations for the macros removed
4243 from tm-mcore.h.
4244
bb21884d
MK
42452002-07-04 Mark Kettenis <kettenis@gnu.org>
4246
4247 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4248 traditonal string branding within the ELF header.
4249
228c6d41
DJ
42502002-07-04 Daniel Jacobowitz <drow@mvista.com>
4251
4252 * symtab.c (remove_params): New function.
4253 (make_symbol_overload_list): Use it instead of cplus_demangle.
4254 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4255
2404952e
MK
42562002-07-04 Mark Kettenis <kettenis@gnu.org>
4257
e5e4acad
MK
4258 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4259
baadce09
MK
4260 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4261 New variables.
4262 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4263 and tdep->sigtramp_end.
4264 * i386obsd-nat.c: New file.
4265 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4266
2404952e
MK
4267 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4268 Don't call get_current_frame().
4269
9b4f1ba7
PM
42702002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4271
4272 * i386-nat.c (child_post_startup_inferior): New function
4273 calling i386_cleanup_dregs if
4274 I386_USE_GENERIC_WATCHPOINTS is defined.
4275 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4276 conditional to acknowledge that i386-nat.c has its
4277 own child_post_startup_inferior function.
4278
c0d1d883
MK
42792002-07-04 Mark Kettenis <kettenis@gnu.org>
4280
00f8375e
MK
4281 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4282 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4283 instead of MAX_REGISTER_RAW_SIZE.
4284 (i386_extract_return_value, i386_extract_struct_value_address):
4285 Convert to use regcache.
4286 (i386_gdbarch_init): Set max_register_raw_size and
4287 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4288 Set extract_return_value and extract_struct_value_address instead
4289 of their deprecated variants.
4290
c0d1d883
MK
4291 Convert i386 target to generic dummy frames.
4292 * i386-tdep.c: Include "symfile.h".
4293 (i386_frameless_signal_p): Consider a function to be frameless if
4294 the pc points at the first instruction of the function.
4295 (i386_frame_chain): Handle (generic) call dummies.
4296 (i386_frame_saved_pc): Likewise.
4297 (i386_frame_init_saved_regs): Remove code dealing with call
4298 dummies on the stack.
4299 (i386_push_dummy_frame): Removed.
4300 (i386_call_dummy_words): Removed.
4301 (i386_fix_call_dummy): Removed.
4302 (i386_push_return_address): New function.
4303 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4304 parameter, and don't call get_current_frame.
4305 (i386_pop_frame): New function.
4306 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4307 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4308 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4309 call_dummy_length to 0, set call_dummy_words to NULL, set
4310 sizeof_call_dummy_words to 0, set fix_call_dummy to
4311 generic_fix_call_dummy, set pc_in_call_dummy to
4312 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4313 generic_push_dummy_frame, set push_return_address to
4314 i386_push_return_address and set frame_chain_valid to
4315 generic_file_frame_chain_valid.
4316
049ee0e4
AC
43172002-07-03 Andrew Cagney <ac131313@redhat.com>
4318
4319 * gdbarch.sh (struct regcache): Add opaque declaration.
4320 (EXTRACT_RETURN_VALUE): New architecture method.
4321 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4322 * gdbarch.h, gdbarch.c: Regenerate.
4323 * arch-utils.c (legacy_extract_return_value): New function.
4324 * arch-utils.h (legacy_extract_return_value): Declare.
4325 * values.c (value_being_returned): Re-enable code handling
4326 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4327 deprecated_grub_regcache_for_registers call to block handling
4328 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4329 (EXTRACT_RETURN_VALUE): Do not define.
4330
4e0d9804
GS
43312002-07-03 Grace Sainsbury <graces@redhat.com>
4332
4333 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4334 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4335 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4336 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4337 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4338 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4339 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4340 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4341 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4342 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4343 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4344 argument so the function fits the prototype in the architecture
4345 vector.
4346 (mcore_pop_frame): Remove argument so the function fits the
4347 prototype. Use get_current_frame instead of the argument.
4348 (mcore_push_arguments): Change type of struct_return so the
4349 function can be used in the architecture vector.
4350 (mcore_store_struct_return): Add.
4351 (mcore_frame_init_saved_regs): Add.
4352 (mcore_gdbarch_init): Add function calls to replace the macros
4353 removed from tm-mcore.h
4354
36160dc4
AC
43552002-07-03 Andrew Cagney <ac131313@redhat.com>
4356
4357 * infcmd.c (print_return_value): Remove compatibility code calling
4358 deprecated_grub_regcache_for_registers.
4359
4360 * values.c: Include "regcache.h".
4361 (value_being_returned): Update. Use
4362 deprecated_grub_regcache_for_registers to extract the register
4363 buffer address.
4364 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4365 ``struct regcache''.
4366 * Makefile.in (values.o): Add dependency on $(regcache_h).
4367
4368 * inferior.h (run_stack_dummy): Change type of second parameter to
4369 a ``struct regcache''.
4370 * valops.c (hand_function_call): Change type of retbuf to ``struct
4371 regcache''. Allocate using regcache_xmalloc, clean using
4372 make_cleanup_regcache_xfree.
4373 * infcmd.c (run_stack_dummy): Update. Use
4374 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4375
4376 * regcache.c (do_regcache_xfree): New function.
4377 (make_cleanup_regcache_xfree): New function.
4378 * regcache.h (make_cleanup_regcache_xfree): Declare.
4379
e64d9b3d
MH
43802002-07-03 Martin M. Hunt <hunt@redhat.com>
4381
4dd79c29
MH
4382 * event-top.c (command_line_handler): Don't read past
4383 beginning of buffer.
e64d9b3d 4384
4dd79c29
MH
43852002-07-03 Martin M. Hunt <hunt@redhat.com>
4386
e64d9b3d
MH
4387 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4388 struct frame_id.
4389 (varobj_create): Store frame_id for root.
4390 (varobj_gen_name): Use xasprintf.
4391 (varobj_update): Save and restore frame using get_frame_id() and
4392 frame_find_by_id().
4393 (create_child): Use xasprintf.
4394 (new_root_variable): Initialize frame_id.
4395 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4396 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4397 to prevent memory leak.
4398
26e6c56a
AC
43992002-07-03 Andrew Cagney <ac131313@redhat.com>
4400
4401 * valops.c (hand_function_call): Move declaration of retbuf to
4402 start of function, allocate using malloc, add a cleanup but before
4403 the inf_status cleanup, cleanup the buffer. Rename local variable
4404 old_chain to inf_status_cleanup.
4405
f436dd25
MH
44062002-07-03 Martin M. Hunt <hunt@redhat.com>
4407
4408 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4409
4410 * cli/cli-decode.c (cmd_func_p): New function.
4411 (cmd_func): New function.
4412
4413 * command.h: Add cmd_func() and cmd_func_p().
4414
4cfe2084
GS
44152002-07-03 Grace Sainsbury <graces@redhat.com>
4416
4417 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4418 (REGISTER_SIZE): Remove.
4419 (MAX_REGISTER_RAW_SIZE): Remove.
4420 (REGISTER_VIRTUAL_TYPE): Remove.
4421 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4422 (REGISTER_NAME): Remove.
4423 (USE_GENERIC_DUMMY_FRAMES): Remove.
4424 (CALL_DUMMY): Remove.
4425 (CALL_DUMMY_START_OFFSET): Remove.
4426 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4427 (CALL_DUMMY_LOCATION): Remove.
4428 (FIX_CALL_DUMMY): Remove.
4429 (CALL_DUMMY_ADDRESS): Remove.
4430 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4431 (SAVE_DUMMY_FRAME_TOS): Remove.
4432 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4433 (mcore_register_virtual_type): New function.
4434 (mcore_register_byte): New function.
4435 (mcore_register_size): New function.
4436 (mcore_register_name): New function.
4437 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4438 macros removed from tm-mcore.h.
4439 (mcore_dump_tdep): Add.
4440 (_initialize_mcore_tdep): Add gdbarch_register call.
4441
4fd667e9
MK
44422002-07-03 Mark Kettenis <kettenis@gnu.org>
4443
4444 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4445 frameless_look_for_prologue, such that we actually call this
4446 function.
4447
42f99ac2
JB
44482002-07-02 Joel Brobecker <brobecker@gnat.com>
4449
4450 * frame.h (frame_address_in_block): New function.
4451
4452 * blockframe.c (frame_address_in_block): New function extracted
4453 from get_frame_block().
4454 (get_frame_block): Use frame_address_in_block().
4455 (block_innermost_frame): Use frame_address_in_block() to match
4456 the frame pc address against the block boundaries rather than
4457 the frame pc directly. This prevents a failure when a frame pc
4458 is actually a return-address pointing immediately after the end
4459 of the given block.
4460
103a1597 44612002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4462
4463 * MAINTAINERS: Add self under write after approval.
4464
44652002-07-02 Grace Sainsbury <graces@redhat.com>
4466
103a1597
GS
4467 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4468 used in architecture vector. The default is
4469 m68k_local_breakpoint_from_pc.
4470 (m68k_local_breakpoint_from_pc): Add.
4471 (enum): Add register numbers from tm-m68k.h.
4472 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4473 vector.
4474 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4475 GDB_MULTI_ARCH_PARTIAL.
4476 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4477 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4478 m68k-tdep.c.
4479 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4480 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4481 to enum in m68k-tdep.c
4482
7a5a0534
JB
44832002-07-02 Joel Brobecker <brobecker@gnat.com>
4484
4485 * solib-osf.c (open_map): Compute the list of shared libraries
4486 loaded by the inferior, rather than the list of libraries loaded
4487 by GDB itself. Otherwise, GDB ends up reading the symbols from
4488 the wrong shared libraries...
4489
6f558d74
MK
44902002-07-02 Mark Kettenis <kettenis@gnu.org>
4491
b7d15bf7
MK
4492 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4493 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4494 macros.
4495 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4496 Remove functions.
4497 (FRAMELESS_SIGNAL): Remove function.
4498 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4499 i386_linux_saved_pc_after_call): Removed.
4500 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4501 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4502 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4503
6bff26de
MK
4504 * i386-tdep.c (i386_frameless_signal_p): New function.
4505 (i386_frame_chain): Deal with frameless signals.
4506 (i386_sigtramp_saved_sp): New function.
4507 (i386_frame_saved_pc): Deal with frameless signals.
4508 (i386_saved_pc_after_call): Make sure the correct value is
4509 returned just after entry into a sigtramp.
4510 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4511 i386fbsd4_sc_sp_offset): New variables.
4512 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4513 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4514 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4515 similiar to what we already did for sc_pc_offset.
4516 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4517 tdep->sc_sp_offset.
4518
6f558d74
MK
4519 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4520
145564b7
ML
45212002-07-02 Michal Ludvig <mludvig@suse.cz>
4522
4523 * config/i386/tm-x86-64linux.h: New.
4524 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4525 definitions.
4526 * config/i386/nm-x86-64.h: Rename to ...
4527 * config/i386/nm-x86-64linux.h: ... this one.
4528 * config/i386/x86-64linux.mh: Reflect the above change.
4529
3a1e71e3
MK
45302002-07-01 Mark Kettenis <kettenis@gnu.org>
4531
21d0e8a4
MK
4532 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4533 with sigcontext_addr. Add sc_sp_offset.
4534 (i386bsd_sigtramp_saved_pc): Remove prototype.
4535 (i386bsd_sicontext_addr): Add prototype.
4536 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4537 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4538 (i386_svr4_sigtramp_saved_pc): Removed.
4539 (i386_svr4_sigcontext_addr): New function.
4540 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4541 Initialize tdep->sigcontext_addr instead. Initialize
4542 tdep->sc_pc_offset and tdep->sc_sp_offset.
4543 (i386_gdbarch_init): Likewise.
4544 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4545 any more.
4546 (i386bsd_sigtramp_saved_pc): Remove function.
4547 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4548 Initialize tdep->sigcontext_addr instead. Initialize
4549 tdep->sc_pc_offset.
4550 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4551 of tdep->sigtramp_saved_pc.
4552 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4553 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4554 instead.
4555
3a1e71e3
MK
4556 * i386-tdep.c (i386_frameless_function_invocation,
4557 i386_frame_num_args, i386_frame_init_saved_regs,
4558 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4559 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4560 i386_extract_return_value, i386_store_return_value,
4561 i386_extract_struct_value_address, i386_register_virtual_type,
4562 i386_register_convertible, i386_register_convert_to_virtual,
4563 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4564 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4565 static.
4566
52e9098c
MK
45672002-07-01 Mark Kettenis <kettenis@gnu.org>
4568
77b13a25
MK
4569 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4570
52e9098c
MK
4571 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4572 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4573 this macro. Include "value.h".
4574
1b372fff
AS
45752002-06-30 Aidan Skinner <aidan@velvet.net>
4576
4577 * ada-exp.tab.c: remove as it's a generated file
4578 * ada-lex.c: remove as it's a generated file
4579
9c5045b5
MK
45802002-06-30 Mark Kettenis <kettenis@gnu.org>
4581
4a93c5bb
MK
4582 * config/i386/tm-i386.h (struct frame_info, struct
4583 frame_saved_regs, struct value, struct type): Remove forward
4584 declarations.
4585
322d4fe0
MK
4586 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4587 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4588 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4589 (FILL_FPXREGSET): Define.
4590
fdd8263d
MK
4591 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4592
482e577b
MK
4593 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4594 i[3456]86-*-netbsd* case.
4595 * config/i386/tm-obsd.h: Removed.
4596 * config/i386/obsd.mt: Removed.
4597 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4598 core-aout.o.
4599 (MH_CFLAGS): Add -DYYDEBUG=0.
4600
6916549a
MK
4601 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4602 i386nbsd_sc_pc_offset on OpenBSD too.
4603
9c5045b5
MK
4604 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4605 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4606 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4607 define.
4608 * i386bsd-tdep.c: Include "arch-utils.h".
4609 (i386bsd_aout_in_solib_call_trampoline): New function.
4610 (i386bsd_init_abi): Set in_solib_call_trampoline to
4611 i386bsd_aout_in_solib_call_trampoline.
4612 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4613 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4614
aa84d1bb
AC
46152002-06-28 Andrew Cagney <ac131313@redhat.com>
4616
4617 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4618 (struct obstack, struct bcache): Add opaque declarations.
4619 * Makefile.in (macrotab_h): Update
4620
b4d83933
AC
46212002-06-28 Andrew Cagney <ac131313@redhat.com>
4622
4623 * blockframe.c (generic_find_dummy_frame): Change return type to
4624 ``struct regcache''.
4625 (struct dummy_frame): Replace field ``registers'' with regcache, a
4626 struct regcache object.
4627 (generic_find_dummy_frame): Update.
4628 (generic_push_dummy_frame): Update. Use regcache_xfree,
4629 regcache_xmalloc and regcache_cpy.
4630 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4631 regcache_xfree.
4632 (deprecated_generic_find_dummy_frame): Update.
4633 (generic_read_register_dummy): Update. Use
4634 regcache_read_as_address.
4635 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4636 (generic_get_saved_register): Update. Use regcache_read.
4637
08c0b5bc
AC
46382002-06-28 Andrew Cagney <ac131313@redhat.com>
4639
4640 * Makefile.in (objfiles_h): Add $(bcache_h).
4641 * objfiles.h: Include "bcache.h".
4642
4643 * Makefile.in (symtab_h): Remove $(bcache_h).
4644 * symtab.h: Do not include "bcache.h".
4645
1f89801a
AC
46462002-06-28 Andrew Cagney <ac131313@redhat.com>
4647
4648 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4649 generic_func_frame_chain_valid.
4650
b9644b58
DB
46512002-06-28 David O'Brien <obrien@FreeBSD.org>
4652
4653 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4654 * config/i386/tm-fbsd.h: Likewise.
4655
dd486634
AC
46562002-06-28 Andrew Cagney <ac131313@redhat.com>
4657
4658 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4659 generic_unwind_get_saved_register.
4660
0b434a00
AC
46612002-06-27 Andrew Cagney <ac131313@redhat.com>
4662
4663 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4664 * regcache.c (supply_register): Add missing argument to
4665 register_buffer call.
4666
f30e5a77
AC
46672002-06-27 Andrew Cagney <ac131313@redhat.com>
4668
4669 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4670 Solaris /bin/grep does not not like it. From Peter Schauer.
4671
9f064c95
TT
46722002-06-26 Tom Tromey <tromey@redhat.com>
4673
4674 * command.h (add_setshow_cmd): Declare.
4675 (add_setshow_cmd_full): Declare.
4676 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4677 returns void. Use add_setshow_cmd_full.
4678 (add_setshow_cmd_full): New function.
4679 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4680 (add_setshow_boolean_cmd): Likewise.
4681
099c7589
JT
46822002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4683
4684 * config/vax/tm-vax.h: Protect from multiple inclusion.
4685 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4686 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4687 * config/vax/tm-vaxbsd.h: ...here. New file.
4688 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4689
1d049c5e
JT
46902002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4691
4692 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4693 (BELIEVE_PCC_PROMOTION): Remove.
4694 (AP_REGNUM): Move to...
4695 * config/vax/nm-vax.h: ...here.
4696 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4697 (vax_breakpoint_from_pc): New function.
4698 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4699 and gdbarch_believe_pcc_promotion.
4700
4791e091
JT
47012002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4702
4703 * Makefile.in (vax_tdep_h): Define.
4704 (vax-tdep.o): Use $(vax_tdep_h).
4705 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4706 (vax_dump_tdep): New function.
4707 (_initialize_vax_tdep): Register vax_dump_tdep.
4708 * vax-tdep.h: Include osabi.h.
4709 (struct gdbarch_tdep): New.
4710
da130f98
AC
47112002-06-26 Andrew Cagney <cagney@redhat.com>
4712
4713 * frame.h (deprecated_generic_find_dummy_frame): Rename
4714 generic_find_dummy_frame.
4715 * blockframe.c (generic_find_dummy_frame): Make static.
4716 (deprecated_generic_find_dummy_frame): New function.
4717 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4718 generic_find_dummy_frame with deprecated_find_dummy_frame.
4719 (sh64_nofp_frame_init_saved_regs): Ditto.
4720 (sh_fp_frame_init_saved_regs): Ditto.
4721 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4722 (s390_frame_chain): Ditto.
4723 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4724
6300c360
GS
47252002-06-26 Grace Sainsbury <graces@redhat.com>
4726
4727 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4728 gdbarch vector are at the top.
4729 (NUM_REGS): Remove.
4730 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4731 (FRAME_ARGS_ADDRESS): Remove.
4732 (FRAME_LOCALS_ADDRESS): Remove.
4733 (FRAME_NUM_ARGS): Remove.
4734 (FRAME_ARGS_SKIP): Remove.
4735 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4736 (m68k_gdbarch_init): Add gdbarch initializations for macros
4737 undefined in tm-m68k.h
4738
1c617db8
GS
47392002-06-26 Grace Sainsbury <graces@redhat.com>
4740
4741 * monitor.h: Add the function regname to monitor_ops
4742 structure. This way NUM_REGS does not have to be a constant.
4743 * monitor.c (monitor_fetch_register): Added support for regname
4744 function. The function is called if the array regnames is NULL.
4745 (monitor_store_register): Same.
da130f98
AC
4746 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4747 regnames array.
1c617db8
GS
4748 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4749 cpu32bug_cmds.regname to point to new function.
4750 * abug-rom.c (abug_regname): Same as above.
4751 (init_abug_cmds): Same.
4752 * dbug-rom.c (dbug_regname): Same as above.
4753 (init_dbug_cmds): Same.
4754 * remote-est.c (est_regname): Same.
4755 (init_est_cmds): Same.
4756 * rom68k-rom.c (rom68k_regname): Same.
4757 (init_rom68k_cmds): Same.
4758
ea9365bb
TT
47592002-06-25 Tom Tromey <tromey@redhat.com>
4760
4761 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4762
72cec141
AC
47632002-06-25 Andrew Cagney <cagney@redhat.com>
4764
4765 * infrun.c (stop_registers): Change variable's type to ``struct
4766 regcache'''.
4767 (xmalloc_inferior_status): Delete function.
4768 (free_inferior_status): Delete function.
4769 (normal_stop): Use regcache_cpy.
4770 (struct inferior_status): Change type of fields ``stop_registers''
4771 and ``registers'' to ``struct regcache''.
4772 (write_inferior_status_register): Use regcache_write.
4773 (save_inferior_status): Instead of calling
4774 xmalloc_inferior_status, allocate the inf_status buffer directly.
4775 Use regcache_dup_no_passthrough and regcache_dup to save the
4776 buffers.
4777 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4778 Replace the stop_registers regcache instead of overriding it. Use
4779 regcache_xfree. Instead of calling free_inferior_status, xfree
4780 the buffer directly.
4781 (discard_inferior_status): Use regcache_xfree. Instead of calling
4782 free_inferior_status, xfree the buffer directly.
4783 (build_infrun): Use regcache_xmalloc.
4784 (_initialize_infrun): Delete redundant call to build_infrun.
4785
4786 * Makefile.in (infcmd.o): Add $(regcache_h).
4787
4788 * infcmd.c: Include "regcache.h".
4789 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4790 obtain the address of `stop_registers' register buffer.
4791 (print_return_value): Ditto.
4792
4793 * inferior.h (struct regcache): Add opaque declaration.
4794 (stop_registers): Change variable's declared type to ``struct
4795 regcache''.
4796
defc6f8c
TT
47972002-06-24 Tom Tromey <tromey@redhat.com>
4798
c0e624e7
TT
4799 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4800 * target.c (initialize_targets): Fixed typo in
4801 trust-readonly-sections `show' documentation.
4802
defc6f8c
TT
4803 * main.c: Marked all strings with _().
4804
2b236d82
DH
48052002-06-24 Don Howard <dhoward@redhat.com>
4806
4807 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4808 that means max CORE_ADDR+1.
4809 (lookup_mem_region): Ditto.
4810 (mem_info_command): Ditto.
4811
942dc0e9
GS
48122002-06-24 Grace Sainsbury <graces@redhat.com>
4813
4814 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4815 (REGISTER_BYTES_OK): Remove.
4816 (REGISTER_BYTES): Remove.
4817 (STORE_STRUCT_RETURN): Remove.
4818 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4819 (STORE_RETURN_VALUE): Remove.
4820 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4821 (FRAME_CHAIN): Remove.
4822 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4823 (FRAME_SAVED_PC): Remove.
4824 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4825 (m68k_store_struct_return): Add.
4826 (m68k_deprecated_extract_return_value): Add.
4827 (m68k_deprecated_extract_struct_value_address): Add.
4828 (m68k_store_return_value): Add.
4829 (m68k_frame_chain): Add.
4830 (m68k_frameless_function_invocation): Add.
4831 (m68k_frame_saved_pc): Add.
4832 (m68k_gdbarch_init): added set_gdbarch calls for new
4833 functions and deleted macros.
4834
03c30d4d
TT
48352002-06-23 Tom Tromey <tromey@redhat.com>
4836
4837 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4838 (ALLDEPFILES): Likewise.
4839 (udiheaders): Removed.
4840 (udip2soc.o): Likewise.
4841 (udi2go32.o): Likewise.
4842 (udr.o): Likewise.
4843 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4844
37e71372
AC
48452002-06-22 Andrew Cagney <ac131313@redhat.com>
4846
06a6ac57
AC
4847 * infrun.c (_initialize_infrun): Delete unnecessary call to
4848 build_infrun.
4849
37e71372
AC
4850 * regcache.h: Update comments describing the regcache_cpy family
4851 of functions.
4852 (regcache_save, regcache_restore): Delete declaration.
4853 (regcache_save_no_passthrough): Delete declaration.
4854 (regcache_restore_no_passthrough): Delete declaration.
4855 * regcache.c (regcache_save): Delete function.
4856 (regcache_save_no_passthrough): Delete function.
4857 (regcache_restore): Delete function.
4858 (regcache_restore_no_passthrough): Delete function.
4859
78f6d055
AC
48602002-06-21 Andrew Cagney <ac131313@redhat.com>
4861
4862 * config/m68k/tm-m68k.h: Fix typo.
4863 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4864 (m68k_frame_init_saved_regs): Declare.
4865
78b119cb
JB
48662002-06-21 Jim Blandy <jimb@redhat.com>
4867
4868 Remove some vestiges of Harris 88k support.
4869 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4870 register numbering quirk.
4871 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4872 odd symbols occurring in Harris 88k ELF targets.
4873
0fbb3da7
TT
48742002-06-21 Tom Tromey <tromey@redhat.com>
4875
4876 * gdb_locale.h: New file.
4877 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4878 (defs_h): Added gdb_locale.h.
4879 * configure, config.in: Rebuilt.
4880 * configure.in (PACKAGE): Define.
4881 * defs.h: Include gdb_locale.h.
4882 * main.c (captured_main): Call setlocale, bindtextdomain,
4883 textdomain.
4884
456f8b9d
DB
48852002-06-21 Dave Brolley <brolley@redhat.com>
4886
4887 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4888 * config/frv/frv.mt: New file.
4889 * config/frv/tm-frv.h: New file.
4890 * configure.tgt: Support frv-*-*.
4891 * Makefile.in (frv-tdep.o): New target.
4892 * frv-tdep.c: New file.
4893 * NEWS: Mention frv.
4894
cdd463f9
DB
48952002-06-21 Dave Brolley <brolley@redhat.com>
4896
4897 * MAINTAINERS: Add self to "Write After Approval" list.
4898
5d3ed2e3
GS
48992002-06-21 Grace Sainsbury <graces@redhat.com>
4900
4901 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4902 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4903 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4904 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4905 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4906
4907 * m68k-tdep.c: Include arch-utils.h
4908 (m68k_register_raw_size): Add.
4909 (m68k_register_virtual_size): Add.
4910 (m68k_register_virtual_type): Add.
4911 (m68k_register_name): Add.
4912 (m68k_stack_align): Add.
4913 (m68k_register_byte): Add.
4914 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4915 tm-m68k.h.
4916
7f8e7424
GS
49172002-06-21 Grace Sainsbury <graces@redhat.com>
4918
a2c6a6d5 4919 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4920 m68k_find_saved_regs.
4921 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4922 references to it with frame->saved_regs.
7f8e7424
GS
4923 (m68k_gdbarch_init): Added function calls to initialize the
4924 gdbarch structure.
a2c6a6d5
GS
4925 (m68k_fix_call_dummy): Add.
4926 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4927 (CALL_DUMMY): Remove.
4928 (CALL_DUMMY_LENGTH): Remove.
4929 (CALL_DUMMY_START_OFFSET): Remove.
4930 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4931 (FIX_CALL_DUMMY): Remove.
4932 (PUSH_DUMMY_FRAME): Remove.
4933 (POP_FRAME): Remove.
7f8e7424 4934
f461f5cf
PM
49352002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4936
4937 * parse.c (parse_fprintf): New function used to avoid calls to
4938 fprintf in bison parser generated debug code.
4939 * parser-defs.h: Declaration of new parse_fprintf function.
4940 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4941 Set YYDEBUG to 1 by default.
4942 Set YYFPRINTF as parse_fprintf.
4943
7f0c12ed
ML
49442002-06-21 Michal Ludvig <mludvig@suse.cz>
4945
4946 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4947 encoding anymore.
4948 (pointer_encoding, enum ptr_encoding): New.
4949 (execute_cfa_program): Take care about pointer encoding.
4950 (dwarf2_build_frame_info): Only call parse_frame_info for
4951 .debug_frame and .eh_frame.
4952 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4953 fixed augmentation handling, added relative addressing,
4954 ignore duplicate FDEs. Added comments.
19d833a2 4955 * dwarf2cfi.c: Reindented.
7f0c12ed 4956
87c4a039
EZ
49572002-06-20 Elena Zannoni <ezannoni@redhat.com>
4958
4959 * event-top.c (command_handler): Don't use space_at_cmd_start
4960 unless there is sbrk() on the host. Assign time and space data
4961 to union fields of the appropriate length.
4962
1cf877ad
ML
49632002-06-20 Michal Ludvig <mludvig@suse.cz>
4964
4965 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4966 x86_64_register_name. Return type changed to 'const char *'.
4967 (x86_64_register_name2nr): Rename to x86_64_register_number.
4968 (x86_64_gdbarch_init): Update to reflect the change.
4969 * x86-64-tdep.h: Ditto.
4970 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4971 (supply_fpregset): Ditto.
4972
3fadccb3
AC
49732002-06-19 Andrew Cagney <cagney@redhat.com>
4974
4975 * regcache.h: Update copyright.
4976 (struct regcache, struct gdbarch): Add opaque declarations.
4977 (current_regcache): Declare global variable.
4978 (regcache_read, regcache_write): Add gdbarch parameter.
4979 (regcache_save, regcache_save_no_passthrough)
4980 (regcache_restore, regcache_restore_no_passthrough)
4981 (regcache_dup, regcache_dup_no_passthrough)
4982 (regcache_cpy, regcache_cpy_no_passthrough)
4983 (deprecated_grub_regcache_for_registers)
4984 (deprecated_grub_regcache_for_register_valid)
4985 (regcache_valid_p): Add function declarations.
4986
4987 * regcache.c: Update copyright.
4988 (regcache_descr_handle): New global variable.
4989 (struct regcache_descr): Define.
4990 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4991 (regcache_descr, xfree_regcache_descr): New functions.
4992 (struct regcache): Define.
4993 (regcache_xmalloc, regcache_xfree): New functions.
4994 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4995 (regcache_dup, regcache_dup_no_passthrough): New functions.
4996 (regcache_valid_p, regcache_read_as_address): New functions.
4997 (deprecated_grub_regcache_for_registers): New function.
4998 (deprecated_grub_regcache_for_register_valid): New function.
4999 (current_regcache): New global variable.
5000 (register_buffer): Add regcache parameter. Update calls.
5001 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5002 (read_register_gen, write_register_gen): Update register_buffer
5003 call. Test for legacy_p instead of gdbarch_register_read_p or
5004 gdbarch_register_write_p.
5005 (regcache_collect): Update register_buffer call.
5006 (build_regcache): Rewrite. Use deprecated grub functions.
5007 (regcache_save, regcache_save_no_passthrough): New functions.
5008 (regcache_restore, regcache_restore_no_passthrough): New
5009 functions.
5010 (_initialize_regcache): Create the regcache_data_handle. Swap
5011 current_regcache global variable.
5012
5013 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5014 parameter to regcache_read and regcache_write calls.
5015 (sh4_register_read): Ditto.
5016 (sh64_pseudo_register_read): Ditto.
5017 (sh64_register_read): Ditto.
5018 (sh_pseudo_register_write): Ditto.
5019 (sh4_register_write): Ditto.
5020 (sh64_pseudo_register_write): Ditto.
5021 (sh64_register_write): Ditto.
5022
5023 * defs.h (XCALLOC): Define.
5024
152d9db6
GS
50252002-06-19 Grace Sainsbury <graces@redhat.com>
5026
5027 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5028 * m68k-tdep.c (m68k_gdbarch_init): Added.
5029 (m68k_dump_tdep): Added.
5030
170911c7
DJ
50312002-06-19 Daniel Jacobowitz <drow@mvista.com>
5032
5033 * ada-lang.c (fill_in_ada_prototype): Update comment.
5034
2e4ebe70
DJ
50352002-06-19 Daniel Jacobowitz <drow@mvista.com>
5036
5037 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5038 MIPS_ABI_LAST.
5039 (mips_abi_string, mips_abi_strings): New.
5040 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5041 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5042 tdep->mips_abi_string. Honor mips_abi_string. Default to
5043 O32 if no ABI is found.
5044 (mips_dump_tdep): Use mips_abi_strings.
5045 (mips_abi_update): New function.
5046 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5047 ``set mips abi'' and ``show mips abi''. Check the size of
5048 mips_abi_strings.
5049
16775908
AC
50502002-06-19 Andrew Cagney <cagney@redhat.com>
5051
5052 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5053 constant.
5054
5051bfa4 50552002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 5056
5051bfa4
JB
5057 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5058 current frame using only the first stack size adjustment. All
5059 subsequent size adjustments are not considered to be part of
5060 the "static" part of the current frame.
5061 Compute the address of the saved registers relative to the
5062 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5063 in use in this frame.
5064
56468235
DH
50652002-06-18 Don Howard <dhoward@redhat.com>
5066
5067 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5068 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5069 suggesting this solution.
5070
0b624158
AC
50712002-06-18 Andrew Cagney <ac131313@redhat.com>
5072
5073 * config/romp/xm-rtbsd.h: Delete file.
5074 * config/romp/rtbsd.mh: Delete file.
5075
221ea385
KS
50762002-06-18 Keith Seitz <keiths@redhat.com>
5077
5078 * breakpoint.c (condition_command): Post breakpoint_modify
5079 when a condition is added to an existing breakpoint.
5080 (commands_command): Likewise for commands.
5081 (set_ignore_count): Likewise for ignore counts.
5082 If no tty, do not simply return, still need to send event
5083 notification.
5084 (ignore_command): Only print a newline if the command came
5085 from a tty.
5086 Don't call breakpoints_changed, since this is now properly
5087 handled by set_ignore_count.
5088
5402eed1
AC
50892002-06-18 Andrew Cagney <cagney@redhat.com>
5090
5091 * MAINTAINERS: Note that cris-elf target can be compiled with
5092 -Werror.
5093 * cris-tdep.c (cris_register_name): Make return type constant.
5094 (cris_breakpoint_from_pc): Ditto.
5095
cc22880b
ML
50962002-06-18 Michal Ludvig <mludvig@suse.cz>
5097
5098 * frame.h (struct frame_info): Change type of context to
5099 'struct context'.
5100
fa88f677
AC
51012002-06-17 Andrew Cagney <cagney@redhat.com>
5102
5103 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5104 pointer.
5105 * gdbarch.h, gdbarch.c: Regenerate.
5106 * config/mips/tm-mips.h (mips_register_name): Update.
5107 * i386-tdep.h (i386_register_name): Update.
5108 * mips-tdep.c (mips_register_name): Update
5109 * alpha-tdep.c (alpha_register_name): Update.
5110 * arch-utils.c (legacy_register_name): Update.
5111 * arch-utils.h (legacy_register_name): Update.
5112 * avr-tdep.c (avr_register_name): Update.
5113 * ia64-tdep.c (ia64_register_name): Update.
5114 * i386-tdep.c (i386_register_name): Update.
5115 * sparc-tdep.c (sparc32_register_name): Update.
5116 (sparc64_register_name): Update.
5117 (sparclite_register_name): Update.
5118 (sparclet_register_name): Update.
5119 * sh-tdep.c (sh_generic_register_name): Update.
5120 (sh_sh_register_name): Update.
5121 (sh_sh3_register_name): Update.
5122 (sh_sh3e_register_name): Update.
5123 (sh_sh_dsp_register_name): Update.
5124 (sh_sh3_dsp_register_name): Update.
5125 (sh_sh4_register_name): Update.
5126 (sh_sh64_register_name): Update.
5127 * s390-tdep.c (s390_register_name): Update.
5128 * rs6000-tdep.c (rs6000_register_name): Update.
5129 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5130 (ns32k_register_name_32382): Update.
5131 * d10v-tdep.c (d10v_ts2_register_name): Update.
5132 (d10v_ts3_register_name): Update.
5133 * xstormy16-tdep.c (xstormy16_register_name): Update.
5134 * vax-tdep.c (vax_register_name): Update.
5135 * v850-tdep.c (v850_register_name): Update.
5136 * m68hc11-tdep.c (m68hc11_register_name): Update.
5137 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5138 (am33_register_name): Update.
5139
ea1e7ef6
GS
51402002-06-17 Grace Sainsbury <graces@redhat.com>
5141
5142 * m68k-tdep.c: Reindented.
5143
9b02dd1b
AC
51442002-06-17 Andrew Cagney <ac131313@redhat.com>
5145
5146 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5147 list of predefined types.
5148
8758dec1
MK
51492002-06-16 Mark Kettenis <kettenis@gnu.org>
5150
b6197528
MK
5151 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5152 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5153 REGISTER_CONVERT_TO_RAW): Remove defines.
5154 (i386_register_virtual_type, i386_register_convertible,
5155 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5156 Remove prototypes.
5157 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5158 macros mentioned above.
5159
82b47e62
MK
5160 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5161 (i386lynx_saved_pc_after_call): Remove prototype.
5162 * i386ly-tdep.c: Include "i386-tdep.h".
5163 (i386lynx_saved_pc_after_call): Make static. Use
5164 read_memory_nobpt instead of read_memory. Use
5165 read_memory_unsigned_integer instead of read_memory_integer.
5166 (i386lynx_init_abi): New function.
5167 (i386lynx_coff_osabi_sniffer): New function.
5168 (_initialize_i386bsd_tdep): New function.
5169
8758dec1
MK
5170 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5171 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5172 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5173 (i386_fix_call_dummy): Remove prototype.
5174 * i386-tdep.c (i386_call_dummy_words): New variable.
5175 (i386_gdbarch_init): Adjust for removal of the
5176 macros mentioned above.
5177
e9e68a56
AC
51782002-06-15 Andrew Cagney <ac131313@redhat.com>
5179
5180 * command.h (add_setshow_auto_boolean_cmd): Replace
5181 add_set_auto_boolean_cmd.
5182 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5183 add_set_auto_boolean_cmd.
5184 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5185 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5186 mask-address'' command.
5187 (show_mask_address): Add cmd parameter.
5188 * remote.c (add_packet_config_cmd): Update. Change type of
5189 set_func and show_func to cmd_sfunc_ftype.
5190 (_initialize_remote): Update `set remote Z-packet'
5191 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5192 (show_remote_protocol_e_packet_cmd): Ditto.
5193 (show_remote_protocol_E_packet_cmd): Ditto.
5194 (show_remote_protocol_P_packet_cmd): Ditto.
5195 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5196 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5197 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5198 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5199 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5200 (show_remote_protocol_Z_packet_cmd): Ditto.
5201 (show_remote_protocol_binary_download_cmd): Ditto.
5202 (show_remote_cmd): Pass NULL to all of above.
5203
fc08ec52
MK
52042002-06-15 Mark Kettenis <kettenis@gnu.org>
5205
5206 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5207 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5208 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5209 POP_FRAME): Remove defines.
5210 (i386_push_arguments, i386_store_struct_return,
5211 i386_extract_return_value, i386_store_return_value,
5212 i386_extract_struct_value_address, i386_push_dummy_frame,
5213 i386_pop_frame): Renove prototypes.
5214 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5215 macros mentioned above.
5216
e707bbc2
AC
52172002-06-15 Andrew Cagney <ac131313@redhat.com>
5218
5219 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5220 add_set_boolean_cmd.
5221 (add_setshow_cmd): New function.
5222 * command.h (add_setshow_boolean_cmd): Replace
5223 add_set_boolean_cmd.
5224 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5225 and ``set rdiromatzero''.
5226 * maint.c (_initialize_maint_cmds): Update commented out code.
5227 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5228 * target.c (initialize_targets): Update `set
5229 trust-readonly-sections'.
5230 * remote.c (_initialize_remote): Update `set remotebreak'.
5231
42fdc8df
MK
52322002-06-15 Mark Kettenis <kettenis@gnu.org>
5233
93924b6b
MK
5234 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5235 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5236 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5237 fit into multi-arch framework.
5238 (i386_breakpoint_from_pc): New function.
5239 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5240 above.
5241
42fdc8df
MK
5242 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5243 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5244 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5245 (i386_frameless_function_invocation, i386_frame_num_args,
5246 i386_frame_init_saved_regs): Remove prototypes.
5247 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5248 macros mentioned above.
5249
9773a94b
AC
52502002-06-15 Andrew Cagney <ac131313@redhat.com>
5251
5252 * cli/cli-decode.c (set_cmd_cfunc): Update.
5253 (set_cmd_sfunc): Update.
5254 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5255 (set_cmd_sfunc, set_cmd_cfunc): Update.
5256 * cli/cli-decode.h: Update.
5257
6e157172
MK
52582002-06-15 Mark Kettenis <kettenis@gnu.org>
5259
5260 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5261 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5262
7f19b9a2
AC
52632002-06-15 Andrew Cagney <ac131313@redhat.com>
5264
5265 * defs.h (auto_boolean): Declare enum.
5266 * command.h (cmd_auto_boolean): Delete enum.
5267 * mips-tdep.c (mask_address_var): Update.
5268 (mips_mask_address_p): Update.
5269 (show_mask_address): Update.
5270 * remote.c (struct packet_config): Update.
5271 (update_packet_config): Update.
5272 (show_packet_config_cmd): Update.
5273 (packet_ok): Update.
5274 (add_packet_config_cmd): Update.
5275 (_initialize_remote):
5276 * command.h: Update.
5277 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5278 (do_setshow_command): Update.
5279 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5280 * cli/cli-decode.h: Update.
5281
1cf88de5
MK
52822002-06-15 Mark Kettenis <kettenis@gnu.org>
5283
22ba8cf2
MK
5284 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5285 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5286 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5287 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5288 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5289 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5290
762c5349
MK
5291 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5292 list of DJGPP COFF targets.
5293
091198bb
MK
5294 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5295 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5296 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5297 (FP0_REGNUM): Remove define.
5298 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5299 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5300 (i386_register_virtual_size): Remove protoype.
5301 * i386-tdep.c (i386_register_virtual_size): Removed.
5302 (i386_extract_return_value, i386_store_return_value): Use
5303 FP0_REGNUM instead of NUM_FREGS to determine whether the
5304 floating-point registers are available.
5305 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5306 Adjust for removal of macros mentioned above.
5307
53082002-06-15 Mark Kettenis <kettenis@gnu.org>
5309
fcc9bf01
MK
5310 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5311 comments.
5312 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5313 Remove prototypes.
5314 (supply_gregset, fill_gregset): Remove use of register keyword and
5315 remove declaration for regmap. Use I386_NUM_GREGS instead of
5316 NUM_REGS and NUM_FREGS.
5317 (FPREGSET_FSAVE_OFFSET): Remove.
5318 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5319 NUM_FREGS to determine whether the floating-point registers are
5320 available.
5321
65e78234
MK
5322 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5323 gnu_store_registers): Replace usage of NUM_GREGS with
5324 I386_NUM_GREGS.
5325
98df6387
MK
5326 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5327 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5328 usage of NUM_GREGS with I386_NUM_GREGS.
5329
099a9414
MK
5330 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5331
57976e88
MK
5332 * i386bsd-nat.c: Include "i386-tdep.h".
5333 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5334 I386_NUM_GREGS.
5335
b335f4a6
MK
5336 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5337 and associated comment. They no longer make any sense, since we
5338 don't use this file anymore on Linux.
5339
1cf88de5
MK
5340 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5341 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5342 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5343 elements in these arrays.
5344 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5345 MAX_NUM_REGS.
5346
daa66587
MK
53472002-06-15 Mark Kettenis <kettenis@gnu.org>
5348
5349 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5350 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5351
26e9b323
AC
53522002-06-14 Andrew Cagney <cagney@redhat.com>
5353
5354 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5355 EXTRACT_RETURN_VALUE.
5356 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5357 EXTRACT_STRUCT_VALUE_ADDRESS.
5358 * gdbarch.h, gdbarch.c: Regenerate.
5359
5360 * values.c (value_being_returned): Handle
5361 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5362 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5363
5364 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5365 * arm-tdep.c (arm_gdbarch_init): Update.
5366 * avr-tdep.c (avr_gdbarch_init): Update.
5367 * cris-tdep.c (cris_gdbarch_init): Update.
5368 * d10v-tdep.c (d10v_gdbarch_init): Update.
5369 * ia64-tdep.c (ia64_gdbarch_init): Update.
5370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5371 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5372 * s390-tdep.c (s390_gdbarch_init): Update.
5373 * sh-tdep.c (sh_gdbarch_init): Update.
5374 * s390-tdep.c (s390_gdbarch_init): Update.
5375 * sparc-tdep.c (sparc_gdbarch_init): Update.
5376 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5377 * v850-tdep.c (v850_gdbarch_init): Update.
5378 * vax-tdep.c (vax_gdbarch_init): Update.
5379 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5381
5382 * config/arc/tm-arc.h: Update.
5383 * config/d30v/tm-d30v.h: Update.
5384 * config/fr30/tm-fr30.h: Update.
5385 * config/h8300/tm-h8300.h: Update.
5386 * config/h8500/tm-h8500.h: Update.
5387 * config/i386/tm-i386.h: Update.
5388 * config/i386/tm-ptx.h: Update.
5389 * config/i386/tm-symmetry.h: Update.
5390 * config/i960/tm-i960.h: Update.
5391 * config/m32r/tm-m32r.h: Update.
5392 * config/m68k/tm-delta68.h: Update.
5393 * config/m68k/tm-linux.h: Update.
5394 * config/m68k/tm-m68k.h: Update.
5395 * config/m88k/tm-m88k.h: Update.
5396 * config/mcore/tm-mcore.h: Update.
5397 * config/mips/tm-mips.h: Update.
5398 * config/mn10200/tm-mn10200.h: Update.
5399 * config/pa/tm-hppa.h: Update.
5400 * config/pa/tm-hppa64.h: Update.
5401 * config/sparc/tm-sp64.h: Update.
5402 * config/sparc/tm-sparc.h: Update.
5403 * config/sparc/tm-sparclet.h: Update.
5404 * config/z8k/tm-z8k.h: Update.
5405
5179e78f
AC
54062002-06-14 Andrew Cagney <cagney@redhat.com>
5407
5408 * Makefile.in (i386_linux_tdep_h): Define.
5409 (i386_tdep_h, i387_tdep_h): Define.
5410 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5411 $(i386_tdep_h) and $(i387_tdep_h).
5412 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5413
8201327c
MK
54142002-06-14 Mark Kettenis <kettenis@gnu.org>
5415
edf393ac
MK
5416 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5417 Already covered by the default.
5418
896fb97d
MK
5419 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5420 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5421 (i386_gdbarch_init): Initialize long_double_format and long_double
5422 bit.
5423
8201327c
MK
5424 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5425 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5426 Move these to ...
5427 * config/i386/i386sol2.mh: ... here.
5428 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5429 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5430 (SIGCONTEXT_PC_OFFSET): Remove define.
5431 (IN_SIGTRAMP): Remove define.
5432 * i386-sol2-tdep.c: New file.
5433
5434 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5435 * config/i386/tm-i386nw.h: Removed.
5436
5437 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5438 USE_STRUCT_CONVENTION): Remove defines.
5439 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5440 (get_longjmp_target): Remove prototype.
5441 (IN_SIGTRAMP): Remove define.
5442 (i386bsd_in_sigtramp): Remove prototype.
5443 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5444 function. Update comment accordingly
5445 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5446 (FRAME_SAVED_PC): Remove define.
5447 (i386bsd_frame_saved_pc): Remove prototype.
5448 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5449 GET_LONGJMP_TARGET): Remove defines.
5450 (get_longjmp_target): Remove prototype.
5451 (IN_SIGTRAMP): Remove define.
5452 (i386bsd_in_sigtramp): Remove prototype.
5453 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5454 function. Update comment accordingly
5455 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5456 (FRAME_SAVED_PC): Remove define.
5457 (i386bsd_frame_saved_pc): Remove prototype.
5458 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5459 Remove prototype.
5460 (USE_STRUCT_CONVENTION): Remove prototype.
5461 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5462 declaration.
5463 (_initialize_i386bsd_nat): Revise logic to determine some
5464 constants at compile time when compiling a native GDB. Warn if
5465 things don't match up with what we expect.
5466 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5467 Remove variables.
5468 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5469 to use date stored in `struct gdbarch_tdep'.
5470 (i386bsd_sigcontext_offset): Remove varaible.
5471 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5472 stored in `struct gdbarch_tdep'.
5473 (i386bsd_frame_saved_pc): Make static.
5474 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5475 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5476 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5477 i386fbsd4_sc_pc_offset): New variables.
5478 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5479 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5480 functions.
5481 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5482 functions.
5483 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5484 Modify the value of i386fbsd_sigtramp_start and
5485 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5486 i386fbsd_sigtramp_end.
5487 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5488 function.
5489
5490 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5491 define to i386-linux-tdep.h.
5492 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5493 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5494 defines.
5495 (i386_linux_register_name, i386_linux_register_byte,
5496 i386_linux_register_raw_size): Remove prototypes.
5497 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5498 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5499 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5500 TARGET_WRITE_PC): Remove defines.
5501 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5502 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5503 i386_linux_write_pc): Remove prototypes.
5504 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5505 (get_longjmp_target): Remove prototype.
5506 * i386-linux-tdep.h: New file.
5507 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5508 * i386-linux-tdep.c: Include "i386-tdep.h" and
5509 "i386-linux-tdep.h".
5510 (i386_linux_register_name, i386_linux_register_byte,
5511 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5512 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5513 Make static.
5514 (i386_linux_init_abi): New function.
5515 (_initialize_i386_linux_tdep): New function.
5516
5517 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5518 (i386_saved_pc_after_call): Remove prototype.
5519 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5520 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5521 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5522 (i386_register_name, i386_stab_reg_to_regnum,
5523 i386_dwarf_reg_to_regnum): Remove prototypes.
5524 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5525 SIZEOF_SSE_REGS): Remove defines.
5526 (REGISTER_BYTES): Remove define.
5527 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5528 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5529 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5530 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5531 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5532 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5533 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5534 (get_longjmp_target): Remove prototype.
5535 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5536 (sigtramp_saved_pc): Remove define.
5537 (i386v4_sigtramp_saved_pc): Remove prototype.
5538 * config/i386/tm-go32.h (FRAME_CHAIN,
5539 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5540 (i386go32_frame_saved_pc): Remove prototype.
5541 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5542 (get_longjmp_target): Remove prototype.
5543 * i386-tdep.h: Include "osabi.h".
5544 (enum i386_abi): Removed.
5545 (enum struct_return): New enum.
5546 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5547 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5548 sc_pc_offset members.
5549 (i386_gdbarch_register_os_abi): Remove prototype.
5550 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5551 I386_SSE_NUM_REGS): New defines.
5552 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5553 I386_SSE_SIZEOF_REGS): New defines.
5554 (i386_register_name, i386_register_byte, i386_register_raw_size):
5555 New prototypes.
5556 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5557 (i386bsd_sigtramp_saved_pc): New prototype.
5558 * i386-tdep.c: Don't include "elf-bfd.h".
5559 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5560 i386_frame_chain, i386_saved_pc_after_call): Make static.
5561 (i386_frame_saved_pc): Rewrite to call architecture dependent
5562 function to deal with signal handlers. Make static.
5563 (i386go32_frame_saved_pc): Removed.
5564 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5565 Removed.
5566 (i386_get_longjmp_target): New function.
5567 (default_struct_convention, pcc_struct_convention,
5568 reg_struct_convention, valid_conventions, struct_convention): New
5569 variables.
5570 (i386_use_struct_convention): New function.
5571 (i386v4_sigtramp_saved_pc): Renamed to
5572 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5573 (i386_pc_in_sigtramp): New function.
5574 (i386_abi_names): Removed.
5575 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5576 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5577 Removed.
5578 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5579 i386_gdbarch_register_os_abi): Removed.
5580 (struct i386_abi_handler): Removed.
5581 (i386_abi_handler_list): Removed.
5582 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5583 functions.
5584 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5585 i386_nw_init_abi): New functions.
5586 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5587 Use set_gdbarch_xxx() calls instead of relying on macros for a
5588 number of calls.
5589 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5590 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5591 Register the various architecture variants defined in this file.
5592
ad2f7632
DJ
55932002-06-14 Daniel Jacobowitz <drow@mvista.com>
5594
5595 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5596 (struct main_type): Remove arg_types member. Update comments for
5597 struct field.
5598 (TYPE_ARG_TYPES): Remove.
5599 (TYPE_FN_FIELD_ARGS): Update.
5600 (smash_to_method_type): Update prototype.
5601
5602 * c-typeprint.c (cp_type_print_method_args): Take method type
5603 instead of argument list. Use new argument layout. Simplify.
5604 (c_type_print_args): Use new argument layout. Simplify.
5605 (c_type_print_base): Update call to cp_type_print_method_args.
5606 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5607 argument; use die->type instead. Update call to
5608 smash_to_method_type.
5609 (read_structure_scope): Update call to dwarf2_add_member_fn.
5610 * gdbtypes.c (allocate_stub_method): Update comment.
5611 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5612 Use new argument layout.
5613 (check_stub_method): Use new argument layout. Don't count
5614 void as an argument.
5615 (print_arg_types): Update comments. Use new argument layout.
5616 (recursive_dump_type): Don't print arg_types member.
5617 * hpread.c (hpread_read_struct_type): Use new argument layout.
5618 (fixup_class_method_type): Likewise.
5619 (hpread_type_lookup): Likewise.
5620 * stabsread.c (read_type): Update calls to read_args and
5621 smash_to_method_type.
5622 (read_args): Use new argument layout. Simplify.
5623 * valops.c (typecmp): Use new argument layout. Update parameters
5624 and comments. Simplify.
5625 (hand_function_call): Use new argument layout.
5626 (search_struct_method): Update call to typecmp.
5627 (find_overload_match): Use new argument layout.
5628
6da02953
DJ
56292002-06-13 Daniel Jacobowitz <drow@mvista.com>
5630
5631 * NEWS: Mention multithreaded debug support for gdbserver.
5632
519b2366
DJ
56332002-06-13 Daniel Jacobowitz <drow@mvista.com>
5634
5635 * MAINTAINERS: Mention NEWS.
5636
6c0d6680
DJ
56372002-06-13 Daniel Jacobowitz <drow@mvista.com>
5638
5639 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5640 (struct mips_objfile_private, compare_pdr_entries): New.
5641 (non_heuristic_proc_desc): Read the ".pdr" section if it
5642 is present.
5643
6529d2dd
AC
56442002-06-12 Andrew Cagney <ac131313@redhat.com>
5645
5646 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5647 (arm_debug): New static variable.
5648 (_initialize_arm_tdep): Add ``set debug arm'' command.
5649
26216b98
AC
56502002-06-12 Andrew Cagney <ac131313@redhat.com>
5651
5652 * Makefile.in (sim_arm_h): Define.
5653 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5654 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5655 (arm_register_sim_regno): New function, map an internal REGNUM
5656 onto a simulator register number.
5657 (arm_gdbarch_init): Set register_sim_regno.
5658
814b3ba0
AH
56592002-06-09 Aldy Hernandez <aldyh@redhat.com>
5660
5661 * MAINTAINERS: Add self.
5662
475b0867
JB
56632002-06-11 Jim Blandy <jimb@redhat.com>
5664
919d772c
JB
5665 * source.c (source_info): Mention whether the symtab has
5666 information about preprocessor macros.
5667
475b0867
JB
5668 Call the command `info macro', not `show macro'.
5669 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5670 Fix error message.
5671 (_initialize_macrocmd): Register `info_macro_command' in
5672 `infolist', not `showlist'.
5673
9e364162
DJ
56742002-06-11 Daniel Jacobowitz <drow@mvista.com>
5675
5676 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5677 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5678 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5679 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5680 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5681 unconditionally.
5682 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5683 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5684 (_initialize_mips_tdep): Remove dead code.
5685 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5686 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5687 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5688 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5689 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5690 MIPS_LAST_FP_ARG_REGNUM): Remove.
5691
23aa4c72
ML
56922002-06-11 Michal Ludvig <mludvig@suse.cz>
5693
5694 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5695 (unwind_tmp_obstack_free, parse_frame_info)
5696 (update_context, cfi_read_fp, cfi_write_fp)
5697 (cfi_frame_chain, cfi_init_extra_frame_info)
5698 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5699 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5700
70eb15a4
CV
57012002-06-11 Corinna Vinschen <vinschen@redhat.com>
5702
5703 * v850-tdep.c (v850_type_is_scalar): New function.
5704 (v850_use_struct_convention): Match current gcc implementation
5705 as close as possible.
5706 (v850_push_arguments): Fix stack_offset handling. Don't write
5707 struct_addr into register. This is done by v850_store_struct_return.
5708 (v850_extract_return_value): Care for structs.
5709 (v850_store_return_value): Ditto.
5710 (v850_store_struct_return): Actually write address.
5711
482a4d06
ML
57122002-06-11 Michal Ludvig <mludvig@suse.cz>
5713
5714 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5715 without debug information too.
5716
d855c300
AC
57172002-06-10 Andrew Cagney <ac131313@redhat.com>
5718
5719 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5720 Make multi-arch pure.
5721 * gdbarch.h, gdbarch.c: Re-generate.
5722 * arm-tdep.c (arm_print_float_info): Update.
5723 * arch-utils.h (default_print_float_info): Update.
5724 * arch-utils.c (default_print_float_info): Update.
5725 * infcmd.c (float_info): Update call.
5726
dd12a101
AC
57272002-06-10 Andrew Cagney <ac131313@redhat.com>
5728
5729 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5730 the front of the initialize list.
5731
101dcfbe
AC
57322002-06-10 Andrew Cagney <ac131313@redhat.com>
5733
5734 * infrun.c (struct inferior_status): Replace fields
5735 selected_frame_address and selected_level with field
5736 selected_frame_id.
5737 (save_inferior_status): Update. Use get_frame_id.
5738 (struct restore_selected_frame_args): Delete.
5739 (restore_selected_frame): Update. Use frame_find_by_id.
5740 (restore_inferior_status): Update.
5741
5742 * breakpoint.h (struct breakpoint): Change type of
5743 watchpoint_frame to frame_id.
5744 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5745 call to get_current_frame.
5746 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5747 get_current_frame.
5748 (watchpoint_check): Use frame_find_by_id.
5749
5750 * frame.h (record_selected_frame): Delete declaration.
5751 * stack.c (record_selected_frame): Delete function.
5752
5753 * frame.h (struct frame_id): Define.
5754 (get_frame_id): Declare.
5755 (frame_find_by_id): Declare.
5756 * frame.c (frame_find_by_id): New function.
5757 (get_frame_id): New function.
5758
304270b6
AV
57592002-06-10 Andrey Volkov <avolkov@transas.com>
5760
5761 * ser-e7kpc.c: Fix duplicated define and call of
5762 _initialize_ser_e7000pc
5763
2f2cf184
DJ
57642002-06-09 Daniel Jacobowitz <drow@mvista.com>
5765
5766 * signals/signals.c (target_signal_from_host): Fix #ifdef
5767 SIGRTMIN case.
5768 (do_target_signal_to_host): Likewise.
5769
caaa3122
DJ
57702002-06-09 Daniel Jacobowitz <drow@mvista.com>
5771
5772 * mips-tdep.c (mips_find_abi_section): New function.
5773 (mips_gdbarch_init): Call it.
5774
6ac5df3a
MK
57752002-06-09 Mark Kettenis <kettenis@gnu.org>
5776
5777 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5778 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5779 after Andrew's 2002-06-08 gdbarch change.
5780
82ea117a
MK
57812002-06-09 Mark Kettenis <kettenis@gnu.org>
5782
5783 * i386-linux-nat.c (suppy_gregset): Don't supply
5784 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5785 register cache.
5786 (fill_gregset): Don't fetch it under the same circumstances.
5787
3c25f8c7
AC
57882002-06-09 Andrew Cagney <cagney@redhat.com>
5789
5790 * Makefile.in (callback_h): Define.
5791 (remote_sim_h): Update path to remote-sim.h.
5792 (remote-rdp.o): Add $(callback_h).
5793 (remote-sim.o): Use $(callback_h).
5794 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5795 * remote-rdp.c: Include "gdb/callback.h".
5796
1029b7fa
MK
57972002-06-09 Mark Kettenis <kettenis@gnu.org>
5798
5799 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5800 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5801
616675d3
AC
58022002-06-08 Andrew Cagney <ac131313@redhat.com>
5803
a3efda28
AC
5804 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5805 * rdi-share/serpardr.c: Ditto.
5806 * rdi-share/unixcomm.c: Ditto.
5807 * rdi-share/serdrv.c: Ditto.
5808 * rdi-share/hostchan.h: Ditto.
5809 * rdi-share/hostchan.c: Ditto.
5810 * rdi-share/host.h: Ditto.
5811 * rdi-share/devsw.c: Ditto.
5812
c5f10366
AC
5813 * objfiles.h: Change type of obj_private to void pointer.
5814 * pa64solib.c: Update copyright. Don't include "assert.h", use
5815 strcmp instead of STREQ, use LONGEST, do not use PTR
5816 * somsolib.c: Ditto.
5817
616675d3
AC
5818 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5819 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5820 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5821
e4b415d9
AC
58222002-06-08 Andrew Cagney <ac131313@redhat.com>
5823
5824 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5825 (default_get_saved_register): Delete function.
5826 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5827 generic_unwind_get_saved_register.
5828 * gdbarch.h, gdbarch.c: Re-generate.
5829
ca0d0b52
AC
58302002-06-08 Andrew Cagney <ac131313@redhat.com>
5831
5832 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5833 generic_func_frame_chain_valid.
5834 * gdbarch.h, gdbarch.c: Re-generate.
5835 * blockframe.c (generic_func_frame_chain_valid): Only check
5836 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5837 passing FP to PC_IN_CALL_DUMMY.
5838 Fix PR gdb/360.
5839
76860b5f
AC
58402002-06-08 Andrew Cagney <ac131313@redhat.com>
5841
5842 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5843 (register_gdbarch_data): Initialize init_p.
5844 (gdbarch_data): Initialize data pointer using the init function.
5845 (init_gdbarch_data): Delete function.
5846 (gdbarch_update_p): Update.
5847 (initialize_non_multiarch): Update.
5848 (struct gdbarch): Add field initialized_p.
5849 * gdbarch.h, gdbarch.c: Re-generate.
5850
8dda9770
ML
58512002-06-07 Michal Ludvig <mludvig@suse.cz>
5852
5853 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5854 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5855 better do the things actually here.
5856 * x86-64-tdep.c (x86_64_register_name2nr): New.
5857 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5858 (x86_64_gdbarch_init): Respect the above change.
5859 * x86-64-tdep.h (x86_64_register_name2nr)
5860 (x86_64_register_nr2name): Add prototypes.
5861 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5862
3d79a47c
MS
58632002-06-06 Michael Snyder <msnyder@redhat.com>
5864
7bd91a28
MS
5865 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5866 Delete extra braces and re-indent.
5867 (d10v_store_return_value): Char return values
3d79a47c
MS
5868 must be shifted over by one byte in R0.
5869 (d10v_extract_return_value): Delete extra braces, re-indent.
5870
095a4c96
EZ
58712002-06-06 Elena Zannoni <ezannoni@redhat.com>
5872
5873 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5874 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5875 (d10v_integer_to_address): Rewrite.
5876 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5877 the d10v specific functions which take care of converting to the
5878 correct space.
5879
e8a77ca4
EZ
58802002-06-06 Elena Zannoni <ezannoni@redhat.com>
5881
5882 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5883 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5884
4f2e4a4f
AC
58852002-06-02 Andrew Cagney <ac131313@redhat.com>
5886
5887 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5888 includes.
5889 * config/tm-linux.h: Ditto.
5890 * config/alpha/tm-alphalinux.h: Ditto.
5891 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5892 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5893 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5894 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5895 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5896 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5897 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5898 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5899 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5900 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5901 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5902 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5903 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5904 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5905 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5906 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5907 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5908 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5909 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5910 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5911 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5912 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5913 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5914 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5915 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5916 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5917 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5918 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5919 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5920 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5921 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5922 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5923 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5924 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5925 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5926 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5927 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5928
ae2ab2ce
AS
59292002-05-04 Aidan Skinner <aidan@velvet.net>
5930
5931 * ada-exp.tab.c: New file
5932 * ada-exp.y: New file
5933 * ada-lang.c: New file
5934 * ada-lang.h: New file
5935 * ada-lex.c: New file
5936 * ada-lex.l: New file
5937 * ada-tasks.c: New file
5938 * ada-typeprint.c: New file
5939 * ada-valprint.c: New file
5940
0ddd0135
JT
59412002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5942
5943 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5944 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5945
750fbacc
JT
59462002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5947
5948 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5949 insetead of ppc-linux-tdep.o.
5950 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5951 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5952
df94e18a
AC
59532002-06-02 Andrew Cagney <ac131313@redhat.com>
5954
5955 2002-05-07 Christian Groessler <chris@groessler.org>
5956 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5957 bit register contents for little endian hosts.
5958
1a38ab75
AC
59592002-06-01 Andrew Cagney <ac131313@redhat.com>
5960
5961 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5962 any maintainer.
5963
8b1632ac
AC
59642002-06-01 Andrew Cagney <ac131313@redhat.com>
5965
5966 * gdbarch.h: Regenerate.
5967
627054c8
AC
59682002-06-01 Andrew Cagney <ac131313@redhat.com>
5969
5970 * MAINTAINERS: Add everyone to write-after-approval list.
5971
4f460812
AC
59722002-06-01 Andrew Cagney <ac131313@redhat.com>
5973
5974 * stack.c (frame_info): Use frame_register_unwind instead of
5975 saved_regs. Mention when the SP is on the stack or in a register.
5976
5977 * frame.h (frame_register_unwind_ftype): Define. Document.
5978 (struct frame_info): Add field register_unwind and
5979 register_unwind_cache.
5980 (frame_register_unwind): Declare.
5981 (generic_unwind_get_saved_register): Declare.
5982
5983 * frame.c (frame_register_unwind): New function.
5984 (generic_unwind_get_saved_register): New function.
5985
5986 * blockframe.c (generic_call_dummy_register_unwind): New function.
5987 (frame_saved_regs_register_unwind): New function.
5988 (set_unwind_by_pc): New function.
5989 (create_new_frame): New function.
5990 (get_prev_frame): New function.
5991
de888f76
AC
59922002-05-30 Andrew Cagney <ac131313@redhat.com>
5993
5994 * a29k-share/: Delete directory.
5995 * remote-vx29k.c: Delete file.
5996
2f2c3626
JT
59972002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5998
5999 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6000 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6001
9ce5c36a
JT
60022002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6003
6004 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6005 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6006 (sparc64nbsd-nat.o)
6007 (sparcnbsd-nat.o)
6008 (sparcnbsd-tdep.o): New dependency lists.
6009 * NEWS: Note new UltraSPARC NetBSD native configuration.
6010 * configure.host (sparc64-*-netbsd*): New host.
6011 * configure.tgt (sparc-*-netbsdelf*)
6012 (sparc-*-netbsd*): Set gdb_target to nbsd.
6013 (sparc64-*-netbsd*): New target.
6014 * sparc64nbsd-nat.c: New file.
6015 * sparcnbsd-nat.c: New file.
6016 * sparcnbsd-tdep.c: New file.
6017 * sparcnbsd-tdep.h: New file.
6018 * config/sparc/nbsd.mt: New file.
6019 * config/sparc/nbsd64.mh: New file.
6020 * config/sparc/nbsd64.mt: New file.
6021 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6022 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6023 (HOST_IPC): Remove.
6024 * config/sparc/nbsdaout.mt: Remove.
6025 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6026 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6027 (HOST_IPC): Remove.
6028 * config/sparc/nbsdelf.mt: Remove.
6029 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6030 sparc-nat.c compatiblity defines.
6031 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6032 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6033 * config/sparc/tm-nbsd64.h: New file.
6034 * config/sparc/tm-nbsdaout.h: Remove.
6035 * config/sparc/xm-nbsd.h: Remove.
6036
ef3cf062
JT
60372002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6038
6039 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6040 * sparc-tdep.c: Include osabi.h.
6041 (gdbarch_tdep): Add osabi member.
6042 (_initialize_sparc_tdep): Use gdbarch_register.
6043 (sparc_gdbarch_init): Use generic OS ABI framework.
6044 (sparc_dump_tdep): New function.
6045
ee8ff470
KB
60462002-05-30 Kevin Buettner <kevinb@redhat.com>
6047
6048 * corefile.c (do_captured_read_memory_integer): Return non-zero
6049 result.
6050 (safe_read_memory_integer): Copy result of memory read when
6051 status is non-zero. Also, add comments.
6052
7b112f9c
JT
60532002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6054
6055 * Makefile.in (ppc_tdep_h): Define.
6056 (ppc-linux-nat.o)
6057 (ppc-linux-tdep.o)
6058 (rs6000-tdep.o): Use $(ppc_tdep_h).
6059 (ppc-sysv-tdep.o)
6060 (ppcnbsd-nat.o)
6061 (ppcnbsd-tdep.o): New dependency lists.
6062 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
6063 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6064 (ppc_linux_init_abi): New functions.
7b112f9c
JT
6065 (ppc_sysv_abi_broken_use_struct_convention)
6066 (ppc_sysv_abi_use_struct_convention)
6067 (ppc_sysv_abi_push_arguments): Move to...
6068 * ppc-sysv-tdep.c: ...here.
6069 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6070 * rs6000-tdep.c (process_note_abi_tag_sections)
6071 (get_elfosabi): Remove.
6072 (rs6000_gdbarch_init): Use generic OS ABI framework.
6073 (rs6000_dump_tdep): New function.
6074 (_initialize_rs6000_tdep): Use gdbarch_register.
6075 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6076 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6077 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6078 of ppc-linux-tdep.o.
6079 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6080 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6081 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6082 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6083 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6084 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6085
480dd42a
JB
60862002-05-29 Jim Blandy <jimb@redhat.com>
6087
6088 * macroscope.c (default_macro_scope): Put `void' in empty argument
6089 list.
6090
4182591f
AC
60912002-05-29 Andrew Cagney <ac131313@redhat.com>
6092
6093 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6094 * arch-utils.c: Include "sim-regno.h".
6095 * gdbarch.sh: Don't include "sim-regno.h".
6096 * gdbarch.h, gdbarch.c: Regenerate.
6097 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6098 here.
6099 * arch-utils.h (legacy_register_sim_regno): To here.
6100 * remote-sim.c (legacy_register_sim_regno): Move function from
6101 here.
6102 * arch-utils.c (legacy_register_sim_regno): To here.
6103
8238d0bf
AC
61042002-05-28 Andrew Cagney <ac131313@redhat.com>
6105
6106 * sim-regno.h: New file.
6107 * Makefile.in (sim_regno_h): Define.
6108 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6109 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6110 (legacy_register_sim_regno): New function.
6111 (one2one_register_sim_regno): New function.
6112 (gdbsim_fetch_register): Rewrite.
6113 (gdbsim_store_register): Only store a register when
6114 REGISTER_SIM_REGNO is valid.
6115 * d10v-tdep.c: Include "sim-regno.h".
6116 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6117 (d10v_ts3_register_sim_regno): Ditto.
6118 * gdbarch.sh: Include "sim-regno.h".
6119 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6120 * gdbarch.h, gdbarch.c: Regenerate.
6121 * arch-utils.h (default_register_sim_regno): Delete declaration.
6122 * arch-utils.c (default_register_sim_regno): Delete function.
6123
485721b1
JT
61242002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6125
6126 * ppcnbsd-nat.c: Rewrite.
6127 * ppcnbsd-tdep.c: New file.
6128 * ppcnbsd-tdep.h: New file.
6129 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6130 solib.o, and solib-svr4.o.
6131 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6132 nbsd-tdep.o, and corelow.o.
6133
697f244d
AC
61342002-05-28 Andrew Cagney <ac131313@redhat.com>
6135
6136 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6137 `tr' and `sed'. Mention that `broken' targets are not expected to
6138 build.
6139
f08caad1 61402002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
6141
6142 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6143 Let PC point right after the prologue before looking up symbols.
6144
3139facc
MH
61452002-05-27 Martin M. Hunt <hunt@redhat.com>
6146
6147 * i386-tdep.c (i386_register_virtual_type): Return
6148 builtin_type_vec128i for SSE registers.
6149
6150 * gdbtypes.h (builtin_type_vec128i): Declare.
6151
6152 * gdbtypes.c (build_builtin_type_vec128i): New function.
6153 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6154 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6155 (build_gdbtypes): Initialize new builtin vector types.
6156 (_initialize_gdbtypes): Register new vector types with gdbarch.
6157
6e3ba3b8
JT
61582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6159
6160 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6161 since it has been multi-arch'd.
6162 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6163 Move Alpha and VAX multi-arch news entries to same section
6164 as other multi-arch news.
6165
93d5585d
JT
61662002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6167
6168 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6169 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6170 static. Rename some register numbers to put them in ns32k-tdep
6171 private namespace.
6172 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6173 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6174 functions.
6175 (_initialize_ns32k_tdep): Use gdbarch_register.
6176 * ns32k-tdep.h: New file.
6177 * ns32knbsd-tdep.c: New file.
6178 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6179 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6180 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6181 REGISTER_BYTES, REGISTER_BYTE): Remove.
6182 * config/ns32k/tm-ns32k.h: New file.
6183 * config/ns32k/tm-umax.h: Remove.
6184
efb2c70e
JT
61852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6186
6187 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6188 ns32k_store_struct_return, ns32k_extract_return_value,
6189 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6190 functions.
6191 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6192 ns32k_saved_pc_after_call.
6193 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6194 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6195 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6196 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6197 ns32k_extract_struct_value_address.
6198
7bcc927b
JT
61992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6200
6201 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6202 ns32k_fix_call_dummy): New.
6203 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6204 ns32k_call_dummy_words.
6205 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6206 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6207 CALL_DUMMY_NARGS): Remove.
6208 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6209
78f9d765
JT
62102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6213 ns32k_frame_saved_pc, ns32k_frame_args_address,
6214 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6215 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6216 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6217 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6218 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6219 (BREAKPOINT): Remove..
6220 (FRAME_CHAIN): Define as ns32k_frame_chain.
6221 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6222 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6223 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6224 (FRAME_FIND_SAVED_REGS): Remove.
6225 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6226 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6227 (POP_FRAME): Define as ns32k_pop_frame.
6228
f2c762e0
JT
62292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6230
6231 * ns32k-tdep.c (ns32k_register_byte_32082,
6232 ns32k_register_byte_32382, ns32k_register_raw_size,
6233 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6234 functions.
6235 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6236 ns32k_register_byte_32382.
6237 * config/ns32k/tm-umax.h: Update copyright years.
6238 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6239 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6240 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6241 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6242 (ns32k_get_enter_addr): Fix prototype.
6243
af137673
JT
62442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6245
6246 * ns32k-tdep.c: Update copyright years.
6247 (ns32k_register_name_32082): New function.
6248 (ns32k_register_name_32382): Ditto.
6249 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6250 (REGISTER_NAME): Define as ns32k_register_name_32382.
6251 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6252 (REGISTER_NAME): Define as ns32k_register_name_32082.
6253
a8bc7b56
JB
62542002-05-24 Jim Blandy <jimb@redhat.com>
6255
6256 * dwarf2read.c (free_line_header): Use xfree, not free.
6257
83a45910
JT
62582002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6259
6260 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6261 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6262
0db71247
AC
62632002-05-23 Andrew Cagney <ac131313@redhat.com>
6264
6265 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6266
b9e5e4dd
AC
62672002-05-23 Andrew Cagney <ac131313@redhat.com>
6268
6269 From Ross Alexander at NEC Europe:
6270 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6271
de530e84
MS
62722002-05-23 Michael Snyder <msnyder@redhat.com>
6273
6274 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6275 for input, rather than parse_and_eval_address.
6276
b91b96f4
AC
62772002-05-23 Andrew Cagney <ac131313@redhat.com>
6278
6279 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6280 * Makefile.in (sim_d10v_h): Update definition.
6281
8b279e7a
AC
62822002-05-24 Andrew Cagney <cagney@redhat.com>
6283
6284 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6285 change `2002-05-22 Michael Snyder' below.
6286 (d10v_push_arguments): Ditto.
6287 (d10v_extract_return_value): Ditto.
6288
0a3d0425
JB
62892002-05-23 Jim Blandy <jimb@redhat.com>
6290
6291 * macrotab.c (check_for_redefinition): Don't complain if the new
6292 definition is the same as the previous one. Take more arguments
6293 to allow the comparison.
6294 (macro_define_object, macro_define_function): Pass more arguments
6295 to check_for_redefinition.
6296
78eac43e
MS
62972002-05-22 Michael Snyder <msnyder@redhat.com>
6298
6299 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6300 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6301 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6302 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6303 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6304 Add a temp variable to save a call (and a memory read).
6305 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6306 if possible (so that PC_IN_CALL_DUMMY will work).
6307
9bc1edb8
CV
63082002-05-22 Corinna Vinschen <vinschen@redhat.com>
6309
6310 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6311
005ef3d2
ML
63122002-05-22 Michal Ludvig <mludvig@suse.cz>
6313
6314 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6315 fde->cie_ptr.
6316 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6317 (dwarf2_build_frame_info): Add offset to fde->initial_location
6318 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6319 (execute_stack_op): Change type of 'result' from ULONGEST to
6320 CORE_ADDR.
005ef3d2 6321
fcf4f891
JT
63222002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6323
6324 * config/alpha/tm-nbsd.h: Include solib.h.
6325
cfef91e4
JT
63262002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6327
6328 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6329 assumptions about the host's byte order.
6330
9964235a
JT
63312002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6332
6333 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6334 to dependency list.
6335 * alphanbsd-tdep.c: Include solib-svr4.h.
6336 * shnbsd-tdep.c: Ditto.
6337
9eeef8ef
JT
63382002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6339
6340 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6341 nbsd-tdep.h to dependency list.
6342 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6343 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6344 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6345 nbsdaout.mh and nbsdelf.mh consistently.
6346 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6347 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6348 nbsdaout.mt and nbsdelf.mh consistently.
6349 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6350 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6351 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6352 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6353 a.out shared library stuff from here...
6354 * config/nm-nbsdaout.h: ...to here.
6355 * config/tm-nbsd.h: Remove.
6356 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6357 * config/arm/nbsd.mh: Remove.
6358 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6359 nbsd-tdep.o.
6360 * config/arm/nbsdaout.mh: New file.
6361 * config/arm/nbsdelf.mh: New file.
6362 * config/arm/nm-nbsdaout.h: New file.
6363 * config/i386/nbsd.mh: Remove.
6364 * config/i386/nbsd.mt: Remove.
6365 * config/i386/nbsdaout.mh: New file.
6366 * config/i386/nbsdaout.mt: New file.
6367 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6368 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6369 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6370 i386_register_u_addr): Remove.
6371 * config/i386/nm-nbsdaout.h: New file.
6372 * config/i386/nm-nbsdelf.h: Remove.
6373 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6374 (USE_STRUCT_CONVENTION): Remove.
6375 * config/i386/tm-nbsdaout.h: New file.
6376 * config/i386/tm-nbsdelf.h: Remove.
6377 * config/m68k/nbsd.mh: Remove.
6378 * config/m68k/nbsd.mt: Remove.
6379 * config/m68k/nbsdaout.mh: New file.
6380 * config/m68k/nbsdaout.mt: New file.
6381 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6382 * config/m68k/nm-nbsdaout.h: New file.
6383 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6384 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6385 * config/ns32k/nbsd.mh: Remove.
6386 * config/ns32k/nbsd.mt: Remove.
6387 * config/ns32k/nbsdaout.mh: New file.
6388 * config/ns32k/nbsdaout.mt: New file.
6389 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6390 * config/ns32k/nm-nbsdaout.h: New file.
6391 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6392 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6393 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6394 (SVR4_SHARED_LIBS): Remove.
6395 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6396 * config/sparc/nbsd.mh: Remove.
6397 * config/sparc/nbsd.mt: Remove.
6398 * config/sparc/nbsdaout.mh: New file.
6399 * config/sparc/nbsdaout.mt: New file.
6400 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6401 * config/sparc/nbsdelf.mt: New file.
6402 * config/sparc/nm-nbsdaout.h: New file.
6403 * config/sparc/nm-nbsdelf.h: Remove.
6404 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6405 * config/sparc/tm-nbsdaout.h: New file.
6406
257ce470
JT
64072002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6408
6409 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6410 mipsnbsd-tdep.c
6411 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6412
76a6d5fe
JT
64132002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6414
6415 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6416 shnbsd-nat.c.
6417 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6418
45888261
JT
64192002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * NEWS: Note new MIPS NetBSD native configuration.
6422 * configure.host (mips*-*-netbsd*): New host.
6423 * configure.tgt (mips*-*-netbsd*): New target.
6424 * mipsnbsd-nat.c: New file.
6425 * mipsnbsd-tdep.c: New file.
6426 * mipsnbsd-tdep.h: New file.
6427 * config/mips/nbsd.mh: New file.
6428 * config/mips/nbsd.mt: New file.
6429 * config/mips/nm-nbsd.h: New file.
6430 * config/mips/tm-nbsd.h: New file.
6431
70f80edf
JT
64322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6433
6434 * Makefile.in (SFILES): Add osabi.c.
6435 (COMMON_OBS): Add osabi.o.
6436 (osabi.o): New dependency list.
6437 * osabi.c: New file.
6438 * osabi.h: New file.
6439 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6440
6441 * Makefile.in (alpha_tdep_h): Define and use instead of
6442 alpha-tdep.h.
6443 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6444 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6445 Remove.
6446 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6447 * alpha-tdep.h: Include osabi.h.
6448 (alpha_abi): Remove.
6449 (gdbarch_tdep): Use generic OS ABI framework.
6450 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6451 gdbarch_register_osabi.
6452 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6453 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6454 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6455
6456 * Makefile.in (sh_tdep_h): Add osabi.h.
6457 * sh-tdep.h (sh_osabi): Remove.
6458 (gdbarch_tdep): Use generic OS ABI framework.
6459 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6460 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6461 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6462 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6463
6464 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6465 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6466 gdbarch_register_osabi.
6467 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6468 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6469 (get_elfosabi): Rename to...
6470 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6471 ABI framework support routines.
6472 (arm_gdbarch_init): Use generic OS ABI framework.
6473 (arm_dump_tdep): Likewise.
6474 (_initialize_arm_tdep): Likewise.
6475 * arm-tdep.h: Include osabi.h.
6476 (arm_abi): Remove.
6477 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6478 osabi member.
6479 (arm_gdbarch_register_os_abi): Remove prototype.
6480 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6481 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6482
6483 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6484 * mips-tdep.c: Include osabi.h.
6485 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6486 OS ABI framework.
6487
d194345b
KH
64882002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6489
6490 * h8300-tdep.c: Fix formatting.
6491
70c6b0d1
EZ
64922002-05-20 Elena Zannoni <ezannoni@redhat.com>
6493
6494 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6495 printing vector registers.
6496
165b8e33
AC
64972002-05-19 Andrew Cagney <ac131313@redhat.com>
6498
6499 From Fernando Nasser:
6500 * remote.c (remote_async_open_1): Re-throw the exception when the
6501 connection fails.
6502 (remote_cisco_open): Ditto.
6503 (remote_open_1): Ditto.
6504
36918e70
AC
65052002-05-19 Andrew Cagney <ac131313@redhat.com>
6506
6507 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6508 (remote_start_remote): Add uiout parameter. Pass through to
6509 remote_start_remote_dummy.
6510 (remote_open_1): Use catch_exception instead of catch_errors.
6511 (remote_async_open_1): Ditto.
6512 (remote_cisco_open): Ditto.
6513
ae44c0c4
AC
65142002-05-19 Andrew Cagney <ac131313@redhat.com>
6515
6516 * remote.c (remote_start_remote): Replace PTR with void pointer.
6517 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6518 static.
6519
8efe637d
AC
65202002-05-18 Andrew Cagney <ac131313@redhat.com>
6521
6522 * gdb_indent.sh: Allow the script to be run in the sim directory.
6523
2f1b5984
MK
65242002-05-18 Mark Kettenis <kettenis@gnu.org>
6525
f0f625e2
MK
6526 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6527 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6528
2f1b5984
MK
6529 * corelow.c (core_open): Only call set_gdbarch_from_file if
6530 exec_bfd is NULL.
6531
fc974602
AV
65322002-05-17 Andrey Volkov <avolkov@transas.com>
6533
6534 * h8300-tdep.c: Add support of EXR register
6535 * config/h8300/tm-h8300.h: Ditto.
6536
906709f4
AV
65372002-05-17 Andrey Volkov <avolkov@transas.com>
6538
6539 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6540
6e591d68
AV
65412002-05-17 Andrey Volkov <avolkov@transas.com>
6542
6543 * h8300-tdep.c: Change literal regnums to REGNO.
6544
84f0252a
JB
65452002-05-17 Jim Blandy <jimb@redhat.com>
6546
e0e9281e
JB
6547 * NEWS: Note addition of macro support.
6548
84f0252a
JB
6549 Expand preprocessor macros in C expressions.
6550 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6551 (scan_macro_expansion, scanning_macro_expansion,
6552 finished_macro_expansion): New function declarations.
6553 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6554 variable declarations.
6555 * parser-defs.h (expression_context_pc): New declaration.
6556 * parse.c (expression_context_pc): New variable.
6557 (parse_exp_1): Set expression_context_pc, as well as
6558 expression_context_block.
6559 * c-exp.y (yylex): If we're not already reading the result of a
6560 macro expansion, try to macro-expand the next token. When we're
6561 done scanning a macro expansion, switch back to the mainline text.
6562 Commas and `if's in a macro's expansion don't terminate the input.
6563 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6564 (macro_original_text, macro_expanded_text,
6565 expression_macro_lookup_func, expression_macro_lookup_baton): New
6566 variables.
6567 (scan_macro_expansion, scanning_macro_expansion,
6568 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6569 c_preprocess_and_parse): New functions.
6570 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6571 c_preprocess_and_parse, instead of c_parse.
6572 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6573 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6574
1c509ca8
JR
6575Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6576
6577 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6578 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6579 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6580
2250ee0c
CV
65812002-05-17 Corinna Vinschen <vinschen@redhat.com>
6582
6583 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6584
ab3b8126
JT
65852002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6586
6587 * Makefile.in (sh_tdep_h): Define and use.
6588 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6589 register enum): Move to...
6590 * * sh-tdep.h: ...here.
6591 * sh-tdep.c: Include sh-tdep.h.
6592 * sh3-rom.c: Likewise.
6593 * shnbsd-tdep.c: Likewise.
6594
ed9d4749
MS
65952002-05-16 Michael Snyder <msnyder@redhat.com>
6596
6597 * arm-tdep.c: Spelling fix in comment.
6598
2e276125
JB
65992002-05-16 Jim Blandy <jimb@redhat.com>
6600
6821892e
JB
6601 Add commands for manually expanding macros and showing their
6602 definitions.
6603 * macrocmd.c, macroscope.c, macroscope.h: New files.
6604 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6605 (macroscope_h): New variable.
6606 (HFILES_NO_SRCDIR): Add macroscope.h.
6607 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6608 (macroscope.o, macrocmd.o): New rules.
6609
2e276125
JB
6610 Teach the Dwarf 2 reader to read macro information.
6611 * dwarf2read.c: #include "macrotab.h".
6612 (dwarf_macinfo_buffer): New variable.
6613 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6614 dwarf_macinfo_size.
6615 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6616 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6617 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6618 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6619 dwarf2_macro_spaces_in_definition): New complaints.
6620 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6621 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6622 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6623 the partial symbol table.
6624 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6625 from what's recorded in the partial symbol table.
6626 (read_file_scope): If the compilation unit has a
6627 `DW_AT_macro_info' attribute, read its macro information.
6628 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6629
2f53fe6c
DJ
66302002-05-16 Daniel Jacobowitz <drow@mvista.com>
6631
6632 Fix PR gdb/546
6633 * ser-tcp.c: Don't include <netinet/udp.h>.
6634
2be99286
SC
66352002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6636
6637 * MAINTAINERS: Update my email address.
6638
c9af212b 66392002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6640
6641 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6642 include file of the same name.
6643
bf5f1a52
CV
66442002-05-16 Corinna Vinschen <vinschen@redhat.com>
6645
6646 * configure.tgt: Mark v850 as multi-arched.
6647 * config/v850/tm-v850.h: Remove file.
6648 * config/v850/v850.mt: Eliminate TM_FILE.
6649
435e042a
CV
66502002-05-16 Corinna Vinschen <vinschen@redhat.com>
6651
6652 * v850-tdep.c: Full multi-arch.
6653 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6654 Define GDB_MULTI_ARCH to 2.
6655
9819c6c8
PM
66562002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6657
6658 * p-exp.y (current_type): New static variable.
6659 Carries the type of the expression at the position that is parsed.
6660 (push_current_type, pop_current_type): Two new functions. Used
6661 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6662 (search_field): New static variable. Set to one after parsing a point
6663 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6664 (FIELDNAME): New token. After a point only a token belonging to
6665 current_type type definition is allowed.
6666 (all over token rules): reset and change current_type according
6667 to rules.
6668 (exp '[' rule): insert implicit array index field if
6669 exp is a pascal string type.
6670
3a06899a
CV
66712002-05-16 Corinna Vinschen <vinschen@redhat.com>
6672
6673 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6674 frame info. Use frame_info's saved_regs instead of matching member
6675 in extra_frame_info throughout.
6676 (v850_frame_init_saved_regs): New function.
6677 (v850_init_extra_frame_info): Move most functionality into
6678 v850_frame_init_saved_regs().
6679 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6680 (v850_frame_find_saved_regs): Remove declaration.
6681 (FRAME_FIND_SAVED_REGS): Remove definition.
6682 (v850_frame_init_saved_regs): Add declaration.
6683 (FRAME_INIT_SAVED_REGS): Add definition.
6684
6ed14b0e
CV
66852002-05-16 Corinna Vinschen <vinschen@redhat.com>
6686
6687 * v850-tdep.c: Begin multi-arch'ing v850.
6688 (v850_target_architecture_hook): Remove function.
6689 (v850_gdbarch_init): New function. Add code previously in
6690 v850_target_architecture_hook().
6691 (_initialize_v850_tdep): Don't set target_architecture_hook.
6692 Call register_gdbarch_init() instead.
6693
42725910
DJ
66942002-05-16 Daniel Jacobowitz <drow@mvista.com>
6695
6696 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6697 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6698 (fixup_class_method_type): Likewise.
6699
99d9066e
JB
67002002-05-15 Jim Blandy <jimb@redhat.com>
6701
6702 Add macro structures to GDB's symbol tables. Nobody puts anything
6703 in them yet.
6704 * symtab.h (struct symtab): New member: `macro_table'.
6705 * buildsym.h (pending_macros): New global variable.
6706 * buildsym.c: #include "macrotab.h".
6707 (buildsym_init): Initialize `pending_macros'.
6708 (end_symtab): If we found macro information while reading a CU's
6709 debugging info, do build a symtab structure for it. Make the
6710 symtab point to the macro information, and clear the
6711 `pending_macros' pointer which held it while we were reading the
6712 debug info.
6713 (really_free_pendings): Free any pending macro table.
6714 * objfiles.h (struct objfile): New member: `macro_cache'.
6715 * objfiles.c (allocate_objfile): Set allocate and free functions
6716 for the macro cache's objstack.
6717 (free_objfile): Empty the macro cache's obstack.
6718 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6719 set new allocate and free functions for it.
6720 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6721 free functions for the macro cache's objstack. (Why is this
6722 function building its own objfile?)
6723 * symmisc.c (print_objfile_statistics): Print statistics on the
6724 macro bcache.
6725 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6726
c899585b
RE
67272002-05-15 Richard Earnshaw <rearnsha@arm.com>
6728
6729 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6730 (REGISTER_U_ADDR): Delete definition.
6731 (arm_register_u_addr): Delete declaration.
6732
a6cdd8c5
RE
67332002-05-15 Richard Earnshaw <rearnsha@arm.com>
6734
6735 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6736 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6737
c97dcfc7
AC
67382002-05-14 Andrew Cagney <ac131313@redhat.com>
6739
6740 * regcache.c (register_valid): Revise comments refering to "Not
6741 available" and "unavailable".
6742 * frame.c (frame_register_read): Ditto.
6743 * findvar.c (value_of_register): Ditto.
6744
93021b7d
AC
67452002-05-15 Andrew Cagney <cagney@redhat.com>
6746
6747 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6748 (remote-sim.o): Update dependencies.
6749 (d10v-tdep.o): Specify dependencies.
6750 (sim_d10v_h): Define.
6751
a86bc61c
JB
67522002-05-14 Jim Blandy <jimb@redhat.com>
6753
6754 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6755 * macrotab.c (macro_lookup_inclusion, find_definition,
6756 new_macro_table): Same.
6757
6758 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6759 not `! strcmp ()'. This is a dubious improvement.
6760 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6761
6762 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6763 although it's not necessary, to avoid a warning.
6764
2fdde8f8
DJ
67652002-05-14 Daniel Jacobowitz <drow@mvista.com>
6766
6767 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6768 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6769 TYPE_INSTANCE_FLAGS.
6770 (struct main_type): New.
6771 (struct type): Move most members to struct main_type. Change
6772 cv_type and as_type to new type_chain member. Add instance_flags.
6773 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6774 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6775 (finish_cv_type): Remove prototype.
6776 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6777 Set TYPE_CHAIN.
6778 (alloc_type_instance): New function.
6779 (smash_type): New function.
6780 (make_pointer_type, make_reference_type, make_function_type)
6781 (smash_to_member_type, smash_to_method_type): Call smash_type.
6782 (make_qualified_type): New function.
6783 (make_type_with_address_space): Call make_qualified_type.
6784 (make_cv_type): Likewise.
6785 (finish_cv_type): Remove unnecessary function.
6786 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6787 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6788 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6789 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6790 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6791 * hpread.c (hpread_read_struct_type): Likewise.
6792 * stabsread.c (read_struct_type): Likewise.
6793
843fedf4
EZ
67942002-05-14 Elena Zannoni <ezannoni@redhat.com>
6795
6796 * configure.tgt: Add a catch all sh* target, for cases like
6797 sh[2,3,4]-elf and sh-hms.
6798
05a6c72c
KS
67992002-05-14 Keith Seitz <keiths@redhat.com>
6800
6801 * event-loop.c (create_file_handler): Don't do anything but
6802 update data when we are given a fd which we are already
6803 monitoring.
6804
5d085aaf
ML
68052002-05-14 Michal Ludvig <mludvig@suse.cz>
6806
6807 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6808 (update_context): Use __func__ in warnings.
6809
9db8d71f
DJ
68102002-05-14 Daniel Jacobowitz <drow@mvista.com>
6811
6812 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6813 and tcp_close to net_open and net_close.
6814 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6815 using UDP if requested. Don't try to disable Nagle on UDP
6816 sockets.
6817 * remote.c (remote_serial_open): New function. Warn about UDP.
6818 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6819
5dbc6baa
EZ
68202002-05-13 Elena Zannoni <ezannoni@redhat.com>
6821
6822 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6823
cc3023f7
EZ
68242002-05-13 Elena Zannoni <ezannoni@redhat.com>
6825
6826 * configure.tgt: Remove sh-hms target.
6827 * MAINTAINERS: Don't list sh-hms as a separate target.
6828
ec2bcbe7
JB
68292002-05-13 Jim Blandy <jimb@redhat.com>
6830
6831 Add first preprocessor macro-expansion files.
6832 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6833 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6834 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6835 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6836 (COMMON_OBS): Add macrotab.o, macroexp.o.
6837 (macroexp.o, macrotab.o): New rules.
6838
6d531722
AC
68392002-05-13 Andrew Cagney <ac131313@redhat.com>
6840
6841 * config/m88k/tm-m88k.h: Update copyright.
6842 (m88k_target_write_pc): Declare
6843 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6844 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6845 (SHIFT_INST_REGS): Update definition.
6846 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6847 using old definition of TARGET_WRITE_PC.
6848 * regcache.c (generic_target_write_pc): Delete code handling
6849 NNPC_REGNUM.
6850 * gdbarch.sh (NNPC_REGNUM): Delete.
6851 * gdbarch.h, gdbarch.c: Regenerate.
6852
3e3f2739
RE
68532002-05-13 Richard Earnshaw <rearnsha@arm.com>
6854
6855 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6856 builtin reg number.
6857
0004e5a2
DJ
68582002-05-13 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6861 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6862 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6863 access macros.
6864 * c-typeprint.c (cp_type_print_method_args): Likewise.
6865 (c_type_print_args): Likewise.
6866 * d10v-tdep.c (d10v_push_arguments): Likewise.
6867 (d10v_extract_return_value): Likewise.
6868 * expprint.c (print_subexp): Likewise.
6869 * gdbtypes.c (lookup_primitive_typename): Likewise.
6870 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6871 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6872 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6873 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6874 (TYPE_VECTOR): Likewise.
6875 * hpread.c (hpread_read_struct_type)
6876 (fix_static_member_physnames, fixup_class_method_type)
6877 (hpread_type_lookup): Likewise.
6878 * mdebugread.c (parse_symbol, parse_type): Likewise.
6879 * p-lang.c (is_pascal_string_type): Likewise.
6880 * valops.c (hand_function_call): Likewise.
6881 * x86-64-tdep.c (classify_argument): Likewise.
6882
6883 * hpread.c (hpread_read_function_type)
6884 (hpread_read_doc_function_type): Call replace_type.
6885 * dstread.c (create_new_type): Delete.
6886 (decode_dst_structure, process_dst_function): Call alloc_type.
6887 Use type access macros.
6888
dff95cc7
MK
68892002-05-12 Mark Kettenis <kettenis@gnu.org>
6890
6891 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6892 the're not supported by the current architecture.
6893 (i387_fill_fxsave): Likewise.
6894
bbcd32ad
FF
68952002-05-12 Fred Fish <fnf@redhat.com>
6896
6897 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6898 sect_index_xxx members to index the first slot in section_offsets
6899 if all of the section_offsets are zero.
6900
89cf4787
MK
69012002-05-12 Mark Kettenis <kettenis@gnu.org>
6902
6903 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6904 checked in with last change.
6905
1f77ffc5
MK
69062002-05-12 Mark Kettenis <kettenis@gnu.org>
6907
6908 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6909 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6910 config.sub.
6911
89b8b4a9
DJ
69122002-05-12 Daniel Jacobowitz <drow@mvista.com>
6913
6914 * Makefile.in: Update dependencies.
6915
14a5e767
AC
69162002-05-11 Andrew Cagney <ac131313@redhat.com>
6917
6918 * language.c (local_hex_string_custom): Simplify. Do not depend
6919 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6920
6921 * memattr.c (mem_info_command): Replace calls to
6922 longest_local_hex_string and longest_local_hex_string_custom.
6923 * buildsym.c (make_blockvector): Ditto.
6924 * solib.c (info_sharedlibrary_command): Ditto.
6925 * tracepoint.c (tracepoints_info): Ditto.
6926 * symtab.c (print_msymbol_info): Ditto.
6927
6928 * language.c (local_hex_string): Delete.
6929 (local_hex_string_custom): Delete.
6930 (longest_local_hex_string): Rename to local_hex_string.
6931 (longest_local_hex_string_custom): Rename to
6932 local_hex_string_custom.
6933 * language.h (local_hex_string): Change parameter type to LONGEST.
6934 (local_hex_string_custom): Ditto.
6935 (longest_local_hex_string): Delete declaration.
6936 (longest_local_hex_string_custom): Ditto.
6937
6938 * solib.c: Update copyright.
6939 * memattr.c: Update copyright.
6940
13d01224
AC
69412002-05-11 Andrew Cagney <ac131313@redhat.com>
6942
6943 * arch-utils.h (legacy_register_to_value): Declare.
6944 (legacy_value_to_register): Declare.
6945 (legacy_convert_register_p): Declare.
6946 * arch-utils.c (legacy_register_to_value): New function.
6947 (legacy_value_to_register): New function.
6948 (legacy_convert_register_p): New function.
6949
6950 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6951 (VALUE_TO_REGISTER): Define.
6952 (CONVERT_REGISTER_P): Define.
6953 * gdbarch.h, gdbarch.c: Regenerate.
6954
6955 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6956 VALUE_TO_REGISTER.
6957 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6958 CONVERT_REGISTER_P.
6959
4a1970e4
DJ
69602005-05-11 Daniel Jacobowitz <drow@mvista.com>
6961 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6962
6963 * Makefile.in: Update dependencies for valops.c.
6964 * valops.c: Include "gdb_assert.h".
6965 (typecmp): Skip THIS parameter to methods.
6966 (find_method_list): Remove static_memfuncp argument,
6967 update callers. Check for stub methods.
6968 (find_value_oload_method_list): Don't set *static_memfuncp.
6969 (find_overload_match): Don't check for stub methods. Assert
6970 that methods are not stubbed. Handle static methods.
6971 (value_find_oload_method_list): Remove static_memfuncp argument.
6972 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6973 to the argument list for static stub methods.
6974 * value.h (value_find_oload_method_list): Update prototype.
6975
b2e75d78
AC
69762002-05-11 Andrew Cagney <ac131313@redhat.com>
6977
6978 * arch-utils.h (generic_register_size): Declare.
6979 (generic_register_raw_size, generic_register_virtual_size): Delete
6980 declarations.
6981 * arch-utils.c (generic_register_raw_size): Delete.
6982 (generic_register_size): New function.
6983 (generic_register_virtual_size): Delete.
6984
6985 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6986 default generic_register_size.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6988
6989 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6990 register_virtual_size.
6991 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6992 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6993
451fbdda
AC
69942002-05-11 Andrew Cagney <ac131313@redhat.com>
6995
6996 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6997 * gdbarch.h, gdbarch.c: Regenerate.
6998 * gnu-v3-abi.c: Update copyright.
6999 (vtable_address_point_offset): Update.
7000 (gnuv3_rtti_type): Update.
7001 (gnuv3_baseclass_offset): Update.
7002 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7003 (init_fetch_link_map_offsets): Update.
7004 * remote.c (get_remote_state): Update.
7005
6d2f5cea
DJ
70062002-05-11 Daniel Jacobowitz <drow@mvista.com>
7007
7008 * TODO: Remove value_headof/value_from_vtable_info comment.
7009 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7010 * values.c (value_headof, value_from_vtable_info): Delete.
7011 * value.h (value_from_vtable_info): Delete prototype.
7012
d2324da4
AC
70132002-05-11 Andrew Cagney <ac131313@redhat.com>
7014
7015 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7016 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7017 $(gdb_regex_h).
7018 (gdb_assert_h): Define.
7019 (gdb_wait_h): Define.
7020 (gdb_regex_h): Define.
7021
5c717440
DJ
70222002-05-11 Daniel Jacobowitz <drow@mvista.com>
7023
7024 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7025 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7026
6c7861b3
JT
70272002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7028
7029 * nbsd-tdep.c: Fix comment.
7030
ea5bc2a6
JT
70312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7032
7033 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7034 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7035 (nbsd-tdep.o): New dependency list.
7036 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7037 nbsd-tdep.h.
7038 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7039 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7040 * nbsd-tdep.c: New file.
7041 * nbsd-tdep.h: New file.
7042 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7043 nbsd-tdep.h.
7044 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7045 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7046 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7047 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7048
b28da865
JT
70492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7050
7051 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7052 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7053 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7054 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7055 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7056 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7057
4b8ff1fa
JT
70582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7059
7060 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7061 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7062 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7063 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7064 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7065 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7066 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7067
dfe6eb1f
JT
70682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7069
7070 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7071 fetch_elfcore_registers to...
7072 * i386nbsd-tdep.c: ...here.
7073 (i386nbsd_use_struct_convention): Rename to...
7074 (i386nbsd_aout_use_struct_convention): ...this.
7075 (i386nbsd_supply_reg): New function.
7076 (i386nbsd_fill_reg): New function.
7077 (fetch_core_registers): Use i386nbsd_supply_reg.
7078 (fetch_elfcore_registers): Likewise.
7079 (_initialize_i386nbsd_tdep): New function.
7080 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7081 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7082 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7083 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7084 (i386nbsd_aout_use_struct_convention): ...this.
7085
20cb8cda
JT
70862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7087
7088 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7089 (store_inferior_registers): Use shnbsd_fill_reg.
7090 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7091 sh_nbsd_supply_register): Collapse into...
7092 (shnbsd_supply_reg): ...this.
7093 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7094 (shnbsd_fill_reg): ...this.
7095 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7096 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7097 (fetch_core_registers): Use shnbsd_supply_reg.
7098 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7099 (sh_nbsd_core_fns): Rename to...
7100 (shnbsd_core_fns): ...this.
7101 (sh_nbsd_elfcore_fns): Rename to...
7102 (shnbsd_elfcore_fns): ...this.
7103 (sh_nbsd_init_abi): Rename to...
7104 (shnbsd_init_abi): ...this.
7105 (_initialize_sh_nbsd_tdep): Rename to...
7106 (_initialize_shnbsd_tdep): ...this.
7107 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7108 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7109 sh_nbsd_fill_register): Remove prototypes.
7110 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7111
e750d25e
JT
71122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7113
7114 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7115 (i387-nat.o): Delete dependency list.
7116 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7117 (x86-64-linux-nat.o): Likewise.
7118 * i387-nat.c: Delete file, moving contents to...
7119 * i387-tdep.c: ...here.
7120 * i387-nat.h: Rename...
7121 * i387-tdep.h: ...to this.
7122 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7123 * i386-linux-nat.c: Likewise.
7124 * i386bsd-nat.c: Likewise.
7125 * i386gnu-nat.c: Likewise.
7126 * i386nbsd-nat.c: Likewise.
7127 * i386v4-nat.c: Likewise.
7128 * x86-64-linux-nat.c: Likewise.
7129 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7130 * config/i386/go32.mh (NATDEPFILES): Likewise.
7131 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7132 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7133 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7134 * config/i386/linux.mh (NATDEPFILES): Likewise.
7135 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7136 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7137 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7138 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7139
1aee598a
JT
71402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7141
7142 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7143 (alphanbsd-nat.o): Remove dependency list.
7144 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7145 * alphanbsd-nat.c: Delete. Contents moved to...
7146 * alphanbsd-tdep.c: ...here.
7147 (_initialize_alphanbsd_tdep): Register core functions.
7148 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7149
12bcb0fe
JT
71502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7151
7152 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7153 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7154 (alphanbsd-nat.o): Likewise.
7155 (alphabsd-tdep.o): New dependency list.
7156 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7157 (fill_gregset): Use alphabsd_fill_reg.
7158 (supply_fpregset): Use alphabsd_supply_fpreg.
7159 (fill_fpregset): Use alphabsd_fill_fpreg.
7160 (fetch_inferior_registers): Use struct reg and struct fpreg
7161 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7162 and alphabsd_supply_fpreg.
7163 (store_inferior_registers): Use struct reg and struct fpreg
7164 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7165 and alphabsd_fill_fpreg.
7166 * alphabsd-tdep.c: New file.
7167 * alphabsd-tdep.h: New file.
7168 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7169 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7170 alphabsd_supply_fpreg.
7171 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7172 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7173
361d1df0
EC
71742002-05-11 Eric Christopher <echristo@redhat.com>
7175
7176 * mips-tdep.c (mips_double_register_type): Fix thinko.
7177 (mips_single_register_type): Ditto.
7178 * MAINTAINERS: Add self.
7179
92dd7cee
MK
71802002-05-11 Mark Kettenis <kettenis@gnu.org>
7181
7182 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7183 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7184 right thing on architectures with different endianness and/or
7185 integer sizes.
7186
e27da16d
JT
71872002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7188
7189 From Christian Limpach <chris@Pin.LU>
7190 * configure.in: Change sed expression which comments out
7191 NATDEPFILES to also comment out continuation lines.
7192 * configure: Regenerate.
7193
ddde02bd
EZ
71942002-05-10 Elena Zannoni <ezannoni@redhat.com>
7195
7196 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7197 big patch.
7198
1c922164
EZ
71992002-05-10 Elena Zannoni <ezannoni@redhat.com>
7200
7201 * sh-tdep.c: Include correct file.
7202
283150cd
EZ
72032002-05-10 Elena Zannoni <ezannoni@redhat.com>
7204
7205 New support for sh64-elf (sh5) target.
7206
7207 * configure.tgt: For sh64-elf target, default to sh-elf.
7208
7209 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7210 (struct gdbarch_tdep): Add new fields for new registers and ABI
7211 info.
361d1df0 7212
283150cd
EZ
7213 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7214 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7215 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7216 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7217 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7218 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7219 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7220 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7221 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7222 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7223 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7224 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7225 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7226 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7227 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7228 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7229 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7230 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7231 sign_extend, sh64_nofp_frame_init_saved_regs,
7232 sh64_init_extra_frame_info, sh64_get_saved_register,
7233 sh64_extract_struct_value_address, sh64_pop_frame,
7234 sh64_push_arguments, sh64_extract_return_value,
7235 sh64_store_return_value, sh64_show_media_regs,
7236 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7237 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7238 sh_sh64_register_virtual_type,
7239 sh_sh64_register_convert_to_virtual,
7240 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7241 sh64_register_read, sh64_pseudo_register_write,
7242 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7243 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7244 sh64_do_pseudo_register, sh_compact_do_registers_info,
7245 sh64_do_registers_info, sh_gdbarch_init): New functions.
7246
3117ed25
EZ
72472002-05-10 Elena Zannoni <ezannoni@redhat.com>
7248
7249 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7250
2654e6d4
DJ
72512002-05-10 Daniel Jacobowitz <drow@mvista.com>
7252
7253 * linespec.c (decode_line_1): Check for a double quote after
7254 a filename correctly.
7255
9ab3e532
JB
72562002-05-10 Jim Blandy <jimb@redhat.com>
7257
7258 Properly track the size of the current objfile's .debug_line section.
7259 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7260 (DWARF_LINE_SIZE): New macro.
7261 (dwarf2_build_psymtabs_hard): Record the line section's size in
7262 the partial symbol table.
7263 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7264 symbol table.
7265
126fa72d
PS
72662002-05-10 Petr Sorfa <petrs@caldera.com>
7267
7268 * ia64-tdep.c: Handle breakpoints on L instruction type
7269 in MLX instruction bundle by moving the breakpoint to
7270 the third slot (X instruction type) as L holds only data.
7271
1f077a3e
KB
72722002-05-10 Kevin Buettner <kevinb@redhat.com>
7273
7274 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7275 (process_one_symbol): Complain about discarding local symbols
7276 due to a misplaced N_LBRAC entry.
7277
8120c9d5 72782002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7279
7280 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7281 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7282 decrease the depth we are at, in the case of templates.
361d1df0 7283
67b2c998
DJ
72842002-05-09 Daniel Jacobowitz <drow@mvista.com>
7285
7286 * mips-tdep.c (mips_float_register_type): New function.
7287 (mips_double_register_type): New function.
7288 (mips_print_register): Use them.
7289 (do_fp_register_row): Likewise.
7290
fd326606
DJ
72912002-05-09 Daniel Jacobowitz <drow@mvista.com>
7292
6609d9af 7293 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7294 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7295 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7296
bef35864
MS
72972002-05-09 Michael Snyder <msnyder@redhat.com>
7298
7299 * remote-rdp.c (remote_rdp_can_run): Remove.
7300
c55a3f73
TT
73012002-05-09 Tom Tromey <tromey@redhat.com>
7302
7303 * jv-valprint.c (java_val_print): Handle `char' as a special case
7304 of TYPE_CODE_INT.
7305
b8d5e71d
MS
73062002-05-09 Michael Snyder <msnyder@redhat.com>
7307
7308 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7309 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7310 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7311 str r(0123),[sp,#nn].
361d1df0 7312 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7313 order-independent by placing it in a loop.
7314
e2cd42dd
MS
73152002-05-06 Michael Snyder <msnyder@redhat.com>
7316
7317 * stabsread.c (read_type): Add recognition for new attribute:
7318 "@V;" means that an array type is actually a vector.
7319 This is analogous to the vector flag that's been added to dwarf2.
7320
3ce1502b
MK
73212002-05-09 Mark Kettenis <kettenis@gnu.org>
7322
7323 * i386-tdep.h (i386_abi): New enum.
7324 (struct gdbarch_tdep): Replace os_ident member with abi.
7325 (i386_gdbarch_register_os_abi): New prototype.
7326 * i386-tdep.c (i386_abi_names): New array.
7327 (process_note_abi_tag_sections): Removed.
7328 (process_note_sections): New function.
7329 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7330 (struct i386_abi_handler): New struct.
7331 (i386_abi_handler_list): New variable.
7332 (i386_gdbarch_register_os_abi): New function.
7333 (i386_gdbarch_init): Adapt for the changes given above.
7334
084c156a
DJ
73352002-05-08 Daniel Jacobowitz <drow@mvista.com>
7336
7337 * gregset.h: Say "GNU/Linux".
7338
6599f021
EZ
73392002-05-08 Elena Zannoni <ezannoni@redhat.com>
7340
7341 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7342 (build_gdbtypes): Build builtin_type_v2_float.
7343 (_initialize_gdbtypes): Register new builtin type.
7344
40af4b0c
AC
73452002-05-08 Andrew Cagney <ac131313@redhat.com>
7346
7347 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7348 (clear_gdbarch_swap): New function.
7349 (initialize_non_multiarch): Call.
7350 (gdbarch_update_p): Before calling init(), swap out and clear the
7351 existing architecture.
7352 * gdbarch.c: Regenerate.
7353
4fe84f46
JT
73542002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7355
7356 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7357 alphanbsd-tdep.c.
7358
4015edd1
JT
73592002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7360
7361 * sh-nbsd-nat.c: Rename to...
7362 * shnbsd-nat.c: ...this.
7363 * sh-nbsd-tdep.c: Rename to...
7364 * shnbsd-tdep.c: ...this.
7365 * sh-nbsd-tdep.h: Rename to...
7366 * shnbsd-tdep.h: ...this.
7367 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7368 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7369
0e2bd219
RE
73702002-05-08 Richard Earnshaw <rearnsha@arm.com>
7371
7372 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7373 concatenation for command help messages.
7374
13a38d45
JT
73752002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7376
7377 * NEWS: Note new sh*-*-netbsdelf* configuration.
7378 * configure.host: Set gdb_host_cpu to sh for all sh*.
7379 (sh*-*-netbsdelf*): New host.
7380 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7381 (sh*-*-netbsdelf*): New target.
7382 * sh-nbsd-nat.c: New file.
7383 * sh-nbsd-tdep.c: New file.
7384 * sh-nbsd-tdep.h: New file.
7385 * config/sh/nbsd.mh: New file.
7386 * config/sh/nbsd.mt: New file.
7387 * config/sh/nm-nbsd.h: New file.
7388 * config/sh/tm-nbsd.h: New file.
7389
d658f924
JT
73902002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7391
7392 * sh-tdep.c (sh_osabi_names): Declare.
7393 (process_note_abi_tag_sections): New function.
7394 (get_elfosabi): Ditto.
7395 (sh_gdbarch_register_os_abi): Ditto.
7396 (sh_dump_tdep): Ditto.
7397 _initialize_sh_tdep): Use gdbarch_register to register
7398 sh_gdbarch_init and sh_dump_tdep.
7399 * config/sh/tm-sh.h (sh_osabi): Declare.
7400 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7401
848cfffb
AC
74022002-05-07 Andrew Cagney <ac131313@redhat.com>
7403
7404 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7405 (thumb_scan_prologue): Ditto.
7406 (arm_find_callers_reg): Ditto.
7407 (arm_frame_chain): Ditto.
7408 (arm_init_extra_frame_info): Ditto.
7409 (arm_frame_saved_pc): Ditto.
7410 (arm_pop_frame): Ditto.
7411 (arm_push_return_address): New function.
7412 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7413 call_dummy_location, call_dummy_breakpoint_offset_p,
7414 call_dummy_breakpoint_offset, call_dummy_p,
7415 call_dummy_stack_adjust_p, call_dummy_words,
7416 sizeof_call_dummy_words, call_dummy_start_offset,
7417 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7418 call_dummy_address, push_return_address and push_dummy_frame for
7419 generic dummy frames.
7420
e7d717c0
JT
74212002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7422
7423 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7424 size computation for alloca.
7425 (sh_fp_frame_init_saved_regs): Likewise.
7426
7bbcf283
RE
74272002-05-07 Richard Earnshaw <rearnsha@arm.com>
7428
7429 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7430 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7431 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7432 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7433 * remote-rdp.c (remote_rdp_fetch_register): Use
7434 ARM_MAX_REGISTER_RAW_SIZE.
7435 (remote_rdp_store_register): Likewise.
7436
4657573b
ML
74372002-05-07 Michal Ludvig <mludvig@suse.cz>
7438
361d1df0 7439 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7440 added default labels to switch {} statements.
7441 * x86-64-tdep.c: Ditto.
7442 * x86-64-linux-nat.c: Ditto.
7443
010f3b2f
JT
74442002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7445
7446 * solib.h: Protect against multiple inclusion.
7447
debd256d
JB
74482002-05-06 Jim Blandy <jimb@redhat.com>
7449
9ab3e532
JB
7450 Add first preprocessor macro-expansion files.
7451 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7452 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7453 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7454 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7455 (COMMON_OBS): Add macrotab.o, macroexp.o.
7456 (macroexp.o, macrotab.o): New rules.
7457
debd256d
JB
7458 Separate the job of reading the line number info statement program
7459 header (...expialidocious) out into its own function.
7460 * dwarf2read.c (struct line_head, struct filenames, struct
7461 directories): Replace with...
7462 (struct line_header): New structure, containing the full
7463 contents of the statement program header, including the
7464 include directory and file name tables.
7465 (read_file_scope): If we have line number info, instead of just
7466 calling dwarf_decode_lines to do all the work, call
7467 dwarf_decode_line_header first to get a `struct line_header'
7468 containing the data in the statement program header, and then
7469 pass that to dwarf_decode_lines, which will pick up where that
7470 left off. Be sure to clean up the `struct line_header' object.
7471 (dwarf_decode_line_header, free_line_header, add_include_dir,
7472 add_file_name): New functions.
7473 (dwarf_decode_lines): Move all the code to read the statement
7474 program header into dwarf_decode_line_header. Take the line
7475 header it built as the first argument, instead of the offset to
7476 the compilation unit's line number info. Use the new `struct
7477 line_header' type instead of the old structures. No need to do
7478 cleanups here now, since we don't allocate anything.
7479 (dwarf2_statement_list_fits_in_line_number_section,
7480 dwarf2_line_header_too_long): New complaints.
7481
ac3aafc7
EZ
74822002-05-06 Elena Zannoni <ezannoni@redhat.com>
7483
7484 * gdbtypes.c (init_vector_type): New function.
7485 (build_builtin_type_vec128): Simplify the representation of SIMD
7486 registers.
7487 (build_gdbtypes): Initialize new builtin vector types.
7488 (_initialize_gdbtypes): Register new vector types with gdbarch.
7489 (builtin_type_v4_float, builtin_type_v4_int32,
7490 builtin_type_v8_int16, builtin_type_v16_int8,
7491 builtin_type_v2_int32, builtin_type_v4_int16,
7492 builtin_type_v8_int8): New (renamed) SIMD types.
7493
13e49980
MK
74942002-05-06 Mark Kettenis <kettenis@gnu.org>
7495
7496 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7497 (i387_fill_fxsave): Likewise.
7498
997b20b8
AO
74992002-05-05 Alexandre Oliva <aoliva@redhat.com>
7500
7501 * alpha-tdep.c (alpha_extract_return_value): Don't use
7502 non-constant array size in prototype.
7503
535c96ce
AC
75042002-05-04 Andrew Cagney <ac131313@redhat.com>
7505
7506 From Brian Taylor <briant at model dot com>:
7507 * ui-out.c (ui_out_field_core_addr): Use the function
7508 longest_local_hex_string_custom'to format addresses > 32 bits
7509 wide.
7510
7511 * ui-out.c (ui_out_field_core_addr): Update comment.
7512
bedfa57b
AC
75132002-05-04 Andrew Cagney <ac131313@redhat.com>
7514
7515 * stack.c (select_and_print_frame): Make static. Delete the
7516 parameter `level'.
7517 (func_command): Update call.
7518 (select_frame_command): Delete code computing the frame level.
7519 * frame.h (select_and_print_frame): Delete declaration.
7520
f621c63e
AC
75212002-05-04 Andrew Cagney <ac131313@redhat.com>
7522
7523 * sparc-tdep.c (sparc_get_saved_register): Comment why
7524 get_prev_frame call is safe.
7525
0f7d239c
AC
75262002-05-04 Andrew Cagney <ac131313@redhat.com>
7527
7528 * frame.h (select_frame): Delete level parameter.
7529 * stack.c (select_frame): Update. Use frame_relative_level to
7530 obtain the frame's level.
7531 (select_and_print_frame): Update call.
7532 (select_frame_command): Ditto.
7533 (up_silently_base): Ditto.
7534 (down_silently_base): Ditto.
7535 * ocd.c (ocd_start_remote): Ditto.
7536 * remote-rdp.c (remote_rdp_open): Ditto.
7537 * remote-mips.c (mips_initialize): Ditto.
7538 (common_open): Ditto.
7539 * remote-e7000.c (e7000_start_remote): Ditto.
7540 * m3-nat.c (select_thread): Ditto.
7541 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7542 (child_get_current_exception_event): Ditto.
7543 * varobj.c (varobj_create): Ditto.
7544 (varobj_update): Ditto.
7545 (c_value_of_root): Ditto.
7546 * tracepoint.c (finish_tfind_command): Ditto.
7547 * corelow.c (core_open): Ditto.
7548 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7549 * thread.c (info_threads_command): Ditto.
7550 (switch_to_thread): Ditto.
7551 * infrun.c (normal_stop): Ditto.
7552 (restore_selected_frame): Ditto.
7553 (restore_inferior_status): Ditto.
7554 * breakpoint.c (insert_breakpoints): Ditto.
7555 (watchpoint_check): Ditto.
7556 (bpstat_stop_status): Ditto.
7557 (do_enable_breakpoint): Ditto.
7558 * blockframe.c (flush_cached_frames): Ditto.
7559 (reinit_frame_cache): Ditto.
7560
71d6c7b1
AC
75612002-05-04 Andrew Cagney <ac131313@redhat.com>
7562
7563 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7564 maintainer.
7565
cda6c68a
JB
75662002-05-04 Jim Blandy <jimb@redhat.com>
7567
7568 * gdbtypes.c (replace_type): Doc fix.
7569
5c1c87f0
AC
75702002-05-04 Andrew Cagney <ac131313@redhat.com>
7571
7572 * valprint.c (strcat_longest): Delete commented out function.
7573 Update copyright.
7574
cd9bfe15
AC
75752002-05-04 Andrew Cagney <ac131313@redhat.com>
7576
7577 * MAINTAINERS: Mark a29k as deleted.
7578 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7579 Move new configurations to the top.
7580 * configure.tgt: Remove a29k.
7581 * config/a29k/tm-vx29k.h: Delete.
7582 * config/a29k/vx29k.mt: Delete.
7583 * config/a29k/tm-a29k.h: Delete.
7584 * config/a29k/a29k-udi.mt: Delete.
7585 * config/a29k/a29k.mt: Delete.
7586 * a29k-tdep.c: Delete.
7587 * remote-udi.c: Delete.
7588 * remote-mm.c: Delete.
7589 * remote-eb.c: Delete.
7590 * remote-adapt.c: Delete.
7591 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7592 * config/s390/s390x.mt: Ditto.
7593 * config/s390/s390.mt: Ditto.
7594 * config/sparc/sparclynx.mh: Ditto.
7595 * config/sparc/linux.mh: Ditto.
7596 * config/pa/hppaosf.mh: Ditto.
7597 * config/pa/hppabsd.mh: Ditto.
7598 * config/ns32k/nbsd.mt: Ditto.
7599 * config/mips/vr5000.mt: Ditto.
7600 * config/m68k/sun3os4.mh: Ditto.
7601 * config/m68k/nbsd.mt: Ditto.
7602 * config/m68k/m68klynx.mh: Ditto.
7603 * config/m32r/m32r.mt: Ditto.
7604 * config/i386/x86-64linux.mt: Ditto.
7605 * config/i386/nbsdelf.mt: Ditto.
7606 * config/i386/nbsd.mt: Ditto.
7607 * config/i386/i386lynx.mh: Ditto.
7608
bf0c5130
AC
76092002-05-04 Andrew Cagney <ac131313@redhat.com>
7610
7611 * target.c (debug_print_register): New function. Handle oversize
7612 registers.
7613 (debug_to_fetch_registers): Call.
7614 (debug_to_store_registers): Call.
7615
2ae1c2d2
JB
76162002-05-03 Jim Blandy <jimb@redhat.com>
7617
13a393b0
JB
7618 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7619 (read_type): Doc fix.
7620 * gdbtypes.c (replace_type): Doc fix.
7621
2ae1c2d2
JB
7622 * stabsread.c (multiply_defined_struct): New complaint.
7623 (read_struct_type): If the type we were passed isn't empty, or
7624 incomplete, don't read the new struct type into it; complain,
7625 and return the original type unchanged. Take a new `type_code'
7626 argument, which is the type code for the new type.
7627 (read_type): Rather than storing the type's type code here, pass
7628 it as an argument to read_struct_type, and let that take care of
7629 storing it. That way, we don't overwrite the original type code,
7630 so read_struct_type can use it to decide whether we're overwriting
7631 something we shouldn't.
7632 (complain_about_struct_wipeout): New function.
7633
8de9bdc4
AC
76342002-05-03 Andrew Cagney <ac131313@redhat.com>
7635
7636 * gdbarch.sh: Assert that gdbarch is non-NULL.
7637 * gdbarch.c: Regenerate.
7638
f773fdbb
JM
76392002-05-03 Jason Merrill <jason@redhat.com>
7640
7641 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7642 and return NULL.
7643
0e04a514
ML
76442002-05-03 Michal Ludvig <mludvig@suse.cz>
7645
7646 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7647 (x86_64_dwarf2gdb_regno_map_length),
7648 (x86_64_dwarf2_reg_to_regnum): Added.
7649 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7650 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7651 (_initialize_x86_64_tdep): Synced with the change above.
7652 (x86_64_skip_prologue): Reformulated message.
7653
065432a8
PM
76542002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7655
7656 * f-exp.y: Also use new prev_lexptr variable
7657 to improve error reporting. Based on Michael Snyder
7658 2002-04-24 dated patch to c-exp.y.
7659 * jv-exp.y: Likewise.
7660 * m2-exp.y: Likewise.
7661
a3162708
EZ
76622002-05-02 Elena Zannoni <ezannoni@redhat.com>
7663
7664 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7665 we are dealing with vectors.
7666
03620c38
PM
76672002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7668
7669 * config/m68k/tm-nbsd.h: Obvious fix,
7670 correct machine name.
7671
6604db2e
PM
76722002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7673
7674 * p-typeprint.c (pascal_type_print_base): Add support
7675 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7676
0906b739
PM
76772002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7678
7679 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7680 for fondamental pascal 'char' type.
7681
e2625b33
PM
76822002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7683
7684 * p-lang.h (is_pascal_string_type): Declaration changed,
7685 new sixth argument of type char ** added.
361d1df0 7686 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7687 changed. Args length_pos, length_size, string_pos, char_size
7688 can now be NULL. New argument arrayname set to the field
7689 name of the char array. Return value set to char array
7690 field index plus one.
361d1df0 7691 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7692 is_pascal_string_type function.
7693
cf17c188
AC
76942002-05-02 Andrew Cagney <cagney@redhat.com>
7695
7696 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7697 <cagney@redhat.com> change.
7698 * gdbarch.c: Regenerate.
7699
52bca491
AC
77002002-05-02 Andrew Cagney <cagney@redhat.com>
7701
7702 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7703 before probing for a new one. Detect errorenous gdbarch_init
7704 functions.
7705 * gdbarch.c: Regenerate.
7706
d5e72505
AC
77072002-05-01 Andrew Cagney <cagney@redhat.com>
7708
7709 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7710 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7711 * config/v850/tm-v850.h: Ditto. Update copyright.
7712
af566d9f
AC
77132002-04-30 Andrew Cagney <ac131313@redhat.com>
7714
7715 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7716 current_gdbarch.
7717
880d85fa
MS
77182002-04-30 Michael Snyder <msnyder@redhat.com>
7719
94c30b78
MS
7720 * arm-tdep.c: Whitespace clean-ups.
7721 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7722 should have been removed as part of 4/24 change.
7723
6f5987a6
KB
77242002-04-30 Kevin Buettner <kevinb@redhat.com>
7725
7726 * rs6000-tdep.c: Added comment describing how fpscr register
7727 numbers were chosen.
7728
1a113c93
MS
77292002-04-30 Michael Snyder <msnyder@redhat.com>
7730
7731 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7732
9a6f53fe
EZ
77332002-04-29 Elena Zannoni <ezannoni@redhat.com>
7734
7735 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7736 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7737 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7738
11ed25ac
KB
77392002-04-29 Kevin Buettner <kevinb@redhat.com>
7740
7741 From Louis Hamilton <hamilton@redhat.com>:
7742 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7743 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7744 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7745 not bfd-private xcoff data, to determine wordsize.
7746 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7747
ae232405
AC
77482002-04-29 Andrew Cagney <ac131313@redhat.com>
7749
7750 GDB 5.2 released from 5.2 branch.
7751
91fd20f7
ML
77522002-04-29 Michal Ludvig <mludvig@suse.cz>
7753
7754 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7755 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7756 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7757
2dc5091b
EZ
77582002-04-29 Elena Zannoni <ezannoni@redhat.com>
7759
7760 * rs6000-tdep.c (rs6000_extract_return_value,
7761 rs6000_store_return_value): Handle returning vectors.
7762 (rs6000_gdbarch_init): Use
7763 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7764 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7765 New function.
7766 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7767 vectors.
7768 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7769 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7770
2b9848d8
PM
77712002-04-24 Pierre Muller <ics.u-strasbg.fr>
7772
7773 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7774 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7775 with fprintf_unfiltered (gdb_stderr,...).
7776
f8d17dc5
PM
77772002-04-24 Pierre Muller <ics.u-strasbg.fr>
7778
7779 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7780 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7781 Replace fprintf (stderr,...
7782 with fprintf_unfiltered (gdb_stderr,....
7783 * remote-es.c: Likewise.
7784 * remote-os9k.c: Likewise.
7785 * remote-st.c: Likewise.
7786
2f2f1ad1
AS
77872002-04-28 Andreas Schwab <schwab@suse.de>
7788
7789 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7790 linux-proc.o and gcore.o.
7791
b6779aa2
AC
77922002-04-26 Michal Ludvig <mludvig@suse.cz>
7793
7794 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7795 code without frame pointers.
7796
7e57f5f4
AC
77972002-04-26 Andrew Cagney <ac131313@redhat.com>
7798
7799 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7800 ON_STACK is needed.
7801
2ceb85d0
BE
78022002-04-26 Ben Elliston <bje@redhat.com>
7803
7804 * target.c (do_xfer_memory): Correct reference to the new option
7805 "trust-readonly-sections".
7806
f5f8a009
EZ
78072002-04-26 Elena Zannoni <ezannoni@redhat.com>
7808
7809 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7810 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7811 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7812 vectors.
7813 (read_array_type): Record the fact that this array type is really a
7814 vector (i.e. are passed in by value).
7815
5868c862
JT
78162002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7819 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7820 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7821 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7822 * alpha-linux-tdep.c: Include frame.h.
7823 (alpha_linux_sigcontext_addr): New function.
7824 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7825 alpha_linux_sigcontext_addr.
7826 * alpha-osf1-tdep.c: Include gdbcore.h.
7827 (alpha_osf1_sigcontext_addr): New function.
7828 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7829 alpha_osf1_sigcontext_addr.
7830 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7831 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7832
bfb01f37
AC
78332002-04-26 Andrew Cagney <ac131313@redhat.com>
7834
361d1df0 7835 * stack.c (selected_frame_level):
bfb01f37
AC
7836 (select_frame): Do not set selected_frame_level.
7837 * frame.h (selected_frame_level): Delete declaration.
7838
15813d3f
AC
78392002-04-26 Andrew Cagney <ac131313@redhat.com>
7840
7841 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7842 convert_from_func_ptr-addr when AIX / PowerOpen.
7843
6096c27a
AC
78442002-04-25 Andrew Cagney <ac131313@redhat.com>
7845
7846 * valops.c (hand_function_call): Call
7847 generic_save_call_dummy_addr.
7848 * frame.h (generic_save_call_dummy_addr): Declare.
7849 * blockframe.c (struct dummy_frame): Add fields call_lo and
7850 call_hi.
7851 (generic_find_dummy_frame): Check for PC in range call_lo to
7852 call_hi instead of entry_point_address.
7853 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7854 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7855 (generic_save_call_dummy_addr): New function.
7856
f510d44e
DM
78572002-04-24 David S. Miller <davem@redhat.com>
7858
7859 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7860 sparc_skip_prologue.
7861 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7862 information to find prologue when possible.
7863 (sparc_prologue_frameless_p): Call examine_prologue directly.
7864 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7865 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7866 second argument.
7867 (SKIP_PROLOGUE): Likewise.
7868
15d72a92
JT
78692002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7870
7871 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7872 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7873 indicate that the condition it was testing is always true.
7874 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7875 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7876 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7877
accc6d1f
JT
78782002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7879
7880 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7881 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7882 tdep->jb_pc and tdep->jb_elt_size.
7883 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7884 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7885 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7886 * alpha-nat.c (get_longjmp_target): Remove.
7887 (JB_ELEMENT_SIZE): Ditto.
7888 (JB_PC): Ditto.
7889 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7890 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7891 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7892 to alpha_get_longjmp_target.
7893 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7894 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7895 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7896
1bfdc549
AC
78972002-04-25 Andrew Cagney <ac131313@redhat.com>
7898
7899 * README: Update to GDB 5.2.
7900
1bd316f0
AC
79012002-04-25 Andrew Cagney <ac131313@redhat.com>
7902
7903 * gdbarch.sh (LC_ALL): Set to `c'.
7904
2e5ff58c
TR
79052002-04-25 Theodore A. Roth <troth@verinet.com>
7906
7907 * avr-tdep.c: Ran through gdb_indent.sh.
7908
e33ce519
TR
79092002-04-25 Theodore A. Roth <troth@verinet.com>
7910
7911 * MAINTAINERS: Add myself as AVR maintainer.
7912 * NEWS: Note new target avr.
7913
8818c391
TR
79142002-04-25 Theodore A. Roth <troth@verinet.com>
7915
7916 * Makefile.in: Add support for AVR target.
7917 * configure.tgt: Add support for AVR target.
7918 * avr-tdep.c: New file
7919 * config/avr/avr.mt: New file.
7920
79509c2d
TR
79212002-04-25 Theodore A. Roth <troth@verinet.com>
7922
7923 * MAINTAINERS: Add myself to write-after-approval.
7924
dac8068e
PM
79252002-04-24 Pierre Muller <ics.u-strasbg.fr>
7926
7927 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7928 with fprintf_unfiltered (gdb_stderr,....
7929
25bf3106
PM
79302002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7931
7932 Fix PR gdb/508.
7933 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7934
24467a86
PM
79352002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7936
7937 * p-exp.y: Also use new prev_lexptr variable
7938 to improve error reporting. Based on Michael Snyder
7939 2002-04-24 dated patch to c-exp.y.
7940
95b80706
JT
79412002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7942
7943 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7944 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7945 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7946 to 0.
7947 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7948 and struct value.
7949 (FUNCTION_START_OFFSET): Remove.
7950 (BREAKPOINT): Ditto.
7951
e90cc612
JT
79522002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7953
7954 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7955 * NEWS: Ditto.
7956
6c72f9f9
JT
79572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7958
7959 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7960 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7961 alpha_linux_pc_in_sigtramp.
7962 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7963 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7964 alpha_osf1_pc_in_sigtramp.
7965 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7966 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7967 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7968 alphafbsd_pc_in_sigtramp.
7969 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7970 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7971 alphanbsd_pc_in_sigtramp.
7972 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7973 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7974
5e4f3379
JT
79752002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7976
7977 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7978
da8ca43d
JT
79792002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7980
7981 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7982 alphanbsd-tdep.c.
7983 (alphanbsd-nat.o): New dependency list.
7984 (alphanbsd-tdep.o): Ditto.
7985 * NEWS: Note new native NetBSD/alpha configuration.
7986 * alphanbsd-nat.c: New file.
7987 * alphanbsd-tdep.c: Ditto.
7988 * configure.host (alpha*-*-netbsd*): New host.
7989 * configure.tgt (alpha*-*-netbsd*): New target.
7990 * config/alpha/nbsd.mh: New file.
7991 * config/alpha/nbsd.mt: Ditto.
7992 * config/alpha/nm-nbsd.h: Ditto.
7993 * config/alpha/tm-nbsd.h: Ditto.
7994
36a6271d
JT
79952002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7996
7997 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7998 (alpha-osf1-tdep.o): New dependency list.
7999 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8000 and skip_sigtramp_frame members.
8001 * alpha-linux-tdep.c: Include gdbcore.h.
8002 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8003 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8004 * alpha-osf1-tdep.c: New file.
8005 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8006 alpha-osf1-dep.c.
8007 (alpha_frame_past_sigtramp_frame): New function.
8008 (alpha_dynamic_sigtramp_offset): Ditto.
8009 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8010 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8011 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8012 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8013 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8014 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8015 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8016 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8017 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8018 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8019 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8020 to find_solib_trampoline_target.
8021 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8022 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8023 (SKIP_TRAMPOLINE_CODE): Remove.
8024 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8025 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8026 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8027 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8028 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8029 (PROC_SIGTRAMP_MAGIC): Ditto.
8030 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8031 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8032 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8033 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8034 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8035
2f4bc57b
JT
80362002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8037
8038 * NEWS: Note that Alpha targets are now multi-arch.
8039
665132f9
MS
80402002-04-24 Michael Snyder <msnyder@redhat.com>
8041
8042 * parser-defs.h (prev_lexptr): New external variable.
8043 * parse.c (parse_exp_1): Set prev_lexptr to null before
8044 calling the language-specific parser.
8045 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8046 (yyerror): Use prev_lexptr in error reporting.
8047
32872fa7
DJ
80482002-04-24 Daniel Jacobowitz <drow@mvista.com>
8049
8050 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8051 * gregset.h: If FILL_FPXREGSET is defined, provide
8052 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8053 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8054 is defined, call fill_fpxregset.
8055
57e76fac
MS
80562002-04-24 Roland McGrath <roland@frob.com>
8057
8058 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8059 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8060 (supply_gregset, supply_fpregset): New functions.
8061
8062 * gnu-nat.c (gnu_find_memory_regions): New function.
8063 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8064 (gnu_xfer_memory): Add a cast.
8065
f43845b3
MS
80662002-04-24 Michael Snyder <msnyder@redhat.com>
8067
361d1df0 8068 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
8069 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8070 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 8071 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
8072 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8073 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8074
a0abec03
AC
8075Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8076
8077 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8078 NUM_PSEUDO_REGS can be used.
8079
d7bd68ca
AC
80802002-04-24 Andrew Cagney <ac131313@redhat.com>
8081
8082 * arch-utils.h: Update copyright.
8083
8084 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8085 * gdbarch.h, gdbarch.c: Re-generate.
8086
8087 * inferior.h (IN_SIGTRAMP): Delete definition.
8088 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8089 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8090
8091 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8092 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8093 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8094 (find_proc_framesize): Ditto.
8095 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8096 (alpha_init_extra_frame_info): Ditto.
8097 * infrun.c (handle_inferior_event): Ditto.
8098 (handle_inferior_event): Ditto.
8099 (check_sigtramp2): Ditto.
8100 * blockframe.c (create_new_frame): Ditto.
8101 (get_prev_frame): Ditto.
8102 * ppc-linux-tdep.c: Update comments.
8103 * i386-linux-tdep.c: Update comments.
8104 * breakpoint.c (bpstat_what): Update comment.
8105
4867e41e
DM
81062002-04-24 David S. Miller <davem@redhat.com>
8107
21d83aa5
DM
8108 * i960-tdep.c (register_in_window_p): New function.
8109 (i960_find_saved_register): Use it instead of
8110 REGISTER_IN_WINDOW_P.
8111 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8112
4867e41e
DM
8113 * symtab.h (find_stab_function_addr): Kill extern.
8114 * minsyms.c (find_stab_function_addr): Remove from here...
8115 * dbxread.c: ... to here, and mark it static.
8116
69cdf6a2
DM
81172002-04-20 David S. Miller <davem@redhat.com>
8118
8119 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8120 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8121
5a595886
DM
81222002-04-21 David S. Miller <davem@redhat.com>
8123
8124 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8125 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8126 (vx_write_register): Likewise.
8127
1da1a192
JB
81282002-04-23 J. Brobecker <brobecker@gnat.com>
8129
8130 * source.c (is_regular_file): New function.
8131 (openp): Check wether file to open is a regular file
8132 to avoid opening directories.
8133
baa6f10b
JT
81342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8135
8136 * findvar.c (extract_signed_integer): Cast printf argument
8137 to suppress format warning.
8138 (extract_unsigned_integer): Likewise.
8139 * infcmd.c (registers_info): Likewise.
8140 * top.c (get_prompt_1): Likewise.
8141 * valops.c (value_assign): Likewise.
8142 * valprint.c (print_decimal): Likewise.
8143
b2c4da81
L
81442002-04-22 H.J. Lu (hjl@gnu.org)
8145
8146 * c-exp.y (typebase): Support
361d1df0 8147
b2c4da81
L
8148 [long|long long|short] [signed|unsigned] [int|]
8149
8150 and
8151
8152 signed [long|long long|short] int
8153
f267bd6a
JT
81542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8155
8156 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8157 and vax-tdep.h.
8158 * vax-tdep.h: New file.
8159 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8160 Make several routines static.
8161 (vax_get_saved_register): New function.
8162 (vax_gdbarch_init): New function.
8163 (_initialize_vax_tdep): Register vax_gdbarch_init.
8164 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8165 Remove macros now under the control of gdbarch.
8166
da3c6d4a
MS
81672002-04-22 Michael Snyder <msnyder@redhat.com>
8168
11d3b27d
MS
8169 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8170 Some whitespace and coding standards tweaks.
da3c6d4a 8171
a33f7558
JT
81722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8173
8174 * vax-tdep.c: Include regcache.h.
8175 (vax_call_dummy_words): New.
8176 (sizeof_vax_call_dummy_words): New.
8177 (vax_fix_call_dummy): New function.
8178 (vax_saved_pc_after_call): Ditto.
8179 * config/vax/tm-vax.h: Don't include regcache.h.
8180 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8181 (CALL_DUMMY): Remove.
8182 (CALL_DUMMY_WORDS): Define.
8183 (SIZEOF_CALL_DUMMY_WORDS): Define.
8184 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8185
47a73475
MS
81862002-04-18 Michael Snyder <msnyder@redhat.com>
8187
8188 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8189
52efde73
JT
81902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8191
8192 * vax-tdep.c (vax_frame_chain): New function.
8193 (vax_push_dummy_frame): Ditto.
8194 (vax_pop_frame): Ditto.
8195 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8196 (FRAMELESS_FUNCTION_INVOCATION): Use
8197 generic_frameless_function_invocation_not.
8198 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8199 (POP_FRAME): Use vax_pop_frame.
8200
ea74468c
JT
82012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8202
8203 * vax-tdep.c (vax_store_struct_return): New function.
8204 (vax_extract_return_value): Ditto.
8205 (vax_store_return_value): Ditto.
8206 (vax_extract_struct_value_address): Ditto.
8207 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8208 vax_store_struct_return.
8209 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8210 (STORE_RETURN_VALUE): Use vax_store_return_value.
8211 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8212
5516aa92
JT
82132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8214
8215 * vax-tdep.c (vax_frame_saved_pc): New function.
8216 (vax_frame_args_address_correct): Ditto.
8217 (vax_frame_args_address): Ditto.
8218 (vax_frame_locals_address): Ditto.
8219 (vax_frame_num_args): Move code to be in proximity to
8220 other frame-related functions.
8221 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8222 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8223 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8224 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8225 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8226
36af0b35
L
82272002-04-22 H.J. Lu (hjl@gnu.org)
8228
8229 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8230 includedir.
8231
ab62c900
JT
82322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8233
8234 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8235 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8236 (FRAME_INIT_SAVED_REGS): New macro.
8237
7232b100
JT
82382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8239
8240 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8241
b70d2aee
JT
82422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8243
8244 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8245 where needed.
8246 (fetch_osf_core_registers): Likewise.
8247 (supply_gregset): Likewise.
8248
a0e8a2d1 82492002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8250
a0e8a2d1
JB
8251 * symfile.h (get_section_index): Define.
8252 * symfile.c (get_section_index): New function.
8253 * mdebugread.c (SC_IS_SBSS): New macro.
8254 (SC_IS_BSS): Return true for the scBss storage class only, as
8255 the scSBss storage class refers to the .sbss section.
8256 (parse_partial_symbols): Discard the symbols which associated
8257 section does not exist.
8258 Make sure to use the .sbss section index for symbols which
8259 storage class is scBss, rather than using the .bss section index.
8260
51eb8b08
JT
82612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8262
8263 * vax-tdep.c: Update copyright years.
8264 (vax_register_name): New function.
8265 (vax_register_byte): Ditto.
8266 (vax_register_raw_size): Ditto.
8267 (vax_register_virtual_size): Ditto.
8268 (vax_register_virtual_type): Ditto.
8269 * config/vax/tm-vax.h: Update copyright years.
8270 (REGISTER_NAMES): Remove.
8271 (REGISTER_NAME): Define.
8272 (REGISTER_BYTE): Use vax_register_byte.
8273 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8274 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8275 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8276
6cc1c0a8
AC
82772002-04-21 Andrew Cagney <ac131313@redhat.com>
8278
8279 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8280 declaration
8281 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8282
9319a2fe
DM
82832002-04-21 David S. Miller <davem@redhat.com>
8284
8285 * arch-utils.c (generic_prologue_frameless_p): Kill
8286 SKIP_PROLOGUE_FRAMELESS_P code.
8287 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8288 references.
8289 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8290 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8291 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8292 references.
8293 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8294 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8295 (sparc_gdbarch_init): Pass it to
8296 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8297
e9ed6d01
JT
82982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8299
8300 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8301 (alphabsd-nat.o): New dependency list.
8302
36012033
JT
83032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8304
8305 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8306 alphafbsd-tdep.c.
8307 (alpha-linux-tdep.o): New dependency list.
8308 (alphafbsd-tdep.o): Likewise.
8309
3379287a
JT
83102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8311
8312 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8313 to here...
8314 * alpha-tdep.c: ...from here.
8315 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8316
4bcbd6cb
JT
83172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8318
8319 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8320 prototype from here...
8321 * alpha-tdep.h: ...to here.
8322
b31da25e
AC
83232002-04-21 Andrew Cagney <ac131313@redhat.com>
8324
8325 * frame.h (selected_frame_level): Document as deprecated.
8326 (frame_relative_level): Declare.
8327 * stack.c (frame_relative_level): New function.
8328 (selected_frame_level): Document as deprecated.
8329 (select_frame): Do not set the selected_frame_level.
8330
8331 * stack.c (frame_info, record_selected_frame): Update.
8332 (frame_command, current_frame_command): Update.
8333 (up_silently_base, up_command, down_silently_base): Update.
8334 (down_command): Update.
8335 * inflow.c (kill_command): Update.
8336 * tracepoint.c (finish_tfind_command): Update.
8337 * corelow.c (core_open): Update.
8338 * thread.c (info_threads_command): Update.
8339 (do_captured_thread_select): Update.
8340 * infcmd.c (finish_command): Update.
8341 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8342
9c1d6fe5
JT
83432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8344
8345 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8346
ab89facf
AC
83472002-04-21 Andrew Cagney <ac131313@redhat.com>
8348
8349 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8350 type const.
8351
82a4efa1
JT
83522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8353
8354 * alphafbsd-tdep.c: Update copyright years. Include
8355 alpha-tdep.h.
8356 (alphafbsd_use_struct_convention): Make static.
8357 (alphafbsd_init_abi): New function.
8358 (_initialize_alphafbsd_tdep): New function.
8359 * config/alpha/tm-fbsd.h: Update copyright years.
8360 (USE_STRUCT_CONVENTION): Remove.
8361
44dffaac
JT
83622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8363
8364 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8365 an Alpha ABI variant.
8366 (alpha_abi_handler_list): Declare.
8367 (alpha_gdbarch_register_os_abi): New function.
8368 (alpha_gdbarch_init): Give registered ABI variant handlers a
8369 chance to tweak the gdbarch once we have set up defaults.
8370 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8371
65585be4
JT
83722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8373
8374 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8375 to standard_coerce_float_to_double.
8376 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8377
d9b023cc
JT
83782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8379
8380 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8381 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8382 from gdbarch_tdep rather than a constant.
8383 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8384 the default text address for all Alpha Unix ABIs.
8385 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8386 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8387
dc129d82
JT
83882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8389
8390 * alpha-tdep.h: New file. Includes several Alpha target constants
8391 taken from...
8392 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8393 let gdbarch deal with.
8394 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8395 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8396 to dependency list.
8397 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8398 Alpha target register names.
8399 * alphabsd-nat.c: Likewise.
8400 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8401 Alpha target register names. Make serveral routines static.
8402 (alpha_get_saved_register): New function.
8403 (alpha_abi_names): New.
8404 (process_note_abi_tag_sections): New function.
8405 (get_elfosabi): New function.
8406 (alpha_gdbarch_init): New function.
8407 (alpha_dump_tdep): New function.
8408 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8409
d49d1e0a
AC
84102002-04-21 Andrew Cagney <ac131313@redhat.com>
8411
8412 * frame.c (find_saved_register): Delete #ifdef
8413 HAVE_REGISTER_WINDOWS code.
8414 * config/sparc/tm-sparc.h: Update comments.
8415 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8416
92e8c9ed
AC
84172002-04-21 Andrew Cagney <ac131313@redhat.com>
8418
8419 * i960-tdep.c (i960_find_saved_register): New function.
8420 (i960_get_saved_register): New function.
8421 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8422 (i960_get_saved_register): Declare.
8423 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8424
e1925118
DM
84252002-04-20 David S. Miller <davem@redhat.com>
8426
8427 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8428
29673b29
AC
84292002-04-20 Andrew Cagney <ac131313@redhat.com>
8430
8431 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8432 instead of NUM_PSEUDO_REGS.
8433
6c86dcd5
DM
84342002-04-20 David S. Miller <davem@redhat.com>
8435
8436 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8437 GDB_MULTI_ARCH_PARTIAL
8438 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8439 define, let tm-sp64.h do it.
8440
aa40ec90
JT
84412002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8442
8443 * frame.c (find_saved_register): Avoid a NULL pointer
8444 dereference and actually walk the frame list.
8445
0f79675b
AC
84462002-04-20 Andrew Cagney <ac131313@redhat.com>
8447
8448 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8449 sorted in most most-recent-used order. Document.
8450 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8451
f91305dd 84522002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8453
8454 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8455 instead of ->prev.
8456 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8457 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8458 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8459 instead of ->prev.
8460
73d322b1
EZ
84612002-04-19 Elena Zannoni <ezannoni@redhat.com>
8462
8463 Fix PR gdb/471.
8464 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8465 (build_builtin_type_vec128): Ditto.
8466 (append_composite_type_field): Fix calculation of type length in
8467 union case.
8468
ccd9a834
EZ
84692002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8470
8471 * config/djgpp/README: Update.
8472
8473 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8474 compiler warnings.
8475
a57f9e49
JT
84762002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8477
8478 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8479 (alpha_setup_arbitrary_frame): ...to this.
8480 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8481 for alpha_setup_arbitrary_frame.
8482
f4f9705a
AC
84832002-04-18 Andrew Cagney <cagney@redhat.com>
8484
8485 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8486 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8487
f4f9705a
AC
8488 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8489 * target.h (memory_breakpoint_from_pc): Update declaration.
8490 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8491
8492 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8493 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8494 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8495 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8496 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8497 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8498 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8499 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8500 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8501 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8502 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8503 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8504
8505 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8506 const pointer.
8507 * monitor.c (monitor_insert_breakpoint): Ditto.
8508 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8509
8510 * config/mcore/tm-mcore.h: Update copyright.
8511 * mem-break.c: Ditto.
8512 * xstormy16-tdep.c: Ditto.
8513
29f319b8
PM
85142002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8515
8516 * p-exp.y: Add precedence rule for '^' token.
8517 This removes the shift/reduce conflicts.
8518 Remove the comment concerning these shift/reduce conflicts.
8519
ebeac11a
EZ
85202002-04-18 Elena Zannoni <ezannoni@redhat.com>
8521
8522 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8523 (registers_powerpc_nofp): New register set for processors
8524 without floating point unit.
8525
27c31547
DM
85262002-04-18 David S. Miller <davem@redhat.com>
8527
8528 * MAINTAINERS: Add myself to write-after-approval.
8529
47a73475
MS
85302002-04-17 Michael Snyder <msnyder@redhat.com>
8531
8532 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8533
953836b2
AC
85342002-04-17 Andrew Cagney <ac131313@redhat.com>
8535
8536 * rs6000-tdep.c (frame_initial_stack_address): Use
8537 frame_register_read to read the alloca_reg.
8538
8b0d4340
AC
85392002-04-17 Andrew Cagney <ac131313@redhat.com>
8540
8541 * frame.c (find_saved_register): Find saved registers in the next
8542 not prev frame.
8543 Fix PR gdb/365.
8544
d8864532
AC
85452002-04-17 Andrew Cagney <ac131313@redhat.com>
8546
8547 * gdbarch.sh (LANG): Set to ``c''.
8548
36cc83a3 85492002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8550
36cc83a3 8551 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8552
2f4150cc 85532002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8554
8555 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8556 Update copyright.
8557
628703c6 8558 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8559 Also fix PR gdb/391.
361d1df0 8560
56157b4a
AC
85612002-04-14 Andrew Cagney <ac131313@redhat.com>
8562
8563 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8564 * aclocal.m4, configure: Re-generate.
8565 Fix PR gdb/391.
361d1df0 8566
6d1e3329
EZ
85672002-04-14 Elena Zannoni <ezannoni@redhat.com>
8568
8569 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8570 instead of tm_print_insn.
8571
cb06fa07
EZ
85722002-04-14 Elena Zannoni <ezannoni@redhat.com>
8573
8574 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8575
f208ba17
AC
85762002-04-14 Andrew Cagney <ac131313@redhat.com>
8577
8578 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8579 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8580 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8581
20f01a46
DH
85822002-04-12 Don Howard <dhoward@redhat.com>
8583
8584 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8585 max_user_call_depth.
8586 (init_cmd_lists): Initialize the new value;
8587 * cli/cli-script.c (execute_user_command): Limit the call depth of
8588 user defined commands. This avoids a core-dump when user commands
8589 are infinitly recursive.
8590
a88376a3
KB
85912002-04-12 Kevin Buettner <kevinb@redhat.com>
8592
8593 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8594 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8595 from tdep struct instead of DEFAULT_LR_SAVE.
8596 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8597 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8598 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8599
f2172603
MS
86002002-04-12 Michael Snyder <msnyder@redhat.com>
8601
694f61fb 8602 * Remote.c: Spelling fix.
20fe79c8
MS
8603 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8604 If no symbol found for "sbrk", try "_sbrk".
8605 (make_output_phdrs): Use bfd_section_name.
8606 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8607 * eval.c: Indentation fix-ups.
169a7369
MS
8608 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8609 in case it gets applied to an address that is already
8610 in the instruction space.
de74f71f
MS
8611 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8612 * symfile.c: Fix indentation, long lines.
f2172603
MS
8613 * source.c: White space fix-up.
8614
cda5a58a
AC
86152002-04-12 Andrew Cagney <cagney@redhat.com>
8616
8617 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8618 * frame.c (frame_register_read): New function. Return non-zero on
8619 success.
8620 (read_relative_register_raw_bytes_for_frame): Delete.
8621 (read_relative_register_raw_bytes): Delete.
8622 * frame.h (frame_register_read): Declare.
8623 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8624 * sh-tdep.c: Ditto.
8625 * infcmd.c (do_registers_info): Ditto.
8626 * hppa-tdep.c: Ditto.
8627 * rs6000-tdep.c: Ditto.
8628 * h8500-tdep.c: Ditto.
8629 * mips-tdep.c: Ditto.
8630 * h8300-tdep.c: Ditto.
8631 * z8k-tdep.c: Ditto.
8632
2ea5f656
KB
86332002-04-12 Kevin Buettner <kevinb@redhat.com>
8634
8635 From Jimi X <jimix@watson.ibm.com>:
8636 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8637 64-bit SysV ABI.
8638
27b15785
KB
86392002-04-12 Kevin Buettner <kevinb@redhat.com>
8640
8641 From Jimi X <jimix@watson.ibm.com>:
8642 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8643 bfd info.
8644
5d57ee30
KB
86452002-04-12 Kevin Buettner <kevinb@redhat.com>
8646
8647 From Jimi X <jimix@watson.ibm.com>:
8648 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8649 register sets for these processor variants.
8650
bc1e36ca
DJ
86512002-04-11 Daniel Jacobowitz <drow@mvista.com>
8652
bc1e36ca
DJ
8653 * regformats/reg-ppc.dat: Support FPSCR.
8654
e3f36dbd
KB
86552002-04-11 Kevin Buettner <kevinb@redhat.com>
8656
8657 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8658 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8659 Add fpscr as an invalid/unfetchable register.
8660 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8661 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8662 (fill_fpregset): Add support for register fpscr.
8663 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8664 (fill_gregset): Account for the fact that register ``mq'' might
8665 not exist.
8666 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8667 (registers_power): Add fpscr to register set at slot 71.
8668 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8669 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8670
943c9c25
MS
86712002-04-11 Michael Snyder <msnyder@redhat.com>
8672
8673 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8674 * configure: Regenerate.
8675 * config.in: Regenerate.
8676 * acconfig.h: Add define for _SYSCALL32.
8677 * core-sol2.c: Remove #define _SYSCALL32.
8678 * solib-legacy.c: Remove #define _SYSCALL32.
8679
d8c0a2e7
AC
86802002-04-10 Andrew Cagney <ac131313@redhat.com>
8681
8682 * stack.c (select_frame): Cleanup internal error message, do not
8683 use %p.
8684
7cc19214
AC
86852002-04-10 Andrew Cagney <ac131313@redhat.com>
8686
8687 * stack.c (select_frame): Check that selected_frame and the
8688 specified level are as expected.
8689 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8690 Update copyright.
8691 * frame.h (struct frame_info): Add field `level'. Update
8692 copyright.
8693 Work-in-progress PR gdb/464.
8694
67a2b77e
AC
86952002-04-10 Andrew Cagney <ac131313@redhat.com>
8696
8697 * maint.c (maint_print_section_info): Rename print_section_info.
8698 (print_bfd_section_info, print_objfile_section_info): Update.
8699 * inferior.h (struct gdbarch): Add opaque declaration.
8700 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8701 * gdbarch.h: Regenerate.
8702
8cfda98c
ML
87032002-04-10 Michal Ludvig <mludvig@suse.cz>
8704
8705 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8706 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8707 (kernel_u_size): Added.
8708 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8709 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8710
ca439ad2 87112002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8712
ca439ad2
JI
8713 * valarith.c (find_size_for_pointer_math): New function, either returns
8714 the size for a pointer's target, returns 1 for void *, or errors for
8715 incomplete types.
8716 (value_add, value_sub): use find_size_for_pointer_math.
8717
2f2893d9
DJ
87182002-04-09 Daniel Jacobowitz <drow@mvista.com>
8719
8720 * linux-low.c (linux_look_up_symbols): New hook.
8721 (linux_target_ops): Add linux_look_up_symbols.
8722 * remote-utils.c (decode_address): New function.
8723 (look_up_one_symbol): New function.
8724 * server.c (handle_query): Call target look_up_symbols hook.
8725 * server.h (look_up_one_symbol): Add prototype.
8726 * target.h (struct target_ops): Add look_up_symbols hook.
8727
96cb11df
AC
87282002-04-09 Andrew Cagney <ac131313@redhat.com>
8729
8730 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8731 override FP_REGNUM with frame->fp. Update copyright.
8732 * parse.c (num_std_regs, std_regs): Delete.
8733 (target_map_name_to_register): Do not search std_regs. Update
8734 function description.
8735 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8736 declarations. Update copyright.
8737 Fix PR gdb/251.
361d1df0 8738
97658e92
DJ
87392002-04-09 Daniel Jacobowitz <drow@mvista.com>
8740
8741 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8742 after the last symbol in a block.
8743
6044e3eb
PM
87442002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8745
8746 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8747 is non zero as a found symbol.
8748
0406ec40
AC
87492002-04-08 Andrew Cagney <ac131313@redhat.com>
8750
8751 * findvar.c: Include "builtin-regs.h".
8752 (value_of_register): Call value_of_builtin_reg when applicable.
8753 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8754 (target_map_name_to_register): Call
8755 builtin_reg_map_name_to_regnum.
8756 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8757 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8758 (builtin_regs_h): Define.
8759 (builtin-regs.o): New target.
8760 (findvar.o): Add $(builtin_regs_h).
8761 * builtin-regs.c, builtin-regs.h: New files.
8762 * std-regs.c: New file.
8763 Partial fix for PR gdb/251.
8764
56a6dfb9
KB
87652002-04-08 Kevin Buettner <kevinb@redhat.com>
8766
8767 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8768 it's no longer required.
8769
3a808432
AC
87702002-04-08 Andrew Cagney <ac131313@redhat.com>
8771
8772 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8773
7c40d541
KB
87742002-04-08 Kevin Buettner <kevinb@redhat.com>
8775
8776 From Jimi X <jimix@watson.ibm.com>:
8777 * rs6000-tdep.c (rs6000_software_single_step): Use
8778 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8779 and size. Use target_insert_breakpoint() and
8780 target_remove_breakpoint() to insert and remove breakpoints
8781 instead of explicit memory reads and writes.
8782
cc9836a8
KB
87832002-04-08 Kevin Buettner <kevinb@redhat.com>
8784
8785 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8786 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8787 ELF_OBJECT_FORMAT ifdef.
8788
7495d1dc
KB
87892002-04-08 Kevin Buettner <kevinb@redhat.com>
8790
8791 From Jimi X <jimix@watson.ibm.com>:
8792 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8793
4288e836
KB
87942002-04-08 Kevin Buettner <kevinb@redhat.com>
8795
8796 From Jimi X <jimix@watson.ibm.com>:
8797 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8798 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8799
a4e4e501
MK
88002002-04-07 Mark Kettenis <kettenis@gnu.org>
8801
8802 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8803 s/asprintf/xasprintf/.
8804 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8805
006defba
AC
88062002-04-07 Andrew Cagney <ac131313@redhat.com>
8807
8808 I believe Jeff Law denies responsability for this one:
8809 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8810 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8811 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8812 Work-around for PR gdb/366.
8813
7aa83cac
EZ
88142002-04-07 Elena Zannoni <ezannoni@redhat.com>
8815
8816 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8817 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8818 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8819
cf1fcca1
EZ
88202002-04-07 Elena Zannoni <ezannoni@redhat.com>
8821
8822 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8823 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8824 information.
8825
3f289e6f
AC
88262002-04-07 Andrew Cagney <ac131313@redhat.com>
8827
8828 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8829 maintainer.
8830
129188f6
AC
88312002-04-07 Andrew Cagney <ac131313@redhat.com>
8832
8833 * README (Reporting Bugs in GDB): Document the bug web page as the
8834 prefered way of submitting bugs.
8835 Fix PR gdb/402.
8836
1200cd6e
AC
88372002-04-06 Andrew Cagney <ac131313@redhat.com>
8838
8839 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8840 -1. Update comment.
8841 * gdbarch.h, gdbarch.c: Re-generate.
8842
2853c33c
AS
88432002-04-07 Andreas Schwab <schwab@suse.de>
8844
8845 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8846 buffer to regcache_collect.
8847
c2169756
AC
88482002-04-06 Andrew Cagney <ac131313@redhat.com>
8849
8850 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8851 * gdbarch.c, gdbarch.h: Re-generate.
8852
25f1b008
AC
88532002-04-06 Andrew Cagney <ac131313@redhat.com>
8854
8855 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8856 declaration. Fix -Werror.
8857
59263426
DJ
88582002-04-05 Daniel Jacobowitz <drow@mvista.com>
8859
8860 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8861 * gdbarch.c: Regenerate.
8862
f5db4da3
MS
88632002-04-05 Michael Snyder <msnyder@redhat.com>
8864
80f8a6eb
MS
8865 * breakpoint.c (clear_command): Rewrite middle section to
8866 combine two loops with identical control conditions.
8867 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8868 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8869
ad3dcc5c
L
88702002-04-05 H.J. Lu (hjl@gnu.org)
8871
8872 * solib-svr4.c (bkpt_names): Add "__start".
8873
f32e7a74
AC
88742002-04-04 Andrew Cagney <ac131313@redhat.com>
8875
8876 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8877 as test for 64 bit target.
8878
8227c0ff
AC
88792002-04-05 Andrew Cagney <ac131313@redhat.com>
8880
8881 * h8500-tdep.c (h8500_write_fp): Delete function.
8882 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8883 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8884 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8886 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8887 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8888 (s390_write_fp):
8889 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8890 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8891 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8892 (d10v_write_fp): Delete function.
8893 * inferior.h (write_fp, generic_target_write_fp): Delete
8894 declarations.
8895 * regcache.c (generic_target_write_fp): Delete function.
8896 (write_fp): Delete function.
8897 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8898 * gdbarch.h, gdbarch.c: Regenerate.
8899 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8900 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8901 (sparc64_write_fp): Delete declaration.
8902 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8903 (h8500_write_fp): Delete declaration.
8904
2757dd86
AC
89052002-04-04 Andrew Cagney <ac131313@redhat.com>
8906
8907 * sparc-tdep.c (sparc64_write_fp): Delete.
8908 (sparc_push_dummy_frame): Replace write_fp call with code to store
8909 the FP directly.
8910 (sparc_gdbarch_init): Do not initialize write_fp.
8911
c69255e1
KB
89122002-04-05 Kevin Buettner <kevinb@redhat.com>
8913
8914 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8915 clause.
8916
ae767bfb
JB
89172002-03-29 Jim Blandy <jimb@redhat.com>
8918
8919 * stack.c (get_selected_block): Add new argument `addr_in_block',
8920 used to return the exact code address we used to select the block,
8921 not just the block.
8922 * blockframe.c (get_frame_block, get_current_block): Same.
8923 * frame.h (get_frame_block, get_current_block,
8924 get_selected_block): Update declarations.
8925 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8926 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8927
84d2ac95
MS
89282002-04-05 Michael Snyder <msnyder@redhat.com>
8929
8930 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8931 warning message.
8932
596aa3bf
JB
89332002-04-05 J. Brobecker <brobecker@gnat.com>
8934
8935 * utils.c (xfullpath): New function.
8936 * defs.h (xfullpath): Add declaration.
8937 * source.c (openp): Use xfullpath in place of gdb_realpath to
8938 avoid resolving the basename part of filenames when the
8939 associated file is a symbolic link. This fixes a potential
8940 inconsistency between the filenames known to GDB and the
8941 filenames it prints in the annotations.
8942 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8943 to be able to match a filename with either the real filename, or
8944 the name of any symbolic link to this file.
8945 (lookup_partial_symtab): Ditto.
8946
c02f5703
MS
89472002-04-04 Michael Snyder <msnyder@redhat.com>
8948
8949 * breakpoint.c: Add support for hardware breakpoints in overlays.
8950 (overlay_events_enabled): New state variable.
8951 (insert_breakpoints): Use overlay_events_enabled to decide
8952 whether to attempt to set a breakpoint at the overlay load addr.
8953 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8954 (remove_breakpoint): Use overlay_events_enabled to decide
8955 whether breakpoints need to be removed from overlay load addr.
8956 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8957 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8958 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8959 disable_overlay_breakpoints): Update overlay_events_enabled.
8960
5fb290d7
DJ
89612002-04-04 Daniel Jacobowitz <drow@mvista.com>
8962
8963 * dwarf2read.c (struct function_range): New.
8964 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8965 (check_cu_functions): New.
8966 (read_file_scope): Initialize global function lists.
8967 Call dwarf_decode_line after processing children.
8968 (read_func_scope): Add to global function list.
8969 (dwarf_decode_lines): Call check_cu_functions everywhere
8970 record_line is called. Call record_line with a linenumber
8971 of 0 to mark sequence ends.
8972
7b3fabf0
ML
89732002-04-04 Michal Ludvig <mludvig@suse.cz>
8974
361d1df0 8975 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8976 change sync with glibc.
8977
bce58c09
JB
89782002-04-03 Jim Blandy <jimb@redhat.com>
8979
8980 * configure.in: Call AC_C_INLINE.
8981 * configure: Regenerated.
361d1df0 8982
2fccf04a
DJ
89832002-04-01 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8986 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8987
2d1bfe2e
MK
89882002-03-31 Mark Kettenis <kettenis@gnu.org>
8989
a5941fbf
MK
8990 * NEWS: Mention gcore support on FreeBSD/i386.
8991
a90cd31d
MK
8992 * fbsd-proc.c: New file.
8993 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8994 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8995
2d1bfe2e
MK
8996 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8997 while statement.
8998
9eb6e5a1
JB
89992002-03-29 Jim Blandy <jimb@redhat.com>
9000
9001 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9002 unescaped newlines in string literals, but newer ones don't. So
9003 escape them.
9004
f02df580
MS
90052002-03-26 Michael Snyder <msnyder@redhat.com>
9006 Andrew Cagney <cagney@redhat.com>
9007
361d1df0 9008 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
9009 restore file to memory.
9010 * cli/cli-dump.h: New file.
9011 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 9012 * NEWS: Mention new commands.
f02df580 9013
109f874e
MS
90142002-03-28 Michael Snyder <msnyder@redhat.com>
9015
9016 * symfile.c (symbol_file_add): Move test for null symbols to later.
9017
520f6ade
AC
90182002-03-27 Andrew Cagney <ac131313@redhat.com>
9019
9020 From veksler at il.ibm.com:
9021 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9022 the xstrduped original path.
9023 Fix PR gdb/417.
9024
d4654627
MS
90252002-03-27 Michael Snyder <msnyder@redhat.com>
9026
9027 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9028 * infcmd.c (_initialize_infcmd): Ditto.
9029 * language.c (_initialize_language): Ditto.
9030 * symfile.c (_initialize_symfile): Ditto.
9031 * top.c (_init_main): Ditto.
9032 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9033
6be8bc0c
EZ
90342002-03-27 Elena Zannoni <ezannoni@redhat.com>
9035
9036 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9037 vector registers handling.
9038 (skip_prologue): Handle new AltiVec instructions. Fill in new
9039 fields of frame data.
9040 (frame_get_saved_regs): Fill in information for AltiVec registers.
9041
12af6855
JB
90422002-03-27 Jim Blandy <jimb@redhat.com>
9043
9044 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9045 a function; leave this macro here to invoke that function.
9046 (symbol_init_mangled_name): Declaration for that function.
9047 * symtab.c (symbol_init_mangled_name): New function.
9048
dc672865
AC
90492002-03-27 Andrew Cagney <ac131313@redhat.com>
9050
9051 * valarith.c: Replace strerror with safe_strerror.
9052 * tracepoint.c: Ditto.
9053 * lin-lwp.c: Ditto.
9054 * go32-nat.c: Ditto.
9055 * inflow.c: Ditto.
9056 * gnu-nat.c: Ditto.
9057
d96429cd
AS
90582002-03-27 Andreas Schwab <schwab@suse.de>
9059
9060 * event-top.c (command_line_handler): Remove useless if.
9061
7e336ba1
AJ
90622002-03-27 Andreas Jaeger <aj@suse.de>
9063
9064 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9065 comment.
9066
de220d0f
ML
90672002-03-27 Michal Ludvig <mludvig@suse.cz>
9068
9069 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9070 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9071 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9072 (x86_64_linux_dr_get_status, supply_gregset),
9073 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9074 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9075 (x86_64_register_info_table): Add.
9076 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9077 (x86_64_register_raw_size, x86_64_register_virtual_type),
9078 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9079 general x86_64_register_info_table.
9080 (i386_gdbarch_init): gdbarch_register_bytes is now set
9081 dynamicaly during initialization.
9082 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9083 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 9084
0e98d0a7
DJ
90852002-03-27 Daniel Jacobowitz <drow@mvista.com>
9086
9087 * gdbserver/server.c (main): Call target_signal_to_host_p
9088 and target_signal_to_host on signals received from the remote.
9089 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9090 target_signal_from_host on signals sent to the remote.
9091 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9092 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9093
3130066b
DJ
90942002-03-27 Daniel Jacobowitz <drow@mvista.com>
9095
9096 * signals/signals.c: Include "server.h" in gdbserver build.
9097 (target_signal_from_name): Don't use STREQ.
9098 (_initialize_signals): Likewise. Don't include function in
9099 gdbserver build.
9100
9aedf4f4
DJ
91012002-03-27 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * signals.c: Moved to...
9104 * signals/signals.c: Here.
7e336ba1 9105 * Makefile (signals.o): Update.
9aedf4f4 9106
3fa41cdb
JL
91072002-03-26 Jeff Law (law@redhat.com)
9108
9109 * somread.c (som_symtab_read): Remove some commented out code and
9110 updated related comments. Do not set the minimal symbol table to
9111 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9112 in a dynamic executable.
9113 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9114 where we are unable to find the minimal symbol for the given
9115 PC value.
9116
ee677e8d
MS
91172002-03-25 Jeff Law (law@redhat.com)
9118
9119 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9120
e76e1718
ML
91212002-03-25 Michal Ludvig <mludvig@suse.cz>
9122
9123 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9124
18a642a1
AC
91252002-03-23 Andrew Cagney <ac131313@redhat.com>
9126
9127 * command.h: Update copyright.
9128 (struct cmd_list_element): Replace definition with opaque
9129 declaration.
9130 (enum cmd_types): Document that it will eventually be moved to
9131 cli/cli-decode.h
9132 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9133 (MALLOCED_REPLACEMENT): Delete macro.
9134 * Makefile.in (cli_decode_h): Add $(command_h).
9135 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9136 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9137 * completer.c: Include "cli/cli-decode.h".
9138 * maint.c: Include "cli/cli-decode.h".
9139 * cli/cli-decode.h: Include "command.h".
9140 (enum command_class): Delete.
9141 (enum cmd_types): Comment out.
9142 (enum cmd_auto_boolean): Delete.
9143 (enum var_types): Delete.
9144
b2875cc0
AC
91452002-03-23 Andrew Cagney <ac131313@redhat.com>
9146
9147 * cli/cli-decode.c: Include "gdb_assert.h".
9148 (add_set_or_show_cmd): New static function.
9149 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9150 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9151 all fields, such as func, from the set command.
9152
3b45974e
AC
91532002-03-23 Andrew Cagney <ac131313@redhat.com>
9154
9155 * MAINTAINERS (sh-elf): Change warning flag to -w.
9156
823ca731
AC
91572002-03-23 Andrew Cagney <cagney@redhat.com>
9158
9159 * defs.h (error): Add printf format attribute.
9160 * thread-db.c (thread_from_lwp): Fix error format string.
9161 * stack.c (parse_frame_specification): Ditto.
9162 * cli/cli-decode.c (undef_cmd_error): Ditto.
9163 * scm-lang.c (scm_lookup_name): Ditto.
9164 * tracepoint.c (trace_error): Ditto.
9165 * remote-utils.c (usage): Ditto.
9166 * remote.c (compare_sections_command): Ditto.
9167 Fix PR gdb/328.
9168
0e101458
AC
91692002-03-22 Andrew Cagney <ac131313@redhat.com>
9170
9171 * gdbtypes.c (append_composite_type_field): New function.
9172 (init_composite_type): New function.
9173 * gdbtypes.h (append_composite_type_field): Declare.
9174 (init_composite_type): Ditto.
9175
8e0662df
EZ
91762002-03-22 Elena Zannoni <ezannoni@redhat.com>
9177
9178 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9179 function.
8e0662df
EZ
9180 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9181 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9182 structure returning convention for SYSV ABI case, but not
9183 for GNU/Linux, FreeBSD, or NetBSD.
9184
3121eff0
DJ
91852002-03-22 Daniel Jacobowitz <drow@mvista.com>
9186
9187 * symtab.h (lookup_block_symbol): Add mangled_name argument
9188 to prototype.
9189
9190 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9191 with new mangled_name argument.
9192 * linespec.c (decode_line_1): Likewise.
9193 * valops (value_of_this): Likewise.
9194 * symtab.c (lookup_transparent_type): Likewise.
9195 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9196 (lookup_symbol): If we are given a mangled name, pass it down
9197 to lookup_symbol_aux.
9198 (lookup_block_symbol): If we are given a mangled name to check
9199 against, only return symbols which match it.
9200
349b409f
CF
92012002-03-22 Christopher Faylor <cgf@redhat.com>
9202
9203 * win32-nat.c (child_create_inferior): Check for proper shell to use
9204 here, in case the user changes it on the fly.
9205 (_initialize_inftarg): Remove shell path considerations.
9206
2a873819
EZ
92072002-03-21 Elena Zannoni <ezannoni@redhat.com>
9208
9209 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9210 for gdbarch_max_register_raw_size and max_register_virtual_size.
9211 Adjust copyright year.
9212
a1b9830c
DJ
92132002-03-21 Daniel Jacobowitz <drow@mvista.com>
9214
9215 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9216 in a function to cover the entire beginning of the function
9217 as well if it does not already.
9218
8b5790f2
TR
92192002-03-21 Tom Rix <trix@redhat.com>
9220
9221 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9222 (rs6000_ptrace64): Renamed from ptrace64.
9223
bdbe5747
MH
92242002-03-20 Martin M. Hunt <hunt@redhat.com>
9225
9226 * gdbserver/remote-utils.c (remote_open): Don't call
9227 getprotobyname, we're all using TCP here so just use
9228 IPPROTO_TCP.
7e336ba1 9229 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9230
92312002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9232
bdbe5747
MH
9233 * regcache.c (_initialize_regcache): No need to call
9234 build_regcache() at this time; it gets called whenever
9235 the gdbarch changes.
9236
7781cd62
DB
92372002-03-20 David O'Brien <obrien@FreeBSD.org>
9238
9239 * sparc-nat.c: Include sys/param.h where possible.
9240
f65ca430
DJ
92412002-03-20 Daniel Jacobowitz <drow@mvista.com>
9242
9243 Fix PR gdb/422.
9244 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9245 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9246 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9247 complex types.
9248 * stabsread.c (rs6000_builtin_type): Likewise.
9249 (read_sun_floating_type): Likewise.
9250
0c867556
PS
92512002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9252
9253 * stabsread.c (read_member_functions): Remove skip code for duplicate
9254 constructor/destructor methods. Use standard parsing for these
9255 methods and just do not chain them to the list of methods after
9256 parsing.
9257
12b9c64f
AO
92582002-03-19 Alexandre Oliva <aoliva@redhat.com>
9259
9260 * coffread.c: Remove redundant static declarations. Replace
9261 occurrences of `PTR' with `void *'.
9262 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9263 * top.h (quit_cover): Likewise.
9264 * defs.h (catch_errors): Likewise.
9265
349c5d5f
AC
92662002-03-18 Andrew Cagney <ac131313@redhat.com>
9267
9268 * defs.h (XMALLOC): Define.
9269 * gdb-events.sh (XMALLOC): Delete macro.
9270 * gdb-events.c, gdb-events.h: Regenerate.
9271 * gdbarch.sh (XMALLOC): Delete macro.
9272 * gdbarch.c: Regenerate.
9273 * serial.c (XMALLOC): Delete macro.
9274 * ui-file.c (XMALLOC): Ditto.
9275 * ser-unix.h (XMALLOC): Ditto.
9276 * sh-tdep.c (XMALLOC): Ditto.
9277 * ui-out.c (XMALLOC): Ditto.
9278 * utils.c (XMALLOC): Ditto.
9279 * i386-tdep.c (XMALLOC): Ditto.
9280 * gdb-events.c (XMALLOC): Ditto.
9281 * d10v-tdep.c (XMALLOC): Ditto.
9282 * cli-out.c (XMALLOC): Ditto.
9283
9284 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9285 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9286 * ui-file.c, ui-out.c: Ditto.
9287
7d0766f3
AC
92882002-03-18 Andrew Cagney <ac131313@redhat.com>
9289
9290 * command.h (struct cmd_list_element): Add field context.
9291 (set_cmd_context, get_cmd_context): Declare.
9292 * cli/cli-decode.h: Ditto.
9293 * cli/cli-decode.c (get_cmd_context): New function.
9294 (set_cmd_context): New function.
9295 (add_cmd): Initialize context.
9296 Part of fixing PR gdb/145 and PR gdb/146.
9297
5913bcb0
AC
92982002-03-17 Andrew Cagney <ac131313@redhat.com>
9299
1868c04e
AC
9300 * cli/cli-decode.c (cmd_type): New function.
9301 * command.h (cmd_type): Declare.
9302 * infrun.c (set_schedlock_func): Call function cmd_type.
9303 * kod.c (kod_set_os): Call cmd_type.
9304 * cris-tdep.c (cris_version_update): Use function cmd_type.
9305 (cris_mode_update, cris_abi_update): Ditto.
9306
5913bcb0
AC
9307 * command.h: (execute_cmd_post_hook): Declare.
9308 (execute_cmd_pre_hook): Declare.
9309 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9310 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9311 functions. Execute pre/post hook while ensuring that afterwords
9312 hook_in is cleared.
9313 * top.c (execute_command): Use execute_cmd_post_hook, and
9314 execute_cmd_pre_hook to execute pre/post commands.
9315 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9316 hook_stop_stub.
9317 (hook_stop_stub): Call execute_cmd_pre_hook.
9318
b51450c9
AC
93192002-03-17 Andrew Cagney <ac131313@redhat.com>
9320
9321 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9322 set'' and this leads to a core dump. Move xstrdup of
9323 operating_system to after check that it is not NULL.
9324
f66c9f11
AC
93252002-03-17 Andrew Cagney <ac131313@redhat.com>
9326
8e694ecf
AC
9327 * kod.c (kod_set_os): Remove unnecessary check that
9328 ``command->type'' is set_cmd.
9329
f66c9f11
AC
9330 * valprint.c (set_input_radix): Use input_radix.
9331 (set_output_radix): Use output_radix.
9332 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9333 isn't reverted.
9334
9d01611c
AC
93352002-03-16 Andrew Cagney <ac131313@redhat.com>
9336
9337 * value.h (struct value): Delete field ``substring_addr''. Change
9338 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9339 force_core_addr_align and force_pointer_aligh.
9340
9341 * value.h (struct value): Fix typo in above change.
9d01611c 9342
4156bb53
PS
93432002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9344
9345 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9346 to fix internal_error from ``maintenance print architecture''.
9347
0e5e3ea6
PS
93482002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9349
9350 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9351 for gcc versions after gcc-2.8.1.
9352
9b013045
PS
93532002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9354
9355 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9356 for method resolution. Restore adjustment of ``this'' pointer after
9357 calling value_struct_elt, which was accidentally removed during the
9358 HP merge.
9359
376c9600
AC
93602002-03-15 Andrew Cagney <ac131313@redhat.com>
9361
9362 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9363 value_of_register.
9364 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9365 get_saved_register.
9366 * value.h (value_of_register): Update.
9367
a4db0f07
RH
93682002-03-14 Richard Henderson <rth@redhat.com>
9369
9370 * configure.in: Detect declaration for canonicalize_file_name.
9371 * utils.c (canonicalize_file_name): Declare, if needed.
9372 (gdb_realpath): Prefer realpath if available and usable.
9373 * config.in, configure: Rebuild.
9374
96383835
RH
93752002-03-14 Richard Henderson <rth@redhat.com>
9376
9377 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9378 a constant array bound.
9379
9380 * MAINTAINERS: Add myself to write-after-approval.
9381
75245b24
MS
93822002-03-14 Michael Snyder <msnyder@redhat.com>
9383
9384 * symfile.c (syms_from_objfile): Return immediately if no syms.
9385 (symbol_file_add): Return immediately if no syms.
9386 (find_sym_fns): Return immediately if no syms.
9387
e641a1ca
ML
93882002-03-13 Michal Ludvig <mludvig@suse.cz>
9389
9390 * gdbserver/remote-util.c (remote_open): Print remote-side's
9391 IP address when remote debugging over the network.
7e336ba1 9392
df08bfec
DB
93932002-03-12 David O'Brien <obrien@FreeBSD.org>
9394
9395 * config/sparc/fbsd.mh: Fix copyright.
9396 * config/sparc/fbsd.mt: Likewise.
9397
9a57864f
RE
93982002-03-11 Richard Earnshaw <rearnsha@arm.com>
9399
9400 * MAINTAINERS: Fix typo in name of gdb warnings option.
9401 (x86-64): Fix formating so that this can be parsed by awk.
9402
dd7bf85e
DJ
94032002-03-10 Daniel Jacobowitz <drow@mvista.com>
9404
9405 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9406 * defs.h: Include "gdb/signals.h".
9407 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9408
33a0a2ac
ML
94092002-03-10 Michal Ludvig <mludvig@suse.cz>
9410
9411 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9412 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9413 from x86-64-tdep.h
9414
dd824b04
DJ
94152002-03-10 Daniel Jacobowitz <drow@mvista.com>
9416 Don Howard <dhoward@redhat.com>
9417
9418 * mips-tdep.c (ST0_FR): Define.
9419 (mips2_fp_compat): New function, temporarily disabled.
9420 (mips_read_fp_register_single): New function.
9421 (mips_read_fp_register_double): New function.
9422 (mips_print_register): Use them.
9423 (do_fp_register_row): Likewise.
9424
6a41ff59
AC
94252002-03-09 Andrew Cagney <ac131313@redhat.com>
9426
9427 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9428 approval''.
9429
4ea09c10
PS
94302002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9431
9432 * stabsread.c (read_member_functions): Fix is_stub test for
9433 static member functions, improve comment.
9434
6ccc741d
RE
94352002-03-07 Richard Earnshaw <rearnsha@arm.com>
9436
9437 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9438 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9439 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9440 commands that set boolean values.
9441 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9442 (arm_rdi_resume): Always initialize PC.
9443 (arm_rdi_open): Don't use rslt as a boolean.
9444 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9445 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9446 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9447 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9448
438013df
AO
94492002-03-06 Alexandre Oliva <aoliva@redhat.com>
9450
9451 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9452 * configure: Rebuilt.
9453
70ed8774
SC
94542002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9455
9456 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9457 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9458
5ba2abeb
AC
94592002-03-06 Andrew Cagney <ac131313@redhat.com>
9460
9461 * cli/cli-decode.c (set_cmd_completer): New function.
9462 * command.h (set_cmd_completer): Declare.
9463 * cli/cli-decode.h (set_cmd_completer): Ditto.
9464
9465 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9466 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9467 * win32-nat.c (_initialize_inftarg): Ditto.
9468 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9469 * proc-api.c (_initialize_proc_api): Ditto.
9470 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9471 * source.c (_initialize_source): Ditto.
9472 * exec.c (_initialize_exec): Ditto.
9473 * solib.c (_initialize_solib): Ditto.
9474 * top.c (init_main): Ditto.
9475 * tracepoint.c (_initialize_tracepoint): Ditto.
9476 * symfile.c (_initialize_symfile): Ditto.
9477 * printcmd.c (_initialize_printcmd): Ditto.
9478 * infcmd.c (_initialize_infcmd): Ditto.
9479 * corefile.c (_initialize_core): Ditto.
9480
f779ca99
AC
94812002-03-05 Andrew Cagney <ac131313@redhat.com>
9482
9483 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9484
01a3934b
AC
94852002-03-05 Andrew Cagney <ac131313@redhat.com>
9486
9487 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9488
37057839
AC
94892002-03-05 Andrew Cagney <ac131313@redhat.com>
9490
9491 * NEWS: Update headings, 5.2 has branched.
9492
c6ecbae5
DJ
94932002-03-04 Daniel Jacobowitz <drow@mvista.com>
9494
9495 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9496 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9497 (register_addr, REGISTER_RAW_SIZE): Likewise.
9498 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9499 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9500
e9f30c21
ML
95012002-03-03 Michal Ludvig <mludvig@suse.cz>
9502
9503 * MAINTAINERS (x86-64): Add myself.
9504 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9505 changed value_ptr -> struct value *
9506
54394ac3
DB
95072002-03-01 David O'Brien <obrien@FreeBSD.org>
9508
9509 * configure.host (sparc64-*-freebsd): Add.
9510 * configure.tgt: Likewise.
9511 * config/sparc/fbsd.mh: New file.
9512 * config/sparc/fbsd.mt: Likewise.
9513 * config/sparc/nm-fbsd.h: Likewise.
9514 * config/sparc/tm-fbsd.h: Likewise.
9515
bfe95955
DJ
95162002-03-01 Daniel Jacobowitz <drow@mvista.com>
9517
9518 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9519 regformats/reg-s390x.dat.
9520
f33c6cbf
AC
95212002-03-01 Andrew Cagney <ac131313@redhat.com>
9522
9523 * utils.c: Add FIXME explaining true/false problem.
9524
5ecaa7dd
AC
95252002-02-28 Andrew Cagney <ac131313@redhat.com>
9526
9527 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9528
2a251cc2
MC
95292002-02-28 Michael Chastain <mec@shout.net>
9530
9531 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9532
6a8031a3 95332002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9534
9535 * gdbserver/linux-s390-low.c: New file.
9536 * regformats/reg-s390.dat: New file.
9537 * regformats/reg-s390x.dat: New file.
9538 * gdbserver/configure.srv: Add S/390.
9539 * gdbserver/Makefile.in: Add S/390.
9540 * configure.tgt: Enable gdbserver for S/390.
9541
ac469903
EZ
95422002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9543
9544 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9545 first line of the doc string for "info dos", except at the end of
9546 the sentence, since the short help stops at the first period.
9547
985cb1a3
JM
95482002-02-28 Jason Merrill <jason@redhat.com>
9549
9550 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9551
c570663e
FF
95522002-02-27 Fred Fish <fnf@redhat.com>
9553
9554 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9555 comment (dumy -> dummy).
9556
43630227
PS
95572002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9558
9559 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9560
b84911e8
RB
95612002-02-27 Rodney Brown <rbrown64@csc.com.au>
9562
9563 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9564
58caa3dc
DJ
95652002-02-27 Daniel Jacobowitz <drow@mvista.com>
9566
9567 * gdbserver/acconfig.h: New file.
9568 * gdbserver/i387-fp.c: New file.
9569 * gdbserver/i387-fp.h: New file.
9570 * gdbserver/linux-x86-64.c: New file.
9571 * regformats/reg-x86-64.dat: New file.
9572 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9573 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9574 * gdbserver/configure.in: Add support for regsets.
9575 * gdbserver/config.in: Regenerate.
9576 * gdbserver/configure: Regenerate.
9577 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9578 * gdbserver/linux-low.h: New file.
9579 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9580 for regsets.
9581 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9582 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9583 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9584 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9585 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9586 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9587 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9588 "i387-fp.h". Add PTRACE_GETREGS and friends.
9589 * gdbserver/regcache.c (supply_register): New function.
9590 (supply_register_by_name): New function.
9591 (collect_register): New function.
9592 (collect_register_by_name): New function.
9593
93652174
DJ
95942002-02-27 Daniel Jacobowitz <drow@mvista.com>
9595
9596 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9597 (config.status): Add configure.srv dependency.
9598 (server_h): Add config.h dependency.
9599
a02e4a61
DJ
96002002-02-27 Daniel Jacobowitz <drow@mvista.com>
9601
9602 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9603 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9604 * gdbserver/configure.srv: Change i386-*-linux* to use
9605 reg-i386-linux.o.
9606
ce0eebec
AC
96072002-02-26 Andrew Cagney <ac131313@redhat.com>
9608
9609 * x86-64-tdep.c: Re-indent. Update copyright date.
9610
82dbc5f7
AC
96112002-02-26 Andrew Cagney <ac131313@redhat.com>
9612
9613 From Michal Ludvig <mludvig@suse.cz>:
9614 * x86-64-tdep.c (value.h): Delete.
9615 (gdb_assert.h): Include.
9616 (x86_64_register_convert_to_virtual,
9617 x86_64_register_convert_to_raw ): Add check which lets only
9618 floating-point values to be converted.
9619 (value_push): Delete.
9620 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9621 (i386_gdbarch_init): Number of register_bytes fixed.
9622
e4621584
AC
96232002-02-26 Andrew Cagney <ac131313@redhat.com>
9624
9625 * MAINTAINERS: Add x86-64 target.
9626
81a9a963
AC
96272002-02-26 Andrew Cagney <ac131313@redhat.com>
9628
9629 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9630 * osfsolib.c (solib_map_sections): Ditto.
9631 * irix5-nat.c (solib_map_sections): Ditto.
9632 * corelow.c (gdb_check_format): Ditto.
9633 * symfile.c (symfile_bfd_open): Ditto.
9634 * solib.c (solib_map_sections): Ditto.
9635 Fix PR gdb/354.
7e336ba1 9636
0f017ab9
AC
96372002-02-26 Andrew Cagney <ac131313@redhat.com>
9638
9639 * remote.c (_initialize_remote): By default, disable ``e'' and
9640 ``E'' step out-of-range packets.
9641
75738c29
AS
96422002-02-26 Andreas Schwab <schwab@suse.de>
9643
9644 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9645 m68k_linux_frame_saved_pc.
9646 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9647 in_sigtramp.
9648 (SIGCONTEXT_PC_OFFSET): Remove.
9649 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9650 m68k_linux_sigtramp_saved_pc): New functions.
9651 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9652 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9653 (UCONTEXT_PC_OFFSET): Define.
9654 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9655 non-RT and RT signal trampolines.
9656
7e8ed687
RE
96572002-02-26 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9660 (TARGET_NBPG, STACK_END_ADDR): Delete
9661 (VARIABLES_INSIDE_BLOCK): Delete.
9662
6972bc8b
AC
96632002-02-25 Andrew Cagney <ac131313@redhat.com>
9664
9665 * utils.c (perror_with_name): Make string parameter constant.
9666 (print_sys_errmsg): Ditto.
9667 (query): Ditto.
9668 * defs.h (perror_with_name): Update.
9669 (print_sys_errmsg): Update.
9670 (query): Update.
9671
aa32f823
DJ
96722002-02-25 Daniel Jacobowitz <drow@mvista.com>
9673
9674 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9675 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9676
19caaa45
PS
96772002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9678
9679 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9680 if it already matches the current architecture from the exec file.
9681 Include arch-utils.h for gdbarch_info_init prototype.
9682 * Makefile.in (rs6000-nat.o): Update dependencies.
9683
d951901f
EZ
96842002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9685
9686 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9687 list of exported variables.
9688
7ea81414
DJ
96892002-02-24 Daniel Jacobowitz <drow@mvista.com>
9690
9691 * gdbserver/configure.srv: New file.
9692 * gdbserver/configure.in: Use configure.srv instead
9693 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9694 from it.
9695 * gdbserver/configure: Regenerated.
9696 * gdbserver/terminal.h: New file.
9697 * gdbserver/Makefile.in: Update for configure changes. Remove
9698 more unneeded include paths.
9699
080fe24b
AC
97002002-02-24 Andrew Cagney <ac131313@redhat.com>
9701
9702 From wiz at danbala:
9703 * config/sparc/tm-sp64.h: Fix grammar and typos.
9704 Fix PR gdb/287.
9705
8605d56e
AC
97062002-02-24 Andrew Cagney <ac131313@redhat.com>
9707
9708 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9709 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9710 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9711 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9712 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9713 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9714 * s390-tdep.c: Ditto.
92362027
AC
9715 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9716 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9717 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9718 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9719 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9720 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9721 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9722 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9723 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9724 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9725 Fix PR gdb/378.
7e336ba1 9726
8ed32cc0
AC
97272002-02-23 Andrew Cagney <ac131313@redhat.com>
9728
a3007b6f
AC
9729 * lin-thread.c: Delete file.
9730 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9731 to gdb_proc_service.h.
9732 * configure: Re-generate.
9733
50a9e2f1
AC
9734 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9735 * serial.c (serial_open): Delete check for "ocd".
9736 Fix PR gdb/349.
9737
8b6e7932
AC
9738 * Makefile.in (linux-thread.o): Delete target.
9739 * linux-thread.c: Delete file.
9740
d155c46b
AC
9741 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9742 renamed SH files to be consistent.
9743
8ed32cc0
AC
9744 * symtab.c (sort_search_symbols): Use xfree.
9745
0e18d038
RE
97462002-02-23 Richard Earnshaw <rearnsha@arm.com>
9747
9748 * arm-linux-tdep.c (arm_linux_init_abi): Register
9749 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9750 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9751 definition with undef, since we don't want the sysvr4 definition.
9752 (SKIP_TRAMPOLINE_CODE): Likewise.
9753
27aac7ff
AC
97542002-02-23 Andrew Cagney <ac131313@redhat.com>
9755
9756 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9757
9758 * configure.in: (AC_CHECK_FUNCS) Added test for
9759 canonicalize_file_name Regenerated.
9760 * config.in, configure: Regenerated.
9761 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9762 defined use canonicalize_file_name.
7e336ba1 9763
65a6e0ee
MC
97642002-02-23 Michael Chastain <mec@shout.net>
9765
9766 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9767
47b95330
AC
97682002-02-23 Andrew Cagney <ac131313@redhat.com>
9769
9770 * README: Remove references to cygnus.com.
9771 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9772 dot com'' form. Remove references to cygnus.com and sourceware.
9773
696f451b
AC
97742002-02-23 Andrew Cagney <ac131313@redhat.com>
9775
9776 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9777 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9778 1003.1-2001 no longer allows "head -1".
9779 * gdb/Makefile.in (version.c): Likewise.
9780 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9781 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9782 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9783
bbaca940
AC
97842002-02-23 Andrew Cagney <ac131313@redhat.com>
9785
9786 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9787 * command.h (cmd_cfunc_eq): Declare.
9788 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9789
9790 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9791 ``struct cmd_list_element *''.
9792 * cli/cli-cmds.c (is_complete_command): Update. Use
9793 cmd_cfunc_eq.
9794 * top.c (execute_command): Pass the command to
9795 is_complete_command.
9796 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9797
b8b8b047
AC
97982002-02-23 Andrew Cagney <ac131313@redhat.com>
9799
9800 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9801 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9802 architecture defines.
9803 * s390-tdep.c (s390_gdbarch_init): Likewise.
9804
19d3fc80
RE
98052002-02-23 Richard Earnshaw <rearnsha@arm.com>
9806
9807 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9808 (arm_linux_push_arguments): Likewise.
9809 (arm_linux_init_abi): Register them. Also register linux-specific
9810 call_dummy_words.
9811 (find_minsym_and_objfile): Use strcmp, not STREQ.
9812 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9813 (arm_linux_call_dummy_words): Delete declaration.
9814 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9815 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9816 declarations.
9817 (LOWEST_PC): Delete.
9818
3ab13650
PS
98192002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9820
9821 * maint.c (print_section_info): Do not prepend `0x' to filepos
9822 output, it will be handled by local_hex_string_custom.
9823
19d3fc80 98242002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9825
9826 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9827 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9828 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9829
d85a5daf
JB
98302002-02-22 Jim Blandy <jimb@redhat.com>
9831
9832 Indicate that the bcache functions don't change the strings
9833 they're passed.
9834 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9835 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9836
eeb25b8a
PM
98372002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9838
9839 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9840
6badb179
CF
98412002-02-21 Christopher Faylor <cgf@redhat.com>
9842
9843 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9844 find the complete path to a loaded DLL.
9845
e8717518
FF
98462002-02-21 Fred Fish <fnf@redhat.com>
9847
9848 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9849 that marks the end of the range of a function, enter a line number
9850 entry that has a line number of zero and a PC offset that matches
9851 the end of the function. This starts a range of PC's for which no
9852 line number information is known.
9853 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9854 PC's for which no line number info is found (line number is zero)
9855 then we didn't find any valid line information.
9856 * symtab.h: Document use of zero line number entry.
9857
9abe5450
EZ
98582002-02-21 Elena Zannoni <ezannoni@redhat.com>
9859
9860 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9861 (have_ptrace_getvrregs): Define for run time checks.
9862 (gdb_vrregset_t): New type for Altivec register handling.
9863 (fetch_register, store_register): Fetch/store altivec register
9864 when needed.
9865 (fetch_altivec_register, store_altivec_register): New functions.
9866 (supply_vrregset, fill_vrregset): New functions.
9867 (fetch_altivec_registers, store_altivec_registers): New functions.
9868 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9869 registers as well.
9870
aaa38bb5
AJ
98712002-02-21 Jiri Smid <smid@suse.cz>
9872
9873 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9874
b34db576
RE
98752002-02-21 Richard Earnshaw <rearnsha@arm.com>
9876
9877 * Makefile.in (armnbsd-nat.o): Update dependencies.
9878 * armnbsd-nat.c (supply_gregset): New function. Common code to
9879 supply the integer register set.
9880 (supply_fparegset): New function. Similar for FPA registers.
9881 (fetch_regs, fetch_fp_regs): Use them.
9882 (fetch_core_registers): Likewise.
9883 (fetch_elfcore_registers): New function.
9884 (arm_netbsd_elfcore_fns): New core-file type specification.
9885 (_initialize_arm_netbsd_nat): Register it.
9886
3e56fc4b
RE
98872002-02-21 Richard Earnshaw <rearnsha@arm.com>
9888
9889 * armnbsd-nat.c: Include gdbcore.h.
9890 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9891 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9892 'void' to declaration, to shut up ARI.
9893 (fetch_core_registers): Make static. Rewrite using supply_register.
9894 (arm_netbsd_core_fns): New core-file type specification.
9895 (_initialize_arm_netbsd_nat): New function.
9896
097f6b0b
CF
98972002-02-21 Christopher Faylor <cgf@redhat.com>
9898
9899 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9900 value.
9901
c914e0cc
CF
99022002-02-20 Christopher Faylor <cgf@redhat.com>
9903
9904 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9905 fails.
9906
385fa495
DJ
99072002-02-20 Daniel Jacobowitz <drow@mvista.com>
9908
9909 * jv-exp.y (parse_number): Change type of implicit longs
9910 to builtin_type_uint64.
9911
e5f1222d
DJ
99122002-02-20 Daniel Jacobowitz <drow@mvista.com>
9913
9914 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9915 to be an integer instead of a `union wait'.
9916
75c9abc6
DJ
99172002-02-20 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * mips-linux-nat.c: Call the operating system GNU/Linux.
9920 * mips-linux-tdep.c: Likewise.
9921 * mips-tdep.c: Likewise.
9922
551792a5
DJ
99232002-02-20 Daniel Jacobowitz <drow@mvista.com>
9924
9925 Fix PR gdb/265.
9926 * jv-exp.y (parse_number): Handle 64-bit integers.
9927
ee6e2b82
DJ
99282002-02-20 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9931 AC_STDC_HEADERS to AC_HEADER_STDC.
9932 * gdbserver/configure: Regenerated.
9933
a48442a0
RE
99342002-02-20 Richard Earnshaw <rearnsha@arm.com>
9935
9936 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9937 is defined.
9938 * sparc-tdep.c (get_longjmp_target): Likewise.
9939
fe419ffc
RE
99402002-02-20 Richard Earnshaw <rearnsha@arm.com>
9941
9942 * News: Add news about ARM and Multi-arch. Mention the new target
9943 arm*-*-netbsd*.
9944
5832ed7e
JB
99452002-02-19 Jim Blandy <jimb@redhat.com>
9946
9947 * stabsread.c (error_type_complaint): Improve error message.
9948
84563040
DJ
99492002-02-19 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * gdbserver/README: Update documentation.
9952 * gdbserver/configure.in: Update configury to match documentation.
9953 * gdbserver/Makefile.in: Likewise.
9954 * gdbserver/configure: Regenerated.
9955 * gdbserver/aclocal.m4: New file, generated by aclocal.
9956 * gdbserver/config.in: New file, generated by autoheader.
9957
375fd65b
RE
99582002-02-19 Richard Earnshaw <rearnsha@arm.com>
9959
9960 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9961 armnbsd-nat.c.
9962
08216dd7
RE
99632002-02-19 Richard Earnshaw <rearnsha@arm.com>
9964
9965 * arm-tdep.h (enum arm_float_model): New enum.
9966 (struct gdbarch_tdep): Add fp_model.
9967 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9968 up floating-point conversions until we know the floating-point model
9969 in use by the inferior. Don't complain about being unable to
9970 determine the ABI of the inferior when we don't have one.
9971 (arm_extract_return_value): Support different floating-point models.
9972 (arm_store_return_value): Likewise.
aaa38bb5 9973 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9974 ARM_FLOAT_SOFT.
9975 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9976
65d6d66a
PS
99772002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9978
9979 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9980 of ``current_gdbarch''.
9981
47221191
RE
99822002-02-19 Richard Earnshaw <rearnsha@arm.com>
9983
9984 * armnbsd-nat.c : ANSIfy all function declarations.
9985 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9986 (fetch_inferior_registers): Re-implement in terms of above.
9987 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9988 (store_inferior_registers): Re-implement in terms of above.
9989
fdf39c9a
RE
99902002-02-19 Richard Earnshaw <rearnsha@arm.com>
9991
aaa38bb5 9992 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9993 kernel.
9994 * arm-linux-tdep.c: Likewise.
9995 * config/arm/tm-linux.h: Likewise.
9996
93247f88
RE
99972002-02-19 Richard Earnshaw <rearnsha@arm.com>
9998
9999 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10000 * config/arm/nbsd.mt (TM_FILE): Delete.
10001 * config/arm/tm-nbsd.h: Delete.
10002
d7b486e7
RE
100032002-02-19 Richard Earnshaw <rearnsha@arm.com>
10004
10005 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10006 Initialize CALL_DUMMY_LENGTH.
10007
41d39a95
RE
100082002-02-19 Richard Earnshaw <rearnsha@arm.com>
10009
10010 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10011 function.
10012 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 10013 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
10014 defines one thing and that is incorrect for this port.
10015 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10016
e1195560
PM
100172002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10018
10019 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10020
c1748f97
PM
100212002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10022
10023 * win32-nat.c (display_selector): New function. Displays information
10024 about the information returned by GetThreadSelectorEntry API function.
10025 (display_selectors): New function. Displays the infomation of
10026 the selector given as argument, or of CS, DS ans FS selectors
10027 if no argument is given.
10028 ( _initialize_inftarg): Add "w32" as info prefix command.
10029 Add "info w32 selector" as command calling display_selectors.
10030
e41e6bbf
PM
100312002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10032
10033 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10034 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10035 if not defined.
10036
0d3a9f48
RE
100372002-02-18 Richard Earnshaw <rearnsha@arm.com>
10038
10039 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10040
3fb4b924
RE
100412002-02-18 Richard Earnshaw <rearnsha@arm.com>
10042
10043 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10044 (arm_fix_call_dummy): Call it.
10045 (arm_call_dummy_breakpoint_offset): Delete.
10046 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10047 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10048
7f55af32
AC
100492002-02-18 Andrew Cagney <ac131313@redhat.com>
10050
10051 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10052 Default to func_frame_chain_valid.
10053 * gdbarch.h, gdbarch.c: Re-generate.
10054 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10055
05f13b9c
EZ
100562002-02-18 Elena Zannoni <ezannoni@redhat.com>
10057
10058 * ppc-linux-nat.c: Update copyright.
10059 (fetch_register, store_register): Add tid parameter, don't compute
10060 tid here.
10061 (fetch_ppc_registers, store_ppc_registers): Add tid
10062 parameter. Pass it along to callees.
10063 (fetch_inferior_registers, store_inferior_registers): Compute tid
10064 here, and pass it to calleed functions.
10065 (fill_gregset, supply_fpregset): Clean up formatting.
10066
d7afb4c9
RE
100672002-02-18 Richard Earnshaw <rearnsha@arm.com>
10068
10069 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10070 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10071
9df628e0
RE
100722002-02-18 Richard Earnshaw <rearnsha@arm.com>
10073
10074 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10075 * gdbarch.c gdbarch.h: Regenerate.
10076 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10077 function.
10078 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10079 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10080 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10081
10082 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10083 * arm-tdep.c (arm_get_longjmp_target): New function.
10084 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10085 this to a positive value register arm_get_longjmp_target as the
10086 longjmp handler.
10087 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10088 (arm_linux_init_abi): Set up longjmp description in tdep.
10089 * armnbsd-nat.c (get_longjmp_target): Delete.
10090 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10091 description in tdep.
10092 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10093 (get_longjmp_target): Delete declaration.
10094 (GET_LONGJMP_TARGET): Delete.
10095 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10096 (GET_LONGJMP_TARGET): Delete.
10097
57bc8964
KB
100982002-02-17 Kevin Buettner <kevinb@redhat.com>
10099
10100 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10101 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10102 of ``current_gdbarch''.
10103
83d31a92
TT
101042002-02-17 Tom Tromey <tromey@redhat.com>
10105
10106 * cli/cli-cmds.c (compare_strings): New function.
10107 (complete_command): Only print each unique item once.
10108 * completer.h (complete_line): Declare.
10109 * completer.c (complete_line): New function.
10110 (line_completion_function): Use it.
10111
17ef5d92
AC
101122002-02-16 Andrew Cagney <ac131313@redhat.com>
10113
10114 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10115 * gdbarch.h, gdbarch.c: Re-generate.
10116
491b8946
DJ
101172002-02-16 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10120
101212002-02-16 Daniel Jacobowitz <drow@mvista.com>
10122
10123 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10124 * valops.c (value_arg_coerce): Don't take the address of a reference
10125 to convert an argument to a reference.
10126
dfe7f3ac
CF
101272002-02-15 Christopher Faylor <cgf@redhat.com>
10128
10129 * win32-nat.c (get_image_name): New function.
10130 (handle_load_dll): Use get_image_name function.
10131 (get_child_debug_event): Avoid registering debug events until possibly
10132 execed process is started.
10133 (child_create_inferior): Allow invocation via shell so that command
10134 line redirection, etc. works ok.
10135 (_initialize_inftarg): Add new command: "set shell" to control whether
10136 a shell is used to start a process.
10137
1d33e73a
DJ
101382002-02-15 Daniel Jacobowitz <drow@mvista.com>
10139
10140 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10141 instead of find_register_by_number.
10142 (cannot_store_register): Likewise.
10143
48cd0caa
PM
101442002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10145
aaa38bb5 10146 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10147 fprintf_unfiltered (gdb_stderr, ...).
10148
8656e7d8
DJ
101492002-02-15 Daniel Jacobowitz <drow@mvista.com>
10150
10151 * gdbserver/gdbserver.1: Document --attach.
10152
66e810cd
RE
101532002-02-15 Richard Earnshaw <rearnsha@arm.com>
10154
10155 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10156 descriptions.
10157 * arm-tdep.c (arm_default_arm_le_breakpoint)
10158 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10159 (arm_default_thumb_be_breakpoint): New. Initialize them from
10160 traditional breakpoint defines.
10161 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10162 (arm_gdbarch_init): Initialize new breakpoint variables.
10163 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10164 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10165 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10166 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10167 code out to ...
10168 (arm_netbsd_init_abi_common): ... here; new function.
10169 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10170 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10171 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10172 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10173
97e03143
RE
101742002-02-15 Richard Earnshaw <rearnsha@arm.com>
10175
10176 * arm-tdep.h (enum arm_abi): New enum.
10177 (struct gdbarch_tdep): New structure.
10178 (LOWEST_PC): Provide a default.
10179 (arm_gdbarch_register_os_abi): Declare new function.
10180 * arm-tdep.c (arm_abi_names): New array.
10181 (process_note_abi_tag_sections): New function.
10182 (get_elfosabi): New function.
10183 (arm_gdbarch_register_os_abi): New function.
10184 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10185 support for that ABI has been built in, then call the appropriate
10186 configuration routine. Use gdbarch_num_regs() to get the number
10187 of registers.
10188 (arm_dump_tdep): New function.
10189 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10190 place-holder functions.
10191 (_initialize_arm_tdep): Register them.
10192 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10193
10194 * armnbsd-tdep.c: New file.
10195 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10196 * config/arm/nbsd.mt (TDEPFILES): Add it.
10197 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10198
10199 * armnbsd-nat.c: Include regcache.h.
10200 * Makefile.in (armnbsd-nat.o): Update dependency list.
10201
10202 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10203
ad68be46
DJ
102042002-02-14 Daniel Jacobowitz <drow@mvista.com>
10205
10206 * gdbserver/Makefile.in: Fix typos in target rules.
10207
003d6d1d
DJ
102082002-02-14 Daniel Jacobowitz <drow@mvista.com>
10209
aaa38bb5 10210 Fix part of PR gdb/267.
003d6d1d
DJ
10211 * linespec.c (find_methods): Handle constructors specially for now.
10212
6b230f1b
CV
102132002-02-14 Corinna Vinschen <vinschen@redhat.com>
10214
10215 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10216 handling.
10217 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10218 standard_coerce_float_to_double().
10219
1ea98d12
CF
102202002-02-14 Christopher Faylor <cgf@redhat.com>
10221
10222 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10223 GDBINIT_FILENAME.
10224
dd47e6fd
EZ
102252002-02-14 Elena Zannoni <ezannoni@redhat.com>
10226
10227 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10228 find_variant_by_name, because it confuses the multiarch
10229 framework. Return NULL if there isn't an architecture with the
10230 user supplied name, instead of forcing a different one without
10231 recording the change with the multiarch machinery.
10232 (find_variant_by_name): Delete.
10233
d7e39b9e
PS
102342002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10235
10236 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10237 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10238
76e42a4f
MH
102392002-02-13 Martin M. Hunt <hunt@redhat.com>
10240
aaa38bb5 10241 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10242 print_frame_info_listing_hook, set current_source_symtab.
10243
0a30fbc4
DJ
102442002-02-14 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10247 and remove unused $(INCLUDE_DIR).
10248 Add regcache.c to OBS.
10249 Add generated register protocol files to clean target.
10250 Update dependencies for new objects, obsolete old target code.
10251
10252 * gdbserver/linux-low.c: Remove all platform-specific code to
10253 new files. Remove various dead code. Update to use regcache
10254 functionality.
10255 * gdbserver/remote-utils.c (fromhex): Add return statement
10256 to quiet warning.
10257 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10258 constant.
10259 (input_interrupt): Add integer parameter to match prototype
10260 of a signal handler.
10261 (outreg): Use register_data ().
10262 (prepare_resume_reply): Use gdbserver_expedite_regs.
10263 * gdbserver/server.c (main): Dynamically allocate own_buf because
10264 PBUFSIZ is no longer constant. Use registers_to_string () and
10265 registers_from_string ().
10266 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10267 for error (), fatal (), and warning (). Update definition of
10268 PBUFSIZ to use regcache functionality. Add include guard.
10269 * gdbserver/utils.c (fatal): Add missing ``const''.
10270 (warning): New function.
10271
10272 * regformats/regdat.sh: Include "regcache.h" in generated files.
10273 Provide init_registers () function.
10274 * regformats/regdef.h: Add prototype for set_register_cache ().
10275 Add include guard.
10276
10277 * gdbserver/linux-arm-low.c: New file.
10278 * gdbserver/linux-i386-low.c: New file.
10279 * gdbserver/linux-ia64-low.c: New file.
10280 * gdbserver/linux-m68k-low.c: New file.
10281 * gdbserver/linux-mips-low.c: New file.
10282 * gdbserver/linux-ppc-low.c: New file.
10283 * gdbserver/linux-sh-low.c: New file.
10284
10285 * gdbserver/regcache.c: New file.
10286 * gdbserver/regcache.h: New file.
10287
10288 * gdbserver/low-linux.c: Removed obsolete file.
10289
4cc841d0
DJ
102902002-02-14 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10293 * config/i386/linux.mt: Likewise.
10294 * config/ia64/linux.mt: Likewise.
10295 * config/m68k/linux.mh: Likewise.
10296 * config/powerpc/linux.mh: Likewise.
10297 * config/mips/linux.mt: Likewise.
10298
10299 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10300
10301 * config/i386/i386lynx.mh: Mark gdbserver variables
10302 as (currently) obsolete for this target.
10303 * config/i386/nbsd.mt: Likewise.
10304 * config/i386/nbsdelf.mt: Likewise.
10305 * config/m32r/m32r.mt: Likewise.
10306 * config/m68k/m68klynx.mh: Likewise.
10307 * config/m68k/nbsd.mt: Likewise.
10308 * config/m68k/sun3os4.mh: Likewise.
10309 * config/mips/vr5000.mt: Likewise.
10310 * config/ns32k/nbsd.mt: Likewise.
10311 * config/pa/hppabsd.mh: Likewise.
10312 * config/pa/hppaosf.mh: Likewise.
10313 * config/powerpc/nbsd.mt: Likewise.
10314 * config/rs6000/rs6000lynx.mh: Likewise.
10315 * config/s390/s390.mt: Likewise.
10316 * config/s390/s390x.mt: Likewise.
10317 * config/sparc/sparclynx.mh: Likewise.
10318 * config/sparc/sun4os4.mh: Likewise.
10319 * config/i386/x86-64linux.mt: Likewise.
10320 * config/sparc/linux.mh: Likewise.
10321
a85f51e7
DJ
103222002-02-14 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * configure.tgt: Configure gdbserver only for known working
10325 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10326 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10327 SUBDIRS if it is configured. Update comment for ${nativefile}.
10328 * configure: Regenerated.
10329
65554fef
MS
103302002-02-13 Michael Snyder <msnyder@redhat.com>
10331
670a52db
MS
10332 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10333
6dbdc4a3
MS
10334 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10335 (default_gcore_mach): Just return 0, work around a problem in bfd.
10336 (default_gcore_target): OK to return NULL if exec_bfd is null.
10337 (make_mem_sec): Use a cast, avoid a warning.
10338
10339 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10340 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10341 sizeof (host pointer) != sizeof (target pointer)).
10342 (procfs_make_note_section): Avoid overflow in psargs string.
10343
aaa38bb5 10344 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10345 implementation return an error.
10346
103472002-02-13 Rodney Brown <rbrown64@csc.com.au>
10348
10349 * procfs.c (procfs_make_note_section): Provide a default definition
10350 (for alpha-dec-osf4.0f). Fix typos.
10351
1e4d76e7
EZ
103522002-02-13 Elena Zannoni <ezannoni@redhat.com>
10353
10354 * linux-proc.c: Add include of regcache.h.
10355 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10356
b6d1a1d5
AC
103572002-02-13 Andrew Cagney <ac131313@redhat.com>
10358
10359 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10360 * memattr.c (create_mem_region): Disallow useless empty region.
10361 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10362 non-overlapping.
b6d1a1d5 10363
6c6ea35e
MC
103642002-02-13 Michael Chastain <mec@shout.net>
10365
10366 * defs.h: Kill CONST_PTR.
10367 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10368 * c-lang.c (c_builtin_types): Likewise.
10369 * ch-lang.c (ch_builtin_types): Likewise.
10370 * f-lang.c (f_builtin_types): Likewise.
10371 * language.c (unknown_builtin_types): Likewise.
10372 * m2-lang.c (m2_builtin_types): Likewise.
10373 * p-lang.c (pascal_builtin_types): Likewise.
10374 * scm-lang.c (c_builtin_types): Likewise.
10375
3e0b0f48
KS
103762002-02-13 Keith Seitz <keiths@redhat.com>
10377
10378 * arm-tdep.h (arm_get_next_pc): Add declaration.
10379
67255d04
RE
103802002-02-13 Richard Earnshaw <rearnsha@arm.com>
10381
10382 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10383 with other related struct-returning functions.
10384 (arm_extract_struct_value_address): New function.
10385 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10386 initialize float_format, double_format and long_double_format as
10387 appropriate to the endianness of the target.
10388 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10389 (arm_use_struct_convention): Delete declaration.
10390 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10391
079777f6
KS
103922002-02-13 Keith Seitz <keiths@redhat.com>
10393
10394 * defs.h (core_addr_to_string_nz): New function.
10395
34588f23
MK
103962002-02-13 Mark Kettenis <kettenis@gnu.org>
10397
10398 Apply missing bits of 2002-01-15 patch.
10399 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10400 (fill_fpregset): Use i387_fill_fsave.
10401
49b563f9
KS
104022002-02-12 Keith Seitz <keiths@redhat.com>
10403
49b563f9
KS
10404 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10405 (core_addr_to_string_nz): New function.
10406
aeb98c60
RE
104072002-02-11 Richard Earnshaw <rearnsha@arm.com>
10408
10409 * arm-linux-nat.c: Really include arm-tdep.h.
10410 * config/arm/tm-linux.h (struct type, struct value): Declare.
10411
65554fef
MS
104122002-02-11 Michael Snyder <msnyder@redhat.com>
10413
10414 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10415 (gcore section): Ifdef for Solaris and Unixware only.
10416 (procfs_do_thread_registers): Unixware needs one lwpstatus
10417 per thread (not one prstatus or pstatus).
10418 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10419 not over all gdb threads. For unixware, call elfcore_write_pstatus
10420 once before iterating over threads.
10421
34e8f22d
RE
104222002-02-11 Richard Earnshaw <rearnsha@arm.com>
10423
10424 * arm-tdep.h: New file.
10425 * arm-tdep.c: Include arm-tdep.h.
10426 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10427 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10428 (arm_print_float_info, arm_register_type, convert_to_extended)
10429 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10430 (arm_extract_return_value, arm_register_name): Make static.
10431 (arm_software_single_step): Similarly. Fix types in declaration.
10432 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10433 (arm_store_return_value, arm_store_struct_return): New functions.
10434 (arm_gdbarch_init): Register the above functions. Also register
10435 call_dummy_start_offset, sizeof_call_dummy_words,
10436 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10437 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10438 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10439 prologue_cache.saved_regs here, rather than ...
10440 (_initialize_arm_tdep): ... here.
10441 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10442 declarations.
10443 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10444 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10445 (arm_print_float_info, arm_register_type, convert_to_extended)
10446 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10447 (arm_extract_return_value, arm_register_name): Delete declarations.
10448 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10449 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10450 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10451 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10452 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10453 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10454 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10455 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10456 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10457 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10458 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10459 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10460 interface.
10461 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10462 * remote-rdi.c remote-rdp.c: Likewise.
10463 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10464 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10465 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10466 definition.
10467
10468 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10469 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10470 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10471 from non-ARM_ prefixed definitions.
10472 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10473 all uses of above.
10474 * remote-rdi.c remote-rdp.c: Likewise.
10475 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10476
148754e5
RE
104772002-02-11 Richard Earnshaw <rearnsha@arm.com>
10478
10479 * arm-tdep.c (arm_frameless_function_invocation)
10480 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10481 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10482 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10483 (arm_pop_frame, arm_get_next_pc): Make static.
10484 (arm_gdbarch_init): Register above in gdbarch structure.
10485 (arm_read_fp): Renamed from arm_target_read_fp.
10486 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10487 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10488 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10489 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10490 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10491 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10492 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10493 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10494 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10495 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10496 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10497
434d2d4f
DJ
104982002-02-10 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * symtab.c (compare_search_syms): New function.
10501 (sort_search_symbols): New function.
10502 (search_symbols): Sort symbols after searching rather than
10503 before.
10504
55241689
AC
105052002-02-10 Andrew Cagney <ac131313@redhat.com>
10506
10507 * NEWS: Linux -> GNU/Linux.
10508
028c194b
AC
105092002-02-10 Andrew Cagney <ac131313@redhat.com>
10510
10511 * gdbarch.sh: For for level one methods, disallow a definition
10512 when partially multi-arched. Add comments explaining rationale.
10513 * gdbarch.h: Re-generate.
10514
6acf50cd
AC
105152002-02-10 Andrew Cagney <ac131313@redhat.com>
10516
10517 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10518 multi-arch partial.
aaa38bb5 10519
50248794
AC
105202002-02-10 Andrew Cagney <ac131313@redhat.com>
10521
10522 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10523 field. Use diff -u.
10524 * gdbarch.c: Re-generate.
10525
c30e0066
AC
105262002-02-10 Andrew Cagney <ac131313@redhat.com>
10527
9b56c5f3 10528 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10529 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10530 partial.
10531
6e6d6484
AC
105322002-02-10 Andrew Cagney <ac131313@redhat.com>
10533
10534 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10535 multi-arch partial.
10536 (PUSH_ARGUMENTS): Switch to using predefault.
10537 * gdbarch.c: Regenerate.
10538
c203844d
AC
105392002-02-10 Andrew Cagney <ac131313@redhat.com>
10540
10541 * valops.c (PUSH_ARGUMENTS): Delete definition.
10542 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10543 partial. Default to default_push_arguments.
10544 * gdbarch.h, gdbarch.c: Regenerate.
10545
b5a2688f
AC
105462002-02-09 Andrew Cagney <ac131313@redhat.com>
10547
10548 * defs.h (throw_exception): Rename return_to_top_level. Update
10549 comments.
10550 * utils.c (error_stream, internal_verror, quit): Ditto.
10551 * top.c (throw_exception, catcher): Ditto.
10552 * sparclet-rom.c (sparclet_load): Ditto.
10553 * remote.c (interrupt_query, minitelnet): Ditto.
10554 * remote-sds.c (interrupt_query): Ditto.
10555 * remote-mips.c (mips_error, mips_kill): Ditto.
10556 * ocd.c (interrupt_query): Ditto.
10557 * monitor.c (monitor_interrupt_query): Ditto.
10558 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10559 * target.h: Update comment.
aaa38bb5 10560
b5a2688f 10561 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10562
2fa5c1e0
AC
105632002-02-09 Andrew Cagney <ac131313@redhat.com>
10564
10565 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10566 default_double_format.
10567 * gdbarch.h, gdbarch.c: Re-generate.
10568 * findvar.c (floatformat_unknown): Delete variable definition.
10569 * doublest.h (floatformat_unknown): Delete variable declaration.
10570
da966255
JB
105712002-02-09 Jim Blandy <jimb@redhat.com>
10572
10573 * stabsread.c (read_type): Add code to parse Sun's syntax for
10574 prototyped function types.
10575
123a4891
AC
105762002-02-09 Andrew Cagney <ac131313@redhat.com>
10577
10578 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10579 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10580
fb39c8f3
PS
105812002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10582
10583 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10584 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10585 now _initialize_xcoffsolib gets called again and overrides the
10586 commands from solib.c in a native configuration.
10587
0b87a11d
MK
105882002-02-09 Mark Kettenis <kettenis@gnu.org>
10589
10590 * doublest.c (store_typed_floating): Don't try to return a value.
10591 Fixes PR gdb/290.
10592
bdc2fc72
JB
105932002-02-08 Jim Blandy <jimb@redhat.com>
10594
10595 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10596 is prototyped and has no arguments, print its argument list as
10597 `(void)'.
10598
da69bbcf
CD
105992002-02-08 Chris Demetriou <cgd@broadcom.com>
10600
10601 * MAINTAINERS (write-after-approval): Add myself.
10602 (paper-trail): I've escaped!
aaa38bb5 10603
b69571f5
CF
106042002-02-08 Christopher Faylor <cgf@redhat.com>
10605
10606 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10607 changes.
10608 (_initialize_check_for_gdb_ini): Ditto.
10609
f6871398
MH
106102002-02-08 Martin M. Hunt <hunt@redhat.com>
10611
10612 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10613 xaprintf -> xasprintf.
10614
4e52d31c
PM
106152002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10616
10617 * win32-nat.c: Remove use of printf and sprintf functions.
10618
39bbf761
RE
106192002-02-08 Richard Earnshaw <rearnsha@arm.com>
10620
10621 * arm-tdep.c (arm_frame_chain_valid): Make static.
10622 (arm_push_arguments): Likewise.
10623 (arm_gdbarch_init): New function.
10624 (_initialize_arm_tdep): Call it.
10625 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10626 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10627 (FRAME_CHAIN_VALID): Delete.
10628 (arm_frame_chain_valid): Delete declaration.
10629 (PUSH_ARGUMENTS): Delete.
10630 (arm_push_arguments): Delete declaration.
10631 (CALL_DUMMY_P): Delete.
10632
9c9532c9
CV
106332002-02-08 Andrew Cagney <ac131313@redhat.com>
10634 Corinna Vinschen <vinschen@redhat.com>
10635
10636 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10637 on builtin float types.
10638
4e8f7a8b
DJ
106392002-02-08 Daniel Jacobowitz <drow@mvista.com>
10640
10641 * utils.c: Include <curses.h> before "bfd.h".
10642 * tui/tui-hooks.c: Likewise.
10643 * tui/tui.c: Likewise.
10644 * tui/tuiCommand.c: Likewise.
10645 * tui/tuiData.c: Likewise.
10646 * tui/tuiDataWin.c: Likewise.
10647 * tui/tuiDisassem.c: Likewise.
10648 * tui/tuiGeneralWin.c: Likewise.
10649 * tui/tuiIO.c: Likewise.
10650 * tui/tuiLayout.c: Likewise.
10651 * tui/tuiRegs.c: Likewise.
10652 * tui/tuiSource.c: Likewise.
10653 * tui/tuiSourceWin.c: Likewise.
10654 * tui/tuiStack.c: Likewise.
10655 * tui/tuiWin.c: Likewise.
10656
cd4bffcf
EZ
106572002-02-07 Elena Zannoni <ezannoni@redhat.com>
10658
10659 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10660 to include space for pseudoregs as well. Update loops accordingly.
10661 (sh_fp_frame_init_saved_regs): Ditto.
10662 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10663
26806ce2
AC
106642002-02-07 Andrew Cagney <ac131313@redhat.com>
10665
10666 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10667 Add Richard Earnshaw to Arm maintainers.
10668
97fdab62
AC
106692002-02-07 Andrew Cagney <ac131313@redhat.com>
10670
a6b98203
AC
10671 * defs.h (warning_begin): Delete declaration.
10672
97fdab62
AC
10673 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10674 Delete macro.
10675
78b29b40
MS
106762002-02-07 Michael Snyder <msnyder@redhat.com>
10677
aaa38bb5 10678 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10679 Logic bug, remove misplaced else.
10680
d8849953
KD
106812002-02-07 Klee Dienes <klee@apple.com>
10682
10683 * fork-inferior.c (fork_inferior): Add '!' to the list of
10684 characters that need to be quoted when building a string for the
10685 shell. Quote '!' specifically with a backslash, since CSH chokes
10686 when trying to evaluate "str!str".
aaa38bb5 10687
095778a0
NC
106882002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10689
10690 * rdi-share/host.h: Only provide a typedef for bool if it is not
10691 defined.
10692
1900040c
MS
106932002-02-04 Michael Snyder <msnyder@redhat.com>
10694
10695 * breakpoint.h (enum bptype): Add new overlay event bp type.
10696 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10697
1900040c
MS
10698 * breakpoint.c (create_internal_breakpoint): New function.
10699 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10700 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10701 (create_thread_event_breakpoint): Ditto.
10702 (create_solib_event_breakpoint): Ditto.
10703 (create_overlay_event_breakpoint): New function.
10704 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10705 (update_breakpoints_after_exec): Delete and re-initialize
10706 overlay event breakpoints after an exec. Add FIXME comment
10707 about longjmp breakpoint.
10708 (print_it_typical): Ignore overlay event breakpoints.
10709 (print_one_breakpoint): Ditto.
10710 (mention): Ditto.
10711 (bpstat_what): Do not stop for overlay event breakpoints.
10712 (delete_breakpoint): Don't delete overlay event breakpoints.
10713 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10714 (breakpoint_re_set): Re-create overlay event breakpoint.
10715
10716 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10717 (overlay_manual_command): Disable overlay breakpoints.
10718 (overlay_off_command): Disable overlay breakpoints.
10719
082fc60d
RE
107202002-02-06 Richard Earnshaw <rearnsha@arm.com>
10721
10722 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10723 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10724 to here from config/tm-arm.h.
10725 (coff_sym_is_thumb): Make static.
10726 (arm_elf_make_msymbol_special): New function.
10727 (arm_coff_make_msymbol_special): New function.
10728 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10729 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10730 (coff_sym_is_thumb): Delete declaration.
10731 (arm_elf_make_msymbol_special): Declare.
10732 (arm_coff_make_msymbol_special): Declare.
10733 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10734 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10735
039c5766
RE
107362002-02-06 Richard Earnshaw <rearnsha@arm.com>
10737
10738 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10739
107402002-02-06 Richard Earnshaw <rearnsha@arm.com>
10741
10742 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10743 * gdbarch.c gdbarch.h: Regenerate.
10744 * arch-utils.c (default_print_float_info): New function.
10745 * arch-utils.h (default_print_float_info): Prototype it.
10746 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10747 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10748 (PRINT_FLOAT_INFO): Document it.
10749
10750 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10751 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10752 (PRINT_FLOAT_INFO): Define.
10753
58fa08f0
PM
107542002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10755
aaa38bb5 10756 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10757 Add typecast to sprintf argument to suppress a warning.
10758
7393af7c
PM
107592002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10760
58fa08f0 10761 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10762 to allow easier handling of pass state.
10763 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10764 that gives exception name and address.
10765 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10766 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10767 exceptions added.
aaa38bb5
AJ
10768 (child_continue): Correctly report continue_status.
10769 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10770 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10771 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10772 the exception should be passed to debuggee or not.
10773
6af4589c
MS
107742002-02-05 Michael Snyder <msnyder@redhat.com>
10775
10776 * regcache.c (fetch_register): Call target_fetch_register
10777 only if we don't call FETCH_PSEUDO_REGISTER.
10778 (store_register): Call target_store_register only if we
10779 don't call STORE_PSEUDO_REGISTER.
10780
a2cf933a
EZ
107812002-02-05 Elena Zannoni <ezannoni@redhat.com>
10782
10783 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10784 ELF_MAKE_MSYMBOL_SPECIAL.
10785 * gdbarch.c, gdbarch.h: Regenerate.
10786 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10787 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10788 * elfread.c (elf_symtab_read): Compile use of
10789 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10790 multiarched.
10791 * coffread.c (coff_symtab_read): Ditto, for
10792 COFF_MAKE_MSYMBOL_SPECIAL.
10793
6bb7be43
JB
107942002-02-05 Jim Blandy <jimb@redhat.com>
10795
10796 * solib-svr4.c (svr4_truncate_ptr): New function.
10797 (svr4_relocate_section_addresses): Do the address arithmetic with
10798 the appropriate truncation for target addresses, even when
10799 CORE_ADDR is larger than a target address.
10800
e18651ec
DJ
108012002-02-05 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10804 to (int *).
10805
6b2725be
DJ
108062002-02-05 Daniel Jacobowitz <drow@mvista.com>
10807
10808 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10809 code.
10810
fca9e603
DJ
108112002-02-05 Daniel Jacobowitz <drow@mvista.com>
10812
10813 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10814
6c537a52
DJ
108152002-02-05 Daniel Jacobowitz <drow@mvista.com>
10816
10817 * gdbserver/linux-low.c: Remove unused include files.
10818
d844cde6
DJ
108192002-02-05 Daniel Jacobowitz <drow@mvista.com>
10820
10821 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10822 (read_inferior_memory): Use it.
10823 (write_inferior_memory): Likewise.
10824
d07c63e7
DJ
108252002-02-05 Daniel Jacobowitz <drow@mvista.com>
10826
10827 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10828 grubbing through sys_errlist.
10829
da6d8c04
DJ
108302002-02-05 Daniel Jacobowitz <drow@mvista.com>
10831
10832 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10833
5b421780
PM
108342002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10835 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10836
9f60d481
AC
108372002-02-04 Andrew Cagney <ac131313@redhat.com>
10838
10839 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10840 (do_sfunc, set_cmd_sfunc): New functions.
10841
10842 * command.h (struct cmd_list_element): Add field func.
10843 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10844 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10845 * cli/cli-decode.h: Ditto.
10846
10847 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10848 (help_all, help_cmd_list): Ditto.
10849 (find_cmd, complete_on_cmdlist): Ditto.
10850 * top.c (execute_command): Ditto.
10851
10852 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10853 function.sfunc.
10854
10855 * infcmd.c (notice_args_read): Fix function signature.
10856
10857 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10858 * cli/cli-decode.c (add_set_cmd): Ditto.
10859 * utils.c (initialize_utils): Ditto.
10860 * maint.c (_initialize_maint_cmds): Ditto.
10861 * infrun.c (_initialize_infrun): Ditto.
10862 * demangle.c (_initialize_demangler): Ditto.
10863 * remote.c (add_packet_config_cmd): Ditto.
10864 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10865 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10866 * proc-api.c (_initialize_proc_api): Ditto.
10867 * kod.c (_initialize_kod): Ditto.
10868 * valprint.c (_initialize_valprint): Ditto.
10869 * top.c (init_main): Ditto.
10870 * infcmd.c (_initialize_infcmd): Ditto.
10871 * corefile.c (_initialize_core): Ditto.
10872 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10873 * arch-utils.c (initialize_current_architecture): Ditto.
10874 (_initialize_gdbarch_utils): Ditto.
10875 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10876
10877 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10878 * wince.c (_initialize_inftarg): Ditto.
10879 * symfile.c (_initialize_symfile): Ditto.
10880 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10881 * language.c (_initialize_language): Ditto.
10882 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10883
f9ba0717
MS
108842002-02-04 Michael Snyder <msnyder@redhat.com>
10885
10886 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10887
0c74b2a7
DJ
108882002-02-04 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10891 Add rules for building the register data files.
10892
c638789f
DJ
108932002-02-04 Daniel Jacobowitz <drow@mvista.com>
10894
10895 * regformats/regdat.sh: Add braces to the definition of
10896 expedite_regs_${arch}.
10897
db253027
DJ
108982002-02-04 Daniel Jacobowitz <drow@mvista.com>
10899
10900 * regformats/regdef.h (struct reg): Add comment describing the
10901 requirements for offset and size fields.
10902
206be19c
AS
109032002-02-04 Andreas Schwab <schwab@suse.de>
10904
10905 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10906 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10907
181c1381
RE
109082002-02-04 Richard Earnshaw <rearnsha@arm.com>
10909
10910 * gdbarch.sh (copyright): Update years in generated header.
10911 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10912 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10913 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10914 * dbxread.c: Likewise.
10915 * dwarfread.c: Likewise.
10916 * elfread.c: Likewise.
10917 * somread.c: Likewise.
10918
10919 * arm-tdep.c (arm_smash_text_address): New function.
10920 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10921
fa4ba8da
PM
109222002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10923
10924 Add support for hardware watchpoints on win32 native.
aaa38bb5 10925 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10926 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10927 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10928 of debug registers.
10929 (debug_registers_changed): New variable. Reflects when debug registers
10930 are changed and need to be written to inferior.
aaa38bb5 10931 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10932 was set, used when new threads are created.
10933 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10934 i386-nat code.
10935 (thread_rec): Set dr array if id is the thread of current_event .
10936 (child_continue, child_resume): Change the debug registers for all
10937 threads if debug_registers_changed.
10938 (child_add_thread): Change the debug registers if debug_registers_used.
10939 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10940 Link nm.h to new nm-cygwin.h file.
10941 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10942 of hardware registers.
10943
a73c86fb
AC
109442002-02-03 Andrew Cagney <ac131313@redhat.com>
10945
10946 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10947 Restore behavour broken by 2002-01-20 Andrew Cagney
10948 <ac131313@redhat.com> IEEE_FLOAT removal.
10949
acf5ed49
DJ
109502002-02-03 Daniel Jacobowitz <drow@mvista.com>
10951
10952 * c-valprint.c (c_val_print): Pass a proper valaddr to
10953 cp_print_class_method.
10954 * valops.c (search_struct_method): If there is only one method
10955 and args is NULL, return that method.
10956
493d28d5
DJ
109572002-02-03 Daniel Jacobowitz <drow@mvista.com>
10958
10959 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10960 accessing tag_name directly.
10961
7495dfdb
DJ
109622002-02-03 Daniel Jacobowitz <drow@mvista.com>
10963
10964 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10965 of accessing tag_name directly.
10966
dd6bda65
DJ
109672002-02-03 Daniel Jacobowitz <drow@mvista.com>
10968
10969 PR gdb/280
10970 * gdbtypes.c (replace_type): New function.
10971 * gdbtypes.h (replace_type): Add prototype.
10972 * stabsread.c (read_type): Use replace_type.
10973
88fe217c
RE
109742002-02-03 Richard Earnshaw <rearnsha@arm.com>
10975
10976 * Makefile.in (memattr.o): Add missing dependencies rule.
10977
e5d66720
PS
109782002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10979
10980 * breakpoint.c (break_at_finish_command): Really export.
10981 (break_at_finish_at_depth_command): Ditto.
10982 (tbreak_at_finish_command): Ditto.
10983 * hppa-tdep.c: Include completer.h.
10984 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10985 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10986
fffee0be
AC
109872002-02-01 Andrew Cagney <ac131313@redhat.com>
10988
10989 * utils.c (do_write): New function.
10990 (error_stream): Rewrite combining the code from error_begin and
10991 verror.
10992 (verror): Rewrite using error_stream.
10993 (error_begin): Delete function.
10994
255e7dbf
AC
109952002-02-01 Andrew Cagney <ac131313@redhat.com>
10996
10997 * utils.c (error_begin): Make static.
10998 * defs.h (error_begin): Delete declaration.
10999
11000 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11001 (decode_line_1): Use cplusplus_error instead of error_begin,
11002 cplusplus_hint and return_to_top_level.
11003 * coffread.c (coff_symfile_read): Use error instead of error_begin
11004 and return_to_top_level.
11005 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11006
ddfe3c15
AC
110072002-02-01 Andrew Cagney <ac131313@redhat.com>
11008
11009 * language.h (type_error, range_error): Make string parameter
11010 constant.
11011 * language.c (warning_pre_print): Delete extern declaration.
11012 * dwarfread.c (warning_pre_print): Ditto.
11013 * language.c (type_error, range_error): Rewrite to use verror and
11014 vwarning instead of warning_begin.
11015
03ac34d5
MS
110162002-02-01 Michael Snyder <msnyder@redhat.com>
11017
261c4ca2
MS
11018 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11019 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 11020
e00d1dc8
AC
110212002-02-01 Andrew Cagney <ac131313@redhat.com>
11022
11023 * command.h (NO_FUNCTION): Delete macro.
11024 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11025 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11026 * tracepoint.c (_initialize_tracepoint): Ditto.
11027 * cli/cli-decode.c (add_set_cmd): Ditto.
11028 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 11029
76b79d6e
DJ
110302002-02-01 Daniel Jacobowitz <drow@mvista.com>
11031
11032 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11033 Update ``this'' pointer when calling virtual functions.
11034
799f9e91
MS
110352002-02-01 Michael Snyder <msnyder@redhat.com>
11036
c7bd442c 11037 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
11038 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11039
3cf384d4
DJ
110402002-02-01 Daniel Jacobowitz <drow@mvista.com>
11041
11042 * regformats/reg-arm.dat: New file.
11043 * regformats/reg-i386.dat: New file.
11044 * regformats/reg-ia64.dat: New file.
11045 * regformats/reg-m68k.dat: New file.
11046 * regformats/reg-mips.dat: New file.
11047 * regformats/reg-ppc.dat: New file.
11048 * regformats/reg-sh.dat: New file.
11049 * regformats/regdef.h: New file.
11050 * regformats/regdat.sh: New file.
11051
0defa245
RE
110522002-02-01 Richard Earnshaw <reanrsha@arm.com>
11053
11054 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11055 (arm_frame_args_address, arm_frame_locals_address): New functions.
11056 (arm_frame_num_args): New function.
11057 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11058 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11059 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11060
405f26e6
MS
110612002-01-31 Michael Snyder <msnyder@redhat.com>
11062
502fd408
MS
11063 * breakpoint.c (break_at_finish_command): Export.
11064 (break_at_finish_at_depth_command): Export.
11065 (tbreak_at_finish_command): Export.
d6020d45 11066 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 11067 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 11068 "txbreak" commands, which are HPPA specific.
502fd408 11069
7d35e135
MS
11070 * printcmd.c (disassemble_command): Remove an ancient
11071 artifact of an old merge.
11072
aaa38bb5 11073 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
11074 Define enum constant values for overlay mode.
11075 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
11076 (overlay_is_mapped, overlay_auto_command,
11077 overlay_manual_command): Ditto.
d874f1e2 11078
aaa38bb5
AJ
11079 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11080 breakpoint_here_p, breakpoint_inserted_here_p,
11081 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
11082 describe_other_breakpoints, check_duplicates, clear_command):
11083 Coding standard fixes.
11084
8add0441 11085 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 11086 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
11087 code: check bfd SEC_READONLY flag for section.
11088
e351066e
AC
110892002-01-31 Andrew Cagney <ac131313@redhat.com>
11090
7d35e135 11091 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 11092
8a48e967
DJ
110932002-01-30 Daniel Jacobowitz <drow@mvista.com>
11094
11095 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11096 data symbols, since we search based on textlow and texthigh.
11097 (find_pc_sect_symtab): Likewise.
11098
f5a96129
AC
110992002-01-30 Andrew Cagney <ac131313@redhat.com>
11100
11101 * defs.h (vwarning): Declare.
f5a96129
AC
11102 * utils.c (vwarning): New function.
11103 (warning): Call vwarning.
11104 (warning_begin): Delete function.
11105
11106 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11107 the warning message.
11108 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11109 warning_begin.
11110
cefd4ef5
MS
111112002-01-30 Michael Snyder <msnyder@redhat.com>
11112
1a703748
MS
11113 * NEWS: Mention "set trust-readonly-sections" command.
11114 Mention generate-core-file command.
cefd4ef5 11115
3a11626d
MS
111162002-01-15 Michael Snyder <msnyder@redhat.com>
11117
11118 * target.c: New command, "set trust-readonly-sections on".
11119 (do_xfer_memory): Honor the suggestion to trust readonly sections
11120 by reading them from the object file instead of from the target.
11121 (initialize_targets): Register command "set trust-readonly-sections".
11122
d1c7e53b
AC
111232002-01-29 Andrew Cagney <ac131313@redhat.com>
11124
11125 * parse.c (target_map_name_to_register): Simplify, search regs and
11126 pseudo-regs using a single loop.
11127
e2c9a72c
AC
111282002-01-30 Andrew Cagney <ac131313@redhat.com>
11129
11130 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11131
69824b4e
MK
111322002-01-15 Rodney Brown <rbrown64@csc.com.au>
11133
11134 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11135 * config/i386/i386v42mp.mh: Add i387-nat.o .
11136 * i386v4-nat.c: Include i387-nat.h.
11137 (supply_fpregset): Use i387_supply_fsave.
11138 (fill_fpregset): Use i387_fill_fsave.
11139
6eb69eab
RE
111402002-01-30 Richard Earnshaw <rearnsha@arm.com>
11141
11142 * arm-tdep.c (arm_call_dummy_words): Define.
11143 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11144 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11145 (CALL_DUMMY_WORDS): Define.
11146 (arm_call_dummy_words): Declare.
11147 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11148 (arm_linux_call_dummy_words): Declare.
11149
9852326a
AS
111502002-01-30 Andreas Schwab <schwab@suse.de>
11151
11152 * m68klinux-nat.c: Fix last change to use regcache_collect
11153 instead of referencing registers[] directly.
11154
977a3030
AC
111552002-01-29 Andrew Cagney <ac131313@redhat.com>
11156
11157 * parse.c (target_map_name_to_register): Delete code wrapped in
11158 #ifdef REGISTER_NAME_ALIAS_HOOK.
11159
2076c72b
MS
111602002-01-28 Michael Snyder <msnyder@redhat.com>
11161
11162 * regcache.c (legacy_read_register_gen): Need to be able to
11163 read pseudo-register as well as real register.
11164 (legacy_write_register_gen): Ditto.
11165
8fcc723b
AC
111662002-01-28 Andrew Cagney <ac131313@redhat.com>
11167
11168 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11169 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11170 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11171 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11172 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11173 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11174 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11175 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11176 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11177 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11178 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11179 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11180 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11181 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11182 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11183 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11184 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11185 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11186 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11187 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11188
afe64c1a
AC
111892002-01-28 Andrew Cagney <ac131313@redhat.com>
11190
11191 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11192 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11193 (initialize_current_architecture): Update target_byte_order using
11194 information from BFD.
aaa38bb5 11195 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11196 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11197
75bc7ddf
AC
111982002-01-28 Andrew Cagney <ac131313@redhat.com>
11199
11200 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11201 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11202
11203 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11204 #ifdef INVALID_FLOAT.
11205 * infcmd.c (do_registers_info): Ditto.
11206 * values.c (unpack_double): Ditto. Add comment.
11207
11208 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11209 already commented out.
11210
0280a90a
AS
112112002-01-26 Andreas Schwab <schwab@suse.de>
11212
11213 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11214 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11215 registers and add support for PTRACE_GETREGS.
11216
7072a954
AC
112172002-01-24 Andrew Cagney <ac131313@redhat.com>
11218
11219 GDB 5.1.1 released from 5.1 branch.
11220 * NEWS: Add 5.1.1 news.
11221 * README: Sync with 5.1 branch.
11222
86f902e0
FF
112232002-01-23 Fred Fish <fnf@redhat.com>
11224
11225 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11226 stabstring on initial malloc. Reallocing will copy it for us,
11227 if necessary.
11228
8af51c36
EZ
112292002-01-23 Elena Zannoni <ezannoni@redhat.com>
11230
aaa38bb5 11231 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11232 (HFILES_NO_SRCDIR): Remove hpread.h.
11233 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11234 (hpread.o): Update dependencies.
11235 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11236
11237 * hp-psymtab-read.c: Remove file.
11238 * hp-symtab-read.c: Remove file.
11239 * hpread.h: Remove file.
11240
11241 * hpread.c: Merge all contents of hp-psymtab-read.c,
11242 hp-symtab-read.c and hpread.h into this file, as it was prior to
11243 January 1999.
11244
11245 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11246 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11247 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11248 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11249
dc5cfeb6
EZ
112502002-01-23 Elena Zannoni <ezannoni@redhat.com>
11251
11252 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11253 fill_gregset): Call gdbarch_tdep() just once, assign result to
11254 variable and use that, instead of calling the function several
11255 times.
11256
ea87b71b
AO
112572002-01-24 Alexandre Oliva <aoliva@redhat.com>
11258
11259 * configure.host: Accept sparcv9 as alias for sparc64.
11260 * configure.tgt: Likewise.
11261
13fc0c2f
KB
112622002-01-22 Kevin Buettner <kevinb@redhat.com>
11263
11264 * solib-aix5.c (build_so_list_from_mapfile)
11265 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11266 arguments is not reversed.
11267 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11268 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11269
7bd872fe
EZ
112702002-01-22 Elena Zannoni <ezannoni@redhat.com>
11271
11272 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11273 modified version of obsolete sh_fetch_pseudo_register.
11274 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11275 (sh4_register_read): New function.
11276 (sh_pseudo_register_write): New function. Renamed and modified
11277 version of obsolete sh_store_pseudo_register.
11278 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11279 (sh4_register_write): New function.
11280 (sh_gdbarch_init): Remove setting of gdbarch function
11281 fetch_pseudo_register and store_pseudo_register. Remove setting of
11282 register_convert_to_raw, register_convert_to_virtual,
11283 register_convertible.
11284 (sh_sh4_register_convertible): Delete. No longer needed. All is
11285 taken care by architecture specific functions
11286 register_read/register_write.
11287 (sh_sh4_register_convert_to_virtual): Make static.
11288 (sh_sh4_register_convert_to_raw): Ditto.
11289
069e84fd
AC
112902002-01-22 Andrew Cagney <ac131313@redhat.com>
11291
11292 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11293 (floatformat_is_nan, floatformat_mantissa): Ditto.
11294
11295 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11296 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11297 builtin_type_ieee_double_little,
11298 builtin_type_ieee_double_littlebyte_bigword,
11299 builtin_type_m68881_ext, builtin_type_i960_ext,
11300 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11301 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11302 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11303 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11304
211a4f69
CV
113052002-01-22 Corinna Vinschen <vinschen@redhat.com>
11306
11307 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11308 parameter. Set frameless flag if it exists and depended of
11309 whether the scanned function is frameless or not.
11310 (xstormy16_skip_prologue): If function is frameless, return
11311 result of xstormy16_scan_prologue().
11312 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11313 call.
11314
f81353e4
EZ
113152002-01-21 Elena Zannoni <ezannoni@redhat.com>
11316
11317 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11318 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11319 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11320 sh_sh4_register_byte, sh_sh4_register_raw_size,
11321 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11322 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11323 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11324 sh_store_pseudo_register, sh_do_pseudo_register): Call
11325 gdbarch_tdep() just once, assign result to variable and use that,
11326 instead of calling the function several times.
11327
63c73a17
MK
113282002-01-20 Mark Kettenis <kettenis@gnu.org>
11329
11330 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11331 macros instead of LAST_FPU_CTRL_REGNUM.
11332 (store_register): Likewise.
11333
39ad761d
JB
113342002-01-21 Jim Blandy <jimb@redhat.com>
11335
11336 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11337 is up-to-date before running the program, not just when a program
11338 exits.
11339
3d74b771
FF
113402002-01-21 Fred Fish <fnf@redhat.com>
11341
11342 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11343 when we have found all instructions we are looking for.
11344
966fbf70
RE
113452002-01-21 Richard Earnshaw <rearnsha@arm.com>
11346
11347 * arm-tdep.c (arm_register_name): New function.
11348 (arm_registers_names): Make static.
11349 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11350 (arm_register_name): Declare.
11351 (REGISTER_NAME): Use it.
11352
c3b4394c
RE
113532002-01-21 Richard Earnshaw <rearnsha@arm.com>
11354 Kevin Buettner <kevinb@redhat.com>
11355
11356 Convert arm targets to new FRAME interface.
11357 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11358 (arm_frame_find_save_regs): Delete.
11359 (arm_frame_init_saved_regs): New.
11360 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11361 Allocate extra_info as required. Convert all uses of fsr.regs
11362 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11363 to use extra_info.
11364 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11365 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11366 (check_prologue_cache, save_prologue_cache): Likewise.
11367 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11368 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11369 (FRAME_FIND_SAVED_REGS): Delete.
11370 (arm_frame_find_saved_regs): Delete prototype.
11371 (arm_frame_init_saved_regs): New prototype.
11372 (FRAME_INIT_SAVED_REGS): Define.
11373
61d99182
AC
113742002-01-20 Andrew Cagney <ac131313@redhat.com>
11375
11376 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11377
6aaea291
AC
113782002-01-20 Andrew Cagney <ac131313@redhat.com>
11379
11380 From Jeff Law <law@redhat.com>:
11381 * infttrace.c: Include <sys/pstat.h>.
11382 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11383 exec file if the ttrace equivalent fails.
11384
15f698d2
AC
113852002-01-20 Andrew Cagney <ac131313@redhat.com>
11386
11387 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11388 (closeLogFile): Ditto.
11389
f86ddd7c
MC
113902002-01-20 Michael Chastain <mec@shout.net>
11391
11392 * top.c (print_gdb_version): Bump copyright year to 2002.
11393
904507ce
AC
113942002-01-20 Andrew Cagney <ac131313@redhat.com>
11395
11396 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11397 Zannoni and Eli Zaretskii.
11398
d7f0b9ce
DJ
113992002-01-20 Daniel Jacobowitz <drow@mvista.com>
11400
11401 * buildsym.c: Update copyright years.
11402 * c-typeprint.c: Likewise.
11403 * dwarf2read.c: Likewise.
11404 * f-typeprint.c: Likewise.
11405 * gdbtypes.c: Likewise.
11406 * gdbtypes.h: Likewise.
11407 * hp-symtab-read.c: Likewise.
11408 * hpread.c: Likewise.
11409 * mdebugread.c: Likewise.
11410 * p-typeprint.c: Likewise.
11411
3fd3d7d2
AC
114122002-01-20 Andrew Cagney <ac131313@redhat.com>
11413
11414 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11415 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11416 byte-order selectable.
11417 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11418 * arch-utils.c: Ditto.
11419 (set_endian): Ditto.
11420 (set_endian_from_file): Ditto.
11421 * gdbserver/low-sim.c (create_inferior): Ditto.
11422 * gdbarch.sh: Ditto.
11423 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11424 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11425 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11426 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11427 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11428 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11429 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11430 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11431 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11432 macro definition.
11433 * config/mips/tm-wince.h: Remove #undef of macro
11434 TARGET_BYTE_ORDER_SELECTABLE.
11435 * config/sh/tm-wince.h: Ditto.
11436
b02dede2
DJ
114372002-01-20 Daniel Jacobowitz <drow@mvista.com>
11438
11439 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11440 member function fields. Add accessor macro
11441 TYPE_FN_FIELD_ARTIFICIAL.
11442 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11443 * c-typeprint.c (c_type_print_base): Skip artificial member
11444 functions.
11445
c3643761
DJ
114462002-01-20 Daniel Jacobowitz <drow@mvista.com>
11447
11448 * f-typeprint.c: Delete unused function f_type_print_args.
11449 * p-typeprint.c: Delete unused function pascal_type_print_args.
11450
8176bb6d
DJ
114512002-01-20 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11454 comment. Add ``artificial'' to ``union field_location''.
11455
11456 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11457
11458 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11459 * mdebugread.c (parse_symbol): Likewise.
11460 * stabsread.c (define_symbol): Likewise.
11461 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11462 initializing TYPE_FIELD_BITPOS to n (obsolete).
11463 (hpread_doc_function_type): Likewise.
11464 * hpread.c (hpread_function_type): Likewise.
11465
7fd60527
AC
114662002-01-20 Andrew Cagney <ac131313@redhat.com>
11467
11468 * configure.in (host_makefile_frag): Only require a host makefile
11469 fragment when a native build.
11470 * configure: Re-generate.
11471
c2f05ac9
AC
114722002-01-20 Andrew Cagney <ac131313@redhat.com>
11473
11474 * doublest.h (floatformat_from_type): Declare.
11475 * doublest.c (floatformat_from_type): New function.
11476 (convert_typed_floating): Use.
11477
11478 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11479 call to function floatformat_from_type.
11480
11481 * gdbarch.sh (IEEE_FLOAT): Delete.
11482 * gdbarch.h, gdbarch.c: Re-generate.
11483 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11484 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11485 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11486 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11487 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11488 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11489 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11490 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11491 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11492 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11493 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11494 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11495
11496 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11497 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11498 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11499 * sh-tdep.c (sh_gdbarch_init): Ditto.
11500 * mips-tdep.c (mips_gdbarch_init): Ditto.
11501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11502 * cris-tdep.c (cris_gdbarch_init): Ditto.
11503
abf22e64
AJ
115042002-01-20 Jiri Smid <smid@suse.cz>
11505
11506 * configure.host, configure.tgt: Support x86-64.
11507 * NEWS: Note new target x86-64.
11508
b7c4cbf8
AJ
11509 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11510 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11511 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11512 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11513 x86-64-linux-nat.o): Fix dependencies.
11514
82600034
AC
115152002-01-19 Andrew Cagney <ac131313@redhat.com>
11516
11517 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11518 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11519 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11520 * config/sparc/xm-sun4os4.h: Delete file.
11521 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11522
bbe5c628
AC
115232002-01-19 Andrew Cagney <ac131313@redhat.com>
11524
11525 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11526 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11527 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11528 * config/i386/i386lynx.mh (XM_FILE): Delete.
11529 * config/rs6000/xm-rs6000ly.h: Delete file.
11530 * config/sparc/xm-sparclynx.h: Delete file.
11531 * config/m68k/xm-m68klynx.h: Delete file.
11532 * config/i386/xm-i386lynx.h: Delete file.
11533 * config/xm-lynx.h: Delete file.
11534 * config/djgpp/fnchange.lst: Update.
11535
f8453e34
JT
115362002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11537
11538 * alpha-tdep.c (alpha_register_byte): New function.
11539 (alpha_register_raw_size): Ditto.
11540 (alpha_register_virtual_size): Ditto.
11541 (alpha_skip_prologue_internal): Renamed from
11542 alpha_skip_prologue.
11543 (alpha_skip_prologue): New version that calls
11544 alpha_skip_prologue_internal.
11545 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11546 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11547 second argument from alpha_skip_prologue.
11548 (REGISTER_BYTE): Use alpha_register_byte.
11549 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11550 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11551 (FRAMELESS_FUNCTION_INVOCATION): Use
11552 generic_frameless_function_invocation_not.
11553 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11554 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11555
52d9e613
AC
115562002-01-19 Andrew Cagney <ac131313@redhat.com>
11557
11558 * config/mips/xm-news-mips.h: Delete file.
11559 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11560
11561 * config/m88k/xm-m88k.h: Delete file.
11562 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11563 * config/m88k/xm-delta88v4.h: Ditto.
11564 * config/m88k/xm-delta88.h: Ditto.
11565
11566 * config/alpha/xm-fbsd.h: Delete file.
11567 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11568
11569 * config/sparc/xm-sparc.h: Delete file.
11570 * Makefile.in (xm-sun4os4.h): Delete dependency.
11571 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11572 * config/sparc/xm-sun4os4.h: Ditto.
11573 * config/sparc/xm-linux.h: Ditto.
11574
11575 * config/i386/xm-windows.h: Delete file.
11576
2d1b2124
AC
115772002-01-19 Andrew Cagney <ac131313@redhat.com>
11578
11579 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11580 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11581
ee1f65f0
JT
115822002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11583
11584 * alpha-tdep.c (alpha_call_dummy_words): New.
11585 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11586 (CALL_DUMMY_P): Define.
11587 (CALL_DUMMY_WORDS): Define.
11588 (SIZEOF_CALL_DUMMY_WORDS): Define.
11589
98081e55
PB
115902002-01-19 Per Bothner <per@bothner.com>
11591
11592 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11593 isn't NULL, which can happen with some gcj-3.x-produced code.
11594
0d056799
JT
115952002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11596
11597 * alpha-tdep.c (alpha_register_virtual_type): New function.
11598 (alpha_init_frame_pc_first): Ditto.
11599 (alpha_fix_call_dummy): Ditto.
11600 (alpha_store_struct_return): Ditto.
11601 (alpha_extract_struct_value_address): Ditto.
11602 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11603 alpha_register_virtual_type.
11604 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11605 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11606 alpha_extract_struct_value_address.
11607 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11608 (INIT_FRAME_PC): Use init_frame_pc_noop.
11609 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11610
4604bcad
MK
116112002-01-19 Mark Kettenis <kettenis@gnu.org>
11612
11613 * i386gnu-nat.c: Include "i386-tdep.h".
11614 (fetch_fpregs): Simplify code dealing with uninitialized floating
11615 point states such that it doesn't require FP7_REGNUM.
11616
140f9984
JT
116172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11618
abf22e64
AJ
11619 * alpha-tdep.c (frame_extra_info): New.
11620 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11621 frame->extra_info.
11622 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11623 (alpha_frame_saved_pc): Use frame->extra_info.
11624 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11625 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11626 (init_extra_frame_info): Rename to...
11627 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11628 (alpha_print_extra_frame_info): New function.
140f9984
JT
11629 (alpha_frame_locals_address): Ditto.
11630 (alpha_frame_args_address): Ditto.
abf22e64 11631 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11632 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11633 alpha_frame_args_address.
abf22e64 11634 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11635 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11636 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11637 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11638 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11639 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11640
d734c450
JT
116412002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11642
11643 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11644 (alpha_cannot_fetch_register): Ditto.
11645 (alpha_cannot_store_register): Ditto.
11646 (alpha_register_convertible): Ditto.
11647 (alpha_use_struct_convention): Ditto.
11648 * config/alpha/tm-alpha.h: Update copyright years.
11649 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11650 (INNER_THAN): Use core_addr_lessthan.
11651 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11652 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11653 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11654 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11655 (FRAME_CHAIN): Remove unnecessary cast.
11656
b4ceaee6
AC
116572002-01-18 Andrew Cagney <ac131313@redhat.com>
11658
11659 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11660 obsolete.
11661
0a65a603
AC
116622002-01-18 Andrew Cagney <ac131313@redhat.com>
11663
11664 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11665 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11666 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11667 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11668 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11669 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11670 * x86-64-linux-nat.c: Ditto.
11671
636a6dfc
JT
116722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11673
abf22e64 11674 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11675 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11676 (REGISTER_NAME): Define.
11677
acceddb6
JT
116782002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11679
11680 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11681
ec32e4be
JT
116822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11683
11684 * alpha-tdep.c: Update copyright years.
11685 (alpha_next_pc): New function.
11686 (alpha_software_single_step): Ditto.
11687 * config/alpha/tm-alpha.h: Add prototype for
11688 alpha_software_single_step.
11689
e771a871
JT
116902002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11691
11692 * alphabsd-nat.c: Update copyright years.
11693 (fill_gregset): Use regcache_collect.
11694 (fill_fpregset): Likewise.
11695 (fetch_inferior_registers): Only fetch integer registers
11696 if requested to do so.
11697 (store_inferior_registers): Only store integer registers
11698 if requested to do so.
11699
7708fa01
AC
117002002-01-17 Andrew Cagney <ac131313@redhat.com>
11701
11702 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11703 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11704 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11705 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11706 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11707 * config/arm/linux.mh (XDEPFILES): Delete.
11708 * config/arm/nbsd.mh (XDEPFILES): Delete.
11709 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11710 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11711 * config/i386/i386m3.mh (XDEPFILES): Delete.
11712 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11713 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11714 * config/i386/fbsd.mh (XDEPFILES): Delete.
11715 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11716 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11717 * config/i386/i386v4.mh (XDEPFILES): Delete.
11718 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11719 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11720 * config/i386/i386aix.mh (XDEPFILES): Delete.
11721 * config/i386/go32.mh (XDEPFILES): Delete.
11722 * config/i386/cygwin.mh (XDEPFILES): Delete.
11723 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11724 * config/i386/i386mach.mh (XDEPFILES): Delete.
11725 * config/i386/i386v32.mh (XDEPFILES): Delete.
11726 * config/i386/linux.mh (XDEPFILES): Delete.
11727 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11728 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11729 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11730 * config/i386/i386sco.mh (XDEPFILES): Delete.
11731 * config/i386/i386v.mh (XDEPFILES): Delete.
11732 * config/i386/nbsd.mh (XDEPFILES): Delete.
11733 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11734 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11735 * config/i386/symmetry.mh (XDEPFILES): Delete.
11736 * config/i386/obsd.mh (XDEPFILES): Delete.
11737 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11738 * config/ia64/linux.mh (XDEPFILES): Delete.
11739 * config/ia64/aix.mh (XDEPFILES): Delete.
11740 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11741 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11742 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11743 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11744 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11745 * config/m68k/linux.mh (XDEPFILES): Delete.
11746 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11747 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11748 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11749 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11750 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11751 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11752 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11753 * config/m88k/delta88.mh (XDEPFILES): Delete.
11754 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11755 * config/m88k/m88k.mh (XDEPFILES): Delete.
11756 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11757 * config/mips/linux.mh (XDEPFILES): Delete.
11758 * config/mips/irix6.mh (XDEPFILES): Delete.
11759 * config/mips/irix5.mh (XDEPFILES): Delete.
11760 * config/mips/irix4.mh (XDEPFILES): Delete.
11761 * config/mips/irix3.mh (XDEPFILES): Delete.
11762 * config/mips/decstation.mh (XDEPFILES): Delete.
11763 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11764 (NATDEPFILES): Move core-aout.o to here.
11765 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11766 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11767 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11768 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11769 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11770 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11771 * config/pa/hpux11.mh (XDEPFILES): Delete.
11772 * config/powerpc/aix.mh (XDEPFILES): Delete.
11773 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11774 * config/powerpc/linux.mh (XDEPFILES): Delete.
11775 * config/romp/rtbsd.mh: Rename XDEPFILES.
11776 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11777 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11778 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11779 * config/s390/s390.mh (XDEPFILES): Delete.
11780 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11781 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11782 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11783 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11784 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11785 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11786 * config/sparc/linux.mh (XDEPFILES): Delete.
11787 * config/vax/vaxult.mh (XDEPFILES): Delete.
11788 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11789 * Makefile.in (DEPFILES): Remove XDEPFILES.
11790
375fc983
AC
117912002-01-17 Andrew Cagney <ac131313@redhat.com>
11792
11793 * utils.c (internal_verror): Fix comments, default is yes not no.
11794 Update queries to match. Default to quit and dump core.
11795
8926118c
AC
117962002-01-17 Andrew Cagney <ac131313@redhat.com>
11797
11798 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11799 copyright.
11800 * defs.h, event-top.c, gdbcmd.h: Ditto.
11801 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11802 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11803 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11804 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11805 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11806 * mi/mi-main.c:Ditto.
11807
11808 * stack.c, symfile.c: Update copyright.
11809
45b7b345
DJ
118102002-01-17 Daniel Jacobowitz <drow@mvista.com>
11811
db728ff7
DJ
11812 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11813 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11814 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11815 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11816
db728ff7
DJ
118172002-01-17 Daniel Jacobowitz <drow@mvista.com>
11818
11819 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11820 * gdbserver/low-lynx.c (myattach): Likewise.
11821 * gdbserver/low-nbsd.c (myattach): Likewise.
11822 * gdbserver/low-sim.c (myattach): Likewise.
11823 * gdbserver/low-sparc.c (myattach): Likewise.
11824 * gdbserver/low-sun3.c (myattach): Likewise.
11825
11826 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11827
db728ff7 11828 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11829 (main): Handle "--attach".
11830
8de3c354
AC
118312002-01-16 Andrew Cagney <ac131313@redhat.com>
11832
11833 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11834 maintainer.
11835
b0129042
DJ
118362002-01-15 Daniel Jacobowitz <drow@mvista.com>
11837
11838 * c-typeprint.c (is_type_conversion_operator): Add additional
11839 check for non-conversion operators.
11840
ba8679fb 118412002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11842
11843 * linux-proc.c: Add "info proc" command, a la procfs.c.
11844 (read_mapping): New function, abstract and re-use code.
11845 (linux_find_memory_regions): Use new func read_mapping.
11846 (linux_info_proc_cmd): New function, implement "info proc".
11847 (_initialize_linux_proc): Add new command "info proc".
11848
e4f9b4d5
MS
118492002-01-15 Michael Snyder <msnyder@redhat.com>
11850
11851 * symfile.c (generic_load): Use bfd_map_over_sections method
11852 instead of manipulating bfd structure members directly.
11853 (add_section_size_callback): New function, bfd sections callback
11854 used by generic_load.
11855 (load_sections_callback): New function, bfd sections callback
11856 used by generic_load.
11857
08cf96df
EZ
118582002-01-15 Elena Zannoni <ezannoni@redhat.com>
11859
abf22e64 11860 [Based on work by Jim Blandy]
08cf96df
EZ
11861 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11862 (builtin_type_vec128): Export.
11863 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11864 types.
11865 (builtin_type_vec128): New builtin type for 128 bit vector
11866 registers.
11867 (build_gdbtypes): Initialize builtin_type_v16qi and
11868 builtin_type_v8hi. Create the vec128 register builtin type
11869 structure.
11870 (build_builtin_type_vec128): New function.
abf22e64 11871 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11872 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11873 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11874 AltiVec register to new builtin type.
11875
d7242108
DJ
118762001-01-15 Daniel Jacobowitz <drow@mvista.com>
11877
11878 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11879 to make_cv_type.
11880
4ee3352d
AC
118812002-01-14 Andrew Cagney <ac131313@redhat.com>
11882
11883 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11884 CLEAN_UP_REGISTER_VALUE.
11885 * regcache.c (supply_register): Update only call.
11886
f015b2e7
AC
118872002-01-14 Andrew Cagney <ac131313@redhat.com>
11888
11889 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11890 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11891 a29k-*-vxworks* targets as obsolete.
11892
356ae49d
MS
118932002-01-14 Michael Snyder <msnyder@redhat.com>
11894
11895 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11896 until we can resolve portability issues.
11897 * gregset.h: Remove references to fpxregs.
11898 * gcore.c (gcore_command): Initialize note_sec to NULL.
11899
ade8f45e
AC
119002002-01-13 Andrew Cagney <ac131313@redhat.com>
11901
11902 * signals.c (target_signal_to_name): Rewrite. Only use
11903 signals[].name when in bounds and non-NULL.
abf22e64 11904
89c49e7a
AC
119052002-01-13 Andrew Cagney <ac131313@redhat.com>
11906
11907 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11908 * signals.c (target_signal_to_name): Verify that SIG is within the
11909 bounds of the signals array.
11910
4daa9f9f
AC
119112002-01-13 Andrew Cagney <ac131313@redhat.com>
11912
11913 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11914
ba4bbdcb
KS
119152002-01-13 Keith Seitz <keiths@redhat.com>
11916
11917 * stack.c (print_frame_info_base): Print the frame's pc
11918 only if when print_frame_info_listing_hook is not defined.
11919
575bbeb6
KS
119202002-01-13 Keith Seitz <keiths@redhat.com>
11921
11922 * varobj.c (varobj_set_value): Make sure that there were no
11923 errors evaluating the object before attempting to set its
11924 value.
11925 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11926 so this offset adjustment is no longer necessary.
11927 (create_child): Don't set the error flag if the child is
11928 a CPLUS_FAKE_CHILD.
11929 (value_of_child): If value_fetch_lazy fails, return NULL
11930 so that callers will be notified that an error occurred.
11931 (c_value_of_variable): Delay check of variable's validity
11932 until later. We actually want all structs and unions to have
11933 the value "{...}".
11934 Do not return "???" for variables which could not be evaluated.
11935 This error condition must be returned to the caller so that it
11936 can get the error condition from gdb.
11937 (cplus_name_of_child): Adjust index for vptr before figuring
11938 out the name of the child.
11939 (cplus_value_of_child): If a child's (real) parent is not valid,
11940 don't even bother trying to give a value for it. Just return
11941 an error. Change all instances in this function.
11942 (cplus_type_of_child): If our parent is one of the "fake"
11943 parents, we need to get at the type of the real parent, and
11944 derive the child's true type using this information.
11945
b76898ab
AC
119462002-01-13 Andrew Cagney <ac131313@redhat.com>
11947
11948 From 2002-01-09 John Marshall <johnm@falch.net>:
11949 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11950 sources.redhat.com, and tweak some related URLs which had
11951 suffered from linkrot.
11952
b6649e88
AC
119532002-01-13 Andrew Cagney <ac131313@redhat.com>
11954
11955 From Jeff law:
11956 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11957 structures passed in registers.
11958
82cc5033
EZ
119592002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11960
11961 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11962 white space which prevented compilation. Reported by DSK
11963 <dsk@student.unsw.edu.au>.
11964
ba5f2f8a
MS
119652002-01-11 Michael Snyder <msnyder@redhat.com>
11966
fbd35540
MS
11967 * symfile.c (build_section_addr_info_from_section_tab):
11968 Use bfd access method instead of manipulating bfd directly.
11969 (syms_from_objfile): Ditto.
11970 (simple_overlay_update_1): Ditto.
11971 (simple_overlay_update): Ditto.
11972 (generic_load): Ditto.
11973 (overlay_unmapped_address): FIXME comment, bfd access methods.
11974 (sections_overlap): FIXME comment, bfd access methods.
11975 (pc_in_mapped_range): FIXME comment, bfd access methods.
11976 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11977 (section_is_mapped): FIXME comment, bfd access methods.
11978 (section_is_overlay): FIXME comment, bfd access methods.
11979
ba5f2f8a
MS
11980 * symfile.c (generic_load): Whitespace and long line cleanups.
11981 Remove duplicate variable, change several local variables to
11982 more appropriate data types.
11983 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11984
17df2af6
AC
119852002-01-12 Andrew Cagney <ac131313@redhat.com>
11986
11987 From Peter Schauer:
11988 * language.c (longest_local_hex_string_custom): Use phex_nz to
11989 convert NUM to a hex string.
11990
ec920329
EZ
119912002-01-12 Elena Zannoni <ezannoni@redhat.com>
11992
11993 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11994 the function.
538a76d6 11995 Update Copyright year.
ec920329 11996
3abd2e01
AC
119972002-01-12 Andrew Cagney <ac131313@redhat.com>
11998
11999 * language.c (longest_raw_hex_string): Delete unused function.
12000
b21b22e0
PS
120012002-01-11 Petr Sorfa <petrs@caldera.com>
12002
12003 * MAINTAINERS (write-after-approval): Add myself.
12004 * dwarf2read.c (read_tag_string_type): Handling of
12005 DW_AT_byte_size.
12006 (read_tag_string_type): FORTRAN fix to prevent propagation of
12007 first string size.
12008 (set_cu_language): Handling of DW_LANG_Fortran95
12009
747fe712
RE
120102002-01-11 Richard Earnshaw <rearnsha@arm.com>
12011
12012 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12013 GETPID(inferior_ptid).
12014 (store_inferior_registers): Likewise.
12015
f1bea926
JM
120162002-01-10 Jason Merrill <jason@redhat.com>
12017
12018 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12019 Fix DW_OP_minus.
12020
ae940673
AC
120212002-01-10 Andrew Cagney <ac131313@redhat.com>
12022
12023 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12024 and bfd/elf32-sh-nbsd.c.
12025
00546b04
MS
120262002-01-10 Michael Snyder <msnyder@redhat.com>
12027
352ed7b4
MS
12028 * NEWS: Mention --pid and corefile/proc-id behavior change.
12029
c18be923
MS
12030 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12031 * gcore.c: Include cli/cli-decode.h instead of command.h.
12032
00546b04
MS
12033 * main.c (captured_main): Add new command line option "--pid".
12034 If the second command line argument (following the symbol-file)
12035 begins with a digit, try to attach to it before trying to open
12036 it as a corefile.
12037 (print_gdb_help): Document the "--pid" argument.
12038
db60ec62
EZ
120392002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12040
12041 * completer.c (command_completer): New function.
12042
12043 * completer.h <command_completer>: Add prototype.
12044
12045 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12046 completer for the "help" command.
12047
39c22d1a
JM
120482002-01-09 Jason Merrill <jason@redhat.com>
12049
12050 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12051
c564377f
MS
120522002-01-09 Michael Snyder <msnyder@redhat.com>
12053
975aec09
MS
12054 * i386-linux-nat.c (fill_fpxregset): Make global.
12055 (store_fpxregset): Ditto.
12056
db4a10fa
MS
12057 * gregset.h (gdb_fpxregset_t): Define.
12058 (supply_fpxregset): Prototype.
12059 (fill_fpxregset): Prototype.
12060
c564377f
MS
12061 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12062
c3d45d70
RE
120632002-01-09 Richard Earnshaw <rearnsha@arm.com>
12064
12065 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12066 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12067 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12068
fcc87af1
AC
120692002-01-09 Andrew Cagney <ac131313@redhat.com>
12070
12071 * MAINTAINERS: Update target maintainer rules so that any
12072 Maintainer can approve a tested patch for a maintenance-only
12073 target.
12074
dd96c05b
RE
120752002-01-09 Richard Earnshaw <rearnsha@arm.com>
12076
d4297db9 12077 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 12078
d4297db9 12079 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
12080 IN_SIGTRAMP.
12081
145fdc6e
MS
120822002-01-08 Michael Snyder <msnyder@redhat.com>
12083
12084 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12085 real name of the executable, rather than the /proc name.
12086
be4d1333
MS
120872002-01-03 Michael Snyder <msnyder@redhat.com>
12088
12089 Implement a "generate-core-file" command in gdb, save target state.
12090 * gcore.c: New file. Implement new command 'generate-core-file'.
12091 Save a corefile image of the current state of the inferior.
12092 * linux-proc.c: Add linux-specific code for saving corefiles.
12093 * target.h (struct target_ops): Add new target vectors for saving
12094 corefiles; to_find_memory_regions and to_make_corefile_notes.
12095 (target_find_memory_regions): New macro.
12096 (target_make_corefile_notes): New macro.
12097 * target.c (update_current_target): Inherit new target methods.
12098 (dummy_find_memory_regions): New place-holder method.
12099 (dummy_make_corefile_notes): New place-holder method.
12100 (init_dummy_target): Initialize new dummy target vectors.
12101 * exec.c (exec_set_find_memory_regions): New function.
12102 Allow the exec_ops vector for memory regions to be taken over.
12103 (exec_make_note_section): New function, target vector method.
12104 * defs.h (exec_set_find_memory_regions): Export prototype.
12105 * procfs.c (proc_find_memory_regions): New function, corefile method.
12106 (procfs_make_note_section): New function, corefile method.
12107 (init_procfs_ops): Set new target vector pointers.
12108 (find_memory_regions_callback): New function.
12109 (procfs_do_thread_registers): New function.
12110 (procfs_corefile_thread_callback): New function.
12111 * sol-thread.c (sol_find_memory_regions): New function.
12112 (sol_make_note_section): New function.
12113 (init_sol_thread_ops): Initialize new target vectors.
12114 * inftarg.c (inftarg_set_find_memory_regions): New function.
12115 Allow to_find_memory_regions vector to be taken over.
12116 (inftarg_set_make_corefile_notes): New function.
12117 Allow to_make_corefile_notes vector to be taken over.
12118 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12119 interface layer if not target_has_execution (may be a corefile).
12120 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12121 * config/sparc/sun4sol2.mh: Ditto.
12122 * config/alpha/alpha-linux.mh: Ditto.
12123 * config/arm/linux.mh: Ditto.
12124 * config/i386/x86-64linux.mh: Ditto.
12125 * config/ia64/linux.mh: Ditto.
12126 * config/m68k/linux.mh: Ditto.
12127 * config/mips/linux.mh: Ditto.
12128 * config/powerpc/linux.mh: Ditto.
12129 * config/sparc/linux.mh: Ditto.
12130
c6b92abd
MS
121312002-01-07 Michael Snyder <msnyder@redhat.com>
12132
12133 * arm-linux-nat.c: Remove references to regcache.c internal data
12134 (registers[] and register_valid[]).
12135
4b09dc8c
MS
121362002-01-07 Michael Snyder <msnyder@redhat.com>
12137
abf22e64
AJ
12138 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12139 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12140 symbol file and shlibs.
12141 * Makefile.in: Add rule for linux-proc.o.
12142 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12143 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12144 * config/arm/linux.mh: Ditto.
12145 * config/i386/linux.mh: Ditto.
12146 * config/i386/x86-64linux.mh: Ditto.
12147 * config/ia64/linux.mh: Ditto.
12148 * config/m68k/linux.mh: Ditto.
12149 * config/mips/linux.mh: Ditto.
12150 * config/powerpc/linux.mh: Ditto.
12151 * config/sparc/linux.mh: Ditto.
12152
c25b74ac
PM
121532002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12154
12155 * win32-nat.c: Add i386-tdep.h dependency.
12156
94cd915f
MS
121572002-01-07 Michael Snyder <msnyder@redhat.com>
12158
c7cccb76
MS
12159 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12160 instead of bfd_get_arch_size. Don't bail out just because
12161 there's no exec_bfd.
abf22e64 12162
34c0bd93
MS
12163 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12164 * p-valprint.c (pascal_object_print_value): Ditto.
12165 * somread.c (som_symtab_read): Ditto.
12166 * symfile.c (simple_free_overlay_region_table): Ditto.
12167 * valops.c (value_assign): Ditto.
12168
21c1c920
MS
12169 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12170 use tilde_expand and strerror for opening save-tracepoints file.
12171
5bbd998e
MS
12172 * thread-db.c (thread_db_new_objfile): Indendation fix.
12173
94cd915f
MS
12174 * infptrace.c (GDB_MAX_ALLOCA): New define.
12175 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12176 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12177 can be overridden with whatever value is appropriate to the host).
12178 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12179 alloca to allocate potentially large buffer.
12180 * rs6000-nat.c (child_xfer_memory): Ditto.
12181 * symm-nat.c (child_xfer_memory): Ditto.
12182 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12183
494e8a93
JSC
121842002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12185
12186 From Nick Clifton <nickc@redhat.com>
12187 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12188
d0e1d48e
MS
121892002-01-07 Michael Snyder <msnyder@redhat.com>
12190
abf22e64 12191 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12192 Don't use exec_bfd if it's NULL.
12193
290b2c7a
MK
121942002-01-06 Mark Kettenis <kettenis@gnu.org>
12195
abf22e64 12196 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12197
aef21287
AC
121982002-01-06 Andrew Cagney <ac131313@redhat.com>
12199
12200 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12201 * gnu-nat.c: Ditto.
12202
30efa627
AC
122032002-01-06 Andrew Cagney <ac131313@redhat.com>
12204
12205 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12206 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12207 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12208 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12209 z8k-coff have not been multi-arched. Update z8k-coff build
12210 status.
12211
9b4ff276
AC
122122002-01-06 Andrew Cagney <ac131313@redhat.com>
12213
12214 * MAINTAINERS: Mark a29k target as obsolete.
12215 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12216 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12217 comments.
12218 * NEWS: Note that a29k targets are obsolete.
12219 * a29k-tdep.c: Mark as obsolete.
12220 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12221 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12222 a29k-*-vxworks* targets as obsolete.
12223 * remote-adapt.c: Obsolete.
12224 * remote-eb.c: Obsolete.
12225 * remote-mm.c: Obsolete.
12226 * remote-udi.c: Obsolete.
12227 * config/a29k/a29k-udi.mt: Obsolete.
12228 * config/a29k/a29k.mt: Obsolete.
12229 * config/a29k/tm-a29k.h: Obsolete.
12230 * config/a29k/tm-vx29k.h: Obsolete.
12231 * config/a29k/vx29k.mt: Obsolete.
12232
a9011d31
AC
122332002-01-05 Andrew Cagney <ac131313@redhat.com>
12234
12235 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12236 with BFD_ENDIAN_BIG.
12237
9299404e
AC
122382002-01-05 Andrew Cagney <ac131313@redhat.com>
12239
12240 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12241 * configure, config.in: Re-generate.
12242 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12243 * defs.h: Do not include <endian.h>.
12244
7e89e357
JT
122452002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12246
12247 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12248 * config.in: Regenerate.
12249 * configure.in: Update copyright years.
12250 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12251 * configure: Regenerate.
12252 * i386bsd-nat.c: Update copyright years.
12253 (fill_gregset): Use regcache_collect.
12254 (fetch_inferior_registers): Only fetch integer registers
12255 if requested to do so. Add support for XMM registers
12256 using PT_GETXMMREGS.
12257 (store_inferior_registers): Only store integer registers
12258 if requested to do so. Add support for XMM registers
12259 using PT_SETXMMREGS.
12260 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12261 (store_inferior_registers): Remove.
12262 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12263 (fetch_elfcore_registers): New function.
12264 (i386nbsd_elfcore_fns): New.
12265 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12266 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12267 i386bsd-nat.o.
12268 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12269 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12270 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12271 * config/i386/tm-nbsd.h: Update copyright years.
12272 (HAVE_SSE_REGS): Define.
12273 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12274 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12275 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12276 (SIGCONTEXT_PC_OFFSET): Remove.
12277 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12278
a752853e
AC
122792002-01-05 Andrew Cagney <ac131313@redhat.com>
12280
12281 * configure.tgt: Remove powerpc-*-macos* target.
12282 * config/m68k/xm-mpw.h: Delete file.
12283 * config/xm-mpw.h: Delete file.
12284 * ser-mac.c: Delete file.
12285 * mpw-make.sed: Delete file.
12286 * mpw-config.in: Delete file.
12287 * mac-xdep.c: Delete file.
12288 * mac-gdb.r: Delete file.
12289 * mac-defs.h: Delete file.
12290 * mac-nat.c: Delete file.
12291 * config/powerpc/macos.mh: Delete file.
12292 * config/powerpc/macos.mt: Delete file.
12293 * config/powerpc/nm-macos.h: Delete file.
12294 * config/powerpc/tm-macos.h: Delete file.
12295 * source.c (openp, open_source_file): Remove obsolete code.
12296 * top.c (gdb_readline): Ditto.
12297 * utils.c (query): Ditto.
12298 * event-top.c (display_gdb_prompt): Ditto.
12299 * Makefile.in (ser-mac.o): Delete obsolete target.
12300 * NEWS: Update.
12301
d7449b42
AC
123022002-01-04 Andrew Cagney <ac131313@redhat.com>
12303
12304 * defs.h (BIG_ENDIAN): Delete macro definition.
12305 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12306 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12307 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12308 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12309 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12310 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12311 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12312 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12313 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12314 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12315 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12316 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12317 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12318 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12319 * gdbarch.c: Re-generate.
12320
356374e8
DJ
123212002-01-04 Daniel Jacobowitz <drow@mvista.com>
12322
12323 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12324 for core files.
12325
a2b8f8f8
JT
123262002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12327
12328 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12329
12466af9
AC
123302002-01-04 Andrew Cagney <ac131313@redhat.com>
12331
12332 * value.h (value_ptr): Delete typedef.
12333
3549ab40
JT
123342002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12335
12336 * i386nbsd-nat.c: Update copyright years.
12337 Include i386-tdep.h.
12338
fedbd091
EZ
123392002-01-04 Elena Zannoni <ezannoni@redhat.com>
12340
12341 * stabsread.c: Update copyright years.
12342
12343 From Debashis Mahata <debashis.mahata@wipro.com>:
12344 (read_struct_fields): Deal with Sun C compiler erroneous stab
12345 output for structs and unions.
fec8b34f 12346 Fix PR gdb/269.
fedbd091 12347
eb43544b
DJ
123482002-01-04 Daniel Jacobowitz <drow@mvista.com>
12349
12350 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12351 prototype.
12352
1514d34e
DJ
123532002-01-04 Daniel Jacobowitz <drow@mvista.com>
12354
12355 * cp-abi.c: Fix whitespace.
12356 (baseclass_offset): New wrapper function.
12357 * cp-abi.h (baseclass_offset): Add prototype.
12358 (struct cp_abi_ops): Add baseclass_offset pointer.
12359
12360 * valops.c (vb_match): Move to...
12361 * gnu-v2-abi.c (vb_match): here.
12362 * valops.c (baseclass_offset): Move to...
12363 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12364
12365 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12366
12367 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12368 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12369 * hpacc-abi.c (init_hpacc_ops): Likewise.
12370
7f8c9282
DJ
123712002-01-04 Daniel Jacobowitz <drow@mvista.com>
12372
12373 * valops.c (find_overload_match): Accept obj as a
12374 reference parameter. Update it before returning.
12375 * value.h (find_overload_match): Update prototype.
12376 * eval.c (evaluate_subexp_standard): Pass object to
12377 find_overload_match by reference.
12378
f23631e4
AC
123792002-01-03 Andrew Cagney <ac131313@redhat.com>
12380
12381 * valarith.c: Replace value_ptr with struct value pointer. Remove
12382 register attribute from value declarations.
12383 * valops.c: Ditto.
12384 * value.h: Ditto.
12385 * scm-lang.c (scm_lookup_name): Ditto.
12386
79e10fab 123872002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12388
79e10fab
AC
12389 Abstract the functionality of iterating over mapped memory
12390 regions into a general purpose iterator function.
abf22e64 12391 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12392 iterator for memory sections.
12393 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12394 (solib_mappings_callback): New function, callback for above.
12395 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12396 (info_mappings_callback): New function, callback for above.
12397
12398 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12399
c5ad026a
MK
124002002-01-01 Mark Kettenis <kettenis@gnu.org>
12401
d2a7c97a
MK
12402 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12403 * i386-tdep.c: Include "elf-bfd.h".
12404 (process_note_abi_tag_sections): New function.
12405 (i386_gdbarch_init): Add code to recognize various OS/ABI
12406 combinations.
12407
c5ad026a
MK
12408 * maint.c (_initialize_maint_cmds): Add missing \ in
12409 string-literal.
12410
a1a5b71e 12411For older changes see ChangeLog-2001
c906108c
SS
12412\f
12413Local Variables:
12414mode: change-log
12415left-margin: 8
12416fill-column: 74
12417version-control: never
12418End:
This page took 0.866362 seconds and 4 git commands to generate.