2002-11-05 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8155455b
DC
12002-11-05 David Carlton <carlton@math.stanford.edu>
2
3 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
4 functions.
5 (lookup_symbol_aux_local): New function.
6 (lookup_symbol_aux_symtabs): New function.
7 (lookup_symbol_aux_psymtabs): New function.
8
29924310
DC
92002-11-05 David Carlton <carlton@math.stanford.edu>
10
11 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
12 previous values of 'objfile' and 'block'.
13
cc303028
PM
142002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
15
16 * values.c (value_change_enclosing_type): Set
17 enclosing_type field correctly also for the case where
18 more memory needs to be allocated.
19
1d70089a
MK
202002-11-03 Mark Kettenis <kettenis@gnu.org>
21
f16a25ae
MK
22 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
23 of puts_filtered.
24
1d70089a
MK
25 * i387-tdep.c (i387_print_float_info): Replace calls to
26 register_read and deprecated_read_register_gen with calls to
27 frame_register_read, and make the necessary adjustments to the
28 surrounding code.
29
7e20f3fb
AC
302002-11-02 Andrew Cagney <ac131313@redhat.com>
31
32 * gdbarch.sh (register_reggroup_p): Allow default value.
33 * gdbarch.h, gdbarch.c: Regenerate.
34
192dbe33
AC
352002-11-02 Andrew Cagney <ac131313@redhat.com>
36
37 * regcache.h: Add coment indicating replacements for deprecated
38 functions.
39
b59ff9d5
AC
402002-11-02 Andrew Cagney <cagney@redhat.com>
41
42 * reggroups.h, reggroups.c: New files.
43 * regcache.c: Include "reggroups.h".
44 (enum regcache_dump_what): Add `regcache_dump_groups'.
45 (regcache_dump): Contract size of the "Type" column. When
46 specified, dump the register's groups.
47 (maintenance_print_register_groups): New function.
48 (_initialize_regcache): Add command `maint print register-groups'.
49 * Makefile.in (COMMON_OBS): Add reggroups.o
50 (SFILES): Add reggroups.c.
51 (reggroups_h): Define.
52 (regcache.o, gdbarch.o): Update dependencies.
53 (reggroups.o): Specify dependencies.
54 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
55 Add opaque declaration for `struct reggroup' in generated .h file.
56 Include "reggroups.h" in generated .c file.
57 gdbarch.h, gdbarch.c: Re-generate.
58
4caf0990
AC
592002-11-02 Andrew Cagney <cagney@redhat.com>
60
61 * regcache.h (deprecated_read_register_gen): Rename
62 read_register_gen.
63 (deprecated_write_register_gen): Rename write_register_gen.
64 * i387-tdep.c: Update.
65 * x86-64-linux-nat.c: Update
66 * wince.c: Update.
67 * thread-db.c: Update.
68 * win32-nat.c: Update.
69 * mips-tdep.c: Update.
70 * d10v-tdep.c: Update.
71 * cris-tdep.c: Update.
72 * remote-sim.c: Update.
73 * remote-rdi.c: Update.
74 * remote-rdp.c: Update.
75 * frame.c: Update.
76 * target.c: Update.
77 * blockframe.c: Update.
78 * x86-64-tdep.c: Update.
79 * xstormy16-tdep.c: Update.
80 * sh-tdep.c: Update.
81 * s390-tdep.c: Update.
82 * rs6000-tdep.c: Update.
83 * sparc-tdep.c: Update.
84 * i386-tdep.c: Update.
85 * dwarf2cfi.c: Update.
86 * regcache.c: Update.
87
7a7adcdf
JB
882002-11-01 Joel Brobecker <brobecker@gnat.com>
89
90 New interix-specific files:
91 * config/i386/nm-interix.h: New file.
92 * config/i386/interix.mh: New file.
93 * config/i386/interix.mt: New file.
94 * i386-interix-nat.c: New file.
95 * i386-interix-tdep.c: New file.
96
bdcdd535
AC
972002-11-01 Andrew Cagney <cagney@redhat.com>
98
99 * frame.h (deprecated_generic_get_saved_register): Rename
100 generic_get_saved_register.
101 * blockframe.c (deprecated_generic_get_saved_register): Update.
102 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
103 (xstormy16_frame_saved_register): Update.
104 * sh-tdep.c (sh_gdbarch_init): Update.
105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
106 * ia64-tdep.c (ia64_get_saved_register): Update.
107 * cris-tdep.c (cris_gdbarch_init): Update.
108 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
109 * arm-tdep.c (arm_gdbarch_init): Update.
110
2a4b7c45
DJ
1112002-10-31 Daniel Jacobowitz <drow@mvista.com>
112
113 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
114
ef17e74b
DJ
1152002-10-31 Daniel Jacobowitz <drow@mvista.com>
116
117 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
118 trampolines in sigaction.
119
4904ba5b
AC
1202002-10-31 Andrew Cagney <cagney@redhat.com>
121
122 * h8300-tdep.c: Include "gdb_assert.h".
123 (h8300_print_register): Add gdbarch, file and frame parameters.
124 Use frame_read_unsigned_register to read the register's value.
125 Use fprintf_filtered to display output.
126 (h8300_print_registers_info): Replace h8300_do_registers_info.
127 (h8300_gdbarch_init): Set print_registers_info.
128
f908a0eb
AC
1292002-10-31 Andrew Cagney <cagney@redhat.com>
130
131 * frame.c (frame_read_unsigned_register): New function.
132 (frame_read_signed_register): New function.
133 * frame.h (frame_read_unsigned_register): Declare.
134 (frame_read_signed_register): Declare.
135
c5646e11
AC
1362002-10-31 Andrew Cagney <cagney@redhat.com>
137
138 * h8500-tdep.c (h8500_print_registers_info): New static function,
139 clone of infcmd.c's default_print_registers_info.
140 (h8500_do_registers_info): New funtion.
141 (h8500_print_register_hook): Rename print_register_hook, make
142 static.
143
144 * config/h8500/tm-h8500.h: Update copyright.
145 (DEPRECATED_DO_REGISTERS_INFO): Define.
146 (h8500_do_registers_info: Declare.
147 (PRINT_REGISTER_HOOK): Delete macro.
148 (print_register_hook): Delete function.
149
0bdd672b
AC
1502002-10-31 Andrew Cagney <cagney@redhat.com>
151
152 * z8k-tdep.c (z8k_print_register_hook): Make static.
153 (z8k_print_registers_info): New static function, clone of
154 infcmd.c's default_print_registers_info.
155 (z8k_do_registers_info): New function. Wrap
156 z8k_print_registers_info.
157 * config/z8k/tm-z8k.h: Update copyright.
158 (PRINT_REGISTER_HOOK): Delete macro.
159 (z8k_print_register_hook): Delete declaration.
160 (DEPRECATED_DO_REGISTERS_INFO): Define.
161 (z8k_do_registers_info): Declare.
162
bf9c25dc
JB
1632002-10-30 Joel Brobecker <brobecker@gnat.com>
164
165 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
166 as this is already provided by value.h, and was actually causing
167 a compilation error because of a conflict in parameter type
168 declaration due to a missing const keyword.
169 (low_text_segment_addres): Fix a compilation warning.
170
2c665b51
DJ
1712002-10-29 Daniel Jacobowitz <drow@mvista.com>
172
173 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
174 registers without a name.
175 (mips_linux_cannot_store_register): Don't store registers without
176 a name.
177
e70ea697
DC
1782002-10-28 David Carlton <carlton@math.stanford.edu>
179
180 * symtab.c (find_addr_symbol): Delete. (It was already commented
181 out.)
182 * symtab.h: Delete prototype for find_addr_symbol.
183
903ad3a6
AC
1842002-10-26 Andrew Cagney <cagney@redhat.com>
185
186 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
187 DO_REGISTERS_INFO.
188 gdbarch.h, gdbarch.c: Re-generate.
189 * infcmd.c (default_print_registers_info): Update reference.
190 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
191 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
192 * sh-tdep.c (sh_gdbarch_init): Ditto.
193 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
194 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
195
ab91194c
MK
1962002-10-26 Mark Kettenis <kettenis@gnu.org>
197
e3033f15
MK
198 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
199 cfi_init_extra_frame_info.
200 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
201 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
202
b83b026c
MK
203 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
204 target where necessary. Add more comments and remove the ones
205 that don't provide any useful information.
206
267bf4bb
MK
207 * i386-tdep.c (i386_frame_saved_pc): Replace call to
208 deprecated_read_register_dummy with
209 frame_unwind_unsigned_register.
210
751f1375
MK
211 * i386-tdep.c (i386_extract_struct_value_address): Use
212 regcache_raw_read_unsigned instead of
213 regcache_cooked_read_unsigned since we know that the register
214 we're reading isn't a pseudo register. Rename variable 'val' into
215 the more descriptive 'addr'.
216
26abbdc4
MK
217 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
218 (x86_64_push_return_address): Add comment.
219 (x86_64_pop_frame): Make static.
220 (examine_argument): Clarify comment.
221 (x86_64_skip_prologue): Make prolog_expact variable static.
222
9f1549cc
MK
223 * dwarf2cfi.c: Fix some formatting problems.
224 (context_cpy, read_encoded_pointer): Clarify comments.
225
ab91194c
MK
226 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
227 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
228 i386 target back into x86_64_gdbarch_init. Add some comments and
229 remove meaningless ones.
230
72367fb4
AC
2312002-10-25 Andrew Cagney <cagney@redhat.com>
232
233 * complaints.h (struct deprecated_complaint): Rename `struct
234 complaint'.
235 * complaints.c (complain): Update.
236 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
237 incorrect comment indicating that "symfile.h" was being included
238 for the `struct complaint' definition.
239 * remote-vx.c: Update.
240 * objc-lang.c: Update.
241 * xcoffread.c: Update.
242 * hpread.c: Update.
243 * mdebugread.c: Update.
244 * stabsread.c: Update.
245 * dwarf2read.c: Update.
246 * dwarfread.c: Update.
247 * elfread.c: Update.
248 * coffread.c: Update.
249 * stabsread.h: Update.
250 * dbxread.c: Update.
251 * buildsym.c: Update.
252 * gdbtypes.c: Update.
253 * macrotab.c: Update.
254
1f2baacc
MK
2552002-10-25 Mark Kettenis <kettenis@gnu.org>
256
0c1a73d6
MK
257 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
258 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
259 (x86_64_init_abi): ...new function.
260
6aee4d54 261 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
262 * i386v-nat.c: Include "i386-tdep.h".
263
8f9cbe01
AC
2642002-10-25 Andrew Cagney <cagney@redhat.com>
265
5f11f355
AC
266 * gdbtypes.c (address_space_name_to_int): Update.
267 (address_space_int_to_name): Update.
268 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
269 multi-arch predicate.
270 (address_class_name_to_type_flags): Ditto.
271 * gdbarch.h, gdbarch.c: Re-generate.
272
8f9cbe01
AC
273 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
274
e8d96a5d
MH
2752002-10-24 Martin M. Hunt <hunt@redhat.com>
276
277 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
278
fe39c653
EZ
2792002-10-24 Elena Zannoni <ezannoni@redhat.com>
280
281 * symtab.h (INIT_SAL): Delete macro.
282 (init_sal): Export.
283 * symtab.c (init_sal): New function.
284
285 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
286 to init_sal function call.
287 (find_sal_from_funcs_and_line): Ditto.
288 (all_sals_for_line): Ditto.
289 * breakpoint.c (create_internal_breakpoint): Ditto.
290 (create_fork_vfork_event_catchpoint): Ditto.
291 (create_exec_event_catchpoint): Ditto.
292 (parse_breakpoint_sals): Ditto.
293 (watch_command_1): Ditto.
294 (handle_gnu_4_16_catch_command): Ditto.
295 (clear_command): Ditto.
296 * hppa-tdep.c (child_enable_exception_callback): Ditto.
297 * infcmd.c (run_stack_dummy): Ditto.
298 * infrun.c (process_event_stop_test): Ditto.
299 (check_sigtramp2): Ditto.
300 (step_over_function): Ditto.
301 * linespec.c (decode_line_2): Ditto.
302 (decode_line_1): Ditto.
303 * source.c (line_info): Ditto.
304 * symtab.c (find_pc_sect_line): Ditto.
305
baed091b
ML
3062002-10-24 Michal Ludvig <mludvig@suse.cz>
307
308 * dwarf2cfi.c (struct context)
309 (struct context_reg): Moved to dwarf2cfi.h
310 (context_alloc, frame_state_alloc, context_cpy):
311 Made extern instead of static, removed prototypes.
312 * dwarf2cfi.h (struct context)
313 (struct context_reg): New, moved from dwarf2cfi.c
314 (context_alloc, frame_state_alloc, context_cpy):
315 New prototypes.
316 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
317 Changed from static to extern.
318 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
319 (LINUX_SIGCONTEXT_FP_OFFSET)
320 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
321 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
322 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
323 * x86-64-tdep.c (x86_64_gdbarch_init): Several
324 set_gdbarch_*() calls now use x86-64 specific functions
325 instead of DWARF2 CFI ones.
326 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
327 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
328 (x86_64_init_extra_frame_info): New prototypes.
329
c38da1af
DC
3302002-10-23 David Carlton <carlton@math.stanford.edu>
331
332 * linespec.c: #include "parser-defs.h".
333 Delete prototype for find_template_name_end.
334 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
335
fb9b6b35
JJ
3362002-10-23 Jeff Johnston <jjohnstn@redhat.com>
337
338 * NEWS: add recent mi fixes.
339 * varobj.c (struct varobj): Add new "updated" flag.
340 (new_variable): Default "updated" flag to 0.
341 (varobj_set_value): Set "updated" flag to 1 if value
342 changes.
343 (varobj_update): Check varobj "updated" flag before
344 comparing old and refreshed values. Fix for
345 PR gdb/702.
346
8da065d5
DC
3472002-10-23 David Carlton <carlton@math.stanford.edu>
348
349 * parse.c (parse_exp_1): Use BLOCK_START.
350 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
351 SYMBOL_BLOCK_VALUE.
352 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
353
87f2f08c
DC
3542002-10-23 David Carlton <carlton@math.stanford.edu>
355
356 * symtab.c: Delete cplusplus_hint.
357 Delete prototype for find_template_name_end.
358
88cda038
EZ
3592002-10-23 Elena Zannoni <ezannoni@redhat.com>
360
361 * symtab.h: Update comment.
362
2625d86c
MS
3632002-10-23 Michael Snyder <msnyder@redhat.com>
364
365 * printcmd.c (address_info): Restore quotes in output.
366 * valops.c (value_of_local): Restore quotes in error message.
367
9cc0d196
EZ
3682002-10-23 Elena Zannoni <ezannoni@redhat.com>
369
370 * symtab.c (symbol_demangled_name): New function.
371 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
372 turning most of it into a function.
373 (symbol_demangled_name): Export.
374
19de93d0
MS
3752002-10-23 Michael Snyder <msnyder@redhat.com>
376
377 * valops.c (value_of_local): Restore quotes in error message.
378
89aad1f9
EZ
3792002-10-23 Elena Zannoni <ezannoni@redhat.com>
380
381 * symtab.c (symbol_init_language_specific): New function.
382 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
383 turning most of it into a function.
384 (symbol_init_language_specific): Export.
385
d9fa45fe
DC
3862002-10-23 David Carlton <carlton@math.stanford.edu>
387
388 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
389 (dwarf_attr_name): Ditto.
390 (dwarf_type_encoding_name): Ditto.
391 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
392 (process_die): Handle DW_TAG_namespace,
393 DW_TAG_imported_declaration, DW_TAG_imported_module.
394 (read_namespace): New function.
395
1045b512
JB
3962002-10-22 Joel Brobecker <brobecker@gnat.com>
397
398 * configure.in: Define NEW_PROC_API on Interix too.
399 * configure: Regenerate.
400
4012002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
402
403 * configure: Regenerate using the proper version of autoconf.
404
3987b9d4
EZ
4052002-10-21 Elena Zannoni <ezannoni@redhat.com>
406
407 * findvar.c (read_var_value): Temporarily disable TLS code, until
408 complete TLS support is added.
409
9d774e44
EZ
4102002-10-21 Jim Blandy <jimb@redhat.com>
411 Elena Zannoni <ezannoni@redhat.com>
412
413 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
414 for thread local storage locations.
415 (struct symbol): Add objfile field.
416 (SYMBOL_OBJFILE): Define.
417 * dwarf2read.c (is_thread_local): New static variable.
418 (new_symbol): If variable is in thread local fill in address class
419 and objfile appropriately.
420 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
421 stack operation.
422 * printcmd.c (address_info): Print the information for thread
423 local storage variable.
424 * findvar.c (read_var_value): In case of thread local variable,
425 defer to the target vector code to compute address.
426
bc4a16ae
EZ
4272002-10-21 Elena Zannoni <ezannoni@redhat.com>
428
429 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
430 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
431
407caf07
EZ
4322002-10-21 Elena Zannoni <ezannoni@redhat.com>
433
434 * symtab.h (address_class): Rename
435 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
436 * hpread.c (hpread_process_one_debug_symbol): Ditto.
437 * printcmd.c (address_info): Ditto.
438 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
439
005328e3
MK
4402002-10-20 Mark Kettenis <kettenis@gnu.org>
441
afdb036a
MK
442 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
443 DBREG_DRX macro to acces debug registers.
444
ca02e098
MK
445 * Makefile.in (i386obsd-tdep.o): New target.
446
03cc47f7
MK
447 * solib-sunos.c: Include "bcache.h" and "regcache.h".
448 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
449
005328e3
MK
450 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
451 * config/i386/obsd.mt: New file.
452 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
453 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
454 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
455 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
456 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
457 * i386obsd-tdep.c: New file.
458
9c96f9f2
AF
4592002-10-19 Adam Fedor <fedor@gnu.org>
460
461 * objc-exp.y (name_not_typename): Fix invalid comment.
462
ce1ed485
MK
4632002-10-20 Mark Kettenis <kettenis@gnu.org>
464
465 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
466 to allocate partial syms and macro byte caches.
467
1efc7aaa
DC
4682002-10-18 David Carlton <carlton@math.stanford.edu>
469
470 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
471
7e1d63ec
AF
4722002-10-18 Adam Fedor <fedor@gnu.org>
473
474 * stabsread.c (find_name_end): New function.
475 (define_symbol): Use it.
476
6e8d29a9
DJ
4772002-10-18 Daniel Jacobowitz <drow@mvista.com>
478
479 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
480 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
481 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
482 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
483
1efc7aaa 4842002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
485
486 * symfile.h: Add opaque declaration for struct obstack.
487 Declare obsavestring to take a const char *.
488 * symfile.c (obsavestring): Make first argument a const char *.
489
1aeae86e
AF
4902002-10-16 Adam Fedor <fedor@gnu.org>
491
492 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
493 names when matching breakpoints in current file.
494
8b2dbe47
KB
4952002-10-16 Kevin Buettner <kevinb@redhat.com>
496
497 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
498 (read_tag_pointer_type): Add address class support.
499 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
500 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
501 New methods.
502 * gdbarch.h, gdbarch.c: Regenerate.
503 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
504 (make_type_with_address_space, recursive_type_dump): Add address
505 class support.
506 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
507 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
508 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
509
74451869
KD
5102002-10-16 Klee Dienes <kdienes@apple.com>
511
512 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
513 to get the last character of a char[] buffer, not
514 name[sizeof(vptr_name)-1].
515
ff4cb3e8
AF
5162002-10-14 Adam Fedor <fedor@gnu.org>
517
518 * symtab.h: New objc_specific struct.
519 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
520 (SYMBOL_DEMANGLED_NAME): Likewise.
521
da2cf7e0
AF
5222002-10-14 Adam Fedor <fedor@gnu.org>
523
524 * symfile.c (init_filename_language_table): Add ObjC file extension.
525
4a351cef
AF
5262002-10-14 Adam Fedor <fedor@gnu.org>
527
528 * utils.c (puts_filtered_tabular): New function.
529 (fprintf_symbol_filtered): Get ObjC demangled name.
530 * defs.h (puts_filtered_tabular): Declared.
531
9750e763
KB
5322002-10-14 Kevin Buettner <kevinb@redhat.com>
533
534 * c-lang.h (c_type_print_varspec_prefix): Delete.
535 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
536 ``need_post_space'' parameter. Adjust all callers.
537
eee771c1
DJ
5382002-10-14 Daniel Jacobowitz <drow@mvista.com>
539
540 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
541 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
542 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
543 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
544
46c82446
AF
5452002-10-13 Adam Fedor <fedor@gnu.org>
546
547 * source.c (print_source_lines): Update comments.
548
d069f99d
AF
5492002-10-13 Adam Fedor <fedor@gnu.org>
550
551 * valops.c (value_of_local): New function.
552 (value_of_this): Use it.
553 * value.h (value_of_local): Declared.
554
53c551b7
AF
5552002-10-13 Adam Fedor <fedor@gnu.org>
556
557 * parse.c: (length_of_subexp, prefixify_subexp): Handle
558 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
559
eb392fbf
AF
5602002-10-12 Adam Fedor <fedor@gnu.org>
561
562 * language.c (binop_result_type): Add language_objc to case.
563 (integral_type): Likewise.
564 (character_type): Likewise.
565 (string_type): Likewise.
566 (boolean_type): Likewise.
567 (structured_type): Likewise.
568 (binop_type_check): Likewise.
569
e2b23ee9
AF
5702002-10-11 Adam Fedor <fedor@gnu.org>
571
572 * printcmd.c (address_info): Print 'self' for ObjC.
573
b01ab485
AF
5742002-10-11 Adam Fedor <fedor@gnu.org>
575
576 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
577 OP_SELF.
578
806e6073
AF
5792002-10-11 Adam Fedor <fedor@gnu.org>
580
581 * language.h (CAST_IS_CONVERSION): Add language_objc.
582
50f85cdf
AF
5832002-10-11 Adam Fedor <fedor@gnu.org>
584
585 * defs.h (enum language): Add language_objc.
586
0d540cdf
KD
5872002-10-11 Klee Dienes <kdienes@apple.com>
588
69266111 589 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
590 * gdbcore.h (read_memory_typed_address): Add prototype.
591 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
592 to read a value destined for a CORE_ADDR, not read_memory_integer.
593 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
594 (f77_get_dynamic_lowerbound): Ditto.
595
d5dc7960
MH
5962002-10-11 Martin M. Hunt <hunt@redhat.com>
597
598 * utils.c (string_to_core_addr): After turning string into
599 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
600 which will do necessary sign-extension, etc.
601
8343f86c
DJ
6022002-10-11 Daniel Jacobowitz <drow@mvista.com>
603
604 * c-exp.y (THIS): Delete token and grammar rule.
605 (yylex): Don't return THIS.
606 * cp-valprint.c (vtbl_ptr_name_old): Delete.
607 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
608 * demangle.c (cplus_markers): Update comment. Put '$'
609 first. Remove CPLUS_MARKER.
610 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
611 * jv-exp.y (THIS): Delete token and grammar rule.
612 (yylex): Don't return THIS.
613 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
614 * objc-exp.y (THIS): Delete token and grammar rule.
615 (yylex): Don't return THIS.
616 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
617 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
618 (read_member_functions): Likewise for opname.
619 (read_tilde_fields): Use is_cplus_marker.
620
621 * defs.h (CPLUS_MARKER): Don't define.
622 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
623 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
624 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
625 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
626 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
627
628 * config/i386/tm-i386v4.h: Delete file.
629 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
630 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
631 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
632 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
633 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
634 * config/i386/i386sco5.mt (TM_FILE): Likewise.
635 * config/i386/i386v4.mt (TM_FILE): Likewise.
636 * config/i386/ncr3000.mt (TM_FILE): Likewise.
637
967c0d83
MM
6382002-10-10 Marko Mlinar <markom@opencores.org>
639
640 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
641 accidentially not commited 2002-10-09
642 * gdbarch.h, gdbarch.c: Re-generate.
643
f74fa174
MM
6442002-10-09 Marko Mlinar <markom@opencores.org>
645
646 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
647 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
648 * gdbarch.h, gdbarch.c: Re-generate.
649
57349743
JB
6502002-10-08 Petr Sorfa <petrs@caldera.com>
651
652 Revised and re-submitted by John Wolfe <jlw@caldera.com>
653
654 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
655 so we can work on more than one compilation unit at a time. This
656 helps prepare GDB to handle inter-CU die references.
657 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
658 the code to be defined before struct comp_unit_head.
659 (comp_unit_head): Added new members - offset, cu_head,
660 begin_die, next and dwarf2_abbrevs.
661 (dwarf2_abbrevs): Removed single static var; now member of
662 struct comp_unit_head.
663 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
664 members.
665 (psymtab_to_symtab_1): Changed to work with the new
666 struct comp_unit_head.
667 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
668 constructs the dwarf2_abbrevs[] inside the cu_header.
669 (dwarf2_empty_abbrev_table): Now expects a ptr to a
670 dwarf2_abbrev table to clean up.
671 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
672 handling of dwarf2_abbrevs inside the cu_header.
673 (read_partial_die): Now supports the call to the new
674 dwarf2_lookup_abbrev.
675 (read_full_die): Now supports the call to the new
676 dwarf2_lookup_abbrev.
677
4092aadb
CF
6782002-10-06 Christopher Faylor <cgf@redhat.com>
679
680 * Makefile.in (install-gdbtk): Add missing continuation backslash to
681 insure that shell variables, such as "transformed_name" are propagated
682 to later shell statements in rule.
683
af0b2512
MK
6842002-10-06 Mark Kettenis <kettenis@gnu.org>
685
686 * config/i386/nm-i386sco.h: Add protection against
687 multiple-inclusion. Include "i386/nm-i386v.h".
688 (REGISTER_U_ADDR): Remove define.
689 (i386_register_u_addr): Remove prototype.
690
d6020d45
MS
6912002-10-04 Michael Snyder <msnyder@redhat.com>
692
693 * m32r-stub.c (handle_exception): Make sure exception is "trap"
694 before treating it as a single-step event.
695
7248f48e
AF
6962002-10-03 Adam Fedor <fedor@gnu.org>
697
698 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
699 (objc_demangle): Remove assignment in if statements, Replace
700 free with xfree.
701 (add_msglist): Likewise.
702 (end_msglist): Likewise.
703 (complare_selectors): Likewise.
704 (selectors_info): Likewise.
705 (compare_classes): Likewise.
706 (classes_info): Likewise.
707 (print_object_command): Likewise.
708 (find_objc_msgcall_submethod): Replace PTR with void *.
709 * objc-lang.h: Remove check for __STDC__.
710
52c6a6ac
JJ
7112002-10-03 Jeff Johnston <jjohnstn@redhat.com>
712
713 * ui-out.h (ui_out_field_fmt_int): New prototype.
714 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
715 of field width and alignment.
716 * stack.c (print_frame_info_base): When printing frame level, use
717 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
718 PR gdb/192
719
7e3cec17
JJ
7202002-10-03 Jeff Johnston <jjohnstn@redhat.com>
721
722 * MAINTAINERS: Add self to Write After Approval list.
723
a58dd373
EZ
7242002-10-02 Elena Zannoni <ezannoni@redhat.com>
725
726 * infcmd.c (interrupt_target_command_wrapper): Delete.
727 (interrupt_target_command): Make non static.
728 (nofp_registers_info): Make static.
729 * stack.c (return_command_wrapper): Delete.
730 (return_command): Make non static.
731
cee6ddeb
EZ
7322002-10-02 Elena Zannoni <ezannoni@redhat.com>
733
734 * event-top.c (gdb_setup_readline): New function. Code moved from
735 _initialize_event_loop().
736 (_initialize_event_loop): Call gdb_setup_readline().
737
c4ed33b9
AC
7382002-10-02 Andrew Cagney <ac131313@redhat.com>
739
740 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
741 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
742 * gdbarch.h, gdbarch.c: Re-generate.
743
cef4f5dd
DJ
7442002-10-02 Daniel Jacobowitz <drow@mvista.com>
745
746 Fix PR gdb/778
747 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
748 before recursing.
749 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
750 of fill_in_vptr_fieldno.
751
36dc181b 7522002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 753
36dc181b
EZ
754 * inferior.h (registers_info, stepi_command, nexti_command,
755 continue_command, interrupt_target_command): Export from infcmd.c.
756 * frame.h (args_info, selected_frame_level_changed_hook,
757 return_command): Export from stack.c.
758 * v850ice.c (stepi_command, nexti_command, continue_command): use
759 prototypes from inferior.h.
760 * tracepoint.c (registers_info, args_info, locals_info): Use
761 prototypes from frame.h and inferior.h.
762 * Makefile.in (mi-main.o): Add dependency on frame.h.
763
6f99cb26
AC
7642002-10-02 Andrew Cagney <ac131313@redhat.com>
765
da3eff49
AC
766 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
767 value in register 3 adjusted by ppc_gp0_regnum.
768
6f99cb26
AC
769 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
770
da615bee
MM
7712002-10-02 Marko Mlinar <markom@opencores.org>
772
773 * MAINTAINERS: Add myself to the Write After Approval list.
774
d154bee2
AO
7752002-10-01 Alexandre Oliva <aoliva@redhat.com>
776
62a49b2c
AO
777 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
778 of the section for the N64 ABI, fixed.
779
d154bee2
AO
780 * config/mips/tm-irix6.h: Include solib.h.
781
ed348acc
EZ
7822002-10-01 Elena Zannoni <ezannoni@redhat.com>
783
784 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
785 GNU operators.
786
da0f9dcd
AC
7872002-10-01 Andrew Cagney <ac131313@redhat.com>
788
789 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
790 and that "mi0" syntax has been removed.
791
bdf64bac
DC
7922002-09-30 David Carlton <carlton@math.stanford.edu>
793
794 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
795 * ppc-sysv-tdep.c: #include "gdb_string.h".
796 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
797 pacify GCC.
798
54c2a1e6
AC
7992002-10-01 Andrew Cagney <ac131313@redhat.com>
800
801 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
802 "vrsave"'s register number.
803
cedea778
AC
8042002-09-30 Andrew Cagney <ac131313@redhat.com>
805
806 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
807 use frame_unwind_signed_register to obtain the PC.
808 (mips_frame_chain): Handle a generic dummy frame.
809 (mips_init_extra_frame_info): When a generic dummy frame, don't
810 re-compute the frame base.
811 (mips_pop_frame): Handle generic dummy frames.
812 (mips_gdbarch_init): When generic dummy frames, set
813 use_generic_dummy_frames, push_dummy_frame to
814 generic_push_dummy_frame, pc_in_call_dummy to
815 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
816 generic_save_dummy_frame_tos.
817
68315eb8
AC
8182002-09-30 Andrew Cagney <ac131313@redhat.com>
819
820 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
821 against TOP when TOP was explictly set.
822 (generic_push_dummy_frame): Set TOP to zero.
823
3b8630c3
EZ
8242002-09-30 Elena Zannoni <ezannoni@redhat.com>
825
826 * event-loop.c (start_event_loop): Rename variable 'result' to
827 'gdb_result', to avoid conflicts with upcoming intepreters changes.
828
28ee05e9
KS
8292002-09-30 Keith Seitz <keiths@redhat.com>
830
831 * gdb-events.sh (selected_thread_changed): New event.
832 * gdb-events.c: Regenerated.
833 * gdb-events.h: Regenerated.
834
6eecb1c8
HPN
8352002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
836
837 * MAINTAINERS: Add self to Write After Approval list.
838
92df71f0
FN
8392002-09-30 Fernando Nasser <fnasser@redhat.com>
840
3b8630c3
EZ
841 * disasm.c: New file.
842 * disasm.h: New file.
92df71f0
FN
843 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
844 (compare_lines): Ditto.
845 (dump_insns): Ditto.
3b8630c3
EZ
846 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
847 argument.
92df71f0 848 (do_assembly_only): Ditto.
3b8630c3
EZ
849 (do_disassembly): Renamed to gdb_disassembly and moved to
850 disasm.c. Sdded uiout argument.
851 * Makefile.in: Add new files. Reorder SFILES list. Update
852 dependencies. Include libgdb.a later in the insight executable.
92df71f0 853
0c22854d
AC
8542002-09-29 Andrew Cagney <ac131313@redhat.com>
855
856 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
857 bfd/elf64-alpha-fbsd.c.
858
e67f2023
AC
8592002-09-29 Andrew Cagney <ac131313@redhat.com>
860
861 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
862 i386gnu-tdep.c.
863
89396210
AC
8642002-09-29 Andrew Cagney <ac131313@redhat.com>
865
866 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
867 __FUNCTION__.
868 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
869 function name.
870 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
871 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
872 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
873 (S_msg_sig_post_reply): Ditto.
874
7079c36c
CV
8752002-09-28 Corinna Vinschen <vinschen@redhat.com>
876
89396210
AC
877 * sh-tdep.c (sh_use_struct_convention): Use definition according
878 to ABI.
7079c36c
CV
879 (sh_push_arguments): Store in register with correct endianess.
880 (sh_default_store_return_value): Ditto.
881 (sh_gdbarch_init): Set sizeof long double to 8.
882
975ac915
MK
8832002-09-27 Mark Kettenis <kettenis@gnu.org>
884
885 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
886 Fix some whitespace problems.
887
9bbe19fb
DC
8882002-09-27 David Carlton <carlton@math.stanford.edu>
889
890 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
891 (mcore-tdep.o): Ditto.
892 (ns32k-tdep.o): Ditto.
893 (ns32knbsd-tdep.o): Ditto.
894 (sh3-rom.o): Ditto.
895 (vax-tdep.o): Ditto.
896 * cris-tdep.c: #include "gdb_string.h"
897 * mcore-tdep.c: Ditto.
898 * ns32k-tdep.c: Ditto.
899 * ns32knbsd-tdep.c: Ditto.
900 * sh3-rom.c: Ditto.
901 * vax-tdep.c: Ditto.
902
43b2fdc7
DC
9032002-09-27 David Carlton <carlton@math.stanford.edu>
904
905 * config/djgpp/fnchange.lst: Add entries for
906 gdb/testsuite/gdb.c++/m-static files.
907
e8cfbbd9
JW
9082002-09-27 Jim Wilson <wilson@redhat.com>
909
910 * MAINTAINERS: Add myself to the Write After Approval list.
911
43b2fdc7 9122002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
913
914 * mips-tdep.c (find_proc_desc): Initialize startaddr.
915
916
9f3b7f07
AC
9172002-09-26 Andrew Cagney <ac131313@redhat.com>
918
919 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
920 frame.
921
11269d7e
AC
9222002-09-26 Andrew Cagney <ac131313@redhat.com>
923
924 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
925 (rs6000_struct_return_address): Delete variable.
926 (rs6000_store_struct_return): Update.
927 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
928 deprecated_extract_struct_value_address.
929 (rs6000_frame_align): New function.
930 (rs6000_gdbarch_init): Set frame_align.
931
f15ab4a7
AC
9322002-09-26 Andrew Cagney <ac131313@redhat.com>
933
934 From Grace Sainsbury <graces@redhat.com>:
935 * Makefile.in (gdbtk-main.o): New target.
936 (gdb.o): New target.
937 (main_h): Define.
938 (main.o): Update dependencies.
939 (gdb$(EXEEXT)): Add gdb.o.
940 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
941 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
942 (SUBDIR_GDBTK_CLEAN): Set.
943 (install-gdbtk): Install the insight binary.
944 (uninstall-gdbtk): New target.
945 (all-gdbtk, clean-gdbtk): New rule.
946 * top.c (use_windows): Default to zero.
947 * main.c: Include "main.h".
948 (main): Delete.
949 (struct captured_main_args): Delete.
950 (gdb_main): New function.
951 * main.h: New file.
952 * gdb.c: New File.
953
e36180d7
AC
9542002-09-25 Andrew Cagney <cagney@redhat.com>
955
956 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
957 (frame_map_regnum_to_name): New function.
958 (frame_map_name_to_regnum): New function.
959 * frame.h (frame_map_name_to_regnum): Declare.
960 (frame_map_regnum_to_name): Declare.
961 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
962 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
963 * parse.c: Do not include "builtin-regs.h".
964 (target_map_name_to_register): Delete function.
965 (write_dollar_variable): Use frame_map_name_to_regnum.
966 * parser-defs.h (target_map_name_to_register): Delete declaration.
967 * expprint.c: Include "frame.h".
968 (print_subexp): Use frame_map_regnum_to_name.
969 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
970 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
971
8b69000d
AC
9722002-09-25 Andrew Cagney <ac131313@redhat.com>
973
974 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
975 wasn't saved, and the next innermost frame is a dummy, return the
976 dummy frame's link register.
977
046ca86a
JB
9782002-09-24 Jim Blandy <jimb@redhat.com>
979
980 Fix from Paul Breed:
981 * main.c (captured_main): Add a `break' after the case for 'b'.
982
94b66fa7
KS
9832002-09-24 Keith Seitz <keiths@redhat.com>
984
985 * varobj.c (c_type_of_child): Use get_target_type instead
986 of TYPE_TARGET_TYPE.
987
c214a6fd
FN
9882002-09-22 Fernando Nasser <fnasser@redhat.com>
989
53cb0458
FN
990 * source.c (get_current_or_default_source_symtab_and_line): Remove
991 function.
992 (set_default_source_symtab_and_line): New function. Attempts to
993 determine a source file to list lines from if one is not currently
994 defined.
995 (get_current_source_symtab_and_line): Initialize sal.pc and
996 sal.end fields.
997 (set_current_source_symtab_and_line): Mark argument as const.
998 * source.h: Update declarations and comments.
999 * linespec.c (decode_line_1): Replace call to removed routine above.
1000 * stack.c (print_frame_info_base): Ditto.
1001 * cli/cli-cmds.c (edit_command): Ditto.
1002 (list_command): Ditto.
1003
10042002-09-22 Fernando Nasser <fnasser@redhat.com>
1005
d6020d45 1006 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1007 sal.pc and sal.end fields.
c214a6fd
FN
1008 (get_current_or_default_source_symtab_and_line): Ditto.
1009 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1010 so we do not cause a new source symtab to be searched for (reverting an
1011 unintentional change from the 2002-09-20 patch).
1012 * scm-lang.c (scm_unpac): Ditto.
1013
cc3b68a5
AC
10142002-09-21 Andrew Cagney <cagney@redhat.com>
1015
1016 * complaints.c (symfile_explanations): Remove new-line from
1017 ``isolated_message''.
1018 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1019 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1020
5835abe7
NC
10212002-09-20 Nick Clifton <nickc@redhat.com>
1022
1023 * NEWS: Announce that V850EA ISA is no longer supported.
1024 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1025
a15ef5f5
DC
10262002-09-20 David Carlton <carlton@math.stanford.edu>
1027
06ba1b39
DC
1028 * Makefile.in (c-lang.o): Correct dependencies.
1029 (utils.o): Gather dependencies.
1030 (charset.o): Move.
a15ef5f5
DC
1031 * c-lang.c: #include "gdb_string.h"
1032
87885426
FN
10332002-09-20 Fernando Nasser <fnasser@redhat.com>
1034
1035 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1036 * cli/cli-cmds.c (list_command): New function. Implements the new
1037 cli edit command.
1038 (_init_cli_cmds): Add new command definition.
1039 * gdb.1: Document edit command.
1040 * doc/gdb.texinfo: Document edit command.
1041
10422002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
1043
1044 * source.c: Make global variables current_source_symtab and
1045 current_source_line static.
1046 (list_command): Moved to cli/cli-cmds.c.
1047 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1048 (get_first_line_listed): New accessor function.
1049 (get_lines_to_list): New accessor function.
1050 (get_current_source_symtab_and_line): New function. Retrieves the
1051 position in the source code that we consider current.
1052 (get_current_or_default_source_symtab_and_line): New function.
1053 Like the above but attempts to determine a default position if one
1054 is not currently defined.
1055 (set_current_source_symtab_and_line): New function. Sets the source
1056 code position considered current and returns the previously set one.
1057 (clear_current_source_symtab_and_line): Reset stored information about
1058 a current source line.
1059 (_initialize_source): Remove registration for the "list" command and
1060 its alias.
1061 * source.h: Add declarations for the new functions above.
1062 * symtab.h: Remove declarations for the global variables mentioned
1063 above.
1064 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1065 obtain current source line.
1066 * linespec.c (decode_line_1): Ditto.
1067 * macroscope.c (default_macro_scope): Ditto.
1068 * scm-lang.c (scm_unpac): Ditto.
1069 * stack.c (print_frame_info_base): Ditto.
1070 * symfile.c (clear_symtab_users): Ditto.
1071 * symtab.c (decode_line_spec): Ditto.
1072 * cli/cli-cmds.c (list_command): Moved here from source.c.
1073 (ambiguous_line_spec): Moved here from source.c.
1074 (_init_cli_cmds): Add definition for "list" and its alias.
1075 * Makefile.in: Update dependencies.
1076
ddd216ea
CV
10772002-09-20 Corinna Vinschen <vinschen@redhat.com>
1078
1079 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1080 with what gcc thinks is correct.
1081
6d305052
CV
10822002-09-20 Corinna Vinschen <vinschen@redhat.com>
1083
1084 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1085 multiple register push instruction.
1086
234b45d4
KB
10872002-09-19 Jim Blandy <jimb@redhat.com>
1088
1089 Add support for distinct host and target character sets.
1090 * charset.c, charset.h: New files.
1091 * c-exp.y: #include "charset.h".
1092 (yylex): Convert character and string literals to the target
1093 character set, before returning them as the semantic value of the
1094 token.
1095 * c-lang.c: #include "charset.h".
1096 (c_emit_char): Use charset-specific methods to recognize
1097 characters with backslash escape forms, to decide which characters
1098 to print literally and which to print using numeric escape
1099 sequences, and to convert target characters to host characters
1100 before printing.
1101 * utils.c: #include "charset.h".
1102 (no_control_char_error): New function.
1103 (parse_escape): Use charset-specific methods to recognize
1104 backslash escapes, parse `control character' notation, and convert
1105 characters from the host character set to the target character set.
1106 * configure.in: Set the default host character set.
1107 Check where to find iconv, and what its argument types might be.
1108 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1109 * Makefile.in (SFILES): List charset.c.
1110 (COMMON_OBS): List charset.o.
1111 (charset.o): New rule.
1112 (charset_h): New header dependency variable.
1113 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1114 (LIBICONV): New variable, set by configure.
1115 (CLIBS): Include $(LIBICONV) here.
1116 * aclocal.m4, config.in, configure: Regenerated.
1117
525d6a61
JB
11182002-09-19 Joel Brobecker <brobecker@gnat.com>
1119
1120 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1121 bison 1.35 warning.
1122
3ed93867
RE
11232002-09-19 Richard Earnshaw <rearnsha@arm.com>
1124
1125 * gdb_mbuild.sh: New file.
1126
437666f8
AC
11272002-09-19 Andrew Cagney <ac131313@redhat.com>
1128
1129 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1130
389e51db
AC
11312002-09-18 Andrew Cagney <ac131313@redhat.com>
1132
1133 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1134 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1135 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1136 valops.c, value.h: Revert previous change.
1137
3b4efeaa
MS
11382002-09-18 Michael Snyder <msnyder@redhat.com>
1139
1140 Preliminary support for Objective-C:
1141 * defs.h (language_objc): New enum value.
1142 (puts_filtered_tabular): Declaration only, exported from utils.c.
1143 (skip_quoted): Delete, declared in completer.h.
1144 * c-exp.y: Include completer.h.
1145 * p-exp.y: Ditto.
1146 * jv-exp.y: Ditto.
1147 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1148 New operator enum values.
1149 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1150 * language.c (binop_result_type): Handle language_objc case.
1151 (integral_type, character_type, string_type, boolean_type,
1152 structured_type, binop_type_check): Ditto.
1153 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1154 (struct objc_specific): Add to general_symbol_info.
1155 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1156 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1157 * parser-defs.h (struct objc_class_str): New struct type.
1158 (start_msglist, end_msglist, add_msglist): Declaration only,
1159 exported from objc-lang.c.
1160 * value.h (value_of_local, value_nsstring,
1161 call_function_by_hand_expecting_type): Exported from valops.c.
1162 * valops.c (find_function_addr): Export.
1163 (call_function_by_hand_expecting_type): New function.
1164 (value_of_local): New function.
1165 * symfile.c (init_filename_language_table): Add ".m" extension
1166 for Objective-C.
1167 * utils.c (puts_filtered_tabular): New function.
1168 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1169 (set/show demangle): Extend help-string to refer to ObjC.
1170 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1171 * stabsread.c (symbol_reference_defined): Objective-C symbols
1172 may contain colons: make allowances when scanning stabs strings
1173 for colons.
1174 (objc_find_colon): New function.
1175 * printcmd.c (address_info): If language == objc then print
1176 "self" instead of "this".
1177 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1178 OP_NSSTRING, and OP_SELF.
1179 (prefixify_subexp): Ditto.
1180 * source.c (print_source_lines): Mention objc in comment.
1181 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1182 method names.
1183
b9caf505
AC
11842002-09-18 Andrew Cagney <ac131313@redhat.com>
1185
1186 * complaints.h: Update copyright.
1187 (struct complaints): Declare.
1188 (struct complaint): Make `message' constant.
1189 (internal_complaint): Declare.
1190 (complaint): Declare.
1191 (complaint_root): Delete declaration.
1192 (symfile_complaints): Delete declaration.
1193 (struct complaints): Add opaque declaration.
1194 (clear_complaints): Add a complaints parameter.
1195 * complaints.c: Update copyright.
1196 (enum complaint_series): Define.
1197 (complaint_root): Delete.
1198 (struct complaints): Define.
1199 (complaint_sentinel, symfile_complaint_book): New variables.
1200 (symfile_explanations, symfile_complaints): New variables.
1201 New variables.
1202 (get_complaints): New function.
1203 (vcomplaint): New function.
1204 (complaint): New function.
1205 (internal_complaint): New function.
1206 (complain): Call vcomplain with symfile_complaint.
1207 (clear_complaints): Rewrite.
1208 (_initialize_complaints): Use add_setshow_command.
1209 * Makefile.in (complaints.o): Update dependencies.
1210 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1211 to call to clear_complaints.
1212 (new_symfile_objfile, reread_symbols): Ditto.
1213 (oldsyms_complaint): Delete.
1214 (empty_symtab_complaint, unknown_option_complaint): Delete.
1215 (free_named_symtabs): Use complaint instead of complain.
1216
d2e6263c
MS
12172002-09-18 Michael Snyder <msnyder@redhat.com>
1218
5fb2031a
AC
1219 Contributed by Apple Computer, Inc. Merged with current sources
1220 by Adam Fedor <fedor@doc.com> [cagney].
1221
d2e6263c
MS
1222 * objc-lang.c: First clean-up round: comments, indentation.
1223 * objc-lang.h: Ditto.
1224 * objc-lang.y: Ditto.
1225
dec43320
AC
12262002-09-18 Andrew Cagney <ac131313@redhat.com>
1227
1228 * maint.c (maintenance_internal_error): Print the parameter as the
1229 error message.
1230 (maintenance_internal_warning): New function.
1231 (_initialize_maint_cmds): Add command `maint internal-warning'.
1232
1233 * defs.h (internal_warning, internal_vwarning): Declare.
1234 * utils.c (struct internal_problem): Define.
1235 (internal_vproblem): New function.
1236 (internal_warning): New function.
1237 (internal_vwarning): New function.
1238 (internal_warning_problem, internal_error_problem): New variables.
1239 (internal_verror): Just call internal_vproblem.
1240
b81654f1
MS
12412002-09-18 Michael Snyder <msnyder@redhat.com>
1242
1243 * objc-lang.c: New file, support for Objective-C.
1244 Preliminary check-in, not yet integrated into gdb.
1245 * objc-lang.h: New file.
1246 * objc-exp.y: New file.
1247
0542c381
AC
12482002-09-18 Andrew Cagney <ac131313@redhat.com>
1249
7bda5e4a
AC
1250 * infrun.c (signal_stop_update): Convert definition to ISO C.
1251 (signal_print_update): Ditto.
1252 (signal_pass_update): Ditto.
1253 * inflow.c (terminal_save_ours): Ditto.
1254
5247b418
AC
1255 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1256 comments.
1257
fc60962c
AC
1258 * config/djgpp/fnchange.lst: Handle name clashes between
1259 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1260 bfd/coff-tic80.c.
1261
0542c381
AC
1262 * i386-linux-tdep.h: Fix tipo.
1263
5b924b9b
AF
12642002-09-18 Adam Fedor <fedor@gnu.org>
1265
1266 * MAINTAINERS: Add myself to the Write After Approval list.
1267
5afc051b
JB
12682002-09-18 Jim Blandy <jimb@redhat.com>
1269
1270 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1271 texthigh and textlow to reader-specific structs caused
1272 objfile_relocate to miss them. This is fixable, but the work that
1273 the change was supposed to prepare GDB for never got done anyway.
1274
eb944380
DC
12752002-09-18 David Carlton <carlton@math.stanford.edu>
1276
1277 * MAINTAINERS: Alphabetize Write After Approval list.
1278
948e66d9
DJ
12792002-09-18 Daniel Jacobowitz <drow@mvista.com>
1280
1281 Fix PR gdb/709
1282 * values.c (value_static_field): Call read_var_value.
1283
dc604539
AC
12842002-09-18 Andrew Cagney <ac131313@redhat.com>
1285
1286 * valops.c (hand_function_call): Align the initial stack pointer
1287 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1288 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1289 return value.
1290 * mips-tdep.c (mips_frame_align): New function.
1291 (mips_gdbarch_init): Set frame_align.
1292 * gdbarch.sh (FRAME_ALIGN): New method.
1293 * gdbarch.h, gdbarch.c: Re-generate.
1294
cb7e422f
ML
12952002-09-18 Michal Ludvig <mludvig@suse.cz>
1296
1297 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1298 registers.
1299
a094c6fb
AC
13002002-09-17 Andrew Cagney <ac131313@redhat.com>
1301
1302 * NEWS: Mention that MIPS $fp behavior changed.
1303 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1304 reference to FP_REGNUM.
1305 (mipsnbsd_cannot_store_register): Ditto.
1306 * mips-linux-nat.c: Update copyright.
1307 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1308 (mips_linux_cannot_store_register): Ditto.
1309 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1310 * config/mips/tm-mips.h: Update copyright.
1311 (FP_REGNUM): Delete macro.
1312 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1313 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1314 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1315 (mips_r3041_reg_names, mips_r3051_reg_names)
1316 (mips_r3081_reg_names): Replace "fp" with "".
1317 Fix PR gdb/480.
1318
45cf40d1
TR
13192002-09-17 Theodore A. Roth <troth@verinet.com>
1320
1321 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1322 generic_read_register_dummy() (PR gdb/703).
1323 (avr_push_return_address): #if 0 out unused vars.
1324 (avr_gdbarch_init): Enable use of avr_push_return_address().
1325
c7e701b5
MS
13262002-09-17 Michael Snyder <msnyder@redhat.com>
1327
d76ba2a5 1328 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1329 RTE will take care of it.
1330
20bcf01c
AC
13312002-09-17 Andrew Cagney <ac131313@redhat.com>
1332
1333 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1334 invalid, return SP_REGNUM.
1335
009a9971 13362002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1337
1338 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1339 point registers without sign extension.
1340
135c175f
AC
13412002-09-17 Andrew Cagney <cagney@redhat.com>
1342
1343 * blockframe.c (deprecated_read_register_dummy): Rename
1344 generic_read_register_dummy.
1345 * frame.c (frame_unwind_signed_register): New function.
1346 (frame_unwind_unsigned_register): New function.
1347 * frame.h (frame_unwind_signed_register): Declare.
1348 (frame_unwind_unsigned_register): Declare.
1349 (deprecated_read_register_dummy): Rename
1350 generic_read_register_dummy.
1351
1352 * h8300-tdep.c (h8300_frame_chain): Update.
1353 (h8300_frame_saved_pc): Update.
1354 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1355 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1356 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1357 (s390_frame_chain): Update.
1358 * v850-tdep.c (v850_find_callers_reg): Update.
1359 (v850_frame_saved_pc): Update.
1360 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1361 (m32r_find_callers_reg): Update.
1362 (m32r_frame_saved_pc): Update.
1363 * sh-tdep.c (sh_find_callers_reg): Update.
1364 (sh64_get_saved_pr): Update.
1365 (sh_init_extra_frame_info): Update.
1366 (sh_init_extra_frame_info): Update.
1367 (sh64_init_extra_frame_info): Update.
1368 (sh64_init_extra_frame_info): Update.
1369 * mcore-tdep.c (mcore_find_callers_reg): Update.
1370 (mcore_frame_saved_pc): Update.
1371 (mcore_init_extra_frame_info): Update.
1372 * i386-tdep.c (i386_frame_saved_pc): Update.
1373 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1374 (ia64_init_extra_frame_info): Update.
1375 (ia64_init_extra_frame_info): Update.
1376 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1377 * cris-tdep.c (cris_init_extra_frame_info): Update.
1378 * avr-tdep.c (avr_frame_chain): Update.
1379 (avr_init_extra_frame_info): Update.
1380 (avr_frame_saved_pc): Update.
1381 * arm-tdep.c (arm_find_callers_reg): Update.
1382 (arm_init_extra_frame_info): Update.
1383 (arm_frame_saved_pc): Update.
1384
a741e514
TT
13852002-09-17 Tom Tromey <tromey@redhat.com>
1386
1387 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1388 is "'".
1389
d1a8e808
CV
13902002-09-17 Corinna Vinschen <vinschen@redhat.com>
1391
1392 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1393 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1394 NEXT_PROLOGUE_INSN.
1395 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1396 NEXT_PROLOGUE_INSN.
1397
d9025a18
JB
13982002-09-16 Joel Brobecker <brobecker@gnat.com>
1399
1400 * osfsolib.c: Remove file, replaced by solib-osf.c.
1401 * Makefile.in: Remove compilation rules for osfsolib.c.
1402
1b2ef1b6
DC
14032002-09-16 David Carlton <carlton@math.stanford.edu>
1404
1405 * cp-valprint.c (cp_print_class_method): Correct args to
1406 check_stub_method_group.
1407
928e48af
CV
14082002-09-16 Corinna Vinschen <vinschen@redhat.com>
1409
1410 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1411 `set architecture'. Unify naming convention of functions.
1412 (h8300_skip_prologue): Improve prologue analysis.
1413 (h8300_push_arguments): Rewritten to more closely match GCC's
1414 bizarre argument-passing behavior, along with the comment describing
1415 said behavior.
1416 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1417 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1418 sim, remote-e7000.c, remote-hms.c and remote.c
1419
5e3397bb
MK
14202002-09-15 Mark Kettenis <kettenis@gnu.org>
1421
1422 * i386-tdep.c (gdb_print_insn_i386): Removed.
1423 (i386_print_insn): New function.
1424 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1425 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1426 tm_print_insn_info.
1427
f710f4fc
MK
14282002-09-14 Mark Kettenis <kettenis@gnu.org>
1429
1430 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1431 zero.
1432
db54fef4
CV
14332002-09-14 Corinna Vinschen <vinschen@redhat.com>
1434
1435 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1436 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1437 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1438
2becadee
CF
14392002-09-13 Christopher Faylor <cgf@redhat.com>
1440
1441 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1442
de17c821
DJ
14432002-09-13 Daniel Jacobowitz <drow@mvista.com>
1444
1445 * gdbtypes.c (check_stub_method): Make static.
1446 (check_stub_method_group): New function.
1447 * gdbtypes.h: Update prototypes.
1448 * cp-support.c: New file.
1449 * cp-support.h: New file.
1450
1451 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1452 (update_method_name_from_physname): New function.
1453 (read_member_functions): Correct method names for operators
1454 and v3 constructors/destructors. Separate v2 constructors and
1455 destructors.
1456 * Makefile.in (stabsread.o): Update dependencies.
1457 (SFILES): Add cp-support.c.
1458 (COMMON_OBS): Add cp-support.o.
1459 (cp_support_h, cp-support.o): Add.
1460
1461 * cp-valprint.c (cp_print_class_method): Call
1462 check_stub_method_group instead of check_stub_method. Remove
1463 extraneous QUITs.
1464 * p-valprint.c (pascal_object_print_class_method): Likewise.
1465 * valops.c (search_struct_method): Likewise.
1466 (find_method_list, value_struct_elt_for_reference): Likewise.
1467
e76cff22
AC
14682002-09-13 Andrew Cagney <cagney@redhat.com>
1469
1470 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1471 * gdbarch.h, gdbarch.c: Regenerate.
1472
905abb3f
AC
14732002-09-13 Andrew Cagney <ac131313@redhat.com>
1474
1475 * frame.c (find_saved_register): Delete function.
1476 * frame.h (find_saved_register): Delete declaration.
1477 Fix PR gdb/631.
1478
64159455
AC
1479Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1480
1481 * mips-tdep.c (read_next_frame_reg): Re-hack using
1482 frame_register_unwind.
1483
795e1e11
AC
1484Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1485
1486 * mips-tdep.c (mips_get_saved_register): Re-hack using
1487 frame_register_unwind.
1488
5720643c
JB
14892002-09-12 Joel Brobecker <brobecker@gnat.com>
1490
1491 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1492 vector. Will be useful for Interix.
1493 * gdbarch.h, gdbarch.c: Regenerate.
1494
1495 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1496 name of the malloc function by NAME_OF_MALLOC.
1497
3bada2a2
JB
14982002-09-12 Joel Brobecker <brobecker@gnat.com>
1499
1500 * value.h (find_function_in_inferior): Add const keyword to
1501 one of the parameters. Allows us to invoke this function with
1502 a const char *.
1503 * valops.c (find_function_in_inferior): Likewise.
1504
3db26b01
JB
15052002-09-12 Joel Brobecker <brobecker@gnat.com>
1506
1507 * exec.c (xfer_memory): Fix compilation warning with old versions
1508 of GCC.
1509 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1510
17c5ed2c
DC
15112002-09-12 David Carlton <carlton@math.stanford.edu>
1512
1513 * symtab.h: Run through gdb_indent.h.
1514 Add 2002 to Copyright year list.
1515
ecd1107e
AM
15162002-09-12 Alan Modra <amodra@bigpond.net.au>
1517
1518 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1519 mach constants.
1520 * MAINTAINERS: Add myself to write after approval list.
1521
e64f66d1
JB
15222002-09-11 J. Brobecker <brobecker@gnat.com>
1523
1524 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1525
f9395794
JB
15262002-09-11 J. Brobecker <brobecker@gnat.com>
1527
1528 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1529 Interix.
1530
1a303dec
MS
15312002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1532
1533 * procfs.c (do_detach): Clear current signal, not just fault.
1534 Corrects problem with breakpoint trap signal leaking to detached
1535 process on Tru64.
1536
c0219d42
MS
15372002-09-10 Michael Snyder <msnyder@redhat.com>
1538
1539 * buildsym.c (finish_block): Protect against null pointer.
1540
9d84ac84
AC
15412002-09-10 Andrew Cagney <cagney@redhat.com>
1542
1543 * infcmd.c (default_print_registers_info): Send all output to
1544 ``file'' instead of ``gdb_stdout''.
1545
77d8f2b4
MS
15462002-09-10 Michael Snyder <msnyder@redhat.com>
1547
1548 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1549 LONGEST, and use signed register read (addresses are sign-
1550 extended for mips).
1551
99656a61
SC
15522002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1553
1554 * event-loop.c (gdb_do_one_event): Make public.
1555 * event-loop.h (gdb_do_one_event): Declare.
1556
da12f4d8
JL
15572002-09-10 Jeff Law <law@redhat.com>
1558
1559 * infttrace.c (child_resume): Simplify and rework to avoid
1560 TT_PROC_CONTINUE.
1561
d0aee0c4
FF
15622002-09-09 Fred Fish <fnf@intrinsity.com>
1563
1564 * printcmd.c (print_scalar_formatted): "len" is the number of
1565 target bytes, NOT the number of target bits.
1566
7cb3ec5e
EZ
15672002-09-09 Elena Zannoni <ezannoni@redhat.com>
1568
1569 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1570 * top.c (init_main): Set rl_terminal_name.
1571
4dc81987
AS
15722002-09-08 Aidan Skinner <aidan@velvet.net>
1573
1574 * ada-lang.c (ada_array_bound, ada_type_match,
1575 _initialize_ada_language): Fix K&R definitions.
1576 * ada-tasks.c (get_current_task): Fix K&R definitions.
1577 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1578
842330b4
CF
15792002-09-07 Christopher Faylor <cgf@redhat.com>
1580
1581 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1582 Add XP.
1583
43156d82
MK
15842002-09-06 Mark Kettenis <kettenis@gnu.org>
1585
66da5fd8
MK
1586 * i386-tdep.c (i386_register_virtual_type,
1587 i386_register_convertible, i386_register_convert_to_virtual,
1588 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1589 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1590 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1591 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1592 Don't set push_arguments twice.
1593
4b218c18
MK
1594 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1595 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1596 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1597 sigtramp_end to NULL.
1598 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1599 defines.
1600 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1601
4cc314d5
MK
1602 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1603 whitespace.
1604
43156d82
MK
1605 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1606 * gdbarch.h, gdbarch.c: Re-generate.
1607 * blockframe.c (find_pc_sect_partial_function): Convert to use
1608 SIGTRAMP_START_P predicate.
1609
6672060b
MS
16102002-09-05 Michael Snyder <msnyder@redhat.com>
1611
a90c3637
MS
1612 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1613 generic_dummy_frame method and old method. Also distinguish
1614 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1615 (arm_extract_return_value): Use new regcache method.
a90c3637 1616
6672060b
MS
1617 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1618 adjustment that doesn't conform to the ABI.
1619 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1620 saved regcache, not from current regcache.
1621
299ffc64
AC
16222002-09-05 Andrew Cagney <ac131313@redhat.com>
1623
1624 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1625 * README: Update.
1626
a3a2ee65
JT
16272002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1628
1629 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1630 if arm_apcs_32 is false.
1631
2bc7eea9
AC
16322002-09-04 Andrew Cagney <ac131313@redhat.com>
1633
1634 GDB 5.3 branch created.
1635
8a55a7c5
TR
16362002-09-03 Theodore A. Roth <troth@verinet.com>
1637
1638 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1639 generic_unwind_get_saved_register.
1640
e26fb1d7
DC
16412002-09-03 David Carlton <carlton@math.stanford.edu>
1642
1643 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1644 argument (PR gdb/653). Update call to smash_to_method_type.
1645 (read_structure_scope): Update call to dwarf2_add_member_fn.
1646
30d52491
ML
16472002-09-03 Michal Ludvig <mludvig@suse.cz>
1648
1649 * x86-64-linux-tdep.c: Include gdb_string.h
1650 * x86-64-linux-nat.c: Ditto.
1651
06891d83
JT
16522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1653
1654 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1655 when YYDEBUG is set to 1.
1656 * c-exp.y: Likewise.
1657 * f-exp.y: Likewise.
1658 * jv-exp.y: Likewise.
1659 * m2-exp.y: Likewise.
1660 * p-exp.y: Likewise.
1661
7d400e77
JT
16622002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1663
1664 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1665 dependency list.
1666 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1667 solib_svr4_fetch_link_map_offsets to
1668 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1669 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1670 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1671 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1672 solib-svr4.o, and solib-legacy.o.
1673 * config/i386/tm-nbsd.h: Include solib.h.
1674
704a27c4
JT
16752002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1676
1677 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1678 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1679 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1680 comment noting that this needs its own target configuration.
1681 * config/i386/nbsd.mt: New file.
1682 * config/i386/nbsdaout.mt: Remove.
1683 * config/i386/nbsdelf.mt: Ditto.
1684 * config/i386/tm-nbsdaout.h: Ditto.
1685
d66198e1
JT
16862002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1687
1688 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1689 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1690 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1691 tdep->sigtramp_end.
1692 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1693 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1694 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1695
3cac699e
JT
16962002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1697
1698 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1699 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1700 * i386-tdep.h (i386bsd_init_abi): New prototype.
1701 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1702 function declaration.
1703 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1704 for NetBSD-a.out or NetBSD-ELF.
1705 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1706 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1707 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1708 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1709 and nbsd-tdep.h.
1710 (i386nbsd_pc_in_sigtramp): New function.
1711 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1712 i386nbsd_pc_in_sigtramp.
1713 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1714 and i386nbsdelf_init_abi OS ABI handlers.
1715 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1716 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1717
7010ca0a
MK
17182002-09-02 Mark Kettenis <kettenis@gnu.org>
1719
1720 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1721 registers if the target really has them.
1722
6dd93b72
JT
17232002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1724
1725 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1726 than nbsd-tdep.h.
1727
2ca8ae21
JT
17282002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1729
1730 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1731 list.
1732 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1733 (alphanbsd_skip_sigtramp_frame): New functions.
1734 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1735 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1736 to alphanbsd_sigcontext_addr.
1737
3d9b49b0
JT
17382002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1739
1740 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1741 list.
1742 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1743 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1744 nbsd_pc_in_sigtramp.
1745 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1746 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1747 * nbsd-tdep.c: Include gdb_string.h.
1748 (nbsd_pc_in_sigtramp): New function.
1749 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1750 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1751 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1752 ppcnbsd_pc_in_sigtramp.
1753 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1754 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1755 shnbsd_pc_in_sigtramp.
1756 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1757 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1758 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1759
c860120c
PM
17602002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1761
1762 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1763 watchpoints to NULL.
1764 (insert_breakpoints): set val field of watchpoints if NULL.
1765
1766
c7612d53
JB
17672002-08-29 Jim Blandy <jimb@redhat.com>
1768
1769 * symtab.c (lookup_symbol_aux): In the cases where we find a
1770 minimal symbol of an appropriate name and use its address to
1771 select a symtab to read and search, use `name' (as passed to us)
1772 as the demangled name when searching the symtab's global and
1773 static blocks, not the minsym's name.
1774
66609862
KS
17752002-08-29 Keith Seitz <keiths@redhat.com>
1776
1777 * stack.c (print_frame_info_base): Always set current_source_symtab
1778 and current_source_line.
1779
151fefe2
JB
17802002-08-29 Donn Terry <donnte@microsoft.com>
1781
1782 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1783
bfb3754e
KS
17842002-08-28 Keith Seitz <keiths@redhat.com>
1785
1786 * stack.c (select_frame): Add FIXME concerning selected-frame
1787 events.
1788 (select_frame_command): Send selected-frame-level-changed
1789 event notification, but only if the level actually changed.
1790 (up_silently_base): Add selected-frame-level-changed event
1791 notification.
1792 (down_silently_base): Likewise.
1793
e822a2a0
AC
17942002-08-28 Andrew Cagney <ac131313@redhat.com>
1795
1796 * Makefile.in: Update dependencies for all gdb/*.c files.
1797
309367d4
TT
17982002-08-27 Tom Tromey <tromey@redhat.com>
1799
1800 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1801 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1802 Update dependencies.
1803 * i387-tdep.c: Include gdb_string.h.
1804 * osabi.c: Likewise.
1805 * i386-linux-nat.c: Likewise.
1806 * lin-lwp.c: Likewise.
1807 * ax-gdb.c: Likewise.
1808 * signals/signals.c: Likewise.
1809 * jv-valprint.c: Likewise.
1810 * p-lang.c: Likewise.
1811 * c-valprint.c: Likewise.
1812 * cp-abi.c: Likewise.
1813
e1507482
EZ
18142002-08-27 Elena Zannoni <ezannoni@redhat.com>
1815
1816 * cli/cli-script.h (copy_command_lines): Export.
1817 * breakpoint.c: Include cli/cli-script.h.
1818 * Makefile.in (breakpoint.o): Update dependencies.
1819
c6510018
MS
18202002-08-26 Michael Snyder <msnyder@redhat.com>
1821
1822 * breakpoint.c (insert_breakpoints): Protect all references
1823 to 'process_warning'. Shorten long lines.
1824
c2b8ed2c
MS
18252002-08-26 Joel Brobecker <brobecker@gnat.com>
1826
1827 * cli/cli-script.c (copy_command_lines): New function.
1828 * defs.h (copy_command_lines): Export.
1829 * testsuite/gdb.base/commands.exp: New tests for commands
1830 attached to a temporary breakpoint, and for commands that
1831 delete the breakpoint they are attached to.
1832
18332002-08-26 Michael Snyder <msnyder@redhat.com>
1834
1835 * breakpoint.c (bpstat_stop_status): Instead of copying the
1836 pointer to the breakpoint commands struct, make a new copy
1837 of the struct and point to that.
1838 (bpstat_clear): Free the commands struct.
1839 (bpstat_clear_actions): Free the commands struct.
1840 (bpstat_do_actions): Free the command actions. Also execute
1841 the local cleanups, instead of deleting them.
1842 (delete_breakpoint): Leave the commands field of the bpstat
1843 chain alone -- it will be freed later.
1844
64b84175
KB
18452002-08-26 Kevin Buettner <kevinb@redhat.com>
1846
1847 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1848 deleted in 2002-08-20 commit. This function is still used by
1849 ppc-linux-nat.c.
1850
55970da6
KS
18512002-08-26 Keith Seitz <keiths@redhat.com>
1852
1853 * gdb-events.sh: Add selected-frame-level-changed event.
1854 * gdb-events.c: Regenerated.
1855 * gdb-events.h: Regenerated.
1856
a790ad35
SC
18572002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1858
1859 Fix PR gdb/393:
1860 * inflow.c (terminal_save_ours): New function to save terminal
1861 settings.
1862 * inferior.h (terminal_save_ours): Declare.
1863 * target.c (debug_to_terminal_save_ours): New function.
1864 (cleanup_target): Defaults to_terminal_save_ours.
1865 (update_current_target): Inherit to_terminal_save_ours.
1866 (setup_target_debug): Set to_terminal_save_ours.
1867 * target.h (target_terminal_save_ours): New to save terminal settings.
1868 (target_ops): New member to_terminal_save_ours.
1869 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1870 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1871 * inftarg.c (init_child_ops): Likewise.
1872 * m3-nat.c (init_m3_ops): Likewise.
1873 * procfs.c (init_procfs_ops): Likewise.
1874 * wince.c (init_child_ops): Likewise.
1875 * win32-nat.c (init_child_ops): Likewise.
1876 * sol-thread.c (init_sol_thread_ops): Likewise.
1877
c00dcbe9
MK
18782002-08-26 Mark Kettenis <kettenis@gnu.org>
1879
3d7f4f49
MK
1880 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1881 use regcache_* functions.
1882 (i386_gdbarch_init): Set store_return_value instead of
1883 deprecated_store_return_value.
1884
c00dcbe9
MK
1885 * regcache.c (regcache_raw_write_signed,
1886 regcache_raw_write_unsigned): New functions.
1887 * regcache.h (regcache_raw_write_signed,
1888 regcache_raw_write_unsigned): New prototypes.
1889
0e0d15ca
AC
18902002-08-25 Andrew Cagney <ac131313@redhat.com>
1891
1892 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1893 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1894 source file dependencies. Cleanup corresponding generator rules.
1895
d3b22ed5
AC
18962002-08-25 Andrew Cagney <ac131313@redhat.com>
1897
1898 * regcache.h (register_offset_hack): Declare.
1899 (regcache_cooked_read_using_offset_hack): Declare.
1900 (regcache_cooked_write_using_offset_hack): Declare.
1901
1902 * regcache.c (register_offset_hack): New function.
1903 (regcache_cooked_read_using_offset_hack): New function.
1904 (regcache_cooked_write_using_offset_hack): New function.
1905 (regcache_dump): Check that the registers, according to their
1906 offset, are packed hard against each other.
1907 (cooked_xfer_using_offset_hack): New function.
1908
bb425013
AC
19092002-08-25 Andrew Cagney <ac131313@redhat.com>
1910
1911 * regcache.c (struct regcache_descr): Add field register_type.
1912 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1913 in as a parameter
1914 (init_regcache_descr): Initialize register_type. Pass the descr
1915 to init_legacy_regcache_descr. Use register_type instead of
1916 REGISTER_VIRTUAL_TYPE.
1917 (register_type): New function.
1918 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1919 * regcache.h (register_type): Declare.
1920
d0403e00
AC
19212002-08-25 Andrew Cagney <ac131313@redhat.com>
1922
1923 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1924 instead of deprecated_store_return_value. Fix fallout from
1925 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1926
0ed04cce
AC
19272002-08-25 Andrew Cagney <ac131313@redhat.com>
1928
1929 * regcache.c (max_register_size): New function.
1930 (init_legacy_regcache_descr): Ensure that max_register_size is
1931 large enough for REGISTER_VIRTUAL_SIZE.
1932 * regcache.h (max_register_size): Declare.
1933
46d79c04
AC
19342002-08-24 Andrew Cagney <ac131313@redhat.com>
1935
1936 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1937 store_return_value.
1938 (e500_extract_return_value): Change type of valbuf pointer to
1939 void.
1940
853c7bd0
MK
19412002-08-24 Mark Kettenis <kettenis@gnu.org>
1942
cd87e769
MK
1943 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1944 workaround.
1945
853c7bd0
MK
1946 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1947 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1948 long long) to prevent compiler warning on 64-bit systems.
1949
ebba8386
AC
19502002-08-23 Andrew Cagney <cagney@redhat.com>
1951
1952 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1953 (DEPRECATED_STORE_RETURN_VALUE): New method.
1954 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1955 * gdbarch.h, gdbarch.c: Re-generate.
1956
1957 * values.c (set_return_value): Pass current_regcache to
1958 STORE_RETURN_VALUE.
1959 * arch-utils.h (legacy_store_return_value): Declare.
1960 * arch-utils.c (legacy_store_return_value): New function.
1961 (legacy_extract_return_value): Update parameters.
1962
1963 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1964 STORE_RETURN_VALUE.
1965 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1966 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1967 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1968 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1969 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1970 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1971 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1972 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1973 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1974 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1975
1976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1977 * i386-tdep.c (i386_extract_return_value): Update.
1978 * arch-utils.c (legacy_extract_return_value): Update.
1979 * frv-tdep.c (frv_gdbarch_init): Update.
1980 * cris-tdep.c (cris_gdbarch_init): Update.
1981 * d10v-tdep.c (d10v_gdbarch_init): Update.
1982 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1983 * m68k-tdep.c (m68k_gdbarch_init): Update.
1984 * mcore-tdep.c (mcore_gdbarch_init): Update.
1985 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1986 * s390-tdep.c (s390_gdbarch_init): Update.
1987 * sparc-tdep.c (sparc_gdbarch_init): Update.
1988 * sh-tdep.c (sh_gdbarch_init): Update.
1989 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1990 * v850-tdep.c (v850_gdbarch_init): Update.
1991 * avr-tdep.c (avr_gdbarch_init): Update.
1992 * ia64-tdep.c (ia64_gdbarch_init): Update.
1993 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1994 * vax-tdep.c (vax_gdbarch_init): Update.
1995 * alpha-tdep.c (alpha_gdbarch_init): Update.
1996 * arm-tdep.c (arm_gdbarch_init): Update.
1997 * mips-tdep.c (mips_gdbarch_init): Update.
1998 * i386-tdep.c (i386_gdbarch_init): Update.
1999
5bd8c6d0
AC
20002002-08-23 Andrew Cagney <ac131313@redhat.com>
2001
2002 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2003 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2004
e73e1724
MK
20052002-08-24 Mark Kettenis <kettenis@gnu.org>
2006
2007 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2008 problems.
2009
3e6564e1
JB
20102002-08-23 Joel Brobecker <brobecker@gnat.com>
2011
2012 * infrun.c (handle_inferior_event): Move a comment outside of a
2013 function call, in order to avoid indent reformatting this part
2014 of the code in an unreadable way.
2015
81d0cc19
GS
20162002-08-23 Grace Sainsbury <graces@redhat.com>
2017
2018 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2019 when breakpoints fail. Move general breakpoint error messages to
2020 insert_breakpoints.
2021 * breakpoint.c (insert_breakpoints): Change warnings when
2022 breakpoints are nto inserted to specify the type. Remove call to
2023 memory_error when hardware breakpoints can't be inserted. Remove
2024 multiple calls to warning so all messages are sent to the user at
2025 once.
2026 (delete_breakpoints): Make insert error messsages more explicit.
2027
17574093
DJ
20282002-08-23 Daniel Jacobowitz <drow@mvista.com>
2029
2030 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2031 gdbserver/ChangeLog.
2032
8acc2935
MK
20332002-08-23 Mark Kettenis <kettenis@gnu.org>
2034
dfe01d39
MK
2035 * i386-tdep.c: Include "objfiles.h".
2036 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2037 skip_trampoline_code.
2038 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2039 (CPLUS_MARKER): Define to '.'.
2040
8acc2935
MK
2041 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2042 member.
2043 (linux_corefile_thread_callback): Increase args->num_notes.
2044 (linux_make_note_section): Initialize thread_args.num_notes, and
2045 use it to determine whether notes for any threads were created.
2046
151fefe2 20472002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
2048
2049 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2050 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2051 and PCUNKILL.
2052 (write_with_trace): Conditionalize out the switch branch handling
2053 PCSHOLD if the corresponding macro is not defined. Likewise for
2054 PRSABORT and PRSTOP.
2055 This change will be needed by the Interix port.
2056
e1507482
EZ
20572002-08-22 Elena Zannoni <ezannoni@redhat.com>
2058
2059 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2060 write_register wherever possible instead of manipulating the
2061 register bytes directly.
2062 Assign VALUE_CONTENTS to a variable and use that.
2063 The GPR numbers are now dependent on the architecture.
2064
96ff0de4
EZ
20652002-08-22 Elena Zannoni <ezannoni@redhat.com>
2066
2067 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2068 ev_offset fields.
2069 (skip_prologue): Add support for BookE/e500 instructions.
2070 (e500_extract_return_value): New function.
2071 (frame_get_saved_regs): Add support for saving ev registers and
2072 pseudo gpr's.
2073 (e500_store_return_value): New function.
2074 (rs6000_gdbarch_init): Move up default intializations of
2075 deprecated_extract_return_value and store_return_value. Overwrite
2076 init of store_return_value with e500 specific version.
2077 Set extract_return_value for e500.
2078
fbefca5b
EZ
20792002-08-22 Elena Zannoni <ezannoni@redhat.com>
2080
2081 * blockframe.c (generic_call_dummy_register_unwind): Use
2082 regcache_cooked_read to catch cases in which the variable is
2083 stored in a pseudo register.
2084
4d210288
AC
20852002-08-22 Andrew Cagney <cagney@redhat.com>
2086
2087 * NEWS: Mention that the i960 has been made obsolete.
2088 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2089 i960-tdep.c
2090 (remote-nrom.o): Obsolete target.
2091 (remote-nindy.o, i960-tdep.o): Ditto.
2092 * remote-nrom.c: Make file obsolete.
2093 * remote-nindy.c, remote-vx960.c: Ditto.
2094 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2095 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2096 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2097 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2098 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2099 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2100 i960-*-vxworks* obsolete.
2101 * MAINTAINERS: Note that the i960 is obsolete.
2102
6c0c456d
CV
21032002-08-21 Corinna Vinschen <vinschen@redhat.com
2104
2105 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2106 detach to allow reinitialization.
2107
9f9d12b3
AC
21082002-08-22 Andrew Cagney <ac131313@redhat.com>
2109
2110 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2111 attempt).
2112
ebeb39fe
JB
21132002-08-22 Jim Blandy <jimb@redhat.com>
2114
2115 * coffread.c (coff_symfile_read): Don't try to read the line
2116 number table from disk if the image file doesn't have a symbol
2117 table; we'll never actually look at the info anyway, and Windows
2118 ships DLL's with bogus file offsets for the line number data.
2119
5bf1c677
EZ
21202002-08-21 Elena Zannoni <ezannoni@redhat.com>
2121
2122 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2123 an e500 executable.
2124
71b8ef93
MS
21252002-08-21 Michael Snyder <msnyder@redhat.com>
2126
2127 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2128 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2129 (DEFAULT_MIPS_TYPE): Delete unused macro.
2130 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2131 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2132
d174216d
JB
21332002-08-21 Jim Blandy <jimb@redhat.com>
2134
2135 * valops.c (value_cast): Simplify and correct logic for doing a
2136 static cast from a pointer to a base class to a pointer to a
2137 derived class.
2138
0ab7a791
AC
21392002-08-21 Andrew Cagney <ac131313@redhat.com>
2140
2141 * infcmd.c (default_print_registers_info): Replace
2142 do_registers_info.
2143 (registers_info): Use gdbarch_print_registers_info instead of
2144 DO_REGISTERS_INFO.
2145 * inferior.h (default_print_registers_info): Replace
2146 do_registers_info.
2147 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2148 (DO_REGISTERS_INFO): Change to a predicate function.
2149 * gdbarch.h, gdbarch.c: Regenerate.
2150
e23792cc
KS
21512002-08-21 Keith Seitz <keiths@redhat.com>
2152
2153 * gdb-events.sh: Add target-changed event.
2154 * gdb-events.c: Regenerated.
2155 * gdb-events.c: Regenerated.
2156 * valops.c (value_assign): Add target-changed event notification
2157 to inlval_register, lval_memory, and lval_reg_frame_relative.
2158
9fb14e79
JB
21592002-08-21 Joel Brobecker <brobecker@gnat.com>
2160
2161 * NEWS: Add an entry regarding the improvement of the next/step
2162 operation on Alpha Tru64 multi-processor machines.
2163
6d39a69f
AC
21642002-08-21 Andrew Cagney <ac131313@redhat.com>
2165
72acd513
AC
2166 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2167 directores.
342af04b 2168 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2169 * Makefile.in (install-gdbtk): Move to install section.
2170 (rdi-share/libangsd.a): Move to end of file.
2171
fa5f27c7
AC
21722002-08-19 Andrew Cagney <ac131313@redhat.com>
2173
2174 * frame.c (frame_register_unwind): When a register, set addrp to
2175 the register's byte.
2176
5a89d8aa
MS
21772002-08-20 Michael Snyder <msnyder@redhat.com>
2178
2179 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2180 used locally, so move them from the target machine header to here.
2181 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2182 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2183 Make static.
2184 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2185
822e978b
AC
21862002-08-20 Andrew Cagney <cagney@redhat.com>
2187
2188 * NEWS: Mention that the Apollo line was made obsolete.
2189 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2190 m68*-hp-hpux* obsolete.
2191 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2192 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2193 * buildsym.c (make_blockvector): Make static.
2194 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2195 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2196 (ALLDEPFILES): Remove dstread.c.
2197 (dstread.o): Obsolete make rule.
2198 * dstread.c: Makefile obsolete.
2199 * dst.h: Ditto.
2200 * config/m68k/hp300hpux.mt: Ditto.
2201 * config/m68k/hp300hpux.mh: Ditto.
2202 * config/m68k/hp300bsd.mt: Ditto.
2203 * config/m68k/hp300bsd.mh: Ditto.
2204 * config/m68k/apollo68b.mt: Ditto.
2205 * config/m68k/apollo68v.mh: Ditto.
2206 * config/m68k/apollo68b.mh: Ditto.
2207
e41b17f0
MS
22082002-08-20 Michael Snyder <msnyder@redhat.com>
2209
2210 * mips-tdep.c (mips_in_return_stub): Make static.
2211 (mips_gdbarch_init): Set in_solib_return_trampoline.
2212 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2213
d50355b6
MS
22142002-08-20 Michael Snyder <msnyder@redhat.com>
2215
2216 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2217 * gdbarch.c, gdbarch.h: Regenerate.
2218 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2219 Add.
2220 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2221
757a7cc6
MS
22222002-08-20 Michael Snyder <msnyder@redhat.com>
2223
2224 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2225 (mips_gdbarch_init): Set skip_trampoline_code,
2226 in_solib_call_trampoline.
2227 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2228 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2229
c8001721
EZ
22302002-08-20 Elena Zannoni <ezannoni@redhat.com>
2231
2232 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2233
2234 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2235 vector type for ev registers.
2236 (e500_pseudo_register_read): New function.
2237 (e500_pseudo_register_write): New function.
2238 (e500_dwarf2_reg_to_regnum): New function.
2239 (PPC_UISA_NOFP_SPRS): New macro.
2240 (PPC_EV_REGS): New macro.
2241 (PPC_GPRS_PSEUDO_REGS): New macro.
2242 (registers_e500): New register set for e500.
2243 (variants): Add e500 variant.
2244 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2245 before setting architectural dependent variations. Initialize ev
2246 registers numbers. Add case for e500 architecture. Set the
2247 number of pseudo registers.
2248
64366f1c
EZ
22492002-08-20 Elena Zannoni <ezannoni@redhat.com>
2250
2251 * rs6000-tdep.c: Clean up comments.
2252
7e78f0ca
AC
22532002-08-20 Andrew Cagney <cagney@redhat.com>
2254
2255 * h8300-tdep.c: Re-indent file.
2256
697f7479
JB
22572002-08-20 Jim Blandy <jimb@redhat.com>
2258
2259 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2260 default for this.
697f7479 2261
e86ae29f
KS
22622002-08-20 Keith Seitz <keiths@redhat.com>
2263
2264 * breakpoints.c (watch_command_1): Use internal breakpoint
2265 when setting a watchpoint_scope breakpoint.
2266
216b504f
EZ
22672002-08-20 Elena Zannoni <ezannoni@redhat.com>
2268
2269 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2270 (build_builtin_type_vec64i): Ditto.
2271 (build_builtin_type_vec128): Ditto.
2272 (build_builtin_type_vec128i): Ditto.
2273
f7ab6ec6
MS
22742002-08-19 Michael Snyder <msnyder@redhat.com>
2275
2276 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2277 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2278 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2279 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2280 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2281 CALL_DUMMY_ADDRESS): Delete.
2282 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2283 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2284 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2285 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2286 push_return_address.
2287 (mips_register_raw_size, mips_eabi_use_struct_convention,
2288 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2289 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2290 mips_init_extra_frame_info, mips_eabi_push_arguments,
2291 mips_n32n64_push_arguments, mips_push_return_address,
2292 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2293 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2294
b5d1566e
MS
22952002-08-19 Michael Snyder <msnyder@redhat.com>
2296
2297 * mips-tdep.c (mips_frame_num_args): New function.
2298 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2299 frame_saved_pc, frame_args_address, frame_locals_address,
2300 frame_num_args, and frame_args_skip.
2301 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2302 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2303 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2304 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2305
2f1488ce
MS
23062002-08-20 Michael Snyder <msnyder@redhat.com>
2307
2308 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2309 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2310 * mips-tdep.c (mips_store_struct_return): New function.
2311 (mips_extract_struct_value_address): New function.
2312 (mips_gdbarch_init): Set store_struct_return and
2313 extract_struct_value_address.
2314
41ff2da1
DC
23152002-08-20 David Carlton <carlton@math.stanford.edu>
2316
2317 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2318 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2319 (read_file_scope): Check that line_header is nonzero before
2320 decoding macro information.
2321
e5451d58
MK
23222002-08-20 Mark Kettenis <kettenis@gnu.org>
2323
2324 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2325 flag the general-purpose registers as floating-point on targets
2326 that don't support the floating-point registers.
2327
4a6daafa
EZ
23282002-08-20 Elena Zannoni <ezannoni@redhat.com>
2329
2330 * rs6000-tdep.c (altivec_register_p): Delete.
2331 (rs6000_do_altivec_registers): Delete.
2332 (rs6000_altivec_registers_info): Delete.
2333 (rs6000_do_registers_info): Delete.
2334 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2335 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2336
ab4327e0
EZ
23372002-08-20 Elena Zannoni <ezannoni@redhat.com>
2338
2339 * infcmd.c (do_registers_info): Print vector registers in hex
2340 format only.
2341 (print_vector_info): Check that printing registers
2342 makes sense.
2343 (print_float_info): Ditto.
2344
cb1d2653
AC
23452002-08-20 Andrew Cagney <ac131313@redhat.com>
2346
2347 * mips-tdep.c (mips_gdbarch_init): Update.
2348 (mips_o32_extract_return_value): Rewrite.
2349 (mips_o32_store_return_value): Rewrite.
2350 (mips_o32_xfer_return_value): New function.
2351 (mips_xfer_register): Tweak debug print message. Allow for
2352 buf_offset when dumping the value transfered.
2353
dfc3d9b2
AC
23542002-08-20 Andrew Cagney <ac131313@redhat.com>
2355
2356 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2357 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2358 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2359 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2360 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2361
7807aa61
MS
23622002-08-14 Michael Snyder <msnyder@redhat.com>
2363
2364 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2365
489461e2
EZ
23662002-08-19 Elena Zannoni <ezannoni@redhat.com>
2367
2368 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2369 register.
2370 (P): New macro to define a register as a pseudo register.
2371 (R, R4, R8, R16, FR32, R64, R0): Updated.
2372 (struct variant): Add new fields for number of pseudo registers
2373 and number of total registers.
2374 (tot_num_registers): New macro replacing....
2375 (num_registers): ...deleted macro.
2376 (num_registers): New function.
2377 (num_pseudo_registers): New function.
2378 (variants): Update all variants to intialize new fields correctly.
2379 Postpone initialization of number of pseudo regs and real regs.
2380 (init_variants): New function.
2381 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2382 registers offsets.
2383
fcaffe4c
DC
23842002-08-19 David Carlton <carlton@math.stanford.edu>
2385
2c2738a0
DC
2386 * valops.c (search_struct_field): Change error message to treat
2387 return value of 0 from value_static_field as meaning that field is
2388 optimized out.
2389 (value_struct_elt_for_reference): Ditto.
2390 * values.c (value_static_field): Treat an unresolved location the
2391 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2392 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2393 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2394 * MAINTAINERS: Add self to Write After Approval list.
2395
88658117
AC
23962002-08-19 Andrew Cagney <ac131313@redhat.com>
2397
2398 * mips-tdep.c (mips_xfer_register): New function.
2399 (mips_n32n64_extract_return_value): Rewrite.
2400 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2401 instead of deprecated_extract_return_value.
2402
21283beb
EZ
24032002-08-19 Elena Zannoni <ezannoni@redhat.com>
2404
2405 * rs6000-tdep.c (TDEP): Delete macro.
2406 (branch_dest): Replace use of TDEP macro with its body.
2407 (rs6000_pop_frame): Ditto.
2408 (rs6000_push_arguments): Ditto.
2409 (rs6000_skip_trampoline_code): Ditto.
2410 (rs6000_frame_saved_pc): Ditto.
2411 (rs6000_frame_chain): Ditto.
2412 (rs6000_register_name): Ditto.
2413 (rs6000_register_byte): Ditto.
2414 (rs6000_register_raw_size): Ditto.
2415 (rs6000_register_virtual_type): Ditto.
2416 (rs6000_register_convertible): Ditto.
2417 (rs6000_convert_from_func_ptr_addr): Ditto.
2418
bf072999
DJ
24192002-08-19 Daniel Jacobowitz <drow@mvista.com>
2420
2421 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2422 conditionally.
2423 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2424 MIPS_LINUX_JB_ELEMENT_SIZE.
2425 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2426 for MAX_REGISTER_RAW_SIZE arrays.
2427 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2428 MIPS_LINUX_JB_ELEMENT_SIZE.
2429
9b949a49
PM
24302002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2431
2432 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2433
6d3e79c6
AS
24342002-08-19 Aidan Skinner <aidan@velvet.net>
2435
2436 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2437 ada-valprint.c ada-tasks.c.
2438 (YYFILES): Add ada-exp.y.
2439 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2440 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2441 (ada-exp.tab.o): New target.
2442
06c0b04e
AC
24432002-08-18 Andrew Cagney <ac131313@redhat.com>
2444
2445 * regcache.c (regcache_xfer_part): New function.
2446 (regcache_raw_read_part): New function.
2447 (regcache_raw_write_part): New function.
2448 (regcache_cooked_read_part): New function.
2449 (regcache_cooked_write_part): New function.
2450 * regcache.h (regcache_raw_read_part): Declare.
2451 (regcache_raw_write_part): Declare.
2452 (regcache_cooked_read_part): Declare.
2453 (regcache_cooked_write_part): Declare.
2454
92d1e331
DJ
24552002-08-18 Daniel Jacobowitz <drow@mvista.com>
2456
2457 * remote.c (remote_open_1): Add async_p.
2458 (remote_async_open_1): Delete.
2459 (open_remote_target): Delete.
2460 (remote_open, extended_remote_open): Update calls to remote_open_1.
2461 (remote_async_open, extended_remote_async_open): Call
2462 remote_open_1 instead of remote_async_open_1.
2463
247055de
MK
24642002-08-19 Mark Kettenis <kettenis@gnu.org>
2465
2466 * blockframe.c: Fix a few coding standard violations.
2467
641eda39
MK
24682002-08-19 Mark Kettenis <kettenis@gnu.org>
2469
0b717710
MK
2470 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2471 here from ...
2472 * config/i386/tm-i386sco5.h: ... here. File removed.
2473 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2474
26d28e12 2475 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2476 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2477 (TM_FILE): Set to tm-i386.h.
2478 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2479 * config/i386/tm-i386v.h: Remove file.
2480 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2481 instead of "i386/tm-i386v.h".
2482 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2483 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2484 "i386/tm-i386v.h".
2485 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2486 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2487 "i386/tm-i386.h".
2488
d4e0bab4
MK
24892002-08-18 Mark Kettenis <kettenis@gnu.org>
2490
2491 * config/i386/nm-i386v.h: Add protection against
2492 multiple-inclusion.
2493 (i386_register_u_addr): Remove prototype.
2494 (register_u_addr): New prototype.
2495 (REGISTER_U_ADDR): Redefine accordingly.
2496 * i386v-nat.c: Improve several comments.
2497 (i386_register_u_addr): Change signature and rename to
2498 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2499 ubase variable.
2500
46cac009
AC
25012002-08-18 Andrew Cagney <ac131313@redhat.com>
2502
2503 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2504 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2505 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2506 deprecated_extract_return_value.
2507 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2508 rename mips_o32o64_push_arguments.
2509 (mips_gdbarch_init): Update.
2510 (mips_extract_return_value): Delete.
2511 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2512 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2513 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2514 (mips_n32n64_extract_return_value): Clone
2515 mips_extract_return_value.
2516 (mips_store_return_value): Delete.
2517 (mips_o32_store_return_value): Clone mips_store_return_value.
2518 (mips_o64_store_return_value): Clone mips_store_return_value.
2519 (mips_eabi_store_return_value): Clone mips_store_return_value.
2520 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2521
d2e4a39e
AS
25222002-08-18 Aidan Skinner <aidan@velvet.net>
2523
0c30c098
AS
2524 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2525 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2526
25272002-08-18 Aidan Skinner <aidan@velvet.net>
2528
2529 * ada-lang.c: Run through gdb_indent.sh.
2530 * ada-lang.h: Run through gdb_indent.sh.
2531 * ada-tasks.c: Run through gdb_indent.sh.
2532 * ada-typeprint.c: Run through gdb_indent.sh.
2533 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2534
01fc4e33
AC
25352002-08-18 Andrew Cagney <ac131313@redhat.com>
2536
2537 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2538 ABI.
2539
d8ee244c
MK
25402002-08-18 Mark Kettenis <kettenis@gnu.org>
2541
c38d8261
MK
2542 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2543
222db64c
MK
2544 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2545 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2546
c2848c82
MK
2547 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2548 write_register_gen instead of write_register_bytes.
2549
d8ee244c
MK
2550 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2551 i[3456]-*-osf1mk* configurations have been made obsolete.
2552 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2553 i[3456]86-*-osf1mk* hosts obsolete.
2554 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2555 targets obsolete.
2556 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2557 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2558 config/i386/i386m3.mt, config/i386/nm-m3.h,
2559 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2560 config/i386/i386mk.mh, config/i386/i386mk.mt,
2561 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2562 obsolete.
2563 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2564 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2565 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2566
61d8d407
AC
25672002-08-18 Andrew Cagney <ac131313@redhat.com>
2568
2569 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2570 (hppa_value_returned_from_stack): Declare.
2571 (hppa_extract_return_value): Declare.
2572 * config/pa/hppa.mt: New file.
2573 * configure.tgt: Recognize hppa*-*-*.
2574 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2575
0c52bd59
MK
25762002-08-18 Mark Kettenis <kettenis@gnu.org>
2577
2578 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2579 comment.
2580
b5686e99
MK
25812002-08-17 Mark Kettenis <kettenis@gnu.org>
2582
2583 * top.c (gdb_rl_operate_and_get_next): Make sure
2584 operate-and-get-next functions correctly even when the history
2585 list is completely filled.
2586
c1bab85b
AC
25872002-08-18 Andrew Cagney <ac131313@redhat.com>
2588
2589 * MAINTAINERS (Target Instruction Set Architectures): Rename
2590 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2591 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2592 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2593 already listed under Host/Native.
2594
2595 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2596 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2597 mips*-*-*.
2598
32089c7c
AC
25992002-08-17 Andrew Cagney <ac131313@redhat.com>
2600
2601 * config/ia64/ia64.mt: New file.
2602 * config/alpha/alpha.mt: New file.
2603 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2604 ia64-linux-gnu. Mention that ia64-elf is broken.
2605 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2606
b4671f85
MK
26072002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2608
2609 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2610 generic_func_frame_valid instead of func_frame_valid.
2611
c8edd8b4
JB
26122002-08-16 Joel Brobecker <brobecker@gnat.com>
2613
2614 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2615 procfs appears to be broken when debugging on multi-processor
2616 machines. So enable software single stepping in order to avoid
2617 using the procfs interface to do next/step operations, using
2618 internal breakpoints instead.
2619
2620 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2621 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2622 make this pc address equal to the value it would have if the
2623 system stepping capability was used. Also set a new flag used
2624 to ensure that we don't readjust the PC one more time later.
2625
2626 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2627 address by DECR_PC_AFTER_BREAK when software single step is
2628 in use for this architecture, as this has already been taken
2629 care of in handle_inferior_event().
2630
238617f6
JB
26312002-08-16 Joel Brobecker <brobecker@gnat.com>
2632
2633 * infrun.c (handle_inferior_event): Minor reformatting, to make
2634 a rather long condition expression easier to read.
2635
541a7aac
AC
26362002-08-16 Andrew Cagney <ac131313@redhat.com>
2637
2638 * Makefile.in (gdbtk.o): Move to end of file.
2639 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2640 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2641 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2642 (gdbtk-wrapper.o, gdbres.o): Ditto.
2643
f92d4a7b
AC
26442002-08-16 Andrew Cagney <ac131313@redhat.com>
2645
2646 * Makefile.in (copying.o): Separate out compile rule.
2647 (hpux-thread.o, procfs.o, signals.o): Ditto.
2648 (v850ice.o, z8k-tdep.o): Ditto.
2649 (tui-file.o): Move to TUI section.
2650 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2651 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2652
1cce71eb
JB
26532002-08-16 Joel Brobecker <brobecker@gnat.com>
2654
2655 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2656 skip_trampoline_code, for better namespace-proofing.
2657
2658 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2659
0851f23d
JB
26602002-08-16 Joel Brobecker <brobecker@gnat.com>
2661
2662 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2663
f8d40ec8
JB
26642002-08-16 Joel Brobecker <brobecker@gnat.com>
2665
2666 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2667 signal, check whether we hit a breakpoint before checking for a
2668 single step breakpoint. Otherwise, GDB fails to notice that a
2669 breakpoint has been hit when stepping onto a breakpoint.
2670
63d022e0
KS
26712002-08-16 Keith Seitz <keiths@redhat.com>
2672
2673 * gdb-events.sh (clear_gdb_event_hooks): New function.
2674 * gdb-events.c: Regenerate.
2675 * gdb-events.h: Regenerate.
2676
6e31adb3
AC
26772002-08-16 Andrew Cagney <ac131313@redhat.com>
2678
2679 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2680 not_a_sw_breakpoint.
2681 * breakpoint.h (bpstat_stop_status): Add parameter names.
2682
c8189ed1
GS
26832002-08-16 Grace Sainsbury <graces@redhat.com>
2684
2685 * remote.c (remote_insert_hw_breakpoint)
2686 (remote_remove_hw_breakpoint): Fix calculation of length field
2687 for Z-packet.
2688
d05285fa
MS
26892002-08-15 Michael Snyder <msnyder@redhat.com>
2690
466d7106
MS
2691 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2692 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2693 (supply_fpregset): Ditto.
2694
d05285fa
MS
2695 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2696 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2697 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2698 (TARGET_READ_SP): Delete.
bf1f5b4c 2699 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2700 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2701 Delete.
2702 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2703 from macros to functions.
bf1f5b4c 2704
d05285fa
MS
2705 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2706 (mips_register_convertible, mips_register_convert_to_virtual,
2707 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2708 (mips_read_sp): New function.
2709 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2710 (mips_do_registers_info): Make static.
2711 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2712 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2713 (mips_register_convert_from_type, mips_register_convert_to_type):
2714 New functions.
2715 (mips_gdbarch_init): Set up function_start_offset,
2716 register_virtual_size, pc_in_sigtramp.
d05285fa 2717
e76f1f2e
AC
27182002-08-15 Andrew Cagney <ac131313@redhat.com>
2719
2720 * infcmd.c (vector_info): New function.
2721 (_initialize_infcmd): Add command "info vector".
2722 (print_vector_info): New function.
2723
2724 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2725 * gdbarch.h, gdbarch.c: Regenerate.
2726
4782dc19
AC
27272002-08-15 Andrew Cagney <ac131313@redhat.com>
2728
2729 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2730 ``print_all''. Only print vector registers when ``print_all''.
2731
23e3a7ac
AC
27322002-08-15 Andrew Cagney <ac131313@redhat.com>
2733
8e186fd6
AC
2734 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2735 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2736
23e3a7ac
AC
2737 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2738 Add `args' parameter.
2739 * gdbarch.h, gdbarch.c: Regenerate.
2740
2741 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2742
2743 * infcmd.c (float_info): Call print_float_info.
2744 (print_float_info): New function. By default, print the
2745 floating-point registers.
2746
2747 * arch-utils.h (default_print_float_info): Delete declaration.
2748 * arch-utils.c (default_print_float_info): Delete function.
2749
e0ca2bb9
MK
27502002-08-16 Mark Kettenis <kettenis@gnu.org>
2751
3f733acc
MK
2752 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2753 out define.
2754
7d8d2918
MK
2755 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2756 FRAME.
2757
1c7cc583
MK
2758 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2759 * configure.host: Make i[3456]86-*-aix host obsolete.
2760 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2761 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2762 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2763 config/i386/xm-i386aix.h: Make files obsolete.
2764 * i386aix-nat.c: Make file obsolete.
2765 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2766 (i386aix-nat.o): Make target obsolete.
2767
e0ca2bb9
MK
2768 * config/i386/nm-gnu.h: Removed.
2769 * config/i386/nm-i386gnu.h: New file.
2770 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2771 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2772 Moved here from ...
2773 * config/i386/tm-i386gnu.h: ... here. Removed.
2774 * config/i386/xm-i386gnu.h: Removed.
2775 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2776 (NAT_FILE): Set to nm-i386gnu.h.
2777 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2778 * i386-tdep.c: New file.
2779 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2780 (i386gnu-tdep.o): Specify dependencies.
2781
16057ec7 27822002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2783
6b99ee2e
MK
2784 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2785 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2786 Adjust a few comments to reflect reality a bit closer.
2787 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2788 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2789 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2790 target_insert_watchpoint, target_remove_watchpoint):
2791 Move defines to ...
2792 * config/i386/nm-i386sco5.h: ... here.
2793 (kernel_u_size): Add prototype. Improve a few comments and add
2794 protection against multiple inclusion.
2795
d9a6f65c
MK
2796 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2797 out define.
2798
047eff6a
MK
2799 * uw-thread.c (SP_ARG0): Define if not already defined.
2800 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2801
dcdb1290
MK
2802 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2803
5d2d0b2a
MK
2804 * config/i386/tm-i386.h: Don't include "regcache.h".
2805
61113f8b
MK
2806 * i387-tdep.h (i387_print_float_info): New prototype.
2807 * i387-tdep.c (print_i387_value, print_i387_ext,
2808 print_i387_status_word, print_i387_control_word): Add `struct
2809 ui_file *' argument and use it for output.
2810 (i387_print_float_info): Renamed from i387_float_info. Add
2811 `struct gdbarch *' and `struct ui_file *' arguments and use the
2812 latter for output.
2813 * i386-tdep.c: Include "i387-tdep.h".
2814 (i386_gdbarch_init): Set print_float_info.
2815 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2816 (FLOAT_INFO): Remove define.
2817
46e0f506
MS
28182002-08-13 Michael Snyder <msnyder@redhat.com>
2819
2820 * mips-tdep.c (mips_push_arguments): Rename to
2821 mips_eabi_push_arguments, and tune for EABI.
2822 (MIPS_REGS_HAVE_HOME_P): Delete.
2823 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2824 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2825 Delete references to mips_regs_have_home_p.
2826
409268de
KS
28272002-08-14 Keith Seitz <keiths@redhat.com>
2828
2829 * Makefile.in (install-gdbtk): Create insight plugin directory.
2830 Install plugins.tcl file.
2831
ffc6a242
KS
28322002-08-14 Keith Seitz <keiths@redhat.com>
2833
2834 * configure.in: Move SUBDIRS to near top of the file so that
2835 --enable options may add things to it.
2836 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2837 * configure: Regenerate.
2838
ebafbe83
MS
28392002-08-13 Michael Snyder <msnyder@redhat.com>
2840
2841 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2842 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2843 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2844
32f6f25d
AC
28452002-08-13 Andrew Cagney <ac131313@redhat.com>
2846
2847 * vax-tdep.c (vax_get_saved_register): Delete function.
2848 (vax_gdbarch_init): Update.
2849 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2850 (ns32k_gdbarch_init): Update.
2851 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2852 (alpha_gdbarch_init): Update.
2853
53826de9
AC
28542002-08-13 Andrew Cagney <cagney@redhat.com>
2855
2856 * regcache.c (init_regcache_descr): Overallocate the
2857 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2858 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2859 nr_raw_registers.
2860 (set_register_cached): Add range checking assertions. Use
2861 current_regcache.
2862
16057ec7 28632002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2864
2865 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2866 numbers for MMX registers.
2867
7b4c2dce
AC
28682002-08-13 Andrew Cagney <cagney@redhat.com>
2869
2870 * i386-tdep.c (i386_gdbarch_init): Use
2871 generic_unwind_get_saved_register.
2872
1e03ad20
KB
28732002-08-13 Kevin Buettner <kevinb@redhat.com>
2874
2875 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2876 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2877 target vector.
2878 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2879 Delete. Add comment regarding this now-deleted target method.
2880
548bcbec
SC
28812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2882
2883 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2884 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2885 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2886 real PC and the page number (if it's within the memory bank window).
2887 (m68hc11_pseudo_register_write): Likewise when saving.
2888 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2889 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2890 (m68hc11_register_raw_size): And use 32-bit for it.
2891 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2892 16K memory bank is used by the prog; also use the virtual pc.
2893
7df11f59
SC
28942002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2895
2896 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2897 (m68hc11_gdbarch_init): Install it in gdbarch.
2898 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2899 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2900 (MSYMBOL_SIZE): New for documentation.
2901 (insn_return_kind): Enum to specify how a function returns.
2902 (frame_extra_info): Cleanup and record the return mode.
2903 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2904 register in address computation.
2905 (m68hc11_get_return_insn): New to obtain the return instruction used
2906 by the function.
2907 (m68hc11_frame_init_saved_regs): Take into account the return
2908 instruction used by the function for far and interrupt functions.
2909 (m68hc11_init_extra_frame_info): Take into account page register.
2910 (m68hc11_frame_args_address): Adjust according to the return mode.
2911 (show_regs): Print page register only when it's used.
2912
5706502a
SC
29132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2914
2915 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2916 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2917 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2918 registers.
2919 (m68hc11_register_raw_size): Likewise.
2920
28fc6740
AC
29212002-08-13 Andrew Cagney <cagney@redhat.com>
2922
2923 * i386-tdep.c (i386_register_name): Handle mmx registers.
2924 (mmx_regnum_p): New function.
2925 (i386_mmx_names): New array.
2926 (mmx_num_regs): New variable.
2927 (i386_pseudo_register_read): New function.
2928 (i386_pseudo_register_write): New function.
2929 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2930
2931 * regcache.c (regcache_raw_read_unsigned): New function.
2932 (regcache_raw_read_signed): New function.
2933 * regcache.h (regcache_raw_read_unsigned): Declare.
2934 (regcache_raw_read_signed): Declare.
2935
a378f419
AC
29362002-08-13 Andrew Cagney <cagney@redhat.com>
2937
2938 * regcache.c (regcache_raw_read_as_address): Delete function.
2939 (regcache_cooked_read_signed): New function.
2940 (regcache_cooked_read_unsigned): New function.
2941 * regcache.h (regcache_cooked_read_signed): Declare.
2942 (regcache_cooked_read_unsigned): Declare.
2943 (regcache_raw_read_as_address): Delete declaration.
2944
2945 * blockframe.c (generic_read_register_dummy): Use
2946 regcache_cooked_read_unsigned.
2947 * i386-tdep.c (i386_extract_struct_value_address): Use
2948 regcache_cooked_read_unsigned.
2949
81967506
SC
29502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2951
2952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2953 double sizes according to ELF ABI flags.
2954 (gdbarch_tdep): Record elf_flags.
2955
ffe1f3ee
SC
29562002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2957
2958 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2959 (m6812_prolog): They can appear in 68HC12 function prologue.
2960 (m68hc11_frame_chain): Cleanup.
2961
98216c5d
AC
29622002-08-12 Andrew Cagney <cagney@redhat.com>
2963
2964 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2965 declarations.
2966 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2967 (i386_linux_register_raw_size): Delete function.
2968 (i386_linux_init_abi): Update.
2969 * i386-tdep.c (i386_register_raw_size): Delete function.
2970 (i386_register_byte): Delete function.
2971 (i386_gdbarch_init): Update.
2972 (i386_register_size): Delete array.
2973 (i386_register_offset): Delete array.
2974
2975 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2976 (REGISTER_RAW_SIZE): Delete macro.
2977 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2978 (REGISTER_BYTE): Delete macro.
2979
3b19021e
AS
29802002-08-11 Aidan Skinner <aidan@velvet.net>
2981
2982 * ada-lang.c (ada_lookup_partial_symbol)
2983 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2984 prototype names so that grep ^func works properly.
2985
2986 * ada-lang.c (ada_array_element_type)
2987 (ada_lookup_partial_symbol): Fix typos in parameter list.
2988
2989 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2990 Fix prototype names so that grep ^func works properly.
2991
b063e7a2
AC
29922002-08-10 Andrew Cagney <cagney@redhat.com>
2993 Elena Zannoni <ezannoni@redhat.com>
2994 Martin M. Hunt <hunt@redhat.com>
2995
2996 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2997 (build_builtin_type_vec128i): Set the vector bit.
2998 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2999 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3000 (build_builtin_type_vec64): New function.
3001 (build_builtin_type_vec64i): New function.
3002 (build_gdbtypes): Initialize builtin_type_vec64 and
3003 builtin_type_vec64i.
3004
a7e3c2ad
AC
30052002-08-09 Andrew Cagney <cagney@redhat.com>
3006
3007 * regcache.c (regcache_dump): Compare the register offset
3008 with REGISTER_BYTE.
3009 * arch-utils.c (generic_register_byte): New function.
3010 * arch-utils.h (generic_register_byte): Declare.
3011 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3012 * gdbarch.h, gdbarch.c: Regenerate.
3013
af030b9a
AC
30142002-08-09 Andrew Cagney <cagney@redhat.com>
3015
3016 * regcache.c: Include "gdbcmd.h"
3017 (_initialize_regcache): Add commands "maintenance print
3018 registers", "maintenance print raw-registers" and "maintenance
3019 print cooked-registers".
3020 (enum regcache_dump_what): Define.
3021 (dump_endian_bytes): New function.
3022 (regcache_dump): New function.
3023 (regcache_print): New function.
3024 (maintenance_print_registers): New function.
3025 (maintenance_print_raw_registers): New function.
3026 (maintenance_print_cooked_registers): New function.
3027 * Makefile.in (regcache.o): Update dependencies.
3028
cb3d25d1
MS
30292002-08-09 Michael Snyder <msnyder@redhat.com>
3030
3031 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3032 (mips_push_arguments): Correct some comments. Use paddr_nz
3033 for printing addresses in debug output. Replace static
3034 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3035 (mips_n32n64_push_arguments): New function, cloned from
3036 mips_push_arguments and tuned for the n32/n64 ABI.
3037 (mips_push_register): Buffer needs dynamic allocation.
3038 (mips_print_register): Ditto.
3039 (do_gp_register_row): Ditto.
3040 (mips_store_return_value): Ditto.
3041 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3042
2163ab9d
DH
30432002-08-09 Don Howard <dhoward@redhat.com>
3044
3045 * memattr.c (mem_info_command): Print special case of upper bound
3046 as max CORE_ADDR + 1.
3047
b78bcb18
MS
30482002-08-08 Michael Snyder <msnyder@redhat.com>
3049
3050 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3051 returns structs by ref if they're too big to fit in two registers.
3052
ffabd70d
KB
30532002-08-09 Kevin Buettner <kevinb@redhat.com>
3054
3055 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3056 saved regs value.
3057 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3058 mips_find_saved_regs().
3059 (mips_pop_frame): Likewise.
3060
fbcdb4a3
KB
30612002-08-09 Kevin Buettner <kevinb@redhat.com>
3062
3063 * blockframe.c (frame_saved_regs_register_unwind): Revise
3064 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3065 frames are in use.
3066
3c3bea1c
GS
30672002-08-09 Grace Sainsbury <graces@redhat.com>
3068
3069 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3070 T-packets; the 'a' is not taken as a register number.
3071 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3072 (remote_stopped_data_address): New functions; add to target
3073 vector.
3074 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3075 prototypes to match other implementations of this
3076 function. replace integer argument with pointer -- the length
3077 field in the Z-packet is the length of what is pointed to or 1 if
3078 pointer is null. Add to target vector.
3079 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3080 target vector.
3081
3082 From Mark Salter:
3083 * remote.c (remote_wait): Add support to extract optional
3084 watchpoint information from T-packet. Ignore unrecognized
3085 optional info in T-packet.
3086 (remote_async_wait): Ditto.
3087
5d1d95de
CV
30882002-08-09 Corinna Vinschen <vinschen@redhat.com>
3089
3090 * cli/cli-dump.c: Change fopen modes to use binary open modes
3091 as defined in include/fopen-bin.h throughout.
3092
c86b5b38
MS
30932002-08-08 Michael Snyder <msnyder@redhat.com>
3094
3095 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3096
b30590dc
KB
30972002-08-08 Kevin Buettner <kevinb@redhat.com>
3098
3099 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3100 assertion failure by returning early after a warning.
3101
498868ed
KB
31022002-08-08 Kevin Buettner <kevinb@redhat.com>
3103
3104 * mips-tdep.c (mips_find_saved_regs): Make static.
3105 (mips_frame_init_saved_regs): New function.
3106 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3107 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3108 (mips_find_saved_regs): Delete declaration.
3109
b2dd6311
GS
31102002-08-08 Grace Sainsbury <graces@redhat.com>
3111
3c3bea1c
GS
3112 * remote.c (remote_wait, remote_async_wait): Change
3113 thread_num from int to ULONGEST.
3114 (unpack_varlen_hex): Change result parameter from
3115 int * to ULONGEST *.
b2dd6311 3116
ea47855f
AC
31172002-08-08 Andrew Cagney <ac131313@redhat.com>
3118
3119 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3120 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3121 powerpc*-*-*.
3122 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3123
69db8bae
AC
31242002-08-08 Andrew Cagney <cagney@redhat.com>
3125
3126 * gcore.c (override_derive_stack_segment): Delete variable.
3127 (preempt_derive_stack_segment): Delete function.
3128 (derive_stack_segment): Delete function.
3129 (default_derive_stack_segment): Renamed to derive_stack_segment.
3130 (override_derive_heap_segment): Delete variable.
3131 (preempt_derive_heap_segment): Delete function.
3132 (derive_heap_segment): Delete function.
3133 (default_derive_heap_segment): Rename to derive_heap_segment.
3134
cb811fe7
MS
31352002-08-06 Michael Snyder <msnyder@redhat.com>
3136
3137 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3138 * mips-tdep.c (mips_EABI_use_struct_convention,
3139 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3140 New functions. (mips_use_struct_convention): Delete.
3141 (mips_gdbarch_init): set use_gdbarch_convention.
3142
8b389c40
MS
31432002-08-06 Michael Snyder <msnyder@redhat.com>
3144
3145 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3146 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3147 mips_o32_reg_struct_has_addr): New functions.
3148 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3149
5c27f28a
AC
31502002-08-07 Andrew Cagney <ac131313@redhat.com>
3151
3152 * regcache.c (pseudo_register): Delete function.
3153 (fetch_register): Delete function.
3154 (store_register): Delete function.
3155 (regcache_raw_read, legacy_read_register_gen): Use
3156 target_fetch_registers instead of fetch_register.
3157 (legacy_write_register_gen, regcache_raw_write): Use
3158 target_store_register instead of store_register.
3159 (write_register_bytes): Ditto.
3160
3161 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3162 (STORE_PSEUDO_REGISTER): Delete.
3163 * gdbarch.h, gdbarch.c: Regenerate.
3164
5b331675
CV
31652002-08-06 Corinna Vinschen <vinschen@redhat.com>
3166
3167 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3168 write dump file binary.
3169
6acdf5c7
MS
31702002-08-05 Michael Snyder <msnyder@redhat.com>
3171
3172 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3173 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3174 (mips_gdbarch_init): Set N32 target to be mips64.
3175
b2f01c35
KB
31762002-08-06 Kevin Buettner <kevinb@redhat.com>
3177
3178 * frame.c (find_saved_register): Break out of loop once saved
3179 register address is found. Don't mention sparc in loop comment
3180 anymore.
3181
63db5580
KB
31822002-08-06 Kevin Buettner <kevinb@redhat.com>
3183
3184 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3185 mips_default_saved_regsize to 8.
3186
5e34e75e
AC
31872002-08-06 Andrew Cagney <ac131313@redhat.com>
3188
3189 * gcore.c: Do not include <sys/procfs.h>.
3190 * Makefile.in (gcore.o): Update dependencies.
3191
eb4c54a2
AC
31922002-08-06 Andrew Cagney <cagney@redhat.com>
3193
3194 * configure.tgt: Make arc-*-* obsolete.
3195 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3196 * MAINTAINERS: Make arc-elf obsolete.
3197 * arc-tdep.c: Make file obsolete.
3198 * config/arc/arc.mt: Ditto.
3199 * config/arc/tm-arc.h: Ditto.
3200
ced15480
TR
32012002-08-05 Theodore A. Roth <troth@verinet.com>
3202
c1bab85b 3203 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3204
b4743822
AC
32052002-08-05 Andrew Cagney <ac131313@redhat.com>
3206
3207 * mcore-tdep.c (mcore_gdbarch_init): Use
3208 generic_unwind_get_saved_register instead of
3209 generic_get_saved_register.
3210 * v850-tdep.c (v850_gdbarch_init): Ditto.
3211 * frv-tdep.c (frv_gdbarch_init): Ditto.
3212 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3213 * s390-tdep.c (s390_gdbarch_init): Ditto.
3214 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3215 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3216 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3217
3956d554
JB
32182002-08-05 Joel Brobecker <brobecker@gnat.com>
3219
3220 * objfiles.h: Add missing #include "symfile.h"
3221
3222 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3223
8249c0d6
AC
32242002-08-04 Andrew Cagney <ac131313@redhat.com>
3225
3226 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3227 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3228 of FIELD_BITSIZE.
3229
b9d14705
DJ
32302002-08-04 Daniel Jacobowitz <drow@mvista.com>
3231
3232 * NEWS: Cleanup and nitpick.
3233
dd73b9bb
AC
32342002-08-03 Andrew Cagney <ac131313@redhat.com>
3235
3236 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3237
043a27f8
AC
32382002-08-03 Andrew Cagney <ac131313@redhat.com>
3239
3240 * Makefile.in (gdbtk-bp.o): Update dependencies.
3241 (gdbtk-register.o): Ditto.
3242 (gdbtk-varobj.o): Ditto.
3243
46ce284d
AC
32442002-08-03 Andrew Cagney <cagney@redhat.com>
3245
3246 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3247 m68hc11_fetch_pseudo_register.
3248 (m68hc11_pseudo_register_write): Replace
3249 m68hc11_store_pseudo_register.
3250 (m68hc11_gdbarch_init): Update.
3251
b66d6d2e
AC
3252Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3253
3254 * gdbarch.sh: Include "gdb_string.h".
3255 * gdbarch.c: Regenerate.
3256
3257 * regcache.c: Include "gdb_string.h".
3258 * ax-general.c: Ditto.
3259 * varobj.c: Ditto.
3260 * std-regs.c: Ditto.
3261 * fbsd-proc.c: Ditto.
3262 * thread.c: Ditto.
3263
3264 * Makefile.in (regcache.o): Update dependencies.
3265 (thread.o, gdbarch.o): Ditto.
3266 (ax-general.o, gdbarch.o): Ditto.
3267 (varobj.o, std-regs.o): Ditto.
3268 (fbsd-proc.o): Specify dependencies.
3269
29e1842b
AC
32702002-08-02 Andrew Cagney <cagney@redhat.com>
3271
3272 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3273 regnum.
3274 (regcache_cooked_write): Ditto.
3275
68365089
AC
32762002-08-02 Andrew Cagney <ac131313@redhat.com>
3277
3278 * regcache.c (regcache_cooked_read): New function.
3279 (regcache_cooked_write): New function.
3280 (read_register_gen): Rewrite using regcache_cooked_read.
3281 (write_register_gen): Rewrite using regcache_cooked_write.
3282
3283 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3284 Declare.
3285
d8124050
AC
32862002-08-02 Andrew Cagney <cagney@redhat.com>
3287
3288 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3289 Replace the architecture methods register_read and register_write.
3290 * gdbarch.h, gdbarch.c: Regenerate.
3291 * regcache.c (init_regcache_descr): Update.
3292 (read_register_gen): Update.
3293 (write_register_gen): Update.
3294 (supply_register): Update comment.
3295
3296 * sh-tdep.c (sh_gdbarch_init): Update.
3297 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3298 `regcache' and `gdbarch' parameters. Make `buffer' a void
3299 pointer. Update code.
3300 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3301 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3302 void pointer. Update code.
3303 (sh64_register_write): Delete.
3304 (sh4_register_read): Delete.
3305 (sh64_register_read): Delete.
3306 (sh4_register_write): Delete.
3307 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3308 void pointer, `to' parameter a void pointer.
3309 (sh_sh64_register_convert_to_raw): Ditto.
3310
a6425924
KB
33112002-08-01 Kevin Buettner <kevinb@redhat.com>
3312
3313 * mips-tdep.c (mips_register_virtual_type): Use architecture
3314 invariant return values.
3315
ff5922b5
AC
33162002-08-01 Andrew Cagney <cagney@redhat.com>
3317
3318 * linux-proc.c: Include "gdb_string.h".
3319 * Makefile.in (linux-proc.o): Update dependency list.
3320
32a6503c
KB
33212002-08-01 Kevin Buettner <kevinb@redhat.com>
3322
3323 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3324 comment.
3325
ccaa32c7
GS
33262002-08-01 Grace Sainsbury <graces@redhat.com>
3327
3328 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3329 to_insert_watchpoint, to_remove_watchpoint,
3330 to_stopped_by_watchpoint, to_stopped_data_address,
3331 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3332 target vecctor. Define their corresponding macros so they call
3333 them.
3334
3335 * target.c: Add default and debug versions of for
3336 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3337 to_insert_watchpoint, to_remove_watchpoint,
3338 to_stopped_by_watchpoint, to_stopped_data_address,
3339 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3340
78fde5f8
KB
33412002-08-01 Kevin Buettner <kevinb@redhat.com>
3342
3343 * mips-tdep.c (mips_register_virtual_type): New function.
3344 (mips_gdbarch_init): Register mips_register_virtual_type()
3345 with gdbarch machinery.
3346 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3347 this file instead of tm-bigmips.h.
3348 (MIPS_REGSIZE): Delete this macro.
3349 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3350 multiarch version in mips-tdep.c will be found.
3351
db034ac5
AC
33522002-08-01 Andrew Cagney <cagney@redhat.com>
3353
3354 * NEWS: Menion that CHILL has been made obsolete.
3355
3356 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3357 * stabsread.c (read_range_type): Ditto.
3358 * gdbtypes.h: Ditto.
3359 * language.c (binop_type_check): Ditto.
3360 (binop_result_type): Ditto.
3361 (integral_type): Ditto.
3362 (character_type): Ditto.
3363 (string_type): Ditto.
3364 (boolean_type): Ditto.
3365 (structured_type): Ditto.
3366 (lang_bool_type): Ditto.
3367 (binop_type_check): Ditto.
3368 * language.h (_LANG_chill): Ditto.
3369 * dwarfread.c (set_cu_language): Ditto.
3370 * dwarfread.c (CHILL_PRODUCER): Ditto.
3371 * dwarfread.c (handle_producer): Ditto.
3372 * expression.h (enum exp_opcode): Ditto.
3373 * eval.c: Ditto for comments.
3374 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3375 * expprint.c (print_subexp): Ditto.
3376 (print_subexp): Ditto.
3377 * valops.c (value_cast): Ditto.
3378 (search_struct_field): Ditto.
3379 * value.h (COERCE_VARYING_ARRAY): Ditto.
3380 * symfile.c (init_filename_language_table): Ditto.
3381 (add_psymbol_with_dem_name_to_list): Ditto.
3382 * valarith.c (value_binop): Ditto.
3383 (value_neg): Ditto.
3384 * valops.c (value_slice): Ditto.
3385 * symtab.h (union language_specific): Ditto.
3386 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3387 (SYMBOL_DEMANGLED_NAME): Ditto.
3388 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3389 * defs.h (enum language): Ditto.
3390 * symtab.c (got_symtab): Ditto.
3391 * utils.c (fprintf_symbol_filtered): Ditto.
3392
3393 * ch-typeprint.c: Make file obsolete.
3394 * ch-valprint.c: Make file obsolete.
3395 * ch-lang.h: Make file obsolete.
3396 * ch-exp.c: Make file obsolete.
3397 * ch-lang.c: Make file obsolete.
3398
3399 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3400 CHILL_LIB.
3401 (TARGET_FLAGS_TO_PASS): Ditto.
3402 (CHILLFLAGS): Obsolete.
3403 (CHILL): Obsolete.
3404 (CHILL_FOR_TARGET): Obsolete.
3405 (CHILL_LIB): Obsolete.
3406 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3407 ch-valprint.c.
3408 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3409 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3410 ch-lang.o.
3411 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3412 targets.
3413
8aaf0b47
JB
34142002-07-31 Joel Brobecker <brobecker@gnat.com>
3415
3416 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3417 This does not change anything at the moment, but will be helpful
3418 later when full Ada support is integrated.
3419
f3a7b3a5
KB
34202002-07-31 Kevin Buettner <kevinb@redhat.com>
3421
3422 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3423 help message.
3424
fb850278
KB
34252002-07-31 Kevin Buettner <kevinb@redhat.com>
3426
3427 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3428 and save it in a local variable. Use variable in later test.
3429
e3bddbfa
KB
34302002-07-31 Kevin Buettner <kevinb@redhat.com>
3431
3432 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3433 test. (Thanks to Daniel Jacobowitz.)
3434
28d169de
KB
34352002-07-31 Kevin Buettner <kevinb@redhat.com>
3436
3437 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3438 (mips_abi_strings): Add "n64".
3439 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3440
7fe7e44e
KB
34412002-07-31 Kevin Buettner <kevinb@redhat.com>
3442
3443 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3444 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3445
c6caf090
KB
34462002-07-31 Kevin Buettner <kevinb@redhat.com>
3447
3448 * utils.c (host_pointer_to_address, address_to_host_pointer):
3449 Use gdb_assert() instead of explicit call to internal_error().
3450
c41669e0
KB
34512002-07-30 Kevin Buettner <kevinb@redhat.com>
3452
3453 * Makefile.in (rs6000-nat.o): Update dependencies.
3454
3455 From Nicholas Duffek:
3456 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3457 (aix-thread.o): New rule.
3458 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3459 * config/powerpc/aix432.mh: New file.
3460
2fda4977
DJ
34612002-07-30 Daniel Jacobowitz <drow@mvista.com>
3462
3463 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3464 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3465 (fetch_core_registers, ppc_linux_supply_gregset)
3466 (ppc_linux_supply_fpregset): New functions.
3467 (ppc_linux_regset_core_fns): New.
3468 (_initialize_ppc_linux_tdep): Call add_core_fns.
3469 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3470 and ppc_linux_supply_gregset.
3471 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3472 (supply_fpregset): Call ppc_linux_supply_fpregset.
3473 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3474 corelow.o.
3475 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3476
729051e6
DJ
34772002-07-30 Daniel Jacobowitz <drow@mvista.com>
3478
3479 * symtab.c (lookup_symbol): Demangle before lowercasing.
3480
5f8a3188
AC
34812002-07-30 Andrew Cagney <ac131313@redhat.com>
3482
3483 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3484 declaration.
3485 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3486 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3487 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3488 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3489 "gdb_string.h".
3490 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3491 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3492 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3493 (avr-tdep.o, mon960-rom.o): Ditto.
3494 (aout_stabs_gnu_h): Define.
3495 (symtab_h): Remove $(gdb_obstack_h).
3496
67f07146
JB
34972002-07-30 Jim Blandy <jimb@redhat.com>
3498
3499 Patch from David Carlton <carlton@math.stanford.edu>:
3500 * gdbinit.in: Move the `dir' commands that add GDB's own source
3501 directory to the search path to the end, so that the `gdb' source
3502 directory will be searched first.
3503
04ea0df1
AC
35042002-07-29 Andrew Cagney <ac131313@redhat.com>
3505
3506 * gdb_obstack.h: New file.
3507 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3508 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3509 * objfiles.h: Include "gdb_obstack.h".
3510 * Makefile.in (gdb_obstack_h): Define.
3511 (symtab_h): Add $(gdb_obstack_h).
3512 (objfiles_h): Add $(gdb_obstack_h).
3513
3514 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3515 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3516 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3517 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3518 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3519 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3520 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3521 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3522
3523 * Makefile.in (bcache.o): Update dependencies.
3524 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3525 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3526 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3527 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3528 (stabsread.o, symfile.o, symmisc.o): Ditto.
3529 (symtab.o, typeprint.o, macroexp.o): Ditto.
3530 (macrotab.o, mdebugread.o): Ditto.
3531 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3532 (coff_ecoff_h, aout_aout64_h): Define.
3533 (aout_stabs_gnu_h, libaout_h): Define.
3534
d138e37a
AC
35352002-07-29 Andrew Cagney <cagney@redhat.com>
3536
3537 * regcache.c (struct regcache_descr): Rename nr_registers to
3538 nr_cooked_registers. Revise comments describing the structure
3539 member fields.
3540 (init_regcache_descr): Update.
3541 (init_legacy_regcache_descr): Update.
3542 (read_register_gen, write_register_gen): When a cooked register in
3543 the raw register range, directly access the value from the raw
3544 register cache.
3545
460e6ec3
AC
35462002-07-29 Andrew Cagney <ac131313@redhat.com>
3547
3548 * z8k-tdep.c: Do not include "obstack.h".
3549 * h8300-tdep.c, h8500-tdep.c: Ditto.
3550 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3551 * valprint.c, v850-tdep.c: Ditto.
3552 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3553 * mn10200-tdep.c: Ditto.
3554
3555 * Makefile.in (z8k-tdep.o): Update dependencies.
3556 (m68hc11-tdep.o, valprint.o): Ditto.
3557 (v850-tdep.o, d10v-tdep.o): Ditto.
3558 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3559 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3560 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3561 (sh_opc_h, gdb_sim_sh_h): Define.
3562 (elf_sh_h, elf_bfd_h): Define.
3563 (opcode_m68hc11_h): Define.
3564 (OPCODES_SRC, OPCODES_DIR): define.
3565 (OPCODES): Use $(OPCODES_DIR).
3566 (gdb_sim_d10v_h): Rename sim_d10v_h.
3567 (gdb_sim_arm_h): Rename sim_arm_h.
3568
790c9cf0
KB
35692002-07-26 Kevin Buettner <kevinb@redhat.com>
3570
3571 * utils.c (host_pointer_to_address, address_to_host_pointer):
3572 Change internal_error() message to indicate function responsible
3573 for the error.
3574
9647fa49
KB
35752002-07-26 Kevin Buettner <kevinb@redhat.com>
3576
3577 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3578 calls to local_hex_string_custom().
3579
dabbe2c0
KB
35802002-07-26 Kevin Buettner <kevinb@redhat.com>
3581
3582 * irix5-nat.c: Move IRIX shared library support from here...
3583 * solib-irix.c: ...to here. Revised substantially to work with
3584 generic solib framework.
3585
b96d0a4e
KB
3586 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3587 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3588 * mips-irix-tdep.c: New file.
3589
313fb2f6
KB
3590 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3591 (mips-irix-tdep.o, solib-irix.o): New rules.
3592 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3593 solib-irix.o.
3594 * config/mips/irix6.mt (TDEPFILES): Likewise.
3595 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3596
ab2eaf26
KB
35972002-07-26 Kevin Buettner <kevinb@redhat.com>
3598
177e4768 3599 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3600 disabled (via ``#if 0'') includes.
3601
7244546a
KB
36022002-07-26 Kevin Buettner <kevinb@redhat.com>
3603
3604 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3605 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3606 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3607 Add support for the fpscr register.
3608 * rs6000-nat.c (regmap, fetch_inferior_registers)
3609 (store_inferior_registers, fetch_core_registers): Likewise.
3610
dd7be90a
KB
36112002-07-26 Kevin Buettner <kevinb@redhat.com>
3612
3613 * rs6000-nat.c (language.h): Include.
3614 (special_regs): Delete this array.
3615 (regmap): New function.
3616 (fetch_register, store_register): Use regmap() to map gdb
3617 register numbers to ptrace register numbers. Also, use
3618 outputs from regmap() to make decisions regarding type of
3619 ptrace() call to make. In particular, don't compare against
3620 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3621 (fetch_inferior_registers, store_inferior_registers): Where
3622 possible, obtain register numbers from tdep struct. Don't
3623 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3624 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3625 (LAST_UISA_SP_REGNUM): Delete.
3626
11bf77db
KB
36272002-07-25 Kevin Buettner <kevinb@redhat.com>
3628
3629 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3630 (fetch_registers, store_register, fetch_core_registers): Don't
3631 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3632 regcache_collect() as appropriate.
3633 (find_toc_address): Format hex address with local_hex_string().
3634
06afebeb
AC
36352002-07-25 Andrew Cagney <ac131313@redhat.com>
3636
3637 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3638 bfd/elf32-frv.c.
3639
8c554d79
TT
36402002-07-24 Tom Tromey <tromey@redhat.com>
3641
3642 * jv-exp.y: Marked all strings with _().
3643 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3644 internal_error.
3645 (MethodInvocation, CastExpression, parse_number, yyerror,
3646 java_type_from_name, push_expression_name, yylex): Typo fixes.
3647
e4c242d9
DJ
36482002-07-24 Daniel Jacobowitz <drow@mvista.com>
3649
3650 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3651 (tee_file_flush, tee_file_write, tee_file_fputs)
3652 (tee_file_isatty): New.
3653 * ui-file.h (tee_file_new): Add prototype.
3654
ebf56fd3
AS
36552002-07-24 Aidan Skinner <aidan@velvet.net>
3656
3657 * ada-lang.c: Change k&r style function definitions to prototyped
3658 form.
3659 * ada-typeprint.c: Change k&r style function definitions to prototyped
3660 form.
3661 * ada-valprint.c: Change k&r style function definitions to prototyped
3662 form.
3663
7fb623f7
AC
36642002-07-24 Andrew Cagney <cagney@redhat.com>
3665
3666 * README: Remove reference to remote-bug.
3667 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3668 remote-bug.c.
3669 (m88k-nat.o): Delete rule.
3670 (m88k-tdep.o): Delete rule.
3671 (remote-bug.o): Delete rule.
3672 * MAINTAINERS: Mark as obsolete.
3673 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3674 * m88k-tdep.c: Make file obsolete.
3675 * config/m88k/m88k.mh: Ditto.
3676 * config/m88k/delta88v4.mh: Ditto.
3677 * config/m88k/delta88v4.mt: Ditto.
3678 * config/m88k/delta88.mt: Ditto.
3679 * config/m88k/delta88.mh: Ditto.
3680 * remote-bug.c: Ditto.
3681 * config/m88k/tm-delta88.h: Ditto.
3682 * config/m88k/nm-delta88v4.h: Ditto.
3683 * config/m88k/xm-delta88.h: Ditto.
3684 * config/m88k/xm-dgux.h: Ditto.
3685 * config/m88k/tm-m88k.h: Ditto.
3686 * config/m88k/nm-m88k.h: Ditto.
3687 * config/m88k/tm-delta88v4.h: Ditto.
3688 * m88k-nat.c: Ditto.
3689 * cxux-nat.c: Ditto.
3690 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3691 and m88*-*-* obsolete.
3692 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3693 m88*-*-* obsolete.
3694
37611a2b
AC
36952002-07-24 Andrew Cagney <cagney@redhat.com>
3696
3697 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3698 constant. Same for local pointer variables.
3699 (extract_signed_integer): Ditto.
3700 * defs.h (extract_unsigned_integer): Update.
3701 (extract_signed_integer): Update.
3702
1aaa5f99
AC
37032002-07-24 Andrew Cagney <cagney@redhat.com>
3704
3705 * regcache.c (regcache_raw_write): Change buf parameter to a
3706 constant void pointer.
3707 (regcache_raw_read): Change buf parameter to a void pointer.
3708 (legacy_write_register_gen): Change myaddr parameter a constant
3709 void pointer.
3710 (supply_register): Change val parameter to a const void pointer.
3711 * regcache.h (regcache_raw_write): Update declaration.
3712 (regcache_raw_read): Update declaration.
3713 (supply_register): Update declaration.
3714
b4f5539f
TT
37152002-07-24 Tom Tromey <tromey@redhat.com>
3716
3717 * defs.h (gdb_readline_wrapper): Declare.
3718 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3719 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3720 * top.c (gdb_readline_wrapper): New function.
3721 (command_line_input): Use it.
3722
0818c12a
AC
37232002-07-24 Andrew Cagney <cagney@redhat.com>
3724
3725 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3726 regcache_read and regcache_write.
3727 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3728 * regcache.c: Update.
3729 * sh-tdep.c (sh64_push_arguments): Update comment.
3730 (sh_pseudo_register_read): Update.
3731 (sh_pseudo_register_write): Update.
3732 (sh4_register_read): Update.
3733 (sh4_register_write): Update.
3734 (sh64_pseudo_register_read): Update.
3735 (sh64_pseudo_register_write): Update.
3736 (sh64_register_read): Update.
3737 (sh64_register_write): Update.
3738 * i386-tdep.c (i386_extract_return_value): Update.
3739 (i386_extract_struct_value_address): Update.
3740 (i386_extract_return_value): Update.
3741 * blockframe.c (generic_read_register_dummy): Update.
3742 (generic_call_dummy_register_unwind): Update
3743 * infrun.c (write_inferior_status_register): Update.
3744
f7321c06
JB
37452002-07-23 Jim Blandy <jimb@redhat.com>
3746
3747 * parser-defs.h (expression_context_pc): Make this extern.
3748 (Thanks to Michael Snyder.)
3749
2037aebb
AC
37502002-07-23 Andrew Cagney <ac131313@redhat.com>
3751
3752 GDB 5.2.1 released from 5.2 branch.
3753 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3754 * README: Update to mention 5.2.1.
3755
66504d44
MS
37562002-07-23 Mark Salter <msalter@redhat.com>
3757
3758 * remote.c (remote_read_bytes): Fix check for error.
3759
27bae383
KB
37602002-07-22 Kevin Buettner <kevinb@redhat.com>
3761
3762 * aix-thread.c (language.h): Include.
3763 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3764 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3765 Print newlines at end of debug messages.
3766 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3767 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3768
37692002-07-22 Kevin Buettner <kevinb@redhat.com>
3770
3771 * aix-thread.c (ppc-tdep.h): Include.
3772 (special_register_p): New function.
3773 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3774 (store_regs_user_thread): Use register number information from
3775 gdbarch_tdep struct instead of hardcoded offsets relative to
3776 FIRST_UISA_SP_REGNUM.
3777 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3778 special_register_p() instead of using FPLAST_REGNUM and
3779 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3780 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3781 will be MQ's register number.
3782
37832002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3784
3785 * aix-thread.c (ops): Rename to aix_thread_ops.
3786 (base_ops): Rename to base_target.
3787 (ops_attach): Rename to aix_thread_attach.
3788 (ops_detach): Rename to aix_thread_detach.
3789 (ops_resume): Rename to aix_thread_detach.
3790 (ops_wait): Rename to aix_thread_wait.
3791 (ops_kill): Rename to aix_thread_kill.
3792 (init_ops): Rename to init_aix_thread_ops.
3793 (ops_fetch_register): Rename to aix_thread_fetch_register.
3794 (ops_store_register): Rename to aix_thread_store_register.
3795 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3796 (ops_thread_alive): Rename to aix_thread_thread_alive.
3797 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3798 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3799 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3800 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3801 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3802 (store_regs_lib): Rename to store_regs_user_thread.
3803 (store_regs_kern): Rename to store_regs_kernel_thread.
3804
27bae383 38052002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3806
3807 * aix-thread.c (ops_prepare_to_store): Eliminate.
3808 (init_ops): Don't initialize ops.prepare_to_store.
3809 (store_regs_kern): Pre-fetch register buffers from child,
3810 because some registers may not be in the cache. Copy
3811 regs from register cache only if they are cached.
3812 (store_regs_lib): Copy regs from register cache only
3813 if they are cached.
3814 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3815 fill_gprs64): Ditto.
3816
61c5da0b
KB
38172002-07-22 Kevin Buettner <kevinb@redhat.com>
3818
3819 * aix-thread.c (gdb_assert.h): Include.
3820 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3821 register sizes (from register cache) match size of buffer holding
3822 register data.
3823 (fill_sprs32): Change parameter types to match those in the ptrace()
3824 buffer.
3825 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3826 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3827
38282002-07-22 Michael Snyder <msnyder@redhat.com>
3829
3830 * aix-thread.c (supply_sprs64): Cosmetic change.
3831 (supply_sprs32): Cosmetic change.
3832 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3833 (fill_sprs64): Use regcache_collect instead of read_register.
3834 (store_regs_lib): Use regcache_collect instead of
3835 read_register. Use fill_sprs32 instead of fill_sprs64,
3836 if debugging a 32-bit architecture.
3837 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3838 out of the register cache, instead of passing a pointer into
3839 the register cache directly to ptrace. Use regcache_collect
3840 insteaad of read_register.
3841 (ops_prepare_to_store): Use target_read_registers instead
3842 of read_register_bytes.
3843
36479eb1
AS
38442002-07-20 Aidan Skinner <aidan@velvet.net>
3845
3846 * MAINTAINERS: Add self under write after approval.
3847
80ae6ee2
AS
38482002-07-20 Aidan Skinner <aidan@velvet.net>
3849
3850 * ada-tasks.c: Change k&r style function definitions to prototyped
3851 form.
3852
8a8ab2b9
AC
38532002-07-19 Andrew Cagney <ac131313@redhat.com>
3854
3855 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3856 * x86-64-tdep.c: Include "objfiles.h".
3857 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3858 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3859
fb16b900
ML
38602002-07-17 Michal Ludvig <michal@suse.cz>
3861
3862 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3863 (update_context): Initialise cfa variable.
3864
0fe7bf7b
MS
38652002-07-17 Michael Snyder <msnyder@redhat.com>
3866
3867 * aix-thread.c: Shorten some long lines.
3868 Bring comments into line with code spec.
3869
488f131b
JB
38702002-07-18 Joel Brobecker <brobecker@gnat.com>
3871
3872 * infrun.c: Re-indent using gdb_indent.sh.
3873
46c415d2
JB
38742002-07-18 Joel Brobecker <brobecker@gnat.com>
3875
3876 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3877 Leave the indentation temporarily untouched, to minimize the diffs.
3878
cdecafbe
EZ
38792002-07-18 Elena Zannoni <ezannoni@redhat.com>
3880
3881 * stabsread.c: Make os9k sections of the code obsolete,
3882 for real this time.
3883 * stabsread.h: Make os9k sections of the code obsolete.
3884
7b6aa020
ML
38852002-07-18 Michal Ludvig <mludvig@suse.cz>
3886
09ec9b38
ML
3887 * linux-low.c (regsets_store_inferior_registers): Add free()
3888 at the end of a loop to prevent memory leak.
3889 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3890 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3891 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3892 line a comment.
4894ac5d 3893 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3894
233282cd
JB
38952002-07-17 Jim Blandy <jimb@redhat.com>
3896
3897 * macrocmd.c (info_macro_command): Remove newline from error
3898 message.
3899
7b6aa020 39002002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3901
3902 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3903 (sh_gdbarch_init): Use it for sh-dsp.
3904
f7ef9339
KB
39052002-07-16 Kevin Buettner <kevinb@redhat.com>
3906
3907 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3908 64-bit DWARF2 format.
3909
8dd72958
JB
39102002-07-16 Joel Brobecker <brobecker@gnat.com>
3911
3912 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3913 <sys/proc.h> when not available.
3914
a99a9e1b
AC
39152002-07-16 Andrew Cagney <ac131313@redhat.com>
3916
3917 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3918 * stabsread.c: Make os9k sections of the code obsolete.
3919 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3920 * config/i386/i386os9k.mt: Make file obsolete.
3921 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3922 (COMMON_OBS): Remove os9kread.o
3923 (SFILES): Remove os9kread.c.
3924 (os9kread.o, remote-os9k.o): Make target obsolete.
3925 * remote-os9k.c: Make file obsolete.
3926 * os9kread.c: Make file obsolete.
3927 * Makefile.in
3928
7a3085c1
AC
39292002-07-16 Andrew Cagney <ac131313@redhat.com>
3930
3931 * NEWS: Mention that the FR30 has been made obsolete.
3932 * fr30-tdep.c: Make file obsolete.
3933 * config/fr30/tm-fr30.h: Ditto.
3934 * config/fr30/fr30.mt: Ditto.
3935 * configure.tgt: Make fr30-*-elf obsolete.
3936 * MAINTAINERS: Make fr30-elf obsolete.
3937
28a93f5a
PM
39382002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3939
3940 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3941 found is not inside a section.
3942
be006b8b
KB
39432002-07-15 Kevin Buettner <kevinb@redhat.com>
3944
3945 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3946 strerror().
3947 (pdc_realloc): Use xrealloc() instead of realloc().
3948
14fa3751
KB
39492002-07-15 Kevin Buettner <kevinb@redhat.com>
3950
3951 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3952 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3953 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3954 macros.
3955
42cc437f
KB
39562002-07-15 Kevin Buettner <kevinb@redhat.com>
3957
3958 * aix-thread.c (ptrace_check): Eliminate goto.
3959 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3960 problem.
3961
8e2c28d4
KB
39622002-07-15 Kevin Buettner <kevinb@redhat.com>
3963
3964 * aix-thread.c (gdbcmd.h): Include.
3965 (DEBUG, DBG, DBG2, dbg): Eliminate.
3966 (debug_aix_thread): New static global.
3967 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3968 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3969 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3970 invocations to DBG and DBG2 macros to test against
3971 ``debug_aix_thread'' and call fprintf_unfiltered().
3972 (_initialize_aix_thread): Add new command "set debug aix-thread".
3973
30413464
AC
39742002-07-15 Andrew Cagney <ac131313@redhat.com>
3975
3976 From Gerhard Tonn <TON@de.ibm.com>:
3977 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3978 instead of supply_register.
3979
7c43edc1
AC
39802002-07-15 Andrew Cagney <ac131313@redhat.com>
3981
3982 * dwarf2cfi.c: Include "gdb_assert.h".
3983 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3984 non-NULL.
3985 (update_context): Do not use __func__. Add missing ``break''.
3986 (update_context): Do not use __func__.
3987
9364a0ef
EZ
39882002-07-15 Elena Zannoni <ezannoni@redhat.com>
3989
3990 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3991 and its setting. Set gdbarch instruction printing functions
3992 directly. For non-rs6000 case use new function
3993 gdb_print_insn_powerpc.
3994 (gdb_print_insn_powerpc): New function.
3995
3fbeef0b
AC
39962002-07-13 Andrew Cagney <ac131313@redhat.com>
3997
92eb23c5 3998 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3999 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4000 * configure.tgt: Mark d30v-*-* as obsolete.
4001 * d30v-tdep.c: Mark file as obsolete.
4002 * config/d30v/d30v.mt: Ditto.
4003 * config/d30v/tm-d30v.h: Ditto.
4004
aacb1f0a
AS
40052002-07-13 Aidan Skinner <aidan@velvet.net>
4006
4007 * ada-tasks.c (add_task_entry): replace calls to
4008 malloc() with xmalloc
4009 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4010
4011 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4012 ada_finish_decode_line_1, all_sals_for_line
4013 ada_breakpoint_rewrite): replace calls to free() with xfree()
4014
c11d79f2
KB
40152002-07-12 Kevin Buettner <kevinb@redhat.com>
4016
4017 From Nicholas Duffek (with minor changes by Martin Hunt,
4018 Louis Hamilton, and Kevin Buettner):
4019 * aix-thread.c: New file.
4020
8e19ed76
PS
40212002-07-12 Petr Sorfa <petrs@caldera.com>
4022
4023 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4024 complaint for invalid attribute class or form.
4025 (read_func_scope): DW_AT_frame_base
4026 better handling of DW_AT_block*.
4027 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4028 better handling of DW_AT_block*.
4029 (read_common_block): DW_AT_location
4030 better handling of DW_AT_block*.
4031 (read_partial_die): DW_AT_location better handling
4032 of DW_AT_block*.
4033 (new_symbol): DW_AT_external better handling of
4034 DW_AT_block*. Proper initialization of variable
4035 "addr".
4036 (attr_form_is_block): New function that returns true
4037 if the attribute's form is of DW_FORM_block*.
4038
295401f7
DJ
40392002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4040
4041 * valops.c (find_method_list): Remove comment about
4042 removed STATIC_MEMFUNCP argument.
4043 (value_find_oload_method_list): Likewise.
4044
e42dc924
KB
40452002-07-12 Kevin Buettner <kevinb@redhat.com>
4046
4047 From Nicholas Duffek:
4048 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4049 target_new_objfile_hook.
4050
6904b546
KB
40512002-07-12 Kevin Buettner <kevinb@redhat.com>
4052
4053 From Nicholas Duffek:
4054 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4055 csect.
4056
53fe9346
AC
40572002-07-12 Andrew Cagney <cagney@redhat.com>
4058
4059 * MAINTAINERS: Mention --enable-sim-build-warnings.
4060 (m68hc11-elf): Disable sim build warnings.
4061 (m32r-elf): Mark as broken obsolete candidate.
4062 (x86_64-linux-gnu): Mark as buildable with -Werror.
4063 (arm-elf): Change -w to ``,'' which enables warnings but not
4064 -Werror.
4065
af5f3db6
AC
40662002-07-12 Andrew Cagney <ac131313@redhat.com>
4067
4068 * bcache.h: Update copyright.
4069 (struct bstring, struct bcache): Move definition to "bcache.c".
4070 Replaced by opaque declaration.
4071 (bcache_xfree): Replace free_bcache.
4072 (bcache_xmalloc, bcache_memory_used): Declare.
4073
4074 * bcache.c: Update copyright.
4075 (struct bstring, struct bcache): Moved to here from "bcache.h".
4076 Update comments.
4077 (bcache_xmalloc, bcache_memory_used): New functions.
4078 (bcache_xfree): Replace function free_bcache.
4079
4080 * Makefile.in (objfiles.o): Add $(bcache_h).
4081 (objfiles_h): Remove $(bcache_h).
4082 (symfile.o): Add $(bcache_h).
4083
4084 * symmisc.c: Update copyright.
4085 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4086 (print_objfile_statistics): Use bcache_memory_used.
4087
4088 * symfile.c: Include "bcache.h".
4089 (reread_symbols): Use bcache_xfree.
4090 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4091 (add_psymbol_to_list): Pass psymbol_cache by value.
4092 (add_psymbol_with_dem_name_to_list): Ditto.
4093
4094 * objfiles.h: Update copyright.
4095 (struct bcache): Declare opaque. Do not include "bcache.h".
4096 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4097 bcache'' pointers.
4098 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4099
4100 * objfiles.c: Include "bcache.h". Update copyright.
4101 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4102 macro_cache.
4103 (free_objfile): Use bcache_xfree.
4104
444199e7
GS
41052002-07-11 Grace Sainsbury <graces@redhat.com>
4106
4107 * monitor.c (monitor_fetch_register): Make name a constant.
4108 (monitor_store_register): Same.
4109
261397f8
DJ
41102002-07-11 Daniel Jacobowitz <drow@mvista.com>
4111
4112 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4113 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4114 (finish_block) For non-function blocks, hash the symbol table. For
4115 function blocks, mark the symbol table as unhashed.
4116 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4117 (msymbol_hash_iw): Likewise.
4118 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4119 value.
4120 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4121 (lookup_minimal_symbol): Likewise for both.
4122 * symtab.h (struct block): Add `hashtable' flag. Comment the
4123 hashtable.
4124 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4125 (ALL_BLOCK_SYMBOLS): Update.
4126 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4127 (struct symbol): Add `hash_next' pointer.
4128 * symtab.c (lookup_block_symbol): Search using the hash table when
4129 possible.
4130 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4131 (search_symbols, find_addr_symbol): Likewise.
4132
4133 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4134 (read_dst_symtab): Likewise.
4135 * jv-lang.c (get_java_class_symtab): Likewise.
4136 * mdebugread.c: Include "gdb_assert.h".
4137 (shrink_block): Assert that the block being modified is not hashed.
4138 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4139 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4140 symbols.
4141 (dump_symtab): Recognize hashed blocks.
4142 * printcmd.c (print_frame_args): Assert that function blocks do not
4143 have hashed symbol tables.
4144 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4145 (fill_in_ada_prototype, debug_print_block): Likewise.
4146 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4147
6f0eaa01
CV
41482002-07-11 Corinna Vinschen <vinschen@redhat.com>
4149
4150 * stack.c (print_frame): Use result of frame_address_in_block()
4151 instead of fi->pc when evaluating symbols.
4152 (backtrace_command_1): Ditto.
4153
a208b0cb
AC
41542002-07-11 Andrew Cagney <cagney@redhat.com>
4155
4156 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4157 Make static.
4158
4159 * arm-tdep.c (arm_register_name): Make return type constant.
4160
a6b6b089
AC
41612002-07-10 Andrew Cagney <ac131313@redhat.com>
4162
5ae5f592
AC
4163 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4164 prototype.
4165 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4166 * s390-tdep.c (s390_fp_regnum): Ditto.
4167 (s390_read_fp): Ditto.
4168 (s390_pop_frame): Ditto.
4169 (_initialize_s390_tdep): Ditto.
4170 * remote.c (get_remote_state): Ditto.
4171 * procfs.c (mappingflags): Ditto.
4172 * memattr.c (_initialize_mem): Ditto.
4173 * mcore-tdep.c (mcore_pop_frame): Ditto.
4174 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4175 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4176 * language.c (set_case_str): Ditto.
4177 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4178 * frv-tdep.c (new_variant): Ditto.
4179 (frv_stopped_data_address): Ditto.
4180 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4181 (context_alloc): Ditto.
4182 (frame_state_alloc): Ditto.
4183 (unwind_tmp_obstack_init): Ditto.
4184 (unwind_tmp_obstack_free): Ditto.
4185 (cfi_read_fp): Ditto.
4186 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4187 (cris_pop_frame): Ditto.
4188 * c-lang.c (scanning_macro_expansion): Ditto.
4189 (finished_macro_expansion): Ditto.
4190 (c_preprocess_and_parse): Ditto.
4191 * gdbarch.sh: Ditto.
4192 * gdbarch.h, gdbarch.c: Regenerate.
4193 * config/mn10200/tm-mn10200.h: Adjust indentation.
4194 * target.c: Adjust indentation.
4195 * symtab.h: Adjust indentation.
4196 * stabsread.h: Adjust indentation.
4197 * remote-es.c: Adjust indentation.
4198 * os9kread.c: Adjust indentation.
4199
42002002-07-10 Andrew Cagney <ac131313@redhat.com>
4201
a6b6b089
AC
4202 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4203 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4204
a1789893
GS
42052002-07-10 Grace Sainsbury <graces@redhat.com>
4206
4207 * NEWS: Mention m68k, mcore multi-arching.
4208 * MAINTAINERS: Change status of m68k, mcore to reflect
4209 multi-arching.
4210
02f0d45d
DJ
42112002-07-10 Daniel Jacobowitz <drow@mvista.com>
4212
4213 * valops.c (find_overload_match): Free oload_syms.
4214
f15f768e
JB
42152002-07-09 Joel Brobecker <brobecker@gnat.com>
4216
4217 Define HAVE_SYS_PROC_H if sys/proc.h exists
4218 * configure.in: Add check for sys/proc.h
4219 * config.in: Regenerate.
4220 * configure: Regenerate.
4221
902a7139
GS
42222002-07-09 Grace Sainsbury <graces@redhat.com>
4223
4224 * config/m68k/tm-m68k.h: Remove macros wrapped in
4225 #if !GDB_MULTI_ARCH.
4226
a534e424
AC
42272002-07-08 Andrew Cagney <ac131313@redhat.com>
4228
4229 * config.in, configure: Regenerate.
4230
9b94f7bf
MK
42312002-07-08 Mark Kettenis <kettenis@gnu.org>
4232
4233 * dwarf2cfi.c: Include "gcore.h".
4234 (execute_stack_op): Fix implementation of the
4235 DW_OP_deref and DW_OP_deref_size operators by letting do their
4236 lookup in the target.
4237
1d34db41
MK
42382002-07-07 Mark Kettenis <kettenis@gnu.org>
4239
4240 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4241 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4242 tdep->sc_sp_offset.
4243
79d5b63a
DJ
42442002-07-05 Daniel Jacobowitz <drow@mvista.com>
4245
4246 Fix PR gdb/595, gdb/602
4247 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4248 Don't call value_cast, just read the vtable pointer; update comments
4249 to match.
4250
3bb912e8
GS
42512002-07-05 Grace Sainsbury <graces@redhat.com>
4252
4253 * config/mcore/tm-mcore.h: Remove file.
4254 * config/mcore/mcore.mt: Remove definition of TM_FILE
4255 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4256
ca39387d
MK
42572002-07-05 Mark Kettenis <kettenis@gnu.org>
4258
4259 * i386bsd-tdep.c: Include "gdb_string.h".
4260
efdc1108
GS
42612002-07-04 Grace Sainsbury <graces@redhat.com>
4262
4263 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4264 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4265 mcore-tdep.
4266 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4267 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4268 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4269 (RETVAL_REGNUM): Move macros from tm-mcore.h
4270 (mcore_reg_struct_has_addr): New function.
4271 (mcore_gdbarch_init): Added initializations for the macros removed
4272 from tm-mcore.h.
4273
bb21884d
MK
42742002-07-04 Mark Kettenis <kettenis@gnu.org>
4275
4276 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4277 traditonal string branding within the ELF header.
4278
228c6d41
DJ
42792002-07-04 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * symtab.c (remove_params): New function.
4282 (make_symbol_overload_list): Use it instead of cplus_demangle.
4283 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4284
2404952e
MK
42852002-07-04 Mark Kettenis <kettenis@gnu.org>
4286
e5e4acad
MK
4287 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4288
baadce09
MK
4289 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4290 New variables.
4291 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4292 and tdep->sigtramp_end.
4293 * i386obsd-nat.c: New file.
4294 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4295
2404952e
MK
4296 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4297 Don't call get_current_frame().
4298
9b4f1ba7
PM
42992002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4300
4301 * i386-nat.c (child_post_startup_inferior): New function
4302 calling i386_cleanup_dregs if
4303 I386_USE_GENERIC_WATCHPOINTS is defined.
4304 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4305 conditional to acknowledge that i386-nat.c has its
4306 own child_post_startup_inferior function.
4307
c0d1d883
MK
43082002-07-04 Mark Kettenis <kettenis@gnu.org>
4309
00f8375e
MK
4310 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4311 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4312 instead of MAX_REGISTER_RAW_SIZE.
4313 (i386_extract_return_value, i386_extract_struct_value_address):
4314 Convert to use regcache.
4315 (i386_gdbarch_init): Set max_register_raw_size and
4316 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4317 Set extract_return_value and extract_struct_value_address instead
4318 of their deprecated variants.
4319
c0d1d883
MK
4320 Convert i386 target to generic dummy frames.
4321 * i386-tdep.c: Include "symfile.h".
4322 (i386_frameless_signal_p): Consider a function to be frameless if
4323 the pc points at the first instruction of the function.
4324 (i386_frame_chain): Handle (generic) call dummies.
4325 (i386_frame_saved_pc): Likewise.
4326 (i386_frame_init_saved_regs): Remove code dealing with call
4327 dummies on the stack.
4328 (i386_push_dummy_frame): Removed.
4329 (i386_call_dummy_words): Removed.
4330 (i386_fix_call_dummy): Removed.
4331 (i386_push_return_address): New function.
4332 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4333 parameter, and don't call get_current_frame.
4334 (i386_pop_frame): New function.
4335 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4336 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4337 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4338 call_dummy_length to 0, set call_dummy_words to NULL, set
4339 sizeof_call_dummy_words to 0, set fix_call_dummy to
4340 generic_fix_call_dummy, set pc_in_call_dummy to
4341 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4342 generic_push_dummy_frame, set push_return_address to
4343 i386_push_return_address and set frame_chain_valid to
4344 generic_file_frame_chain_valid.
4345
049ee0e4
AC
43462002-07-03 Andrew Cagney <ac131313@redhat.com>
4347
4348 * gdbarch.sh (struct regcache): Add opaque declaration.
4349 (EXTRACT_RETURN_VALUE): New architecture method.
4350 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4351 * gdbarch.h, gdbarch.c: Regenerate.
4352 * arch-utils.c (legacy_extract_return_value): New function.
4353 * arch-utils.h (legacy_extract_return_value): Declare.
4354 * values.c (value_being_returned): Re-enable code handling
4355 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4356 deprecated_grub_regcache_for_registers call to block handling
4357 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4358 (EXTRACT_RETURN_VALUE): Do not define.
4359
4e0d9804
GS
43602002-07-03 Grace Sainsbury <graces@redhat.com>
4361
4362 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4363 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4364 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4365 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4366 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4367 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4368 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4369 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4370 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4371 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4372 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4373 argument so the function fits the prototype in the architecture
4374 vector.
4375 (mcore_pop_frame): Remove argument so the function fits the
4376 prototype. Use get_current_frame instead of the argument.
4377 (mcore_push_arguments): Change type of struct_return so the
4378 function can be used in the architecture vector.
4379 (mcore_store_struct_return): Add.
4380 (mcore_frame_init_saved_regs): Add.
4381 (mcore_gdbarch_init): Add function calls to replace the macros
4382 removed from tm-mcore.h
4383
36160dc4
AC
43842002-07-03 Andrew Cagney <ac131313@redhat.com>
4385
4386 * infcmd.c (print_return_value): Remove compatibility code calling
4387 deprecated_grub_regcache_for_registers.
4388
4389 * values.c: Include "regcache.h".
4390 (value_being_returned): Update. Use
4391 deprecated_grub_regcache_for_registers to extract the register
4392 buffer address.
4393 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4394 ``struct regcache''.
4395 * Makefile.in (values.o): Add dependency on $(regcache_h).
4396
4397 * inferior.h (run_stack_dummy): Change type of second parameter to
4398 a ``struct regcache''.
4399 * valops.c (hand_function_call): Change type of retbuf to ``struct
4400 regcache''. Allocate using regcache_xmalloc, clean using
4401 make_cleanup_regcache_xfree.
4402 * infcmd.c (run_stack_dummy): Update. Use
4403 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4404
4405 * regcache.c (do_regcache_xfree): New function.
4406 (make_cleanup_regcache_xfree): New function.
4407 * regcache.h (make_cleanup_regcache_xfree): Declare.
4408
e64d9b3d
MH
44092002-07-03 Martin M. Hunt <hunt@redhat.com>
4410
4dd79c29
MH
4411 * event-top.c (command_line_handler): Don't read past
4412 beginning of buffer.
e64d9b3d 4413
4dd79c29
MH
44142002-07-03 Martin M. Hunt <hunt@redhat.com>
4415
e64d9b3d
MH
4416 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4417 struct frame_id.
4418 (varobj_create): Store frame_id for root.
4419 (varobj_gen_name): Use xasprintf.
4420 (varobj_update): Save and restore frame using get_frame_id() and
4421 frame_find_by_id().
4422 (create_child): Use xasprintf.
4423 (new_root_variable): Initialize frame_id.
4424 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4425 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4426 to prevent memory leak.
4427
26e6c56a
AC
44282002-07-03 Andrew Cagney <ac131313@redhat.com>
4429
4430 * valops.c (hand_function_call): Move declaration of retbuf to
4431 start of function, allocate using malloc, add a cleanup but before
4432 the inf_status cleanup, cleanup the buffer. Rename local variable
4433 old_chain to inf_status_cleanup.
4434
f436dd25
MH
44352002-07-03 Martin M. Hunt <hunt@redhat.com>
4436
4437 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4438
4439 * cli/cli-decode.c (cmd_func_p): New function.
4440 (cmd_func): New function.
4441
4442 * command.h: Add cmd_func() and cmd_func_p().
4443
4cfe2084
GS
44442002-07-03 Grace Sainsbury <graces@redhat.com>
4445
4446 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4447 (REGISTER_SIZE): Remove.
4448 (MAX_REGISTER_RAW_SIZE): Remove.
4449 (REGISTER_VIRTUAL_TYPE): Remove.
4450 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4451 (REGISTER_NAME): Remove.
4452 (USE_GENERIC_DUMMY_FRAMES): Remove.
4453 (CALL_DUMMY): Remove.
4454 (CALL_DUMMY_START_OFFSET): Remove.
4455 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4456 (CALL_DUMMY_LOCATION): Remove.
4457 (FIX_CALL_DUMMY): Remove.
4458 (CALL_DUMMY_ADDRESS): Remove.
4459 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4460 (SAVE_DUMMY_FRAME_TOS): Remove.
4461 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4462 (mcore_register_virtual_type): New function.
4463 (mcore_register_byte): New function.
4464 (mcore_register_size): New function.
4465 (mcore_register_name): New function.
4466 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4467 macros removed from tm-mcore.h.
4468 (mcore_dump_tdep): Add.
4469 (_initialize_mcore_tdep): Add gdbarch_register call.
4470
4fd667e9
MK
44712002-07-03 Mark Kettenis <kettenis@gnu.org>
4472
4473 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4474 frameless_look_for_prologue, such that we actually call this
4475 function.
4476
42f99ac2
JB
44772002-07-02 Joel Brobecker <brobecker@gnat.com>
4478
4479 * frame.h (frame_address_in_block): New function.
4480
4481 * blockframe.c (frame_address_in_block): New function extracted
4482 from get_frame_block().
4483 (get_frame_block): Use frame_address_in_block().
4484 (block_innermost_frame): Use frame_address_in_block() to match
4485 the frame pc address against the block boundaries rather than
4486 the frame pc directly. This prevents a failure when a frame pc
4487 is actually a return-address pointing immediately after the end
4488 of the given block.
4489
103a1597 44902002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4491
4492 * MAINTAINERS: Add self under write after approval.
4493
44942002-07-02 Grace Sainsbury <graces@redhat.com>
4495
103a1597
GS
4496 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4497 used in architecture vector. The default is
4498 m68k_local_breakpoint_from_pc.
4499 (m68k_local_breakpoint_from_pc): Add.
4500 (enum): Add register numbers from tm-m68k.h.
4501 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4502 vector.
4503 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4504 GDB_MULTI_ARCH_PARTIAL.
4505 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4506 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4507 m68k-tdep.c.
4508 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4509 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4510 to enum in m68k-tdep.c
4511
7a5a0534
JB
45122002-07-02 Joel Brobecker <brobecker@gnat.com>
4513
4514 * solib-osf.c (open_map): Compute the list of shared libraries
4515 loaded by the inferior, rather than the list of libraries loaded
4516 by GDB itself. Otherwise, GDB ends up reading the symbols from
4517 the wrong shared libraries...
4518
6f558d74
MK
45192002-07-02 Mark Kettenis <kettenis@gnu.org>
4520
b7d15bf7
MK
4521 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4522 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4523 macros.
4524 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4525 Remove functions.
4526 (FRAMELESS_SIGNAL): Remove function.
4527 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4528 i386_linux_saved_pc_after_call): Removed.
4529 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4530 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4531 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4532
6bff26de
MK
4533 * i386-tdep.c (i386_frameless_signal_p): New function.
4534 (i386_frame_chain): Deal with frameless signals.
4535 (i386_sigtramp_saved_sp): New function.
4536 (i386_frame_saved_pc): Deal with frameless signals.
4537 (i386_saved_pc_after_call): Make sure the correct value is
4538 returned just after entry into a sigtramp.
4539 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4540 i386fbsd4_sc_sp_offset): New variables.
4541 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4542 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4543 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4544 similiar to what we already did for sc_pc_offset.
4545 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4546 tdep->sc_sp_offset.
4547
6f558d74
MK
4548 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4549
145564b7
ML
45502002-07-02 Michal Ludvig <mludvig@suse.cz>
4551
4552 * config/i386/tm-x86-64linux.h: New.
4553 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4554 definitions.
4555 * config/i386/nm-x86-64.h: Rename to ...
4556 * config/i386/nm-x86-64linux.h: ... this one.
4557 * config/i386/x86-64linux.mh: Reflect the above change.
4558
3a1e71e3
MK
45592002-07-01 Mark Kettenis <kettenis@gnu.org>
4560
21d0e8a4
MK
4561 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4562 with sigcontext_addr. Add sc_sp_offset.
4563 (i386bsd_sigtramp_saved_pc): Remove prototype.
4564 (i386bsd_sicontext_addr): Add prototype.
4565 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4566 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4567 (i386_svr4_sigtramp_saved_pc): Removed.
4568 (i386_svr4_sigcontext_addr): New function.
4569 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4570 Initialize tdep->sigcontext_addr instead. Initialize
4571 tdep->sc_pc_offset and tdep->sc_sp_offset.
4572 (i386_gdbarch_init): Likewise.
4573 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4574 any more.
4575 (i386bsd_sigtramp_saved_pc): Remove function.
4576 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4577 Initialize tdep->sigcontext_addr instead. Initialize
4578 tdep->sc_pc_offset.
4579 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4580 of tdep->sigtramp_saved_pc.
4581 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4582 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4583 instead.
4584
3a1e71e3
MK
4585 * i386-tdep.c (i386_frameless_function_invocation,
4586 i386_frame_num_args, i386_frame_init_saved_regs,
4587 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4588 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4589 i386_extract_return_value, i386_store_return_value,
4590 i386_extract_struct_value_address, i386_register_virtual_type,
4591 i386_register_convertible, i386_register_convert_to_virtual,
4592 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4593 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4594 static.
4595
52e9098c
MK
45962002-07-01 Mark Kettenis <kettenis@gnu.org>
4597
77b13a25
MK
4598 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4599
52e9098c
MK
4600 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4601 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4602 this macro. Include "value.h".
4603
1b372fff
AS
46042002-06-30 Aidan Skinner <aidan@velvet.net>
4605
4606 * ada-exp.tab.c: remove as it's a generated file
4607 * ada-lex.c: remove as it's a generated file
4608
9c5045b5
MK
46092002-06-30 Mark Kettenis <kettenis@gnu.org>
4610
4a93c5bb
MK
4611 * config/i386/tm-i386.h (struct frame_info, struct
4612 frame_saved_regs, struct value, struct type): Remove forward
4613 declarations.
4614
322d4fe0
MK
4615 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4616 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4617 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4618 (FILL_FPXREGSET): Define.
4619
fdd8263d
MK
4620 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4621
482e577b
MK
4622 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4623 i[3456]86-*-netbsd* case.
4624 * config/i386/tm-obsd.h: Removed.
4625 * config/i386/obsd.mt: Removed.
4626 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4627 core-aout.o.
4628 (MH_CFLAGS): Add -DYYDEBUG=0.
4629
6916549a
MK
4630 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4631 i386nbsd_sc_pc_offset on OpenBSD too.
4632
9c5045b5
MK
4633 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4634 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4635 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4636 define.
4637 * i386bsd-tdep.c: Include "arch-utils.h".
4638 (i386bsd_aout_in_solib_call_trampoline): New function.
4639 (i386bsd_init_abi): Set in_solib_call_trampoline to
4640 i386bsd_aout_in_solib_call_trampoline.
4641 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4642 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4643
aa84d1bb
AC
46442002-06-28 Andrew Cagney <ac131313@redhat.com>
4645
4646 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4647 (struct obstack, struct bcache): Add opaque declarations.
4648 * Makefile.in (macrotab_h): Update
4649
b4d83933
AC
46502002-06-28 Andrew Cagney <ac131313@redhat.com>
4651
4652 * blockframe.c (generic_find_dummy_frame): Change return type to
4653 ``struct regcache''.
4654 (struct dummy_frame): Replace field ``registers'' with regcache, a
4655 struct regcache object.
4656 (generic_find_dummy_frame): Update.
4657 (generic_push_dummy_frame): Update. Use regcache_xfree,
4658 regcache_xmalloc and regcache_cpy.
4659 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4660 regcache_xfree.
4661 (deprecated_generic_find_dummy_frame): Update.
4662 (generic_read_register_dummy): Update. Use
4663 regcache_read_as_address.
4664 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4665 (generic_get_saved_register): Update. Use regcache_read.
4666
08c0b5bc
AC
46672002-06-28 Andrew Cagney <ac131313@redhat.com>
4668
4669 * Makefile.in (objfiles_h): Add $(bcache_h).
4670 * objfiles.h: Include "bcache.h".
4671
4672 * Makefile.in (symtab_h): Remove $(bcache_h).
4673 * symtab.h: Do not include "bcache.h".
4674
1f89801a
AC
46752002-06-28 Andrew Cagney <ac131313@redhat.com>
4676
4677 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4678 generic_func_frame_chain_valid.
4679
b9644b58
DB
46802002-06-28 David O'Brien <obrien@FreeBSD.org>
4681
4682 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4683 * config/i386/tm-fbsd.h: Likewise.
4684
dd486634
AC
46852002-06-28 Andrew Cagney <ac131313@redhat.com>
4686
4687 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4688 generic_unwind_get_saved_register.
4689
0b434a00
AC
46902002-06-27 Andrew Cagney <ac131313@redhat.com>
4691
4692 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4693 * regcache.c (supply_register): Add missing argument to
4694 register_buffer call.
4695
f30e5a77
AC
46962002-06-27 Andrew Cagney <ac131313@redhat.com>
4697
4698 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4699 Solaris /bin/grep does not not like it. From Peter Schauer.
4700
9f064c95
TT
47012002-06-26 Tom Tromey <tromey@redhat.com>
4702
4703 * command.h (add_setshow_cmd): Declare.
4704 (add_setshow_cmd_full): Declare.
4705 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4706 returns void. Use add_setshow_cmd_full.
4707 (add_setshow_cmd_full): New function.
4708 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4709 (add_setshow_boolean_cmd): Likewise.
4710
099c7589
JT
47112002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4712
4713 * config/vax/tm-vax.h: Protect from multiple inclusion.
4714 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4715 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4716 * config/vax/tm-vaxbsd.h: ...here. New file.
4717 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4718
1d049c5e
JT
47192002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4720
4721 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4722 (BELIEVE_PCC_PROMOTION): Remove.
4723 (AP_REGNUM): Move to...
4724 * config/vax/nm-vax.h: ...here.
4725 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4726 (vax_breakpoint_from_pc): New function.
4727 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4728 and gdbarch_believe_pcc_promotion.
4729
4791e091
JT
47302002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4731
4732 * Makefile.in (vax_tdep_h): Define.
4733 (vax-tdep.o): Use $(vax_tdep_h).
4734 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4735 (vax_dump_tdep): New function.
4736 (_initialize_vax_tdep): Register vax_dump_tdep.
4737 * vax-tdep.h: Include osabi.h.
4738 (struct gdbarch_tdep): New.
4739
da130f98
AC
47402002-06-26 Andrew Cagney <cagney@redhat.com>
4741
4742 * frame.h (deprecated_generic_find_dummy_frame): Rename
4743 generic_find_dummy_frame.
4744 * blockframe.c (generic_find_dummy_frame): Make static.
4745 (deprecated_generic_find_dummy_frame): New function.
4746 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4747 generic_find_dummy_frame with deprecated_find_dummy_frame.
4748 (sh64_nofp_frame_init_saved_regs): Ditto.
4749 (sh_fp_frame_init_saved_regs): Ditto.
4750 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4751 (s390_frame_chain): Ditto.
4752 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4753
6300c360
GS
47542002-06-26 Grace Sainsbury <graces@redhat.com>
4755
4756 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4757 gdbarch vector are at the top.
4758 (NUM_REGS): Remove.
4759 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4760 (FRAME_ARGS_ADDRESS): Remove.
4761 (FRAME_LOCALS_ADDRESS): Remove.
4762 (FRAME_NUM_ARGS): Remove.
4763 (FRAME_ARGS_SKIP): Remove.
4764 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4765 (m68k_gdbarch_init): Add gdbarch initializations for macros
4766 undefined in tm-m68k.h
4767
1c617db8
GS
47682002-06-26 Grace Sainsbury <graces@redhat.com>
4769
4770 * monitor.h: Add the function regname to monitor_ops
4771 structure. This way NUM_REGS does not have to be a constant.
4772 * monitor.c (monitor_fetch_register): Added support for regname
4773 function. The function is called if the array regnames is NULL.
4774 (monitor_store_register): Same.
da130f98
AC
4775 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4776 regnames array.
1c617db8
GS
4777 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4778 cpu32bug_cmds.regname to point to new function.
4779 * abug-rom.c (abug_regname): Same as above.
4780 (init_abug_cmds): Same.
4781 * dbug-rom.c (dbug_regname): Same as above.
4782 (init_dbug_cmds): Same.
4783 * remote-est.c (est_regname): Same.
4784 (init_est_cmds): Same.
4785 * rom68k-rom.c (rom68k_regname): Same.
4786 (init_rom68k_cmds): Same.
4787
ea9365bb
TT
47882002-06-25 Tom Tromey <tromey@redhat.com>
4789
4790 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4791
72cec141
AC
47922002-06-25 Andrew Cagney <cagney@redhat.com>
4793
4794 * infrun.c (stop_registers): Change variable's type to ``struct
4795 regcache'''.
4796 (xmalloc_inferior_status): Delete function.
4797 (free_inferior_status): Delete function.
4798 (normal_stop): Use regcache_cpy.
4799 (struct inferior_status): Change type of fields ``stop_registers''
4800 and ``registers'' to ``struct regcache''.
4801 (write_inferior_status_register): Use regcache_write.
4802 (save_inferior_status): Instead of calling
4803 xmalloc_inferior_status, allocate the inf_status buffer directly.
4804 Use regcache_dup_no_passthrough and regcache_dup to save the
4805 buffers.
4806 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4807 Replace the stop_registers regcache instead of overriding it. Use
4808 regcache_xfree. Instead of calling free_inferior_status, xfree
4809 the buffer directly.
4810 (discard_inferior_status): Use regcache_xfree. Instead of calling
4811 free_inferior_status, xfree the buffer directly.
4812 (build_infrun): Use regcache_xmalloc.
4813 (_initialize_infrun): Delete redundant call to build_infrun.
4814
4815 * Makefile.in (infcmd.o): Add $(regcache_h).
4816
4817 * infcmd.c: Include "regcache.h".
4818 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4819 obtain the address of `stop_registers' register buffer.
4820 (print_return_value): Ditto.
4821
4822 * inferior.h (struct regcache): Add opaque declaration.
4823 (stop_registers): Change variable's declared type to ``struct
4824 regcache''.
4825
defc6f8c
TT
48262002-06-24 Tom Tromey <tromey@redhat.com>
4827
c0e624e7
TT
4828 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4829 * target.c (initialize_targets): Fixed typo in
4830 trust-readonly-sections `show' documentation.
4831
defc6f8c
TT
4832 * main.c: Marked all strings with _().
4833
2b236d82
DH
48342002-06-24 Don Howard <dhoward@redhat.com>
4835
4836 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4837 that means max CORE_ADDR+1.
4838 (lookup_mem_region): Ditto.
4839 (mem_info_command): Ditto.
4840
942dc0e9
GS
48412002-06-24 Grace Sainsbury <graces@redhat.com>
4842
4843 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4844 (REGISTER_BYTES_OK): Remove.
4845 (REGISTER_BYTES): Remove.
4846 (STORE_STRUCT_RETURN): Remove.
4847 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4848 (STORE_RETURN_VALUE): Remove.
4849 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4850 (FRAME_CHAIN): Remove.
4851 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4852 (FRAME_SAVED_PC): Remove.
4853 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4854 (m68k_store_struct_return): Add.
4855 (m68k_deprecated_extract_return_value): Add.
4856 (m68k_deprecated_extract_struct_value_address): Add.
4857 (m68k_store_return_value): Add.
4858 (m68k_frame_chain): Add.
4859 (m68k_frameless_function_invocation): Add.
4860 (m68k_frame_saved_pc): Add.
4861 (m68k_gdbarch_init): added set_gdbarch calls for new
4862 functions and deleted macros.
4863
03c30d4d
TT
48642002-06-23 Tom Tromey <tromey@redhat.com>
4865
4866 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4867 (ALLDEPFILES): Likewise.
4868 (udiheaders): Removed.
4869 (udip2soc.o): Likewise.
4870 (udi2go32.o): Likewise.
4871 (udr.o): Likewise.
4872 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4873
37e71372
AC
48742002-06-22 Andrew Cagney <ac131313@redhat.com>
4875
06a6ac57
AC
4876 * infrun.c (_initialize_infrun): Delete unnecessary call to
4877 build_infrun.
4878
37e71372
AC
4879 * regcache.h: Update comments describing the regcache_cpy family
4880 of functions.
4881 (regcache_save, regcache_restore): Delete declaration.
4882 (regcache_save_no_passthrough): Delete declaration.
4883 (regcache_restore_no_passthrough): Delete declaration.
4884 * regcache.c (regcache_save): Delete function.
4885 (regcache_save_no_passthrough): Delete function.
4886 (regcache_restore): Delete function.
4887 (regcache_restore_no_passthrough): Delete function.
4888
78f6d055
AC
48892002-06-21 Andrew Cagney <ac131313@redhat.com>
4890
4891 * config/m68k/tm-m68k.h: Fix typo.
4892 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4893 (m68k_frame_init_saved_regs): Declare.
4894
78b119cb
JB
48952002-06-21 Jim Blandy <jimb@redhat.com>
4896
4897 Remove some vestiges of Harris 88k support.
4898 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4899 register numbering quirk.
4900 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4901 odd symbols occurring in Harris 88k ELF targets.
4902
0fbb3da7
TT
49032002-06-21 Tom Tromey <tromey@redhat.com>
4904
4905 * gdb_locale.h: New file.
4906 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4907 (defs_h): Added gdb_locale.h.
4908 * configure, config.in: Rebuilt.
4909 * configure.in (PACKAGE): Define.
4910 * defs.h: Include gdb_locale.h.
4911 * main.c (captured_main): Call setlocale, bindtextdomain,
4912 textdomain.
4913
456f8b9d
DB
49142002-06-21 Dave Brolley <brolley@redhat.com>
4915
4916 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4917 * config/frv/frv.mt: New file.
4918 * config/frv/tm-frv.h: New file.
4919 * configure.tgt: Support frv-*-*.
4920 * Makefile.in (frv-tdep.o): New target.
4921 * frv-tdep.c: New file.
4922 * NEWS: Mention frv.
4923
cdd463f9
DB
49242002-06-21 Dave Brolley <brolley@redhat.com>
4925
4926 * MAINTAINERS: Add self to "Write After Approval" list.
4927
5d3ed2e3
GS
49282002-06-21 Grace Sainsbury <graces@redhat.com>
4929
4930 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4931 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4932 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4933 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4934 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4935
4936 * m68k-tdep.c: Include arch-utils.h
4937 (m68k_register_raw_size): Add.
4938 (m68k_register_virtual_size): Add.
4939 (m68k_register_virtual_type): Add.
4940 (m68k_register_name): Add.
4941 (m68k_stack_align): Add.
4942 (m68k_register_byte): Add.
4943 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4944 tm-m68k.h.
4945
7f8e7424
GS
49462002-06-21 Grace Sainsbury <graces@redhat.com>
4947
a2c6a6d5 4948 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4949 m68k_find_saved_regs.
4950 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4951 references to it with frame->saved_regs.
7f8e7424
GS
4952 (m68k_gdbarch_init): Added function calls to initialize the
4953 gdbarch structure.
a2c6a6d5
GS
4954 (m68k_fix_call_dummy): Add.
4955 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4956 (CALL_DUMMY): Remove.
4957 (CALL_DUMMY_LENGTH): Remove.
4958 (CALL_DUMMY_START_OFFSET): Remove.
4959 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4960 (FIX_CALL_DUMMY): Remove.
4961 (PUSH_DUMMY_FRAME): Remove.
4962 (POP_FRAME): Remove.
7f8e7424 4963
f461f5cf
PM
49642002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4965
4966 * parse.c (parse_fprintf): New function used to avoid calls to
4967 fprintf in bison parser generated debug code.
4968 * parser-defs.h: Declaration of new parse_fprintf function.
4969 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4970 Set YYDEBUG to 1 by default.
4971 Set YYFPRINTF as parse_fprintf.
4972
7f0c12ed
ML
49732002-06-21 Michal Ludvig <mludvig@suse.cz>
4974
4975 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4976 encoding anymore.
4977 (pointer_encoding, enum ptr_encoding): New.
4978 (execute_cfa_program): Take care about pointer encoding.
4979 (dwarf2_build_frame_info): Only call parse_frame_info for
4980 .debug_frame and .eh_frame.
4981 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4982 fixed augmentation handling, added relative addressing,
4983 ignore duplicate FDEs. Added comments.
19d833a2 4984 * dwarf2cfi.c: Reindented.
7f0c12ed 4985
87c4a039
EZ
49862002-06-20 Elena Zannoni <ezannoni@redhat.com>
4987
4988 * event-top.c (command_handler): Don't use space_at_cmd_start
4989 unless there is sbrk() on the host. Assign time and space data
4990 to union fields of the appropriate length.
4991
1cf877ad
ML
49922002-06-20 Michal Ludvig <mludvig@suse.cz>
4993
4994 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4995 x86_64_register_name. Return type changed to 'const char *'.
4996 (x86_64_register_name2nr): Rename to x86_64_register_number.
4997 (x86_64_gdbarch_init): Update to reflect the change.
4998 * x86-64-tdep.h: Ditto.
4999 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5000 (supply_fpregset): Ditto.
5001
3fadccb3
AC
50022002-06-19 Andrew Cagney <cagney@redhat.com>
5003
5004 * regcache.h: Update copyright.
5005 (struct regcache, struct gdbarch): Add opaque declarations.
5006 (current_regcache): Declare global variable.
5007 (regcache_read, regcache_write): Add gdbarch parameter.
5008 (regcache_save, regcache_save_no_passthrough)
5009 (regcache_restore, regcache_restore_no_passthrough)
5010 (regcache_dup, regcache_dup_no_passthrough)
5011 (regcache_cpy, regcache_cpy_no_passthrough)
5012 (deprecated_grub_regcache_for_registers)
5013 (deprecated_grub_regcache_for_register_valid)
5014 (regcache_valid_p): Add function declarations.
5015
5016 * regcache.c: Update copyright.
5017 (regcache_descr_handle): New global variable.
5018 (struct regcache_descr): Define.
5019 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5020 (regcache_descr, xfree_regcache_descr): New functions.
5021 (struct regcache): Define.
5022 (regcache_xmalloc, regcache_xfree): New functions.
5023 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5024 (regcache_dup, regcache_dup_no_passthrough): New functions.
5025 (regcache_valid_p, regcache_read_as_address): New functions.
5026 (deprecated_grub_regcache_for_registers): New function.
5027 (deprecated_grub_regcache_for_register_valid): New function.
5028 (current_regcache): New global variable.
5029 (register_buffer): Add regcache parameter. Update calls.
5030 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5031 (read_register_gen, write_register_gen): Update register_buffer
5032 call. Test for legacy_p instead of gdbarch_register_read_p or
5033 gdbarch_register_write_p.
5034 (regcache_collect): Update register_buffer call.
5035 (build_regcache): Rewrite. Use deprecated grub functions.
5036 (regcache_save, regcache_save_no_passthrough): New functions.
5037 (regcache_restore, regcache_restore_no_passthrough): New
5038 functions.
5039 (_initialize_regcache): Create the regcache_data_handle. Swap
5040 current_regcache global variable.
5041
5042 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5043 parameter to regcache_read and regcache_write calls.
5044 (sh4_register_read): Ditto.
5045 (sh64_pseudo_register_read): Ditto.
5046 (sh64_register_read): Ditto.
5047 (sh_pseudo_register_write): Ditto.
5048 (sh4_register_write): Ditto.
5049 (sh64_pseudo_register_write): Ditto.
5050 (sh64_register_write): Ditto.
5051
5052 * defs.h (XCALLOC): Define.
5053
152d9db6
GS
50542002-06-19 Grace Sainsbury <graces@redhat.com>
5055
5056 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5057 * m68k-tdep.c (m68k_gdbarch_init): Added.
5058 (m68k_dump_tdep): Added.
5059
170911c7
DJ
50602002-06-19 Daniel Jacobowitz <drow@mvista.com>
5061
5062 * ada-lang.c (fill_in_ada_prototype): Update comment.
5063
2e4ebe70
DJ
50642002-06-19 Daniel Jacobowitz <drow@mvista.com>
5065
5066 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5067 MIPS_ABI_LAST.
5068 (mips_abi_string, mips_abi_strings): New.
5069 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5070 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5071 tdep->mips_abi_string. Honor mips_abi_string. Default to
5072 O32 if no ABI is found.
5073 (mips_dump_tdep): Use mips_abi_strings.
5074 (mips_abi_update): New function.
5075 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5076 ``set mips abi'' and ``show mips abi''. Check the size of
5077 mips_abi_strings.
5078
16775908
AC
50792002-06-19 Andrew Cagney <cagney@redhat.com>
5080
5081 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5082 constant.
5083
5051bfa4 50842002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 5085
5051bfa4
JB
5086 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5087 current frame using only the first stack size adjustment. All
5088 subsequent size adjustments are not considered to be part of
5089 the "static" part of the current frame.
5090 Compute the address of the saved registers relative to the
5091 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5092 in use in this frame.
5093
56468235
DH
50942002-06-18 Don Howard <dhoward@redhat.com>
5095
5096 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5097 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5098 suggesting this solution.
5099
0b624158
AC
51002002-06-18 Andrew Cagney <ac131313@redhat.com>
5101
5102 * config/romp/xm-rtbsd.h: Delete file.
5103 * config/romp/rtbsd.mh: Delete file.
5104
221ea385
KS
51052002-06-18 Keith Seitz <keiths@redhat.com>
5106
5107 * breakpoint.c (condition_command): Post breakpoint_modify
5108 when a condition is added to an existing breakpoint.
5109 (commands_command): Likewise for commands.
5110 (set_ignore_count): Likewise for ignore counts.
5111 If no tty, do not simply return, still need to send event
5112 notification.
5113 (ignore_command): Only print a newline if the command came
5114 from a tty.
5115 Don't call breakpoints_changed, since this is now properly
5116 handled by set_ignore_count.
5117
5402eed1
AC
51182002-06-18 Andrew Cagney <cagney@redhat.com>
5119
5120 * MAINTAINERS: Note that cris-elf target can be compiled with
5121 -Werror.
5122 * cris-tdep.c (cris_register_name): Make return type constant.
5123 (cris_breakpoint_from_pc): Ditto.
5124
cc22880b
ML
51252002-06-18 Michal Ludvig <mludvig@suse.cz>
5126
5127 * frame.h (struct frame_info): Change type of context to
5128 'struct context'.
5129
fa88f677
AC
51302002-06-17 Andrew Cagney <cagney@redhat.com>
5131
5132 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5133 pointer.
5134 * gdbarch.h, gdbarch.c: Regenerate.
5135 * config/mips/tm-mips.h (mips_register_name): Update.
5136 * i386-tdep.h (i386_register_name): Update.
5137 * mips-tdep.c (mips_register_name): Update
5138 * alpha-tdep.c (alpha_register_name): Update.
5139 * arch-utils.c (legacy_register_name): Update.
5140 * arch-utils.h (legacy_register_name): Update.
5141 * avr-tdep.c (avr_register_name): Update.
5142 * ia64-tdep.c (ia64_register_name): Update.
5143 * i386-tdep.c (i386_register_name): Update.
5144 * sparc-tdep.c (sparc32_register_name): Update.
5145 (sparc64_register_name): Update.
5146 (sparclite_register_name): Update.
5147 (sparclet_register_name): Update.
5148 * sh-tdep.c (sh_generic_register_name): Update.
5149 (sh_sh_register_name): Update.
5150 (sh_sh3_register_name): Update.
5151 (sh_sh3e_register_name): Update.
5152 (sh_sh_dsp_register_name): Update.
5153 (sh_sh3_dsp_register_name): Update.
5154 (sh_sh4_register_name): Update.
5155 (sh_sh64_register_name): Update.
5156 * s390-tdep.c (s390_register_name): Update.
5157 * rs6000-tdep.c (rs6000_register_name): Update.
5158 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5159 (ns32k_register_name_32382): Update.
5160 * d10v-tdep.c (d10v_ts2_register_name): Update.
5161 (d10v_ts3_register_name): Update.
5162 * xstormy16-tdep.c (xstormy16_register_name): Update.
5163 * vax-tdep.c (vax_register_name): Update.
5164 * v850-tdep.c (v850_register_name): Update.
5165 * m68hc11-tdep.c (m68hc11_register_name): Update.
5166 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5167 (am33_register_name): Update.
5168
ea1e7ef6
GS
51692002-06-17 Grace Sainsbury <graces@redhat.com>
5170
5171 * m68k-tdep.c: Reindented.
5172
9b02dd1b
AC
51732002-06-17 Andrew Cagney <ac131313@redhat.com>
5174
5175 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5176 list of predefined types.
5177
8758dec1
MK
51782002-06-16 Mark Kettenis <kettenis@gnu.org>
5179
b6197528
MK
5180 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5181 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5182 REGISTER_CONVERT_TO_RAW): Remove defines.
5183 (i386_register_virtual_type, i386_register_convertible,
5184 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5185 Remove prototypes.
5186 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5187 macros mentioned above.
5188
82b47e62
MK
5189 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5190 (i386lynx_saved_pc_after_call): Remove prototype.
5191 * i386ly-tdep.c: Include "i386-tdep.h".
5192 (i386lynx_saved_pc_after_call): Make static. Use
5193 read_memory_nobpt instead of read_memory. Use
5194 read_memory_unsigned_integer instead of read_memory_integer.
5195 (i386lynx_init_abi): New function.
5196 (i386lynx_coff_osabi_sniffer): New function.
5197 (_initialize_i386bsd_tdep): New function.
5198
8758dec1
MK
5199 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5200 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5201 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5202 (i386_fix_call_dummy): Remove prototype.
5203 * i386-tdep.c (i386_call_dummy_words): New variable.
5204 (i386_gdbarch_init): Adjust for removal of the
5205 macros mentioned above.
5206
e9e68a56
AC
52072002-06-15 Andrew Cagney <ac131313@redhat.com>
5208
5209 * command.h (add_setshow_auto_boolean_cmd): Replace
5210 add_set_auto_boolean_cmd.
5211 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5212 add_set_auto_boolean_cmd.
5213 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5214 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5215 mask-address'' command.
5216 (show_mask_address): Add cmd parameter.
5217 * remote.c (add_packet_config_cmd): Update. Change type of
5218 set_func and show_func to cmd_sfunc_ftype.
5219 (_initialize_remote): Update `set remote Z-packet'
5220 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5221 (show_remote_protocol_e_packet_cmd): Ditto.
5222 (show_remote_protocol_E_packet_cmd): Ditto.
5223 (show_remote_protocol_P_packet_cmd): Ditto.
5224 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5225 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5226 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5227 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5228 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5229 (show_remote_protocol_Z_packet_cmd): Ditto.
5230 (show_remote_protocol_binary_download_cmd): Ditto.
5231 (show_remote_cmd): Pass NULL to all of above.
5232
fc08ec52
MK
52332002-06-15 Mark Kettenis <kettenis@gnu.org>
5234
5235 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5236 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5237 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5238 POP_FRAME): Remove defines.
5239 (i386_push_arguments, i386_store_struct_return,
5240 i386_extract_return_value, i386_store_return_value,
5241 i386_extract_struct_value_address, i386_push_dummy_frame,
5242 i386_pop_frame): Renove prototypes.
5243 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5244 macros mentioned above.
5245
e707bbc2
AC
52462002-06-15 Andrew Cagney <ac131313@redhat.com>
5247
5248 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5249 add_set_boolean_cmd.
5250 (add_setshow_cmd): New function.
5251 * command.h (add_setshow_boolean_cmd): Replace
5252 add_set_boolean_cmd.
5253 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5254 and ``set rdiromatzero''.
5255 * maint.c (_initialize_maint_cmds): Update commented out code.
5256 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5257 * target.c (initialize_targets): Update `set
5258 trust-readonly-sections'.
5259 * remote.c (_initialize_remote): Update `set remotebreak'.
5260
42fdc8df
MK
52612002-06-15 Mark Kettenis <kettenis@gnu.org>
5262
93924b6b
MK
5263 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5264 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5265 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5266 fit into multi-arch framework.
5267 (i386_breakpoint_from_pc): New function.
5268 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5269 above.
5270
42fdc8df
MK
5271 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5272 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5273 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5274 (i386_frameless_function_invocation, i386_frame_num_args,
5275 i386_frame_init_saved_regs): Remove prototypes.
5276 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5277 macros mentioned above.
5278
9773a94b
AC
52792002-06-15 Andrew Cagney <ac131313@redhat.com>
5280
5281 * cli/cli-decode.c (set_cmd_cfunc): Update.
5282 (set_cmd_sfunc): Update.
5283 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5284 (set_cmd_sfunc, set_cmd_cfunc): Update.
5285 * cli/cli-decode.h: Update.
5286
6e157172
MK
52872002-06-15 Mark Kettenis <kettenis@gnu.org>
5288
5289 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5290 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5291
7f19b9a2
AC
52922002-06-15 Andrew Cagney <ac131313@redhat.com>
5293
5294 * defs.h (auto_boolean): Declare enum.
5295 * command.h (cmd_auto_boolean): Delete enum.
5296 * mips-tdep.c (mask_address_var): Update.
5297 (mips_mask_address_p): Update.
5298 (show_mask_address): Update.
5299 * remote.c (struct packet_config): Update.
5300 (update_packet_config): Update.
5301 (show_packet_config_cmd): Update.
5302 (packet_ok): Update.
5303 (add_packet_config_cmd): Update.
5304 (_initialize_remote):
5305 * command.h: Update.
5306 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5307 (do_setshow_command): Update.
5308 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5309 * cli/cli-decode.h: Update.
5310
1cf88de5
MK
53112002-06-15 Mark Kettenis <kettenis@gnu.org>
5312
22ba8cf2
MK
5313 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5314 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5315 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5316 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5317 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5318 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5319
762c5349
MK
5320 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5321 list of DJGPP COFF targets.
5322
091198bb
MK
5323 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5324 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5325 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5326 (FP0_REGNUM): Remove define.
5327 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5328 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5329 (i386_register_virtual_size): Remove protoype.
5330 * i386-tdep.c (i386_register_virtual_size): Removed.
5331 (i386_extract_return_value, i386_store_return_value): Use
5332 FP0_REGNUM instead of NUM_FREGS to determine whether the
5333 floating-point registers are available.
5334 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5335 Adjust for removal of macros mentioned above.
5336
53372002-06-15 Mark Kettenis <kettenis@gnu.org>
5338
fcc9bf01
MK
5339 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5340 comments.
5341 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5342 Remove prototypes.
5343 (supply_gregset, fill_gregset): Remove use of register keyword and
5344 remove declaration for regmap. Use I386_NUM_GREGS instead of
5345 NUM_REGS and NUM_FREGS.
5346 (FPREGSET_FSAVE_OFFSET): Remove.
5347 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5348 NUM_FREGS to determine whether the floating-point registers are
5349 available.
5350
65e78234
MK
5351 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5352 gnu_store_registers): Replace usage of NUM_GREGS with
5353 I386_NUM_GREGS.
5354
98df6387
MK
5355 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5356 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5357 usage of NUM_GREGS with I386_NUM_GREGS.
5358
099a9414
MK
5359 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5360
57976e88
MK
5361 * i386bsd-nat.c: Include "i386-tdep.h".
5362 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5363 I386_NUM_GREGS.
5364
b335f4a6
MK
5365 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5366 and associated comment. They no longer make any sense, since we
5367 don't use this file anymore on Linux.
5368
1cf88de5
MK
5369 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5370 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5371 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5372 elements in these arrays.
5373 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5374 MAX_NUM_REGS.
5375
daa66587
MK
53762002-06-15 Mark Kettenis <kettenis@gnu.org>
5377
5378 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5379 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5380
26e9b323
AC
53812002-06-14 Andrew Cagney <cagney@redhat.com>
5382
5383 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5384 EXTRACT_RETURN_VALUE.
5385 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5386 EXTRACT_STRUCT_VALUE_ADDRESS.
5387 * gdbarch.h, gdbarch.c: Regenerate.
5388
5389 * values.c (value_being_returned): Handle
5390 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5391 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5392
5393 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5394 * arm-tdep.c (arm_gdbarch_init): Update.
5395 * avr-tdep.c (avr_gdbarch_init): Update.
5396 * cris-tdep.c (cris_gdbarch_init): Update.
5397 * d10v-tdep.c (d10v_gdbarch_init): Update.
5398 * ia64-tdep.c (ia64_gdbarch_init): Update.
5399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5400 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5401 * s390-tdep.c (s390_gdbarch_init): Update.
5402 * sh-tdep.c (sh_gdbarch_init): Update.
5403 * s390-tdep.c (s390_gdbarch_init): Update.
5404 * sparc-tdep.c (sparc_gdbarch_init): Update.
5405 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5406 * v850-tdep.c (v850_gdbarch_init): Update.
5407 * vax-tdep.c (vax_gdbarch_init): Update.
5408 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5410
5411 * config/arc/tm-arc.h: Update.
5412 * config/d30v/tm-d30v.h: Update.
5413 * config/fr30/tm-fr30.h: Update.
5414 * config/h8300/tm-h8300.h: Update.
5415 * config/h8500/tm-h8500.h: Update.
5416 * config/i386/tm-i386.h: Update.
5417 * config/i386/tm-ptx.h: Update.
5418 * config/i386/tm-symmetry.h: Update.
5419 * config/i960/tm-i960.h: Update.
5420 * config/m32r/tm-m32r.h: Update.
5421 * config/m68k/tm-delta68.h: Update.
5422 * config/m68k/tm-linux.h: Update.
5423 * config/m68k/tm-m68k.h: Update.
5424 * config/m88k/tm-m88k.h: Update.
5425 * config/mcore/tm-mcore.h: Update.
5426 * config/mips/tm-mips.h: Update.
5427 * config/mn10200/tm-mn10200.h: Update.
5428 * config/pa/tm-hppa.h: Update.
5429 * config/pa/tm-hppa64.h: Update.
5430 * config/sparc/tm-sp64.h: Update.
5431 * config/sparc/tm-sparc.h: Update.
5432 * config/sparc/tm-sparclet.h: Update.
5433 * config/z8k/tm-z8k.h: Update.
5434
5179e78f
AC
54352002-06-14 Andrew Cagney <cagney@redhat.com>
5436
5437 * Makefile.in (i386_linux_tdep_h): Define.
5438 (i386_tdep_h, i387_tdep_h): Define.
5439 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5440 $(i386_tdep_h) and $(i387_tdep_h).
5441 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5442
8201327c
MK
54432002-06-14 Mark Kettenis <kettenis@gnu.org>
5444
edf393ac
MK
5445 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5446 Already covered by the default.
5447
896fb97d
MK
5448 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5449 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5450 (i386_gdbarch_init): Initialize long_double_format and long_double
5451 bit.
5452
8201327c
MK
5453 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5454 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5455 Move these to ...
5456 * config/i386/i386sol2.mh: ... here.
5457 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5458 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5459 (SIGCONTEXT_PC_OFFSET): Remove define.
5460 (IN_SIGTRAMP): Remove define.
5461 * i386-sol2-tdep.c: New file.
5462
5463 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5464 * config/i386/tm-i386nw.h: Removed.
5465
5466 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5467 USE_STRUCT_CONVENTION): Remove defines.
5468 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5469 (get_longjmp_target): Remove prototype.
5470 (IN_SIGTRAMP): Remove define.
5471 (i386bsd_in_sigtramp): Remove prototype.
5472 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5473 function. Update comment accordingly
5474 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5475 (FRAME_SAVED_PC): Remove define.
5476 (i386bsd_frame_saved_pc): Remove prototype.
5477 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5478 GET_LONGJMP_TARGET): Remove defines.
5479 (get_longjmp_target): Remove prototype.
5480 (IN_SIGTRAMP): Remove define.
5481 (i386bsd_in_sigtramp): Remove prototype.
5482 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5483 function. Update comment accordingly
5484 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5485 (FRAME_SAVED_PC): Remove define.
5486 (i386bsd_frame_saved_pc): Remove prototype.
5487 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5488 Remove prototype.
5489 (USE_STRUCT_CONVENTION): Remove prototype.
5490 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5491 declaration.
5492 (_initialize_i386bsd_nat): Revise logic to determine some
5493 constants at compile time when compiling a native GDB. Warn if
5494 things don't match up with what we expect.
5495 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5496 Remove variables.
5497 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5498 to use date stored in `struct gdbarch_tdep'.
5499 (i386bsd_sigcontext_offset): Remove varaible.
5500 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5501 stored in `struct gdbarch_tdep'.
5502 (i386bsd_frame_saved_pc): Make static.
5503 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5504 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5505 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5506 i386fbsd4_sc_pc_offset): New variables.
5507 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5508 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5509 functions.
5510 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5511 functions.
5512 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5513 Modify the value of i386fbsd_sigtramp_start and
5514 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5515 i386fbsd_sigtramp_end.
5516 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5517 function.
5518
5519 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5520 define to i386-linux-tdep.h.
5521 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5522 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5523 defines.
5524 (i386_linux_register_name, i386_linux_register_byte,
5525 i386_linux_register_raw_size): Remove prototypes.
5526 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5527 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5528 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5529 TARGET_WRITE_PC): Remove defines.
5530 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5531 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5532 i386_linux_write_pc): Remove prototypes.
5533 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5534 (get_longjmp_target): Remove prototype.
5535 * i386-linux-tdep.h: New file.
5536 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5537 * i386-linux-tdep.c: Include "i386-tdep.h" and
5538 "i386-linux-tdep.h".
5539 (i386_linux_register_name, i386_linux_register_byte,
5540 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5541 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5542 Make static.
5543 (i386_linux_init_abi): New function.
5544 (_initialize_i386_linux_tdep): New function.
5545
5546 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5547 (i386_saved_pc_after_call): Remove prototype.
5548 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5549 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5550 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5551 (i386_register_name, i386_stab_reg_to_regnum,
5552 i386_dwarf_reg_to_regnum): Remove prototypes.
5553 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5554 SIZEOF_SSE_REGS): Remove defines.
5555 (REGISTER_BYTES): Remove define.
5556 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5557 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5558 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5559 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5560 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5561 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5562 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5563 (get_longjmp_target): Remove prototype.
5564 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5565 (sigtramp_saved_pc): Remove define.
5566 (i386v4_sigtramp_saved_pc): Remove prototype.
5567 * config/i386/tm-go32.h (FRAME_CHAIN,
5568 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5569 (i386go32_frame_saved_pc): Remove prototype.
5570 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5571 (get_longjmp_target): Remove prototype.
5572 * i386-tdep.h: Include "osabi.h".
5573 (enum i386_abi): Removed.
5574 (enum struct_return): New enum.
5575 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5576 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5577 sc_pc_offset members.
5578 (i386_gdbarch_register_os_abi): Remove prototype.
5579 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5580 I386_SSE_NUM_REGS): New defines.
5581 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5582 I386_SSE_SIZEOF_REGS): New defines.
5583 (i386_register_name, i386_register_byte, i386_register_raw_size):
5584 New prototypes.
5585 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5586 (i386bsd_sigtramp_saved_pc): New prototype.
5587 * i386-tdep.c: Don't include "elf-bfd.h".
5588 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5589 i386_frame_chain, i386_saved_pc_after_call): Make static.
5590 (i386_frame_saved_pc): Rewrite to call architecture dependent
5591 function to deal with signal handlers. Make static.
5592 (i386go32_frame_saved_pc): Removed.
5593 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5594 Removed.
5595 (i386_get_longjmp_target): New function.
5596 (default_struct_convention, pcc_struct_convention,
5597 reg_struct_convention, valid_conventions, struct_convention): New
5598 variables.
5599 (i386_use_struct_convention): New function.
5600 (i386v4_sigtramp_saved_pc): Renamed to
5601 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5602 (i386_pc_in_sigtramp): New function.
5603 (i386_abi_names): Removed.
5604 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5605 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5606 Removed.
5607 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5608 i386_gdbarch_register_os_abi): Removed.
5609 (struct i386_abi_handler): Removed.
5610 (i386_abi_handler_list): Removed.
5611 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5612 functions.
5613 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5614 i386_nw_init_abi): New functions.
5615 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5616 Use set_gdbarch_xxx() calls instead of relying on macros for a
5617 number of calls.
5618 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5619 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5620 Register the various architecture variants defined in this file.
5621
ad2f7632
DJ
56222002-06-14 Daniel Jacobowitz <drow@mvista.com>
5623
5624 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5625 (struct main_type): Remove arg_types member. Update comments for
5626 struct field.
5627 (TYPE_ARG_TYPES): Remove.
5628 (TYPE_FN_FIELD_ARGS): Update.
5629 (smash_to_method_type): Update prototype.
5630
5631 * c-typeprint.c (cp_type_print_method_args): Take method type
5632 instead of argument list. Use new argument layout. Simplify.
5633 (c_type_print_args): Use new argument layout. Simplify.
5634 (c_type_print_base): Update call to cp_type_print_method_args.
5635 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5636 argument; use die->type instead. Update call to
5637 smash_to_method_type.
5638 (read_structure_scope): Update call to dwarf2_add_member_fn.
5639 * gdbtypes.c (allocate_stub_method): Update comment.
5640 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5641 Use new argument layout.
5642 (check_stub_method): Use new argument layout. Don't count
5643 void as an argument.
5644 (print_arg_types): Update comments. Use new argument layout.
5645 (recursive_dump_type): Don't print arg_types member.
5646 * hpread.c (hpread_read_struct_type): Use new argument layout.
5647 (fixup_class_method_type): Likewise.
5648 (hpread_type_lookup): Likewise.
5649 * stabsread.c (read_type): Update calls to read_args and
5650 smash_to_method_type.
5651 (read_args): Use new argument layout. Simplify.
5652 * valops.c (typecmp): Use new argument layout. Update parameters
5653 and comments. Simplify.
5654 (hand_function_call): Use new argument layout.
5655 (search_struct_method): Update call to typecmp.
5656 (find_overload_match): Use new argument layout.
5657
6da02953
DJ
56582002-06-13 Daniel Jacobowitz <drow@mvista.com>
5659
5660 * NEWS: Mention multithreaded debug support for gdbserver.
5661
519b2366
DJ
56622002-06-13 Daniel Jacobowitz <drow@mvista.com>
5663
5664 * MAINTAINERS: Mention NEWS.
5665
6c0d6680
DJ
56662002-06-13 Daniel Jacobowitz <drow@mvista.com>
5667
5668 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5669 (struct mips_objfile_private, compare_pdr_entries): New.
5670 (non_heuristic_proc_desc): Read the ".pdr" section if it
5671 is present.
5672
6529d2dd
AC
56732002-06-12 Andrew Cagney <ac131313@redhat.com>
5674
5675 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5676 (arm_debug): New static variable.
5677 (_initialize_arm_tdep): Add ``set debug arm'' command.
5678
26216b98
AC
56792002-06-12 Andrew Cagney <ac131313@redhat.com>
5680
5681 * Makefile.in (sim_arm_h): Define.
5682 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5683 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5684 (arm_register_sim_regno): New function, map an internal REGNUM
5685 onto a simulator register number.
5686 (arm_gdbarch_init): Set register_sim_regno.
5687
814b3ba0
AH
56882002-06-09 Aldy Hernandez <aldyh@redhat.com>
5689
5690 * MAINTAINERS: Add self.
5691
475b0867
JB
56922002-06-11 Jim Blandy <jimb@redhat.com>
5693
919d772c
JB
5694 * source.c (source_info): Mention whether the symtab has
5695 information about preprocessor macros.
5696
475b0867
JB
5697 Call the command `info macro', not `show macro'.
5698 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5699 Fix error message.
5700 (_initialize_macrocmd): Register `info_macro_command' in
5701 `infolist', not `showlist'.
5702
9e364162
DJ
57032002-06-11 Daniel Jacobowitz <drow@mvista.com>
5704
5705 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5706 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5707 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5708 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5709 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5710 unconditionally.
5711 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5712 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5713 (_initialize_mips_tdep): Remove dead code.
5714 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5715 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5716 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5717 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5718 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5719 MIPS_LAST_FP_ARG_REGNUM): Remove.
5720
23aa4c72
ML
57212002-06-11 Michal Ludvig <mludvig@suse.cz>
5722
5723 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5724 (unwind_tmp_obstack_free, parse_frame_info)
5725 (update_context, cfi_read_fp, cfi_write_fp)
5726 (cfi_frame_chain, cfi_init_extra_frame_info)
5727 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5728 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5729
70eb15a4
CV
57302002-06-11 Corinna Vinschen <vinschen@redhat.com>
5731
5732 * v850-tdep.c (v850_type_is_scalar): New function.
5733 (v850_use_struct_convention): Match current gcc implementation
5734 as close as possible.
5735 (v850_push_arguments): Fix stack_offset handling. Don't write
5736 struct_addr into register. This is done by v850_store_struct_return.
5737 (v850_extract_return_value): Care for structs.
5738 (v850_store_return_value): Ditto.
5739 (v850_store_struct_return): Actually write address.
5740
482a4d06
ML
57412002-06-11 Michal Ludvig <mludvig@suse.cz>
5742
5743 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5744 without debug information too.
5745
d855c300
AC
57462002-06-10 Andrew Cagney <ac131313@redhat.com>
5747
5748 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5749 Make multi-arch pure.
5750 * gdbarch.h, gdbarch.c: Re-generate.
5751 * arm-tdep.c (arm_print_float_info): Update.
5752 * arch-utils.h (default_print_float_info): Update.
5753 * arch-utils.c (default_print_float_info): Update.
5754 * infcmd.c (float_info): Update call.
5755
dd12a101
AC
57562002-06-10 Andrew Cagney <ac131313@redhat.com>
5757
5758 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5759 the front of the initialize list.
5760
101dcfbe
AC
57612002-06-10 Andrew Cagney <ac131313@redhat.com>
5762
5763 * infrun.c (struct inferior_status): Replace fields
5764 selected_frame_address and selected_level with field
5765 selected_frame_id.
5766 (save_inferior_status): Update. Use get_frame_id.
5767 (struct restore_selected_frame_args): Delete.
5768 (restore_selected_frame): Update. Use frame_find_by_id.
5769 (restore_inferior_status): Update.
5770
5771 * breakpoint.h (struct breakpoint): Change type of
5772 watchpoint_frame to frame_id.
5773 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5774 call to get_current_frame.
5775 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5776 get_current_frame.
5777 (watchpoint_check): Use frame_find_by_id.
5778
5779 * frame.h (record_selected_frame): Delete declaration.
5780 * stack.c (record_selected_frame): Delete function.
5781
5782 * frame.h (struct frame_id): Define.
5783 (get_frame_id): Declare.
5784 (frame_find_by_id): Declare.
5785 * frame.c (frame_find_by_id): New function.
5786 (get_frame_id): New function.
5787
304270b6
AV
57882002-06-10 Andrey Volkov <avolkov@transas.com>
5789
5790 * ser-e7kpc.c: Fix duplicated define and call of
5791 _initialize_ser_e7000pc
5792
2f2cf184
DJ
57932002-06-09 Daniel Jacobowitz <drow@mvista.com>
5794
5795 * signals/signals.c (target_signal_from_host): Fix #ifdef
5796 SIGRTMIN case.
5797 (do_target_signal_to_host): Likewise.
5798
caaa3122
DJ
57992002-06-09 Daniel Jacobowitz <drow@mvista.com>
5800
5801 * mips-tdep.c (mips_find_abi_section): New function.
5802 (mips_gdbarch_init): Call it.
5803
6ac5df3a
MK
58042002-06-09 Mark Kettenis <kettenis@gnu.org>
5805
5806 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5807 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5808 after Andrew's 2002-06-08 gdbarch change.
5809
82ea117a
MK
58102002-06-09 Mark Kettenis <kettenis@gnu.org>
5811
5812 * i386-linux-nat.c (suppy_gregset): Don't supply
5813 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5814 register cache.
5815 (fill_gregset): Don't fetch it under the same circumstances.
5816
3c25f8c7
AC
58172002-06-09 Andrew Cagney <cagney@redhat.com>
5818
5819 * Makefile.in (callback_h): Define.
5820 (remote_sim_h): Update path to remote-sim.h.
5821 (remote-rdp.o): Add $(callback_h).
5822 (remote-sim.o): Use $(callback_h).
5823 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5824 * remote-rdp.c: Include "gdb/callback.h".
5825
1029b7fa
MK
58262002-06-09 Mark Kettenis <kettenis@gnu.org>
5827
5828 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5829 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5830
616675d3
AC
58312002-06-08 Andrew Cagney <ac131313@redhat.com>
5832
a3efda28
AC
5833 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5834 * rdi-share/serpardr.c: Ditto.
5835 * rdi-share/unixcomm.c: Ditto.
5836 * rdi-share/serdrv.c: Ditto.
5837 * rdi-share/hostchan.h: Ditto.
5838 * rdi-share/hostchan.c: Ditto.
5839 * rdi-share/host.h: Ditto.
5840 * rdi-share/devsw.c: Ditto.
5841
c5f10366
AC
5842 * objfiles.h: Change type of obj_private to void pointer.
5843 * pa64solib.c: Update copyright. Don't include "assert.h", use
5844 strcmp instead of STREQ, use LONGEST, do not use PTR
5845 * somsolib.c: Ditto.
5846
616675d3
AC
5847 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5848 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5849 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5850
e4b415d9
AC
58512002-06-08 Andrew Cagney <ac131313@redhat.com>
5852
5853 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5854 (default_get_saved_register): Delete function.
5855 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5856 generic_unwind_get_saved_register.
5857 * gdbarch.h, gdbarch.c: Re-generate.
5858
ca0d0b52
AC
58592002-06-08 Andrew Cagney <ac131313@redhat.com>
5860
5861 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5862 generic_func_frame_chain_valid.
5863 * gdbarch.h, gdbarch.c: Re-generate.
5864 * blockframe.c (generic_func_frame_chain_valid): Only check
5865 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5866 passing FP to PC_IN_CALL_DUMMY.
5867 Fix PR gdb/360.
5868
76860b5f
AC
58692002-06-08 Andrew Cagney <ac131313@redhat.com>
5870
5871 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5872 (register_gdbarch_data): Initialize init_p.
5873 (gdbarch_data): Initialize data pointer using the init function.
5874 (init_gdbarch_data): Delete function.
5875 (gdbarch_update_p): Update.
5876 (initialize_non_multiarch): Update.
5877 (struct gdbarch): Add field initialized_p.
5878 * gdbarch.h, gdbarch.c: Re-generate.
5879
8dda9770
ML
58802002-06-07 Michal Ludvig <mludvig@suse.cz>
5881
5882 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5883 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5884 better do the things actually here.
5885 * x86-64-tdep.c (x86_64_register_name2nr): New.
5886 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5887 (x86_64_gdbarch_init): Respect the above change.
5888 * x86-64-tdep.h (x86_64_register_name2nr)
5889 (x86_64_register_nr2name): Add prototypes.
5890 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5891
3d79a47c
MS
58922002-06-06 Michael Snyder <msnyder@redhat.com>
5893
7bd91a28
MS
5894 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5895 Delete extra braces and re-indent.
5896 (d10v_store_return_value): Char return values
3d79a47c
MS
5897 must be shifted over by one byte in R0.
5898 (d10v_extract_return_value): Delete extra braces, re-indent.
5899
095a4c96
EZ
59002002-06-06 Elena Zannoni <ezannoni@redhat.com>
5901
5902 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5903 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5904 (d10v_integer_to_address): Rewrite.
5905 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5906 the d10v specific functions which take care of converting to the
5907 correct space.
5908
e8a77ca4
EZ
59092002-06-06 Elena Zannoni <ezannoni@redhat.com>
5910
5911 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5912 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5913
4f2e4a4f
AC
59142002-06-02 Andrew Cagney <ac131313@redhat.com>
5915
5916 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5917 includes.
5918 * config/tm-linux.h: Ditto.
5919 * config/alpha/tm-alphalinux.h: Ditto.
5920 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5921 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5922 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5923 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5924 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5925 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5926 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5927 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5928 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5929 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5930 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5931 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5932 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5933 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5934 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5935 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5936 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5937 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5938 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5939 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5940 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5941 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5942 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5943 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5944 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5945 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5946 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5947 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5948 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5949 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5950 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5951 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5952 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5953 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5954 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5955 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5956 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5957
ae2ab2ce
AS
59582002-05-04 Aidan Skinner <aidan@velvet.net>
5959
5960 * ada-exp.tab.c: New file
5961 * ada-exp.y: New file
5962 * ada-lang.c: New file
5963 * ada-lang.h: New file
5964 * ada-lex.c: New file
5965 * ada-lex.l: New file
5966 * ada-tasks.c: New file
5967 * ada-typeprint.c: New file
5968 * ada-valprint.c: New file
5969
0ddd0135
JT
59702002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5971
5972 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5973 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5974
750fbacc
JT
59752002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5976
5977 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5978 insetead of ppc-linux-tdep.o.
5979 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5980 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5981
df94e18a
AC
59822002-06-02 Andrew Cagney <ac131313@redhat.com>
5983
5984 2002-05-07 Christian Groessler <chris@groessler.org>
5985 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5986 bit register contents for little endian hosts.
5987
1a38ab75
AC
59882002-06-01 Andrew Cagney <ac131313@redhat.com>
5989
5990 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5991 any maintainer.
5992
8b1632ac
AC
59932002-06-01 Andrew Cagney <ac131313@redhat.com>
5994
5995 * gdbarch.h: Regenerate.
5996
627054c8
AC
59972002-06-01 Andrew Cagney <ac131313@redhat.com>
5998
5999 * MAINTAINERS: Add everyone to write-after-approval list.
6000
4f460812
AC
60012002-06-01 Andrew Cagney <ac131313@redhat.com>
6002
6003 * stack.c (frame_info): Use frame_register_unwind instead of
6004 saved_regs. Mention when the SP is on the stack or in a register.
6005
6006 * frame.h (frame_register_unwind_ftype): Define. Document.
6007 (struct frame_info): Add field register_unwind and
6008 register_unwind_cache.
6009 (frame_register_unwind): Declare.
6010 (generic_unwind_get_saved_register): Declare.
6011
6012 * frame.c (frame_register_unwind): New function.
6013 (generic_unwind_get_saved_register): New function.
6014
6015 * blockframe.c (generic_call_dummy_register_unwind): New function.
6016 (frame_saved_regs_register_unwind): New function.
6017 (set_unwind_by_pc): New function.
6018 (create_new_frame): New function.
6019 (get_prev_frame): New function.
6020
de888f76
AC
60212002-05-30 Andrew Cagney <ac131313@redhat.com>
6022
6023 * a29k-share/: Delete directory.
6024 * remote-vx29k.c: Delete file.
6025
2f2c3626
JT
60262002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6027
6028 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6029 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6030
9ce5c36a
JT
60312002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6032
6033 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6034 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6035 (sparc64nbsd-nat.o)
6036 (sparcnbsd-nat.o)
6037 (sparcnbsd-tdep.o): New dependency lists.
6038 * NEWS: Note new UltraSPARC NetBSD native configuration.
6039 * configure.host (sparc64-*-netbsd*): New host.
6040 * configure.tgt (sparc-*-netbsdelf*)
6041 (sparc-*-netbsd*): Set gdb_target to nbsd.
6042 (sparc64-*-netbsd*): New target.
6043 * sparc64nbsd-nat.c: New file.
6044 * sparcnbsd-nat.c: New file.
6045 * sparcnbsd-tdep.c: New file.
6046 * sparcnbsd-tdep.h: New file.
6047 * config/sparc/nbsd.mt: New file.
6048 * config/sparc/nbsd64.mh: New file.
6049 * config/sparc/nbsd64.mt: New file.
6050 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6051 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6052 (HOST_IPC): Remove.
6053 * config/sparc/nbsdaout.mt: Remove.
6054 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6055 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6056 (HOST_IPC): Remove.
6057 * config/sparc/nbsdelf.mt: Remove.
6058 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6059 sparc-nat.c compatiblity defines.
6060 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6061 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6062 * config/sparc/tm-nbsd64.h: New file.
6063 * config/sparc/tm-nbsdaout.h: Remove.
6064 * config/sparc/xm-nbsd.h: Remove.
6065
ef3cf062
JT
60662002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6069 * sparc-tdep.c: Include osabi.h.
6070 (gdbarch_tdep): Add osabi member.
6071 (_initialize_sparc_tdep): Use gdbarch_register.
6072 (sparc_gdbarch_init): Use generic OS ABI framework.
6073 (sparc_dump_tdep): New function.
6074
ee8ff470
KB
60752002-05-30 Kevin Buettner <kevinb@redhat.com>
6076
6077 * corefile.c (do_captured_read_memory_integer): Return non-zero
6078 result.
6079 (safe_read_memory_integer): Copy result of memory read when
6080 status is non-zero. Also, add comments.
6081
7b112f9c
JT
60822002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6083
6084 * Makefile.in (ppc_tdep_h): Define.
6085 (ppc-linux-nat.o)
6086 (ppc-linux-tdep.o)
6087 (rs6000-tdep.o): Use $(ppc_tdep_h).
6088 (ppc-sysv-tdep.o)
6089 (ppcnbsd-nat.o)
6090 (ppcnbsd-tdep.o): New dependency lists.
6091 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
6092 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6093 (ppc_linux_init_abi): New functions.
7b112f9c
JT
6094 (ppc_sysv_abi_broken_use_struct_convention)
6095 (ppc_sysv_abi_use_struct_convention)
6096 (ppc_sysv_abi_push_arguments): Move to...
6097 * ppc-sysv-tdep.c: ...here.
6098 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6099 * rs6000-tdep.c (process_note_abi_tag_sections)
6100 (get_elfosabi): Remove.
6101 (rs6000_gdbarch_init): Use generic OS ABI framework.
6102 (rs6000_dump_tdep): New function.
6103 (_initialize_rs6000_tdep): Use gdbarch_register.
6104 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6105 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6106 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6107 of ppc-linux-tdep.o.
6108 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6109 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6110 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6111 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6112 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6113 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6114
480dd42a
JB
61152002-05-29 Jim Blandy <jimb@redhat.com>
6116
6117 * macroscope.c (default_macro_scope): Put `void' in empty argument
6118 list.
6119
4182591f
AC
61202002-05-29 Andrew Cagney <ac131313@redhat.com>
6121
6122 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6123 * arch-utils.c: Include "sim-regno.h".
6124 * gdbarch.sh: Don't include "sim-regno.h".
6125 * gdbarch.h, gdbarch.c: Regenerate.
6126 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6127 here.
6128 * arch-utils.h (legacy_register_sim_regno): To here.
6129 * remote-sim.c (legacy_register_sim_regno): Move function from
6130 here.
6131 * arch-utils.c (legacy_register_sim_regno): To here.
6132
8238d0bf
AC
61332002-05-28 Andrew Cagney <ac131313@redhat.com>
6134
6135 * sim-regno.h: New file.
6136 * Makefile.in (sim_regno_h): Define.
6137 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6138 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6139 (legacy_register_sim_regno): New function.
6140 (one2one_register_sim_regno): New function.
6141 (gdbsim_fetch_register): Rewrite.
6142 (gdbsim_store_register): Only store a register when
6143 REGISTER_SIM_REGNO is valid.
6144 * d10v-tdep.c: Include "sim-regno.h".
6145 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6146 (d10v_ts3_register_sim_regno): Ditto.
6147 * gdbarch.sh: Include "sim-regno.h".
6148 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6149 * gdbarch.h, gdbarch.c: Regenerate.
6150 * arch-utils.h (default_register_sim_regno): Delete declaration.
6151 * arch-utils.c (default_register_sim_regno): Delete function.
6152
485721b1
JT
61532002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6154
6155 * ppcnbsd-nat.c: Rewrite.
6156 * ppcnbsd-tdep.c: New file.
6157 * ppcnbsd-tdep.h: New file.
6158 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6159 solib.o, and solib-svr4.o.
6160 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6161 nbsd-tdep.o, and corelow.o.
6162
697f244d
AC
61632002-05-28 Andrew Cagney <ac131313@redhat.com>
6164
6165 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6166 `tr' and `sed'. Mention that `broken' targets are not expected to
6167 build.
6168
f08caad1 61692002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
6170
6171 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6172 Let PC point right after the prologue before looking up symbols.
6173
3139facc
MH
61742002-05-27 Martin M. Hunt <hunt@redhat.com>
6175
6176 * i386-tdep.c (i386_register_virtual_type): Return
6177 builtin_type_vec128i for SSE registers.
6178
6179 * gdbtypes.h (builtin_type_vec128i): Declare.
6180
6181 * gdbtypes.c (build_builtin_type_vec128i): New function.
6182 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6183 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6184 (build_gdbtypes): Initialize new builtin vector types.
6185 (_initialize_gdbtypes): Register new vector types with gdbarch.
6186
6e3ba3b8
JT
61872002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6188
6189 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6190 since it has been multi-arch'd.
6191 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6192 Move Alpha and VAX multi-arch news entries to same section
6193 as other multi-arch news.
6194
93d5585d
JT
61952002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6196
6197 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6198 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6199 static. Rename some register numbers to put them in ns32k-tdep
6200 private namespace.
6201 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6202 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6203 functions.
6204 (_initialize_ns32k_tdep): Use gdbarch_register.
6205 * ns32k-tdep.h: New file.
6206 * ns32knbsd-tdep.c: New file.
6207 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6208 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6209 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6210 REGISTER_BYTES, REGISTER_BYTE): Remove.
6211 * config/ns32k/tm-ns32k.h: New file.
6212 * config/ns32k/tm-umax.h: Remove.
6213
efb2c70e
JT
62142002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6215
6216 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6217 ns32k_store_struct_return, ns32k_extract_return_value,
6218 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6219 functions.
6220 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6221 ns32k_saved_pc_after_call.
6222 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6223 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6224 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6225 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6226 ns32k_extract_struct_value_address.
6227
7bcc927b
JT
62282002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6229
6230 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6231 ns32k_fix_call_dummy): New.
6232 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6233 ns32k_call_dummy_words.
6234 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6235 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6236 CALL_DUMMY_NARGS): Remove.
6237 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6238
78f9d765
JT
62392002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6240
6241 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6242 ns32k_frame_saved_pc, ns32k_frame_args_address,
6243 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6244 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6245 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6246 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6247 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6248 (BREAKPOINT): Remove..
6249 (FRAME_CHAIN): Define as ns32k_frame_chain.
6250 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6251 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6252 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6253 (FRAME_FIND_SAVED_REGS): Remove.
6254 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6255 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6256 (POP_FRAME): Define as ns32k_pop_frame.
6257
f2c762e0
JT
62582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6259
6260 * ns32k-tdep.c (ns32k_register_byte_32082,
6261 ns32k_register_byte_32382, ns32k_register_raw_size,
6262 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6263 functions.
6264 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6265 ns32k_register_byte_32382.
6266 * config/ns32k/tm-umax.h: Update copyright years.
6267 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6268 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6269 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6270 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6271 (ns32k_get_enter_addr): Fix prototype.
6272
af137673
JT
62732002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6274
6275 * ns32k-tdep.c: Update copyright years.
6276 (ns32k_register_name_32082): New function.
6277 (ns32k_register_name_32382): Ditto.
6278 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6279 (REGISTER_NAME): Define as ns32k_register_name_32382.
6280 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6281 (REGISTER_NAME): Define as ns32k_register_name_32082.
6282
a8bc7b56
JB
62832002-05-24 Jim Blandy <jimb@redhat.com>
6284
6285 * dwarf2read.c (free_line_header): Use xfree, not free.
6286
83a45910
JT
62872002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6288
6289 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6290 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6291
0db71247
AC
62922002-05-23 Andrew Cagney <ac131313@redhat.com>
6293
6294 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6295
b9e5e4dd
AC
62962002-05-23 Andrew Cagney <ac131313@redhat.com>
6297
6298 From Ross Alexander at NEC Europe:
6299 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6300
de530e84
MS
63012002-05-23 Michael Snyder <msnyder@redhat.com>
6302
6303 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6304 for input, rather than parse_and_eval_address.
6305
b91b96f4
AC
63062002-05-23 Andrew Cagney <ac131313@redhat.com>
6307
6308 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6309 * Makefile.in (sim_d10v_h): Update definition.
6310
8b279e7a
AC
63112002-05-24 Andrew Cagney <cagney@redhat.com>
6312
6313 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6314 change `2002-05-22 Michael Snyder' below.
6315 (d10v_push_arguments): Ditto.
6316 (d10v_extract_return_value): Ditto.
6317
0a3d0425
JB
63182002-05-23 Jim Blandy <jimb@redhat.com>
6319
6320 * macrotab.c (check_for_redefinition): Don't complain if the new
6321 definition is the same as the previous one. Take more arguments
6322 to allow the comparison.
6323 (macro_define_object, macro_define_function): Pass more arguments
6324 to check_for_redefinition.
6325
78eac43e
MS
63262002-05-22 Michael Snyder <msnyder@redhat.com>
6327
6328 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6329 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6330 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6331 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6332 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6333 Add a temp variable to save a call (and a memory read).
6334 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6335 if possible (so that PC_IN_CALL_DUMMY will work).
6336
9bc1edb8
CV
63372002-05-22 Corinna Vinschen <vinschen@redhat.com>
6338
6339 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6340
005ef3d2
ML
63412002-05-22 Michal Ludvig <mludvig@suse.cz>
6342
6343 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6344 fde->cie_ptr.
6345 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6346 (dwarf2_build_frame_info): Add offset to fde->initial_location
6347 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6348 (execute_stack_op): Change type of 'result' from ULONGEST to
6349 CORE_ADDR.
005ef3d2 6350
fcf4f891
JT
63512002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6352
6353 * config/alpha/tm-nbsd.h: Include solib.h.
6354
cfef91e4
JT
63552002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6356
6357 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6358 assumptions about the host's byte order.
6359
9964235a
JT
63602002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6363 to dependency list.
6364 * alphanbsd-tdep.c: Include solib-svr4.h.
6365 * shnbsd-tdep.c: Ditto.
6366
9eeef8ef
JT
63672002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6368
6369 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6370 nbsd-tdep.h to dependency list.
6371 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6372 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6373 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6374 nbsdaout.mh and nbsdelf.mh consistently.
6375 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6376 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6377 nbsdaout.mt and nbsdelf.mh consistently.
6378 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6379 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6380 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6381 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6382 a.out shared library stuff from here...
6383 * config/nm-nbsdaout.h: ...to here.
6384 * config/tm-nbsd.h: Remove.
6385 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6386 * config/arm/nbsd.mh: Remove.
6387 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6388 nbsd-tdep.o.
6389 * config/arm/nbsdaout.mh: New file.
6390 * config/arm/nbsdelf.mh: New file.
6391 * config/arm/nm-nbsdaout.h: New file.
6392 * config/i386/nbsd.mh: Remove.
6393 * config/i386/nbsd.mt: Remove.
6394 * config/i386/nbsdaout.mh: New file.
6395 * config/i386/nbsdaout.mt: New file.
6396 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6397 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6398 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6399 i386_register_u_addr): Remove.
6400 * config/i386/nm-nbsdaout.h: New file.
6401 * config/i386/nm-nbsdelf.h: Remove.
6402 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6403 (USE_STRUCT_CONVENTION): Remove.
6404 * config/i386/tm-nbsdaout.h: New file.
6405 * config/i386/tm-nbsdelf.h: Remove.
6406 * config/m68k/nbsd.mh: Remove.
6407 * config/m68k/nbsd.mt: Remove.
6408 * config/m68k/nbsdaout.mh: New file.
6409 * config/m68k/nbsdaout.mt: New file.
6410 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6411 * config/m68k/nm-nbsdaout.h: New file.
6412 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6413 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6414 * config/ns32k/nbsd.mh: Remove.
6415 * config/ns32k/nbsd.mt: Remove.
6416 * config/ns32k/nbsdaout.mh: New file.
6417 * config/ns32k/nbsdaout.mt: New file.
6418 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6419 * config/ns32k/nm-nbsdaout.h: New file.
6420 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6421 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6422 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6423 (SVR4_SHARED_LIBS): Remove.
6424 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6425 * config/sparc/nbsd.mh: Remove.
6426 * config/sparc/nbsd.mt: Remove.
6427 * config/sparc/nbsdaout.mh: New file.
6428 * config/sparc/nbsdaout.mt: New file.
6429 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6430 * config/sparc/nbsdelf.mt: New file.
6431 * config/sparc/nm-nbsdaout.h: New file.
6432 * config/sparc/nm-nbsdelf.h: Remove.
6433 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6434 * config/sparc/tm-nbsdaout.h: New file.
6435
257ce470
JT
64362002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6437
6438 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6439 mipsnbsd-tdep.c
6440 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6441
76a6d5fe
JT
64422002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6443
6444 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6445 shnbsd-nat.c.
6446 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6447
45888261
JT
64482002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * NEWS: Note new MIPS NetBSD native configuration.
6451 * configure.host (mips*-*-netbsd*): New host.
6452 * configure.tgt (mips*-*-netbsd*): New target.
6453 * mipsnbsd-nat.c: New file.
6454 * mipsnbsd-tdep.c: New file.
6455 * mipsnbsd-tdep.h: New file.
6456 * config/mips/nbsd.mh: New file.
6457 * config/mips/nbsd.mt: New file.
6458 * config/mips/nm-nbsd.h: New file.
6459 * config/mips/tm-nbsd.h: New file.
6460
70f80edf
JT
64612002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6462
6463 * Makefile.in (SFILES): Add osabi.c.
6464 (COMMON_OBS): Add osabi.o.
6465 (osabi.o): New dependency list.
6466 * osabi.c: New file.
6467 * osabi.h: New file.
6468 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6469
6470 * Makefile.in (alpha_tdep_h): Define and use instead of
6471 alpha-tdep.h.
6472 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6473 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6474 Remove.
6475 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6476 * alpha-tdep.h: Include osabi.h.
6477 (alpha_abi): Remove.
6478 (gdbarch_tdep): Use generic OS ABI framework.
6479 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6480 gdbarch_register_osabi.
6481 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6482 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6483 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6484
6485 * Makefile.in (sh_tdep_h): Add osabi.h.
6486 * sh-tdep.h (sh_osabi): Remove.
6487 (gdbarch_tdep): Use generic OS ABI framework.
6488 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6489 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6490 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6491 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6492
6493 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6494 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6495 gdbarch_register_osabi.
6496 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6497 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6498 (get_elfosabi): Rename to...
6499 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6500 ABI framework support routines.
6501 (arm_gdbarch_init): Use generic OS ABI framework.
6502 (arm_dump_tdep): Likewise.
6503 (_initialize_arm_tdep): Likewise.
6504 * arm-tdep.h: Include osabi.h.
6505 (arm_abi): Remove.
6506 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6507 osabi member.
6508 (arm_gdbarch_register_os_abi): Remove prototype.
6509 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6510 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6511
6512 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6513 * mips-tdep.c: Include osabi.h.
6514 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6515 OS ABI framework.
6516
d194345b
KH
65172002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6518
6519 * h8300-tdep.c: Fix formatting.
6520
70c6b0d1
EZ
65212002-05-20 Elena Zannoni <ezannoni@redhat.com>
6522
6523 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6524 printing vector registers.
6525
165b8e33
AC
65262002-05-19 Andrew Cagney <ac131313@redhat.com>
6527
6528 From Fernando Nasser:
6529 * remote.c (remote_async_open_1): Re-throw the exception when the
6530 connection fails.
6531 (remote_cisco_open): Ditto.
6532 (remote_open_1): Ditto.
6533
36918e70
AC
65342002-05-19 Andrew Cagney <ac131313@redhat.com>
6535
6536 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6537 (remote_start_remote): Add uiout parameter. Pass through to
6538 remote_start_remote_dummy.
6539 (remote_open_1): Use catch_exception instead of catch_errors.
6540 (remote_async_open_1): Ditto.
6541 (remote_cisco_open): Ditto.
6542
ae44c0c4
AC
65432002-05-19 Andrew Cagney <ac131313@redhat.com>
6544
6545 * remote.c (remote_start_remote): Replace PTR with void pointer.
6546 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6547 static.
6548
8efe637d
AC
65492002-05-18 Andrew Cagney <ac131313@redhat.com>
6550
6551 * gdb_indent.sh: Allow the script to be run in the sim directory.
6552
2f1b5984
MK
65532002-05-18 Mark Kettenis <kettenis@gnu.org>
6554
f0f625e2
MK
6555 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6556 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6557
2f1b5984
MK
6558 * corelow.c (core_open): Only call set_gdbarch_from_file if
6559 exec_bfd is NULL.
6560
fc974602
AV
65612002-05-17 Andrey Volkov <avolkov@transas.com>
6562
6563 * h8300-tdep.c: Add support of EXR register
6564 * config/h8300/tm-h8300.h: Ditto.
6565
906709f4
AV
65662002-05-17 Andrey Volkov <avolkov@transas.com>
6567
6568 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6569
6e591d68
AV
65702002-05-17 Andrey Volkov <avolkov@transas.com>
6571
6572 * h8300-tdep.c: Change literal regnums to REGNO.
6573
84f0252a
JB
65742002-05-17 Jim Blandy <jimb@redhat.com>
6575
e0e9281e
JB
6576 * NEWS: Note addition of macro support.
6577
84f0252a
JB
6578 Expand preprocessor macros in C expressions.
6579 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6580 (scan_macro_expansion, scanning_macro_expansion,
6581 finished_macro_expansion): New function declarations.
6582 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6583 variable declarations.
6584 * parser-defs.h (expression_context_pc): New declaration.
6585 * parse.c (expression_context_pc): New variable.
6586 (parse_exp_1): Set expression_context_pc, as well as
6587 expression_context_block.
6588 * c-exp.y (yylex): If we're not already reading the result of a
6589 macro expansion, try to macro-expand the next token. When we're
6590 done scanning a macro expansion, switch back to the mainline text.
6591 Commas and `if's in a macro's expansion don't terminate the input.
6592 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6593 (macro_original_text, macro_expanded_text,
6594 expression_macro_lookup_func, expression_macro_lookup_baton): New
6595 variables.
6596 (scan_macro_expansion, scanning_macro_expansion,
6597 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6598 c_preprocess_and_parse): New functions.
6599 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6600 c_preprocess_and_parse, instead of c_parse.
6601 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6602 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6603
1c509ca8
JR
6604Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6605
6606 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6607 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6608 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6609
2250ee0c
CV
66102002-05-17 Corinna Vinschen <vinschen@redhat.com>
6611
6612 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6613
ab3b8126
JT
66142002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6615
6616 * Makefile.in (sh_tdep_h): Define and use.
6617 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6618 register enum): Move to...
6619 * * sh-tdep.h: ...here.
6620 * sh-tdep.c: Include sh-tdep.h.
6621 * sh3-rom.c: Likewise.
6622 * shnbsd-tdep.c: Likewise.
6623
ed9d4749
MS
66242002-05-16 Michael Snyder <msnyder@redhat.com>
6625
6626 * arm-tdep.c: Spelling fix in comment.
6627
2e276125
JB
66282002-05-16 Jim Blandy <jimb@redhat.com>
6629
6821892e
JB
6630 Add commands for manually expanding macros and showing their
6631 definitions.
6632 * macrocmd.c, macroscope.c, macroscope.h: New files.
6633 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6634 (macroscope_h): New variable.
6635 (HFILES_NO_SRCDIR): Add macroscope.h.
6636 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6637 (macroscope.o, macrocmd.o): New rules.
6638
2e276125
JB
6639 Teach the Dwarf 2 reader to read macro information.
6640 * dwarf2read.c: #include "macrotab.h".
6641 (dwarf_macinfo_buffer): New variable.
6642 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6643 dwarf_macinfo_size.
6644 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6645 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6646 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6647 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6648 dwarf2_macro_spaces_in_definition): New complaints.
6649 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6650 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6651 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6652 the partial symbol table.
6653 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6654 from what's recorded in the partial symbol table.
6655 (read_file_scope): If the compilation unit has a
6656 `DW_AT_macro_info' attribute, read its macro information.
6657 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6658
2f53fe6c
DJ
66592002-05-16 Daniel Jacobowitz <drow@mvista.com>
6660
6661 Fix PR gdb/546
6662 * ser-tcp.c: Don't include <netinet/udp.h>.
6663
2be99286
SC
66642002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6665
6666 * MAINTAINERS: Update my email address.
6667
c9af212b 66682002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6669
6670 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6671 include file of the same name.
6672
bf5f1a52
CV
66732002-05-16 Corinna Vinschen <vinschen@redhat.com>
6674
6675 * configure.tgt: Mark v850 as multi-arched.
6676 * config/v850/tm-v850.h: Remove file.
6677 * config/v850/v850.mt: Eliminate TM_FILE.
6678
435e042a
CV
66792002-05-16 Corinna Vinschen <vinschen@redhat.com>
6680
6681 * v850-tdep.c: Full multi-arch.
6682 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6683 Define GDB_MULTI_ARCH to 2.
6684
9819c6c8
PM
66852002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6686
6687 * p-exp.y (current_type): New static variable.
6688 Carries the type of the expression at the position that is parsed.
6689 (push_current_type, pop_current_type): Two new functions. Used
6690 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6691 (search_field): New static variable. Set to one after parsing a point
6692 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6693 (FIELDNAME): New token. After a point only a token belonging to
6694 current_type type definition is allowed.
6695 (all over token rules): reset and change current_type according
6696 to rules.
6697 (exp '[' rule): insert implicit array index field if
6698 exp is a pascal string type.
6699
3a06899a
CV
67002002-05-16 Corinna Vinschen <vinschen@redhat.com>
6701
6702 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6703 frame info. Use frame_info's saved_regs instead of matching member
6704 in extra_frame_info throughout.
6705 (v850_frame_init_saved_regs): New function.
6706 (v850_init_extra_frame_info): Move most functionality into
6707 v850_frame_init_saved_regs().
6708 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6709 (v850_frame_find_saved_regs): Remove declaration.
6710 (FRAME_FIND_SAVED_REGS): Remove definition.
6711 (v850_frame_init_saved_regs): Add declaration.
6712 (FRAME_INIT_SAVED_REGS): Add definition.
6713
6ed14b0e
CV
67142002-05-16 Corinna Vinschen <vinschen@redhat.com>
6715
6716 * v850-tdep.c: Begin multi-arch'ing v850.
6717 (v850_target_architecture_hook): Remove function.
6718 (v850_gdbarch_init): New function. Add code previously in
6719 v850_target_architecture_hook().
6720 (_initialize_v850_tdep): Don't set target_architecture_hook.
6721 Call register_gdbarch_init() instead.
6722
42725910
DJ
67232002-05-16 Daniel Jacobowitz <drow@mvista.com>
6724
6725 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6726 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6727 (fixup_class_method_type): Likewise.
6728
99d9066e
JB
67292002-05-15 Jim Blandy <jimb@redhat.com>
6730
6731 Add macro structures to GDB's symbol tables. Nobody puts anything
6732 in them yet.
6733 * symtab.h (struct symtab): New member: `macro_table'.
6734 * buildsym.h (pending_macros): New global variable.
6735 * buildsym.c: #include "macrotab.h".
6736 (buildsym_init): Initialize `pending_macros'.
6737 (end_symtab): If we found macro information while reading a CU's
6738 debugging info, do build a symtab structure for it. Make the
6739 symtab point to the macro information, and clear the
6740 `pending_macros' pointer which held it while we were reading the
6741 debug info.
6742 (really_free_pendings): Free any pending macro table.
6743 * objfiles.h (struct objfile): New member: `macro_cache'.
6744 * objfiles.c (allocate_objfile): Set allocate and free functions
6745 for the macro cache's objstack.
6746 (free_objfile): Empty the macro cache's obstack.
6747 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6748 set new allocate and free functions for it.
6749 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6750 free functions for the macro cache's objstack. (Why is this
6751 function building its own objfile?)
6752 * symmisc.c (print_objfile_statistics): Print statistics on the
6753 macro bcache.
6754 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6755
c899585b
RE
67562002-05-15 Richard Earnshaw <rearnsha@arm.com>
6757
6758 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6759 (REGISTER_U_ADDR): Delete definition.
6760 (arm_register_u_addr): Delete declaration.
6761
a6cdd8c5
RE
67622002-05-15 Richard Earnshaw <rearnsha@arm.com>
6763
6764 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6765 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6766
c97dcfc7
AC
67672002-05-14 Andrew Cagney <ac131313@redhat.com>
6768
6769 * regcache.c (register_valid): Revise comments refering to "Not
6770 available" and "unavailable".
6771 * frame.c (frame_register_read): Ditto.
6772 * findvar.c (value_of_register): Ditto.
6773
93021b7d
AC
67742002-05-15 Andrew Cagney <cagney@redhat.com>
6775
6776 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6777 (remote-sim.o): Update dependencies.
6778 (d10v-tdep.o): Specify dependencies.
6779 (sim_d10v_h): Define.
6780
a86bc61c
JB
67812002-05-14 Jim Blandy <jimb@redhat.com>
6782
6783 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6784 * macrotab.c (macro_lookup_inclusion, find_definition,
6785 new_macro_table): Same.
6786
6787 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6788 not `! strcmp ()'. This is a dubious improvement.
6789 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6790
6791 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6792 although it's not necessary, to avoid a warning.
6793
2fdde8f8
DJ
67942002-05-14 Daniel Jacobowitz <drow@mvista.com>
6795
6796 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6797 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6798 TYPE_INSTANCE_FLAGS.
6799 (struct main_type): New.
6800 (struct type): Move most members to struct main_type. Change
6801 cv_type and as_type to new type_chain member. Add instance_flags.
6802 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6803 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6804 (finish_cv_type): Remove prototype.
6805 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6806 Set TYPE_CHAIN.
6807 (alloc_type_instance): New function.
6808 (smash_type): New function.
6809 (make_pointer_type, make_reference_type, make_function_type)
6810 (smash_to_member_type, smash_to_method_type): Call smash_type.
6811 (make_qualified_type): New function.
6812 (make_type_with_address_space): Call make_qualified_type.
6813 (make_cv_type): Likewise.
6814 (finish_cv_type): Remove unnecessary function.
6815 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6816 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6817 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6818 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6819 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6820 * hpread.c (hpread_read_struct_type): Likewise.
6821 * stabsread.c (read_struct_type): Likewise.
6822
843fedf4
EZ
68232002-05-14 Elena Zannoni <ezannoni@redhat.com>
6824
6825 * configure.tgt: Add a catch all sh* target, for cases like
6826 sh[2,3,4]-elf and sh-hms.
6827
05a6c72c
KS
68282002-05-14 Keith Seitz <keiths@redhat.com>
6829
6830 * event-loop.c (create_file_handler): Don't do anything but
6831 update data when we are given a fd which we are already
6832 monitoring.
6833
5d085aaf
ML
68342002-05-14 Michal Ludvig <mludvig@suse.cz>
6835
6836 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6837 (update_context): Use __func__ in warnings.
6838
9db8d71f
DJ
68392002-05-14 Daniel Jacobowitz <drow@mvista.com>
6840
6841 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6842 and tcp_close to net_open and net_close.
6843 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6844 using UDP if requested. Don't try to disable Nagle on UDP
6845 sockets.
6846 * remote.c (remote_serial_open): New function. Warn about UDP.
6847 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6848
5dbc6baa
EZ
68492002-05-13 Elena Zannoni <ezannoni@redhat.com>
6850
6851 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6852
cc3023f7
EZ
68532002-05-13 Elena Zannoni <ezannoni@redhat.com>
6854
6855 * configure.tgt: Remove sh-hms target.
6856 * MAINTAINERS: Don't list sh-hms as a separate target.
6857
ec2bcbe7
JB
68582002-05-13 Jim Blandy <jimb@redhat.com>
6859
6860 Add first preprocessor macro-expansion files.
6861 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6862 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6863 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6864 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6865 (COMMON_OBS): Add macrotab.o, macroexp.o.
6866 (macroexp.o, macrotab.o): New rules.
6867
6d531722
AC
68682002-05-13 Andrew Cagney <ac131313@redhat.com>
6869
6870 * config/m88k/tm-m88k.h: Update copyright.
6871 (m88k_target_write_pc): Declare
6872 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6873 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6874 (SHIFT_INST_REGS): Update definition.
6875 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6876 using old definition of TARGET_WRITE_PC.
6877 * regcache.c (generic_target_write_pc): Delete code handling
6878 NNPC_REGNUM.
6879 * gdbarch.sh (NNPC_REGNUM): Delete.
6880 * gdbarch.h, gdbarch.c: Regenerate.
6881
3e3f2739
RE
68822002-05-13 Richard Earnshaw <rearnsha@arm.com>
6883
6884 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6885 builtin reg number.
6886
0004e5a2
DJ
68872002-05-13 Daniel Jacobowitz <drow@mvista.com>
6888
6889 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6890 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6891 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6892 access macros.
6893 * c-typeprint.c (cp_type_print_method_args): Likewise.
6894 (c_type_print_args): Likewise.
6895 * d10v-tdep.c (d10v_push_arguments): Likewise.
6896 (d10v_extract_return_value): Likewise.
6897 * expprint.c (print_subexp): Likewise.
6898 * gdbtypes.c (lookup_primitive_typename): Likewise.
6899 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6900 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6901 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6902 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6903 (TYPE_VECTOR): Likewise.
6904 * hpread.c (hpread_read_struct_type)
6905 (fix_static_member_physnames, fixup_class_method_type)
6906 (hpread_type_lookup): Likewise.
6907 * mdebugread.c (parse_symbol, parse_type): Likewise.
6908 * p-lang.c (is_pascal_string_type): Likewise.
6909 * valops.c (hand_function_call): Likewise.
6910 * x86-64-tdep.c (classify_argument): Likewise.
6911
6912 * hpread.c (hpread_read_function_type)
6913 (hpread_read_doc_function_type): Call replace_type.
6914 * dstread.c (create_new_type): Delete.
6915 (decode_dst_structure, process_dst_function): Call alloc_type.
6916 Use type access macros.
6917
dff95cc7
MK
69182002-05-12 Mark Kettenis <kettenis@gnu.org>
6919
6920 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6921 the're not supported by the current architecture.
6922 (i387_fill_fxsave): Likewise.
6923
bbcd32ad
FF
69242002-05-12 Fred Fish <fnf@redhat.com>
6925
6926 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6927 sect_index_xxx members to index the first slot in section_offsets
6928 if all of the section_offsets are zero.
6929
89cf4787
MK
69302002-05-12 Mark Kettenis <kettenis@gnu.org>
6931
6932 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6933 checked in with last change.
6934
1f77ffc5
MK
69352002-05-12 Mark Kettenis <kettenis@gnu.org>
6936
6937 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6938 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6939 config.sub.
6940
89b8b4a9
DJ
69412002-05-12 Daniel Jacobowitz <drow@mvista.com>
6942
6943 * Makefile.in: Update dependencies.
6944
14a5e767
AC
69452002-05-11 Andrew Cagney <ac131313@redhat.com>
6946
6947 * language.c (local_hex_string_custom): Simplify. Do not depend
6948 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6949
6950 * memattr.c (mem_info_command): Replace calls to
6951 longest_local_hex_string and longest_local_hex_string_custom.
6952 * buildsym.c (make_blockvector): Ditto.
6953 * solib.c (info_sharedlibrary_command): Ditto.
6954 * tracepoint.c (tracepoints_info): Ditto.
6955 * symtab.c (print_msymbol_info): Ditto.
6956
6957 * language.c (local_hex_string): Delete.
6958 (local_hex_string_custom): Delete.
6959 (longest_local_hex_string): Rename to local_hex_string.
6960 (longest_local_hex_string_custom): Rename to
6961 local_hex_string_custom.
6962 * language.h (local_hex_string): Change parameter type to LONGEST.
6963 (local_hex_string_custom): Ditto.
6964 (longest_local_hex_string): Delete declaration.
6965 (longest_local_hex_string_custom): Ditto.
6966
6967 * solib.c: Update copyright.
6968 * memattr.c: Update copyright.
6969
13d01224
AC
69702002-05-11 Andrew Cagney <ac131313@redhat.com>
6971
6972 * arch-utils.h (legacy_register_to_value): Declare.
6973 (legacy_value_to_register): Declare.
6974 (legacy_convert_register_p): Declare.
6975 * arch-utils.c (legacy_register_to_value): New function.
6976 (legacy_value_to_register): New function.
6977 (legacy_convert_register_p): New function.
6978
6979 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6980 (VALUE_TO_REGISTER): Define.
6981 (CONVERT_REGISTER_P): Define.
6982 * gdbarch.h, gdbarch.c: Regenerate.
6983
6984 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6985 VALUE_TO_REGISTER.
6986 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6987 CONVERT_REGISTER_P.
6988
4a1970e4
DJ
69892005-05-11 Daniel Jacobowitz <drow@mvista.com>
6990 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6991
6992 * Makefile.in: Update dependencies for valops.c.
6993 * valops.c: Include "gdb_assert.h".
6994 (typecmp): Skip THIS parameter to methods.
6995 (find_method_list): Remove static_memfuncp argument,
6996 update callers. Check for stub methods.
6997 (find_value_oload_method_list): Don't set *static_memfuncp.
6998 (find_overload_match): Don't check for stub methods. Assert
6999 that methods are not stubbed. Handle static methods.
7000 (value_find_oload_method_list): Remove static_memfuncp argument.
7001 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7002 to the argument list for static stub methods.
7003 * value.h (value_find_oload_method_list): Update prototype.
7004
b2e75d78
AC
70052002-05-11 Andrew Cagney <ac131313@redhat.com>
7006
7007 * arch-utils.h (generic_register_size): Declare.
7008 (generic_register_raw_size, generic_register_virtual_size): Delete
7009 declarations.
7010 * arch-utils.c (generic_register_raw_size): Delete.
7011 (generic_register_size): New function.
7012 (generic_register_virtual_size): Delete.
7013
7014 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7015 default generic_register_size.
7016 * gdbarch.h, gdbarch.c: Re-generate.
7017
7018 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7019 register_virtual_size.
7020 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7021 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7022
451fbdda
AC
70232002-05-11 Andrew Cagney <ac131313@redhat.com>
7024
7025 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7026 * gdbarch.h, gdbarch.c: Regenerate.
7027 * gnu-v3-abi.c: Update copyright.
7028 (vtable_address_point_offset): Update.
7029 (gnuv3_rtti_type): Update.
7030 (gnuv3_baseclass_offset): Update.
7031 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7032 (init_fetch_link_map_offsets): Update.
7033 * remote.c (get_remote_state): Update.
7034
6d2f5cea
DJ
70352002-05-11 Daniel Jacobowitz <drow@mvista.com>
7036
7037 * TODO: Remove value_headof/value_from_vtable_info comment.
7038 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7039 * values.c (value_headof, value_from_vtable_info): Delete.
7040 * value.h (value_from_vtable_info): Delete prototype.
7041
d2324da4
AC
70422002-05-11 Andrew Cagney <ac131313@redhat.com>
7043
7044 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7045 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7046 $(gdb_regex_h).
7047 (gdb_assert_h): Define.
7048 (gdb_wait_h): Define.
7049 (gdb_regex_h): Define.
7050
5c717440
DJ
70512002-05-11 Daniel Jacobowitz <drow@mvista.com>
7052
7053 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7054 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7055
6c7861b3
JT
70562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7057
7058 * nbsd-tdep.c: Fix comment.
7059
ea5bc2a6
JT
70602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7061
7062 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7063 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7064 (nbsd-tdep.o): New dependency list.
7065 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7066 nbsd-tdep.h.
7067 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7068 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7069 * nbsd-tdep.c: New file.
7070 * nbsd-tdep.h: New file.
7071 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7072 nbsd-tdep.h.
7073 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7074 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7075 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7076 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7077
b28da865
JT
70782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7079
7080 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7081 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7082 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7083 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7084 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7085 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7086
4b8ff1fa
JT
70872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7088
7089 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7090 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7091 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7092 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7093 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7094 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7095 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7096
dfe6eb1f
JT
70972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7100 fetch_elfcore_registers to...
7101 * i386nbsd-tdep.c: ...here.
7102 (i386nbsd_use_struct_convention): Rename to...
7103 (i386nbsd_aout_use_struct_convention): ...this.
7104 (i386nbsd_supply_reg): New function.
7105 (i386nbsd_fill_reg): New function.
7106 (fetch_core_registers): Use i386nbsd_supply_reg.
7107 (fetch_elfcore_registers): Likewise.
7108 (_initialize_i386nbsd_tdep): New function.
7109 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7110 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7111 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7112 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7113 (i386nbsd_aout_use_struct_convention): ...this.
7114
20cb8cda
JT
71152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7116
7117 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7118 (store_inferior_registers): Use shnbsd_fill_reg.
7119 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7120 sh_nbsd_supply_register): Collapse into...
7121 (shnbsd_supply_reg): ...this.
7122 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7123 (shnbsd_fill_reg): ...this.
7124 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7125 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7126 (fetch_core_registers): Use shnbsd_supply_reg.
7127 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7128 (sh_nbsd_core_fns): Rename to...
7129 (shnbsd_core_fns): ...this.
7130 (sh_nbsd_elfcore_fns): Rename to...
7131 (shnbsd_elfcore_fns): ...this.
7132 (sh_nbsd_init_abi): Rename to...
7133 (shnbsd_init_abi): ...this.
7134 (_initialize_sh_nbsd_tdep): Rename to...
7135 (_initialize_shnbsd_tdep): ...this.
7136 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7137 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7138 sh_nbsd_fill_register): Remove prototypes.
7139 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7140
e750d25e
JT
71412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7142
7143 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7144 (i387-nat.o): Delete dependency list.
7145 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7146 (x86-64-linux-nat.o): Likewise.
7147 * i387-nat.c: Delete file, moving contents to...
7148 * i387-tdep.c: ...here.
7149 * i387-nat.h: Rename...
7150 * i387-tdep.h: ...to this.
7151 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7152 * i386-linux-nat.c: Likewise.
7153 * i386bsd-nat.c: Likewise.
7154 * i386gnu-nat.c: Likewise.
7155 * i386nbsd-nat.c: Likewise.
7156 * i386v4-nat.c: Likewise.
7157 * x86-64-linux-nat.c: Likewise.
7158 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7159 * config/i386/go32.mh (NATDEPFILES): Likewise.
7160 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7161 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7162 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7163 * config/i386/linux.mh (NATDEPFILES): Likewise.
7164 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7165 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7166 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7167 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7168
1aee598a
JT
71692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7170
7171 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7172 (alphanbsd-nat.o): Remove dependency list.
7173 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7174 * alphanbsd-nat.c: Delete. Contents moved to...
7175 * alphanbsd-tdep.c: ...here.
7176 (_initialize_alphanbsd_tdep): Register core functions.
7177 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7178
12bcb0fe
JT
71792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7180
7181 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7182 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7183 (alphanbsd-nat.o): Likewise.
7184 (alphabsd-tdep.o): New dependency list.
7185 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7186 (fill_gregset): Use alphabsd_fill_reg.
7187 (supply_fpregset): Use alphabsd_supply_fpreg.
7188 (fill_fpregset): Use alphabsd_fill_fpreg.
7189 (fetch_inferior_registers): Use struct reg and struct fpreg
7190 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7191 and alphabsd_supply_fpreg.
7192 (store_inferior_registers): Use struct reg and struct fpreg
7193 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7194 and alphabsd_fill_fpreg.
7195 * alphabsd-tdep.c: New file.
7196 * alphabsd-tdep.h: New file.
7197 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7198 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7199 alphabsd_supply_fpreg.
7200 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7201 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7202
361d1df0
EC
72032002-05-11 Eric Christopher <echristo@redhat.com>
7204
7205 * mips-tdep.c (mips_double_register_type): Fix thinko.
7206 (mips_single_register_type): Ditto.
7207 * MAINTAINERS: Add self.
7208
92dd7cee
MK
72092002-05-11 Mark Kettenis <kettenis@gnu.org>
7210
7211 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7212 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7213 right thing on architectures with different endianness and/or
7214 integer sizes.
7215
e27da16d
JT
72162002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7217
7218 From Christian Limpach <chris@Pin.LU>
7219 * configure.in: Change sed expression which comments out
7220 NATDEPFILES to also comment out continuation lines.
7221 * configure: Regenerate.
7222
ddde02bd
EZ
72232002-05-10 Elena Zannoni <ezannoni@redhat.com>
7224
7225 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7226 big patch.
7227
1c922164
EZ
72282002-05-10 Elena Zannoni <ezannoni@redhat.com>
7229
7230 * sh-tdep.c: Include correct file.
7231
283150cd
EZ
72322002-05-10 Elena Zannoni <ezannoni@redhat.com>
7233
7234 New support for sh64-elf (sh5) target.
7235
7236 * configure.tgt: For sh64-elf target, default to sh-elf.
7237
7238 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7239 (struct gdbarch_tdep): Add new fields for new registers and ABI
7240 info.
361d1df0 7241
283150cd
EZ
7242 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7243 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7244 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7245 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7246 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7247 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7248 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7249 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7250 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7251 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7252 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7253 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7254 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7255 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7256 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7257 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7258 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7259 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7260 sign_extend, sh64_nofp_frame_init_saved_regs,
7261 sh64_init_extra_frame_info, sh64_get_saved_register,
7262 sh64_extract_struct_value_address, sh64_pop_frame,
7263 sh64_push_arguments, sh64_extract_return_value,
7264 sh64_store_return_value, sh64_show_media_regs,
7265 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7266 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7267 sh_sh64_register_virtual_type,
7268 sh_sh64_register_convert_to_virtual,
7269 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7270 sh64_register_read, sh64_pseudo_register_write,
7271 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7272 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7273 sh64_do_pseudo_register, sh_compact_do_registers_info,
7274 sh64_do_registers_info, sh_gdbarch_init): New functions.
7275
3117ed25
EZ
72762002-05-10 Elena Zannoni <ezannoni@redhat.com>
7277
7278 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7279
2654e6d4
DJ
72802002-05-10 Daniel Jacobowitz <drow@mvista.com>
7281
7282 * linespec.c (decode_line_1): Check for a double quote after
7283 a filename correctly.
7284
9ab3e532
JB
72852002-05-10 Jim Blandy <jimb@redhat.com>
7286
7287 Properly track the size of the current objfile's .debug_line section.
7288 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7289 (DWARF_LINE_SIZE): New macro.
7290 (dwarf2_build_psymtabs_hard): Record the line section's size in
7291 the partial symbol table.
7292 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7293 symbol table.
7294
126fa72d
PS
72952002-05-10 Petr Sorfa <petrs@caldera.com>
7296
7297 * ia64-tdep.c: Handle breakpoints on L instruction type
7298 in MLX instruction bundle by moving the breakpoint to
7299 the third slot (X instruction type) as L holds only data.
7300
1f077a3e
KB
73012002-05-10 Kevin Buettner <kevinb@redhat.com>
7302
7303 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7304 (process_one_symbol): Complain about discarding local symbols
7305 due to a misplaced N_LBRAC entry.
7306
8120c9d5 73072002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7308
7309 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7310 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7311 decrease the depth we are at, in the case of templates.
361d1df0 7312
67b2c998
DJ
73132002-05-09 Daniel Jacobowitz <drow@mvista.com>
7314
7315 * mips-tdep.c (mips_float_register_type): New function.
7316 (mips_double_register_type): New function.
7317 (mips_print_register): Use them.
7318 (do_fp_register_row): Likewise.
7319
fd326606
DJ
73202002-05-09 Daniel Jacobowitz <drow@mvista.com>
7321
6609d9af 7322 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7323 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7324 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7325
bef35864
MS
73262002-05-09 Michael Snyder <msnyder@redhat.com>
7327
7328 * remote-rdp.c (remote_rdp_can_run): Remove.
7329
c55a3f73
TT
73302002-05-09 Tom Tromey <tromey@redhat.com>
7331
7332 * jv-valprint.c (java_val_print): Handle `char' as a special case
7333 of TYPE_CODE_INT.
7334
b8d5e71d
MS
73352002-05-09 Michael Snyder <msnyder@redhat.com>
7336
7337 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7338 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7339 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7340 str r(0123),[sp,#nn].
361d1df0 7341 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7342 order-independent by placing it in a loop.
7343
e2cd42dd
MS
73442002-05-06 Michael Snyder <msnyder@redhat.com>
7345
7346 * stabsread.c (read_type): Add recognition for new attribute:
7347 "@V;" means that an array type is actually a vector.
7348 This is analogous to the vector flag that's been added to dwarf2.
7349
3ce1502b
MK
73502002-05-09 Mark Kettenis <kettenis@gnu.org>
7351
7352 * i386-tdep.h (i386_abi): New enum.
7353 (struct gdbarch_tdep): Replace os_ident member with abi.
7354 (i386_gdbarch_register_os_abi): New prototype.
7355 * i386-tdep.c (i386_abi_names): New array.
7356 (process_note_abi_tag_sections): Removed.
7357 (process_note_sections): New function.
7358 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7359 (struct i386_abi_handler): New struct.
7360 (i386_abi_handler_list): New variable.
7361 (i386_gdbarch_register_os_abi): New function.
7362 (i386_gdbarch_init): Adapt for the changes given above.
7363
084c156a
DJ
73642002-05-08 Daniel Jacobowitz <drow@mvista.com>
7365
7366 * gregset.h: Say "GNU/Linux".
7367
6599f021
EZ
73682002-05-08 Elena Zannoni <ezannoni@redhat.com>
7369
7370 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7371 (build_gdbtypes): Build builtin_type_v2_float.
7372 (_initialize_gdbtypes): Register new builtin type.
7373
40af4b0c
AC
73742002-05-08 Andrew Cagney <ac131313@redhat.com>
7375
7376 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7377 (clear_gdbarch_swap): New function.
7378 (initialize_non_multiarch): Call.
7379 (gdbarch_update_p): Before calling init(), swap out and clear the
7380 existing architecture.
7381 * gdbarch.c: Regenerate.
7382
4fe84f46
JT
73832002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7386 alphanbsd-tdep.c.
7387
4015edd1
JT
73882002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7389
7390 * sh-nbsd-nat.c: Rename to...
7391 * shnbsd-nat.c: ...this.
7392 * sh-nbsd-tdep.c: Rename to...
7393 * shnbsd-tdep.c: ...this.
7394 * sh-nbsd-tdep.h: Rename to...
7395 * shnbsd-tdep.h: ...this.
7396 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7397 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7398
0e2bd219
RE
73992002-05-08 Richard Earnshaw <rearnsha@arm.com>
7400
7401 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7402 concatenation for command help messages.
7403
13a38d45
JT
74042002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7405
7406 * NEWS: Note new sh*-*-netbsdelf* configuration.
7407 * configure.host: Set gdb_host_cpu to sh for all sh*.
7408 (sh*-*-netbsdelf*): New host.
7409 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7410 (sh*-*-netbsdelf*): New target.
7411 * sh-nbsd-nat.c: New file.
7412 * sh-nbsd-tdep.c: New file.
7413 * sh-nbsd-tdep.h: New file.
7414 * config/sh/nbsd.mh: New file.
7415 * config/sh/nbsd.mt: New file.
7416 * config/sh/nm-nbsd.h: New file.
7417 * config/sh/tm-nbsd.h: New file.
7418
d658f924
JT
74192002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7420
7421 * sh-tdep.c (sh_osabi_names): Declare.
7422 (process_note_abi_tag_sections): New function.
7423 (get_elfosabi): Ditto.
7424 (sh_gdbarch_register_os_abi): Ditto.
7425 (sh_dump_tdep): Ditto.
7426 _initialize_sh_tdep): Use gdbarch_register to register
7427 sh_gdbarch_init and sh_dump_tdep.
7428 * config/sh/tm-sh.h (sh_osabi): Declare.
7429 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7430
848cfffb
AC
74312002-05-07 Andrew Cagney <ac131313@redhat.com>
7432
7433 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7434 (thumb_scan_prologue): Ditto.
7435 (arm_find_callers_reg): Ditto.
7436 (arm_frame_chain): Ditto.
7437 (arm_init_extra_frame_info): Ditto.
7438 (arm_frame_saved_pc): Ditto.
7439 (arm_pop_frame): Ditto.
7440 (arm_push_return_address): New function.
7441 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7442 call_dummy_location, call_dummy_breakpoint_offset_p,
7443 call_dummy_breakpoint_offset, call_dummy_p,
7444 call_dummy_stack_adjust_p, call_dummy_words,
7445 sizeof_call_dummy_words, call_dummy_start_offset,
7446 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7447 call_dummy_address, push_return_address and push_dummy_frame for
7448 generic dummy frames.
7449
e7d717c0
JT
74502002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7451
7452 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7453 size computation for alloca.
7454 (sh_fp_frame_init_saved_regs): Likewise.
7455
7bbcf283
RE
74562002-05-07 Richard Earnshaw <rearnsha@arm.com>
7457
7458 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7459 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7460 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7461 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7462 * remote-rdp.c (remote_rdp_fetch_register): Use
7463 ARM_MAX_REGISTER_RAW_SIZE.
7464 (remote_rdp_store_register): Likewise.
7465
4657573b
ML
74662002-05-07 Michal Ludvig <mludvig@suse.cz>
7467
361d1df0 7468 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7469 added default labels to switch {} statements.
7470 * x86-64-tdep.c: Ditto.
7471 * x86-64-linux-nat.c: Ditto.
7472
010f3b2f
JT
74732002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7474
7475 * solib.h: Protect against multiple inclusion.
7476
debd256d
JB
74772002-05-06 Jim Blandy <jimb@redhat.com>
7478
9ab3e532
JB
7479 Add first preprocessor macro-expansion files.
7480 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7481 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7482 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7483 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7484 (COMMON_OBS): Add macrotab.o, macroexp.o.
7485 (macroexp.o, macrotab.o): New rules.
7486
debd256d
JB
7487 Separate the job of reading the line number info statement program
7488 header (...expialidocious) out into its own function.
7489 * dwarf2read.c (struct line_head, struct filenames, struct
7490 directories): Replace with...
7491 (struct line_header): New structure, containing the full
7492 contents of the statement program header, including the
7493 include directory and file name tables.
7494 (read_file_scope): If we have line number info, instead of just
7495 calling dwarf_decode_lines to do all the work, call
7496 dwarf_decode_line_header first to get a `struct line_header'
7497 containing the data in the statement program header, and then
7498 pass that to dwarf_decode_lines, which will pick up where that
7499 left off. Be sure to clean up the `struct line_header' object.
7500 (dwarf_decode_line_header, free_line_header, add_include_dir,
7501 add_file_name): New functions.
7502 (dwarf_decode_lines): Move all the code to read the statement
7503 program header into dwarf_decode_line_header. Take the line
7504 header it built as the first argument, instead of the offset to
7505 the compilation unit's line number info. Use the new `struct
7506 line_header' type instead of the old structures. No need to do
7507 cleanups here now, since we don't allocate anything.
7508 (dwarf2_statement_list_fits_in_line_number_section,
7509 dwarf2_line_header_too_long): New complaints.
7510
ac3aafc7
EZ
75112002-05-06 Elena Zannoni <ezannoni@redhat.com>
7512
7513 * gdbtypes.c (init_vector_type): New function.
7514 (build_builtin_type_vec128): Simplify the representation of SIMD
7515 registers.
7516 (build_gdbtypes): Initialize new builtin vector types.
7517 (_initialize_gdbtypes): Register new vector types with gdbarch.
7518 (builtin_type_v4_float, builtin_type_v4_int32,
7519 builtin_type_v8_int16, builtin_type_v16_int8,
7520 builtin_type_v2_int32, builtin_type_v4_int16,
7521 builtin_type_v8_int8): New (renamed) SIMD types.
7522
13e49980
MK
75232002-05-06 Mark Kettenis <kettenis@gnu.org>
7524
7525 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7526 (i387_fill_fxsave): Likewise.
7527
997b20b8
AO
75282002-05-05 Alexandre Oliva <aoliva@redhat.com>
7529
7530 * alpha-tdep.c (alpha_extract_return_value): Don't use
7531 non-constant array size in prototype.
7532
535c96ce
AC
75332002-05-04 Andrew Cagney <ac131313@redhat.com>
7534
7535 From Brian Taylor <briant at model dot com>:
7536 * ui-out.c (ui_out_field_core_addr): Use the function
7537 longest_local_hex_string_custom'to format addresses > 32 bits
7538 wide.
7539
7540 * ui-out.c (ui_out_field_core_addr): Update comment.
7541
bedfa57b
AC
75422002-05-04 Andrew Cagney <ac131313@redhat.com>
7543
7544 * stack.c (select_and_print_frame): Make static. Delete the
7545 parameter `level'.
7546 (func_command): Update call.
7547 (select_frame_command): Delete code computing the frame level.
7548 * frame.h (select_and_print_frame): Delete declaration.
7549
f621c63e
AC
75502002-05-04 Andrew Cagney <ac131313@redhat.com>
7551
7552 * sparc-tdep.c (sparc_get_saved_register): Comment why
7553 get_prev_frame call is safe.
7554
0f7d239c
AC
75552002-05-04 Andrew Cagney <ac131313@redhat.com>
7556
7557 * frame.h (select_frame): Delete level parameter.
7558 * stack.c (select_frame): Update. Use frame_relative_level to
7559 obtain the frame's level.
7560 (select_and_print_frame): Update call.
7561 (select_frame_command): Ditto.
7562 (up_silently_base): Ditto.
7563 (down_silently_base): Ditto.
7564 * ocd.c (ocd_start_remote): Ditto.
7565 * remote-rdp.c (remote_rdp_open): Ditto.
7566 * remote-mips.c (mips_initialize): Ditto.
7567 (common_open): Ditto.
7568 * remote-e7000.c (e7000_start_remote): Ditto.
7569 * m3-nat.c (select_thread): Ditto.
7570 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7571 (child_get_current_exception_event): Ditto.
7572 * varobj.c (varobj_create): Ditto.
7573 (varobj_update): Ditto.
7574 (c_value_of_root): Ditto.
7575 * tracepoint.c (finish_tfind_command): Ditto.
7576 * corelow.c (core_open): Ditto.
7577 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7578 * thread.c (info_threads_command): Ditto.
7579 (switch_to_thread): Ditto.
7580 * infrun.c (normal_stop): Ditto.
7581 (restore_selected_frame): Ditto.
7582 (restore_inferior_status): Ditto.
7583 * breakpoint.c (insert_breakpoints): Ditto.
7584 (watchpoint_check): Ditto.
7585 (bpstat_stop_status): Ditto.
7586 (do_enable_breakpoint): Ditto.
7587 * blockframe.c (flush_cached_frames): Ditto.
7588 (reinit_frame_cache): Ditto.
7589
71d6c7b1
AC
75902002-05-04 Andrew Cagney <ac131313@redhat.com>
7591
7592 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7593 maintainer.
7594
cda6c68a
JB
75952002-05-04 Jim Blandy <jimb@redhat.com>
7596
7597 * gdbtypes.c (replace_type): Doc fix.
7598
5c1c87f0
AC
75992002-05-04 Andrew Cagney <ac131313@redhat.com>
7600
7601 * valprint.c (strcat_longest): Delete commented out function.
7602 Update copyright.
7603
cd9bfe15
AC
76042002-05-04 Andrew Cagney <ac131313@redhat.com>
7605
7606 * MAINTAINERS: Mark a29k as deleted.
7607 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7608 Move new configurations to the top.
7609 * configure.tgt: Remove a29k.
7610 * config/a29k/tm-vx29k.h: Delete.
7611 * config/a29k/vx29k.mt: Delete.
7612 * config/a29k/tm-a29k.h: Delete.
7613 * config/a29k/a29k-udi.mt: Delete.
7614 * config/a29k/a29k.mt: Delete.
7615 * a29k-tdep.c: Delete.
7616 * remote-udi.c: Delete.
7617 * remote-mm.c: Delete.
7618 * remote-eb.c: Delete.
7619 * remote-adapt.c: Delete.
7620 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7621 * config/s390/s390x.mt: Ditto.
7622 * config/s390/s390.mt: Ditto.
7623 * config/sparc/sparclynx.mh: Ditto.
7624 * config/sparc/linux.mh: Ditto.
7625 * config/pa/hppaosf.mh: Ditto.
7626 * config/pa/hppabsd.mh: Ditto.
7627 * config/ns32k/nbsd.mt: Ditto.
7628 * config/mips/vr5000.mt: Ditto.
7629 * config/m68k/sun3os4.mh: Ditto.
7630 * config/m68k/nbsd.mt: Ditto.
7631 * config/m68k/m68klynx.mh: Ditto.
7632 * config/m32r/m32r.mt: Ditto.
7633 * config/i386/x86-64linux.mt: Ditto.
7634 * config/i386/nbsdelf.mt: Ditto.
7635 * config/i386/nbsd.mt: Ditto.
7636 * config/i386/i386lynx.mh: Ditto.
7637
bf0c5130
AC
76382002-05-04 Andrew Cagney <ac131313@redhat.com>
7639
7640 * target.c (debug_print_register): New function. Handle oversize
7641 registers.
7642 (debug_to_fetch_registers): Call.
7643 (debug_to_store_registers): Call.
7644
2ae1c2d2
JB
76452002-05-03 Jim Blandy <jimb@redhat.com>
7646
13a393b0
JB
7647 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7648 (read_type): Doc fix.
7649 * gdbtypes.c (replace_type): Doc fix.
7650
2ae1c2d2
JB
7651 * stabsread.c (multiply_defined_struct): New complaint.
7652 (read_struct_type): If the type we were passed isn't empty, or
7653 incomplete, don't read the new struct type into it; complain,
7654 and return the original type unchanged. Take a new `type_code'
7655 argument, which is the type code for the new type.
7656 (read_type): Rather than storing the type's type code here, pass
7657 it as an argument to read_struct_type, and let that take care of
7658 storing it. That way, we don't overwrite the original type code,
7659 so read_struct_type can use it to decide whether we're overwriting
7660 something we shouldn't.
7661 (complain_about_struct_wipeout): New function.
7662
8de9bdc4
AC
76632002-05-03 Andrew Cagney <ac131313@redhat.com>
7664
7665 * gdbarch.sh: Assert that gdbarch is non-NULL.
7666 * gdbarch.c: Regenerate.
7667
f773fdbb
JM
76682002-05-03 Jason Merrill <jason@redhat.com>
7669
7670 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7671 and return NULL.
7672
0e04a514
ML
76732002-05-03 Michal Ludvig <mludvig@suse.cz>
7674
7675 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7676 (x86_64_dwarf2gdb_regno_map_length),
7677 (x86_64_dwarf2_reg_to_regnum): Added.
7678 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7679 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7680 (_initialize_x86_64_tdep): Synced with the change above.
7681 (x86_64_skip_prologue): Reformulated message.
7682
065432a8
PM
76832002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7684
7685 * f-exp.y: Also use new prev_lexptr variable
7686 to improve error reporting. Based on Michael Snyder
7687 2002-04-24 dated patch to c-exp.y.
7688 * jv-exp.y: Likewise.
7689 * m2-exp.y: Likewise.
7690
a3162708
EZ
76912002-05-02 Elena Zannoni <ezannoni@redhat.com>
7692
7693 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7694 we are dealing with vectors.
7695
03620c38
PM
76962002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7697
7698 * config/m68k/tm-nbsd.h: Obvious fix,
7699 correct machine name.
7700
6604db2e
PM
77012002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7702
7703 * p-typeprint.c (pascal_type_print_base): Add support
7704 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7705
0906b739
PM
77062002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7707
7708 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7709 for fondamental pascal 'char' type.
7710
e2625b33
PM
77112002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7712
7713 * p-lang.h (is_pascal_string_type): Declaration changed,
7714 new sixth argument of type char ** added.
361d1df0 7715 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7716 changed. Args length_pos, length_size, string_pos, char_size
7717 can now be NULL. New argument arrayname set to the field
7718 name of the char array. Return value set to char array
7719 field index plus one.
361d1df0 7720 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7721 is_pascal_string_type function.
7722
cf17c188
AC
77232002-05-02 Andrew Cagney <cagney@redhat.com>
7724
7725 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7726 <cagney@redhat.com> change.
7727 * gdbarch.c: Regenerate.
7728
52bca491
AC
77292002-05-02 Andrew Cagney <cagney@redhat.com>
7730
7731 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7732 before probing for a new one. Detect errorenous gdbarch_init
7733 functions.
7734 * gdbarch.c: Regenerate.
7735
d5e72505
AC
77362002-05-01 Andrew Cagney <cagney@redhat.com>
7737
7738 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7739 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7740 * config/v850/tm-v850.h: Ditto. Update copyright.
7741
af566d9f
AC
77422002-04-30 Andrew Cagney <ac131313@redhat.com>
7743
7744 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7745 current_gdbarch.
7746
880d85fa
MS
77472002-04-30 Michael Snyder <msnyder@redhat.com>
7748
94c30b78
MS
7749 * arm-tdep.c: Whitespace clean-ups.
7750 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7751 should have been removed as part of 4/24 change.
7752
6f5987a6
KB
77532002-04-30 Kevin Buettner <kevinb@redhat.com>
7754
7755 * rs6000-tdep.c: Added comment describing how fpscr register
7756 numbers were chosen.
7757
1a113c93
MS
77582002-04-30 Michael Snyder <msnyder@redhat.com>
7759
7760 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7761
9a6f53fe
EZ
77622002-04-29 Elena Zannoni <ezannoni@redhat.com>
7763
7764 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7765 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7766 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7767
11ed25ac
KB
77682002-04-29 Kevin Buettner <kevinb@redhat.com>
7769
7770 From Louis Hamilton <hamilton@redhat.com>:
7771 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7772 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7773 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7774 not bfd-private xcoff data, to determine wordsize.
7775 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7776
ae232405
AC
77772002-04-29 Andrew Cagney <ac131313@redhat.com>
7778
7779 GDB 5.2 released from 5.2 branch.
7780
91fd20f7
ML
77812002-04-29 Michal Ludvig <mludvig@suse.cz>
7782
7783 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7784 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7785 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7786
2dc5091b
EZ
77872002-04-29 Elena Zannoni <ezannoni@redhat.com>
7788
7789 * rs6000-tdep.c (rs6000_extract_return_value,
7790 rs6000_store_return_value): Handle returning vectors.
7791 (rs6000_gdbarch_init): Use
7792 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7793 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7794 New function.
7795 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7796 vectors.
7797 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7798 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7799
2b9848d8
PM
78002002-04-24 Pierre Muller <ics.u-strasbg.fr>
7801
7802 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7803 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7804 with fprintf_unfiltered (gdb_stderr,...).
7805
f8d17dc5
PM
78062002-04-24 Pierre Muller <ics.u-strasbg.fr>
7807
7808 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7809 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7810 Replace fprintf (stderr,...
7811 with fprintf_unfiltered (gdb_stderr,....
7812 * remote-es.c: Likewise.
7813 * remote-os9k.c: Likewise.
7814 * remote-st.c: Likewise.
7815
2f2f1ad1
AS
78162002-04-28 Andreas Schwab <schwab@suse.de>
7817
7818 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7819 linux-proc.o and gcore.o.
7820
b6779aa2
AC
78212002-04-26 Michal Ludvig <mludvig@suse.cz>
7822
7823 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7824 code without frame pointers.
7825
7e57f5f4
AC
78262002-04-26 Andrew Cagney <ac131313@redhat.com>
7827
7828 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7829 ON_STACK is needed.
7830
2ceb85d0
BE
78312002-04-26 Ben Elliston <bje@redhat.com>
7832
7833 * target.c (do_xfer_memory): Correct reference to the new option
7834 "trust-readonly-sections".
7835
f5f8a009
EZ
78362002-04-26 Elena Zannoni <ezannoni@redhat.com>
7837
7838 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7839 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7840 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7841 vectors.
7842 (read_array_type): Record the fact that this array type is really a
7843 vector (i.e. are passed in by value).
7844
5868c862
JT
78452002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7846
7847 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7848 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7849 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7850 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7851 * alpha-linux-tdep.c: Include frame.h.
7852 (alpha_linux_sigcontext_addr): New function.
7853 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7854 alpha_linux_sigcontext_addr.
7855 * alpha-osf1-tdep.c: Include gdbcore.h.
7856 (alpha_osf1_sigcontext_addr): New function.
7857 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7858 alpha_osf1_sigcontext_addr.
7859 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7860 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7861
bfb01f37
AC
78622002-04-26 Andrew Cagney <ac131313@redhat.com>
7863
361d1df0 7864 * stack.c (selected_frame_level):
bfb01f37
AC
7865 (select_frame): Do not set selected_frame_level.
7866 * frame.h (selected_frame_level): Delete declaration.
7867
15813d3f
AC
78682002-04-26 Andrew Cagney <ac131313@redhat.com>
7869
7870 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7871 convert_from_func_ptr-addr when AIX / PowerOpen.
7872
6096c27a
AC
78732002-04-25 Andrew Cagney <ac131313@redhat.com>
7874
7875 * valops.c (hand_function_call): Call
7876 generic_save_call_dummy_addr.
7877 * frame.h (generic_save_call_dummy_addr): Declare.
7878 * blockframe.c (struct dummy_frame): Add fields call_lo and
7879 call_hi.
7880 (generic_find_dummy_frame): Check for PC in range call_lo to
7881 call_hi instead of entry_point_address.
7882 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7883 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7884 (generic_save_call_dummy_addr): New function.
7885
f510d44e
DM
78862002-04-24 David S. Miller <davem@redhat.com>
7887
7888 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7889 sparc_skip_prologue.
7890 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7891 information to find prologue when possible.
7892 (sparc_prologue_frameless_p): Call examine_prologue directly.
7893 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7894 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7895 second argument.
7896 (SKIP_PROLOGUE): Likewise.
7897
15d72a92
JT
78982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7899
7900 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7901 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7902 indicate that the condition it was testing is always true.
7903 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7904 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7905 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7906
accc6d1f
JT
79072002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7908
7909 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7910 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7911 tdep->jb_pc and tdep->jb_elt_size.
7912 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7913 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7914 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7915 * alpha-nat.c (get_longjmp_target): Remove.
7916 (JB_ELEMENT_SIZE): Ditto.
7917 (JB_PC): Ditto.
7918 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7919 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7920 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7921 to alpha_get_longjmp_target.
7922 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7923 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7924 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7925
1bfdc549
AC
79262002-04-25 Andrew Cagney <ac131313@redhat.com>
7927
7928 * README: Update to GDB 5.2.
7929
1bd316f0
AC
79302002-04-25 Andrew Cagney <ac131313@redhat.com>
7931
7932 * gdbarch.sh (LC_ALL): Set to `c'.
7933
2e5ff58c
TR
79342002-04-25 Theodore A. Roth <troth@verinet.com>
7935
7936 * avr-tdep.c: Ran through gdb_indent.sh.
7937
e33ce519
TR
79382002-04-25 Theodore A. Roth <troth@verinet.com>
7939
7940 * MAINTAINERS: Add myself as AVR maintainer.
7941 * NEWS: Note new target avr.
7942
8818c391
TR
79432002-04-25 Theodore A. Roth <troth@verinet.com>
7944
7945 * Makefile.in: Add support for AVR target.
7946 * configure.tgt: Add support for AVR target.
7947 * avr-tdep.c: New file
7948 * config/avr/avr.mt: New file.
7949
79509c2d
TR
79502002-04-25 Theodore A. Roth <troth@verinet.com>
7951
7952 * MAINTAINERS: Add myself to write-after-approval.
7953
dac8068e
PM
79542002-04-24 Pierre Muller <ics.u-strasbg.fr>
7955
7956 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7957 with fprintf_unfiltered (gdb_stderr,....
7958
25bf3106
PM
79592002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7960
7961 Fix PR gdb/508.
7962 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7963
24467a86
PM
79642002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7965
7966 * p-exp.y: Also use new prev_lexptr variable
7967 to improve error reporting. Based on Michael Snyder
7968 2002-04-24 dated patch to c-exp.y.
7969
95b80706
JT
79702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7971
7972 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7973 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7974 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7975 to 0.
7976 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7977 and struct value.
7978 (FUNCTION_START_OFFSET): Remove.
7979 (BREAKPOINT): Ditto.
7980
e90cc612
JT
79812002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7982
7983 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7984 * NEWS: Ditto.
7985
6c72f9f9
JT
79862002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7987
7988 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7989 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7990 alpha_linux_pc_in_sigtramp.
7991 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7992 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7993 alpha_osf1_pc_in_sigtramp.
7994 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7995 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7996 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7997 alphafbsd_pc_in_sigtramp.
7998 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7999 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8000 alphanbsd_pc_in_sigtramp.
8001 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8002 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8003
5e4f3379
JT
80042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8007
da8ca43d
JT
80082002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8009
8010 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8011 alphanbsd-tdep.c.
8012 (alphanbsd-nat.o): New dependency list.
8013 (alphanbsd-tdep.o): Ditto.
8014 * NEWS: Note new native NetBSD/alpha configuration.
8015 * alphanbsd-nat.c: New file.
8016 * alphanbsd-tdep.c: Ditto.
8017 * configure.host (alpha*-*-netbsd*): New host.
8018 * configure.tgt (alpha*-*-netbsd*): New target.
8019 * config/alpha/nbsd.mh: New file.
8020 * config/alpha/nbsd.mt: Ditto.
8021 * config/alpha/nm-nbsd.h: Ditto.
8022 * config/alpha/tm-nbsd.h: Ditto.
8023
36a6271d
JT
80242002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8027 (alpha-osf1-tdep.o): New dependency list.
8028 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8029 and skip_sigtramp_frame members.
8030 * alpha-linux-tdep.c: Include gdbcore.h.
8031 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8032 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8033 * alpha-osf1-tdep.c: New file.
8034 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8035 alpha-osf1-dep.c.
8036 (alpha_frame_past_sigtramp_frame): New function.
8037 (alpha_dynamic_sigtramp_offset): Ditto.
8038 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8039 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8040 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8041 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8042 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8043 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8044 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8045 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8046 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8047 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8048 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8049 to find_solib_trampoline_target.
8050 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8051 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8052 (SKIP_TRAMPOLINE_CODE): Remove.
8053 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8054 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8055 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8056 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8057 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8058 (PROC_SIGTRAMP_MAGIC): Ditto.
8059 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8060 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8061 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8062 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8063 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8064
2f4bc57b
JT
80652002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8066
8067 * NEWS: Note that Alpha targets are now multi-arch.
8068
665132f9
MS
80692002-04-24 Michael Snyder <msnyder@redhat.com>
8070
8071 * parser-defs.h (prev_lexptr): New external variable.
8072 * parse.c (parse_exp_1): Set prev_lexptr to null before
8073 calling the language-specific parser.
8074 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8075 (yyerror): Use prev_lexptr in error reporting.
8076
32872fa7
DJ
80772002-04-24 Daniel Jacobowitz <drow@mvista.com>
8078
8079 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8080 * gregset.h: If FILL_FPXREGSET is defined, provide
8081 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8082 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8083 is defined, call fill_fpxregset.
8084
57e76fac
MS
80852002-04-24 Roland McGrath <roland@frob.com>
8086
8087 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8088 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8089 (supply_gregset, supply_fpregset): New functions.
8090
8091 * gnu-nat.c (gnu_find_memory_regions): New function.
8092 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8093 (gnu_xfer_memory): Add a cast.
8094
f43845b3
MS
80952002-04-24 Michael Snyder <msnyder@redhat.com>
8096
361d1df0 8097 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
8098 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8099 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 8100 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
8101 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8102 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8103
a0abec03
AC
8104Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8105
8106 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8107 NUM_PSEUDO_REGS can be used.
8108
d7bd68ca
AC
81092002-04-24 Andrew Cagney <ac131313@redhat.com>
8110
8111 * arch-utils.h: Update copyright.
8112
8113 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8114 * gdbarch.h, gdbarch.c: Re-generate.
8115
8116 * inferior.h (IN_SIGTRAMP): Delete definition.
8117 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8118 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8119
8120 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8121 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8122 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8123 (find_proc_framesize): Ditto.
8124 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8125 (alpha_init_extra_frame_info): Ditto.
8126 * infrun.c (handle_inferior_event): Ditto.
8127 (handle_inferior_event): Ditto.
8128 (check_sigtramp2): Ditto.
8129 * blockframe.c (create_new_frame): Ditto.
8130 (get_prev_frame): Ditto.
8131 * ppc-linux-tdep.c: Update comments.
8132 * i386-linux-tdep.c: Update comments.
8133 * breakpoint.c (bpstat_what): Update comment.
8134
4867e41e
DM
81352002-04-24 David S. Miller <davem@redhat.com>
8136
21d83aa5
DM
8137 * i960-tdep.c (register_in_window_p): New function.
8138 (i960_find_saved_register): Use it instead of
8139 REGISTER_IN_WINDOW_P.
8140 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8141
4867e41e
DM
8142 * symtab.h (find_stab_function_addr): Kill extern.
8143 * minsyms.c (find_stab_function_addr): Remove from here...
8144 * dbxread.c: ... to here, and mark it static.
8145
69cdf6a2
DM
81462002-04-20 David S. Miller <davem@redhat.com>
8147
8148 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8149 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8150
5a595886
DM
81512002-04-21 David S. Miller <davem@redhat.com>
8152
8153 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8154 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8155 (vx_write_register): Likewise.
8156
1da1a192
JB
81572002-04-23 J. Brobecker <brobecker@gnat.com>
8158
8159 * source.c (is_regular_file): New function.
8160 (openp): Check wether file to open is a regular file
8161 to avoid opening directories.
8162
baa6f10b
JT
81632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8164
8165 * findvar.c (extract_signed_integer): Cast printf argument
8166 to suppress format warning.
8167 (extract_unsigned_integer): Likewise.
8168 * infcmd.c (registers_info): Likewise.
8169 * top.c (get_prompt_1): Likewise.
8170 * valops.c (value_assign): Likewise.
8171 * valprint.c (print_decimal): Likewise.
8172
b2c4da81
L
81732002-04-22 H.J. Lu (hjl@gnu.org)
8174
8175 * c-exp.y (typebase): Support
361d1df0 8176
b2c4da81
L
8177 [long|long long|short] [signed|unsigned] [int|]
8178
8179 and
8180
8181 signed [long|long long|short] int
8182
f267bd6a
JT
81832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8184
8185 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8186 and vax-tdep.h.
8187 * vax-tdep.h: New file.
8188 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8189 Make several routines static.
8190 (vax_get_saved_register): New function.
8191 (vax_gdbarch_init): New function.
8192 (_initialize_vax_tdep): Register vax_gdbarch_init.
8193 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8194 Remove macros now under the control of gdbarch.
8195
da3c6d4a
MS
81962002-04-22 Michael Snyder <msnyder@redhat.com>
8197
11d3b27d
MS
8198 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8199 Some whitespace and coding standards tweaks.
da3c6d4a 8200
a33f7558
JT
82012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8202
8203 * vax-tdep.c: Include regcache.h.
8204 (vax_call_dummy_words): New.
8205 (sizeof_vax_call_dummy_words): New.
8206 (vax_fix_call_dummy): New function.
8207 (vax_saved_pc_after_call): Ditto.
8208 * config/vax/tm-vax.h: Don't include regcache.h.
8209 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8210 (CALL_DUMMY): Remove.
8211 (CALL_DUMMY_WORDS): Define.
8212 (SIZEOF_CALL_DUMMY_WORDS): Define.
8213 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8214
47a73475
MS
82152002-04-18 Michael Snyder <msnyder@redhat.com>
8216
8217 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8218
52efde73
JT
82192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8220
8221 * vax-tdep.c (vax_frame_chain): New function.
8222 (vax_push_dummy_frame): Ditto.
8223 (vax_pop_frame): Ditto.
8224 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8225 (FRAMELESS_FUNCTION_INVOCATION): Use
8226 generic_frameless_function_invocation_not.
8227 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8228 (POP_FRAME): Use vax_pop_frame.
8229
ea74468c
JT
82302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8231
8232 * vax-tdep.c (vax_store_struct_return): New function.
8233 (vax_extract_return_value): Ditto.
8234 (vax_store_return_value): Ditto.
8235 (vax_extract_struct_value_address): Ditto.
8236 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8237 vax_store_struct_return.
8238 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8239 (STORE_RETURN_VALUE): Use vax_store_return_value.
8240 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8241
5516aa92
JT
82422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8243
8244 * vax-tdep.c (vax_frame_saved_pc): New function.
8245 (vax_frame_args_address_correct): Ditto.
8246 (vax_frame_args_address): Ditto.
8247 (vax_frame_locals_address): Ditto.
8248 (vax_frame_num_args): Move code to be in proximity to
8249 other frame-related functions.
8250 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8251 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8252 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8253 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8254 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8255
36af0b35
L
82562002-04-22 H.J. Lu (hjl@gnu.org)
8257
8258 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8259 includedir.
8260
ab62c900
JT
82612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8262
8263 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8264 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8265 (FRAME_INIT_SAVED_REGS): New macro.
8266
7232b100
JT
82672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8268
8269 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8270
b70d2aee
JT
82712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8272
8273 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8274 where needed.
8275 (fetch_osf_core_registers): Likewise.
8276 (supply_gregset): Likewise.
8277
a0e8a2d1 82782002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8279
a0e8a2d1
JB
8280 * symfile.h (get_section_index): Define.
8281 * symfile.c (get_section_index): New function.
8282 * mdebugread.c (SC_IS_SBSS): New macro.
8283 (SC_IS_BSS): Return true for the scBss storage class only, as
8284 the scSBss storage class refers to the .sbss section.
8285 (parse_partial_symbols): Discard the symbols which associated
8286 section does not exist.
8287 Make sure to use the .sbss section index for symbols which
8288 storage class is scBss, rather than using the .bss section index.
8289
51eb8b08
JT
82902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8291
8292 * vax-tdep.c: Update copyright years.
8293 (vax_register_name): New function.
8294 (vax_register_byte): Ditto.
8295 (vax_register_raw_size): Ditto.
8296 (vax_register_virtual_size): Ditto.
8297 (vax_register_virtual_type): Ditto.
8298 * config/vax/tm-vax.h: Update copyright years.
8299 (REGISTER_NAMES): Remove.
8300 (REGISTER_NAME): Define.
8301 (REGISTER_BYTE): Use vax_register_byte.
8302 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8303 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8304 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8305
6cc1c0a8
AC
83062002-04-21 Andrew Cagney <ac131313@redhat.com>
8307
8308 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8309 declaration
8310 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8311
9319a2fe
DM
83122002-04-21 David S. Miller <davem@redhat.com>
8313
8314 * arch-utils.c (generic_prologue_frameless_p): Kill
8315 SKIP_PROLOGUE_FRAMELESS_P code.
8316 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8317 references.
8318 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8319 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8320 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8321 references.
8322 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8323 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8324 (sparc_gdbarch_init): Pass it to
8325 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8326
e9ed6d01
JT
83272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8328
8329 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8330 (alphabsd-nat.o): New dependency list.
8331
36012033
JT
83322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8333
8334 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8335 alphafbsd-tdep.c.
8336 (alpha-linux-tdep.o): New dependency list.
8337 (alphafbsd-tdep.o): Likewise.
8338
3379287a
JT
83392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8340
8341 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8342 to here...
8343 * alpha-tdep.c: ...from here.
8344 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8345
4bcbd6cb
JT
83462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8347
8348 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8349 prototype from here...
8350 * alpha-tdep.h: ...to here.
8351
b31da25e
AC
83522002-04-21 Andrew Cagney <ac131313@redhat.com>
8353
8354 * frame.h (selected_frame_level): Document as deprecated.
8355 (frame_relative_level): Declare.
8356 * stack.c (frame_relative_level): New function.
8357 (selected_frame_level): Document as deprecated.
8358 (select_frame): Do not set the selected_frame_level.
8359
8360 * stack.c (frame_info, record_selected_frame): Update.
8361 (frame_command, current_frame_command): Update.
8362 (up_silently_base, up_command, down_silently_base): Update.
8363 (down_command): Update.
8364 * inflow.c (kill_command): Update.
8365 * tracepoint.c (finish_tfind_command): Update.
8366 * corelow.c (core_open): Update.
8367 * thread.c (info_threads_command): Update.
8368 (do_captured_thread_select): Update.
8369 * infcmd.c (finish_command): Update.
8370 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8371
9c1d6fe5
JT
83722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8373
8374 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8375
ab89facf
AC
83762002-04-21 Andrew Cagney <ac131313@redhat.com>
8377
8378 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8379 type const.
8380
82a4efa1
JT
83812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8382
8383 * alphafbsd-tdep.c: Update copyright years. Include
8384 alpha-tdep.h.
8385 (alphafbsd_use_struct_convention): Make static.
8386 (alphafbsd_init_abi): New function.
8387 (_initialize_alphafbsd_tdep): New function.
8388 * config/alpha/tm-fbsd.h: Update copyright years.
8389 (USE_STRUCT_CONVENTION): Remove.
8390
44dffaac
JT
83912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8392
8393 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8394 an Alpha ABI variant.
8395 (alpha_abi_handler_list): Declare.
8396 (alpha_gdbarch_register_os_abi): New function.
8397 (alpha_gdbarch_init): Give registered ABI variant handlers a
8398 chance to tweak the gdbarch once we have set up defaults.
8399 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8400
65585be4
JT
84012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8402
8403 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8404 to standard_coerce_float_to_double.
8405 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8406
d9b023cc
JT
84072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8408
8409 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8410 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8411 from gdbarch_tdep rather than a constant.
8412 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8413 the default text address for all Alpha Unix ABIs.
8414 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8415 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8416
dc129d82
JT
84172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8418
8419 * alpha-tdep.h: New file. Includes several Alpha target constants
8420 taken from...
8421 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8422 let gdbarch deal with.
8423 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8424 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8425 to dependency list.
8426 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8427 Alpha target register names.
8428 * alphabsd-nat.c: Likewise.
8429 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8430 Alpha target register names. Make serveral routines static.
8431 (alpha_get_saved_register): New function.
8432 (alpha_abi_names): New.
8433 (process_note_abi_tag_sections): New function.
8434 (get_elfosabi): New function.
8435 (alpha_gdbarch_init): New function.
8436 (alpha_dump_tdep): New function.
8437 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8438
d49d1e0a
AC
84392002-04-21 Andrew Cagney <ac131313@redhat.com>
8440
8441 * frame.c (find_saved_register): Delete #ifdef
8442 HAVE_REGISTER_WINDOWS code.
8443 * config/sparc/tm-sparc.h: Update comments.
8444 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8445
92e8c9ed
AC
84462002-04-21 Andrew Cagney <ac131313@redhat.com>
8447
8448 * i960-tdep.c (i960_find_saved_register): New function.
8449 (i960_get_saved_register): New function.
8450 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8451 (i960_get_saved_register): Declare.
8452 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8453
e1925118
DM
84542002-04-20 David S. Miller <davem@redhat.com>
8455
8456 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8457
29673b29
AC
84582002-04-20 Andrew Cagney <ac131313@redhat.com>
8459
8460 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8461 instead of NUM_PSEUDO_REGS.
8462
6c86dcd5
DM
84632002-04-20 David S. Miller <davem@redhat.com>
8464
8465 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8466 GDB_MULTI_ARCH_PARTIAL
8467 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8468 define, let tm-sp64.h do it.
8469
aa40ec90
JT
84702002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8471
8472 * frame.c (find_saved_register): Avoid a NULL pointer
8473 dereference and actually walk the frame list.
8474
0f79675b
AC
84752002-04-20 Andrew Cagney <ac131313@redhat.com>
8476
8477 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8478 sorted in most most-recent-used order. Document.
8479 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8480
f91305dd 84812002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8482
8483 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8484 instead of ->prev.
8485 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8486 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8487 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8488 instead of ->prev.
8489
73d322b1
EZ
84902002-04-19 Elena Zannoni <ezannoni@redhat.com>
8491
8492 Fix PR gdb/471.
8493 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8494 (build_builtin_type_vec128): Ditto.
8495 (append_composite_type_field): Fix calculation of type length in
8496 union case.
8497
ccd9a834
EZ
84982002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8499
8500 * config/djgpp/README: Update.
8501
8502 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8503 compiler warnings.
8504
a57f9e49
JT
85052002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8506
8507 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8508 (alpha_setup_arbitrary_frame): ...to this.
8509 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8510 for alpha_setup_arbitrary_frame.
8511
f4f9705a
AC
85122002-04-18 Andrew Cagney <cagney@redhat.com>
8513
8514 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8515 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8516
f4f9705a
AC
8517 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8518 * target.h (memory_breakpoint_from_pc): Update declaration.
8519 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8520
8521 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8522 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8523 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8524 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8525 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8526 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8527 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8528 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8529 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8530 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8531 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8532 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8533
8534 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8535 const pointer.
8536 * monitor.c (monitor_insert_breakpoint): Ditto.
8537 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8538
8539 * config/mcore/tm-mcore.h: Update copyright.
8540 * mem-break.c: Ditto.
8541 * xstormy16-tdep.c: Ditto.
8542
29f319b8
PM
85432002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8544
8545 * p-exp.y: Add precedence rule for '^' token.
8546 This removes the shift/reduce conflicts.
8547 Remove the comment concerning these shift/reduce conflicts.
8548
ebeac11a
EZ
85492002-04-18 Elena Zannoni <ezannoni@redhat.com>
8550
8551 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8552 (registers_powerpc_nofp): New register set for processors
8553 without floating point unit.
8554
27c31547
DM
85552002-04-18 David S. Miller <davem@redhat.com>
8556
8557 * MAINTAINERS: Add myself to write-after-approval.
8558
47a73475
MS
85592002-04-17 Michael Snyder <msnyder@redhat.com>
8560
8561 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8562
953836b2
AC
85632002-04-17 Andrew Cagney <ac131313@redhat.com>
8564
8565 * rs6000-tdep.c (frame_initial_stack_address): Use
8566 frame_register_read to read the alloca_reg.
8567
8b0d4340
AC
85682002-04-17 Andrew Cagney <ac131313@redhat.com>
8569
8570 * frame.c (find_saved_register): Find saved registers in the next
8571 not prev frame.
8572 Fix PR gdb/365.
8573
d8864532
AC
85742002-04-17 Andrew Cagney <ac131313@redhat.com>
8575
8576 * gdbarch.sh (LANG): Set to ``c''.
8577
36cc83a3 85782002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8579
36cc83a3 8580 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8581
2f4150cc 85822002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8583
8584 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8585 Update copyright.
8586
628703c6 8587 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8588 Also fix PR gdb/391.
361d1df0 8589
56157b4a
AC
85902002-04-14 Andrew Cagney <ac131313@redhat.com>
8591
8592 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8593 * aclocal.m4, configure: Re-generate.
8594 Fix PR gdb/391.
361d1df0 8595
6d1e3329
EZ
85962002-04-14 Elena Zannoni <ezannoni@redhat.com>
8597
8598 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8599 instead of tm_print_insn.
8600
cb06fa07
EZ
86012002-04-14 Elena Zannoni <ezannoni@redhat.com>
8602
8603 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8604
f208ba17
AC
86052002-04-14 Andrew Cagney <ac131313@redhat.com>
8606
8607 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8608 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8609 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8610
20f01a46
DH
86112002-04-12 Don Howard <dhoward@redhat.com>
8612
8613 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8614 max_user_call_depth.
8615 (init_cmd_lists): Initialize the new value;
8616 * cli/cli-script.c (execute_user_command): Limit the call depth of
8617 user defined commands. This avoids a core-dump when user commands
8618 are infinitly recursive.
8619
a88376a3
KB
86202002-04-12 Kevin Buettner <kevinb@redhat.com>
8621
8622 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8623 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8624 from tdep struct instead of DEFAULT_LR_SAVE.
8625 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8626 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8627 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8628
f2172603
MS
86292002-04-12 Michael Snyder <msnyder@redhat.com>
8630
694f61fb 8631 * Remote.c: Spelling fix.
20fe79c8
MS
8632 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8633 If no symbol found for "sbrk", try "_sbrk".
8634 (make_output_phdrs): Use bfd_section_name.
8635 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8636 * eval.c: Indentation fix-ups.
169a7369
MS
8637 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8638 in case it gets applied to an address that is already
8639 in the instruction space.
de74f71f
MS
8640 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8641 * symfile.c: Fix indentation, long lines.
f2172603
MS
8642 * source.c: White space fix-up.
8643
cda5a58a
AC
86442002-04-12 Andrew Cagney <cagney@redhat.com>
8645
8646 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8647 * frame.c (frame_register_read): New function. Return non-zero on
8648 success.
8649 (read_relative_register_raw_bytes_for_frame): Delete.
8650 (read_relative_register_raw_bytes): Delete.
8651 * frame.h (frame_register_read): Declare.
8652 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8653 * sh-tdep.c: Ditto.
8654 * infcmd.c (do_registers_info): Ditto.
8655 * hppa-tdep.c: Ditto.
8656 * rs6000-tdep.c: Ditto.
8657 * h8500-tdep.c: Ditto.
8658 * mips-tdep.c: Ditto.
8659 * h8300-tdep.c: Ditto.
8660 * z8k-tdep.c: Ditto.
8661
2ea5f656
KB
86622002-04-12 Kevin Buettner <kevinb@redhat.com>
8663
8664 From Jimi X <jimix@watson.ibm.com>:
8665 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8666 64-bit SysV ABI.
8667
27b15785
KB
86682002-04-12 Kevin Buettner <kevinb@redhat.com>
8669
8670 From Jimi X <jimix@watson.ibm.com>:
8671 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8672 bfd info.
8673
5d57ee30
KB
86742002-04-12 Kevin Buettner <kevinb@redhat.com>
8675
8676 From Jimi X <jimix@watson.ibm.com>:
8677 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8678 register sets for these processor variants.
8679
bc1e36ca
DJ
86802002-04-11 Daniel Jacobowitz <drow@mvista.com>
8681
bc1e36ca
DJ
8682 * regformats/reg-ppc.dat: Support FPSCR.
8683
e3f36dbd
KB
86842002-04-11 Kevin Buettner <kevinb@redhat.com>
8685
8686 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8687 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8688 Add fpscr as an invalid/unfetchable register.
8689 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8690 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8691 (fill_fpregset): Add support for register fpscr.
8692 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8693 (fill_gregset): Account for the fact that register ``mq'' might
8694 not exist.
8695 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8696 (registers_power): Add fpscr to register set at slot 71.
8697 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8698 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8699
943c9c25
MS
87002002-04-11 Michael Snyder <msnyder@redhat.com>
8701
8702 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8703 * configure: Regenerate.
8704 * config.in: Regenerate.
8705 * acconfig.h: Add define for _SYSCALL32.
8706 * core-sol2.c: Remove #define _SYSCALL32.
8707 * solib-legacy.c: Remove #define _SYSCALL32.
8708
d8c0a2e7
AC
87092002-04-10 Andrew Cagney <ac131313@redhat.com>
8710
8711 * stack.c (select_frame): Cleanup internal error message, do not
8712 use %p.
8713
7cc19214
AC
87142002-04-10 Andrew Cagney <ac131313@redhat.com>
8715
8716 * stack.c (select_frame): Check that selected_frame and the
8717 specified level are as expected.
8718 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8719 Update copyright.
8720 * frame.h (struct frame_info): Add field `level'. Update
8721 copyright.
8722 Work-in-progress PR gdb/464.
8723
67a2b77e
AC
87242002-04-10 Andrew Cagney <ac131313@redhat.com>
8725
8726 * maint.c (maint_print_section_info): Rename print_section_info.
8727 (print_bfd_section_info, print_objfile_section_info): Update.
8728 * inferior.h (struct gdbarch): Add opaque declaration.
8729 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8730 * gdbarch.h: Regenerate.
8731
8cfda98c
ML
87322002-04-10 Michal Ludvig <mludvig@suse.cz>
8733
8734 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8735 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8736 (kernel_u_size): Added.
8737 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8738 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8739
ca439ad2 87402002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8741
ca439ad2
JI
8742 * valarith.c (find_size_for_pointer_math): New function, either returns
8743 the size for a pointer's target, returns 1 for void *, or errors for
8744 incomplete types.
8745 (value_add, value_sub): use find_size_for_pointer_math.
8746
2f2893d9
DJ
87472002-04-09 Daniel Jacobowitz <drow@mvista.com>
8748
8749 * linux-low.c (linux_look_up_symbols): New hook.
8750 (linux_target_ops): Add linux_look_up_symbols.
8751 * remote-utils.c (decode_address): New function.
8752 (look_up_one_symbol): New function.
8753 * server.c (handle_query): Call target look_up_symbols hook.
8754 * server.h (look_up_one_symbol): Add prototype.
8755 * target.h (struct target_ops): Add look_up_symbols hook.
8756
96cb11df
AC
87572002-04-09 Andrew Cagney <ac131313@redhat.com>
8758
8759 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8760 override FP_REGNUM with frame->fp. Update copyright.
8761 * parse.c (num_std_regs, std_regs): Delete.
8762 (target_map_name_to_register): Do not search std_regs. Update
8763 function description.
8764 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8765 declarations. Update copyright.
8766 Fix PR gdb/251.
361d1df0 8767
97658e92
DJ
87682002-04-09 Daniel Jacobowitz <drow@mvista.com>
8769
8770 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8771 after the last symbol in a block.
8772
6044e3eb
PM
87732002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8774
8775 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8776 is non zero as a found symbol.
8777
0406ec40
AC
87782002-04-08 Andrew Cagney <ac131313@redhat.com>
8779
8780 * findvar.c: Include "builtin-regs.h".
8781 (value_of_register): Call value_of_builtin_reg when applicable.
8782 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8783 (target_map_name_to_register): Call
8784 builtin_reg_map_name_to_regnum.
8785 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8786 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8787 (builtin_regs_h): Define.
8788 (builtin-regs.o): New target.
8789 (findvar.o): Add $(builtin_regs_h).
8790 * builtin-regs.c, builtin-regs.h: New files.
8791 * std-regs.c: New file.
8792 Partial fix for PR gdb/251.
8793
56a6dfb9
KB
87942002-04-08 Kevin Buettner <kevinb@redhat.com>
8795
8796 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8797 it's no longer required.
8798
3a808432
AC
87992002-04-08 Andrew Cagney <ac131313@redhat.com>
8800
8801 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8802
7c40d541
KB
88032002-04-08 Kevin Buettner <kevinb@redhat.com>
8804
8805 From Jimi X <jimix@watson.ibm.com>:
8806 * rs6000-tdep.c (rs6000_software_single_step): Use
8807 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8808 and size. Use target_insert_breakpoint() and
8809 target_remove_breakpoint() to insert and remove breakpoints
8810 instead of explicit memory reads and writes.
8811
cc9836a8
KB
88122002-04-08 Kevin Buettner <kevinb@redhat.com>
8813
8814 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8815 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8816 ELF_OBJECT_FORMAT ifdef.
8817
7495d1dc
KB
88182002-04-08 Kevin Buettner <kevinb@redhat.com>
8819
8820 From Jimi X <jimix@watson.ibm.com>:
8821 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8822
4288e836
KB
88232002-04-08 Kevin Buettner <kevinb@redhat.com>
8824
8825 From Jimi X <jimix@watson.ibm.com>:
8826 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8827 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8828
a4e4e501
MK
88292002-04-07 Mark Kettenis <kettenis@gnu.org>
8830
8831 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8832 s/asprintf/xasprintf/.
8833 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8834
006defba
AC
88352002-04-07 Andrew Cagney <ac131313@redhat.com>
8836
8837 I believe Jeff Law denies responsability for this one:
8838 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8839 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8840 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8841 Work-around for PR gdb/366.
8842
7aa83cac
EZ
88432002-04-07 Elena Zannoni <ezannoni@redhat.com>
8844
8845 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8846 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8847 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8848
cf1fcca1
EZ
88492002-04-07 Elena Zannoni <ezannoni@redhat.com>
8850
8851 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8852 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8853 information.
8854
3f289e6f
AC
88552002-04-07 Andrew Cagney <ac131313@redhat.com>
8856
8857 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8858 maintainer.
8859
129188f6
AC
88602002-04-07 Andrew Cagney <ac131313@redhat.com>
8861
8862 * README (Reporting Bugs in GDB): Document the bug web page as the
8863 prefered way of submitting bugs.
8864 Fix PR gdb/402.
8865
1200cd6e
AC
88662002-04-06 Andrew Cagney <ac131313@redhat.com>
8867
8868 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8869 -1. Update comment.
8870 * gdbarch.h, gdbarch.c: Re-generate.
8871
2853c33c
AS
88722002-04-07 Andreas Schwab <schwab@suse.de>
8873
8874 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8875 buffer to regcache_collect.
8876
c2169756
AC
88772002-04-06 Andrew Cagney <ac131313@redhat.com>
8878
8879 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8880 * gdbarch.c, gdbarch.h: Re-generate.
8881
25f1b008
AC
88822002-04-06 Andrew Cagney <ac131313@redhat.com>
8883
8884 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8885 declaration. Fix -Werror.
8886
59263426
DJ
88872002-04-05 Daniel Jacobowitz <drow@mvista.com>
8888
8889 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8890 * gdbarch.c: Regenerate.
8891
f5db4da3
MS
88922002-04-05 Michael Snyder <msnyder@redhat.com>
8893
80f8a6eb
MS
8894 * breakpoint.c (clear_command): Rewrite middle section to
8895 combine two loops with identical control conditions.
8896 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8897 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8898
ad3dcc5c
L
88992002-04-05 H.J. Lu (hjl@gnu.org)
8900
8901 * solib-svr4.c (bkpt_names): Add "__start".
8902
f32e7a74
AC
89032002-04-04 Andrew Cagney <ac131313@redhat.com>
8904
8905 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8906 as test for 64 bit target.
8907
8227c0ff
AC
89082002-04-05 Andrew Cagney <ac131313@redhat.com>
8909
8910 * h8500-tdep.c (h8500_write_fp): Delete function.
8911 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8912 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8913 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8915 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8916 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8917 (s390_write_fp):
8918 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8919 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8920 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8921 (d10v_write_fp): Delete function.
8922 * inferior.h (write_fp, generic_target_write_fp): Delete
8923 declarations.
8924 * regcache.c (generic_target_write_fp): Delete function.
8925 (write_fp): Delete function.
8926 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8927 * gdbarch.h, gdbarch.c: Regenerate.
8928 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8929 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8930 (sparc64_write_fp): Delete declaration.
8931 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8932 (h8500_write_fp): Delete declaration.
8933
2757dd86
AC
89342002-04-04 Andrew Cagney <ac131313@redhat.com>
8935
8936 * sparc-tdep.c (sparc64_write_fp): Delete.
8937 (sparc_push_dummy_frame): Replace write_fp call with code to store
8938 the FP directly.
8939 (sparc_gdbarch_init): Do not initialize write_fp.
8940
c69255e1
KB
89412002-04-05 Kevin Buettner <kevinb@redhat.com>
8942
8943 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8944 clause.
8945
ae767bfb
JB
89462002-03-29 Jim Blandy <jimb@redhat.com>
8947
8948 * stack.c (get_selected_block): Add new argument `addr_in_block',
8949 used to return the exact code address we used to select the block,
8950 not just the block.
8951 * blockframe.c (get_frame_block, get_current_block): Same.
8952 * frame.h (get_frame_block, get_current_block,
8953 get_selected_block): Update declarations.
8954 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8955 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8956
84d2ac95
MS
89572002-04-05 Michael Snyder <msnyder@redhat.com>
8958
8959 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8960 warning message.
8961
596aa3bf
JB
89622002-04-05 J. Brobecker <brobecker@gnat.com>
8963
8964 * utils.c (xfullpath): New function.
8965 * defs.h (xfullpath): Add declaration.
8966 * source.c (openp): Use xfullpath in place of gdb_realpath to
8967 avoid resolving the basename part of filenames when the
8968 associated file is a symbolic link. This fixes a potential
8969 inconsistency between the filenames known to GDB and the
8970 filenames it prints in the annotations.
8971 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8972 to be able to match a filename with either the real filename, or
8973 the name of any symbolic link to this file.
8974 (lookup_partial_symtab): Ditto.
8975
c02f5703
MS
89762002-04-04 Michael Snyder <msnyder@redhat.com>
8977
8978 * breakpoint.c: Add support for hardware breakpoints in overlays.
8979 (overlay_events_enabled): New state variable.
8980 (insert_breakpoints): Use overlay_events_enabled to decide
8981 whether to attempt to set a breakpoint at the overlay load addr.
8982 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8983 (remove_breakpoint): Use overlay_events_enabled to decide
8984 whether breakpoints need to be removed from overlay load addr.
8985 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8986 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8987 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8988 disable_overlay_breakpoints): Update overlay_events_enabled.
8989
5fb290d7
DJ
89902002-04-04 Daniel Jacobowitz <drow@mvista.com>
8991
8992 * dwarf2read.c (struct function_range): New.
8993 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8994 (check_cu_functions): New.
8995 (read_file_scope): Initialize global function lists.
8996 Call dwarf_decode_line after processing children.
8997 (read_func_scope): Add to global function list.
8998 (dwarf_decode_lines): Call check_cu_functions everywhere
8999 record_line is called. Call record_line with a linenumber
9000 of 0 to mark sequence ends.
9001
7b3fabf0
ML
90022002-04-04 Michal Ludvig <mludvig@suse.cz>
9003
361d1df0 9004 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9005 change sync with glibc.
9006
bce58c09
JB
90072002-04-03 Jim Blandy <jimb@redhat.com>
9008
9009 * configure.in: Call AC_C_INLINE.
9010 * configure: Regenerated.
361d1df0 9011
2fccf04a
DJ
90122002-04-01 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9015 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9016
2d1bfe2e
MK
90172002-03-31 Mark Kettenis <kettenis@gnu.org>
9018
a5941fbf
MK
9019 * NEWS: Mention gcore support on FreeBSD/i386.
9020
a90cd31d
MK
9021 * fbsd-proc.c: New file.
9022 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9023 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9024
2d1bfe2e
MK
9025 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9026 while statement.
9027
9eb6e5a1
JB
90282002-03-29 Jim Blandy <jimb@redhat.com>
9029
9030 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9031 unescaped newlines in string literals, but newer ones don't. So
9032 escape them.
9033
f02df580
MS
90342002-03-26 Michael Snyder <msnyder@redhat.com>
9035 Andrew Cagney <cagney@redhat.com>
9036
361d1df0 9037 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
9038 restore file to memory.
9039 * cli/cli-dump.h: New file.
9040 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 9041 * NEWS: Mention new commands.
f02df580 9042
109f874e
MS
90432002-03-28 Michael Snyder <msnyder@redhat.com>
9044
9045 * symfile.c (symbol_file_add): Move test for null symbols to later.
9046
520f6ade
AC
90472002-03-27 Andrew Cagney <ac131313@redhat.com>
9048
9049 From veksler at il.ibm.com:
9050 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9051 the xstrduped original path.
9052 Fix PR gdb/417.
9053
d4654627
MS
90542002-03-27 Michael Snyder <msnyder@redhat.com>
9055
9056 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9057 * infcmd.c (_initialize_infcmd): Ditto.
9058 * language.c (_initialize_language): Ditto.
9059 * symfile.c (_initialize_symfile): Ditto.
9060 * top.c (_init_main): Ditto.
9061 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9062
6be8bc0c
EZ
90632002-03-27 Elena Zannoni <ezannoni@redhat.com>
9064
9065 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9066 vector registers handling.
9067 (skip_prologue): Handle new AltiVec instructions. Fill in new
9068 fields of frame data.
9069 (frame_get_saved_regs): Fill in information for AltiVec registers.
9070
12af6855
JB
90712002-03-27 Jim Blandy <jimb@redhat.com>
9072
9073 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9074 a function; leave this macro here to invoke that function.
9075 (symbol_init_mangled_name): Declaration for that function.
9076 * symtab.c (symbol_init_mangled_name): New function.
9077
dc672865
AC
90782002-03-27 Andrew Cagney <ac131313@redhat.com>
9079
9080 * valarith.c: Replace strerror with safe_strerror.
9081 * tracepoint.c: Ditto.
9082 * lin-lwp.c: Ditto.
9083 * go32-nat.c: Ditto.
9084 * inflow.c: Ditto.
9085 * gnu-nat.c: Ditto.
9086
d96429cd
AS
90872002-03-27 Andreas Schwab <schwab@suse.de>
9088
9089 * event-top.c (command_line_handler): Remove useless if.
9090
7e336ba1
AJ
90912002-03-27 Andreas Jaeger <aj@suse.de>
9092
9093 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9094 comment.
9095
de220d0f
ML
90962002-03-27 Michal Ludvig <mludvig@suse.cz>
9097
9098 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9099 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9100 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9101 (x86_64_linux_dr_get_status, supply_gregset),
9102 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9103 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9104 (x86_64_register_info_table): Add.
9105 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9106 (x86_64_register_raw_size, x86_64_register_virtual_type),
9107 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9108 general x86_64_register_info_table.
9109 (i386_gdbarch_init): gdbarch_register_bytes is now set
9110 dynamicaly during initialization.
9111 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9112 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 9113
0e98d0a7
DJ
91142002-03-27 Daniel Jacobowitz <drow@mvista.com>
9115
9116 * gdbserver/server.c (main): Call target_signal_to_host_p
9117 and target_signal_to_host on signals received from the remote.
9118 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9119 target_signal_from_host on signals sent to the remote.
9120 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9121 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9122
3130066b
DJ
91232002-03-27 Daniel Jacobowitz <drow@mvista.com>
9124
9125 * signals/signals.c: Include "server.h" in gdbserver build.
9126 (target_signal_from_name): Don't use STREQ.
9127 (_initialize_signals): Likewise. Don't include function in
9128 gdbserver build.
9129
9aedf4f4
DJ
91302002-03-27 Daniel Jacobowitz <drow@mvista.com>
9131
9132 * signals.c: Moved to...
9133 * signals/signals.c: Here.
7e336ba1 9134 * Makefile (signals.o): Update.
9aedf4f4 9135
3fa41cdb
JL
91362002-03-26 Jeff Law (law@redhat.com)
9137
9138 * somread.c (som_symtab_read): Remove some commented out code and
9139 updated related comments. Do not set the minimal symbol table to
9140 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9141 in a dynamic executable.
9142 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9143 where we are unable to find the minimal symbol for the given
9144 PC value.
9145
ee677e8d
MS
91462002-03-25 Jeff Law (law@redhat.com)
9147
9148 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9149
e76e1718
ML
91502002-03-25 Michal Ludvig <mludvig@suse.cz>
9151
9152 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9153
18a642a1
AC
91542002-03-23 Andrew Cagney <ac131313@redhat.com>
9155
9156 * command.h: Update copyright.
9157 (struct cmd_list_element): Replace definition with opaque
9158 declaration.
9159 (enum cmd_types): Document that it will eventually be moved to
9160 cli/cli-decode.h
9161 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9162 (MALLOCED_REPLACEMENT): Delete macro.
9163 * Makefile.in (cli_decode_h): Add $(command_h).
9164 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9165 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9166 * completer.c: Include "cli/cli-decode.h".
9167 * maint.c: Include "cli/cli-decode.h".
9168 * cli/cli-decode.h: Include "command.h".
9169 (enum command_class): Delete.
9170 (enum cmd_types): Comment out.
9171 (enum cmd_auto_boolean): Delete.
9172 (enum var_types): Delete.
9173
b2875cc0
AC
91742002-03-23 Andrew Cagney <ac131313@redhat.com>
9175
9176 * cli/cli-decode.c: Include "gdb_assert.h".
9177 (add_set_or_show_cmd): New static function.
9178 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9179 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9180 all fields, such as func, from the set command.
9181
3b45974e
AC
91822002-03-23 Andrew Cagney <ac131313@redhat.com>
9183
9184 * MAINTAINERS (sh-elf): Change warning flag to -w.
9185
823ca731
AC
91862002-03-23 Andrew Cagney <cagney@redhat.com>
9187
9188 * defs.h (error): Add printf format attribute.
9189 * thread-db.c (thread_from_lwp): Fix error format string.
9190 * stack.c (parse_frame_specification): Ditto.
9191 * cli/cli-decode.c (undef_cmd_error): Ditto.
9192 * scm-lang.c (scm_lookup_name): Ditto.
9193 * tracepoint.c (trace_error): Ditto.
9194 * remote-utils.c (usage): Ditto.
9195 * remote.c (compare_sections_command): Ditto.
9196 Fix PR gdb/328.
9197
0e101458
AC
91982002-03-22 Andrew Cagney <ac131313@redhat.com>
9199
9200 * gdbtypes.c (append_composite_type_field): New function.
9201 (init_composite_type): New function.
9202 * gdbtypes.h (append_composite_type_field): Declare.
9203 (init_composite_type): Ditto.
9204
8e0662df
EZ
92052002-03-22 Elena Zannoni <ezannoni@redhat.com>
9206
9207 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9208 function.
8e0662df
EZ
9209 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9210 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9211 structure returning convention for SYSV ABI case, but not
9212 for GNU/Linux, FreeBSD, or NetBSD.
9213
3121eff0
DJ
92142002-03-22 Daniel Jacobowitz <drow@mvista.com>
9215
9216 * symtab.h (lookup_block_symbol): Add mangled_name argument
9217 to prototype.
9218
9219 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9220 with new mangled_name argument.
9221 * linespec.c (decode_line_1): Likewise.
9222 * valops (value_of_this): Likewise.
9223 * symtab.c (lookup_transparent_type): Likewise.
9224 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9225 (lookup_symbol): If we are given a mangled name, pass it down
9226 to lookup_symbol_aux.
9227 (lookup_block_symbol): If we are given a mangled name to check
9228 against, only return symbols which match it.
9229
349b409f
CF
92302002-03-22 Christopher Faylor <cgf@redhat.com>
9231
9232 * win32-nat.c (child_create_inferior): Check for proper shell to use
9233 here, in case the user changes it on the fly.
9234 (_initialize_inftarg): Remove shell path considerations.
9235
2a873819
EZ
92362002-03-21 Elena Zannoni <ezannoni@redhat.com>
9237
9238 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9239 for gdbarch_max_register_raw_size and max_register_virtual_size.
9240 Adjust copyright year.
9241
a1b9830c
DJ
92422002-03-21 Daniel Jacobowitz <drow@mvista.com>
9243
9244 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9245 in a function to cover the entire beginning of the function
9246 as well if it does not already.
9247
8b5790f2
TR
92482002-03-21 Tom Rix <trix@redhat.com>
9249
9250 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9251 (rs6000_ptrace64): Renamed from ptrace64.
9252
bdbe5747
MH
92532002-03-20 Martin M. Hunt <hunt@redhat.com>
9254
9255 * gdbserver/remote-utils.c (remote_open): Don't call
9256 getprotobyname, we're all using TCP here so just use
9257 IPPROTO_TCP.
7e336ba1 9258 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9259
92602002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9261
bdbe5747
MH
9262 * regcache.c (_initialize_regcache): No need to call
9263 build_regcache() at this time; it gets called whenever
9264 the gdbarch changes.
9265
7781cd62
DB
92662002-03-20 David O'Brien <obrien@FreeBSD.org>
9267
9268 * sparc-nat.c: Include sys/param.h where possible.
9269
f65ca430
DJ
92702002-03-20 Daniel Jacobowitz <drow@mvista.com>
9271
9272 Fix PR gdb/422.
9273 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9274 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9275 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9276 complex types.
9277 * stabsread.c (rs6000_builtin_type): Likewise.
9278 (read_sun_floating_type): Likewise.
9279
0c867556
PS
92802002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9281
9282 * stabsread.c (read_member_functions): Remove skip code for duplicate
9283 constructor/destructor methods. Use standard parsing for these
9284 methods and just do not chain them to the list of methods after
9285 parsing.
9286
12b9c64f
AO
92872002-03-19 Alexandre Oliva <aoliva@redhat.com>
9288
9289 * coffread.c: Remove redundant static declarations. Replace
9290 occurrences of `PTR' with `void *'.
9291 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9292 * top.h (quit_cover): Likewise.
9293 * defs.h (catch_errors): Likewise.
9294
349c5d5f
AC
92952002-03-18 Andrew Cagney <ac131313@redhat.com>
9296
9297 * defs.h (XMALLOC): Define.
9298 * gdb-events.sh (XMALLOC): Delete macro.
9299 * gdb-events.c, gdb-events.h: Regenerate.
9300 * gdbarch.sh (XMALLOC): Delete macro.
9301 * gdbarch.c: Regenerate.
9302 * serial.c (XMALLOC): Delete macro.
9303 * ui-file.c (XMALLOC): Ditto.
9304 * ser-unix.h (XMALLOC): Ditto.
9305 * sh-tdep.c (XMALLOC): Ditto.
9306 * ui-out.c (XMALLOC): Ditto.
9307 * utils.c (XMALLOC): Ditto.
9308 * i386-tdep.c (XMALLOC): Ditto.
9309 * gdb-events.c (XMALLOC): Ditto.
9310 * d10v-tdep.c (XMALLOC): Ditto.
9311 * cli-out.c (XMALLOC): Ditto.
9312
9313 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9314 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9315 * ui-file.c, ui-out.c: Ditto.
9316
7d0766f3
AC
93172002-03-18 Andrew Cagney <ac131313@redhat.com>
9318
9319 * command.h (struct cmd_list_element): Add field context.
9320 (set_cmd_context, get_cmd_context): Declare.
9321 * cli/cli-decode.h: Ditto.
9322 * cli/cli-decode.c (get_cmd_context): New function.
9323 (set_cmd_context): New function.
9324 (add_cmd): Initialize context.
9325 Part of fixing PR gdb/145 and PR gdb/146.
9326
5913bcb0
AC
93272002-03-17 Andrew Cagney <ac131313@redhat.com>
9328
1868c04e
AC
9329 * cli/cli-decode.c (cmd_type): New function.
9330 * command.h (cmd_type): Declare.
9331 * infrun.c (set_schedlock_func): Call function cmd_type.
9332 * kod.c (kod_set_os): Call cmd_type.
9333 * cris-tdep.c (cris_version_update): Use function cmd_type.
9334 (cris_mode_update, cris_abi_update): Ditto.
9335
5913bcb0
AC
9336 * command.h: (execute_cmd_post_hook): Declare.
9337 (execute_cmd_pre_hook): Declare.
9338 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9339 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9340 functions. Execute pre/post hook while ensuring that afterwords
9341 hook_in is cleared.
9342 * top.c (execute_command): Use execute_cmd_post_hook, and
9343 execute_cmd_pre_hook to execute pre/post commands.
9344 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9345 hook_stop_stub.
9346 (hook_stop_stub): Call execute_cmd_pre_hook.
9347
b51450c9
AC
93482002-03-17 Andrew Cagney <ac131313@redhat.com>
9349
9350 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9351 set'' and this leads to a core dump. Move xstrdup of
9352 operating_system to after check that it is not NULL.
9353
f66c9f11
AC
93542002-03-17 Andrew Cagney <ac131313@redhat.com>
9355
8e694ecf
AC
9356 * kod.c (kod_set_os): Remove unnecessary check that
9357 ``command->type'' is set_cmd.
9358
f66c9f11
AC
9359 * valprint.c (set_input_radix): Use input_radix.
9360 (set_output_radix): Use output_radix.
9361 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9362 isn't reverted.
9363
9d01611c
AC
93642002-03-16 Andrew Cagney <ac131313@redhat.com>
9365
9366 * value.h (struct value): Delete field ``substring_addr''. Change
9367 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9368 force_core_addr_align and force_pointer_aligh.
9369
9370 * value.h (struct value): Fix typo in above change.
9d01611c 9371
4156bb53
PS
93722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9373
9374 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9375 to fix internal_error from ``maintenance print architecture''.
9376
0e5e3ea6
PS
93772002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9378
9379 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9380 for gcc versions after gcc-2.8.1.
9381
9b013045
PS
93822002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9383
9384 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9385 for method resolution. Restore adjustment of ``this'' pointer after
9386 calling value_struct_elt, which was accidentally removed during the
9387 HP merge.
9388
376c9600
AC
93892002-03-15 Andrew Cagney <ac131313@redhat.com>
9390
9391 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9392 value_of_register.
9393 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9394 get_saved_register.
9395 * value.h (value_of_register): Update.
9396
a4db0f07
RH
93972002-03-14 Richard Henderson <rth@redhat.com>
9398
9399 * configure.in: Detect declaration for canonicalize_file_name.
9400 * utils.c (canonicalize_file_name): Declare, if needed.
9401 (gdb_realpath): Prefer realpath if available and usable.
9402 * config.in, configure: Rebuild.
9403
96383835
RH
94042002-03-14 Richard Henderson <rth@redhat.com>
9405
9406 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9407 a constant array bound.
9408
9409 * MAINTAINERS: Add myself to write-after-approval.
9410
75245b24
MS
94112002-03-14 Michael Snyder <msnyder@redhat.com>
9412
9413 * symfile.c (syms_from_objfile): Return immediately if no syms.
9414 (symbol_file_add): Return immediately if no syms.
9415 (find_sym_fns): Return immediately if no syms.
9416
e641a1ca
ML
94172002-03-13 Michal Ludvig <mludvig@suse.cz>
9418
9419 * gdbserver/remote-util.c (remote_open): Print remote-side's
9420 IP address when remote debugging over the network.
7e336ba1 9421
df08bfec
DB
94222002-03-12 David O'Brien <obrien@FreeBSD.org>
9423
9424 * config/sparc/fbsd.mh: Fix copyright.
9425 * config/sparc/fbsd.mt: Likewise.
9426
9a57864f
RE
94272002-03-11 Richard Earnshaw <rearnsha@arm.com>
9428
9429 * MAINTAINERS: Fix typo in name of gdb warnings option.
9430 (x86-64): Fix formating so that this can be parsed by awk.
9431
dd7bf85e
DJ
94322002-03-10 Daniel Jacobowitz <drow@mvista.com>
9433
9434 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9435 * defs.h: Include "gdb/signals.h".
9436 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9437
33a0a2ac
ML
94382002-03-10 Michal Ludvig <mludvig@suse.cz>
9439
9440 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9441 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9442 from x86-64-tdep.h
9443
dd824b04
DJ
94442002-03-10 Daniel Jacobowitz <drow@mvista.com>
9445 Don Howard <dhoward@redhat.com>
9446
9447 * mips-tdep.c (ST0_FR): Define.
9448 (mips2_fp_compat): New function, temporarily disabled.
9449 (mips_read_fp_register_single): New function.
9450 (mips_read_fp_register_double): New function.
9451 (mips_print_register): Use them.
9452 (do_fp_register_row): Likewise.
9453
6a41ff59
AC
94542002-03-09 Andrew Cagney <ac131313@redhat.com>
9455
9456 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9457 approval''.
9458
4ea09c10
PS
94592002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9460
9461 * stabsread.c (read_member_functions): Fix is_stub test for
9462 static member functions, improve comment.
9463
6ccc741d
RE
94642002-03-07 Richard Earnshaw <rearnsha@arm.com>
9465
9466 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9467 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9468 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9469 commands that set boolean values.
9470 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9471 (arm_rdi_resume): Always initialize PC.
9472 (arm_rdi_open): Don't use rslt as a boolean.
9473 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9474 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9475 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9476 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9477
438013df
AO
94782002-03-06 Alexandre Oliva <aoliva@redhat.com>
9479
9480 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9481 * configure: Rebuilt.
9482
70ed8774
SC
94832002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9484
9485 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9486 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9487
5ba2abeb
AC
94882002-03-06 Andrew Cagney <ac131313@redhat.com>
9489
9490 * cli/cli-decode.c (set_cmd_completer): New function.
9491 * command.h (set_cmd_completer): Declare.
9492 * cli/cli-decode.h (set_cmd_completer): Ditto.
9493
9494 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9495 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9496 * win32-nat.c (_initialize_inftarg): Ditto.
9497 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9498 * proc-api.c (_initialize_proc_api): Ditto.
9499 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9500 * source.c (_initialize_source): Ditto.
9501 * exec.c (_initialize_exec): Ditto.
9502 * solib.c (_initialize_solib): Ditto.
9503 * top.c (init_main): Ditto.
9504 * tracepoint.c (_initialize_tracepoint): Ditto.
9505 * symfile.c (_initialize_symfile): Ditto.
9506 * printcmd.c (_initialize_printcmd): Ditto.
9507 * infcmd.c (_initialize_infcmd): Ditto.
9508 * corefile.c (_initialize_core): Ditto.
9509
f779ca99
AC
95102002-03-05 Andrew Cagney <ac131313@redhat.com>
9511
9512 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9513
01a3934b
AC
95142002-03-05 Andrew Cagney <ac131313@redhat.com>
9515
9516 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9517
37057839
AC
95182002-03-05 Andrew Cagney <ac131313@redhat.com>
9519
9520 * NEWS: Update headings, 5.2 has branched.
9521
c6ecbae5
DJ
95222002-03-04 Daniel Jacobowitz <drow@mvista.com>
9523
9524 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9525 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9526 (register_addr, REGISTER_RAW_SIZE): Likewise.
9527 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9528 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9529
e9f30c21
ML
95302002-03-03 Michal Ludvig <mludvig@suse.cz>
9531
9532 * MAINTAINERS (x86-64): Add myself.
9533 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9534 changed value_ptr -> struct value *
9535
54394ac3
DB
95362002-03-01 David O'Brien <obrien@FreeBSD.org>
9537
9538 * configure.host (sparc64-*-freebsd): Add.
9539 * configure.tgt: Likewise.
9540 * config/sparc/fbsd.mh: New file.
9541 * config/sparc/fbsd.mt: Likewise.
9542 * config/sparc/nm-fbsd.h: Likewise.
9543 * config/sparc/tm-fbsd.h: Likewise.
9544
bfe95955
DJ
95452002-03-01 Daniel Jacobowitz <drow@mvista.com>
9546
9547 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9548 regformats/reg-s390x.dat.
9549
f33c6cbf
AC
95502002-03-01 Andrew Cagney <ac131313@redhat.com>
9551
9552 * utils.c: Add FIXME explaining true/false problem.
9553
5ecaa7dd
AC
95542002-02-28 Andrew Cagney <ac131313@redhat.com>
9555
9556 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9557
2a251cc2
MC
95582002-02-28 Michael Chastain <mec@shout.net>
9559
9560 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9561
6a8031a3 95622002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9563
9564 * gdbserver/linux-s390-low.c: New file.
9565 * regformats/reg-s390.dat: New file.
9566 * regformats/reg-s390x.dat: New file.
9567 * gdbserver/configure.srv: Add S/390.
9568 * gdbserver/Makefile.in: Add S/390.
9569 * configure.tgt: Enable gdbserver for S/390.
9570
ac469903
EZ
95712002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9572
9573 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9574 first line of the doc string for "info dos", except at the end of
9575 the sentence, since the short help stops at the first period.
9576
985cb1a3
JM
95772002-02-28 Jason Merrill <jason@redhat.com>
9578
9579 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9580
c570663e
FF
95812002-02-27 Fred Fish <fnf@redhat.com>
9582
9583 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9584 comment (dumy -> dummy).
9585
43630227
PS
95862002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9587
9588 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9589
b84911e8
RB
95902002-02-27 Rodney Brown <rbrown64@csc.com.au>
9591
9592 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9593
58caa3dc
DJ
95942002-02-27 Daniel Jacobowitz <drow@mvista.com>
9595
9596 * gdbserver/acconfig.h: New file.
9597 * gdbserver/i387-fp.c: New file.
9598 * gdbserver/i387-fp.h: New file.
9599 * gdbserver/linux-x86-64.c: New file.
9600 * regformats/reg-x86-64.dat: New file.
9601 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9602 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9603 * gdbserver/configure.in: Add support for regsets.
9604 * gdbserver/config.in: Regenerate.
9605 * gdbserver/configure: Regenerate.
9606 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9607 * gdbserver/linux-low.h: New file.
9608 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9609 for regsets.
9610 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9611 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9612 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9613 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9614 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9615 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9616 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9617 "i387-fp.h". Add PTRACE_GETREGS and friends.
9618 * gdbserver/regcache.c (supply_register): New function.
9619 (supply_register_by_name): New function.
9620 (collect_register): New function.
9621 (collect_register_by_name): New function.
9622
93652174
DJ
96232002-02-27 Daniel Jacobowitz <drow@mvista.com>
9624
9625 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9626 (config.status): Add configure.srv dependency.
9627 (server_h): Add config.h dependency.
9628
a02e4a61
DJ
96292002-02-27 Daniel Jacobowitz <drow@mvista.com>
9630
9631 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9632 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9633 * gdbserver/configure.srv: Change i386-*-linux* to use
9634 reg-i386-linux.o.
9635
ce0eebec
AC
96362002-02-26 Andrew Cagney <ac131313@redhat.com>
9637
9638 * x86-64-tdep.c: Re-indent. Update copyright date.
9639
82dbc5f7
AC
96402002-02-26 Andrew Cagney <ac131313@redhat.com>
9641
9642 From Michal Ludvig <mludvig@suse.cz>:
9643 * x86-64-tdep.c (value.h): Delete.
9644 (gdb_assert.h): Include.
9645 (x86_64_register_convert_to_virtual,
9646 x86_64_register_convert_to_raw ): Add check which lets only
9647 floating-point values to be converted.
9648 (value_push): Delete.
9649 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9650 (i386_gdbarch_init): Number of register_bytes fixed.
9651
e4621584
AC
96522002-02-26 Andrew Cagney <ac131313@redhat.com>
9653
9654 * MAINTAINERS: Add x86-64 target.
9655
81a9a963
AC
96562002-02-26 Andrew Cagney <ac131313@redhat.com>
9657
9658 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9659 * osfsolib.c (solib_map_sections): Ditto.
9660 * irix5-nat.c (solib_map_sections): Ditto.
9661 * corelow.c (gdb_check_format): Ditto.
9662 * symfile.c (symfile_bfd_open): Ditto.
9663 * solib.c (solib_map_sections): Ditto.
9664 Fix PR gdb/354.
7e336ba1 9665
0f017ab9
AC
96662002-02-26 Andrew Cagney <ac131313@redhat.com>
9667
9668 * remote.c (_initialize_remote): By default, disable ``e'' and
9669 ``E'' step out-of-range packets.
9670
75738c29
AS
96712002-02-26 Andreas Schwab <schwab@suse.de>
9672
9673 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9674 m68k_linux_frame_saved_pc.
9675 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9676 in_sigtramp.
9677 (SIGCONTEXT_PC_OFFSET): Remove.
9678 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9679 m68k_linux_sigtramp_saved_pc): New functions.
9680 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9681 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9682 (UCONTEXT_PC_OFFSET): Define.
9683 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9684 non-RT and RT signal trampolines.
9685
7e8ed687
RE
96862002-02-26 Richard Earnshaw <rearnsha@arm.com>
9687
9688 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9689 (TARGET_NBPG, STACK_END_ADDR): Delete
9690 (VARIABLES_INSIDE_BLOCK): Delete.
9691
6972bc8b
AC
96922002-02-25 Andrew Cagney <ac131313@redhat.com>
9693
9694 * utils.c (perror_with_name): Make string parameter constant.
9695 (print_sys_errmsg): Ditto.
9696 (query): Ditto.
9697 * defs.h (perror_with_name): Update.
9698 (print_sys_errmsg): Update.
9699 (query): Update.
9700
aa32f823
DJ
97012002-02-25 Daniel Jacobowitz <drow@mvista.com>
9702
9703 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9704 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9705
19caaa45
PS
97062002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9707
9708 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9709 if it already matches the current architecture from the exec file.
9710 Include arch-utils.h for gdbarch_info_init prototype.
9711 * Makefile.in (rs6000-nat.o): Update dependencies.
9712
d951901f
EZ
97132002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9714
9715 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9716 list of exported variables.
9717
7ea81414
DJ
97182002-02-24 Daniel Jacobowitz <drow@mvista.com>
9719
9720 * gdbserver/configure.srv: New file.
9721 * gdbserver/configure.in: Use configure.srv instead
9722 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9723 from it.
9724 * gdbserver/configure: Regenerated.
9725 * gdbserver/terminal.h: New file.
9726 * gdbserver/Makefile.in: Update for configure changes. Remove
9727 more unneeded include paths.
9728
080fe24b
AC
97292002-02-24 Andrew Cagney <ac131313@redhat.com>
9730
9731 From wiz at danbala:
9732 * config/sparc/tm-sp64.h: Fix grammar and typos.
9733 Fix PR gdb/287.
9734
8605d56e
AC
97352002-02-24 Andrew Cagney <ac131313@redhat.com>
9736
9737 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9738 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9739 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9740 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9741 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9742 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9743 * s390-tdep.c: Ditto.
92362027
AC
9744 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9745 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9746 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9747 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9748 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9749 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9750 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9751 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9752 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9753 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9754 Fix PR gdb/378.
7e336ba1 9755
8ed32cc0
AC
97562002-02-23 Andrew Cagney <ac131313@redhat.com>
9757
a3007b6f
AC
9758 * lin-thread.c: Delete file.
9759 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9760 to gdb_proc_service.h.
9761 * configure: Re-generate.
9762
50a9e2f1
AC
9763 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9764 * serial.c (serial_open): Delete check for "ocd".
9765 Fix PR gdb/349.
9766
8b6e7932
AC
9767 * Makefile.in (linux-thread.o): Delete target.
9768 * linux-thread.c: Delete file.
9769
d155c46b
AC
9770 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9771 renamed SH files to be consistent.
9772
8ed32cc0
AC
9773 * symtab.c (sort_search_symbols): Use xfree.
9774
0e18d038
RE
97752002-02-23 Richard Earnshaw <rearnsha@arm.com>
9776
9777 * arm-linux-tdep.c (arm_linux_init_abi): Register
9778 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9779 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9780 definition with undef, since we don't want the sysvr4 definition.
9781 (SKIP_TRAMPOLINE_CODE): Likewise.
9782
27aac7ff
AC
97832002-02-23 Andrew Cagney <ac131313@redhat.com>
9784
9785 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9786
9787 * configure.in: (AC_CHECK_FUNCS) Added test for
9788 canonicalize_file_name Regenerated.
9789 * config.in, configure: Regenerated.
9790 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9791 defined use canonicalize_file_name.
7e336ba1 9792
65a6e0ee
MC
97932002-02-23 Michael Chastain <mec@shout.net>
9794
9795 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9796
47b95330
AC
97972002-02-23 Andrew Cagney <ac131313@redhat.com>
9798
9799 * README: Remove references to cygnus.com.
9800 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9801 dot com'' form. Remove references to cygnus.com and sourceware.
9802
696f451b
AC
98032002-02-23 Andrew Cagney <ac131313@redhat.com>
9804
9805 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9806 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9807 1003.1-2001 no longer allows "head -1".
9808 * gdb/Makefile.in (version.c): Likewise.
9809 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9810 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9811 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9812
bbaca940
AC
98132002-02-23 Andrew Cagney <ac131313@redhat.com>
9814
9815 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9816 * command.h (cmd_cfunc_eq): Declare.
9817 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9818
9819 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9820 ``struct cmd_list_element *''.
9821 * cli/cli-cmds.c (is_complete_command): Update. Use
9822 cmd_cfunc_eq.
9823 * top.c (execute_command): Pass the command to
9824 is_complete_command.
9825 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9826
b8b8b047
AC
98272002-02-23 Andrew Cagney <ac131313@redhat.com>
9828
9829 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9830 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9831 architecture defines.
9832 * s390-tdep.c (s390_gdbarch_init): Likewise.
9833
19d3fc80
RE
98342002-02-23 Richard Earnshaw <rearnsha@arm.com>
9835
9836 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9837 (arm_linux_push_arguments): Likewise.
9838 (arm_linux_init_abi): Register them. Also register linux-specific
9839 call_dummy_words.
9840 (find_minsym_and_objfile): Use strcmp, not STREQ.
9841 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9842 (arm_linux_call_dummy_words): Delete declaration.
9843 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9844 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9845 declarations.
9846 (LOWEST_PC): Delete.
9847
3ab13650
PS
98482002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9849
9850 * maint.c (print_section_info): Do not prepend `0x' to filepos
9851 output, it will be handled by local_hex_string_custom.
9852
19d3fc80 98532002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9854
9855 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9856 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9857 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9858
d85a5daf
JB
98592002-02-22 Jim Blandy <jimb@redhat.com>
9860
9861 Indicate that the bcache functions don't change the strings
9862 they're passed.
9863 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9864 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9865
eeb25b8a
PM
98662002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9867
9868 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9869
6badb179
CF
98702002-02-21 Christopher Faylor <cgf@redhat.com>
9871
9872 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9873 find the complete path to a loaded DLL.
9874
e8717518
FF
98752002-02-21 Fred Fish <fnf@redhat.com>
9876
9877 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9878 that marks the end of the range of a function, enter a line number
9879 entry that has a line number of zero and a PC offset that matches
9880 the end of the function. This starts a range of PC's for which no
9881 line number information is known.
9882 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9883 PC's for which no line number info is found (line number is zero)
9884 then we didn't find any valid line information.
9885 * symtab.h: Document use of zero line number entry.
9886
9abe5450
EZ
98872002-02-21 Elena Zannoni <ezannoni@redhat.com>
9888
9889 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9890 (have_ptrace_getvrregs): Define for run time checks.
9891 (gdb_vrregset_t): New type for Altivec register handling.
9892 (fetch_register, store_register): Fetch/store altivec register
9893 when needed.
9894 (fetch_altivec_register, store_altivec_register): New functions.
9895 (supply_vrregset, fill_vrregset): New functions.
9896 (fetch_altivec_registers, store_altivec_registers): New functions.
9897 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9898 registers as well.
9899
aaa38bb5
AJ
99002002-02-21 Jiri Smid <smid@suse.cz>
9901
9902 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9903
b34db576
RE
99042002-02-21 Richard Earnshaw <rearnsha@arm.com>
9905
9906 * Makefile.in (armnbsd-nat.o): Update dependencies.
9907 * armnbsd-nat.c (supply_gregset): New function. Common code to
9908 supply the integer register set.
9909 (supply_fparegset): New function. Similar for FPA registers.
9910 (fetch_regs, fetch_fp_regs): Use them.
9911 (fetch_core_registers): Likewise.
9912 (fetch_elfcore_registers): New function.
9913 (arm_netbsd_elfcore_fns): New core-file type specification.
9914 (_initialize_arm_netbsd_nat): Register it.
9915
3e56fc4b
RE
99162002-02-21 Richard Earnshaw <rearnsha@arm.com>
9917
9918 * armnbsd-nat.c: Include gdbcore.h.
9919 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9920 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9921 'void' to declaration, to shut up ARI.
9922 (fetch_core_registers): Make static. Rewrite using supply_register.
9923 (arm_netbsd_core_fns): New core-file type specification.
9924 (_initialize_arm_netbsd_nat): New function.
9925
097f6b0b
CF
99262002-02-21 Christopher Faylor <cgf@redhat.com>
9927
9928 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9929 value.
9930
c914e0cc
CF
99312002-02-20 Christopher Faylor <cgf@redhat.com>
9932
9933 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9934 fails.
9935
385fa495
DJ
99362002-02-20 Daniel Jacobowitz <drow@mvista.com>
9937
9938 * jv-exp.y (parse_number): Change type of implicit longs
9939 to builtin_type_uint64.
9940
e5f1222d
DJ
99412002-02-20 Daniel Jacobowitz <drow@mvista.com>
9942
9943 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9944 to be an integer instead of a `union wait'.
9945
75c9abc6
DJ
99462002-02-20 Daniel Jacobowitz <drow@mvista.com>
9947
9948 * mips-linux-nat.c: Call the operating system GNU/Linux.
9949 * mips-linux-tdep.c: Likewise.
9950 * mips-tdep.c: Likewise.
9951
551792a5
DJ
99522002-02-20 Daniel Jacobowitz <drow@mvista.com>
9953
9954 Fix PR gdb/265.
9955 * jv-exp.y (parse_number): Handle 64-bit integers.
9956
ee6e2b82
DJ
99572002-02-20 Daniel Jacobowitz <drow@mvista.com>
9958
9959 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9960 AC_STDC_HEADERS to AC_HEADER_STDC.
9961 * gdbserver/configure: Regenerated.
9962
a48442a0
RE
99632002-02-20 Richard Earnshaw <rearnsha@arm.com>
9964
9965 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9966 is defined.
9967 * sparc-tdep.c (get_longjmp_target): Likewise.
9968
fe419ffc
RE
99692002-02-20 Richard Earnshaw <rearnsha@arm.com>
9970
9971 * News: Add news about ARM and Multi-arch. Mention the new target
9972 arm*-*-netbsd*.
9973
5832ed7e
JB
99742002-02-19 Jim Blandy <jimb@redhat.com>
9975
9976 * stabsread.c (error_type_complaint): Improve error message.
9977
84563040
DJ
99782002-02-19 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * gdbserver/README: Update documentation.
9981 * gdbserver/configure.in: Update configury to match documentation.
9982 * gdbserver/Makefile.in: Likewise.
9983 * gdbserver/configure: Regenerated.
9984 * gdbserver/aclocal.m4: New file, generated by aclocal.
9985 * gdbserver/config.in: New file, generated by autoheader.
9986
375fd65b
RE
99872002-02-19 Richard Earnshaw <rearnsha@arm.com>
9988
9989 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9990 armnbsd-nat.c.
9991
08216dd7
RE
99922002-02-19 Richard Earnshaw <rearnsha@arm.com>
9993
9994 * arm-tdep.h (enum arm_float_model): New enum.
9995 (struct gdbarch_tdep): Add fp_model.
9996 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9997 up floating-point conversions until we know the floating-point model
9998 in use by the inferior. Don't complain about being unable to
9999 determine the ABI of the inferior when we don't have one.
10000 (arm_extract_return_value): Support different floating-point models.
10001 (arm_store_return_value): Likewise.
aaa38bb5 10002 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10003 ARM_FLOAT_SOFT.
10004 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10005
65d6d66a
PS
100062002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10007
10008 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10009 of ``current_gdbarch''.
10010
47221191
RE
100112002-02-19 Richard Earnshaw <rearnsha@arm.com>
10012
10013 * armnbsd-nat.c : ANSIfy all function declarations.
10014 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10015 (fetch_inferior_registers): Re-implement in terms of above.
10016 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10017 (store_inferior_registers): Re-implement in terms of above.
10018
fdf39c9a
RE
100192002-02-19 Richard Earnshaw <rearnsha@arm.com>
10020
aaa38bb5 10021 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10022 kernel.
10023 * arm-linux-tdep.c: Likewise.
10024 * config/arm/tm-linux.h: Likewise.
10025
93247f88
RE
100262002-02-19 Richard Earnshaw <rearnsha@arm.com>
10027
10028 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10029 * config/arm/nbsd.mt (TM_FILE): Delete.
10030 * config/arm/tm-nbsd.h: Delete.
10031
d7b486e7
RE
100322002-02-19 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10035 Initialize CALL_DUMMY_LENGTH.
10036
41d39a95
RE
100372002-02-19 Richard Earnshaw <rearnsha@arm.com>
10038
10039 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10040 function.
10041 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 10042 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
10043 defines one thing and that is incorrect for this port.
10044 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10045
e1195560
PM
100462002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10047
10048 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10049
c1748f97
PM
100502002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10051
10052 * win32-nat.c (display_selector): New function. Displays information
10053 about the information returned by GetThreadSelectorEntry API function.
10054 (display_selectors): New function. Displays the infomation of
10055 the selector given as argument, or of CS, DS ans FS selectors
10056 if no argument is given.
10057 ( _initialize_inftarg): Add "w32" as info prefix command.
10058 Add "info w32 selector" as command calling display_selectors.
10059
e41e6bbf
PM
100602002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10061
10062 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10063 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10064 if not defined.
10065
0d3a9f48
RE
100662002-02-18 Richard Earnshaw <rearnsha@arm.com>
10067
10068 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10069
3fb4b924
RE
100702002-02-18 Richard Earnshaw <rearnsha@arm.com>
10071
10072 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10073 (arm_fix_call_dummy): Call it.
10074 (arm_call_dummy_breakpoint_offset): Delete.
10075 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10076 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10077
7f55af32
AC
100782002-02-18 Andrew Cagney <ac131313@redhat.com>
10079
10080 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10081 Default to func_frame_chain_valid.
10082 * gdbarch.h, gdbarch.c: Re-generate.
10083 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10084
05f13b9c
EZ
100852002-02-18 Elena Zannoni <ezannoni@redhat.com>
10086
10087 * ppc-linux-nat.c: Update copyright.
10088 (fetch_register, store_register): Add tid parameter, don't compute
10089 tid here.
10090 (fetch_ppc_registers, store_ppc_registers): Add tid
10091 parameter. Pass it along to callees.
10092 (fetch_inferior_registers, store_inferior_registers): Compute tid
10093 here, and pass it to calleed functions.
10094 (fill_gregset, supply_fpregset): Clean up formatting.
10095
d7afb4c9
RE
100962002-02-18 Richard Earnshaw <rearnsha@arm.com>
10097
10098 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10099 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10100
9df628e0
RE
101012002-02-18 Richard Earnshaw <rearnsha@arm.com>
10102
10103 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10104 * gdbarch.c gdbarch.h: Regenerate.
10105 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10106 function.
10107 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10108 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10109 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10110
10111 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10112 * arm-tdep.c (arm_get_longjmp_target): New function.
10113 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10114 this to a positive value register arm_get_longjmp_target as the
10115 longjmp handler.
10116 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10117 (arm_linux_init_abi): Set up longjmp description in tdep.
10118 * armnbsd-nat.c (get_longjmp_target): Delete.
10119 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10120 description in tdep.
10121 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10122 (get_longjmp_target): Delete declaration.
10123 (GET_LONGJMP_TARGET): Delete.
10124 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10125 (GET_LONGJMP_TARGET): Delete.
10126
57bc8964
KB
101272002-02-17 Kevin Buettner <kevinb@redhat.com>
10128
10129 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10130 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10131 of ``current_gdbarch''.
10132
83d31a92
TT
101332002-02-17 Tom Tromey <tromey@redhat.com>
10134
10135 * cli/cli-cmds.c (compare_strings): New function.
10136 (complete_command): Only print each unique item once.
10137 * completer.h (complete_line): Declare.
10138 * completer.c (complete_line): New function.
10139 (line_completion_function): Use it.
10140
17ef5d92
AC
101412002-02-16 Andrew Cagney <ac131313@redhat.com>
10142
10143 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10144 * gdbarch.h, gdbarch.c: Re-generate.
10145
491b8946
DJ
101462002-02-16 Daniel Jacobowitz <drow@mvista.com>
10147
10148 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10149
101502002-02-16 Daniel Jacobowitz <drow@mvista.com>
10151
10152 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10153 * valops.c (value_arg_coerce): Don't take the address of a reference
10154 to convert an argument to a reference.
10155
dfe7f3ac
CF
101562002-02-15 Christopher Faylor <cgf@redhat.com>
10157
10158 * win32-nat.c (get_image_name): New function.
10159 (handle_load_dll): Use get_image_name function.
10160 (get_child_debug_event): Avoid registering debug events until possibly
10161 execed process is started.
10162 (child_create_inferior): Allow invocation via shell so that command
10163 line redirection, etc. works ok.
10164 (_initialize_inftarg): Add new command: "set shell" to control whether
10165 a shell is used to start a process.
10166
1d33e73a
DJ
101672002-02-15 Daniel Jacobowitz <drow@mvista.com>
10168
10169 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10170 instead of find_register_by_number.
10171 (cannot_store_register): Likewise.
10172
48cd0caa
PM
101732002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10174
aaa38bb5 10175 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10176 fprintf_unfiltered (gdb_stderr, ...).
10177
8656e7d8
DJ
101782002-02-15 Daniel Jacobowitz <drow@mvista.com>
10179
10180 * gdbserver/gdbserver.1: Document --attach.
10181
66e810cd
RE
101822002-02-15 Richard Earnshaw <rearnsha@arm.com>
10183
10184 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10185 descriptions.
10186 * arm-tdep.c (arm_default_arm_le_breakpoint)
10187 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10188 (arm_default_thumb_be_breakpoint): New. Initialize them from
10189 traditional breakpoint defines.
10190 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10191 (arm_gdbarch_init): Initialize new breakpoint variables.
10192 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10193 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10194 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10195 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10196 code out to ...
10197 (arm_netbsd_init_abi_common): ... here; new function.
10198 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10199 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10200 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10201 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10202
97e03143
RE
102032002-02-15 Richard Earnshaw <rearnsha@arm.com>
10204
10205 * arm-tdep.h (enum arm_abi): New enum.
10206 (struct gdbarch_tdep): New structure.
10207 (LOWEST_PC): Provide a default.
10208 (arm_gdbarch_register_os_abi): Declare new function.
10209 * arm-tdep.c (arm_abi_names): New array.
10210 (process_note_abi_tag_sections): New function.
10211 (get_elfosabi): New function.
10212 (arm_gdbarch_register_os_abi): New function.
10213 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10214 support for that ABI has been built in, then call the appropriate
10215 configuration routine. Use gdbarch_num_regs() to get the number
10216 of registers.
10217 (arm_dump_tdep): New function.
10218 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10219 place-holder functions.
10220 (_initialize_arm_tdep): Register them.
10221 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10222
10223 * armnbsd-tdep.c: New file.
10224 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10225 * config/arm/nbsd.mt (TDEPFILES): Add it.
10226 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10227
10228 * armnbsd-nat.c: Include regcache.h.
10229 * Makefile.in (armnbsd-nat.o): Update dependency list.
10230
10231 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10232
ad68be46
DJ
102332002-02-14 Daniel Jacobowitz <drow@mvista.com>
10234
10235 * gdbserver/Makefile.in: Fix typos in target rules.
10236
003d6d1d
DJ
102372002-02-14 Daniel Jacobowitz <drow@mvista.com>
10238
aaa38bb5 10239 Fix part of PR gdb/267.
003d6d1d
DJ
10240 * linespec.c (find_methods): Handle constructors specially for now.
10241
6b230f1b
CV
102422002-02-14 Corinna Vinschen <vinschen@redhat.com>
10243
10244 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10245 handling.
10246 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10247 standard_coerce_float_to_double().
10248
1ea98d12
CF
102492002-02-14 Christopher Faylor <cgf@redhat.com>
10250
10251 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10252 GDBINIT_FILENAME.
10253
dd47e6fd
EZ
102542002-02-14 Elena Zannoni <ezannoni@redhat.com>
10255
10256 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10257 find_variant_by_name, because it confuses the multiarch
10258 framework. Return NULL if there isn't an architecture with the
10259 user supplied name, instead of forcing a different one without
10260 recording the change with the multiarch machinery.
10261 (find_variant_by_name): Delete.
10262
d7e39b9e
PS
102632002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10264
10265 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10266 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10267
76e42a4f
MH
102682002-02-13 Martin M. Hunt <hunt@redhat.com>
10269
aaa38bb5 10270 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10271 print_frame_info_listing_hook, set current_source_symtab.
10272
0a30fbc4
DJ
102732002-02-14 Daniel Jacobowitz <drow@mvista.com>
10274
10275 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10276 and remove unused $(INCLUDE_DIR).
10277 Add regcache.c to OBS.
10278 Add generated register protocol files to clean target.
10279 Update dependencies for new objects, obsolete old target code.
10280
10281 * gdbserver/linux-low.c: Remove all platform-specific code to
10282 new files. Remove various dead code. Update to use regcache
10283 functionality.
10284 * gdbserver/remote-utils.c (fromhex): Add return statement
10285 to quiet warning.
10286 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10287 constant.
10288 (input_interrupt): Add integer parameter to match prototype
10289 of a signal handler.
10290 (outreg): Use register_data ().
10291 (prepare_resume_reply): Use gdbserver_expedite_regs.
10292 * gdbserver/server.c (main): Dynamically allocate own_buf because
10293 PBUFSIZ is no longer constant. Use registers_to_string () and
10294 registers_from_string ().
10295 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10296 for error (), fatal (), and warning (). Update definition of
10297 PBUFSIZ to use regcache functionality. Add include guard.
10298 * gdbserver/utils.c (fatal): Add missing ``const''.
10299 (warning): New function.
10300
10301 * regformats/regdat.sh: Include "regcache.h" in generated files.
10302 Provide init_registers () function.
10303 * regformats/regdef.h: Add prototype for set_register_cache ().
10304 Add include guard.
10305
10306 * gdbserver/linux-arm-low.c: New file.
10307 * gdbserver/linux-i386-low.c: New file.
10308 * gdbserver/linux-ia64-low.c: New file.
10309 * gdbserver/linux-m68k-low.c: New file.
10310 * gdbserver/linux-mips-low.c: New file.
10311 * gdbserver/linux-ppc-low.c: New file.
10312 * gdbserver/linux-sh-low.c: New file.
10313
10314 * gdbserver/regcache.c: New file.
10315 * gdbserver/regcache.h: New file.
10316
10317 * gdbserver/low-linux.c: Removed obsolete file.
10318
4cc841d0
DJ
103192002-02-14 Daniel Jacobowitz <drow@mvista.com>
10320
10321 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10322 * config/i386/linux.mt: Likewise.
10323 * config/ia64/linux.mt: Likewise.
10324 * config/m68k/linux.mh: Likewise.
10325 * config/powerpc/linux.mh: Likewise.
10326 * config/mips/linux.mt: Likewise.
10327
10328 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10329
10330 * config/i386/i386lynx.mh: Mark gdbserver variables
10331 as (currently) obsolete for this target.
10332 * config/i386/nbsd.mt: Likewise.
10333 * config/i386/nbsdelf.mt: Likewise.
10334 * config/m32r/m32r.mt: Likewise.
10335 * config/m68k/m68klynx.mh: Likewise.
10336 * config/m68k/nbsd.mt: Likewise.
10337 * config/m68k/sun3os4.mh: Likewise.
10338 * config/mips/vr5000.mt: Likewise.
10339 * config/ns32k/nbsd.mt: Likewise.
10340 * config/pa/hppabsd.mh: Likewise.
10341 * config/pa/hppaosf.mh: Likewise.
10342 * config/powerpc/nbsd.mt: Likewise.
10343 * config/rs6000/rs6000lynx.mh: Likewise.
10344 * config/s390/s390.mt: Likewise.
10345 * config/s390/s390x.mt: Likewise.
10346 * config/sparc/sparclynx.mh: Likewise.
10347 * config/sparc/sun4os4.mh: Likewise.
10348 * config/i386/x86-64linux.mt: Likewise.
10349 * config/sparc/linux.mh: Likewise.
10350
a85f51e7
DJ
103512002-02-14 Daniel Jacobowitz <drow@mvista.com>
10352
10353 * configure.tgt: Configure gdbserver only for known working
10354 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10355 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10356 SUBDIRS if it is configured. Update comment for ${nativefile}.
10357 * configure: Regenerated.
10358
65554fef
MS
103592002-02-13 Michael Snyder <msnyder@redhat.com>
10360
670a52db
MS
10361 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10362
6dbdc4a3
MS
10363 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10364 (default_gcore_mach): Just return 0, work around a problem in bfd.
10365 (default_gcore_target): OK to return NULL if exec_bfd is null.
10366 (make_mem_sec): Use a cast, avoid a warning.
10367
10368 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10369 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10370 sizeof (host pointer) != sizeof (target pointer)).
10371 (procfs_make_note_section): Avoid overflow in psargs string.
10372
aaa38bb5 10373 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10374 implementation return an error.
10375
103762002-02-13 Rodney Brown <rbrown64@csc.com.au>
10377
10378 * procfs.c (procfs_make_note_section): Provide a default definition
10379 (for alpha-dec-osf4.0f). Fix typos.
10380
1e4d76e7
EZ
103812002-02-13 Elena Zannoni <ezannoni@redhat.com>
10382
10383 * linux-proc.c: Add include of regcache.h.
10384 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10385
b6d1a1d5
AC
103862002-02-13 Andrew Cagney <ac131313@redhat.com>
10387
10388 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10389 * memattr.c (create_mem_region): Disallow useless empty region.
10390 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10391 non-overlapping.
b6d1a1d5 10392
6c6ea35e
MC
103932002-02-13 Michael Chastain <mec@shout.net>
10394
10395 * defs.h: Kill CONST_PTR.
10396 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10397 * c-lang.c (c_builtin_types): Likewise.
10398 * ch-lang.c (ch_builtin_types): Likewise.
10399 * f-lang.c (f_builtin_types): Likewise.
10400 * language.c (unknown_builtin_types): Likewise.
10401 * m2-lang.c (m2_builtin_types): Likewise.
10402 * p-lang.c (pascal_builtin_types): Likewise.
10403 * scm-lang.c (c_builtin_types): Likewise.
10404
3e0b0f48
KS
104052002-02-13 Keith Seitz <keiths@redhat.com>
10406
10407 * arm-tdep.h (arm_get_next_pc): Add declaration.
10408
67255d04
RE
104092002-02-13 Richard Earnshaw <rearnsha@arm.com>
10410
10411 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10412 with other related struct-returning functions.
10413 (arm_extract_struct_value_address): New function.
10414 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10415 initialize float_format, double_format and long_double_format as
10416 appropriate to the endianness of the target.
10417 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10418 (arm_use_struct_convention): Delete declaration.
10419 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10420
079777f6
KS
104212002-02-13 Keith Seitz <keiths@redhat.com>
10422
10423 * defs.h (core_addr_to_string_nz): New function.
10424
34588f23
MK
104252002-02-13 Mark Kettenis <kettenis@gnu.org>
10426
10427 Apply missing bits of 2002-01-15 patch.
10428 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10429 (fill_fpregset): Use i387_fill_fsave.
10430
49b563f9
KS
104312002-02-12 Keith Seitz <keiths@redhat.com>
10432
49b563f9
KS
10433 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10434 (core_addr_to_string_nz): New function.
10435
aeb98c60
RE
104362002-02-11 Richard Earnshaw <rearnsha@arm.com>
10437
10438 * arm-linux-nat.c: Really include arm-tdep.h.
10439 * config/arm/tm-linux.h (struct type, struct value): Declare.
10440
65554fef
MS
104412002-02-11 Michael Snyder <msnyder@redhat.com>
10442
10443 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10444 (gcore section): Ifdef for Solaris and Unixware only.
10445 (procfs_do_thread_registers): Unixware needs one lwpstatus
10446 per thread (not one prstatus or pstatus).
10447 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10448 not over all gdb threads. For unixware, call elfcore_write_pstatus
10449 once before iterating over threads.
10450
34e8f22d
RE
104512002-02-11 Richard Earnshaw <rearnsha@arm.com>
10452
10453 * arm-tdep.h: New file.
10454 * arm-tdep.c: Include arm-tdep.h.
10455 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10456 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10457 (arm_print_float_info, arm_register_type, convert_to_extended)
10458 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10459 (arm_extract_return_value, arm_register_name): Make static.
10460 (arm_software_single_step): Similarly. Fix types in declaration.
10461 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10462 (arm_store_return_value, arm_store_struct_return): New functions.
10463 (arm_gdbarch_init): Register the above functions. Also register
10464 call_dummy_start_offset, sizeof_call_dummy_words,
10465 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10466 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10467 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10468 prologue_cache.saved_regs here, rather than ...
10469 (_initialize_arm_tdep): ... here.
10470 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10471 declarations.
10472 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10473 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10474 (arm_print_float_info, arm_register_type, convert_to_extended)
10475 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10476 (arm_extract_return_value, arm_register_name): Delete declarations.
10477 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10478 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10479 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10480 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10481 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10482 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10483 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10484 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10485 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10486 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10487 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10488 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10489 interface.
10490 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10491 * remote-rdi.c remote-rdp.c: Likewise.
10492 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10493 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10494 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10495 definition.
10496
10497 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10498 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10499 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10500 from non-ARM_ prefixed definitions.
10501 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10502 all uses of above.
10503 * remote-rdi.c remote-rdp.c: Likewise.
10504 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10505
148754e5
RE
105062002-02-11 Richard Earnshaw <rearnsha@arm.com>
10507
10508 * arm-tdep.c (arm_frameless_function_invocation)
10509 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10510 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10511 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10512 (arm_pop_frame, arm_get_next_pc): Make static.
10513 (arm_gdbarch_init): Register above in gdbarch structure.
10514 (arm_read_fp): Renamed from arm_target_read_fp.
10515 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10516 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10517 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10518 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10519 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10520 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10521 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10522 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10523 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10524 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10525 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10526
434d2d4f
DJ
105272002-02-10 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * symtab.c (compare_search_syms): New function.
10530 (sort_search_symbols): New function.
10531 (search_symbols): Sort symbols after searching rather than
10532 before.
10533
55241689
AC
105342002-02-10 Andrew Cagney <ac131313@redhat.com>
10535
10536 * NEWS: Linux -> GNU/Linux.
10537
028c194b
AC
105382002-02-10 Andrew Cagney <ac131313@redhat.com>
10539
10540 * gdbarch.sh: For for level one methods, disallow a definition
10541 when partially multi-arched. Add comments explaining rationale.
10542 * gdbarch.h: Re-generate.
10543
6acf50cd
AC
105442002-02-10 Andrew Cagney <ac131313@redhat.com>
10545
10546 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10547 multi-arch partial.
aaa38bb5 10548
50248794
AC
105492002-02-10 Andrew Cagney <ac131313@redhat.com>
10550
10551 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10552 field. Use diff -u.
10553 * gdbarch.c: Re-generate.
10554
c30e0066
AC
105552002-02-10 Andrew Cagney <ac131313@redhat.com>
10556
9b56c5f3 10557 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10558 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10559 partial.
10560
6e6d6484
AC
105612002-02-10 Andrew Cagney <ac131313@redhat.com>
10562
10563 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10564 multi-arch partial.
10565 (PUSH_ARGUMENTS): Switch to using predefault.
10566 * gdbarch.c: Regenerate.
10567
c203844d
AC
105682002-02-10 Andrew Cagney <ac131313@redhat.com>
10569
10570 * valops.c (PUSH_ARGUMENTS): Delete definition.
10571 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10572 partial. Default to default_push_arguments.
10573 * gdbarch.h, gdbarch.c: Regenerate.
10574
b5a2688f
AC
105752002-02-09 Andrew Cagney <ac131313@redhat.com>
10576
10577 * defs.h (throw_exception): Rename return_to_top_level. Update
10578 comments.
10579 * utils.c (error_stream, internal_verror, quit): Ditto.
10580 * top.c (throw_exception, catcher): Ditto.
10581 * sparclet-rom.c (sparclet_load): Ditto.
10582 * remote.c (interrupt_query, minitelnet): Ditto.
10583 * remote-sds.c (interrupt_query): Ditto.
10584 * remote-mips.c (mips_error, mips_kill): Ditto.
10585 * ocd.c (interrupt_query): Ditto.
10586 * monitor.c (monitor_interrupt_query): Ditto.
10587 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10588 * target.h: Update comment.
aaa38bb5 10589
b5a2688f 10590 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10591
2fa5c1e0
AC
105922002-02-09 Andrew Cagney <ac131313@redhat.com>
10593
10594 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10595 default_double_format.
10596 * gdbarch.h, gdbarch.c: Re-generate.
10597 * findvar.c (floatformat_unknown): Delete variable definition.
10598 * doublest.h (floatformat_unknown): Delete variable declaration.
10599
da966255
JB
106002002-02-09 Jim Blandy <jimb@redhat.com>
10601
10602 * stabsread.c (read_type): Add code to parse Sun's syntax for
10603 prototyped function types.
10604
123a4891
AC
106052002-02-09 Andrew Cagney <ac131313@redhat.com>
10606
10607 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10608 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10609
fb39c8f3
PS
106102002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10611
10612 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10613 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10614 now _initialize_xcoffsolib gets called again and overrides the
10615 commands from solib.c in a native configuration.
10616
0b87a11d
MK
106172002-02-09 Mark Kettenis <kettenis@gnu.org>
10618
10619 * doublest.c (store_typed_floating): Don't try to return a value.
10620 Fixes PR gdb/290.
10621
bdc2fc72
JB
106222002-02-08 Jim Blandy <jimb@redhat.com>
10623
10624 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10625 is prototyped and has no arguments, print its argument list as
10626 `(void)'.
10627
da69bbcf
CD
106282002-02-08 Chris Demetriou <cgd@broadcom.com>
10629
10630 * MAINTAINERS (write-after-approval): Add myself.
10631 (paper-trail): I've escaped!
aaa38bb5 10632
b69571f5
CF
106332002-02-08 Christopher Faylor <cgf@redhat.com>
10634
10635 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10636 changes.
10637 (_initialize_check_for_gdb_ini): Ditto.
10638
f6871398
MH
106392002-02-08 Martin M. Hunt <hunt@redhat.com>
10640
10641 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10642 xaprintf -> xasprintf.
10643
4e52d31c
PM
106442002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10645
10646 * win32-nat.c: Remove use of printf and sprintf functions.
10647
39bbf761
RE
106482002-02-08 Richard Earnshaw <rearnsha@arm.com>
10649
10650 * arm-tdep.c (arm_frame_chain_valid): Make static.
10651 (arm_push_arguments): Likewise.
10652 (arm_gdbarch_init): New function.
10653 (_initialize_arm_tdep): Call it.
10654 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10655 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10656 (FRAME_CHAIN_VALID): Delete.
10657 (arm_frame_chain_valid): Delete declaration.
10658 (PUSH_ARGUMENTS): Delete.
10659 (arm_push_arguments): Delete declaration.
10660 (CALL_DUMMY_P): Delete.
10661
9c9532c9
CV
106622002-02-08 Andrew Cagney <ac131313@redhat.com>
10663 Corinna Vinschen <vinschen@redhat.com>
10664
10665 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10666 on builtin float types.
10667
4e8f7a8b
DJ
106682002-02-08 Daniel Jacobowitz <drow@mvista.com>
10669
10670 * utils.c: Include <curses.h> before "bfd.h".
10671 * tui/tui-hooks.c: Likewise.
10672 * tui/tui.c: Likewise.
10673 * tui/tuiCommand.c: Likewise.
10674 * tui/tuiData.c: Likewise.
10675 * tui/tuiDataWin.c: Likewise.
10676 * tui/tuiDisassem.c: Likewise.
10677 * tui/tuiGeneralWin.c: Likewise.
10678 * tui/tuiIO.c: Likewise.
10679 * tui/tuiLayout.c: Likewise.
10680 * tui/tuiRegs.c: Likewise.
10681 * tui/tuiSource.c: Likewise.
10682 * tui/tuiSourceWin.c: Likewise.
10683 * tui/tuiStack.c: Likewise.
10684 * tui/tuiWin.c: Likewise.
10685
cd4bffcf
EZ
106862002-02-07 Elena Zannoni <ezannoni@redhat.com>
10687
10688 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10689 to include space for pseudoregs as well. Update loops accordingly.
10690 (sh_fp_frame_init_saved_regs): Ditto.
10691 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10692
26806ce2
AC
106932002-02-07 Andrew Cagney <ac131313@redhat.com>
10694
10695 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10696 Add Richard Earnshaw to Arm maintainers.
10697
97fdab62
AC
106982002-02-07 Andrew Cagney <ac131313@redhat.com>
10699
a6b98203
AC
10700 * defs.h (warning_begin): Delete declaration.
10701
97fdab62
AC
10702 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10703 Delete macro.
10704
78b29b40
MS
107052002-02-07 Michael Snyder <msnyder@redhat.com>
10706
aaa38bb5 10707 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10708 Logic bug, remove misplaced else.
10709
d8849953
KD
107102002-02-07 Klee Dienes <klee@apple.com>
10711
10712 * fork-inferior.c (fork_inferior): Add '!' to the list of
10713 characters that need to be quoted when building a string for the
10714 shell. Quote '!' specifically with a backslash, since CSH chokes
10715 when trying to evaluate "str!str".
aaa38bb5 10716
095778a0
NC
107172002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10718
10719 * rdi-share/host.h: Only provide a typedef for bool if it is not
10720 defined.
10721
1900040c
MS
107222002-02-04 Michael Snyder <msnyder@redhat.com>
10723
10724 * breakpoint.h (enum bptype): Add new overlay event bp type.
10725 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10726
1900040c
MS
10727 * breakpoint.c (create_internal_breakpoint): New function.
10728 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10729 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10730 (create_thread_event_breakpoint): Ditto.
10731 (create_solib_event_breakpoint): Ditto.
10732 (create_overlay_event_breakpoint): New function.
10733 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10734 (update_breakpoints_after_exec): Delete and re-initialize
10735 overlay event breakpoints after an exec. Add FIXME comment
10736 about longjmp breakpoint.
10737 (print_it_typical): Ignore overlay event breakpoints.
10738 (print_one_breakpoint): Ditto.
10739 (mention): Ditto.
10740 (bpstat_what): Do not stop for overlay event breakpoints.
10741 (delete_breakpoint): Don't delete overlay event breakpoints.
10742 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10743 (breakpoint_re_set): Re-create overlay event breakpoint.
10744
10745 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10746 (overlay_manual_command): Disable overlay breakpoints.
10747 (overlay_off_command): Disable overlay breakpoints.
10748
082fc60d
RE
107492002-02-06 Richard Earnshaw <rearnsha@arm.com>
10750
10751 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10752 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10753 to here from config/tm-arm.h.
10754 (coff_sym_is_thumb): Make static.
10755 (arm_elf_make_msymbol_special): New function.
10756 (arm_coff_make_msymbol_special): New function.
10757 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10758 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10759 (coff_sym_is_thumb): Delete declaration.
10760 (arm_elf_make_msymbol_special): Declare.
10761 (arm_coff_make_msymbol_special): Declare.
10762 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10763 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10764
039c5766
RE
107652002-02-06 Richard Earnshaw <rearnsha@arm.com>
10766
10767 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10768
107692002-02-06 Richard Earnshaw <rearnsha@arm.com>
10770
10771 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10772 * gdbarch.c gdbarch.h: Regenerate.
10773 * arch-utils.c (default_print_float_info): New function.
10774 * arch-utils.h (default_print_float_info): Prototype it.
10775 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10776 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10777 (PRINT_FLOAT_INFO): Document it.
10778
10779 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10780 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10781 (PRINT_FLOAT_INFO): Define.
10782
58fa08f0
PM
107832002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10784
aaa38bb5 10785 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10786 Add typecast to sprintf argument to suppress a warning.
10787
7393af7c
PM
107882002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10789
58fa08f0 10790 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10791 to allow easier handling of pass state.
10792 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10793 that gives exception name and address.
10794 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10795 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10796 exceptions added.
aaa38bb5
AJ
10797 (child_continue): Correctly report continue_status.
10798 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10799 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10800 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10801 the exception should be passed to debuggee or not.
10802
6af4589c
MS
108032002-02-05 Michael Snyder <msnyder@redhat.com>
10804
10805 * regcache.c (fetch_register): Call target_fetch_register
10806 only if we don't call FETCH_PSEUDO_REGISTER.
10807 (store_register): Call target_store_register only if we
10808 don't call STORE_PSEUDO_REGISTER.
10809
a2cf933a
EZ
108102002-02-05 Elena Zannoni <ezannoni@redhat.com>
10811
10812 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10813 ELF_MAKE_MSYMBOL_SPECIAL.
10814 * gdbarch.c, gdbarch.h: Regenerate.
10815 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10816 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10817 * elfread.c (elf_symtab_read): Compile use of
10818 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10819 multiarched.
10820 * coffread.c (coff_symtab_read): Ditto, for
10821 COFF_MAKE_MSYMBOL_SPECIAL.
10822
6bb7be43
JB
108232002-02-05 Jim Blandy <jimb@redhat.com>
10824
10825 * solib-svr4.c (svr4_truncate_ptr): New function.
10826 (svr4_relocate_section_addresses): Do the address arithmetic with
10827 the appropriate truncation for target addresses, even when
10828 CORE_ADDR is larger than a target address.
10829
e18651ec
DJ
108302002-02-05 Daniel Jacobowitz <drow@mvista.com>
10831
10832 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10833 to (int *).
10834
6b2725be
DJ
108352002-02-05 Daniel Jacobowitz <drow@mvista.com>
10836
10837 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10838 code.
10839
fca9e603
DJ
108402002-02-05 Daniel Jacobowitz <drow@mvista.com>
10841
10842 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10843
6c537a52
DJ
108442002-02-05 Daniel Jacobowitz <drow@mvista.com>
10845
10846 * gdbserver/linux-low.c: Remove unused include files.
10847
d844cde6
DJ
108482002-02-05 Daniel Jacobowitz <drow@mvista.com>
10849
10850 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10851 (read_inferior_memory): Use it.
10852 (write_inferior_memory): Likewise.
10853
d07c63e7
DJ
108542002-02-05 Daniel Jacobowitz <drow@mvista.com>
10855
10856 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10857 grubbing through sys_errlist.
10858
da6d8c04
DJ
108592002-02-05 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10862
5b421780
PM
108632002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10864 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10865
9f60d481
AC
108662002-02-04 Andrew Cagney <ac131313@redhat.com>
10867
10868 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10869 (do_sfunc, set_cmd_sfunc): New functions.
10870
10871 * command.h (struct cmd_list_element): Add field func.
10872 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10873 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10874 * cli/cli-decode.h: Ditto.
10875
10876 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10877 (help_all, help_cmd_list): Ditto.
10878 (find_cmd, complete_on_cmdlist): Ditto.
10879 * top.c (execute_command): Ditto.
10880
10881 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10882 function.sfunc.
10883
10884 * infcmd.c (notice_args_read): Fix function signature.
10885
10886 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10887 * cli/cli-decode.c (add_set_cmd): Ditto.
10888 * utils.c (initialize_utils): Ditto.
10889 * maint.c (_initialize_maint_cmds): Ditto.
10890 * infrun.c (_initialize_infrun): Ditto.
10891 * demangle.c (_initialize_demangler): Ditto.
10892 * remote.c (add_packet_config_cmd): Ditto.
10893 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10894 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10895 * proc-api.c (_initialize_proc_api): Ditto.
10896 * kod.c (_initialize_kod): Ditto.
10897 * valprint.c (_initialize_valprint): Ditto.
10898 * top.c (init_main): Ditto.
10899 * infcmd.c (_initialize_infcmd): Ditto.
10900 * corefile.c (_initialize_core): Ditto.
10901 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10902 * arch-utils.c (initialize_current_architecture): Ditto.
10903 (_initialize_gdbarch_utils): Ditto.
10904 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10905
10906 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10907 * wince.c (_initialize_inftarg): Ditto.
10908 * symfile.c (_initialize_symfile): Ditto.
10909 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10910 * language.c (_initialize_language): Ditto.
10911 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10912
f9ba0717
MS
109132002-02-04 Michael Snyder <msnyder@redhat.com>
10914
10915 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10916
0c74b2a7
DJ
109172002-02-04 Daniel Jacobowitz <drow@mvista.com>
10918
10919 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10920 Add rules for building the register data files.
10921
c638789f
DJ
109222002-02-04 Daniel Jacobowitz <drow@mvista.com>
10923
10924 * regformats/regdat.sh: Add braces to the definition of
10925 expedite_regs_${arch}.
10926
db253027
DJ
109272002-02-04 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * regformats/regdef.h (struct reg): Add comment describing the
10930 requirements for offset and size fields.
10931
206be19c
AS
109322002-02-04 Andreas Schwab <schwab@suse.de>
10933
10934 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10935 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10936
181c1381
RE
109372002-02-04 Richard Earnshaw <rearnsha@arm.com>
10938
10939 * gdbarch.sh (copyright): Update years in generated header.
10940 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10941 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10942 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10943 * dbxread.c: Likewise.
10944 * dwarfread.c: Likewise.
10945 * elfread.c: Likewise.
10946 * somread.c: Likewise.
10947
10948 * arm-tdep.c (arm_smash_text_address): New function.
10949 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10950
fa4ba8da
PM
109512002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10952
10953 Add support for hardware watchpoints on win32 native.
aaa38bb5 10954 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10955 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10956 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10957 of debug registers.
10958 (debug_registers_changed): New variable. Reflects when debug registers
10959 are changed and need to be written to inferior.
aaa38bb5 10960 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10961 was set, used when new threads are created.
10962 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10963 i386-nat code.
10964 (thread_rec): Set dr array if id is the thread of current_event .
10965 (child_continue, child_resume): Change the debug registers for all
10966 threads if debug_registers_changed.
10967 (child_add_thread): Change the debug registers if debug_registers_used.
10968 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10969 Link nm.h to new nm-cygwin.h file.
10970 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10971 of hardware registers.
10972
a73c86fb
AC
109732002-02-03 Andrew Cagney <ac131313@redhat.com>
10974
10975 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10976 Restore behavour broken by 2002-01-20 Andrew Cagney
10977 <ac131313@redhat.com> IEEE_FLOAT removal.
10978
acf5ed49
DJ
109792002-02-03 Daniel Jacobowitz <drow@mvista.com>
10980
10981 * c-valprint.c (c_val_print): Pass a proper valaddr to
10982 cp_print_class_method.
10983 * valops.c (search_struct_method): If there is only one method
10984 and args is NULL, return that method.
10985
493d28d5
DJ
109862002-02-03 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10989 accessing tag_name directly.
10990
7495dfdb
DJ
109912002-02-03 Daniel Jacobowitz <drow@mvista.com>
10992
10993 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10994 of accessing tag_name directly.
10995
dd6bda65
DJ
109962002-02-03 Daniel Jacobowitz <drow@mvista.com>
10997
10998 PR gdb/280
10999 * gdbtypes.c (replace_type): New function.
11000 * gdbtypes.h (replace_type): Add prototype.
11001 * stabsread.c (read_type): Use replace_type.
11002
88fe217c
RE
110032002-02-03 Richard Earnshaw <rearnsha@arm.com>
11004
11005 * Makefile.in (memattr.o): Add missing dependencies rule.
11006
e5d66720
PS
110072002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11008
11009 * breakpoint.c (break_at_finish_command): Really export.
11010 (break_at_finish_at_depth_command): Ditto.
11011 (tbreak_at_finish_command): Ditto.
11012 * hppa-tdep.c: Include completer.h.
11013 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11014 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11015
fffee0be
AC
110162002-02-01 Andrew Cagney <ac131313@redhat.com>
11017
11018 * utils.c (do_write): New function.
11019 (error_stream): Rewrite combining the code from error_begin and
11020 verror.
11021 (verror): Rewrite using error_stream.
11022 (error_begin): Delete function.
11023
255e7dbf
AC
110242002-02-01 Andrew Cagney <ac131313@redhat.com>
11025
11026 * utils.c (error_begin): Make static.
11027 * defs.h (error_begin): Delete declaration.
11028
11029 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11030 (decode_line_1): Use cplusplus_error instead of error_begin,
11031 cplusplus_hint and return_to_top_level.
11032 * coffread.c (coff_symfile_read): Use error instead of error_begin
11033 and return_to_top_level.
11034 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11035
ddfe3c15
AC
110362002-02-01 Andrew Cagney <ac131313@redhat.com>
11037
11038 * language.h (type_error, range_error): Make string parameter
11039 constant.
11040 * language.c (warning_pre_print): Delete extern declaration.
11041 * dwarfread.c (warning_pre_print): Ditto.
11042 * language.c (type_error, range_error): Rewrite to use verror and
11043 vwarning instead of warning_begin.
11044
03ac34d5
MS
110452002-02-01 Michael Snyder <msnyder@redhat.com>
11046
261c4ca2
MS
11047 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11048 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 11049
e00d1dc8
AC
110502002-02-01 Andrew Cagney <ac131313@redhat.com>
11051
11052 * command.h (NO_FUNCTION): Delete macro.
11053 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11054 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11055 * tracepoint.c (_initialize_tracepoint): Ditto.
11056 * cli/cli-decode.c (add_set_cmd): Ditto.
11057 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 11058
76b79d6e
DJ
110592002-02-01 Daniel Jacobowitz <drow@mvista.com>
11060
11061 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11062 Update ``this'' pointer when calling virtual functions.
11063
799f9e91
MS
110642002-02-01 Michael Snyder <msnyder@redhat.com>
11065
c7bd442c 11066 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
11067 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11068
3cf384d4
DJ
110692002-02-01 Daniel Jacobowitz <drow@mvista.com>
11070
11071 * regformats/reg-arm.dat: New file.
11072 * regformats/reg-i386.dat: New file.
11073 * regformats/reg-ia64.dat: New file.
11074 * regformats/reg-m68k.dat: New file.
11075 * regformats/reg-mips.dat: New file.
11076 * regformats/reg-ppc.dat: New file.
11077 * regformats/reg-sh.dat: New file.
11078 * regformats/regdef.h: New file.
11079 * regformats/regdat.sh: New file.
11080
0defa245
RE
110812002-02-01 Richard Earnshaw <reanrsha@arm.com>
11082
11083 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11084 (arm_frame_args_address, arm_frame_locals_address): New functions.
11085 (arm_frame_num_args): New function.
11086 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11087 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11088 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11089
405f26e6
MS
110902002-01-31 Michael Snyder <msnyder@redhat.com>
11091
502fd408
MS
11092 * breakpoint.c (break_at_finish_command): Export.
11093 (break_at_finish_at_depth_command): Export.
11094 (tbreak_at_finish_command): Export.
d6020d45 11095 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 11096 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 11097 "txbreak" commands, which are HPPA specific.
502fd408 11098
7d35e135
MS
11099 * printcmd.c (disassemble_command): Remove an ancient
11100 artifact of an old merge.
11101
aaa38bb5 11102 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
11103 Define enum constant values for overlay mode.
11104 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
11105 (overlay_is_mapped, overlay_auto_command,
11106 overlay_manual_command): Ditto.
d874f1e2 11107
aaa38bb5
AJ
11108 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11109 breakpoint_here_p, breakpoint_inserted_here_p,
11110 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
11111 describe_other_breakpoints, check_duplicates, clear_command):
11112 Coding standard fixes.
11113
8add0441 11114 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 11115 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
11116 code: check bfd SEC_READONLY flag for section.
11117
e351066e
AC
111182002-01-31 Andrew Cagney <ac131313@redhat.com>
11119
7d35e135 11120 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 11121
8a48e967
DJ
111222002-01-30 Daniel Jacobowitz <drow@mvista.com>
11123
11124 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11125 data symbols, since we search based on textlow and texthigh.
11126 (find_pc_sect_symtab): Likewise.
11127
f5a96129
AC
111282002-01-30 Andrew Cagney <ac131313@redhat.com>
11129
11130 * defs.h (vwarning): Declare.
f5a96129
AC
11131 * utils.c (vwarning): New function.
11132 (warning): Call vwarning.
11133 (warning_begin): Delete function.
11134
11135 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11136 the warning message.
11137 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11138 warning_begin.
11139
cefd4ef5
MS
111402002-01-30 Michael Snyder <msnyder@redhat.com>
11141
1a703748
MS
11142 * NEWS: Mention "set trust-readonly-sections" command.
11143 Mention generate-core-file command.
cefd4ef5 11144
3a11626d
MS
111452002-01-15 Michael Snyder <msnyder@redhat.com>
11146
11147 * target.c: New command, "set trust-readonly-sections on".
11148 (do_xfer_memory): Honor the suggestion to trust readonly sections
11149 by reading them from the object file instead of from the target.
11150 (initialize_targets): Register command "set trust-readonly-sections".
11151
d1c7e53b
AC
111522002-01-29 Andrew Cagney <ac131313@redhat.com>
11153
11154 * parse.c (target_map_name_to_register): Simplify, search regs and
11155 pseudo-regs using a single loop.
11156
e2c9a72c
AC
111572002-01-30 Andrew Cagney <ac131313@redhat.com>
11158
11159 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11160
69824b4e
MK
111612002-01-15 Rodney Brown <rbrown64@csc.com.au>
11162
11163 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11164 * config/i386/i386v42mp.mh: Add i387-nat.o .
11165 * i386v4-nat.c: Include i387-nat.h.
11166 (supply_fpregset): Use i387_supply_fsave.
11167 (fill_fpregset): Use i387_fill_fsave.
11168
6eb69eab
RE
111692002-01-30 Richard Earnshaw <rearnsha@arm.com>
11170
11171 * arm-tdep.c (arm_call_dummy_words): Define.
11172 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11173 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11174 (CALL_DUMMY_WORDS): Define.
11175 (arm_call_dummy_words): Declare.
11176 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11177 (arm_linux_call_dummy_words): Declare.
11178
9852326a
AS
111792002-01-30 Andreas Schwab <schwab@suse.de>
11180
11181 * m68klinux-nat.c: Fix last change to use regcache_collect
11182 instead of referencing registers[] directly.
11183
977a3030
AC
111842002-01-29 Andrew Cagney <ac131313@redhat.com>
11185
11186 * parse.c (target_map_name_to_register): Delete code wrapped in
11187 #ifdef REGISTER_NAME_ALIAS_HOOK.
11188
2076c72b
MS
111892002-01-28 Michael Snyder <msnyder@redhat.com>
11190
11191 * regcache.c (legacy_read_register_gen): Need to be able to
11192 read pseudo-register as well as real register.
11193 (legacy_write_register_gen): Ditto.
11194
8fcc723b
AC
111952002-01-28 Andrew Cagney <ac131313@redhat.com>
11196
11197 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11198 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11199 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11200 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11201 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11202 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11203 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11204 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11205 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11206 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11207 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11208 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11209 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11210 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11211 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11212 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11213 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11214 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11215 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11216 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11217
afe64c1a
AC
112182002-01-28 Andrew Cagney <ac131313@redhat.com>
11219
11220 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11221 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11222 (initialize_current_architecture): Update target_byte_order using
11223 information from BFD.
aaa38bb5 11224 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11225 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11226
75bc7ddf
AC
112272002-01-28 Andrew Cagney <ac131313@redhat.com>
11228
11229 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11230 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11231
11232 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11233 #ifdef INVALID_FLOAT.
11234 * infcmd.c (do_registers_info): Ditto.
11235 * values.c (unpack_double): Ditto. Add comment.
11236
11237 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11238 already commented out.
11239
0280a90a
AS
112402002-01-26 Andreas Schwab <schwab@suse.de>
11241
11242 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11243 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11244 registers and add support for PTRACE_GETREGS.
11245
7072a954
AC
112462002-01-24 Andrew Cagney <ac131313@redhat.com>
11247
11248 GDB 5.1.1 released from 5.1 branch.
11249 * NEWS: Add 5.1.1 news.
11250 * README: Sync with 5.1 branch.
11251
86f902e0
FF
112522002-01-23 Fred Fish <fnf@redhat.com>
11253
11254 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11255 stabstring on initial malloc. Reallocing will copy it for us,
11256 if necessary.
11257
8af51c36
EZ
112582002-01-23 Elena Zannoni <ezannoni@redhat.com>
11259
aaa38bb5 11260 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11261 (HFILES_NO_SRCDIR): Remove hpread.h.
11262 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11263 (hpread.o): Update dependencies.
11264 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11265
11266 * hp-psymtab-read.c: Remove file.
11267 * hp-symtab-read.c: Remove file.
11268 * hpread.h: Remove file.
11269
11270 * hpread.c: Merge all contents of hp-psymtab-read.c,
11271 hp-symtab-read.c and hpread.h into this file, as it was prior to
11272 January 1999.
11273
11274 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11275 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11276 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11277 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11278
dc5cfeb6
EZ
112792002-01-23 Elena Zannoni <ezannoni@redhat.com>
11280
11281 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11282 fill_gregset): Call gdbarch_tdep() just once, assign result to
11283 variable and use that, instead of calling the function several
11284 times.
11285
ea87b71b
AO
112862002-01-24 Alexandre Oliva <aoliva@redhat.com>
11287
11288 * configure.host: Accept sparcv9 as alias for sparc64.
11289 * configure.tgt: Likewise.
11290
13fc0c2f
KB
112912002-01-22 Kevin Buettner <kevinb@redhat.com>
11292
11293 * solib-aix5.c (build_so_list_from_mapfile)
11294 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11295 arguments is not reversed.
11296 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11297 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11298
7bd872fe
EZ
112992002-01-22 Elena Zannoni <ezannoni@redhat.com>
11300
11301 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11302 modified version of obsolete sh_fetch_pseudo_register.
11303 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11304 (sh4_register_read): New function.
11305 (sh_pseudo_register_write): New function. Renamed and modified
11306 version of obsolete sh_store_pseudo_register.
11307 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11308 (sh4_register_write): New function.
11309 (sh_gdbarch_init): Remove setting of gdbarch function
11310 fetch_pseudo_register and store_pseudo_register. Remove setting of
11311 register_convert_to_raw, register_convert_to_virtual,
11312 register_convertible.
11313 (sh_sh4_register_convertible): Delete. No longer needed. All is
11314 taken care by architecture specific functions
11315 register_read/register_write.
11316 (sh_sh4_register_convert_to_virtual): Make static.
11317 (sh_sh4_register_convert_to_raw): Ditto.
11318
069e84fd
AC
113192002-01-22 Andrew Cagney <ac131313@redhat.com>
11320
11321 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11322 (floatformat_is_nan, floatformat_mantissa): Ditto.
11323
11324 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11325 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11326 builtin_type_ieee_double_little,
11327 builtin_type_ieee_double_littlebyte_bigword,
11328 builtin_type_m68881_ext, builtin_type_i960_ext,
11329 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11330 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11331 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11332 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11333
211a4f69
CV
113342002-01-22 Corinna Vinschen <vinschen@redhat.com>
11335
11336 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11337 parameter. Set frameless flag if it exists and depended of
11338 whether the scanned function is frameless or not.
11339 (xstormy16_skip_prologue): If function is frameless, return
11340 result of xstormy16_scan_prologue().
11341 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11342 call.
11343
f81353e4
EZ
113442002-01-21 Elena Zannoni <ezannoni@redhat.com>
11345
11346 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11347 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11348 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11349 sh_sh4_register_byte, sh_sh4_register_raw_size,
11350 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11351 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11352 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11353 sh_store_pseudo_register, sh_do_pseudo_register): Call
11354 gdbarch_tdep() just once, assign result to variable and use that,
11355 instead of calling the function several times.
11356
63c73a17
MK
113572002-01-20 Mark Kettenis <kettenis@gnu.org>
11358
11359 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11360 macros instead of LAST_FPU_CTRL_REGNUM.
11361 (store_register): Likewise.
11362
39ad761d
JB
113632002-01-21 Jim Blandy <jimb@redhat.com>
11364
11365 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11366 is up-to-date before running the program, not just when a program
11367 exits.
11368
3d74b771
FF
113692002-01-21 Fred Fish <fnf@redhat.com>
11370
11371 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11372 when we have found all instructions we are looking for.
11373
966fbf70
RE
113742002-01-21 Richard Earnshaw <rearnsha@arm.com>
11375
11376 * arm-tdep.c (arm_register_name): New function.
11377 (arm_registers_names): Make static.
11378 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11379 (arm_register_name): Declare.
11380 (REGISTER_NAME): Use it.
11381
c3b4394c
RE
113822002-01-21 Richard Earnshaw <rearnsha@arm.com>
11383 Kevin Buettner <kevinb@redhat.com>
11384
11385 Convert arm targets to new FRAME interface.
11386 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11387 (arm_frame_find_save_regs): Delete.
11388 (arm_frame_init_saved_regs): New.
11389 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11390 Allocate extra_info as required. Convert all uses of fsr.regs
11391 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11392 to use extra_info.
11393 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11394 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11395 (check_prologue_cache, save_prologue_cache): Likewise.
11396 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11397 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11398 (FRAME_FIND_SAVED_REGS): Delete.
11399 (arm_frame_find_saved_regs): Delete prototype.
11400 (arm_frame_init_saved_regs): New prototype.
11401 (FRAME_INIT_SAVED_REGS): Define.
11402
61d99182
AC
114032002-01-20 Andrew Cagney <ac131313@redhat.com>
11404
11405 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11406
6aaea291
AC
114072002-01-20 Andrew Cagney <ac131313@redhat.com>
11408
11409 From Jeff Law <law@redhat.com>:
11410 * infttrace.c: Include <sys/pstat.h>.
11411 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11412 exec file if the ttrace equivalent fails.
11413
15f698d2
AC
114142002-01-20 Andrew Cagney <ac131313@redhat.com>
11415
11416 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11417 (closeLogFile): Ditto.
11418
f86ddd7c
MC
114192002-01-20 Michael Chastain <mec@shout.net>
11420
11421 * top.c (print_gdb_version): Bump copyright year to 2002.
11422
904507ce
AC
114232002-01-20 Andrew Cagney <ac131313@redhat.com>
11424
11425 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11426 Zannoni and Eli Zaretskii.
11427
d7f0b9ce
DJ
114282002-01-20 Daniel Jacobowitz <drow@mvista.com>
11429
11430 * buildsym.c: Update copyright years.
11431 * c-typeprint.c: Likewise.
11432 * dwarf2read.c: Likewise.
11433 * f-typeprint.c: Likewise.
11434 * gdbtypes.c: Likewise.
11435 * gdbtypes.h: Likewise.
11436 * hp-symtab-read.c: Likewise.
11437 * hpread.c: Likewise.
11438 * mdebugread.c: Likewise.
11439 * p-typeprint.c: Likewise.
11440
3fd3d7d2
AC
114412002-01-20 Andrew Cagney <ac131313@redhat.com>
11442
11443 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11444 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11445 byte-order selectable.
11446 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11447 * arch-utils.c: Ditto.
11448 (set_endian): Ditto.
11449 (set_endian_from_file): Ditto.
11450 * gdbserver/low-sim.c (create_inferior): Ditto.
11451 * gdbarch.sh: Ditto.
11452 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11453 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11454 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11455 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11456 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11457 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11458 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11459 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11460 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11461 macro definition.
11462 * config/mips/tm-wince.h: Remove #undef of macro
11463 TARGET_BYTE_ORDER_SELECTABLE.
11464 * config/sh/tm-wince.h: Ditto.
11465
b02dede2
DJ
114662002-01-20 Daniel Jacobowitz <drow@mvista.com>
11467
11468 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11469 member function fields. Add accessor macro
11470 TYPE_FN_FIELD_ARTIFICIAL.
11471 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11472 * c-typeprint.c (c_type_print_base): Skip artificial member
11473 functions.
11474
c3643761
DJ
114752002-01-20 Daniel Jacobowitz <drow@mvista.com>
11476
11477 * f-typeprint.c: Delete unused function f_type_print_args.
11478 * p-typeprint.c: Delete unused function pascal_type_print_args.
11479
8176bb6d
DJ
114802002-01-20 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11483 comment. Add ``artificial'' to ``union field_location''.
11484
11485 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11486
11487 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11488 * mdebugread.c (parse_symbol): Likewise.
11489 * stabsread.c (define_symbol): Likewise.
11490 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11491 initializing TYPE_FIELD_BITPOS to n (obsolete).
11492 (hpread_doc_function_type): Likewise.
11493 * hpread.c (hpread_function_type): Likewise.
11494
7fd60527
AC
114952002-01-20 Andrew Cagney <ac131313@redhat.com>
11496
11497 * configure.in (host_makefile_frag): Only require a host makefile
11498 fragment when a native build.
11499 * configure: Re-generate.
11500
c2f05ac9
AC
115012002-01-20 Andrew Cagney <ac131313@redhat.com>
11502
11503 * doublest.h (floatformat_from_type): Declare.
11504 * doublest.c (floatformat_from_type): New function.
11505 (convert_typed_floating): Use.
11506
11507 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11508 call to function floatformat_from_type.
11509
11510 * gdbarch.sh (IEEE_FLOAT): Delete.
11511 * gdbarch.h, gdbarch.c: Re-generate.
11512 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11513 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11514 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11515 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11516 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11517 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11518 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11519 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11520 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11521 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11522 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11523 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11524
11525 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11526 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11527 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11528 * sh-tdep.c (sh_gdbarch_init): Ditto.
11529 * mips-tdep.c (mips_gdbarch_init): Ditto.
11530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11531 * cris-tdep.c (cris_gdbarch_init): Ditto.
11532
abf22e64
AJ
115332002-01-20 Jiri Smid <smid@suse.cz>
11534
11535 * configure.host, configure.tgt: Support x86-64.
11536 * NEWS: Note new target x86-64.
11537
b7c4cbf8
AJ
11538 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11539 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11540 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11541 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11542 x86-64-linux-nat.o): Fix dependencies.
11543
82600034
AC
115442002-01-19 Andrew Cagney <ac131313@redhat.com>
11545
11546 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11547 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11548 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11549 * config/sparc/xm-sun4os4.h: Delete file.
11550 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11551
bbe5c628
AC
115522002-01-19 Andrew Cagney <ac131313@redhat.com>
11553
11554 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11555 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11556 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11557 * config/i386/i386lynx.mh (XM_FILE): Delete.
11558 * config/rs6000/xm-rs6000ly.h: Delete file.
11559 * config/sparc/xm-sparclynx.h: Delete file.
11560 * config/m68k/xm-m68klynx.h: Delete file.
11561 * config/i386/xm-i386lynx.h: Delete file.
11562 * config/xm-lynx.h: Delete file.
11563 * config/djgpp/fnchange.lst: Update.
11564
f8453e34
JT
115652002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11566
11567 * alpha-tdep.c (alpha_register_byte): New function.
11568 (alpha_register_raw_size): Ditto.
11569 (alpha_register_virtual_size): Ditto.
11570 (alpha_skip_prologue_internal): Renamed from
11571 alpha_skip_prologue.
11572 (alpha_skip_prologue): New version that calls
11573 alpha_skip_prologue_internal.
11574 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11575 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11576 second argument from alpha_skip_prologue.
11577 (REGISTER_BYTE): Use alpha_register_byte.
11578 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11579 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11580 (FRAMELESS_FUNCTION_INVOCATION): Use
11581 generic_frameless_function_invocation_not.
11582 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11583 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11584
52d9e613
AC
115852002-01-19 Andrew Cagney <ac131313@redhat.com>
11586
11587 * config/mips/xm-news-mips.h: Delete file.
11588 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11589
11590 * config/m88k/xm-m88k.h: Delete file.
11591 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11592 * config/m88k/xm-delta88v4.h: Ditto.
11593 * config/m88k/xm-delta88.h: Ditto.
11594
11595 * config/alpha/xm-fbsd.h: Delete file.
11596 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11597
11598 * config/sparc/xm-sparc.h: Delete file.
11599 * Makefile.in (xm-sun4os4.h): Delete dependency.
11600 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11601 * config/sparc/xm-sun4os4.h: Ditto.
11602 * config/sparc/xm-linux.h: Ditto.
11603
11604 * config/i386/xm-windows.h: Delete file.
11605
2d1b2124
AC
116062002-01-19 Andrew Cagney <ac131313@redhat.com>
11607
11608 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11609 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11610
ee1f65f0
JT
116112002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11612
11613 * alpha-tdep.c (alpha_call_dummy_words): New.
11614 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11615 (CALL_DUMMY_P): Define.
11616 (CALL_DUMMY_WORDS): Define.
11617 (SIZEOF_CALL_DUMMY_WORDS): Define.
11618
98081e55
PB
116192002-01-19 Per Bothner <per@bothner.com>
11620
11621 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11622 isn't NULL, which can happen with some gcj-3.x-produced code.
11623
0d056799
JT
116242002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11625
11626 * alpha-tdep.c (alpha_register_virtual_type): New function.
11627 (alpha_init_frame_pc_first): Ditto.
11628 (alpha_fix_call_dummy): Ditto.
11629 (alpha_store_struct_return): Ditto.
11630 (alpha_extract_struct_value_address): Ditto.
11631 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11632 alpha_register_virtual_type.
11633 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11634 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11635 alpha_extract_struct_value_address.
11636 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11637 (INIT_FRAME_PC): Use init_frame_pc_noop.
11638 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11639
4604bcad
MK
116402002-01-19 Mark Kettenis <kettenis@gnu.org>
11641
11642 * i386gnu-nat.c: Include "i386-tdep.h".
11643 (fetch_fpregs): Simplify code dealing with uninitialized floating
11644 point states such that it doesn't require FP7_REGNUM.
11645
140f9984
JT
116462002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11647
abf22e64
AJ
11648 * alpha-tdep.c (frame_extra_info): New.
11649 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11650 frame->extra_info.
11651 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11652 (alpha_frame_saved_pc): Use frame->extra_info.
11653 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11654 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11655 (init_extra_frame_info): Rename to...
11656 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11657 (alpha_print_extra_frame_info): New function.
140f9984
JT
11658 (alpha_frame_locals_address): Ditto.
11659 (alpha_frame_args_address): Ditto.
abf22e64 11660 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11661 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11662 alpha_frame_args_address.
abf22e64 11663 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11664 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11665 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11666 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11667 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11668 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11669
d734c450
JT
116702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11671
11672 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11673 (alpha_cannot_fetch_register): Ditto.
11674 (alpha_cannot_store_register): Ditto.
11675 (alpha_register_convertible): Ditto.
11676 (alpha_use_struct_convention): Ditto.
11677 * config/alpha/tm-alpha.h: Update copyright years.
11678 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11679 (INNER_THAN): Use core_addr_lessthan.
11680 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11681 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11682 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11683 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11684 (FRAME_CHAIN): Remove unnecessary cast.
11685
b4ceaee6
AC
116862002-01-18 Andrew Cagney <ac131313@redhat.com>
11687
11688 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11689 obsolete.
11690
0a65a603
AC
116912002-01-18 Andrew Cagney <ac131313@redhat.com>
11692
11693 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11694 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11695 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11696 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11697 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11698 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11699 * x86-64-linux-nat.c: Ditto.
11700
636a6dfc
JT
117012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11702
abf22e64 11703 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11704 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11705 (REGISTER_NAME): Define.
11706
acceddb6
JT
117072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11708
11709 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11710
ec32e4be
JT
117112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11712
11713 * alpha-tdep.c: Update copyright years.
11714 (alpha_next_pc): New function.
11715 (alpha_software_single_step): Ditto.
11716 * config/alpha/tm-alpha.h: Add prototype for
11717 alpha_software_single_step.
11718
e771a871
JT
117192002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11720
11721 * alphabsd-nat.c: Update copyright years.
11722 (fill_gregset): Use regcache_collect.
11723 (fill_fpregset): Likewise.
11724 (fetch_inferior_registers): Only fetch integer registers
11725 if requested to do so.
11726 (store_inferior_registers): Only store integer registers
11727 if requested to do so.
11728
7708fa01
AC
117292002-01-17 Andrew Cagney <ac131313@redhat.com>
11730
11731 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11732 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11733 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11734 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11735 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11736 * config/arm/linux.mh (XDEPFILES): Delete.
11737 * config/arm/nbsd.mh (XDEPFILES): Delete.
11738 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11739 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11740 * config/i386/i386m3.mh (XDEPFILES): Delete.
11741 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11742 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11743 * config/i386/fbsd.mh (XDEPFILES): Delete.
11744 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11745 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11746 * config/i386/i386v4.mh (XDEPFILES): Delete.
11747 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11748 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11749 * config/i386/i386aix.mh (XDEPFILES): Delete.
11750 * config/i386/go32.mh (XDEPFILES): Delete.
11751 * config/i386/cygwin.mh (XDEPFILES): Delete.
11752 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11753 * config/i386/i386mach.mh (XDEPFILES): Delete.
11754 * config/i386/i386v32.mh (XDEPFILES): Delete.
11755 * config/i386/linux.mh (XDEPFILES): Delete.
11756 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11757 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11758 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11759 * config/i386/i386sco.mh (XDEPFILES): Delete.
11760 * config/i386/i386v.mh (XDEPFILES): Delete.
11761 * config/i386/nbsd.mh (XDEPFILES): Delete.
11762 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11763 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11764 * config/i386/symmetry.mh (XDEPFILES): Delete.
11765 * config/i386/obsd.mh (XDEPFILES): Delete.
11766 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11767 * config/ia64/linux.mh (XDEPFILES): Delete.
11768 * config/ia64/aix.mh (XDEPFILES): Delete.
11769 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11770 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11771 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11772 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11773 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11774 * config/m68k/linux.mh (XDEPFILES): Delete.
11775 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11776 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11777 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11778 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11779 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11780 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11781 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11782 * config/m88k/delta88.mh (XDEPFILES): Delete.
11783 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11784 * config/m88k/m88k.mh (XDEPFILES): Delete.
11785 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11786 * config/mips/linux.mh (XDEPFILES): Delete.
11787 * config/mips/irix6.mh (XDEPFILES): Delete.
11788 * config/mips/irix5.mh (XDEPFILES): Delete.
11789 * config/mips/irix4.mh (XDEPFILES): Delete.
11790 * config/mips/irix3.mh (XDEPFILES): Delete.
11791 * config/mips/decstation.mh (XDEPFILES): Delete.
11792 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11793 (NATDEPFILES): Move core-aout.o to here.
11794 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11795 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11796 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11797 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11798 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11799 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11800 * config/pa/hpux11.mh (XDEPFILES): Delete.
11801 * config/powerpc/aix.mh (XDEPFILES): Delete.
11802 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11803 * config/powerpc/linux.mh (XDEPFILES): Delete.
11804 * config/romp/rtbsd.mh: Rename XDEPFILES.
11805 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11806 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11807 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11808 * config/s390/s390.mh (XDEPFILES): Delete.
11809 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11810 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11811 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11812 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11813 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11814 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11815 * config/sparc/linux.mh (XDEPFILES): Delete.
11816 * config/vax/vaxult.mh (XDEPFILES): Delete.
11817 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11818 * Makefile.in (DEPFILES): Remove XDEPFILES.
11819
375fc983
AC
118202002-01-17 Andrew Cagney <ac131313@redhat.com>
11821
11822 * utils.c (internal_verror): Fix comments, default is yes not no.
11823 Update queries to match. Default to quit and dump core.
11824
8926118c
AC
118252002-01-17 Andrew Cagney <ac131313@redhat.com>
11826
11827 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11828 copyright.
11829 * defs.h, event-top.c, gdbcmd.h: Ditto.
11830 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11831 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11832 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11833 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11834 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11835 * mi/mi-main.c:Ditto.
11836
11837 * stack.c, symfile.c: Update copyright.
11838
45b7b345
DJ
118392002-01-17 Daniel Jacobowitz <drow@mvista.com>
11840
db728ff7
DJ
11841 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11842 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11843 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11844 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11845
db728ff7
DJ
118462002-01-17 Daniel Jacobowitz <drow@mvista.com>
11847
11848 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11849 * gdbserver/low-lynx.c (myattach): Likewise.
11850 * gdbserver/low-nbsd.c (myattach): Likewise.
11851 * gdbserver/low-sim.c (myattach): Likewise.
11852 * gdbserver/low-sparc.c (myattach): Likewise.
11853 * gdbserver/low-sun3.c (myattach): Likewise.
11854
11855 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11856
db728ff7 11857 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11858 (main): Handle "--attach".
11859
8de3c354
AC
118602002-01-16 Andrew Cagney <ac131313@redhat.com>
11861
11862 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11863 maintainer.
11864
b0129042
DJ
118652002-01-15 Daniel Jacobowitz <drow@mvista.com>
11866
11867 * c-typeprint.c (is_type_conversion_operator): Add additional
11868 check for non-conversion operators.
11869
ba8679fb 118702002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11871
11872 * linux-proc.c: Add "info proc" command, a la procfs.c.
11873 (read_mapping): New function, abstract and re-use code.
11874 (linux_find_memory_regions): Use new func read_mapping.
11875 (linux_info_proc_cmd): New function, implement "info proc".
11876 (_initialize_linux_proc): Add new command "info proc".
11877
e4f9b4d5
MS
118782002-01-15 Michael Snyder <msnyder@redhat.com>
11879
11880 * symfile.c (generic_load): Use bfd_map_over_sections method
11881 instead of manipulating bfd structure members directly.
11882 (add_section_size_callback): New function, bfd sections callback
11883 used by generic_load.
11884 (load_sections_callback): New function, bfd sections callback
11885 used by generic_load.
11886
08cf96df
EZ
118872002-01-15 Elena Zannoni <ezannoni@redhat.com>
11888
abf22e64 11889 [Based on work by Jim Blandy]
08cf96df
EZ
11890 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11891 (builtin_type_vec128): Export.
11892 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11893 types.
11894 (builtin_type_vec128): New builtin type for 128 bit vector
11895 registers.
11896 (build_gdbtypes): Initialize builtin_type_v16qi and
11897 builtin_type_v8hi. Create the vec128 register builtin type
11898 structure.
11899 (build_builtin_type_vec128): New function.
abf22e64 11900 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11901 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11902 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11903 AltiVec register to new builtin type.
11904
d7242108
DJ
119052001-01-15 Daniel Jacobowitz <drow@mvista.com>
11906
11907 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11908 to make_cv_type.
11909
4ee3352d
AC
119102002-01-14 Andrew Cagney <ac131313@redhat.com>
11911
11912 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11913 CLEAN_UP_REGISTER_VALUE.
11914 * regcache.c (supply_register): Update only call.
11915
f015b2e7
AC
119162002-01-14 Andrew Cagney <ac131313@redhat.com>
11917
11918 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11919 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11920 a29k-*-vxworks* targets as obsolete.
11921
356ae49d
MS
119222002-01-14 Michael Snyder <msnyder@redhat.com>
11923
11924 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11925 until we can resolve portability issues.
11926 * gregset.h: Remove references to fpxregs.
11927 * gcore.c (gcore_command): Initialize note_sec to NULL.
11928
ade8f45e
AC
119292002-01-13 Andrew Cagney <ac131313@redhat.com>
11930
11931 * signals.c (target_signal_to_name): Rewrite. Only use
11932 signals[].name when in bounds and non-NULL.
abf22e64 11933
89c49e7a
AC
119342002-01-13 Andrew Cagney <ac131313@redhat.com>
11935
11936 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11937 * signals.c (target_signal_to_name): Verify that SIG is within the
11938 bounds of the signals array.
11939
4daa9f9f
AC
119402002-01-13 Andrew Cagney <ac131313@redhat.com>
11941
11942 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11943
ba4bbdcb
KS
119442002-01-13 Keith Seitz <keiths@redhat.com>
11945
11946 * stack.c (print_frame_info_base): Print the frame's pc
11947 only if when print_frame_info_listing_hook is not defined.
11948
575bbeb6
KS
119492002-01-13 Keith Seitz <keiths@redhat.com>
11950
11951 * varobj.c (varobj_set_value): Make sure that there were no
11952 errors evaluating the object before attempting to set its
11953 value.
11954 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11955 so this offset adjustment is no longer necessary.
11956 (create_child): Don't set the error flag if the child is
11957 a CPLUS_FAKE_CHILD.
11958 (value_of_child): If value_fetch_lazy fails, return NULL
11959 so that callers will be notified that an error occurred.
11960 (c_value_of_variable): Delay check of variable's validity
11961 until later. We actually want all structs and unions to have
11962 the value "{...}".
11963 Do not return "???" for variables which could not be evaluated.
11964 This error condition must be returned to the caller so that it
11965 can get the error condition from gdb.
11966 (cplus_name_of_child): Adjust index for vptr before figuring
11967 out the name of the child.
11968 (cplus_value_of_child): If a child's (real) parent is not valid,
11969 don't even bother trying to give a value for it. Just return
11970 an error. Change all instances in this function.
11971 (cplus_type_of_child): If our parent is one of the "fake"
11972 parents, we need to get at the type of the real parent, and
11973 derive the child's true type using this information.
11974
b76898ab
AC
119752002-01-13 Andrew Cagney <ac131313@redhat.com>
11976
11977 From 2002-01-09 John Marshall <johnm@falch.net>:
11978 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11979 sources.redhat.com, and tweak some related URLs which had
11980 suffered from linkrot.
11981
b6649e88
AC
119822002-01-13 Andrew Cagney <ac131313@redhat.com>
11983
11984 From Jeff law:
11985 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11986 structures passed in registers.
11987
82cc5033
EZ
119882002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11989
11990 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11991 white space which prevented compilation. Reported by DSK
11992 <dsk@student.unsw.edu.au>.
11993
ba5f2f8a
MS
119942002-01-11 Michael Snyder <msnyder@redhat.com>
11995
fbd35540
MS
11996 * symfile.c (build_section_addr_info_from_section_tab):
11997 Use bfd access method instead of manipulating bfd directly.
11998 (syms_from_objfile): Ditto.
11999 (simple_overlay_update_1): Ditto.
12000 (simple_overlay_update): Ditto.
12001 (generic_load): Ditto.
12002 (overlay_unmapped_address): FIXME comment, bfd access methods.
12003 (sections_overlap): FIXME comment, bfd access methods.
12004 (pc_in_mapped_range): FIXME comment, bfd access methods.
12005 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12006 (section_is_mapped): FIXME comment, bfd access methods.
12007 (section_is_overlay): FIXME comment, bfd access methods.
12008
ba5f2f8a
MS
12009 * symfile.c (generic_load): Whitespace and long line cleanups.
12010 Remove duplicate variable, change several local variables to
12011 more appropriate data types.
12012 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12013
17df2af6
AC
120142002-01-12 Andrew Cagney <ac131313@redhat.com>
12015
12016 From Peter Schauer:
12017 * language.c (longest_local_hex_string_custom): Use phex_nz to
12018 convert NUM to a hex string.
12019
ec920329
EZ
120202002-01-12 Elena Zannoni <ezannoni@redhat.com>
12021
12022 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12023 the function.
538a76d6 12024 Update Copyright year.
ec920329 12025
3abd2e01
AC
120262002-01-12 Andrew Cagney <ac131313@redhat.com>
12027
12028 * language.c (longest_raw_hex_string): Delete unused function.
12029
b21b22e0
PS
120302002-01-11 Petr Sorfa <petrs@caldera.com>
12031
12032 * MAINTAINERS (write-after-approval): Add myself.
12033 * dwarf2read.c (read_tag_string_type): Handling of
12034 DW_AT_byte_size.
12035 (read_tag_string_type): FORTRAN fix to prevent propagation of
12036 first string size.
12037 (set_cu_language): Handling of DW_LANG_Fortran95
12038
747fe712
RE
120392002-01-11 Richard Earnshaw <rearnsha@arm.com>
12040
12041 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12042 GETPID(inferior_ptid).
12043 (store_inferior_registers): Likewise.
12044
f1bea926
JM
120452002-01-10 Jason Merrill <jason@redhat.com>
12046
12047 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12048 Fix DW_OP_minus.
12049
ae940673
AC
120502002-01-10 Andrew Cagney <ac131313@redhat.com>
12051
12052 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12053 and bfd/elf32-sh-nbsd.c.
12054
00546b04
MS
120552002-01-10 Michael Snyder <msnyder@redhat.com>
12056
352ed7b4
MS
12057 * NEWS: Mention --pid and corefile/proc-id behavior change.
12058
c18be923
MS
12059 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12060 * gcore.c: Include cli/cli-decode.h instead of command.h.
12061
00546b04
MS
12062 * main.c (captured_main): Add new command line option "--pid".
12063 If the second command line argument (following the symbol-file)
12064 begins with a digit, try to attach to it before trying to open
12065 it as a corefile.
12066 (print_gdb_help): Document the "--pid" argument.
12067
db60ec62
EZ
120682002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12069
12070 * completer.c (command_completer): New function.
12071
12072 * completer.h <command_completer>: Add prototype.
12073
12074 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12075 completer for the "help" command.
12076
39c22d1a
JM
120772002-01-09 Jason Merrill <jason@redhat.com>
12078
12079 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12080
c564377f
MS
120812002-01-09 Michael Snyder <msnyder@redhat.com>
12082
975aec09
MS
12083 * i386-linux-nat.c (fill_fpxregset): Make global.
12084 (store_fpxregset): Ditto.
12085
db4a10fa
MS
12086 * gregset.h (gdb_fpxregset_t): Define.
12087 (supply_fpxregset): Prototype.
12088 (fill_fpxregset): Prototype.
12089
c564377f
MS
12090 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12091
c3d45d70
RE
120922002-01-09 Richard Earnshaw <rearnsha@arm.com>
12093
12094 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12095 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12096 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12097
fcc87af1
AC
120982002-01-09 Andrew Cagney <ac131313@redhat.com>
12099
12100 * MAINTAINERS: Update target maintainer rules so that any
12101 Maintainer can approve a tested patch for a maintenance-only
12102 target.
12103
dd96c05b
RE
121042002-01-09 Richard Earnshaw <rearnsha@arm.com>
12105
d4297db9 12106 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 12107
d4297db9 12108 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
12109 IN_SIGTRAMP.
12110
145fdc6e
MS
121112002-01-08 Michael Snyder <msnyder@redhat.com>
12112
12113 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12114 real name of the executable, rather than the /proc name.
12115
be4d1333
MS
121162002-01-03 Michael Snyder <msnyder@redhat.com>
12117
12118 Implement a "generate-core-file" command in gdb, save target state.
12119 * gcore.c: New file. Implement new command 'generate-core-file'.
12120 Save a corefile image of the current state of the inferior.
12121 * linux-proc.c: Add linux-specific code for saving corefiles.
12122 * target.h (struct target_ops): Add new target vectors for saving
12123 corefiles; to_find_memory_regions and to_make_corefile_notes.
12124 (target_find_memory_regions): New macro.
12125 (target_make_corefile_notes): New macro.
12126 * target.c (update_current_target): Inherit new target methods.
12127 (dummy_find_memory_regions): New place-holder method.
12128 (dummy_make_corefile_notes): New place-holder method.
12129 (init_dummy_target): Initialize new dummy target vectors.
12130 * exec.c (exec_set_find_memory_regions): New function.
12131 Allow the exec_ops vector for memory regions to be taken over.
12132 (exec_make_note_section): New function, target vector method.
12133 * defs.h (exec_set_find_memory_regions): Export prototype.
12134 * procfs.c (proc_find_memory_regions): New function, corefile method.
12135 (procfs_make_note_section): New function, corefile method.
12136 (init_procfs_ops): Set new target vector pointers.
12137 (find_memory_regions_callback): New function.
12138 (procfs_do_thread_registers): New function.
12139 (procfs_corefile_thread_callback): New function.
12140 * sol-thread.c (sol_find_memory_regions): New function.
12141 (sol_make_note_section): New function.
12142 (init_sol_thread_ops): Initialize new target vectors.
12143 * inftarg.c (inftarg_set_find_memory_regions): New function.
12144 Allow to_find_memory_regions vector to be taken over.
12145 (inftarg_set_make_corefile_notes): New function.
12146 Allow to_make_corefile_notes vector to be taken over.
12147 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12148 interface layer if not target_has_execution (may be a corefile).
12149 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12150 * config/sparc/sun4sol2.mh: Ditto.
12151 * config/alpha/alpha-linux.mh: Ditto.
12152 * config/arm/linux.mh: Ditto.
12153 * config/i386/x86-64linux.mh: Ditto.
12154 * config/ia64/linux.mh: Ditto.
12155 * config/m68k/linux.mh: Ditto.
12156 * config/mips/linux.mh: Ditto.
12157 * config/powerpc/linux.mh: Ditto.
12158 * config/sparc/linux.mh: Ditto.
12159
c6b92abd
MS
121602002-01-07 Michael Snyder <msnyder@redhat.com>
12161
12162 * arm-linux-nat.c: Remove references to regcache.c internal data
12163 (registers[] and register_valid[]).
12164
4b09dc8c
MS
121652002-01-07 Michael Snyder <msnyder@redhat.com>
12166
abf22e64
AJ
12167 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12168 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12169 symbol file and shlibs.
12170 * Makefile.in: Add rule for linux-proc.o.
12171 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12172 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12173 * config/arm/linux.mh: Ditto.
12174 * config/i386/linux.mh: Ditto.
12175 * config/i386/x86-64linux.mh: Ditto.
12176 * config/ia64/linux.mh: Ditto.
12177 * config/m68k/linux.mh: Ditto.
12178 * config/mips/linux.mh: Ditto.
12179 * config/powerpc/linux.mh: Ditto.
12180 * config/sparc/linux.mh: Ditto.
12181
c25b74ac
PM
121822002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12183
12184 * win32-nat.c: Add i386-tdep.h dependency.
12185
94cd915f
MS
121862002-01-07 Michael Snyder <msnyder@redhat.com>
12187
c7cccb76
MS
12188 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12189 instead of bfd_get_arch_size. Don't bail out just because
12190 there's no exec_bfd.
abf22e64 12191
34c0bd93
MS
12192 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12193 * p-valprint.c (pascal_object_print_value): Ditto.
12194 * somread.c (som_symtab_read): Ditto.
12195 * symfile.c (simple_free_overlay_region_table): Ditto.
12196 * valops.c (value_assign): Ditto.
12197
21c1c920
MS
12198 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12199 use tilde_expand and strerror for opening save-tracepoints file.
12200
5bbd998e
MS
12201 * thread-db.c (thread_db_new_objfile): Indendation fix.
12202
94cd915f
MS
12203 * infptrace.c (GDB_MAX_ALLOCA): New define.
12204 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12205 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12206 can be overridden with whatever value is appropriate to the host).
12207 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12208 alloca to allocate potentially large buffer.
12209 * rs6000-nat.c (child_xfer_memory): Ditto.
12210 * symm-nat.c (child_xfer_memory): Ditto.
12211 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12212
494e8a93
JSC
122132002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12214
12215 From Nick Clifton <nickc@redhat.com>
12216 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12217
d0e1d48e
MS
122182002-01-07 Michael Snyder <msnyder@redhat.com>
12219
abf22e64 12220 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12221 Don't use exec_bfd if it's NULL.
12222
290b2c7a
MK
122232002-01-06 Mark Kettenis <kettenis@gnu.org>
12224
abf22e64 12225 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12226
aef21287
AC
122272002-01-06 Andrew Cagney <ac131313@redhat.com>
12228
12229 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12230 * gnu-nat.c: Ditto.
12231
30efa627
AC
122322002-01-06 Andrew Cagney <ac131313@redhat.com>
12233
12234 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12235 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12236 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12237 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12238 z8k-coff have not been multi-arched. Update z8k-coff build
12239 status.
12240
9b4ff276
AC
122412002-01-06 Andrew Cagney <ac131313@redhat.com>
12242
12243 * MAINTAINERS: Mark a29k target as obsolete.
12244 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12245 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12246 comments.
12247 * NEWS: Note that a29k targets are obsolete.
12248 * a29k-tdep.c: Mark as obsolete.
12249 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12250 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12251 a29k-*-vxworks* targets as obsolete.
12252 * remote-adapt.c: Obsolete.
12253 * remote-eb.c: Obsolete.
12254 * remote-mm.c: Obsolete.
12255 * remote-udi.c: Obsolete.
12256 * config/a29k/a29k-udi.mt: Obsolete.
12257 * config/a29k/a29k.mt: Obsolete.
12258 * config/a29k/tm-a29k.h: Obsolete.
12259 * config/a29k/tm-vx29k.h: Obsolete.
12260 * config/a29k/vx29k.mt: Obsolete.
12261
a9011d31
AC
122622002-01-05 Andrew Cagney <ac131313@redhat.com>
12263
12264 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12265 with BFD_ENDIAN_BIG.
12266
9299404e
AC
122672002-01-05 Andrew Cagney <ac131313@redhat.com>
12268
12269 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12270 * configure, config.in: Re-generate.
12271 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12272 * defs.h: Do not include <endian.h>.
12273
7e89e357
JT
122742002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12275
12276 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12277 * config.in: Regenerate.
12278 * configure.in: Update copyright years.
12279 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12280 * configure: Regenerate.
12281 * i386bsd-nat.c: Update copyright years.
12282 (fill_gregset): Use regcache_collect.
12283 (fetch_inferior_registers): Only fetch integer registers
12284 if requested to do so. Add support for XMM registers
12285 using PT_GETXMMREGS.
12286 (store_inferior_registers): Only store integer registers
12287 if requested to do so. Add support for XMM registers
12288 using PT_SETXMMREGS.
12289 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12290 (store_inferior_registers): Remove.
12291 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12292 (fetch_elfcore_registers): New function.
12293 (i386nbsd_elfcore_fns): New.
12294 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12295 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12296 i386bsd-nat.o.
12297 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12298 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12299 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12300 * config/i386/tm-nbsd.h: Update copyright years.
12301 (HAVE_SSE_REGS): Define.
12302 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12303 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12304 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12305 (SIGCONTEXT_PC_OFFSET): Remove.
12306 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12307
a752853e
AC
123082002-01-05 Andrew Cagney <ac131313@redhat.com>
12309
12310 * configure.tgt: Remove powerpc-*-macos* target.
12311 * config/m68k/xm-mpw.h: Delete file.
12312 * config/xm-mpw.h: Delete file.
12313 * ser-mac.c: Delete file.
12314 * mpw-make.sed: Delete file.
12315 * mpw-config.in: Delete file.
12316 * mac-xdep.c: Delete file.
12317 * mac-gdb.r: Delete file.
12318 * mac-defs.h: Delete file.
12319 * mac-nat.c: Delete file.
12320 * config/powerpc/macos.mh: Delete file.
12321 * config/powerpc/macos.mt: Delete file.
12322 * config/powerpc/nm-macos.h: Delete file.
12323 * config/powerpc/tm-macos.h: Delete file.
12324 * source.c (openp, open_source_file): Remove obsolete code.
12325 * top.c (gdb_readline): Ditto.
12326 * utils.c (query): Ditto.
12327 * event-top.c (display_gdb_prompt): Ditto.
12328 * Makefile.in (ser-mac.o): Delete obsolete target.
12329 * NEWS: Update.
12330
d7449b42
AC
123312002-01-04 Andrew Cagney <ac131313@redhat.com>
12332
12333 * defs.h (BIG_ENDIAN): Delete macro definition.
12334 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12335 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12336 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12337 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12338 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12339 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12340 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12341 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12342 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12343 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12344 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12345 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12346 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12347 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12348 * gdbarch.c: Re-generate.
12349
356374e8
DJ
123502002-01-04 Daniel Jacobowitz <drow@mvista.com>
12351
12352 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12353 for core files.
12354
a2b8f8f8
JT
123552002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12356
12357 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12358
12466af9
AC
123592002-01-04 Andrew Cagney <ac131313@redhat.com>
12360
12361 * value.h (value_ptr): Delete typedef.
12362
3549ab40
JT
123632002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12364
12365 * i386nbsd-nat.c: Update copyright years.
12366 Include i386-tdep.h.
12367
fedbd091
EZ
123682002-01-04 Elena Zannoni <ezannoni@redhat.com>
12369
12370 * stabsread.c: Update copyright years.
12371
12372 From Debashis Mahata <debashis.mahata@wipro.com>:
12373 (read_struct_fields): Deal with Sun C compiler erroneous stab
12374 output for structs and unions.
fec8b34f 12375 Fix PR gdb/269.
fedbd091 12376
eb43544b
DJ
123772002-01-04 Daniel Jacobowitz <drow@mvista.com>
12378
12379 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12380 prototype.
12381
1514d34e
DJ
123822002-01-04 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * cp-abi.c: Fix whitespace.
12385 (baseclass_offset): New wrapper function.
12386 * cp-abi.h (baseclass_offset): Add prototype.
12387 (struct cp_abi_ops): Add baseclass_offset pointer.
12388
12389 * valops.c (vb_match): Move to...
12390 * gnu-v2-abi.c (vb_match): here.
12391 * valops.c (baseclass_offset): Move to...
12392 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12393
12394 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12395
12396 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12397 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12398 * hpacc-abi.c (init_hpacc_ops): Likewise.
12399
7f8c9282
DJ
124002002-01-04 Daniel Jacobowitz <drow@mvista.com>
12401
12402 * valops.c (find_overload_match): Accept obj as a
12403 reference parameter. Update it before returning.
12404 * value.h (find_overload_match): Update prototype.
12405 * eval.c (evaluate_subexp_standard): Pass object to
12406 find_overload_match by reference.
12407
f23631e4
AC
124082002-01-03 Andrew Cagney <ac131313@redhat.com>
12409
12410 * valarith.c: Replace value_ptr with struct value pointer. Remove
12411 register attribute from value declarations.
12412 * valops.c: Ditto.
12413 * value.h: Ditto.
12414 * scm-lang.c (scm_lookup_name): Ditto.
12415
79e10fab 124162002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12417
79e10fab
AC
12418 Abstract the functionality of iterating over mapped memory
12419 regions into a general purpose iterator function.
abf22e64 12420 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12421 iterator for memory sections.
12422 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12423 (solib_mappings_callback): New function, callback for above.
12424 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12425 (info_mappings_callback): New function, callback for above.
12426
12427 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12428
c5ad026a
MK
124292002-01-01 Mark Kettenis <kettenis@gnu.org>
12430
d2a7c97a
MK
12431 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12432 * i386-tdep.c: Include "elf-bfd.h".
12433 (process_note_abi_tag_sections): New function.
12434 (i386_gdbarch_init): Add code to recognize various OS/ABI
12435 combinations.
12436
c5ad026a
MK
12437 * maint.c (_initialize_maint_cmds): Add missing \ in
12438 string-literal.
12439
a1a5b71e 12440For older changes see ChangeLog-2001
c906108c
SS
12441\f
12442Local Variables:
12443mode: change-log
12444left-margin: 8
12445fill-column: 74
12446version-control: never
12447End:
This page took 0.918269 seconds and 4 git commands to generate.