* config/tc-mips.c (macro_build_lui): _gp_disp is not special on
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4facf7e8
JB
12002-11-06 Joel Brobecker <brobecker@gnat.com>
2
3 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
4 to end of file, to be more consistent with the pratice followed
5 by other targets.
6
f9418c0f
AC
72002-11-06 Andrew Cagney <ac131313@redhat.com>
8
9 * infcmd.c: Include "reggroups.h" and <ctype.h>.
10 (print_float_info): Print registers in float_reggroup.
11 (print_vector_info): Print registers in vector_reggroup.
12 (default_print_registers_info): When all, print registers in
13 all_reggroup. Otherwize, print registers in general_reggroup.
14 (registers_info): Rewrite. Add support for register groups.
15 Eliminate a goto.
16
3fe235a7
EZ
172002-11-06 Elena Zannoni <ezannoni@redhat.com>
18
19 * symtab.c (methods_info): Delete. It has been ifdeffed out for
20 ages.
21 (symtab_symbol_info): Remove eons old ifdeffed out code.
22 (_initialize_symtab): Remove prehistoric disabled 'info methods'
23 command.
24
ef944135
TR
252002-11-06 Theodore A. Roth <troth@openavr.org>
26
27 * c-exp.y: Add missing semi-colons.
28 * f-exp.y: Add missing semi-colons.
29 * m2-exp.y: Add missing semi-colons.
30 * p-exp.y: Add missing semi-colons.
31 Add empty action to start rule to avoid a type clash error when
32 building with bison >= 1.50.
33
f8302a57
JB
342002-11-06 Jim Blandy <jimb@redhat.com>
35
36 * macrotab.h (struct macro_source_file): Doc fix.
37
6e382aa3
JJ
382002-11-05 Jeff Johnston <jjohnstn@redhat.com>
39
40 * varobj.c (child_exists, cplus_number_of_children): Change
41 STREQ macro references to strcmp.
42 (cplus_name_of_child): Change code to handle the fact that
43 fields are not necessarily contiguous with regards to their
44 access control. This is a fix for PR gdb/792.
45
a216a322
AC
462002-11-05 Andrew Cagney <ac131313@redhat.com>
47
48 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
49 * gdbarch.h, gdbarch.c: Regnerate.
50 * frame.h (frame_register): Declare.
51 * frame.c (frame_register): New function.
52 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
53 GET_SAVED_REGISTER, otherwize call
54 generic_unwind_get_saved_register.
55 (frame_register_read): Use frame_register instead of
56 get_saved_register.
57
7d5b6fdd
EZ
582002-11-05 Elena Zannoni <ezannoni@redhat.com>
59
60 From Jim Ingham <jingham@apple.com>:
61 * event-top.c (gdb_disable_readline): New function.
62 (_initialize_event_loop): Move comment.
63
b7c64260
EZ
642002-11-05 Elena Zannoni <ezannoni@redhat.com>
65
66 * event-loop.c (start_event_loop): Add comment.
67 Update copyright.
68
c2e1b8f2
AC
692002-11-05 Andrew Cagney <ac131313@redhat.com>
70
71 * infcmd.c (default_print_registers_info): Do not call
72 PRINT_REGISTER_HOOK.
73
87647bb0
AC
742002-11-05 Andrew Cagney <ac131313@redhat.com>
75
76 * sparc-tdep.c (sparc_print_register_hook): Make static.
77 (sparc_print_registers_info): New function.
78 (sparc_do_registers_info): New function.
79 (sparclet_print_registers_info): New function.
80 (sparclet_do_registers_info): New function.
81 (do_sparc_print_registers_info): New function.
82 (sparc_print_registers): New static function, clone of infcmd.c's
83 default_print_registers_info.
84 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
85 (sparclet_do_registers_info): Declare.
86 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
87 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
88 Re-define.
89 (sparc_do_registers_info): Declare.
90 (PRINT_REGISTER_HOOK): Delete macro.
91 (sparc_print_register_hook): Delete declaration.
92
8155455b
DC
932002-11-05 David Carlton <carlton@math.stanford.edu>
94
95 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
96 functions.
97 (lookup_symbol_aux_local): New function.
98 (lookup_symbol_aux_symtabs): New function.
99 (lookup_symbol_aux_psymtabs): New function.
100
29924310
DC
1012002-11-05 David Carlton <carlton@math.stanford.edu>
102
103 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
104 previous values of 'objfile' and 'block'.
105
cc303028
PM
1062002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
107
108 * values.c (value_change_enclosing_type): Set
109 enclosing_type field correctly also for the case where
110 more memory needs to be allocated.
111
1d70089a
MK
1122002-11-03 Mark Kettenis <kettenis@gnu.org>
113
f16a25ae
MK
114 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
115 of puts_filtered.
116
1d70089a
MK
117 * i387-tdep.c (i387_print_float_info): Replace calls to
118 register_read and deprecated_read_register_gen with calls to
119 frame_register_read, and make the necessary adjustments to the
120 surrounding code.
121
7e20f3fb
AC
1222002-11-02 Andrew Cagney <ac131313@redhat.com>
123
124 * gdbarch.sh (register_reggroup_p): Allow default value.
125 * gdbarch.h, gdbarch.c: Regenerate.
126
192dbe33
AC
1272002-11-02 Andrew Cagney <ac131313@redhat.com>
128
129 * regcache.h: Add coment indicating replacements for deprecated
130 functions.
131
b59ff9d5
AC
1322002-11-02 Andrew Cagney <cagney@redhat.com>
133
134 * reggroups.h, reggroups.c: New files.
135 * regcache.c: Include "reggroups.h".
136 (enum regcache_dump_what): Add `regcache_dump_groups'.
137 (regcache_dump): Contract size of the "Type" column. When
138 specified, dump the register's groups.
139 (maintenance_print_register_groups): New function.
140 (_initialize_regcache): Add command `maint print register-groups'.
141 * Makefile.in (COMMON_OBS): Add reggroups.o
142 (SFILES): Add reggroups.c.
143 (reggroups_h): Define.
144 (regcache.o, gdbarch.o): Update dependencies.
145 (reggroups.o): Specify dependencies.
146 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
147 Add opaque declaration for `struct reggroup' in generated .h file.
148 Include "reggroups.h" in generated .c file.
149 gdbarch.h, gdbarch.c: Re-generate.
150
4caf0990
AC
1512002-11-02 Andrew Cagney <cagney@redhat.com>
152
153 * regcache.h (deprecated_read_register_gen): Rename
154 read_register_gen.
155 (deprecated_write_register_gen): Rename write_register_gen.
156 * i387-tdep.c: Update.
157 * x86-64-linux-nat.c: Update
158 * wince.c: Update.
159 * thread-db.c: Update.
160 * win32-nat.c: Update.
161 * mips-tdep.c: Update.
162 * d10v-tdep.c: Update.
163 * cris-tdep.c: Update.
164 * remote-sim.c: Update.
165 * remote-rdi.c: Update.
166 * remote-rdp.c: Update.
167 * frame.c: Update.
168 * target.c: Update.
169 * blockframe.c: Update.
170 * x86-64-tdep.c: Update.
171 * xstormy16-tdep.c: Update.
172 * sh-tdep.c: Update.
173 * s390-tdep.c: Update.
174 * rs6000-tdep.c: Update.
175 * sparc-tdep.c: Update.
176 * i386-tdep.c: Update.
177 * dwarf2cfi.c: Update.
178 * regcache.c: Update.
179
7a7adcdf
JB
1802002-11-01 Joel Brobecker <brobecker@gnat.com>
181
182 New interix-specific files:
183 * config/i386/nm-interix.h: New file.
184 * config/i386/interix.mh: New file.
185 * config/i386/interix.mt: New file.
186 * i386-interix-nat.c: New file.
187 * i386-interix-tdep.c: New file.
188
bdcdd535
AC
1892002-11-01 Andrew Cagney <cagney@redhat.com>
190
191 * frame.h (deprecated_generic_get_saved_register): Rename
192 generic_get_saved_register.
193 * blockframe.c (deprecated_generic_get_saved_register): Update.
194 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
195 (xstormy16_frame_saved_register): Update.
196 * sh-tdep.c (sh_gdbarch_init): Update.
197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
198 * ia64-tdep.c (ia64_get_saved_register): Update.
199 * cris-tdep.c (cris_gdbarch_init): Update.
200 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
201 * arm-tdep.c (arm_gdbarch_init): Update.
202
2a4b7c45
DJ
2032002-10-31 Daniel Jacobowitz <drow@mvista.com>
204
205 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
206
ef17e74b
DJ
2072002-10-31 Daniel Jacobowitz <drow@mvista.com>
208
209 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
210 trampolines in sigaction.
211
4904ba5b
AC
2122002-10-31 Andrew Cagney <cagney@redhat.com>
213
214 * h8300-tdep.c: Include "gdb_assert.h".
215 (h8300_print_register): Add gdbarch, file and frame parameters.
216 Use frame_read_unsigned_register to read the register's value.
217 Use fprintf_filtered to display output.
218 (h8300_print_registers_info): Replace h8300_do_registers_info.
219 (h8300_gdbarch_init): Set print_registers_info.
220
f908a0eb
AC
2212002-10-31 Andrew Cagney <cagney@redhat.com>
222
223 * frame.c (frame_read_unsigned_register): New function.
224 (frame_read_signed_register): New function.
225 * frame.h (frame_read_unsigned_register): Declare.
226 (frame_read_signed_register): Declare.
227
c5646e11
AC
2282002-10-31 Andrew Cagney <cagney@redhat.com>
229
230 * h8500-tdep.c (h8500_print_registers_info): New static function,
231 clone of infcmd.c's default_print_registers_info.
232 (h8500_do_registers_info): New funtion.
233 (h8500_print_register_hook): Rename print_register_hook, make
234 static.
235
236 * config/h8500/tm-h8500.h: Update copyright.
237 (DEPRECATED_DO_REGISTERS_INFO): Define.
238 (h8500_do_registers_info: Declare.
239 (PRINT_REGISTER_HOOK): Delete macro.
240 (print_register_hook): Delete function.
241
0bdd672b
AC
2422002-10-31 Andrew Cagney <cagney@redhat.com>
243
244 * z8k-tdep.c (z8k_print_register_hook): Make static.
245 (z8k_print_registers_info): New static function, clone of
246 infcmd.c's default_print_registers_info.
247 (z8k_do_registers_info): New function. Wrap
248 z8k_print_registers_info.
249 * config/z8k/tm-z8k.h: Update copyright.
250 (PRINT_REGISTER_HOOK): Delete macro.
251 (z8k_print_register_hook): Delete declaration.
252 (DEPRECATED_DO_REGISTERS_INFO): Define.
253 (z8k_do_registers_info): Declare.
254
bf9c25dc
JB
2552002-10-30 Joel Brobecker <brobecker@gnat.com>
256
257 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
258 as this is already provided by value.h, and was actually causing
259 a compilation error because of a conflict in parameter type
260 declaration due to a missing const keyword.
261 (low_text_segment_addres): Fix a compilation warning.
262
2c665b51
DJ
2632002-10-29 Daniel Jacobowitz <drow@mvista.com>
264
265 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
266 registers without a name.
267 (mips_linux_cannot_store_register): Don't store registers without
268 a name.
269
e70ea697
DC
2702002-10-28 David Carlton <carlton@math.stanford.edu>
271
272 * symtab.c (find_addr_symbol): Delete. (It was already commented
273 out.)
274 * symtab.h: Delete prototype for find_addr_symbol.
275
903ad3a6
AC
2762002-10-26 Andrew Cagney <cagney@redhat.com>
277
278 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
279 DO_REGISTERS_INFO.
280 gdbarch.h, gdbarch.c: Re-generate.
281 * infcmd.c (default_print_registers_info): Update reference.
282 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
283 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
284 * sh-tdep.c (sh_gdbarch_init): Ditto.
285 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
286 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
287
ab91194c
MK
2882002-10-26 Mark Kettenis <kettenis@gnu.org>
289
e3033f15
MK
290 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
291 cfi_init_extra_frame_info.
292 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
293 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
294
b83b026c
MK
295 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
296 target where necessary. Add more comments and remove the ones
297 that don't provide any useful information.
298
267bf4bb
MK
299 * i386-tdep.c (i386_frame_saved_pc): Replace call to
300 deprecated_read_register_dummy with
301 frame_unwind_unsigned_register.
302
751f1375
MK
303 * i386-tdep.c (i386_extract_struct_value_address): Use
304 regcache_raw_read_unsigned instead of
305 regcache_cooked_read_unsigned since we know that the register
306 we're reading isn't a pseudo register. Rename variable 'val' into
307 the more descriptive 'addr'.
308
26abbdc4
MK
309 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
310 (x86_64_push_return_address): Add comment.
311 (x86_64_pop_frame): Make static.
312 (examine_argument): Clarify comment.
313 (x86_64_skip_prologue): Make prolog_expact variable static.
314
9f1549cc
MK
315 * dwarf2cfi.c: Fix some formatting problems.
316 (context_cpy, read_encoded_pointer): Clarify comments.
317
ab91194c
MK
318 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
319 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
320 i386 target back into x86_64_gdbarch_init. Add some comments and
321 remove meaningless ones.
322
72367fb4
AC
3232002-10-25 Andrew Cagney <cagney@redhat.com>
324
325 * complaints.h (struct deprecated_complaint): Rename `struct
326 complaint'.
327 * complaints.c (complain): Update.
328 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
329 incorrect comment indicating that "symfile.h" was being included
330 for the `struct complaint' definition.
331 * remote-vx.c: Update.
332 * objc-lang.c: Update.
333 * xcoffread.c: Update.
334 * hpread.c: Update.
335 * mdebugread.c: Update.
336 * stabsread.c: Update.
337 * dwarf2read.c: Update.
338 * dwarfread.c: Update.
339 * elfread.c: Update.
340 * coffread.c: Update.
341 * stabsread.h: Update.
342 * dbxread.c: Update.
343 * buildsym.c: Update.
344 * gdbtypes.c: Update.
345 * macrotab.c: Update.
346
1f2baacc
MK
3472002-10-25 Mark Kettenis <kettenis@gnu.org>
348
0c1a73d6
MK
349 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
350 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
351 (x86_64_init_abi): ...new function.
352
6aee4d54 353 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
354 * i386v-nat.c: Include "i386-tdep.h".
355
8f9cbe01
AC
3562002-10-25 Andrew Cagney <cagney@redhat.com>
357
5f11f355
AC
358 * gdbtypes.c (address_space_name_to_int): Update.
359 (address_space_int_to_name): Update.
360 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
361 multi-arch predicate.
362 (address_class_name_to_type_flags): Ditto.
363 * gdbarch.h, gdbarch.c: Re-generate.
364
8f9cbe01
AC
365 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
366
e8d96a5d
MH
3672002-10-24 Martin M. Hunt <hunt@redhat.com>
368
369 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
370
fe39c653
EZ
3712002-10-24 Elena Zannoni <ezannoni@redhat.com>
372
373 * symtab.h (INIT_SAL): Delete macro.
374 (init_sal): Export.
375 * symtab.c (init_sal): New function.
376
377 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
378 to init_sal function call.
379 (find_sal_from_funcs_and_line): Ditto.
380 (all_sals_for_line): Ditto.
381 * breakpoint.c (create_internal_breakpoint): Ditto.
382 (create_fork_vfork_event_catchpoint): Ditto.
383 (create_exec_event_catchpoint): Ditto.
384 (parse_breakpoint_sals): Ditto.
385 (watch_command_1): Ditto.
386 (handle_gnu_4_16_catch_command): Ditto.
387 (clear_command): Ditto.
388 * hppa-tdep.c (child_enable_exception_callback): Ditto.
389 * infcmd.c (run_stack_dummy): Ditto.
390 * infrun.c (process_event_stop_test): Ditto.
391 (check_sigtramp2): Ditto.
392 (step_over_function): Ditto.
393 * linespec.c (decode_line_2): Ditto.
394 (decode_line_1): Ditto.
395 * source.c (line_info): Ditto.
396 * symtab.c (find_pc_sect_line): Ditto.
397
baed091b
ML
3982002-10-24 Michal Ludvig <mludvig@suse.cz>
399
400 * dwarf2cfi.c (struct context)
401 (struct context_reg): Moved to dwarf2cfi.h
402 (context_alloc, frame_state_alloc, context_cpy):
403 Made extern instead of static, removed prototypes.
404 * dwarf2cfi.h (struct context)
405 (struct context_reg): New, moved from dwarf2cfi.c
406 (context_alloc, frame_state_alloc, context_cpy):
407 New prototypes.
408 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
409 Changed from static to extern.
410 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
411 (LINUX_SIGCONTEXT_FP_OFFSET)
412 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
413 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
414 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
415 * x86-64-tdep.c (x86_64_gdbarch_init): Several
416 set_gdbarch_*() calls now use x86-64 specific functions
417 instead of DWARF2 CFI ones.
418 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
419 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
420 (x86_64_init_extra_frame_info): New prototypes.
421
c38da1af
DC
4222002-10-23 David Carlton <carlton@math.stanford.edu>
423
424 * linespec.c: #include "parser-defs.h".
425 Delete prototype for find_template_name_end.
426 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
427
fb9b6b35
JJ
4282002-10-23 Jeff Johnston <jjohnstn@redhat.com>
429
430 * NEWS: add recent mi fixes.
431 * varobj.c (struct varobj): Add new "updated" flag.
432 (new_variable): Default "updated" flag to 0.
433 (varobj_set_value): Set "updated" flag to 1 if value
434 changes.
435 (varobj_update): Check varobj "updated" flag before
436 comparing old and refreshed values. Fix for
437 PR gdb/702.
438
8da065d5
DC
4392002-10-23 David Carlton <carlton@math.stanford.edu>
440
441 * parse.c (parse_exp_1): Use BLOCK_START.
442 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
443 SYMBOL_BLOCK_VALUE.
444 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
445
87f2f08c
DC
4462002-10-23 David Carlton <carlton@math.stanford.edu>
447
448 * symtab.c: Delete cplusplus_hint.
449 Delete prototype for find_template_name_end.
450
88cda038
EZ
4512002-10-23 Elena Zannoni <ezannoni@redhat.com>
452
453 * symtab.h: Update comment.
454
2625d86c
MS
4552002-10-23 Michael Snyder <msnyder@redhat.com>
456
457 * printcmd.c (address_info): Restore quotes in output.
458 * valops.c (value_of_local): Restore quotes in error message.
459
9cc0d196
EZ
4602002-10-23 Elena Zannoni <ezannoni@redhat.com>
461
462 * symtab.c (symbol_demangled_name): New function.
463 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
464 turning most of it into a function.
465 (symbol_demangled_name): Export.
466
19de93d0
MS
4672002-10-23 Michael Snyder <msnyder@redhat.com>
468
469 * valops.c (value_of_local): Restore quotes in error message.
470
89aad1f9
EZ
4712002-10-23 Elena Zannoni <ezannoni@redhat.com>
472
473 * symtab.c (symbol_init_language_specific): New function.
474 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
475 turning most of it into a function.
476 (symbol_init_language_specific): Export.
477
d9fa45fe
DC
4782002-10-23 David Carlton <carlton@math.stanford.edu>
479
480 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
481 (dwarf_attr_name): Ditto.
482 (dwarf_type_encoding_name): Ditto.
483 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
484 (process_die): Handle DW_TAG_namespace,
485 DW_TAG_imported_declaration, DW_TAG_imported_module.
486 (read_namespace): New function.
487
1045b512
JB
4882002-10-22 Joel Brobecker <brobecker@gnat.com>
489
490 * configure.in: Define NEW_PROC_API on Interix too.
491 * configure: Regenerate.
492
4932002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
494
495 * configure: Regenerate using the proper version of autoconf.
496
3987b9d4
EZ
4972002-10-21 Elena Zannoni <ezannoni@redhat.com>
498
499 * findvar.c (read_var_value): Temporarily disable TLS code, until
500 complete TLS support is added.
501
9d774e44
EZ
5022002-10-21 Jim Blandy <jimb@redhat.com>
503 Elena Zannoni <ezannoni@redhat.com>
504
505 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
506 for thread local storage locations.
507 (struct symbol): Add objfile field.
508 (SYMBOL_OBJFILE): Define.
509 * dwarf2read.c (is_thread_local): New static variable.
510 (new_symbol): If variable is in thread local fill in address class
511 and objfile appropriately.
512 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
513 stack operation.
514 * printcmd.c (address_info): Print the information for thread
515 local storage variable.
516 * findvar.c (read_var_value): In case of thread local variable,
517 defer to the target vector code to compute address.
518
bc4a16ae
EZ
5192002-10-21 Elena Zannoni <ezannoni@redhat.com>
520
521 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
522 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
523
407caf07
EZ
5242002-10-21 Elena Zannoni <ezannoni@redhat.com>
525
526 * symtab.h (address_class): Rename
527 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
528 * hpread.c (hpread_process_one_debug_symbol): Ditto.
529 * printcmd.c (address_info): Ditto.
530 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
531
005328e3
MK
5322002-10-20 Mark Kettenis <kettenis@gnu.org>
533
afdb036a
MK
534 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
535 DBREG_DRX macro to acces debug registers.
536
ca02e098
MK
537 * Makefile.in (i386obsd-tdep.o): New target.
538
03cc47f7
MK
539 * solib-sunos.c: Include "bcache.h" and "regcache.h".
540 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
541
005328e3
MK
542 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
543 * config/i386/obsd.mt: New file.
544 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
545 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
546 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
547 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
548 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
549 * i386obsd-tdep.c: New file.
550
9c96f9f2
AF
5512002-10-19 Adam Fedor <fedor@gnu.org>
552
553 * objc-exp.y (name_not_typename): Fix invalid comment.
554
ce1ed485
MK
5552002-10-20 Mark Kettenis <kettenis@gnu.org>
556
557 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
558 to allocate partial syms and macro byte caches.
559
1efc7aaa
DC
5602002-10-18 David Carlton <carlton@math.stanford.edu>
561
562 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
563
7e1d63ec
AF
5642002-10-18 Adam Fedor <fedor@gnu.org>
565
566 * stabsread.c (find_name_end): New function.
567 (define_symbol): Use it.
568
6e8d29a9
DJ
5692002-10-18 Daniel Jacobowitz <drow@mvista.com>
570
571 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
572 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
573 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
574 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
575
1efc7aaa 5762002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
577
578 * symfile.h: Add opaque declaration for struct obstack.
579 Declare obsavestring to take a const char *.
580 * symfile.c (obsavestring): Make first argument a const char *.
581
1aeae86e
AF
5822002-10-16 Adam Fedor <fedor@gnu.org>
583
584 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
585 names when matching breakpoints in current file.
586
8b2dbe47
KB
5872002-10-16 Kevin Buettner <kevinb@redhat.com>
588
589 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
590 (read_tag_pointer_type): Add address class support.
591 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
592 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
593 New methods.
594 * gdbarch.h, gdbarch.c: Regenerate.
595 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
596 (make_type_with_address_space, recursive_type_dump): Add address
597 class support.
598 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
599 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
600 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
601
74451869
KD
6022002-10-16 Klee Dienes <kdienes@apple.com>
603
604 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
605 to get the last character of a char[] buffer, not
606 name[sizeof(vptr_name)-1].
607
ff4cb3e8
AF
6082002-10-14 Adam Fedor <fedor@gnu.org>
609
610 * symtab.h: New objc_specific struct.
611 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
612 (SYMBOL_DEMANGLED_NAME): Likewise.
613
da2cf7e0
AF
6142002-10-14 Adam Fedor <fedor@gnu.org>
615
616 * symfile.c (init_filename_language_table): Add ObjC file extension.
617
4a351cef
AF
6182002-10-14 Adam Fedor <fedor@gnu.org>
619
620 * utils.c (puts_filtered_tabular): New function.
621 (fprintf_symbol_filtered): Get ObjC demangled name.
622 * defs.h (puts_filtered_tabular): Declared.
623
9750e763
KB
6242002-10-14 Kevin Buettner <kevinb@redhat.com>
625
626 * c-lang.h (c_type_print_varspec_prefix): Delete.
627 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
628 ``need_post_space'' parameter. Adjust all callers.
629
eee771c1
DJ
6302002-10-14 Daniel Jacobowitz <drow@mvista.com>
631
632 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
633 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
634 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
635 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
636
46c82446
AF
6372002-10-13 Adam Fedor <fedor@gnu.org>
638
639 * source.c (print_source_lines): Update comments.
640
d069f99d
AF
6412002-10-13 Adam Fedor <fedor@gnu.org>
642
643 * valops.c (value_of_local): New function.
644 (value_of_this): Use it.
645 * value.h (value_of_local): Declared.
646
53c551b7
AF
6472002-10-13 Adam Fedor <fedor@gnu.org>
648
649 * parse.c: (length_of_subexp, prefixify_subexp): Handle
650 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
651
eb392fbf
AF
6522002-10-12 Adam Fedor <fedor@gnu.org>
653
654 * language.c (binop_result_type): Add language_objc to case.
655 (integral_type): Likewise.
656 (character_type): Likewise.
657 (string_type): Likewise.
658 (boolean_type): Likewise.
659 (structured_type): Likewise.
660 (binop_type_check): Likewise.
661
e2b23ee9
AF
6622002-10-11 Adam Fedor <fedor@gnu.org>
663
664 * printcmd.c (address_info): Print 'self' for ObjC.
665
b01ab485
AF
6662002-10-11 Adam Fedor <fedor@gnu.org>
667
668 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
669 OP_SELF.
670
806e6073
AF
6712002-10-11 Adam Fedor <fedor@gnu.org>
672
673 * language.h (CAST_IS_CONVERSION): Add language_objc.
674
50f85cdf
AF
6752002-10-11 Adam Fedor <fedor@gnu.org>
676
677 * defs.h (enum language): Add language_objc.
678
0d540cdf
KD
6792002-10-11 Klee Dienes <kdienes@apple.com>
680
69266111 681 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
682 * gdbcore.h (read_memory_typed_address): Add prototype.
683 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
684 to read a value destined for a CORE_ADDR, not read_memory_integer.
685 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
686 (f77_get_dynamic_lowerbound): Ditto.
687
d5dc7960
MH
6882002-10-11 Martin M. Hunt <hunt@redhat.com>
689
690 * utils.c (string_to_core_addr): After turning string into
691 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
692 which will do necessary sign-extension, etc.
693
8343f86c
DJ
6942002-10-11 Daniel Jacobowitz <drow@mvista.com>
695
696 * c-exp.y (THIS): Delete token and grammar rule.
697 (yylex): Don't return THIS.
698 * cp-valprint.c (vtbl_ptr_name_old): Delete.
699 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
700 * demangle.c (cplus_markers): Update comment. Put '$'
701 first. Remove CPLUS_MARKER.
702 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
703 * jv-exp.y (THIS): Delete token and grammar rule.
704 (yylex): Don't return THIS.
705 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
706 * objc-exp.y (THIS): Delete token and grammar rule.
707 (yylex): Don't return THIS.
708 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
709 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
710 (read_member_functions): Likewise for opname.
711 (read_tilde_fields): Use is_cplus_marker.
712
713 * defs.h (CPLUS_MARKER): Don't define.
714 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
715 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
716 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
717 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
718 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
719
720 * config/i386/tm-i386v4.h: Delete file.
721 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
722 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
723 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
724 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
725 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
726 * config/i386/i386sco5.mt (TM_FILE): Likewise.
727 * config/i386/i386v4.mt (TM_FILE): Likewise.
728 * config/i386/ncr3000.mt (TM_FILE): Likewise.
729
967c0d83
MM
7302002-10-10 Marko Mlinar <markom@opencores.org>
731
732 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
733 accidentially not commited 2002-10-09
734 * gdbarch.h, gdbarch.c: Re-generate.
735
f74fa174
MM
7362002-10-09 Marko Mlinar <markom@opencores.org>
737
738 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
739 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
740 * gdbarch.h, gdbarch.c: Re-generate.
741
57349743
JB
7422002-10-08 Petr Sorfa <petrs@caldera.com>
743
744 Revised and re-submitted by John Wolfe <jlw@caldera.com>
745
746 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
747 so we can work on more than one compilation unit at a time. This
748 helps prepare GDB to handle inter-CU die references.
749 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
750 the code to be defined before struct comp_unit_head.
751 (comp_unit_head): Added new members - offset, cu_head,
752 begin_die, next and dwarf2_abbrevs.
753 (dwarf2_abbrevs): Removed single static var; now member of
754 struct comp_unit_head.
755 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
756 members.
757 (psymtab_to_symtab_1): Changed to work with the new
758 struct comp_unit_head.
759 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
760 constructs the dwarf2_abbrevs[] inside the cu_header.
761 (dwarf2_empty_abbrev_table): Now expects a ptr to a
762 dwarf2_abbrev table to clean up.
763 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
764 handling of dwarf2_abbrevs inside the cu_header.
765 (read_partial_die): Now supports the call to the new
766 dwarf2_lookup_abbrev.
767 (read_full_die): Now supports the call to the new
768 dwarf2_lookup_abbrev.
769
4092aadb
CF
7702002-10-06 Christopher Faylor <cgf@redhat.com>
771
772 * Makefile.in (install-gdbtk): Add missing continuation backslash to
773 insure that shell variables, such as "transformed_name" are propagated
774 to later shell statements in rule.
775
af0b2512
MK
7762002-10-06 Mark Kettenis <kettenis@gnu.org>
777
778 * config/i386/nm-i386sco.h: Add protection against
779 multiple-inclusion. Include "i386/nm-i386v.h".
780 (REGISTER_U_ADDR): Remove define.
781 (i386_register_u_addr): Remove prototype.
782
d6020d45
MS
7832002-10-04 Michael Snyder <msnyder@redhat.com>
784
785 * m32r-stub.c (handle_exception): Make sure exception is "trap"
786 before treating it as a single-step event.
787
7248f48e
AF
7882002-10-03 Adam Fedor <fedor@gnu.org>
789
790 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
791 (objc_demangle): Remove assignment in if statements, Replace
792 free with xfree.
793 (add_msglist): Likewise.
794 (end_msglist): Likewise.
795 (complare_selectors): Likewise.
796 (selectors_info): Likewise.
797 (compare_classes): Likewise.
798 (classes_info): Likewise.
799 (print_object_command): Likewise.
800 (find_objc_msgcall_submethod): Replace PTR with void *.
801 * objc-lang.h: Remove check for __STDC__.
802
52c6a6ac
JJ
8032002-10-03 Jeff Johnston <jjohnstn@redhat.com>
804
805 * ui-out.h (ui_out_field_fmt_int): New prototype.
806 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
807 of field width and alignment.
808 * stack.c (print_frame_info_base): When printing frame level, use
809 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
810 PR gdb/192
811
7e3cec17
JJ
8122002-10-03 Jeff Johnston <jjohnstn@redhat.com>
813
814 * MAINTAINERS: Add self to Write After Approval list.
815
a58dd373
EZ
8162002-10-02 Elena Zannoni <ezannoni@redhat.com>
817
818 * infcmd.c (interrupt_target_command_wrapper): Delete.
819 (interrupt_target_command): Make non static.
820 (nofp_registers_info): Make static.
821 * stack.c (return_command_wrapper): Delete.
822 (return_command): Make non static.
823
cee6ddeb
EZ
8242002-10-02 Elena Zannoni <ezannoni@redhat.com>
825
826 * event-top.c (gdb_setup_readline): New function. Code moved from
827 _initialize_event_loop().
828 (_initialize_event_loop): Call gdb_setup_readline().
829
c4ed33b9
AC
8302002-10-02 Andrew Cagney <ac131313@redhat.com>
831
832 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
833 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
834 * gdbarch.h, gdbarch.c: Re-generate.
835
cef4f5dd
DJ
8362002-10-02 Daniel Jacobowitz <drow@mvista.com>
837
838 Fix PR gdb/778
839 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
840 before recursing.
841 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
842 of fill_in_vptr_fieldno.
843
36dc181b 8442002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 845
36dc181b
EZ
846 * inferior.h (registers_info, stepi_command, nexti_command,
847 continue_command, interrupt_target_command): Export from infcmd.c.
848 * frame.h (args_info, selected_frame_level_changed_hook,
849 return_command): Export from stack.c.
850 * v850ice.c (stepi_command, nexti_command, continue_command): use
851 prototypes from inferior.h.
852 * tracepoint.c (registers_info, args_info, locals_info): Use
853 prototypes from frame.h and inferior.h.
854 * Makefile.in (mi-main.o): Add dependency on frame.h.
855
6f99cb26
AC
8562002-10-02 Andrew Cagney <ac131313@redhat.com>
857
da3eff49
AC
858 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
859 value in register 3 adjusted by ppc_gp0_regnum.
860
6f99cb26
AC
861 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
862
da615bee
MM
8632002-10-02 Marko Mlinar <markom@opencores.org>
864
865 * MAINTAINERS: Add myself to the Write After Approval list.
866
d154bee2
AO
8672002-10-01 Alexandre Oliva <aoliva@redhat.com>
868
62a49b2c
AO
869 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
870 of the section for the N64 ABI, fixed.
871
d154bee2
AO
872 * config/mips/tm-irix6.h: Include solib.h.
873
ed348acc
EZ
8742002-10-01 Elena Zannoni <ezannoni@redhat.com>
875
876 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
877 GNU operators.
878
da0f9dcd
AC
8792002-10-01 Andrew Cagney <ac131313@redhat.com>
880
881 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
882 and that "mi0" syntax has been removed.
883
bdf64bac
DC
8842002-09-30 David Carlton <carlton@math.stanford.edu>
885
886 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
887 * ppc-sysv-tdep.c: #include "gdb_string.h".
888 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
889 pacify GCC.
890
54c2a1e6
AC
8912002-10-01 Andrew Cagney <ac131313@redhat.com>
892
893 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
894 "vrsave"'s register number.
895
cedea778
AC
8962002-09-30 Andrew Cagney <ac131313@redhat.com>
897
898 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
899 use frame_unwind_signed_register to obtain the PC.
900 (mips_frame_chain): Handle a generic dummy frame.
901 (mips_init_extra_frame_info): When a generic dummy frame, don't
902 re-compute the frame base.
903 (mips_pop_frame): Handle generic dummy frames.
904 (mips_gdbarch_init): When generic dummy frames, set
905 use_generic_dummy_frames, push_dummy_frame to
906 generic_push_dummy_frame, pc_in_call_dummy to
907 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
908 generic_save_dummy_frame_tos.
909
68315eb8
AC
9102002-09-30 Andrew Cagney <ac131313@redhat.com>
911
912 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
913 against TOP when TOP was explictly set.
914 (generic_push_dummy_frame): Set TOP to zero.
915
3b8630c3
EZ
9162002-09-30 Elena Zannoni <ezannoni@redhat.com>
917
918 * event-loop.c (start_event_loop): Rename variable 'result' to
919 'gdb_result', to avoid conflicts with upcoming intepreters changes.
920
28ee05e9
KS
9212002-09-30 Keith Seitz <keiths@redhat.com>
922
923 * gdb-events.sh (selected_thread_changed): New event.
924 * gdb-events.c: Regenerated.
925 * gdb-events.h: Regenerated.
926
6eecb1c8
HPN
9272002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
928
929 * MAINTAINERS: Add self to Write After Approval list.
930
92df71f0
FN
9312002-09-30 Fernando Nasser <fnasser@redhat.com>
932
3b8630c3
EZ
933 * disasm.c: New file.
934 * disasm.h: New file.
92df71f0
FN
935 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
936 (compare_lines): Ditto.
937 (dump_insns): Ditto.
3b8630c3
EZ
938 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
939 argument.
92df71f0 940 (do_assembly_only): Ditto.
3b8630c3
EZ
941 (do_disassembly): Renamed to gdb_disassembly and moved to
942 disasm.c. Sdded uiout argument.
943 * Makefile.in: Add new files. Reorder SFILES list. Update
944 dependencies. Include libgdb.a later in the insight executable.
92df71f0 945
0c22854d
AC
9462002-09-29 Andrew Cagney <ac131313@redhat.com>
947
948 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
949 bfd/elf64-alpha-fbsd.c.
950
e67f2023
AC
9512002-09-29 Andrew Cagney <ac131313@redhat.com>
952
953 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
954 i386gnu-tdep.c.
955
89396210
AC
9562002-09-29 Andrew Cagney <ac131313@redhat.com>
957
958 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
959 __FUNCTION__.
960 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
961 function name.
962 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
963 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
964 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
965 (S_msg_sig_post_reply): Ditto.
966
7079c36c
CV
9672002-09-28 Corinna Vinschen <vinschen@redhat.com>
968
89396210
AC
969 * sh-tdep.c (sh_use_struct_convention): Use definition according
970 to ABI.
7079c36c
CV
971 (sh_push_arguments): Store in register with correct endianess.
972 (sh_default_store_return_value): Ditto.
973 (sh_gdbarch_init): Set sizeof long double to 8.
974
975ac915
MK
9752002-09-27 Mark Kettenis <kettenis@gnu.org>
976
977 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
978 Fix some whitespace problems.
979
9bbe19fb
DC
9802002-09-27 David Carlton <carlton@math.stanford.edu>
981
982 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
983 (mcore-tdep.o): Ditto.
984 (ns32k-tdep.o): Ditto.
985 (ns32knbsd-tdep.o): Ditto.
986 (sh3-rom.o): Ditto.
987 (vax-tdep.o): Ditto.
988 * cris-tdep.c: #include "gdb_string.h"
989 * mcore-tdep.c: Ditto.
990 * ns32k-tdep.c: Ditto.
991 * ns32knbsd-tdep.c: Ditto.
992 * sh3-rom.c: Ditto.
993 * vax-tdep.c: Ditto.
994
43b2fdc7
DC
9952002-09-27 David Carlton <carlton@math.stanford.edu>
996
997 * config/djgpp/fnchange.lst: Add entries for
998 gdb/testsuite/gdb.c++/m-static files.
999
e8cfbbd9
JW
10002002-09-27 Jim Wilson <wilson@redhat.com>
1001
1002 * MAINTAINERS: Add myself to the Write After Approval list.
1003
43b2fdc7 10042002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
1005
1006 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1007
1008
9f3b7f07
AC
10092002-09-26 Andrew Cagney <ac131313@redhat.com>
1010
1011 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1012 frame.
1013
11269d7e
AC
10142002-09-26 Andrew Cagney <ac131313@redhat.com>
1015
1016 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1017 (rs6000_struct_return_address): Delete variable.
1018 (rs6000_store_struct_return): Update.
1019 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1020 deprecated_extract_struct_value_address.
1021 (rs6000_frame_align): New function.
1022 (rs6000_gdbarch_init): Set frame_align.
1023
f15ab4a7
AC
10242002-09-26 Andrew Cagney <ac131313@redhat.com>
1025
1026 From Grace Sainsbury <graces@redhat.com>:
1027 * Makefile.in (gdbtk-main.o): New target.
1028 (gdb.o): New target.
1029 (main_h): Define.
1030 (main.o): Update dependencies.
1031 (gdb$(EXEEXT)): Add gdb.o.
1032 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1033 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1034 (SUBDIR_GDBTK_CLEAN): Set.
1035 (install-gdbtk): Install the insight binary.
1036 (uninstall-gdbtk): New target.
1037 (all-gdbtk, clean-gdbtk): New rule.
1038 * top.c (use_windows): Default to zero.
1039 * main.c: Include "main.h".
1040 (main): Delete.
1041 (struct captured_main_args): Delete.
1042 (gdb_main): New function.
1043 * main.h: New file.
1044 * gdb.c: New File.
1045
e36180d7
AC
10462002-09-25 Andrew Cagney <cagney@redhat.com>
1047
1048 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1049 (frame_map_regnum_to_name): New function.
1050 (frame_map_name_to_regnum): New function.
1051 * frame.h (frame_map_name_to_regnum): Declare.
1052 (frame_map_regnum_to_name): Declare.
1053 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1054 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1055 * parse.c: Do not include "builtin-regs.h".
1056 (target_map_name_to_register): Delete function.
1057 (write_dollar_variable): Use frame_map_name_to_regnum.
1058 * parser-defs.h (target_map_name_to_register): Delete declaration.
1059 * expprint.c: Include "frame.h".
1060 (print_subexp): Use frame_map_regnum_to_name.
1061 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1062 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1063
8b69000d
AC
10642002-09-25 Andrew Cagney <ac131313@redhat.com>
1065
1066 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1067 wasn't saved, and the next innermost frame is a dummy, return the
1068 dummy frame's link register.
1069
046ca86a
JB
10702002-09-24 Jim Blandy <jimb@redhat.com>
1071
1072 Fix from Paul Breed:
1073 * main.c (captured_main): Add a `break' after the case for 'b'.
1074
94b66fa7
KS
10752002-09-24 Keith Seitz <keiths@redhat.com>
1076
1077 * varobj.c (c_type_of_child): Use get_target_type instead
1078 of TYPE_TARGET_TYPE.
1079
c214a6fd
FN
10802002-09-22 Fernando Nasser <fnasser@redhat.com>
1081
53cb0458
FN
1082 * source.c (get_current_or_default_source_symtab_and_line): Remove
1083 function.
1084 (set_default_source_symtab_and_line): New function. Attempts to
1085 determine a source file to list lines from if one is not currently
1086 defined.
1087 (get_current_source_symtab_and_line): Initialize sal.pc and
1088 sal.end fields.
1089 (set_current_source_symtab_and_line): Mark argument as const.
1090 * source.h: Update declarations and comments.
1091 * linespec.c (decode_line_1): Replace call to removed routine above.
1092 * stack.c (print_frame_info_base): Ditto.
1093 * cli/cli-cmds.c (edit_command): Ditto.
1094 (list_command): Ditto.
1095
10962002-09-22 Fernando Nasser <fnasser@redhat.com>
1097
d6020d45 1098 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1099 sal.pc and sal.end fields.
c214a6fd
FN
1100 (get_current_or_default_source_symtab_and_line): Ditto.
1101 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1102 so we do not cause a new source symtab to be searched for (reverting an
1103 unintentional change from the 2002-09-20 patch).
1104 * scm-lang.c (scm_unpac): Ditto.
1105
cc3b68a5
AC
11062002-09-21 Andrew Cagney <cagney@redhat.com>
1107
1108 * complaints.c (symfile_explanations): Remove new-line from
1109 ``isolated_message''.
1110 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1111 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1112
5835abe7
NC
11132002-09-20 Nick Clifton <nickc@redhat.com>
1114
1115 * NEWS: Announce that V850EA ISA is no longer supported.
1116 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1117
a15ef5f5
DC
11182002-09-20 David Carlton <carlton@math.stanford.edu>
1119
06ba1b39
DC
1120 * Makefile.in (c-lang.o): Correct dependencies.
1121 (utils.o): Gather dependencies.
1122 (charset.o): Move.
a15ef5f5
DC
1123 * c-lang.c: #include "gdb_string.h"
1124
87885426
FN
11252002-09-20 Fernando Nasser <fnasser@redhat.com>
1126
1127 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1128 * cli/cli-cmds.c (list_command): New function. Implements the new
1129 cli edit command.
1130 (_init_cli_cmds): Add new command definition.
1131 * gdb.1: Document edit command.
1132 * doc/gdb.texinfo: Document edit command.
1133
11342002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
1135
1136 * source.c: Make global variables current_source_symtab and
1137 current_source_line static.
1138 (list_command): Moved to cli/cli-cmds.c.
1139 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1140 (get_first_line_listed): New accessor function.
1141 (get_lines_to_list): New accessor function.
1142 (get_current_source_symtab_and_line): New function. Retrieves the
1143 position in the source code that we consider current.
1144 (get_current_or_default_source_symtab_and_line): New function.
1145 Like the above but attempts to determine a default position if one
1146 is not currently defined.
1147 (set_current_source_symtab_and_line): New function. Sets the source
1148 code position considered current and returns the previously set one.
1149 (clear_current_source_symtab_and_line): Reset stored information about
1150 a current source line.
1151 (_initialize_source): Remove registration for the "list" command and
1152 its alias.
1153 * source.h: Add declarations for the new functions above.
1154 * symtab.h: Remove declarations for the global variables mentioned
1155 above.
1156 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1157 obtain current source line.
1158 * linespec.c (decode_line_1): Ditto.
1159 * macroscope.c (default_macro_scope): Ditto.
1160 * scm-lang.c (scm_unpac): Ditto.
1161 * stack.c (print_frame_info_base): Ditto.
1162 * symfile.c (clear_symtab_users): Ditto.
1163 * symtab.c (decode_line_spec): Ditto.
1164 * cli/cli-cmds.c (list_command): Moved here from source.c.
1165 (ambiguous_line_spec): Moved here from source.c.
1166 (_init_cli_cmds): Add definition for "list" and its alias.
1167 * Makefile.in: Update dependencies.
1168
ddd216ea
CV
11692002-09-20 Corinna Vinschen <vinschen@redhat.com>
1170
1171 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1172 with what gcc thinks is correct.
1173
6d305052
CV
11742002-09-20 Corinna Vinschen <vinschen@redhat.com>
1175
1176 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1177 multiple register push instruction.
1178
234b45d4
KB
11792002-09-19 Jim Blandy <jimb@redhat.com>
1180
1181 Add support for distinct host and target character sets.
1182 * charset.c, charset.h: New files.
1183 * c-exp.y: #include "charset.h".
1184 (yylex): Convert character and string literals to the target
1185 character set, before returning them as the semantic value of the
1186 token.
1187 * c-lang.c: #include "charset.h".
1188 (c_emit_char): Use charset-specific methods to recognize
1189 characters with backslash escape forms, to decide which characters
1190 to print literally and which to print using numeric escape
1191 sequences, and to convert target characters to host characters
1192 before printing.
1193 * utils.c: #include "charset.h".
1194 (no_control_char_error): New function.
1195 (parse_escape): Use charset-specific methods to recognize
1196 backslash escapes, parse `control character' notation, and convert
1197 characters from the host character set to the target character set.
1198 * configure.in: Set the default host character set.
1199 Check where to find iconv, and what its argument types might be.
1200 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1201 * Makefile.in (SFILES): List charset.c.
1202 (COMMON_OBS): List charset.o.
1203 (charset.o): New rule.
1204 (charset_h): New header dependency variable.
1205 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1206 (LIBICONV): New variable, set by configure.
1207 (CLIBS): Include $(LIBICONV) here.
1208 * aclocal.m4, config.in, configure: Regenerated.
1209
525d6a61
JB
12102002-09-19 Joel Brobecker <brobecker@gnat.com>
1211
1212 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1213 bison 1.35 warning.
1214
3ed93867
RE
12152002-09-19 Richard Earnshaw <rearnsha@arm.com>
1216
1217 * gdb_mbuild.sh: New file.
1218
437666f8
AC
12192002-09-19 Andrew Cagney <ac131313@redhat.com>
1220
1221 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1222
389e51db
AC
12232002-09-18 Andrew Cagney <ac131313@redhat.com>
1224
1225 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1226 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1227 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1228 valops.c, value.h: Revert previous change.
1229
3b4efeaa
MS
12302002-09-18 Michael Snyder <msnyder@redhat.com>
1231
1232 Preliminary support for Objective-C:
1233 * defs.h (language_objc): New enum value.
1234 (puts_filtered_tabular): Declaration only, exported from utils.c.
1235 (skip_quoted): Delete, declared in completer.h.
1236 * c-exp.y: Include completer.h.
1237 * p-exp.y: Ditto.
1238 * jv-exp.y: Ditto.
1239 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1240 New operator enum values.
1241 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1242 * language.c (binop_result_type): Handle language_objc case.
1243 (integral_type, character_type, string_type, boolean_type,
1244 structured_type, binop_type_check): Ditto.
1245 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1246 (struct objc_specific): Add to general_symbol_info.
1247 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1248 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1249 * parser-defs.h (struct objc_class_str): New struct type.
1250 (start_msglist, end_msglist, add_msglist): Declaration only,
1251 exported from objc-lang.c.
1252 * value.h (value_of_local, value_nsstring,
1253 call_function_by_hand_expecting_type): Exported from valops.c.
1254 * valops.c (find_function_addr): Export.
1255 (call_function_by_hand_expecting_type): New function.
1256 (value_of_local): New function.
1257 * symfile.c (init_filename_language_table): Add ".m" extension
1258 for Objective-C.
1259 * utils.c (puts_filtered_tabular): New function.
1260 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1261 (set/show demangle): Extend help-string to refer to ObjC.
1262 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1263 * stabsread.c (symbol_reference_defined): Objective-C symbols
1264 may contain colons: make allowances when scanning stabs strings
1265 for colons.
1266 (objc_find_colon): New function.
1267 * printcmd.c (address_info): If language == objc then print
1268 "self" instead of "this".
1269 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1270 OP_NSSTRING, and OP_SELF.
1271 (prefixify_subexp): Ditto.
1272 * source.c (print_source_lines): Mention objc in comment.
1273 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1274 method names.
1275
b9caf505
AC
12762002-09-18 Andrew Cagney <ac131313@redhat.com>
1277
1278 * complaints.h: Update copyright.
1279 (struct complaints): Declare.
1280 (struct complaint): Make `message' constant.
1281 (internal_complaint): Declare.
1282 (complaint): Declare.
1283 (complaint_root): Delete declaration.
1284 (symfile_complaints): Delete declaration.
1285 (struct complaints): Add opaque declaration.
1286 (clear_complaints): Add a complaints parameter.
1287 * complaints.c: Update copyright.
1288 (enum complaint_series): Define.
1289 (complaint_root): Delete.
1290 (struct complaints): Define.
1291 (complaint_sentinel, symfile_complaint_book): New variables.
1292 (symfile_explanations, symfile_complaints): New variables.
1293 New variables.
1294 (get_complaints): New function.
1295 (vcomplaint): New function.
1296 (complaint): New function.
1297 (internal_complaint): New function.
1298 (complain): Call vcomplain with symfile_complaint.
1299 (clear_complaints): Rewrite.
1300 (_initialize_complaints): Use add_setshow_command.
1301 * Makefile.in (complaints.o): Update dependencies.
1302 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1303 to call to clear_complaints.
1304 (new_symfile_objfile, reread_symbols): Ditto.
1305 (oldsyms_complaint): Delete.
1306 (empty_symtab_complaint, unknown_option_complaint): Delete.
1307 (free_named_symtabs): Use complaint instead of complain.
1308
d2e6263c
MS
13092002-09-18 Michael Snyder <msnyder@redhat.com>
1310
5fb2031a
AC
1311 Contributed by Apple Computer, Inc. Merged with current sources
1312 by Adam Fedor <fedor@doc.com> [cagney].
1313
d2e6263c
MS
1314 * objc-lang.c: First clean-up round: comments, indentation.
1315 * objc-lang.h: Ditto.
1316 * objc-lang.y: Ditto.
1317
dec43320
AC
13182002-09-18 Andrew Cagney <ac131313@redhat.com>
1319
1320 * maint.c (maintenance_internal_error): Print the parameter as the
1321 error message.
1322 (maintenance_internal_warning): New function.
1323 (_initialize_maint_cmds): Add command `maint internal-warning'.
1324
1325 * defs.h (internal_warning, internal_vwarning): Declare.
1326 * utils.c (struct internal_problem): Define.
1327 (internal_vproblem): New function.
1328 (internal_warning): New function.
1329 (internal_vwarning): New function.
1330 (internal_warning_problem, internal_error_problem): New variables.
1331 (internal_verror): Just call internal_vproblem.
1332
b81654f1
MS
13332002-09-18 Michael Snyder <msnyder@redhat.com>
1334
1335 * objc-lang.c: New file, support for Objective-C.
1336 Preliminary check-in, not yet integrated into gdb.
1337 * objc-lang.h: New file.
1338 * objc-exp.y: New file.
1339
0542c381
AC
13402002-09-18 Andrew Cagney <ac131313@redhat.com>
1341
7bda5e4a
AC
1342 * infrun.c (signal_stop_update): Convert definition to ISO C.
1343 (signal_print_update): Ditto.
1344 (signal_pass_update): Ditto.
1345 * inflow.c (terminal_save_ours): Ditto.
1346
5247b418
AC
1347 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1348 comments.
1349
fc60962c
AC
1350 * config/djgpp/fnchange.lst: Handle name clashes between
1351 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1352 bfd/coff-tic80.c.
1353
0542c381
AC
1354 * i386-linux-tdep.h: Fix tipo.
1355
5b924b9b
AF
13562002-09-18 Adam Fedor <fedor@gnu.org>
1357
1358 * MAINTAINERS: Add myself to the Write After Approval list.
1359
5afc051b
JB
13602002-09-18 Jim Blandy <jimb@redhat.com>
1361
1362 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1363 texthigh and textlow to reader-specific structs caused
1364 objfile_relocate to miss them. This is fixable, but the work that
1365 the change was supposed to prepare GDB for never got done anyway.
1366
eb944380
DC
13672002-09-18 David Carlton <carlton@math.stanford.edu>
1368
1369 * MAINTAINERS: Alphabetize Write After Approval list.
1370
948e66d9
DJ
13712002-09-18 Daniel Jacobowitz <drow@mvista.com>
1372
1373 Fix PR gdb/709
1374 * values.c (value_static_field): Call read_var_value.
1375
dc604539
AC
13762002-09-18 Andrew Cagney <ac131313@redhat.com>
1377
1378 * valops.c (hand_function_call): Align the initial stack pointer
1379 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1380 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1381 return value.
1382 * mips-tdep.c (mips_frame_align): New function.
1383 (mips_gdbarch_init): Set frame_align.
1384 * gdbarch.sh (FRAME_ALIGN): New method.
1385 * gdbarch.h, gdbarch.c: Re-generate.
1386
cb7e422f
ML
13872002-09-18 Michal Ludvig <mludvig@suse.cz>
1388
1389 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1390 registers.
1391
a094c6fb
AC
13922002-09-17 Andrew Cagney <ac131313@redhat.com>
1393
1394 * NEWS: Mention that MIPS $fp behavior changed.
1395 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1396 reference to FP_REGNUM.
1397 (mipsnbsd_cannot_store_register): Ditto.
1398 * mips-linux-nat.c: Update copyright.
1399 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1400 (mips_linux_cannot_store_register): Ditto.
1401 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1402 * config/mips/tm-mips.h: Update copyright.
1403 (FP_REGNUM): Delete macro.
1404 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1405 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1406 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1407 (mips_r3041_reg_names, mips_r3051_reg_names)
1408 (mips_r3081_reg_names): Replace "fp" with "".
1409 Fix PR gdb/480.
1410
45cf40d1
TR
14112002-09-17 Theodore A. Roth <troth@verinet.com>
1412
1413 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1414 generic_read_register_dummy() (PR gdb/703).
1415 (avr_push_return_address): #if 0 out unused vars.
1416 (avr_gdbarch_init): Enable use of avr_push_return_address().
1417
c7e701b5
MS
14182002-09-17 Michael Snyder <msnyder@redhat.com>
1419
d76ba2a5 1420 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1421 RTE will take care of it.
1422
20bcf01c
AC
14232002-09-17 Andrew Cagney <ac131313@redhat.com>
1424
1425 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1426 invalid, return SP_REGNUM.
1427
009a9971 14282002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1429
1430 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1431 point registers without sign extension.
1432
135c175f
AC
14332002-09-17 Andrew Cagney <cagney@redhat.com>
1434
1435 * blockframe.c (deprecated_read_register_dummy): Rename
1436 generic_read_register_dummy.
1437 * frame.c (frame_unwind_signed_register): New function.
1438 (frame_unwind_unsigned_register): New function.
1439 * frame.h (frame_unwind_signed_register): Declare.
1440 (frame_unwind_unsigned_register): Declare.
1441 (deprecated_read_register_dummy): Rename
1442 generic_read_register_dummy.
1443
1444 * h8300-tdep.c (h8300_frame_chain): Update.
1445 (h8300_frame_saved_pc): Update.
1446 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1447 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1448 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1449 (s390_frame_chain): Update.
1450 * v850-tdep.c (v850_find_callers_reg): Update.
1451 (v850_frame_saved_pc): Update.
1452 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1453 (m32r_find_callers_reg): Update.
1454 (m32r_frame_saved_pc): Update.
1455 * sh-tdep.c (sh_find_callers_reg): Update.
1456 (sh64_get_saved_pr): Update.
1457 (sh_init_extra_frame_info): Update.
1458 (sh_init_extra_frame_info): Update.
1459 (sh64_init_extra_frame_info): Update.
1460 (sh64_init_extra_frame_info): Update.
1461 * mcore-tdep.c (mcore_find_callers_reg): Update.
1462 (mcore_frame_saved_pc): Update.
1463 (mcore_init_extra_frame_info): Update.
1464 * i386-tdep.c (i386_frame_saved_pc): Update.
1465 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1466 (ia64_init_extra_frame_info): Update.
1467 (ia64_init_extra_frame_info): Update.
1468 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1469 * cris-tdep.c (cris_init_extra_frame_info): Update.
1470 * avr-tdep.c (avr_frame_chain): Update.
1471 (avr_init_extra_frame_info): Update.
1472 (avr_frame_saved_pc): Update.
1473 * arm-tdep.c (arm_find_callers_reg): Update.
1474 (arm_init_extra_frame_info): Update.
1475 (arm_frame_saved_pc): Update.
1476
a741e514
TT
14772002-09-17 Tom Tromey <tromey@redhat.com>
1478
1479 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1480 is "'".
1481
d1a8e808
CV
14822002-09-17 Corinna Vinschen <vinschen@redhat.com>
1483
1484 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1485 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1486 NEXT_PROLOGUE_INSN.
1487 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1488 NEXT_PROLOGUE_INSN.
1489
d9025a18
JB
14902002-09-16 Joel Brobecker <brobecker@gnat.com>
1491
1492 * osfsolib.c: Remove file, replaced by solib-osf.c.
1493 * Makefile.in: Remove compilation rules for osfsolib.c.
1494
1b2ef1b6
DC
14952002-09-16 David Carlton <carlton@math.stanford.edu>
1496
1497 * cp-valprint.c (cp_print_class_method): Correct args to
1498 check_stub_method_group.
1499
928e48af
CV
15002002-09-16 Corinna Vinschen <vinschen@redhat.com>
1501
1502 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1503 `set architecture'. Unify naming convention of functions.
1504 (h8300_skip_prologue): Improve prologue analysis.
1505 (h8300_push_arguments): Rewritten to more closely match GCC's
1506 bizarre argument-passing behavior, along with the comment describing
1507 said behavior.
1508 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1509 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1510 sim, remote-e7000.c, remote-hms.c and remote.c
1511
5e3397bb
MK
15122002-09-15 Mark Kettenis <kettenis@gnu.org>
1513
1514 * i386-tdep.c (gdb_print_insn_i386): Removed.
1515 (i386_print_insn): New function.
1516 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1517 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1518 tm_print_insn_info.
1519
f710f4fc
MK
15202002-09-14 Mark Kettenis <kettenis@gnu.org>
1521
1522 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1523 zero.
1524
db54fef4
CV
15252002-09-14 Corinna Vinschen <vinschen@redhat.com>
1526
1527 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1528 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1529 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1530
2becadee
CF
15312002-09-13 Christopher Faylor <cgf@redhat.com>
1532
1533 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1534
de17c821
DJ
15352002-09-13 Daniel Jacobowitz <drow@mvista.com>
1536
1537 * gdbtypes.c (check_stub_method): Make static.
1538 (check_stub_method_group): New function.
1539 * gdbtypes.h: Update prototypes.
1540 * cp-support.c: New file.
1541 * cp-support.h: New file.
1542
1543 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1544 (update_method_name_from_physname): New function.
1545 (read_member_functions): Correct method names for operators
1546 and v3 constructors/destructors. Separate v2 constructors and
1547 destructors.
1548 * Makefile.in (stabsread.o): Update dependencies.
1549 (SFILES): Add cp-support.c.
1550 (COMMON_OBS): Add cp-support.o.
1551 (cp_support_h, cp-support.o): Add.
1552
1553 * cp-valprint.c (cp_print_class_method): Call
1554 check_stub_method_group instead of check_stub_method. Remove
1555 extraneous QUITs.
1556 * p-valprint.c (pascal_object_print_class_method): Likewise.
1557 * valops.c (search_struct_method): Likewise.
1558 (find_method_list, value_struct_elt_for_reference): Likewise.
1559
e76cff22
AC
15602002-09-13 Andrew Cagney <cagney@redhat.com>
1561
1562 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1563 * gdbarch.h, gdbarch.c: Regenerate.
1564
905abb3f
AC
15652002-09-13 Andrew Cagney <ac131313@redhat.com>
1566
1567 * frame.c (find_saved_register): Delete function.
1568 * frame.h (find_saved_register): Delete declaration.
1569 Fix PR gdb/631.
1570
64159455
AC
1571Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1572
1573 * mips-tdep.c (read_next_frame_reg): Re-hack using
1574 frame_register_unwind.
1575
795e1e11
AC
1576Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1577
1578 * mips-tdep.c (mips_get_saved_register): Re-hack using
1579 frame_register_unwind.
1580
5720643c
JB
15812002-09-12 Joel Brobecker <brobecker@gnat.com>
1582
1583 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1584 vector. Will be useful for Interix.
1585 * gdbarch.h, gdbarch.c: Regenerate.
1586
1587 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1588 name of the malloc function by NAME_OF_MALLOC.
1589
3bada2a2
JB
15902002-09-12 Joel Brobecker <brobecker@gnat.com>
1591
1592 * value.h (find_function_in_inferior): Add const keyword to
1593 one of the parameters. Allows us to invoke this function with
1594 a const char *.
1595 * valops.c (find_function_in_inferior): Likewise.
1596
3db26b01
JB
15972002-09-12 Joel Brobecker <brobecker@gnat.com>
1598
1599 * exec.c (xfer_memory): Fix compilation warning with old versions
1600 of GCC.
1601 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1602
17c5ed2c
DC
16032002-09-12 David Carlton <carlton@math.stanford.edu>
1604
1605 * symtab.h: Run through gdb_indent.h.
1606 Add 2002 to Copyright year list.
1607
ecd1107e
AM
16082002-09-12 Alan Modra <amodra@bigpond.net.au>
1609
1610 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1611 mach constants.
1612 * MAINTAINERS: Add myself to write after approval list.
1613
e64f66d1
JB
16142002-09-11 J. Brobecker <brobecker@gnat.com>
1615
1616 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1617
f9395794
JB
16182002-09-11 J. Brobecker <brobecker@gnat.com>
1619
1620 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1621 Interix.
1622
1a303dec
MS
16232002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1624
1625 * procfs.c (do_detach): Clear current signal, not just fault.
1626 Corrects problem with breakpoint trap signal leaking to detached
1627 process on Tru64.
1628
c0219d42
MS
16292002-09-10 Michael Snyder <msnyder@redhat.com>
1630
1631 * buildsym.c (finish_block): Protect against null pointer.
1632
9d84ac84
AC
16332002-09-10 Andrew Cagney <cagney@redhat.com>
1634
1635 * infcmd.c (default_print_registers_info): Send all output to
1636 ``file'' instead of ``gdb_stdout''.
1637
77d8f2b4
MS
16382002-09-10 Michael Snyder <msnyder@redhat.com>
1639
1640 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1641 LONGEST, and use signed register read (addresses are sign-
1642 extended for mips).
1643
99656a61
SC
16442002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1645
1646 * event-loop.c (gdb_do_one_event): Make public.
1647 * event-loop.h (gdb_do_one_event): Declare.
1648
da12f4d8
JL
16492002-09-10 Jeff Law <law@redhat.com>
1650
1651 * infttrace.c (child_resume): Simplify and rework to avoid
1652 TT_PROC_CONTINUE.
1653
d0aee0c4
FF
16542002-09-09 Fred Fish <fnf@intrinsity.com>
1655
1656 * printcmd.c (print_scalar_formatted): "len" is the number of
1657 target bytes, NOT the number of target bits.
1658
7cb3ec5e
EZ
16592002-09-09 Elena Zannoni <ezannoni@redhat.com>
1660
1661 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1662 * top.c (init_main): Set rl_terminal_name.
1663
4dc81987
AS
16642002-09-08 Aidan Skinner <aidan@velvet.net>
1665
1666 * ada-lang.c (ada_array_bound, ada_type_match,
1667 _initialize_ada_language): Fix K&R definitions.
1668 * ada-tasks.c (get_current_task): Fix K&R definitions.
1669 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1670
842330b4
CF
16712002-09-07 Christopher Faylor <cgf@redhat.com>
1672
1673 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1674 Add XP.
1675
43156d82
MK
16762002-09-06 Mark Kettenis <kettenis@gnu.org>
1677
66da5fd8
MK
1678 * i386-tdep.c (i386_register_virtual_type,
1679 i386_register_convertible, i386_register_convert_to_virtual,
1680 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1681 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1682 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1683 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1684 Don't set push_arguments twice.
1685
4b218c18
MK
1686 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1687 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1688 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1689 sigtramp_end to NULL.
1690 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1691 defines.
1692 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1693
4cc314d5
MK
1694 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1695 whitespace.
1696
43156d82
MK
1697 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1698 * gdbarch.h, gdbarch.c: Re-generate.
1699 * blockframe.c (find_pc_sect_partial_function): Convert to use
1700 SIGTRAMP_START_P predicate.
1701
6672060b
MS
17022002-09-05 Michael Snyder <msnyder@redhat.com>
1703
a90c3637
MS
1704 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1705 generic_dummy_frame method and old method. Also distinguish
1706 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1707 (arm_extract_return_value): Use new regcache method.
a90c3637 1708
6672060b
MS
1709 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1710 adjustment that doesn't conform to the ABI.
1711 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1712 saved regcache, not from current regcache.
1713
299ffc64
AC
17142002-09-05 Andrew Cagney <ac131313@redhat.com>
1715
1716 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1717 * README: Update.
1718
a3a2ee65
JT
17192002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1720
1721 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1722 if arm_apcs_32 is false.
1723
2bc7eea9
AC
17242002-09-04 Andrew Cagney <ac131313@redhat.com>
1725
1726 GDB 5.3 branch created.
1727
8a55a7c5
TR
17282002-09-03 Theodore A. Roth <troth@verinet.com>
1729
1730 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1731 generic_unwind_get_saved_register.
1732
e26fb1d7
DC
17332002-09-03 David Carlton <carlton@math.stanford.edu>
1734
1735 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1736 argument (PR gdb/653). Update call to smash_to_method_type.
1737 (read_structure_scope): Update call to dwarf2_add_member_fn.
1738
30d52491
ML
17392002-09-03 Michal Ludvig <mludvig@suse.cz>
1740
1741 * x86-64-linux-tdep.c: Include gdb_string.h
1742 * x86-64-linux-nat.c: Ditto.
1743
06891d83
JT
17442002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1745
1746 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1747 when YYDEBUG is set to 1.
1748 * c-exp.y: Likewise.
1749 * f-exp.y: Likewise.
1750 * jv-exp.y: Likewise.
1751 * m2-exp.y: Likewise.
1752 * p-exp.y: Likewise.
1753
7d400e77
JT
17542002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1755
1756 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1757 dependency list.
1758 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1759 solib_svr4_fetch_link_map_offsets to
1760 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1761 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1762 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1763 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1764 solib-svr4.o, and solib-legacy.o.
1765 * config/i386/tm-nbsd.h: Include solib.h.
1766
704a27c4
JT
17672002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1768
1769 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1770 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1771 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1772 comment noting that this needs its own target configuration.
1773 * config/i386/nbsd.mt: New file.
1774 * config/i386/nbsdaout.mt: Remove.
1775 * config/i386/nbsdelf.mt: Ditto.
1776 * config/i386/tm-nbsdaout.h: Ditto.
1777
d66198e1
JT
17782002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1779
1780 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1781 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1782 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1783 tdep->sigtramp_end.
1784 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1785 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1786 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1787
3cac699e
JT
17882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1789
1790 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1791 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1792 * i386-tdep.h (i386bsd_init_abi): New prototype.
1793 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1794 function declaration.
1795 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1796 for NetBSD-a.out or NetBSD-ELF.
1797 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1798 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1799 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1800 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1801 and nbsd-tdep.h.
1802 (i386nbsd_pc_in_sigtramp): New function.
1803 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1804 i386nbsd_pc_in_sigtramp.
1805 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1806 and i386nbsdelf_init_abi OS ABI handlers.
1807 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1808 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1809
7010ca0a
MK
18102002-09-02 Mark Kettenis <kettenis@gnu.org>
1811
1812 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1813 registers if the target really has them.
1814
6dd93b72
JT
18152002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1816
1817 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1818 than nbsd-tdep.h.
1819
2ca8ae21
JT
18202002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1821
1822 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1823 list.
1824 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1825 (alphanbsd_skip_sigtramp_frame): New functions.
1826 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1827 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1828 to alphanbsd_sigcontext_addr.
1829
3d9b49b0
JT
18302002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1831
1832 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1833 list.
1834 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1835 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1836 nbsd_pc_in_sigtramp.
1837 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1838 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1839 * nbsd-tdep.c: Include gdb_string.h.
1840 (nbsd_pc_in_sigtramp): New function.
1841 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1842 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1843 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1844 ppcnbsd_pc_in_sigtramp.
1845 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1846 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1847 shnbsd_pc_in_sigtramp.
1848 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1849 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1850 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1851
c860120c
PM
18522002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1853
1854 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1855 watchpoints to NULL.
1856 (insert_breakpoints): set val field of watchpoints if NULL.
1857
1858
c7612d53
JB
18592002-08-29 Jim Blandy <jimb@redhat.com>
1860
1861 * symtab.c (lookup_symbol_aux): In the cases where we find a
1862 minimal symbol of an appropriate name and use its address to
1863 select a symtab to read and search, use `name' (as passed to us)
1864 as the demangled name when searching the symtab's global and
1865 static blocks, not the minsym's name.
1866
66609862
KS
18672002-08-29 Keith Seitz <keiths@redhat.com>
1868
1869 * stack.c (print_frame_info_base): Always set current_source_symtab
1870 and current_source_line.
1871
151fefe2
JB
18722002-08-29 Donn Terry <donnte@microsoft.com>
1873
1874 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1875
bfb3754e
KS
18762002-08-28 Keith Seitz <keiths@redhat.com>
1877
1878 * stack.c (select_frame): Add FIXME concerning selected-frame
1879 events.
1880 (select_frame_command): Send selected-frame-level-changed
1881 event notification, but only if the level actually changed.
1882 (up_silently_base): Add selected-frame-level-changed event
1883 notification.
1884 (down_silently_base): Likewise.
1885
e822a2a0
AC
18862002-08-28 Andrew Cagney <ac131313@redhat.com>
1887
1888 * Makefile.in: Update dependencies for all gdb/*.c files.
1889
309367d4
TT
18902002-08-27 Tom Tromey <tromey@redhat.com>
1891
1892 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1893 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1894 Update dependencies.
1895 * i387-tdep.c: Include gdb_string.h.
1896 * osabi.c: Likewise.
1897 * i386-linux-nat.c: Likewise.
1898 * lin-lwp.c: Likewise.
1899 * ax-gdb.c: Likewise.
1900 * signals/signals.c: Likewise.
1901 * jv-valprint.c: Likewise.
1902 * p-lang.c: Likewise.
1903 * c-valprint.c: Likewise.
1904 * cp-abi.c: Likewise.
1905
e1507482
EZ
19062002-08-27 Elena Zannoni <ezannoni@redhat.com>
1907
1908 * cli/cli-script.h (copy_command_lines): Export.
1909 * breakpoint.c: Include cli/cli-script.h.
1910 * Makefile.in (breakpoint.o): Update dependencies.
1911
c6510018
MS
19122002-08-26 Michael Snyder <msnyder@redhat.com>
1913
1914 * breakpoint.c (insert_breakpoints): Protect all references
1915 to 'process_warning'. Shorten long lines.
1916
c2b8ed2c
MS
19172002-08-26 Joel Brobecker <brobecker@gnat.com>
1918
1919 * cli/cli-script.c (copy_command_lines): New function.
1920 * defs.h (copy_command_lines): Export.
1921 * testsuite/gdb.base/commands.exp: New tests for commands
1922 attached to a temporary breakpoint, and for commands that
1923 delete the breakpoint they are attached to.
1924
19252002-08-26 Michael Snyder <msnyder@redhat.com>
1926
1927 * breakpoint.c (bpstat_stop_status): Instead of copying the
1928 pointer to the breakpoint commands struct, make a new copy
1929 of the struct and point to that.
1930 (bpstat_clear): Free the commands struct.
1931 (bpstat_clear_actions): Free the commands struct.
1932 (bpstat_do_actions): Free the command actions. Also execute
1933 the local cleanups, instead of deleting them.
1934 (delete_breakpoint): Leave the commands field of the bpstat
1935 chain alone -- it will be freed later.
1936
64b84175
KB
19372002-08-26 Kevin Buettner <kevinb@redhat.com>
1938
1939 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1940 deleted in 2002-08-20 commit. This function is still used by
1941 ppc-linux-nat.c.
1942
55970da6
KS
19432002-08-26 Keith Seitz <keiths@redhat.com>
1944
1945 * gdb-events.sh: Add selected-frame-level-changed event.
1946 * gdb-events.c: Regenerated.
1947 * gdb-events.h: Regenerated.
1948
a790ad35
SC
19492002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1950
1951 Fix PR gdb/393:
1952 * inflow.c (terminal_save_ours): New function to save terminal
1953 settings.
1954 * inferior.h (terminal_save_ours): Declare.
1955 * target.c (debug_to_terminal_save_ours): New function.
1956 (cleanup_target): Defaults to_terminal_save_ours.
1957 (update_current_target): Inherit to_terminal_save_ours.
1958 (setup_target_debug): Set to_terminal_save_ours.
1959 * target.h (target_terminal_save_ours): New to save terminal settings.
1960 (target_ops): New member to_terminal_save_ours.
1961 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1962 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1963 * inftarg.c (init_child_ops): Likewise.
1964 * m3-nat.c (init_m3_ops): Likewise.
1965 * procfs.c (init_procfs_ops): Likewise.
1966 * wince.c (init_child_ops): Likewise.
1967 * win32-nat.c (init_child_ops): Likewise.
1968 * sol-thread.c (init_sol_thread_ops): Likewise.
1969
c00dcbe9
MK
19702002-08-26 Mark Kettenis <kettenis@gnu.org>
1971
3d7f4f49
MK
1972 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1973 use regcache_* functions.
1974 (i386_gdbarch_init): Set store_return_value instead of
1975 deprecated_store_return_value.
1976
c00dcbe9
MK
1977 * regcache.c (regcache_raw_write_signed,
1978 regcache_raw_write_unsigned): New functions.
1979 * regcache.h (regcache_raw_write_signed,
1980 regcache_raw_write_unsigned): New prototypes.
1981
0e0d15ca
AC
19822002-08-25 Andrew Cagney <ac131313@redhat.com>
1983
1984 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1985 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1986 source file dependencies. Cleanup corresponding generator rules.
1987
d3b22ed5
AC
19882002-08-25 Andrew Cagney <ac131313@redhat.com>
1989
1990 * regcache.h (register_offset_hack): Declare.
1991 (regcache_cooked_read_using_offset_hack): Declare.
1992 (regcache_cooked_write_using_offset_hack): Declare.
1993
1994 * regcache.c (register_offset_hack): New function.
1995 (regcache_cooked_read_using_offset_hack): New function.
1996 (regcache_cooked_write_using_offset_hack): New function.
1997 (regcache_dump): Check that the registers, according to their
1998 offset, are packed hard against each other.
1999 (cooked_xfer_using_offset_hack): New function.
2000
bb425013
AC
20012002-08-25 Andrew Cagney <ac131313@redhat.com>
2002
2003 * regcache.c (struct regcache_descr): Add field register_type.
2004 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2005 in as a parameter
2006 (init_regcache_descr): Initialize register_type. Pass the descr
2007 to init_legacy_regcache_descr. Use register_type instead of
2008 REGISTER_VIRTUAL_TYPE.
2009 (register_type): New function.
2010 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2011 * regcache.h (register_type): Declare.
2012
d0403e00
AC
20132002-08-25 Andrew Cagney <ac131313@redhat.com>
2014
2015 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2016 instead of deprecated_store_return_value. Fix fallout from
2017 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2018
0ed04cce
AC
20192002-08-25 Andrew Cagney <ac131313@redhat.com>
2020
2021 * regcache.c (max_register_size): New function.
2022 (init_legacy_regcache_descr): Ensure that max_register_size is
2023 large enough for REGISTER_VIRTUAL_SIZE.
2024 * regcache.h (max_register_size): Declare.
2025
46d79c04
AC
20262002-08-24 Andrew Cagney <ac131313@redhat.com>
2027
2028 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2029 store_return_value.
2030 (e500_extract_return_value): Change type of valbuf pointer to
2031 void.
2032
853c7bd0
MK
20332002-08-24 Mark Kettenis <kettenis@gnu.org>
2034
cd87e769
MK
2035 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2036 workaround.
2037
853c7bd0
MK
2038 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2039 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2040 long long) to prevent compiler warning on 64-bit systems.
2041
ebba8386
AC
20422002-08-23 Andrew Cagney <cagney@redhat.com>
2043
2044 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2045 (DEPRECATED_STORE_RETURN_VALUE): New method.
2046 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2047 * gdbarch.h, gdbarch.c: Re-generate.
2048
2049 * values.c (set_return_value): Pass current_regcache to
2050 STORE_RETURN_VALUE.
2051 * arch-utils.h (legacy_store_return_value): Declare.
2052 * arch-utils.c (legacy_store_return_value): New function.
2053 (legacy_extract_return_value): Update parameters.
2054
2055 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2056 STORE_RETURN_VALUE.
2057 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2058 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2059 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2060 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2061 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2062 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2063 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2064 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2065 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2066 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2067
2068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2069 * i386-tdep.c (i386_extract_return_value): Update.
2070 * arch-utils.c (legacy_extract_return_value): Update.
2071 * frv-tdep.c (frv_gdbarch_init): Update.
2072 * cris-tdep.c (cris_gdbarch_init): Update.
2073 * d10v-tdep.c (d10v_gdbarch_init): Update.
2074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2075 * m68k-tdep.c (m68k_gdbarch_init): Update.
2076 * mcore-tdep.c (mcore_gdbarch_init): Update.
2077 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2078 * s390-tdep.c (s390_gdbarch_init): Update.
2079 * sparc-tdep.c (sparc_gdbarch_init): Update.
2080 * sh-tdep.c (sh_gdbarch_init): Update.
2081 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2082 * v850-tdep.c (v850_gdbarch_init): Update.
2083 * avr-tdep.c (avr_gdbarch_init): Update.
2084 * ia64-tdep.c (ia64_gdbarch_init): Update.
2085 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2086 * vax-tdep.c (vax_gdbarch_init): Update.
2087 * alpha-tdep.c (alpha_gdbarch_init): Update.
2088 * arm-tdep.c (arm_gdbarch_init): Update.
2089 * mips-tdep.c (mips_gdbarch_init): Update.
2090 * i386-tdep.c (i386_gdbarch_init): Update.
2091
5bd8c6d0
AC
20922002-08-23 Andrew Cagney <ac131313@redhat.com>
2093
2094 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2095 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2096
e73e1724
MK
20972002-08-24 Mark Kettenis <kettenis@gnu.org>
2098
2099 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2100 problems.
2101
3e6564e1
JB
21022002-08-23 Joel Brobecker <brobecker@gnat.com>
2103
2104 * infrun.c (handle_inferior_event): Move a comment outside of a
2105 function call, in order to avoid indent reformatting this part
2106 of the code in an unreadable way.
2107
81d0cc19
GS
21082002-08-23 Grace Sainsbury <graces@redhat.com>
2109
2110 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2111 when breakpoints fail. Move general breakpoint error messages to
2112 insert_breakpoints.
2113 * breakpoint.c (insert_breakpoints): Change warnings when
2114 breakpoints are nto inserted to specify the type. Remove call to
2115 memory_error when hardware breakpoints can't be inserted. Remove
2116 multiple calls to warning so all messages are sent to the user at
2117 once.
2118 (delete_breakpoints): Make insert error messsages more explicit.
2119
17574093
DJ
21202002-08-23 Daniel Jacobowitz <drow@mvista.com>
2121
2122 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2123 gdbserver/ChangeLog.
2124
8acc2935
MK
21252002-08-23 Mark Kettenis <kettenis@gnu.org>
2126
dfe01d39
MK
2127 * i386-tdep.c: Include "objfiles.h".
2128 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2129 skip_trampoline_code.
2130 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2131 (CPLUS_MARKER): Define to '.'.
2132
8acc2935
MK
2133 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2134 member.
2135 (linux_corefile_thread_callback): Increase args->num_notes.
2136 (linux_make_note_section): Initialize thread_args.num_notes, and
2137 use it to determine whether notes for any threads were created.
2138
151fefe2 21392002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
2140
2141 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2142 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2143 and PCUNKILL.
2144 (write_with_trace): Conditionalize out the switch branch handling
2145 PCSHOLD if the corresponding macro is not defined. Likewise for
2146 PRSABORT and PRSTOP.
2147 This change will be needed by the Interix port.
2148
e1507482
EZ
21492002-08-22 Elena Zannoni <ezannoni@redhat.com>
2150
2151 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2152 write_register wherever possible instead of manipulating the
2153 register bytes directly.
2154 Assign VALUE_CONTENTS to a variable and use that.
2155 The GPR numbers are now dependent on the architecture.
2156
96ff0de4
EZ
21572002-08-22 Elena Zannoni <ezannoni@redhat.com>
2158
2159 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2160 ev_offset fields.
2161 (skip_prologue): Add support for BookE/e500 instructions.
2162 (e500_extract_return_value): New function.
2163 (frame_get_saved_regs): Add support for saving ev registers and
2164 pseudo gpr's.
2165 (e500_store_return_value): New function.
2166 (rs6000_gdbarch_init): Move up default intializations of
2167 deprecated_extract_return_value and store_return_value. Overwrite
2168 init of store_return_value with e500 specific version.
2169 Set extract_return_value for e500.
2170
fbefca5b
EZ
21712002-08-22 Elena Zannoni <ezannoni@redhat.com>
2172
2173 * blockframe.c (generic_call_dummy_register_unwind): Use
2174 regcache_cooked_read to catch cases in which the variable is
2175 stored in a pseudo register.
2176
4d210288
AC
21772002-08-22 Andrew Cagney <cagney@redhat.com>
2178
2179 * NEWS: Mention that the i960 has been made obsolete.
2180 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2181 i960-tdep.c
2182 (remote-nrom.o): Obsolete target.
2183 (remote-nindy.o, i960-tdep.o): Ditto.
2184 * remote-nrom.c: Make file obsolete.
2185 * remote-nindy.c, remote-vx960.c: Ditto.
2186 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2187 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2188 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2189 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2190 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2191 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2192 i960-*-vxworks* obsolete.
2193 * MAINTAINERS: Note that the i960 is obsolete.
2194
6c0c456d
CV
21952002-08-21 Corinna Vinschen <vinschen@redhat.com
2196
2197 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2198 detach to allow reinitialization.
2199
9f9d12b3
AC
22002002-08-22 Andrew Cagney <ac131313@redhat.com>
2201
2202 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2203 attempt).
2204
ebeb39fe
JB
22052002-08-22 Jim Blandy <jimb@redhat.com>
2206
2207 * coffread.c (coff_symfile_read): Don't try to read the line
2208 number table from disk if the image file doesn't have a symbol
2209 table; we'll never actually look at the info anyway, and Windows
2210 ships DLL's with bogus file offsets for the line number data.
2211
5bf1c677
EZ
22122002-08-21 Elena Zannoni <ezannoni@redhat.com>
2213
2214 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2215 an e500 executable.
2216
71b8ef93
MS
22172002-08-21 Michael Snyder <msnyder@redhat.com>
2218
2219 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2220 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2221 (DEFAULT_MIPS_TYPE): Delete unused macro.
2222 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2223 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2224
d174216d
JB
22252002-08-21 Jim Blandy <jimb@redhat.com>
2226
2227 * valops.c (value_cast): Simplify and correct logic for doing a
2228 static cast from a pointer to a base class to a pointer to a
2229 derived class.
2230
0ab7a791
AC
22312002-08-21 Andrew Cagney <ac131313@redhat.com>
2232
2233 * infcmd.c (default_print_registers_info): Replace
2234 do_registers_info.
2235 (registers_info): Use gdbarch_print_registers_info instead of
2236 DO_REGISTERS_INFO.
2237 * inferior.h (default_print_registers_info): Replace
2238 do_registers_info.
2239 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2240 (DO_REGISTERS_INFO): Change to a predicate function.
2241 * gdbarch.h, gdbarch.c: Regenerate.
2242
e23792cc
KS
22432002-08-21 Keith Seitz <keiths@redhat.com>
2244
2245 * gdb-events.sh: Add target-changed event.
2246 * gdb-events.c: Regenerated.
2247 * gdb-events.c: Regenerated.
2248 * valops.c (value_assign): Add target-changed event notification
2249 to inlval_register, lval_memory, and lval_reg_frame_relative.
2250
9fb14e79
JB
22512002-08-21 Joel Brobecker <brobecker@gnat.com>
2252
2253 * NEWS: Add an entry regarding the improvement of the next/step
2254 operation on Alpha Tru64 multi-processor machines.
2255
6d39a69f
AC
22562002-08-21 Andrew Cagney <ac131313@redhat.com>
2257
72acd513
AC
2258 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2259 directores.
342af04b 2260 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2261 * Makefile.in (install-gdbtk): Move to install section.
2262 (rdi-share/libangsd.a): Move to end of file.
2263
fa5f27c7
AC
22642002-08-19 Andrew Cagney <ac131313@redhat.com>
2265
2266 * frame.c (frame_register_unwind): When a register, set addrp to
2267 the register's byte.
2268
5a89d8aa
MS
22692002-08-20 Michael Snyder <msnyder@redhat.com>
2270
2271 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2272 used locally, so move them from the target machine header to here.
2273 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2274 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2275 Make static.
2276 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2277
822e978b
AC
22782002-08-20 Andrew Cagney <cagney@redhat.com>
2279
2280 * NEWS: Mention that the Apollo line was made obsolete.
2281 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2282 m68*-hp-hpux* obsolete.
2283 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2284 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2285 * buildsym.c (make_blockvector): Make static.
2286 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2287 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2288 (ALLDEPFILES): Remove dstread.c.
2289 (dstread.o): Obsolete make rule.
2290 * dstread.c: Makefile obsolete.
2291 * dst.h: Ditto.
2292 * config/m68k/hp300hpux.mt: Ditto.
2293 * config/m68k/hp300hpux.mh: Ditto.
2294 * config/m68k/hp300bsd.mt: Ditto.
2295 * config/m68k/hp300bsd.mh: Ditto.
2296 * config/m68k/apollo68b.mt: Ditto.
2297 * config/m68k/apollo68v.mh: Ditto.
2298 * config/m68k/apollo68b.mh: Ditto.
2299
e41b17f0
MS
23002002-08-20 Michael Snyder <msnyder@redhat.com>
2301
2302 * mips-tdep.c (mips_in_return_stub): Make static.
2303 (mips_gdbarch_init): Set in_solib_return_trampoline.
2304 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2305
d50355b6
MS
23062002-08-20 Michael Snyder <msnyder@redhat.com>
2307
2308 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2309 * gdbarch.c, gdbarch.h: Regenerate.
2310 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2311 Add.
2312 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2313
757a7cc6
MS
23142002-08-20 Michael Snyder <msnyder@redhat.com>
2315
2316 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2317 (mips_gdbarch_init): Set skip_trampoline_code,
2318 in_solib_call_trampoline.
2319 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2320 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2321
c8001721
EZ
23222002-08-20 Elena Zannoni <ezannoni@redhat.com>
2323
2324 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2325
2326 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2327 vector type for ev registers.
2328 (e500_pseudo_register_read): New function.
2329 (e500_pseudo_register_write): New function.
2330 (e500_dwarf2_reg_to_regnum): New function.
2331 (PPC_UISA_NOFP_SPRS): New macro.
2332 (PPC_EV_REGS): New macro.
2333 (PPC_GPRS_PSEUDO_REGS): New macro.
2334 (registers_e500): New register set for e500.
2335 (variants): Add e500 variant.
2336 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2337 before setting architectural dependent variations. Initialize ev
2338 registers numbers. Add case for e500 architecture. Set the
2339 number of pseudo registers.
2340
64366f1c
EZ
23412002-08-20 Elena Zannoni <ezannoni@redhat.com>
2342
2343 * rs6000-tdep.c: Clean up comments.
2344
7e78f0ca
AC
23452002-08-20 Andrew Cagney <cagney@redhat.com>
2346
2347 * h8300-tdep.c: Re-indent file.
2348
697f7479
JB
23492002-08-20 Jim Blandy <jimb@redhat.com>
2350
2351 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2352 default for this.
697f7479 2353
e86ae29f
KS
23542002-08-20 Keith Seitz <keiths@redhat.com>
2355
2356 * breakpoints.c (watch_command_1): Use internal breakpoint
2357 when setting a watchpoint_scope breakpoint.
2358
216b504f
EZ
23592002-08-20 Elena Zannoni <ezannoni@redhat.com>
2360
2361 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2362 (build_builtin_type_vec64i): Ditto.
2363 (build_builtin_type_vec128): Ditto.
2364 (build_builtin_type_vec128i): Ditto.
2365
f7ab6ec6
MS
23662002-08-19 Michael Snyder <msnyder@redhat.com>
2367
2368 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2369 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2370 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2371 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2372 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2373 CALL_DUMMY_ADDRESS): Delete.
2374 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2375 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2376 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2377 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2378 push_return_address.
2379 (mips_register_raw_size, mips_eabi_use_struct_convention,
2380 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2381 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2382 mips_init_extra_frame_info, mips_eabi_push_arguments,
2383 mips_n32n64_push_arguments, mips_push_return_address,
2384 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2385 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2386
b5d1566e
MS
23872002-08-19 Michael Snyder <msnyder@redhat.com>
2388
2389 * mips-tdep.c (mips_frame_num_args): New function.
2390 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2391 frame_saved_pc, frame_args_address, frame_locals_address,
2392 frame_num_args, and frame_args_skip.
2393 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2394 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2395 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2396 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2397
2f1488ce
MS
23982002-08-20 Michael Snyder <msnyder@redhat.com>
2399
2400 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2401 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2402 * mips-tdep.c (mips_store_struct_return): New function.
2403 (mips_extract_struct_value_address): New function.
2404 (mips_gdbarch_init): Set store_struct_return and
2405 extract_struct_value_address.
2406
41ff2da1
DC
24072002-08-20 David Carlton <carlton@math.stanford.edu>
2408
2409 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2410 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2411 (read_file_scope): Check that line_header is nonzero before
2412 decoding macro information.
2413
e5451d58
MK
24142002-08-20 Mark Kettenis <kettenis@gnu.org>
2415
2416 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2417 flag the general-purpose registers as floating-point on targets
2418 that don't support the floating-point registers.
2419
4a6daafa
EZ
24202002-08-20 Elena Zannoni <ezannoni@redhat.com>
2421
2422 * rs6000-tdep.c (altivec_register_p): Delete.
2423 (rs6000_do_altivec_registers): Delete.
2424 (rs6000_altivec_registers_info): Delete.
2425 (rs6000_do_registers_info): Delete.
2426 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2427 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2428
ab4327e0
EZ
24292002-08-20 Elena Zannoni <ezannoni@redhat.com>
2430
2431 * infcmd.c (do_registers_info): Print vector registers in hex
2432 format only.
2433 (print_vector_info): Check that printing registers
2434 makes sense.
2435 (print_float_info): Ditto.
2436
cb1d2653
AC
24372002-08-20 Andrew Cagney <ac131313@redhat.com>
2438
2439 * mips-tdep.c (mips_gdbarch_init): Update.
2440 (mips_o32_extract_return_value): Rewrite.
2441 (mips_o32_store_return_value): Rewrite.
2442 (mips_o32_xfer_return_value): New function.
2443 (mips_xfer_register): Tweak debug print message. Allow for
2444 buf_offset when dumping the value transfered.
2445
dfc3d9b2
AC
24462002-08-20 Andrew Cagney <ac131313@redhat.com>
2447
2448 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2449 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2450 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2451 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2452 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2453
7807aa61
MS
24542002-08-14 Michael Snyder <msnyder@redhat.com>
2455
2456 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2457
489461e2
EZ
24582002-08-19 Elena Zannoni <ezannoni@redhat.com>
2459
2460 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2461 register.
2462 (P): New macro to define a register as a pseudo register.
2463 (R, R4, R8, R16, FR32, R64, R0): Updated.
2464 (struct variant): Add new fields for number of pseudo registers
2465 and number of total registers.
2466 (tot_num_registers): New macro replacing....
2467 (num_registers): ...deleted macro.
2468 (num_registers): New function.
2469 (num_pseudo_registers): New function.
2470 (variants): Update all variants to intialize new fields correctly.
2471 Postpone initialization of number of pseudo regs and real regs.
2472 (init_variants): New function.
2473 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2474 registers offsets.
2475
fcaffe4c
DC
24762002-08-19 David Carlton <carlton@math.stanford.edu>
2477
2c2738a0
DC
2478 * valops.c (search_struct_field): Change error message to treat
2479 return value of 0 from value_static_field as meaning that field is
2480 optimized out.
2481 (value_struct_elt_for_reference): Ditto.
2482 * values.c (value_static_field): Treat an unresolved location the
2483 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2484 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2485 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2486 * MAINTAINERS: Add self to Write After Approval list.
2487
88658117
AC
24882002-08-19 Andrew Cagney <ac131313@redhat.com>
2489
2490 * mips-tdep.c (mips_xfer_register): New function.
2491 (mips_n32n64_extract_return_value): Rewrite.
2492 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2493 instead of deprecated_extract_return_value.
2494
21283beb
EZ
24952002-08-19 Elena Zannoni <ezannoni@redhat.com>
2496
2497 * rs6000-tdep.c (TDEP): Delete macro.
2498 (branch_dest): Replace use of TDEP macro with its body.
2499 (rs6000_pop_frame): Ditto.
2500 (rs6000_push_arguments): Ditto.
2501 (rs6000_skip_trampoline_code): Ditto.
2502 (rs6000_frame_saved_pc): Ditto.
2503 (rs6000_frame_chain): Ditto.
2504 (rs6000_register_name): Ditto.
2505 (rs6000_register_byte): Ditto.
2506 (rs6000_register_raw_size): Ditto.
2507 (rs6000_register_virtual_type): Ditto.
2508 (rs6000_register_convertible): Ditto.
2509 (rs6000_convert_from_func_ptr_addr): Ditto.
2510
bf072999
DJ
25112002-08-19 Daniel Jacobowitz <drow@mvista.com>
2512
2513 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2514 conditionally.
2515 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2516 MIPS_LINUX_JB_ELEMENT_SIZE.
2517 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2518 for MAX_REGISTER_RAW_SIZE arrays.
2519 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2520 MIPS_LINUX_JB_ELEMENT_SIZE.
2521
9b949a49
PM
25222002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2523
2524 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2525
6d3e79c6
AS
25262002-08-19 Aidan Skinner <aidan@velvet.net>
2527
2528 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2529 ada-valprint.c ada-tasks.c.
2530 (YYFILES): Add ada-exp.y.
2531 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2532 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2533 (ada-exp.tab.o): New target.
2534
06c0b04e
AC
25352002-08-18 Andrew Cagney <ac131313@redhat.com>
2536
2537 * regcache.c (regcache_xfer_part): New function.
2538 (regcache_raw_read_part): New function.
2539 (regcache_raw_write_part): New function.
2540 (regcache_cooked_read_part): New function.
2541 (regcache_cooked_write_part): New function.
2542 * regcache.h (regcache_raw_read_part): Declare.
2543 (regcache_raw_write_part): Declare.
2544 (regcache_cooked_read_part): Declare.
2545 (regcache_cooked_write_part): Declare.
2546
92d1e331
DJ
25472002-08-18 Daniel Jacobowitz <drow@mvista.com>
2548
2549 * remote.c (remote_open_1): Add async_p.
2550 (remote_async_open_1): Delete.
2551 (open_remote_target): Delete.
2552 (remote_open, extended_remote_open): Update calls to remote_open_1.
2553 (remote_async_open, extended_remote_async_open): Call
2554 remote_open_1 instead of remote_async_open_1.
2555
247055de
MK
25562002-08-19 Mark Kettenis <kettenis@gnu.org>
2557
2558 * blockframe.c: Fix a few coding standard violations.
2559
641eda39
MK
25602002-08-19 Mark Kettenis <kettenis@gnu.org>
2561
0b717710
MK
2562 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2563 here from ...
2564 * config/i386/tm-i386sco5.h: ... here. File removed.
2565 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2566
26d28e12 2567 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2568 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2569 (TM_FILE): Set to tm-i386.h.
2570 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2571 * config/i386/tm-i386v.h: Remove file.
2572 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2573 instead of "i386/tm-i386v.h".
2574 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2575 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2576 "i386/tm-i386v.h".
2577 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2578 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2579 "i386/tm-i386.h".
2580
d4e0bab4
MK
25812002-08-18 Mark Kettenis <kettenis@gnu.org>
2582
2583 * config/i386/nm-i386v.h: Add protection against
2584 multiple-inclusion.
2585 (i386_register_u_addr): Remove prototype.
2586 (register_u_addr): New prototype.
2587 (REGISTER_U_ADDR): Redefine accordingly.
2588 * i386v-nat.c: Improve several comments.
2589 (i386_register_u_addr): Change signature and rename to
2590 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2591 ubase variable.
2592
46cac009
AC
25932002-08-18 Andrew Cagney <ac131313@redhat.com>
2594
2595 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2596 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2597 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2598 deprecated_extract_return_value.
2599 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2600 rename mips_o32o64_push_arguments.
2601 (mips_gdbarch_init): Update.
2602 (mips_extract_return_value): Delete.
2603 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2604 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2605 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2606 (mips_n32n64_extract_return_value): Clone
2607 mips_extract_return_value.
2608 (mips_store_return_value): Delete.
2609 (mips_o32_store_return_value): Clone mips_store_return_value.
2610 (mips_o64_store_return_value): Clone mips_store_return_value.
2611 (mips_eabi_store_return_value): Clone mips_store_return_value.
2612 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2613
d2e4a39e
AS
26142002-08-18 Aidan Skinner <aidan@velvet.net>
2615
0c30c098
AS
2616 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2617 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2618
26192002-08-18 Aidan Skinner <aidan@velvet.net>
2620
2621 * ada-lang.c: Run through gdb_indent.sh.
2622 * ada-lang.h: Run through gdb_indent.sh.
2623 * ada-tasks.c: Run through gdb_indent.sh.
2624 * ada-typeprint.c: Run through gdb_indent.sh.
2625 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2626
01fc4e33
AC
26272002-08-18 Andrew Cagney <ac131313@redhat.com>
2628
2629 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2630 ABI.
2631
d8ee244c
MK
26322002-08-18 Mark Kettenis <kettenis@gnu.org>
2633
c38d8261
MK
2634 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2635
222db64c
MK
2636 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2637 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2638
c2848c82
MK
2639 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2640 write_register_gen instead of write_register_bytes.
2641
d8ee244c
MK
2642 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2643 i[3456]-*-osf1mk* configurations have been made obsolete.
2644 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2645 i[3456]86-*-osf1mk* hosts obsolete.
2646 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2647 targets obsolete.
2648 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2649 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2650 config/i386/i386m3.mt, config/i386/nm-m3.h,
2651 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2652 config/i386/i386mk.mh, config/i386/i386mk.mt,
2653 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2654 obsolete.
2655 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2656 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2657 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2658
61d8d407
AC
26592002-08-18 Andrew Cagney <ac131313@redhat.com>
2660
2661 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2662 (hppa_value_returned_from_stack): Declare.
2663 (hppa_extract_return_value): Declare.
2664 * config/pa/hppa.mt: New file.
2665 * configure.tgt: Recognize hppa*-*-*.
2666 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2667
0c52bd59
MK
26682002-08-18 Mark Kettenis <kettenis@gnu.org>
2669
2670 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2671 comment.
2672
b5686e99
MK
26732002-08-17 Mark Kettenis <kettenis@gnu.org>
2674
2675 * top.c (gdb_rl_operate_and_get_next): Make sure
2676 operate-and-get-next functions correctly even when the history
2677 list is completely filled.
2678
c1bab85b
AC
26792002-08-18 Andrew Cagney <ac131313@redhat.com>
2680
2681 * MAINTAINERS (Target Instruction Set Architectures): Rename
2682 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2683 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2684 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2685 already listed under Host/Native.
2686
2687 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2688 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2689 mips*-*-*.
2690
32089c7c
AC
26912002-08-17 Andrew Cagney <ac131313@redhat.com>
2692
2693 * config/ia64/ia64.mt: New file.
2694 * config/alpha/alpha.mt: New file.
2695 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2696 ia64-linux-gnu. Mention that ia64-elf is broken.
2697 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2698
b4671f85
MK
26992002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2700
2701 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2702 generic_func_frame_valid instead of func_frame_valid.
2703
c8edd8b4
JB
27042002-08-16 Joel Brobecker <brobecker@gnat.com>
2705
2706 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2707 procfs appears to be broken when debugging on multi-processor
2708 machines. So enable software single stepping in order to avoid
2709 using the procfs interface to do next/step operations, using
2710 internal breakpoints instead.
2711
2712 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2713 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2714 make this pc address equal to the value it would have if the
2715 system stepping capability was used. Also set a new flag used
2716 to ensure that we don't readjust the PC one more time later.
2717
2718 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2719 address by DECR_PC_AFTER_BREAK when software single step is
2720 in use for this architecture, as this has already been taken
2721 care of in handle_inferior_event().
2722
238617f6
JB
27232002-08-16 Joel Brobecker <brobecker@gnat.com>
2724
2725 * infrun.c (handle_inferior_event): Minor reformatting, to make
2726 a rather long condition expression easier to read.
2727
541a7aac
AC
27282002-08-16 Andrew Cagney <ac131313@redhat.com>
2729
2730 * Makefile.in (gdbtk.o): Move to end of file.
2731 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2732 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2733 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2734 (gdbtk-wrapper.o, gdbres.o): Ditto.
2735
f92d4a7b
AC
27362002-08-16 Andrew Cagney <ac131313@redhat.com>
2737
2738 * Makefile.in (copying.o): Separate out compile rule.
2739 (hpux-thread.o, procfs.o, signals.o): Ditto.
2740 (v850ice.o, z8k-tdep.o): Ditto.
2741 (tui-file.o): Move to TUI section.
2742 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2743 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2744
1cce71eb
JB
27452002-08-16 Joel Brobecker <brobecker@gnat.com>
2746
2747 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2748 skip_trampoline_code, for better namespace-proofing.
2749
2750 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2751
0851f23d
JB
27522002-08-16 Joel Brobecker <brobecker@gnat.com>
2753
2754 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2755
f8d40ec8
JB
27562002-08-16 Joel Brobecker <brobecker@gnat.com>
2757
2758 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2759 signal, check whether we hit a breakpoint before checking for a
2760 single step breakpoint. Otherwise, GDB fails to notice that a
2761 breakpoint has been hit when stepping onto a breakpoint.
2762
63d022e0
KS
27632002-08-16 Keith Seitz <keiths@redhat.com>
2764
2765 * gdb-events.sh (clear_gdb_event_hooks): New function.
2766 * gdb-events.c: Regenerate.
2767 * gdb-events.h: Regenerate.
2768
6e31adb3
AC
27692002-08-16 Andrew Cagney <ac131313@redhat.com>
2770
2771 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2772 not_a_sw_breakpoint.
2773 * breakpoint.h (bpstat_stop_status): Add parameter names.
2774
c8189ed1
GS
27752002-08-16 Grace Sainsbury <graces@redhat.com>
2776
2777 * remote.c (remote_insert_hw_breakpoint)
2778 (remote_remove_hw_breakpoint): Fix calculation of length field
2779 for Z-packet.
2780
d05285fa
MS
27812002-08-15 Michael Snyder <msnyder@redhat.com>
2782
466d7106
MS
2783 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2784 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2785 (supply_fpregset): Ditto.
2786
d05285fa
MS
2787 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2788 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2789 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2790 (TARGET_READ_SP): Delete.
bf1f5b4c 2791 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2792 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2793 Delete.
2794 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2795 from macros to functions.
bf1f5b4c 2796
d05285fa
MS
2797 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2798 (mips_register_convertible, mips_register_convert_to_virtual,
2799 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2800 (mips_read_sp): New function.
2801 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2802 (mips_do_registers_info): Make static.
2803 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2804 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2805 (mips_register_convert_from_type, mips_register_convert_to_type):
2806 New functions.
2807 (mips_gdbarch_init): Set up function_start_offset,
2808 register_virtual_size, pc_in_sigtramp.
d05285fa 2809
e76f1f2e
AC
28102002-08-15 Andrew Cagney <ac131313@redhat.com>
2811
2812 * infcmd.c (vector_info): New function.
2813 (_initialize_infcmd): Add command "info vector".
2814 (print_vector_info): New function.
2815
2816 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2817 * gdbarch.h, gdbarch.c: Regenerate.
2818
4782dc19
AC
28192002-08-15 Andrew Cagney <ac131313@redhat.com>
2820
2821 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2822 ``print_all''. Only print vector registers when ``print_all''.
2823
23e3a7ac
AC
28242002-08-15 Andrew Cagney <ac131313@redhat.com>
2825
8e186fd6
AC
2826 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2827 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2828
23e3a7ac
AC
2829 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2830 Add `args' parameter.
2831 * gdbarch.h, gdbarch.c: Regenerate.
2832
2833 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2834
2835 * infcmd.c (float_info): Call print_float_info.
2836 (print_float_info): New function. By default, print the
2837 floating-point registers.
2838
2839 * arch-utils.h (default_print_float_info): Delete declaration.
2840 * arch-utils.c (default_print_float_info): Delete function.
2841
e0ca2bb9
MK
28422002-08-16 Mark Kettenis <kettenis@gnu.org>
2843
3f733acc
MK
2844 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2845 out define.
2846
7d8d2918
MK
2847 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2848 FRAME.
2849
1c7cc583
MK
2850 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2851 * configure.host: Make i[3456]86-*-aix host obsolete.
2852 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2853 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2854 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2855 config/i386/xm-i386aix.h: Make files obsolete.
2856 * i386aix-nat.c: Make file obsolete.
2857 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2858 (i386aix-nat.o): Make target obsolete.
2859
e0ca2bb9
MK
2860 * config/i386/nm-gnu.h: Removed.
2861 * config/i386/nm-i386gnu.h: New file.
2862 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2863 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2864 Moved here from ...
2865 * config/i386/tm-i386gnu.h: ... here. Removed.
2866 * config/i386/xm-i386gnu.h: Removed.
2867 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2868 (NAT_FILE): Set to nm-i386gnu.h.
2869 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2870 * i386-tdep.c: New file.
2871 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2872 (i386gnu-tdep.o): Specify dependencies.
2873
16057ec7 28742002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2875
6b99ee2e
MK
2876 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2877 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2878 Adjust a few comments to reflect reality a bit closer.
2879 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2880 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2881 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2882 target_insert_watchpoint, target_remove_watchpoint):
2883 Move defines to ...
2884 * config/i386/nm-i386sco5.h: ... here.
2885 (kernel_u_size): Add prototype. Improve a few comments and add
2886 protection against multiple inclusion.
2887
d9a6f65c
MK
2888 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2889 out define.
2890
047eff6a
MK
2891 * uw-thread.c (SP_ARG0): Define if not already defined.
2892 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2893
dcdb1290
MK
2894 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2895
5d2d0b2a
MK
2896 * config/i386/tm-i386.h: Don't include "regcache.h".
2897
61113f8b
MK
2898 * i387-tdep.h (i387_print_float_info): New prototype.
2899 * i387-tdep.c (print_i387_value, print_i387_ext,
2900 print_i387_status_word, print_i387_control_word): Add `struct
2901 ui_file *' argument and use it for output.
2902 (i387_print_float_info): Renamed from i387_float_info. Add
2903 `struct gdbarch *' and `struct ui_file *' arguments and use the
2904 latter for output.
2905 * i386-tdep.c: Include "i387-tdep.h".
2906 (i386_gdbarch_init): Set print_float_info.
2907 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2908 (FLOAT_INFO): Remove define.
2909
46e0f506
MS
29102002-08-13 Michael Snyder <msnyder@redhat.com>
2911
2912 * mips-tdep.c (mips_push_arguments): Rename to
2913 mips_eabi_push_arguments, and tune for EABI.
2914 (MIPS_REGS_HAVE_HOME_P): Delete.
2915 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2916 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2917 Delete references to mips_regs_have_home_p.
2918
409268de
KS
29192002-08-14 Keith Seitz <keiths@redhat.com>
2920
2921 * Makefile.in (install-gdbtk): Create insight plugin directory.
2922 Install plugins.tcl file.
2923
ffc6a242
KS
29242002-08-14 Keith Seitz <keiths@redhat.com>
2925
2926 * configure.in: Move SUBDIRS to near top of the file so that
2927 --enable options may add things to it.
2928 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2929 * configure: Regenerate.
2930
ebafbe83
MS
29312002-08-13 Michael Snyder <msnyder@redhat.com>
2932
2933 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2934 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2935 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2936
32f6f25d
AC
29372002-08-13 Andrew Cagney <ac131313@redhat.com>
2938
2939 * vax-tdep.c (vax_get_saved_register): Delete function.
2940 (vax_gdbarch_init): Update.
2941 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2942 (ns32k_gdbarch_init): Update.
2943 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2944 (alpha_gdbarch_init): Update.
2945
53826de9
AC
29462002-08-13 Andrew Cagney <cagney@redhat.com>
2947
2948 * regcache.c (init_regcache_descr): Overallocate the
2949 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2950 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2951 nr_raw_registers.
2952 (set_register_cached): Add range checking assertions. Use
2953 current_regcache.
2954
16057ec7 29552002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2956
2957 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2958 numbers for MMX registers.
2959
7b4c2dce
AC
29602002-08-13 Andrew Cagney <cagney@redhat.com>
2961
2962 * i386-tdep.c (i386_gdbarch_init): Use
2963 generic_unwind_get_saved_register.
2964
1e03ad20
KB
29652002-08-13 Kevin Buettner <kevinb@redhat.com>
2966
2967 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2968 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2969 target vector.
2970 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2971 Delete. Add comment regarding this now-deleted target method.
2972
548bcbec
SC
29732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2974
2975 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2976 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2977 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2978 real PC and the page number (if it's within the memory bank window).
2979 (m68hc11_pseudo_register_write): Likewise when saving.
2980 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2981 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2982 (m68hc11_register_raw_size): And use 32-bit for it.
2983 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2984 16K memory bank is used by the prog; also use the virtual pc.
2985
7df11f59
SC
29862002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2987
2988 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2989 (m68hc11_gdbarch_init): Install it in gdbarch.
2990 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2991 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2992 (MSYMBOL_SIZE): New for documentation.
2993 (insn_return_kind): Enum to specify how a function returns.
2994 (frame_extra_info): Cleanup and record the return mode.
2995 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2996 register in address computation.
2997 (m68hc11_get_return_insn): New to obtain the return instruction used
2998 by the function.
2999 (m68hc11_frame_init_saved_regs): Take into account the return
3000 instruction used by the function for far and interrupt functions.
3001 (m68hc11_init_extra_frame_info): Take into account page register.
3002 (m68hc11_frame_args_address): Adjust according to the return mode.
3003 (show_regs): Print page register only when it's used.
3004
5706502a
SC
30052002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3006
3007 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3008 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3009 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3010 registers.
3011 (m68hc11_register_raw_size): Likewise.
3012
28fc6740
AC
30132002-08-13 Andrew Cagney <cagney@redhat.com>
3014
3015 * i386-tdep.c (i386_register_name): Handle mmx registers.
3016 (mmx_regnum_p): New function.
3017 (i386_mmx_names): New array.
3018 (mmx_num_regs): New variable.
3019 (i386_pseudo_register_read): New function.
3020 (i386_pseudo_register_write): New function.
3021 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3022
3023 * regcache.c (regcache_raw_read_unsigned): New function.
3024 (regcache_raw_read_signed): New function.
3025 * regcache.h (regcache_raw_read_unsigned): Declare.
3026 (regcache_raw_read_signed): Declare.
3027
a378f419
AC
30282002-08-13 Andrew Cagney <cagney@redhat.com>
3029
3030 * regcache.c (regcache_raw_read_as_address): Delete function.
3031 (regcache_cooked_read_signed): New function.
3032 (regcache_cooked_read_unsigned): New function.
3033 * regcache.h (regcache_cooked_read_signed): Declare.
3034 (regcache_cooked_read_unsigned): Declare.
3035 (regcache_raw_read_as_address): Delete declaration.
3036
3037 * blockframe.c (generic_read_register_dummy): Use
3038 regcache_cooked_read_unsigned.
3039 * i386-tdep.c (i386_extract_struct_value_address): Use
3040 regcache_cooked_read_unsigned.
3041
81967506
SC
30422002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3043
3044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3045 double sizes according to ELF ABI flags.
3046 (gdbarch_tdep): Record elf_flags.
3047
ffe1f3ee
SC
30482002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3049
3050 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3051 (m6812_prolog): They can appear in 68HC12 function prologue.
3052 (m68hc11_frame_chain): Cleanup.
3053
98216c5d
AC
30542002-08-12 Andrew Cagney <cagney@redhat.com>
3055
3056 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3057 declarations.
3058 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3059 (i386_linux_register_raw_size): Delete function.
3060 (i386_linux_init_abi): Update.
3061 * i386-tdep.c (i386_register_raw_size): Delete function.
3062 (i386_register_byte): Delete function.
3063 (i386_gdbarch_init): Update.
3064 (i386_register_size): Delete array.
3065 (i386_register_offset): Delete array.
3066
3067 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3068 (REGISTER_RAW_SIZE): Delete macro.
3069 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3070 (REGISTER_BYTE): Delete macro.
3071
3b19021e
AS
30722002-08-11 Aidan Skinner <aidan@velvet.net>
3073
3074 * ada-lang.c (ada_lookup_partial_symbol)
3075 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3076 prototype names so that grep ^func works properly.
3077
3078 * ada-lang.c (ada_array_element_type)
3079 (ada_lookup_partial_symbol): Fix typos in parameter list.
3080
3081 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3082 Fix prototype names so that grep ^func works properly.
3083
b063e7a2
AC
30842002-08-10 Andrew Cagney <cagney@redhat.com>
3085 Elena Zannoni <ezannoni@redhat.com>
3086 Martin M. Hunt <hunt@redhat.com>
3087
3088 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3089 (build_builtin_type_vec128i): Set the vector bit.
3090 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3091 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3092 (build_builtin_type_vec64): New function.
3093 (build_builtin_type_vec64i): New function.
3094 (build_gdbtypes): Initialize builtin_type_vec64 and
3095 builtin_type_vec64i.
3096
a7e3c2ad
AC
30972002-08-09 Andrew Cagney <cagney@redhat.com>
3098
3099 * regcache.c (regcache_dump): Compare the register offset
3100 with REGISTER_BYTE.
3101 * arch-utils.c (generic_register_byte): New function.
3102 * arch-utils.h (generic_register_byte): Declare.
3103 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3104 * gdbarch.h, gdbarch.c: Regenerate.
3105
af030b9a
AC
31062002-08-09 Andrew Cagney <cagney@redhat.com>
3107
3108 * regcache.c: Include "gdbcmd.h"
3109 (_initialize_regcache): Add commands "maintenance print
3110 registers", "maintenance print raw-registers" and "maintenance
3111 print cooked-registers".
3112 (enum regcache_dump_what): Define.
3113 (dump_endian_bytes): New function.
3114 (regcache_dump): New function.
3115 (regcache_print): New function.
3116 (maintenance_print_registers): New function.
3117 (maintenance_print_raw_registers): New function.
3118 (maintenance_print_cooked_registers): New function.
3119 * Makefile.in (regcache.o): Update dependencies.
3120
cb3d25d1
MS
31212002-08-09 Michael Snyder <msnyder@redhat.com>
3122
3123 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3124 (mips_push_arguments): Correct some comments. Use paddr_nz
3125 for printing addresses in debug output. Replace static
3126 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3127 (mips_n32n64_push_arguments): New function, cloned from
3128 mips_push_arguments and tuned for the n32/n64 ABI.
3129 (mips_push_register): Buffer needs dynamic allocation.
3130 (mips_print_register): Ditto.
3131 (do_gp_register_row): Ditto.
3132 (mips_store_return_value): Ditto.
3133 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3134
2163ab9d
DH
31352002-08-09 Don Howard <dhoward@redhat.com>
3136
3137 * memattr.c (mem_info_command): Print special case of upper bound
3138 as max CORE_ADDR + 1.
3139
b78bcb18
MS
31402002-08-08 Michael Snyder <msnyder@redhat.com>
3141
3142 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3143 returns structs by ref if they're too big to fit in two registers.
3144
ffabd70d
KB
31452002-08-09 Kevin Buettner <kevinb@redhat.com>
3146
3147 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3148 saved regs value.
3149 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3150 mips_find_saved_regs().
3151 (mips_pop_frame): Likewise.
3152
fbcdb4a3
KB
31532002-08-09 Kevin Buettner <kevinb@redhat.com>
3154
3155 * blockframe.c (frame_saved_regs_register_unwind): Revise
3156 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3157 frames are in use.
3158
3c3bea1c
GS
31592002-08-09 Grace Sainsbury <graces@redhat.com>
3160
3161 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3162 T-packets; the 'a' is not taken as a register number.
3163 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3164 (remote_stopped_data_address): New functions; add to target
3165 vector.
3166 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3167 prototypes to match other implementations of this
3168 function. replace integer argument with pointer -- the length
3169 field in the Z-packet is the length of what is pointed to or 1 if
3170 pointer is null. Add to target vector.
3171 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3172 target vector.
3173
3174 From Mark Salter:
3175 * remote.c (remote_wait): Add support to extract optional
3176 watchpoint information from T-packet. Ignore unrecognized
3177 optional info in T-packet.
3178 (remote_async_wait): Ditto.
3179
5d1d95de
CV
31802002-08-09 Corinna Vinschen <vinschen@redhat.com>
3181
3182 * cli/cli-dump.c: Change fopen modes to use binary open modes
3183 as defined in include/fopen-bin.h throughout.
3184
c86b5b38
MS
31852002-08-08 Michael Snyder <msnyder@redhat.com>
3186
3187 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3188
b30590dc
KB
31892002-08-08 Kevin Buettner <kevinb@redhat.com>
3190
3191 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3192 assertion failure by returning early after a warning.
3193
498868ed
KB
31942002-08-08 Kevin Buettner <kevinb@redhat.com>
3195
3196 * mips-tdep.c (mips_find_saved_regs): Make static.
3197 (mips_frame_init_saved_regs): New function.
3198 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3199 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3200 (mips_find_saved_regs): Delete declaration.
3201
b2dd6311
GS
32022002-08-08 Grace Sainsbury <graces@redhat.com>
3203
3c3bea1c
GS
3204 * remote.c (remote_wait, remote_async_wait): Change
3205 thread_num from int to ULONGEST.
3206 (unpack_varlen_hex): Change result parameter from
3207 int * to ULONGEST *.
b2dd6311 3208
ea47855f
AC
32092002-08-08 Andrew Cagney <ac131313@redhat.com>
3210
3211 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3212 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3213 powerpc*-*-*.
3214 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3215
69db8bae
AC
32162002-08-08 Andrew Cagney <cagney@redhat.com>
3217
3218 * gcore.c (override_derive_stack_segment): Delete variable.
3219 (preempt_derive_stack_segment): Delete function.
3220 (derive_stack_segment): Delete function.
3221 (default_derive_stack_segment): Renamed to derive_stack_segment.
3222 (override_derive_heap_segment): Delete variable.
3223 (preempt_derive_heap_segment): Delete function.
3224 (derive_heap_segment): Delete function.
3225 (default_derive_heap_segment): Rename to derive_heap_segment.
3226
cb811fe7
MS
32272002-08-06 Michael Snyder <msnyder@redhat.com>
3228
3229 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3230 * mips-tdep.c (mips_EABI_use_struct_convention,
3231 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3232 New functions. (mips_use_struct_convention): Delete.
3233 (mips_gdbarch_init): set use_gdbarch_convention.
3234
8b389c40
MS
32352002-08-06 Michael Snyder <msnyder@redhat.com>
3236
3237 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3238 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3239 mips_o32_reg_struct_has_addr): New functions.
3240 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3241
5c27f28a
AC
32422002-08-07 Andrew Cagney <ac131313@redhat.com>
3243
3244 * regcache.c (pseudo_register): Delete function.
3245 (fetch_register): Delete function.
3246 (store_register): Delete function.
3247 (regcache_raw_read, legacy_read_register_gen): Use
3248 target_fetch_registers instead of fetch_register.
3249 (legacy_write_register_gen, regcache_raw_write): Use
3250 target_store_register instead of store_register.
3251 (write_register_bytes): Ditto.
3252
3253 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3254 (STORE_PSEUDO_REGISTER): Delete.
3255 * gdbarch.h, gdbarch.c: Regenerate.
3256
5b331675
CV
32572002-08-06 Corinna Vinschen <vinschen@redhat.com>
3258
3259 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3260 write dump file binary.
3261
6acdf5c7
MS
32622002-08-05 Michael Snyder <msnyder@redhat.com>
3263
3264 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3265 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3266 (mips_gdbarch_init): Set N32 target to be mips64.
3267
b2f01c35
KB
32682002-08-06 Kevin Buettner <kevinb@redhat.com>
3269
3270 * frame.c (find_saved_register): Break out of loop once saved
3271 register address is found. Don't mention sparc in loop comment
3272 anymore.
3273
63db5580
KB
32742002-08-06 Kevin Buettner <kevinb@redhat.com>
3275
3276 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3277 mips_default_saved_regsize to 8.
3278
5e34e75e
AC
32792002-08-06 Andrew Cagney <ac131313@redhat.com>
3280
3281 * gcore.c: Do not include <sys/procfs.h>.
3282 * Makefile.in (gcore.o): Update dependencies.
3283
eb4c54a2
AC
32842002-08-06 Andrew Cagney <cagney@redhat.com>
3285
3286 * configure.tgt: Make arc-*-* obsolete.
3287 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3288 * MAINTAINERS: Make arc-elf obsolete.
3289 * arc-tdep.c: Make file obsolete.
3290 * config/arc/arc.mt: Ditto.
3291 * config/arc/tm-arc.h: Ditto.
3292
ced15480
TR
32932002-08-05 Theodore A. Roth <troth@verinet.com>
3294
c1bab85b 3295 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3296
b4743822
AC
32972002-08-05 Andrew Cagney <ac131313@redhat.com>
3298
3299 * mcore-tdep.c (mcore_gdbarch_init): Use
3300 generic_unwind_get_saved_register instead of
3301 generic_get_saved_register.
3302 * v850-tdep.c (v850_gdbarch_init): Ditto.
3303 * frv-tdep.c (frv_gdbarch_init): Ditto.
3304 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3305 * s390-tdep.c (s390_gdbarch_init): Ditto.
3306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3307 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3308 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3309
3956d554
JB
33102002-08-05 Joel Brobecker <brobecker@gnat.com>
3311
3312 * objfiles.h: Add missing #include "symfile.h"
3313
3314 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3315
8249c0d6
AC
33162002-08-04 Andrew Cagney <ac131313@redhat.com>
3317
3318 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3319 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3320 of FIELD_BITSIZE.
3321
b9d14705
DJ
33222002-08-04 Daniel Jacobowitz <drow@mvista.com>
3323
3324 * NEWS: Cleanup and nitpick.
3325
dd73b9bb
AC
33262002-08-03 Andrew Cagney <ac131313@redhat.com>
3327
3328 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3329
043a27f8
AC
33302002-08-03 Andrew Cagney <ac131313@redhat.com>
3331
3332 * Makefile.in (gdbtk-bp.o): Update dependencies.
3333 (gdbtk-register.o): Ditto.
3334 (gdbtk-varobj.o): Ditto.
3335
46ce284d
AC
33362002-08-03 Andrew Cagney <cagney@redhat.com>
3337
3338 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3339 m68hc11_fetch_pseudo_register.
3340 (m68hc11_pseudo_register_write): Replace
3341 m68hc11_store_pseudo_register.
3342 (m68hc11_gdbarch_init): Update.
3343
b66d6d2e
AC
3344Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3345
3346 * gdbarch.sh: Include "gdb_string.h".
3347 * gdbarch.c: Regenerate.
3348
3349 * regcache.c: Include "gdb_string.h".
3350 * ax-general.c: Ditto.
3351 * varobj.c: Ditto.
3352 * std-regs.c: Ditto.
3353 * fbsd-proc.c: Ditto.
3354 * thread.c: Ditto.
3355
3356 * Makefile.in (regcache.o): Update dependencies.
3357 (thread.o, gdbarch.o): Ditto.
3358 (ax-general.o, gdbarch.o): Ditto.
3359 (varobj.o, std-regs.o): Ditto.
3360 (fbsd-proc.o): Specify dependencies.
3361
29e1842b
AC
33622002-08-02 Andrew Cagney <cagney@redhat.com>
3363
3364 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3365 regnum.
3366 (regcache_cooked_write): Ditto.
3367
68365089
AC
33682002-08-02 Andrew Cagney <ac131313@redhat.com>
3369
3370 * regcache.c (regcache_cooked_read): New function.
3371 (regcache_cooked_write): New function.
3372 (read_register_gen): Rewrite using regcache_cooked_read.
3373 (write_register_gen): Rewrite using regcache_cooked_write.
3374
3375 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3376 Declare.
3377
d8124050
AC
33782002-08-02 Andrew Cagney <cagney@redhat.com>
3379
3380 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3381 Replace the architecture methods register_read and register_write.
3382 * gdbarch.h, gdbarch.c: Regenerate.
3383 * regcache.c (init_regcache_descr): Update.
3384 (read_register_gen): Update.
3385 (write_register_gen): Update.
3386 (supply_register): Update comment.
3387
3388 * sh-tdep.c (sh_gdbarch_init): Update.
3389 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3390 `regcache' and `gdbarch' parameters. Make `buffer' a void
3391 pointer. Update code.
3392 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3393 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3394 void pointer. Update code.
3395 (sh64_register_write): Delete.
3396 (sh4_register_read): Delete.
3397 (sh64_register_read): Delete.
3398 (sh4_register_write): Delete.
3399 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3400 void pointer, `to' parameter a void pointer.
3401 (sh_sh64_register_convert_to_raw): Ditto.
3402
a6425924
KB
34032002-08-01 Kevin Buettner <kevinb@redhat.com>
3404
3405 * mips-tdep.c (mips_register_virtual_type): Use architecture
3406 invariant return values.
3407
ff5922b5
AC
34082002-08-01 Andrew Cagney <cagney@redhat.com>
3409
3410 * linux-proc.c: Include "gdb_string.h".
3411 * Makefile.in (linux-proc.o): Update dependency list.
3412
32a6503c
KB
34132002-08-01 Kevin Buettner <kevinb@redhat.com>
3414
3415 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3416 comment.
3417
ccaa32c7
GS
34182002-08-01 Grace Sainsbury <graces@redhat.com>
3419
3420 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3421 to_insert_watchpoint, to_remove_watchpoint,
3422 to_stopped_by_watchpoint, to_stopped_data_address,
3423 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3424 target vecctor. Define their corresponding macros so they call
3425 them.
3426
3427 * target.c: Add default and debug versions of for
3428 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3429 to_insert_watchpoint, to_remove_watchpoint,
3430 to_stopped_by_watchpoint, to_stopped_data_address,
3431 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3432
78fde5f8
KB
34332002-08-01 Kevin Buettner <kevinb@redhat.com>
3434
3435 * mips-tdep.c (mips_register_virtual_type): New function.
3436 (mips_gdbarch_init): Register mips_register_virtual_type()
3437 with gdbarch machinery.
3438 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3439 this file instead of tm-bigmips.h.
3440 (MIPS_REGSIZE): Delete this macro.
3441 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3442 multiarch version in mips-tdep.c will be found.
3443
db034ac5
AC
34442002-08-01 Andrew Cagney <cagney@redhat.com>
3445
3446 * NEWS: Menion that CHILL has been made obsolete.
3447
3448 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3449 * stabsread.c (read_range_type): Ditto.
3450 * gdbtypes.h: Ditto.
3451 * language.c (binop_type_check): Ditto.
3452 (binop_result_type): Ditto.
3453 (integral_type): Ditto.
3454 (character_type): Ditto.
3455 (string_type): Ditto.
3456 (boolean_type): Ditto.
3457 (structured_type): Ditto.
3458 (lang_bool_type): Ditto.
3459 (binop_type_check): Ditto.
3460 * language.h (_LANG_chill): Ditto.
3461 * dwarfread.c (set_cu_language): Ditto.
3462 * dwarfread.c (CHILL_PRODUCER): Ditto.
3463 * dwarfread.c (handle_producer): Ditto.
3464 * expression.h (enum exp_opcode): Ditto.
3465 * eval.c: Ditto for comments.
3466 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3467 * expprint.c (print_subexp): Ditto.
3468 (print_subexp): Ditto.
3469 * valops.c (value_cast): Ditto.
3470 (search_struct_field): Ditto.
3471 * value.h (COERCE_VARYING_ARRAY): Ditto.
3472 * symfile.c (init_filename_language_table): Ditto.
3473 (add_psymbol_with_dem_name_to_list): Ditto.
3474 * valarith.c (value_binop): Ditto.
3475 (value_neg): Ditto.
3476 * valops.c (value_slice): Ditto.
3477 * symtab.h (union language_specific): Ditto.
3478 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3479 (SYMBOL_DEMANGLED_NAME): Ditto.
3480 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3481 * defs.h (enum language): Ditto.
3482 * symtab.c (got_symtab): Ditto.
3483 * utils.c (fprintf_symbol_filtered): Ditto.
3484
3485 * ch-typeprint.c: Make file obsolete.
3486 * ch-valprint.c: Make file obsolete.
3487 * ch-lang.h: Make file obsolete.
3488 * ch-exp.c: Make file obsolete.
3489 * ch-lang.c: Make file obsolete.
3490
3491 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3492 CHILL_LIB.
3493 (TARGET_FLAGS_TO_PASS): Ditto.
3494 (CHILLFLAGS): Obsolete.
3495 (CHILL): Obsolete.
3496 (CHILL_FOR_TARGET): Obsolete.
3497 (CHILL_LIB): Obsolete.
3498 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3499 ch-valprint.c.
3500 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3501 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3502 ch-lang.o.
3503 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3504 targets.
3505
8aaf0b47
JB
35062002-07-31 Joel Brobecker <brobecker@gnat.com>
3507
3508 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3509 This does not change anything at the moment, but will be helpful
3510 later when full Ada support is integrated.
3511
f3a7b3a5
KB
35122002-07-31 Kevin Buettner <kevinb@redhat.com>
3513
3514 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3515 help message.
3516
fb850278
KB
35172002-07-31 Kevin Buettner <kevinb@redhat.com>
3518
3519 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3520 and save it in a local variable. Use variable in later test.
3521
e3bddbfa
KB
35222002-07-31 Kevin Buettner <kevinb@redhat.com>
3523
3524 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3525 test. (Thanks to Daniel Jacobowitz.)
3526
28d169de
KB
35272002-07-31 Kevin Buettner <kevinb@redhat.com>
3528
3529 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3530 (mips_abi_strings): Add "n64".
3531 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3532
7fe7e44e
KB
35332002-07-31 Kevin Buettner <kevinb@redhat.com>
3534
3535 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3536 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3537
c6caf090
KB
35382002-07-31 Kevin Buettner <kevinb@redhat.com>
3539
3540 * utils.c (host_pointer_to_address, address_to_host_pointer):
3541 Use gdb_assert() instead of explicit call to internal_error().
3542
c41669e0
KB
35432002-07-30 Kevin Buettner <kevinb@redhat.com>
3544
3545 * Makefile.in (rs6000-nat.o): Update dependencies.
3546
3547 From Nicholas Duffek:
3548 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3549 (aix-thread.o): New rule.
3550 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3551 * config/powerpc/aix432.mh: New file.
3552
2fda4977
DJ
35532002-07-30 Daniel Jacobowitz <drow@mvista.com>
3554
3555 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3556 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3557 (fetch_core_registers, ppc_linux_supply_gregset)
3558 (ppc_linux_supply_fpregset): New functions.
3559 (ppc_linux_regset_core_fns): New.
3560 (_initialize_ppc_linux_tdep): Call add_core_fns.
3561 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3562 and ppc_linux_supply_gregset.
3563 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3564 (supply_fpregset): Call ppc_linux_supply_fpregset.
3565 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3566 corelow.o.
3567 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3568
729051e6
DJ
35692002-07-30 Daniel Jacobowitz <drow@mvista.com>
3570
3571 * symtab.c (lookup_symbol): Demangle before lowercasing.
3572
5f8a3188
AC
35732002-07-30 Andrew Cagney <ac131313@redhat.com>
3574
3575 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3576 declaration.
3577 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3578 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3579 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3580 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3581 "gdb_string.h".
3582 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3583 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3584 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3585 (avr-tdep.o, mon960-rom.o): Ditto.
3586 (aout_stabs_gnu_h): Define.
3587 (symtab_h): Remove $(gdb_obstack_h).
3588
67f07146
JB
35892002-07-30 Jim Blandy <jimb@redhat.com>
3590
3591 Patch from David Carlton <carlton@math.stanford.edu>:
3592 * gdbinit.in: Move the `dir' commands that add GDB's own source
3593 directory to the search path to the end, so that the `gdb' source
3594 directory will be searched first.
3595
04ea0df1
AC
35962002-07-29 Andrew Cagney <ac131313@redhat.com>
3597
3598 * gdb_obstack.h: New file.
3599 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3600 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3601 * objfiles.h: Include "gdb_obstack.h".
3602 * Makefile.in (gdb_obstack_h): Define.
3603 (symtab_h): Add $(gdb_obstack_h).
3604 (objfiles_h): Add $(gdb_obstack_h).
3605
3606 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3607 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3608 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3609 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3610 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3611 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3612 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3613 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3614
3615 * Makefile.in (bcache.o): Update dependencies.
3616 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3617 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3618 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3619 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3620 (stabsread.o, symfile.o, symmisc.o): Ditto.
3621 (symtab.o, typeprint.o, macroexp.o): Ditto.
3622 (macrotab.o, mdebugread.o): Ditto.
3623 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3624 (coff_ecoff_h, aout_aout64_h): Define.
3625 (aout_stabs_gnu_h, libaout_h): Define.
3626
d138e37a
AC
36272002-07-29 Andrew Cagney <cagney@redhat.com>
3628
3629 * regcache.c (struct regcache_descr): Rename nr_registers to
3630 nr_cooked_registers. Revise comments describing the structure
3631 member fields.
3632 (init_regcache_descr): Update.
3633 (init_legacy_regcache_descr): Update.
3634 (read_register_gen, write_register_gen): When a cooked register in
3635 the raw register range, directly access the value from the raw
3636 register cache.
3637
460e6ec3
AC
36382002-07-29 Andrew Cagney <ac131313@redhat.com>
3639
3640 * z8k-tdep.c: Do not include "obstack.h".
3641 * h8300-tdep.c, h8500-tdep.c: Ditto.
3642 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3643 * valprint.c, v850-tdep.c: Ditto.
3644 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3645 * mn10200-tdep.c: Ditto.
3646
3647 * Makefile.in (z8k-tdep.o): Update dependencies.
3648 (m68hc11-tdep.o, valprint.o): Ditto.
3649 (v850-tdep.o, d10v-tdep.o): Ditto.
3650 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3651 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3652 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3653 (sh_opc_h, gdb_sim_sh_h): Define.
3654 (elf_sh_h, elf_bfd_h): Define.
3655 (opcode_m68hc11_h): Define.
3656 (OPCODES_SRC, OPCODES_DIR): define.
3657 (OPCODES): Use $(OPCODES_DIR).
3658 (gdb_sim_d10v_h): Rename sim_d10v_h.
3659 (gdb_sim_arm_h): Rename sim_arm_h.
3660
790c9cf0
KB
36612002-07-26 Kevin Buettner <kevinb@redhat.com>
3662
3663 * utils.c (host_pointer_to_address, address_to_host_pointer):
3664 Change internal_error() message to indicate function responsible
3665 for the error.
3666
9647fa49
KB
36672002-07-26 Kevin Buettner <kevinb@redhat.com>
3668
3669 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3670 calls to local_hex_string_custom().
3671
dabbe2c0
KB
36722002-07-26 Kevin Buettner <kevinb@redhat.com>
3673
3674 * irix5-nat.c: Move IRIX shared library support from here...
3675 * solib-irix.c: ...to here. Revised substantially to work with
3676 generic solib framework.
3677
b96d0a4e
KB
3678 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3679 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3680 * mips-irix-tdep.c: New file.
3681
313fb2f6
KB
3682 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3683 (mips-irix-tdep.o, solib-irix.o): New rules.
3684 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3685 solib-irix.o.
3686 * config/mips/irix6.mt (TDEPFILES): Likewise.
3687 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3688
ab2eaf26
KB
36892002-07-26 Kevin Buettner <kevinb@redhat.com>
3690
177e4768 3691 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3692 disabled (via ``#if 0'') includes.
3693
7244546a
KB
36942002-07-26 Kevin Buettner <kevinb@redhat.com>
3695
3696 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3697 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3698 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3699 Add support for the fpscr register.
3700 * rs6000-nat.c (regmap, fetch_inferior_registers)
3701 (store_inferior_registers, fetch_core_registers): Likewise.
3702
dd7be90a
KB
37032002-07-26 Kevin Buettner <kevinb@redhat.com>
3704
3705 * rs6000-nat.c (language.h): Include.
3706 (special_regs): Delete this array.
3707 (regmap): New function.
3708 (fetch_register, store_register): Use regmap() to map gdb
3709 register numbers to ptrace register numbers. Also, use
3710 outputs from regmap() to make decisions regarding type of
3711 ptrace() call to make. In particular, don't compare against
3712 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3713 (fetch_inferior_registers, store_inferior_registers): Where
3714 possible, obtain register numbers from tdep struct. Don't
3715 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3716 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3717 (LAST_UISA_SP_REGNUM): Delete.
3718
11bf77db
KB
37192002-07-25 Kevin Buettner <kevinb@redhat.com>
3720
3721 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3722 (fetch_registers, store_register, fetch_core_registers): Don't
3723 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3724 regcache_collect() as appropriate.
3725 (find_toc_address): Format hex address with local_hex_string().
3726
06afebeb
AC
37272002-07-25 Andrew Cagney <ac131313@redhat.com>
3728
3729 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3730 bfd/elf32-frv.c.
3731
8c554d79
TT
37322002-07-24 Tom Tromey <tromey@redhat.com>
3733
3734 * jv-exp.y: Marked all strings with _().
3735 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3736 internal_error.
3737 (MethodInvocation, CastExpression, parse_number, yyerror,
3738 java_type_from_name, push_expression_name, yylex): Typo fixes.
3739
e4c242d9
DJ
37402002-07-24 Daniel Jacobowitz <drow@mvista.com>
3741
3742 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3743 (tee_file_flush, tee_file_write, tee_file_fputs)
3744 (tee_file_isatty): New.
3745 * ui-file.h (tee_file_new): Add prototype.
3746
ebf56fd3
AS
37472002-07-24 Aidan Skinner <aidan@velvet.net>
3748
3749 * ada-lang.c: Change k&r style function definitions to prototyped
3750 form.
3751 * ada-typeprint.c: Change k&r style function definitions to prototyped
3752 form.
3753 * ada-valprint.c: Change k&r style function definitions to prototyped
3754 form.
3755
7fb623f7
AC
37562002-07-24 Andrew Cagney <cagney@redhat.com>
3757
3758 * README: Remove reference to remote-bug.
3759 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3760 remote-bug.c.
3761 (m88k-nat.o): Delete rule.
3762 (m88k-tdep.o): Delete rule.
3763 (remote-bug.o): Delete rule.
3764 * MAINTAINERS: Mark as obsolete.
3765 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3766 * m88k-tdep.c: Make file obsolete.
3767 * config/m88k/m88k.mh: Ditto.
3768 * config/m88k/delta88v4.mh: Ditto.
3769 * config/m88k/delta88v4.mt: Ditto.
3770 * config/m88k/delta88.mt: Ditto.
3771 * config/m88k/delta88.mh: Ditto.
3772 * remote-bug.c: Ditto.
3773 * config/m88k/tm-delta88.h: Ditto.
3774 * config/m88k/nm-delta88v4.h: Ditto.
3775 * config/m88k/xm-delta88.h: Ditto.
3776 * config/m88k/xm-dgux.h: Ditto.
3777 * config/m88k/tm-m88k.h: Ditto.
3778 * config/m88k/nm-m88k.h: Ditto.
3779 * config/m88k/tm-delta88v4.h: Ditto.
3780 * m88k-nat.c: Ditto.
3781 * cxux-nat.c: Ditto.
3782 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3783 and m88*-*-* obsolete.
3784 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3785 m88*-*-* obsolete.
3786
37611a2b
AC
37872002-07-24 Andrew Cagney <cagney@redhat.com>
3788
3789 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3790 constant. Same for local pointer variables.
3791 (extract_signed_integer): Ditto.
3792 * defs.h (extract_unsigned_integer): Update.
3793 (extract_signed_integer): Update.
3794
1aaa5f99
AC
37952002-07-24 Andrew Cagney <cagney@redhat.com>
3796
3797 * regcache.c (regcache_raw_write): Change buf parameter to a
3798 constant void pointer.
3799 (regcache_raw_read): Change buf parameter to a void pointer.
3800 (legacy_write_register_gen): Change myaddr parameter a constant
3801 void pointer.
3802 (supply_register): Change val parameter to a const void pointer.
3803 * regcache.h (regcache_raw_write): Update declaration.
3804 (regcache_raw_read): Update declaration.
3805 (supply_register): Update declaration.
3806
b4f5539f
TT
38072002-07-24 Tom Tromey <tromey@redhat.com>
3808
3809 * defs.h (gdb_readline_wrapper): Declare.
3810 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3811 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3812 * top.c (gdb_readline_wrapper): New function.
3813 (command_line_input): Use it.
3814
0818c12a
AC
38152002-07-24 Andrew Cagney <cagney@redhat.com>
3816
3817 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3818 regcache_read and regcache_write.
3819 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3820 * regcache.c: Update.
3821 * sh-tdep.c (sh64_push_arguments): Update comment.
3822 (sh_pseudo_register_read): Update.
3823 (sh_pseudo_register_write): Update.
3824 (sh4_register_read): Update.
3825 (sh4_register_write): Update.
3826 (sh64_pseudo_register_read): Update.
3827 (sh64_pseudo_register_write): Update.
3828 (sh64_register_read): Update.
3829 (sh64_register_write): Update.
3830 * i386-tdep.c (i386_extract_return_value): Update.
3831 (i386_extract_struct_value_address): Update.
3832 (i386_extract_return_value): Update.
3833 * blockframe.c (generic_read_register_dummy): Update.
3834 (generic_call_dummy_register_unwind): Update
3835 * infrun.c (write_inferior_status_register): Update.
3836
f7321c06
JB
38372002-07-23 Jim Blandy <jimb@redhat.com>
3838
3839 * parser-defs.h (expression_context_pc): Make this extern.
3840 (Thanks to Michael Snyder.)
3841
2037aebb
AC
38422002-07-23 Andrew Cagney <ac131313@redhat.com>
3843
3844 GDB 5.2.1 released from 5.2 branch.
3845 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3846 * README: Update to mention 5.2.1.
3847
66504d44
MS
38482002-07-23 Mark Salter <msalter@redhat.com>
3849
3850 * remote.c (remote_read_bytes): Fix check for error.
3851
27bae383
KB
38522002-07-22 Kevin Buettner <kevinb@redhat.com>
3853
3854 * aix-thread.c (language.h): Include.
3855 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3856 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3857 Print newlines at end of debug messages.
3858 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3859 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3860
38612002-07-22 Kevin Buettner <kevinb@redhat.com>
3862
3863 * aix-thread.c (ppc-tdep.h): Include.
3864 (special_register_p): New function.
3865 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3866 (store_regs_user_thread): Use register number information from
3867 gdbarch_tdep struct instead of hardcoded offsets relative to
3868 FIRST_UISA_SP_REGNUM.
3869 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3870 special_register_p() instead of using FPLAST_REGNUM and
3871 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3872 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3873 will be MQ's register number.
3874
38752002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3876
3877 * aix-thread.c (ops): Rename to aix_thread_ops.
3878 (base_ops): Rename to base_target.
3879 (ops_attach): Rename to aix_thread_attach.
3880 (ops_detach): Rename to aix_thread_detach.
3881 (ops_resume): Rename to aix_thread_detach.
3882 (ops_wait): Rename to aix_thread_wait.
3883 (ops_kill): Rename to aix_thread_kill.
3884 (init_ops): Rename to init_aix_thread_ops.
3885 (ops_fetch_register): Rename to aix_thread_fetch_register.
3886 (ops_store_register): Rename to aix_thread_store_register.
3887 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3888 (ops_thread_alive): Rename to aix_thread_thread_alive.
3889 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3890 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3891 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3892 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3893 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3894 (store_regs_lib): Rename to store_regs_user_thread.
3895 (store_regs_kern): Rename to store_regs_kernel_thread.
3896
27bae383 38972002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3898
3899 * aix-thread.c (ops_prepare_to_store): Eliminate.
3900 (init_ops): Don't initialize ops.prepare_to_store.
3901 (store_regs_kern): Pre-fetch register buffers from child,
3902 because some registers may not be in the cache. Copy
3903 regs from register cache only if they are cached.
3904 (store_regs_lib): Copy regs from register cache only
3905 if they are cached.
3906 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3907 fill_gprs64): Ditto.
3908
61c5da0b
KB
39092002-07-22 Kevin Buettner <kevinb@redhat.com>
3910
3911 * aix-thread.c (gdb_assert.h): Include.
3912 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3913 register sizes (from register cache) match size of buffer holding
3914 register data.
3915 (fill_sprs32): Change parameter types to match those in the ptrace()
3916 buffer.
3917 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3918 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3919
39202002-07-22 Michael Snyder <msnyder@redhat.com>
3921
3922 * aix-thread.c (supply_sprs64): Cosmetic change.
3923 (supply_sprs32): Cosmetic change.
3924 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3925 (fill_sprs64): Use regcache_collect instead of read_register.
3926 (store_regs_lib): Use regcache_collect instead of
3927 read_register. Use fill_sprs32 instead of fill_sprs64,
3928 if debugging a 32-bit architecture.
3929 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3930 out of the register cache, instead of passing a pointer into
3931 the register cache directly to ptrace. Use regcache_collect
3932 insteaad of read_register.
3933 (ops_prepare_to_store): Use target_read_registers instead
3934 of read_register_bytes.
3935
36479eb1
AS
39362002-07-20 Aidan Skinner <aidan@velvet.net>
3937
3938 * MAINTAINERS: Add self under write after approval.
3939
80ae6ee2
AS
39402002-07-20 Aidan Skinner <aidan@velvet.net>
3941
3942 * ada-tasks.c: Change k&r style function definitions to prototyped
3943 form.
3944
8a8ab2b9
AC
39452002-07-19 Andrew Cagney <ac131313@redhat.com>
3946
3947 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3948 * x86-64-tdep.c: Include "objfiles.h".
3949 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3950 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3951
fb16b900
ML
39522002-07-17 Michal Ludvig <michal@suse.cz>
3953
3954 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3955 (update_context): Initialise cfa variable.
3956
0fe7bf7b
MS
39572002-07-17 Michael Snyder <msnyder@redhat.com>
3958
3959 * aix-thread.c: Shorten some long lines.
3960 Bring comments into line with code spec.
3961
488f131b
JB
39622002-07-18 Joel Brobecker <brobecker@gnat.com>
3963
3964 * infrun.c: Re-indent using gdb_indent.sh.
3965
46c415d2
JB
39662002-07-18 Joel Brobecker <brobecker@gnat.com>
3967
3968 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3969 Leave the indentation temporarily untouched, to minimize the diffs.
3970
cdecafbe
EZ
39712002-07-18 Elena Zannoni <ezannoni@redhat.com>
3972
3973 * stabsread.c: Make os9k sections of the code obsolete,
3974 for real this time.
3975 * stabsread.h: Make os9k sections of the code obsolete.
3976
7b6aa020
ML
39772002-07-18 Michal Ludvig <mludvig@suse.cz>
3978
09ec9b38
ML
3979 * linux-low.c (regsets_store_inferior_registers): Add free()
3980 at the end of a loop to prevent memory leak.
3981 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3982 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3983 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3984 line a comment.
4894ac5d 3985 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3986
233282cd
JB
39872002-07-17 Jim Blandy <jimb@redhat.com>
3988
3989 * macrocmd.c (info_macro_command): Remove newline from error
3990 message.
3991
7b6aa020 39922002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3993
3994 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3995 (sh_gdbarch_init): Use it for sh-dsp.
3996
f7ef9339
KB
39972002-07-16 Kevin Buettner <kevinb@redhat.com>
3998
3999 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4000 64-bit DWARF2 format.
4001
8dd72958
JB
40022002-07-16 Joel Brobecker <brobecker@gnat.com>
4003
4004 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4005 <sys/proc.h> when not available.
4006
a99a9e1b
AC
40072002-07-16 Andrew Cagney <ac131313@redhat.com>
4008
4009 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4010 * stabsread.c: Make os9k sections of the code obsolete.
4011 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4012 * config/i386/i386os9k.mt: Make file obsolete.
4013 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4014 (COMMON_OBS): Remove os9kread.o
4015 (SFILES): Remove os9kread.c.
4016 (os9kread.o, remote-os9k.o): Make target obsolete.
4017 * remote-os9k.c: Make file obsolete.
4018 * os9kread.c: Make file obsolete.
4019 * Makefile.in
4020
7a3085c1
AC
40212002-07-16 Andrew Cagney <ac131313@redhat.com>
4022
4023 * NEWS: Mention that the FR30 has been made obsolete.
4024 * fr30-tdep.c: Make file obsolete.
4025 * config/fr30/tm-fr30.h: Ditto.
4026 * config/fr30/fr30.mt: Ditto.
4027 * configure.tgt: Make fr30-*-elf obsolete.
4028 * MAINTAINERS: Make fr30-elf obsolete.
4029
28a93f5a
PM
40302002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4031
4032 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4033 found is not inside a section.
4034
be006b8b
KB
40352002-07-15 Kevin Buettner <kevinb@redhat.com>
4036
4037 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4038 strerror().
4039 (pdc_realloc): Use xrealloc() instead of realloc().
4040
14fa3751
KB
40412002-07-15 Kevin Buettner <kevinb@redhat.com>
4042
4043 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4044 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4045 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4046 macros.
4047
42cc437f
KB
40482002-07-15 Kevin Buettner <kevinb@redhat.com>
4049
4050 * aix-thread.c (ptrace_check): Eliminate goto.
4051 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4052 problem.
4053
8e2c28d4
KB
40542002-07-15 Kevin Buettner <kevinb@redhat.com>
4055
4056 * aix-thread.c (gdbcmd.h): Include.
4057 (DEBUG, DBG, DBG2, dbg): Eliminate.
4058 (debug_aix_thread): New static global.
4059 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4060 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4061 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4062 invocations to DBG and DBG2 macros to test against
4063 ``debug_aix_thread'' and call fprintf_unfiltered().
4064 (_initialize_aix_thread): Add new command "set debug aix-thread".
4065
30413464
AC
40662002-07-15 Andrew Cagney <ac131313@redhat.com>
4067
4068 From Gerhard Tonn <TON@de.ibm.com>:
4069 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4070 instead of supply_register.
4071
7c43edc1
AC
40722002-07-15 Andrew Cagney <ac131313@redhat.com>
4073
4074 * dwarf2cfi.c: Include "gdb_assert.h".
4075 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4076 non-NULL.
4077 (update_context): Do not use __func__. Add missing ``break''.
4078 (update_context): Do not use __func__.
4079
9364a0ef
EZ
40802002-07-15 Elena Zannoni <ezannoni@redhat.com>
4081
4082 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4083 and its setting. Set gdbarch instruction printing functions
4084 directly. For non-rs6000 case use new function
4085 gdb_print_insn_powerpc.
4086 (gdb_print_insn_powerpc): New function.
4087
3fbeef0b
AC
40882002-07-13 Andrew Cagney <ac131313@redhat.com>
4089
92eb23c5 4090 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
4091 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4092 * configure.tgt: Mark d30v-*-* as obsolete.
4093 * d30v-tdep.c: Mark file as obsolete.
4094 * config/d30v/d30v.mt: Ditto.
4095 * config/d30v/tm-d30v.h: Ditto.
4096
aacb1f0a
AS
40972002-07-13 Aidan Skinner <aidan@velvet.net>
4098
4099 * ada-tasks.c (add_task_entry): replace calls to
4100 malloc() with xmalloc
4101 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4102
4103 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4104 ada_finish_decode_line_1, all_sals_for_line
4105 ada_breakpoint_rewrite): replace calls to free() with xfree()
4106
c11d79f2
KB
41072002-07-12 Kevin Buettner <kevinb@redhat.com>
4108
4109 From Nicholas Duffek (with minor changes by Martin Hunt,
4110 Louis Hamilton, and Kevin Buettner):
4111 * aix-thread.c: New file.
4112
8e19ed76
PS
41132002-07-12 Petr Sorfa <petrs@caldera.com>
4114
4115 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4116 complaint for invalid attribute class or form.
4117 (read_func_scope): DW_AT_frame_base
4118 better handling of DW_AT_block*.
4119 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4120 better handling of DW_AT_block*.
4121 (read_common_block): DW_AT_location
4122 better handling of DW_AT_block*.
4123 (read_partial_die): DW_AT_location better handling
4124 of DW_AT_block*.
4125 (new_symbol): DW_AT_external better handling of
4126 DW_AT_block*. Proper initialization of variable
4127 "addr".
4128 (attr_form_is_block): New function that returns true
4129 if the attribute's form is of DW_FORM_block*.
4130
295401f7
DJ
41312002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4132
4133 * valops.c (find_method_list): Remove comment about
4134 removed STATIC_MEMFUNCP argument.
4135 (value_find_oload_method_list): Likewise.
4136
e42dc924
KB
41372002-07-12 Kevin Buettner <kevinb@redhat.com>
4138
4139 From Nicholas Duffek:
4140 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4141 target_new_objfile_hook.
4142
6904b546
KB
41432002-07-12 Kevin Buettner <kevinb@redhat.com>
4144
4145 From Nicholas Duffek:
4146 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4147 csect.
4148
53fe9346
AC
41492002-07-12 Andrew Cagney <cagney@redhat.com>
4150
4151 * MAINTAINERS: Mention --enable-sim-build-warnings.
4152 (m68hc11-elf): Disable sim build warnings.
4153 (m32r-elf): Mark as broken obsolete candidate.
4154 (x86_64-linux-gnu): Mark as buildable with -Werror.
4155 (arm-elf): Change -w to ``,'' which enables warnings but not
4156 -Werror.
4157
af5f3db6
AC
41582002-07-12 Andrew Cagney <ac131313@redhat.com>
4159
4160 * bcache.h: Update copyright.
4161 (struct bstring, struct bcache): Move definition to "bcache.c".
4162 Replaced by opaque declaration.
4163 (bcache_xfree): Replace free_bcache.
4164 (bcache_xmalloc, bcache_memory_used): Declare.
4165
4166 * bcache.c: Update copyright.
4167 (struct bstring, struct bcache): Moved to here from "bcache.h".
4168 Update comments.
4169 (bcache_xmalloc, bcache_memory_used): New functions.
4170 (bcache_xfree): Replace function free_bcache.
4171
4172 * Makefile.in (objfiles.o): Add $(bcache_h).
4173 (objfiles_h): Remove $(bcache_h).
4174 (symfile.o): Add $(bcache_h).
4175
4176 * symmisc.c: Update copyright.
4177 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4178 (print_objfile_statistics): Use bcache_memory_used.
4179
4180 * symfile.c: Include "bcache.h".
4181 (reread_symbols): Use bcache_xfree.
4182 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4183 (add_psymbol_to_list): Pass psymbol_cache by value.
4184 (add_psymbol_with_dem_name_to_list): Ditto.
4185
4186 * objfiles.h: Update copyright.
4187 (struct bcache): Declare opaque. Do not include "bcache.h".
4188 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4189 bcache'' pointers.
4190 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4191
4192 * objfiles.c: Include "bcache.h". Update copyright.
4193 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4194 macro_cache.
4195 (free_objfile): Use bcache_xfree.
4196
444199e7
GS
41972002-07-11 Grace Sainsbury <graces@redhat.com>
4198
4199 * monitor.c (monitor_fetch_register): Make name a constant.
4200 (monitor_store_register): Same.
4201
261397f8
DJ
42022002-07-11 Daniel Jacobowitz <drow@mvista.com>
4203
4204 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4205 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4206 (finish_block) For non-function blocks, hash the symbol table. For
4207 function blocks, mark the symbol table as unhashed.
4208 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4209 (msymbol_hash_iw): Likewise.
4210 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4211 value.
4212 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4213 (lookup_minimal_symbol): Likewise for both.
4214 * symtab.h (struct block): Add `hashtable' flag. Comment the
4215 hashtable.
4216 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4217 (ALL_BLOCK_SYMBOLS): Update.
4218 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4219 (struct symbol): Add `hash_next' pointer.
4220 * symtab.c (lookup_block_symbol): Search using the hash table when
4221 possible.
4222 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4223 (search_symbols, find_addr_symbol): Likewise.
4224
4225 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4226 (read_dst_symtab): Likewise.
4227 * jv-lang.c (get_java_class_symtab): Likewise.
4228 * mdebugread.c: Include "gdb_assert.h".
4229 (shrink_block): Assert that the block being modified is not hashed.
4230 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4231 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4232 symbols.
4233 (dump_symtab): Recognize hashed blocks.
4234 * printcmd.c (print_frame_args): Assert that function blocks do not
4235 have hashed symbol tables.
4236 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4237 (fill_in_ada_prototype, debug_print_block): Likewise.
4238 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4239
6f0eaa01
CV
42402002-07-11 Corinna Vinschen <vinschen@redhat.com>
4241
4242 * stack.c (print_frame): Use result of frame_address_in_block()
4243 instead of fi->pc when evaluating symbols.
4244 (backtrace_command_1): Ditto.
4245
a208b0cb
AC
42462002-07-11 Andrew Cagney <cagney@redhat.com>
4247
4248 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4249 Make static.
4250
4251 * arm-tdep.c (arm_register_name): Make return type constant.
4252
a6b6b089
AC
42532002-07-10 Andrew Cagney <ac131313@redhat.com>
4254
5ae5f592
AC
4255 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4256 prototype.
4257 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4258 * s390-tdep.c (s390_fp_regnum): Ditto.
4259 (s390_read_fp): Ditto.
4260 (s390_pop_frame): Ditto.
4261 (_initialize_s390_tdep): Ditto.
4262 * remote.c (get_remote_state): Ditto.
4263 * procfs.c (mappingflags): Ditto.
4264 * memattr.c (_initialize_mem): Ditto.
4265 * mcore-tdep.c (mcore_pop_frame): Ditto.
4266 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4267 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4268 * language.c (set_case_str): Ditto.
4269 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4270 * frv-tdep.c (new_variant): Ditto.
4271 (frv_stopped_data_address): Ditto.
4272 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4273 (context_alloc): Ditto.
4274 (frame_state_alloc): Ditto.
4275 (unwind_tmp_obstack_init): Ditto.
4276 (unwind_tmp_obstack_free): Ditto.
4277 (cfi_read_fp): Ditto.
4278 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4279 (cris_pop_frame): Ditto.
4280 * c-lang.c (scanning_macro_expansion): Ditto.
4281 (finished_macro_expansion): Ditto.
4282 (c_preprocess_and_parse): Ditto.
4283 * gdbarch.sh: Ditto.
4284 * gdbarch.h, gdbarch.c: Regenerate.
4285 * config/mn10200/tm-mn10200.h: Adjust indentation.
4286 * target.c: Adjust indentation.
4287 * symtab.h: Adjust indentation.
4288 * stabsread.h: Adjust indentation.
4289 * remote-es.c: Adjust indentation.
4290 * os9kread.c: Adjust indentation.
4291
42922002-07-10 Andrew Cagney <ac131313@redhat.com>
4293
a6b6b089
AC
4294 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4295 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4296
a1789893
GS
42972002-07-10 Grace Sainsbury <graces@redhat.com>
4298
4299 * NEWS: Mention m68k, mcore multi-arching.
4300 * MAINTAINERS: Change status of m68k, mcore to reflect
4301 multi-arching.
4302
02f0d45d
DJ
43032002-07-10 Daniel Jacobowitz <drow@mvista.com>
4304
4305 * valops.c (find_overload_match): Free oload_syms.
4306
f15f768e
JB
43072002-07-09 Joel Brobecker <brobecker@gnat.com>
4308
4309 Define HAVE_SYS_PROC_H if sys/proc.h exists
4310 * configure.in: Add check for sys/proc.h
4311 * config.in: Regenerate.
4312 * configure: Regenerate.
4313
902a7139
GS
43142002-07-09 Grace Sainsbury <graces@redhat.com>
4315
4316 * config/m68k/tm-m68k.h: Remove macros wrapped in
4317 #if !GDB_MULTI_ARCH.
4318
a534e424
AC
43192002-07-08 Andrew Cagney <ac131313@redhat.com>
4320
4321 * config.in, configure: Regenerate.
4322
9b94f7bf
MK
43232002-07-08 Mark Kettenis <kettenis@gnu.org>
4324
4325 * dwarf2cfi.c: Include "gcore.h".
4326 (execute_stack_op): Fix implementation of the
4327 DW_OP_deref and DW_OP_deref_size operators by letting do their
4328 lookup in the target.
4329
1d34db41
MK
43302002-07-07 Mark Kettenis <kettenis@gnu.org>
4331
4332 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4333 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4334 tdep->sc_sp_offset.
4335
79d5b63a
DJ
43362002-07-05 Daniel Jacobowitz <drow@mvista.com>
4337
4338 Fix PR gdb/595, gdb/602
4339 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4340 Don't call value_cast, just read the vtable pointer; update comments
4341 to match.
4342
3bb912e8
GS
43432002-07-05 Grace Sainsbury <graces@redhat.com>
4344
4345 * config/mcore/tm-mcore.h: Remove file.
4346 * config/mcore/mcore.mt: Remove definition of TM_FILE
4347 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4348
ca39387d
MK
43492002-07-05 Mark Kettenis <kettenis@gnu.org>
4350
4351 * i386bsd-tdep.c: Include "gdb_string.h".
4352
efdc1108
GS
43532002-07-04 Grace Sainsbury <graces@redhat.com>
4354
4355 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4356 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4357 mcore-tdep.
4358 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4359 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4360 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4361 (RETVAL_REGNUM): Move macros from tm-mcore.h
4362 (mcore_reg_struct_has_addr): New function.
4363 (mcore_gdbarch_init): Added initializations for the macros removed
4364 from tm-mcore.h.
4365
bb21884d
MK
43662002-07-04 Mark Kettenis <kettenis@gnu.org>
4367
4368 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4369 traditonal string branding within the ELF header.
4370
228c6d41
DJ
43712002-07-04 Daniel Jacobowitz <drow@mvista.com>
4372
4373 * symtab.c (remove_params): New function.
4374 (make_symbol_overload_list): Use it instead of cplus_demangle.
4375 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4376
2404952e
MK
43772002-07-04 Mark Kettenis <kettenis@gnu.org>
4378
e5e4acad
MK
4379 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4380
baadce09
MK
4381 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4382 New variables.
4383 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4384 and tdep->sigtramp_end.
4385 * i386obsd-nat.c: New file.
4386 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4387
2404952e
MK
4388 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4389 Don't call get_current_frame().
4390
9b4f1ba7
PM
43912002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4392
4393 * i386-nat.c (child_post_startup_inferior): New function
4394 calling i386_cleanup_dregs if
4395 I386_USE_GENERIC_WATCHPOINTS is defined.
4396 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4397 conditional to acknowledge that i386-nat.c has its
4398 own child_post_startup_inferior function.
4399
c0d1d883
MK
44002002-07-04 Mark Kettenis <kettenis@gnu.org>
4401
00f8375e
MK
4402 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4403 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4404 instead of MAX_REGISTER_RAW_SIZE.
4405 (i386_extract_return_value, i386_extract_struct_value_address):
4406 Convert to use regcache.
4407 (i386_gdbarch_init): Set max_register_raw_size and
4408 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4409 Set extract_return_value and extract_struct_value_address instead
4410 of their deprecated variants.
4411
c0d1d883
MK
4412 Convert i386 target to generic dummy frames.
4413 * i386-tdep.c: Include "symfile.h".
4414 (i386_frameless_signal_p): Consider a function to be frameless if
4415 the pc points at the first instruction of the function.
4416 (i386_frame_chain): Handle (generic) call dummies.
4417 (i386_frame_saved_pc): Likewise.
4418 (i386_frame_init_saved_regs): Remove code dealing with call
4419 dummies on the stack.
4420 (i386_push_dummy_frame): Removed.
4421 (i386_call_dummy_words): Removed.
4422 (i386_fix_call_dummy): Removed.
4423 (i386_push_return_address): New function.
4424 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4425 parameter, and don't call get_current_frame.
4426 (i386_pop_frame): New function.
4427 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4428 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4429 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4430 call_dummy_length to 0, set call_dummy_words to NULL, set
4431 sizeof_call_dummy_words to 0, set fix_call_dummy to
4432 generic_fix_call_dummy, set pc_in_call_dummy to
4433 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4434 generic_push_dummy_frame, set push_return_address to
4435 i386_push_return_address and set frame_chain_valid to
4436 generic_file_frame_chain_valid.
4437
049ee0e4
AC
44382002-07-03 Andrew Cagney <ac131313@redhat.com>
4439
4440 * gdbarch.sh (struct regcache): Add opaque declaration.
4441 (EXTRACT_RETURN_VALUE): New architecture method.
4442 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4443 * gdbarch.h, gdbarch.c: Regenerate.
4444 * arch-utils.c (legacy_extract_return_value): New function.
4445 * arch-utils.h (legacy_extract_return_value): Declare.
4446 * values.c (value_being_returned): Re-enable code handling
4447 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4448 deprecated_grub_regcache_for_registers call to block handling
4449 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4450 (EXTRACT_RETURN_VALUE): Do not define.
4451
4e0d9804
GS
44522002-07-03 Grace Sainsbury <graces@redhat.com>
4453
4454 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4455 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4456 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4457 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4458 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4459 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4460 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4461 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4462 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4463 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4464 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4465 argument so the function fits the prototype in the architecture
4466 vector.
4467 (mcore_pop_frame): Remove argument so the function fits the
4468 prototype. Use get_current_frame instead of the argument.
4469 (mcore_push_arguments): Change type of struct_return so the
4470 function can be used in the architecture vector.
4471 (mcore_store_struct_return): Add.
4472 (mcore_frame_init_saved_regs): Add.
4473 (mcore_gdbarch_init): Add function calls to replace the macros
4474 removed from tm-mcore.h
4475
36160dc4
AC
44762002-07-03 Andrew Cagney <ac131313@redhat.com>
4477
4478 * infcmd.c (print_return_value): Remove compatibility code calling
4479 deprecated_grub_regcache_for_registers.
4480
4481 * values.c: Include "regcache.h".
4482 (value_being_returned): Update. Use
4483 deprecated_grub_regcache_for_registers to extract the register
4484 buffer address.
4485 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4486 ``struct regcache''.
4487 * Makefile.in (values.o): Add dependency on $(regcache_h).
4488
4489 * inferior.h (run_stack_dummy): Change type of second parameter to
4490 a ``struct regcache''.
4491 * valops.c (hand_function_call): Change type of retbuf to ``struct
4492 regcache''. Allocate using regcache_xmalloc, clean using
4493 make_cleanup_regcache_xfree.
4494 * infcmd.c (run_stack_dummy): Update. Use
4495 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4496
4497 * regcache.c (do_regcache_xfree): New function.
4498 (make_cleanup_regcache_xfree): New function.
4499 * regcache.h (make_cleanup_regcache_xfree): Declare.
4500
e64d9b3d
MH
45012002-07-03 Martin M. Hunt <hunt@redhat.com>
4502
4dd79c29
MH
4503 * event-top.c (command_line_handler): Don't read past
4504 beginning of buffer.
e64d9b3d 4505
4dd79c29
MH
45062002-07-03 Martin M. Hunt <hunt@redhat.com>
4507
e64d9b3d
MH
4508 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4509 struct frame_id.
4510 (varobj_create): Store frame_id for root.
4511 (varobj_gen_name): Use xasprintf.
4512 (varobj_update): Save and restore frame using get_frame_id() and
4513 frame_find_by_id().
4514 (create_child): Use xasprintf.
4515 (new_root_variable): Initialize frame_id.
4516 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4517 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4518 to prevent memory leak.
4519
26e6c56a
AC
45202002-07-03 Andrew Cagney <ac131313@redhat.com>
4521
4522 * valops.c (hand_function_call): Move declaration of retbuf to
4523 start of function, allocate using malloc, add a cleanup but before
4524 the inf_status cleanup, cleanup the buffer. Rename local variable
4525 old_chain to inf_status_cleanup.
4526
f436dd25
MH
45272002-07-03 Martin M. Hunt <hunt@redhat.com>
4528
4529 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4530
4531 * cli/cli-decode.c (cmd_func_p): New function.
4532 (cmd_func): New function.
4533
4534 * command.h: Add cmd_func() and cmd_func_p().
4535
4cfe2084
GS
45362002-07-03 Grace Sainsbury <graces@redhat.com>
4537
4538 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4539 (REGISTER_SIZE): Remove.
4540 (MAX_REGISTER_RAW_SIZE): Remove.
4541 (REGISTER_VIRTUAL_TYPE): Remove.
4542 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4543 (REGISTER_NAME): Remove.
4544 (USE_GENERIC_DUMMY_FRAMES): Remove.
4545 (CALL_DUMMY): Remove.
4546 (CALL_DUMMY_START_OFFSET): Remove.
4547 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4548 (CALL_DUMMY_LOCATION): Remove.
4549 (FIX_CALL_DUMMY): Remove.
4550 (CALL_DUMMY_ADDRESS): Remove.
4551 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4552 (SAVE_DUMMY_FRAME_TOS): Remove.
4553 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4554 (mcore_register_virtual_type): New function.
4555 (mcore_register_byte): New function.
4556 (mcore_register_size): New function.
4557 (mcore_register_name): New function.
4558 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4559 macros removed from tm-mcore.h.
4560 (mcore_dump_tdep): Add.
4561 (_initialize_mcore_tdep): Add gdbarch_register call.
4562
4fd667e9
MK
45632002-07-03 Mark Kettenis <kettenis@gnu.org>
4564
4565 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4566 frameless_look_for_prologue, such that we actually call this
4567 function.
4568
42f99ac2
JB
45692002-07-02 Joel Brobecker <brobecker@gnat.com>
4570
4571 * frame.h (frame_address_in_block): New function.
4572
4573 * blockframe.c (frame_address_in_block): New function extracted
4574 from get_frame_block().
4575 (get_frame_block): Use frame_address_in_block().
4576 (block_innermost_frame): Use frame_address_in_block() to match
4577 the frame pc address against the block boundaries rather than
4578 the frame pc directly. This prevents a failure when a frame pc
4579 is actually a return-address pointing immediately after the end
4580 of the given block.
4581
103a1597 45822002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4583
4584 * MAINTAINERS: Add self under write after approval.
4585
45862002-07-02 Grace Sainsbury <graces@redhat.com>
4587
103a1597
GS
4588 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4589 used in architecture vector. The default is
4590 m68k_local_breakpoint_from_pc.
4591 (m68k_local_breakpoint_from_pc): Add.
4592 (enum): Add register numbers from tm-m68k.h.
4593 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4594 vector.
4595 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4596 GDB_MULTI_ARCH_PARTIAL.
4597 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4598 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4599 m68k-tdep.c.
4600 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4601 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4602 to enum in m68k-tdep.c
4603
7a5a0534
JB
46042002-07-02 Joel Brobecker <brobecker@gnat.com>
4605
4606 * solib-osf.c (open_map): Compute the list of shared libraries
4607 loaded by the inferior, rather than the list of libraries loaded
4608 by GDB itself. Otherwise, GDB ends up reading the symbols from
4609 the wrong shared libraries...
4610
6f558d74
MK
46112002-07-02 Mark Kettenis <kettenis@gnu.org>
4612
b7d15bf7
MK
4613 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4614 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4615 macros.
4616 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4617 Remove functions.
4618 (FRAMELESS_SIGNAL): Remove function.
4619 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4620 i386_linux_saved_pc_after_call): Removed.
4621 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4622 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4623 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4624
6bff26de
MK
4625 * i386-tdep.c (i386_frameless_signal_p): New function.
4626 (i386_frame_chain): Deal with frameless signals.
4627 (i386_sigtramp_saved_sp): New function.
4628 (i386_frame_saved_pc): Deal with frameless signals.
4629 (i386_saved_pc_after_call): Make sure the correct value is
4630 returned just after entry into a sigtramp.
4631 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4632 i386fbsd4_sc_sp_offset): New variables.
4633 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4634 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4635 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4636 similiar to what we already did for sc_pc_offset.
4637 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4638 tdep->sc_sp_offset.
4639
6f558d74
MK
4640 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4641
145564b7
ML
46422002-07-02 Michal Ludvig <mludvig@suse.cz>
4643
4644 * config/i386/tm-x86-64linux.h: New.
4645 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4646 definitions.
4647 * config/i386/nm-x86-64.h: Rename to ...
4648 * config/i386/nm-x86-64linux.h: ... this one.
4649 * config/i386/x86-64linux.mh: Reflect the above change.
4650
3a1e71e3
MK
46512002-07-01 Mark Kettenis <kettenis@gnu.org>
4652
21d0e8a4
MK
4653 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4654 with sigcontext_addr. Add sc_sp_offset.
4655 (i386bsd_sigtramp_saved_pc): Remove prototype.
4656 (i386bsd_sicontext_addr): Add prototype.
4657 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4658 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4659 (i386_svr4_sigtramp_saved_pc): Removed.
4660 (i386_svr4_sigcontext_addr): New function.
4661 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4662 Initialize tdep->sigcontext_addr instead. Initialize
4663 tdep->sc_pc_offset and tdep->sc_sp_offset.
4664 (i386_gdbarch_init): Likewise.
4665 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4666 any more.
4667 (i386bsd_sigtramp_saved_pc): Remove function.
4668 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4669 Initialize tdep->sigcontext_addr instead. Initialize
4670 tdep->sc_pc_offset.
4671 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4672 of tdep->sigtramp_saved_pc.
4673 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4674 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4675 instead.
4676
3a1e71e3
MK
4677 * i386-tdep.c (i386_frameless_function_invocation,
4678 i386_frame_num_args, i386_frame_init_saved_regs,
4679 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4680 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4681 i386_extract_return_value, i386_store_return_value,
4682 i386_extract_struct_value_address, i386_register_virtual_type,
4683 i386_register_convertible, i386_register_convert_to_virtual,
4684 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4685 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4686 static.
4687
52e9098c
MK
46882002-07-01 Mark Kettenis <kettenis@gnu.org>
4689
77b13a25
MK
4690 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4691
52e9098c
MK
4692 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4693 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4694 this macro. Include "value.h".
4695
1b372fff
AS
46962002-06-30 Aidan Skinner <aidan@velvet.net>
4697
4698 * ada-exp.tab.c: remove as it's a generated file
4699 * ada-lex.c: remove as it's a generated file
4700
9c5045b5
MK
47012002-06-30 Mark Kettenis <kettenis@gnu.org>
4702
4a93c5bb
MK
4703 * config/i386/tm-i386.h (struct frame_info, struct
4704 frame_saved_regs, struct value, struct type): Remove forward
4705 declarations.
4706
322d4fe0
MK
4707 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4708 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4709 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4710 (FILL_FPXREGSET): Define.
4711
fdd8263d
MK
4712 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4713
482e577b
MK
4714 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4715 i[3456]86-*-netbsd* case.
4716 * config/i386/tm-obsd.h: Removed.
4717 * config/i386/obsd.mt: Removed.
4718 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4719 core-aout.o.
4720 (MH_CFLAGS): Add -DYYDEBUG=0.
4721
6916549a
MK
4722 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4723 i386nbsd_sc_pc_offset on OpenBSD too.
4724
9c5045b5
MK
4725 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4726 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4727 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4728 define.
4729 * i386bsd-tdep.c: Include "arch-utils.h".
4730 (i386bsd_aout_in_solib_call_trampoline): New function.
4731 (i386bsd_init_abi): Set in_solib_call_trampoline to
4732 i386bsd_aout_in_solib_call_trampoline.
4733 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4734 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4735
aa84d1bb
AC
47362002-06-28 Andrew Cagney <ac131313@redhat.com>
4737
4738 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4739 (struct obstack, struct bcache): Add opaque declarations.
4740 * Makefile.in (macrotab_h): Update
4741
b4d83933
AC
47422002-06-28 Andrew Cagney <ac131313@redhat.com>
4743
4744 * blockframe.c (generic_find_dummy_frame): Change return type to
4745 ``struct regcache''.
4746 (struct dummy_frame): Replace field ``registers'' with regcache, a
4747 struct regcache object.
4748 (generic_find_dummy_frame): Update.
4749 (generic_push_dummy_frame): Update. Use regcache_xfree,
4750 regcache_xmalloc and regcache_cpy.
4751 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4752 regcache_xfree.
4753 (deprecated_generic_find_dummy_frame): Update.
4754 (generic_read_register_dummy): Update. Use
4755 regcache_read_as_address.
4756 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4757 (generic_get_saved_register): Update. Use regcache_read.
4758
08c0b5bc
AC
47592002-06-28 Andrew Cagney <ac131313@redhat.com>
4760
4761 * Makefile.in (objfiles_h): Add $(bcache_h).
4762 * objfiles.h: Include "bcache.h".
4763
4764 * Makefile.in (symtab_h): Remove $(bcache_h).
4765 * symtab.h: Do not include "bcache.h".
4766
1f89801a
AC
47672002-06-28 Andrew Cagney <ac131313@redhat.com>
4768
4769 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4770 generic_func_frame_chain_valid.
4771
b9644b58
DB
47722002-06-28 David O'Brien <obrien@FreeBSD.org>
4773
4774 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4775 * config/i386/tm-fbsd.h: Likewise.
4776
dd486634
AC
47772002-06-28 Andrew Cagney <ac131313@redhat.com>
4778
4779 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4780 generic_unwind_get_saved_register.
4781
0b434a00
AC
47822002-06-27 Andrew Cagney <ac131313@redhat.com>
4783
4784 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4785 * regcache.c (supply_register): Add missing argument to
4786 register_buffer call.
4787
f30e5a77
AC
47882002-06-27 Andrew Cagney <ac131313@redhat.com>
4789
4790 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4791 Solaris /bin/grep does not not like it. From Peter Schauer.
4792
9f064c95
TT
47932002-06-26 Tom Tromey <tromey@redhat.com>
4794
4795 * command.h (add_setshow_cmd): Declare.
4796 (add_setshow_cmd_full): Declare.
4797 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4798 returns void. Use add_setshow_cmd_full.
4799 (add_setshow_cmd_full): New function.
4800 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4801 (add_setshow_boolean_cmd): Likewise.
4802
099c7589
JT
48032002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4804
4805 * config/vax/tm-vax.h: Protect from multiple inclusion.
4806 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4807 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4808 * config/vax/tm-vaxbsd.h: ...here. New file.
4809 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4810
1d049c5e
JT
48112002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4812
4813 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4814 (BELIEVE_PCC_PROMOTION): Remove.
4815 (AP_REGNUM): Move to...
4816 * config/vax/nm-vax.h: ...here.
4817 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4818 (vax_breakpoint_from_pc): New function.
4819 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4820 and gdbarch_believe_pcc_promotion.
4821
4791e091
JT
48222002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4823
4824 * Makefile.in (vax_tdep_h): Define.
4825 (vax-tdep.o): Use $(vax_tdep_h).
4826 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4827 (vax_dump_tdep): New function.
4828 (_initialize_vax_tdep): Register vax_dump_tdep.
4829 * vax-tdep.h: Include osabi.h.
4830 (struct gdbarch_tdep): New.
4831
da130f98
AC
48322002-06-26 Andrew Cagney <cagney@redhat.com>
4833
4834 * frame.h (deprecated_generic_find_dummy_frame): Rename
4835 generic_find_dummy_frame.
4836 * blockframe.c (generic_find_dummy_frame): Make static.
4837 (deprecated_generic_find_dummy_frame): New function.
4838 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4839 generic_find_dummy_frame with deprecated_find_dummy_frame.
4840 (sh64_nofp_frame_init_saved_regs): Ditto.
4841 (sh_fp_frame_init_saved_regs): Ditto.
4842 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4843 (s390_frame_chain): Ditto.
4844 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4845
6300c360
GS
48462002-06-26 Grace Sainsbury <graces@redhat.com>
4847
4848 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4849 gdbarch vector are at the top.
4850 (NUM_REGS): Remove.
4851 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4852 (FRAME_ARGS_ADDRESS): Remove.
4853 (FRAME_LOCALS_ADDRESS): Remove.
4854 (FRAME_NUM_ARGS): Remove.
4855 (FRAME_ARGS_SKIP): Remove.
4856 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4857 (m68k_gdbarch_init): Add gdbarch initializations for macros
4858 undefined in tm-m68k.h
4859
1c617db8
GS
48602002-06-26 Grace Sainsbury <graces@redhat.com>
4861
4862 * monitor.h: Add the function regname to monitor_ops
4863 structure. This way NUM_REGS does not have to be a constant.
4864 * monitor.c (monitor_fetch_register): Added support for regname
4865 function. The function is called if the array regnames is NULL.
4866 (monitor_store_register): Same.
da130f98
AC
4867 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4868 regnames array.
1c617db8
GS
4869 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4870 cpu32bug_cmds.regname to point to new function.
4871 * abug-rom.c (abug_regname): Same as above.
4872 (init_abug_cmds): Same.
4873 * dbug-rom.c (dbug_regname): Same as above.
4874 (init_dbug_cmds): Same.
4875 * remote-est.c (est_regname): Same.
4876 (init_est_cmds): Same.
4877 * rom68k-rom.c (rom68k_regname): Same.
4878 (init_rom68k_cmds): Same.
4879
ea9365bb
TT
48802002-06-25 Tom Tromey <tromey@redhat.com>
4881
4882 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4883
72cec141
AC
48842002-06-25 Andrew Cagney <cagney@redhat.com>
4885
4886 * infrun.c (stop_registers): Change variable's type to ``struct
4887 regcache'''.
4888 (xmalloc_inferior_status): Delete function.
4889 (free_inferior_status): Delete function.
4890 (normal_stop): Use regcache_cpy.
4891 (struct inferior_status): Change type of fields ``stop_registers''
4892 and ``registers'' to ``struct regcache''.
4893 (write_inferior_status_register): Use regcache_write.
4894 (save_inferior_status): Instead of calling
4895 xmalloc_inferior_status, allocate the inf_status buffer directly.
4896 Use regcache_dup_no_passthrough and regcache_dup to save the
4897 buffers.
4898 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4899 Replace the stop_registers regcache instead of overriding it. Use
4900 regcache_xfree. Instead of calling free_inferior_status, xfree
4901 the buffer directly.
4902 (discard_inferior_status): Use regcache_xfree. Instead of calling
4903 free_inferior_status, xfree the buffer directly.
4904 (build_infrun): Use regcache_xmalloc.
4905 (_initialize_infrun): Delete redundant call to build_infrun.
4906
4907 * Makefile.in (infcmd.o): Add $(regcache_h).
4908
4909 * infcmd.c: Include "regcache.h".
4910 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4911 obtain the address of `stop_registers' register buffer.
4912 (print_return_value): Ditto.
4913
4914 * inferior.h (struct regcache): Add opaque declaration.
4915 (stop_registers): Change variable's declared type to ``struct
4916 regcache''.
4917
defc6f8c
TT
49182002-06-24 Tom Tromey <tromey@redhat.com>
4919
c0e624e7
TT
4920 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4921 * target.c (initialize_targets): Fixed typo in
4922 trust-readonly-sections `show' documentation.
4923
defc6f8c
TT
4924 * main.c: Marked all strings with _().
4925
2b236d82
DH
49262002-06-24 Don Howard <dhoward@redhat.com>
4927
4928 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4929 that means max CORE_ADDR+1.
4930 (lookup_mem_region): Ditto.
4931 (mem_info_command): Ditto.
4932
942dc0e9
GS
49332002-06-24 Grace Sainsbury <graces@redhat.com>
4934
4935 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4936 (REGISTER_BYTES_OK): Remove.
4937 (REGISTER_BYTES): Remove.
4938 (STORE_STRUCT_RETURN): Remove.
4939 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4940 (STORE_RETURN_VALUE): Remove.
4941 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4942 (FRAME_CHAIN): Remove.
4943 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4944 (FRAME_SAVED_PC): Remove.
4945 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4946 (m68k_store_struct_return): Add.
4947 (m68k_deprecated_extract_return_value): Add.
4948 (m68k_deprecated_extract_struct_value_address): Add.
4949 (m68k_store_return_value): Add.
4950 (m68k_frame_chain): Add.
4951 (m68k_frameless_function_invocation): Add.
4952 (m68k_frame_saved_pc): Add.
4953 (m68k_gdbarch_init): added set_gdbarch calls for new
4954 functions and deleted macros.
4955
03c30d4d
TT
49562002-06-23 Tom Tromey <tromey@redhat.com>
4957
4958 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4959 (ALLDEPFILES): Likewise.
4960 (udiheaders): Removed.
4961 (udip2soc.o): Likewise.
4962 (udi2go32.o): Likewise.
4963 (udr.o): Likewise.
4964 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4965
37e71372
AC
49662002-06-22 Andrew Cagney <ac131313@redhat.com>
4967
06a6ac57
AC
4968 * infrun.c (_initialize_infrun): Delete unnecessary call to
4969 build_infrun.
4970
37e71372
AC
4971 * regcache.h: Update comments describing the regcache_cpy family
4972 of functions.
4973 (regcache_save, regcache_restore): Delete declaration.
4974 (regcache_save_no_passthrough): Delete declaration.
4975 (regcache_restore_no_passthrough): Delete declaration.
4976 * regcache.c (regcache_save): Delete function.
4977 (regcache_save_no_passthrough): Delete function.
4978 (regcache_restore): Delete function.
4979 (regcache_restore_no_passthrough): Delete function.
4980
78f6d055
AC
49812002-06-21 Andrew Cagney <ac131313@redhat.com>
4982
4983 * config/m68k/tm-m68k.h: Fix typo.
4984 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4985 (m68k_frame_init_saved_regs): Declare.
4986
78b119cb
JB
49872002-06-21 Jim Blandy <jimb@redhat.com>
4988
4989 Remove some vestiges of Harris 88k support.
4990 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4991 register numbering quirk.
4992 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4993 odd symbols occurring in Harris 88k ELF targets.
4994
0fbb3da7
TT
49952002-06-21 Tom Tromey <tromey@redhat.com>
4996
4997 * gdb_locale.h: New file.
4998 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4999 (defs_h): Added gdb_locale.h.
5000 * configure, config.in: Rebuilt.
5001 * configure.in (PACKAGE): Define.
5002 * defs.h: Include gdb_locale.h.
5003 * main.c (captured_main): Call setlocale, bindtextdomain,
5004 textdomain.
5005
456f8b9d
DB
50062002-06-21 Dave Brolley <brolley@redhat.com>
5007
5008 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5009 * config/frv/frv.mt: New file.
5010 * config/frv/tm-frv.h: New file.
5011 * configure.tgt: Support frv-*-*.
5012 * Makefile.in (frv-tdep.o): New target.
5013 * frv-tdep.c: New file.
5014 * NEWS: Mention frv.
5015
cdd463f9
DB
50162002-06-21 Dave Brolley <brolley@redhat.com>
5017
5018 * MAINTAINERS: Add self to "Write After Approval" list.
5019
5d3ed2e3
GS
50202002-06-21 Grace Sainsbury <graces@redhat.com>
5021
5022 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5023 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5024 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5025 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5026 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5027
5028 * m68k-tdep.c: Include arch-utils.h
5029 (m68k_register_raw_size): Add.
5030 (m68k_register_virtual_size): Add.
5031 (m68k_register_virtual_type): Add.
5032 (m68k_register_name): Add.
5033 (m68k_stack_align): Add.
5034 (m68k_register_byte): Add.
5035 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5036 tm-m68k.h.
5037
7f8e7424
GS
50382002-06-21 Grace Sainsbury <graces@redhat.com>
5039
a2c6a6d5 5040 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
5041 m68k_find_saved_regs.
5042 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 5043 references to it with frame->saved_regs.
7f8e7424
GS
5044 (m68k_gdbarch_init): Added function calls to initialize the
5045 gdbarch structure.
a2c6a6d5
GS
5046 (m68k_fix_call_dummy): Add.
5047 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5048 (CALL_DUMMY): Remove.
5049 (CALL_DUMMY_LENGTH): Remove.
5050 (CALL_DUMMY_START_OFFSET): Remove.
5051 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5052 (FIX_CALL_DUMMY): Remove.
5053 (PUSH_DUMMY_FRAME): Remove.
5054 (POP_FRAME): Remove.
7f8e7424 5055
f461f5cf
PM
50562002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5057
5058 * parse.c (parse_fprintf): New function used to avoid calls to
5059 fprintf in bison parser generated debug code.
5060 * parser-defs.h: Declaration of new parse_fprintf function.
5061 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5062 Set YYDEBUG to 1 by default.
5063 Set YYFPRINTF as parse_fprintf.
5064
7f0c12ed
ML
50652002-06-21 Michal Ludvig <mludvig@suse.cz>
5066
5067 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5068 encoding anymore.
5069 (pointer_encoding, enum ptr_encoding): New.
5070 (execute_cfa_program): Take care about pointer encoding.
5071 (dwarf2_build_frame_info): Only call parse_frame_info for
5072 .debug_frame and .eh_frame.
5073 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5074 fixed augmentation handling, added relative addressing,
5075 ignore duplicate FDEs. Added comments.
19d833a2 5076 * dwarf2cfi.c: Reindented.
7f0c12ed 5077
87c4a039
EZ
50782002-06-20 Elena Zannoni <ezannoni@redhat.com>
5079
5080 * event-top.c (command_handler): Don't use space_at_cmd_start
5081 unless there is sbrk() on the host. Assign time and space data
5082 to union fields of the appropriate length.
5083
1cf877ad
ML
50842002-06-20 Michal Ludvig <mludvig@suse.cz>
5085
5086 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5087 x86_64_register_name. Return type changed to 'const char *'.
5088 (x86_64_register_name2nr): Rename to x86_64_register_number.
5089 (x86_64_gdbarch_init): Update to reflect the change.
5090 * x86-64-tdep.h: Ditto.
5091 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5092 (supply_fpregset): Ditto.
5093
3fadccb3
AC
50942002-06-19 Andrew Cagney <cagney@redhat.com>
5095
5096 * regcache.h: Update copyright.
5097 (struct regcache, struct gdbarch): Add opaque declarations.
5098 (current_regcache): Declare global variable.
5099 (regcache_read, regcache_write): Add gdbarch parameter.
5100 (regcache_save, regcache_save_no_passthrough)
5101 (regcache_restore, regcache_restore_no_passthrough)
5102 (regcache_dup, regcache_dup_no_passthrough)
5103 (regcache_cpy, regcache_cpy_no_passthrough)
5104 (deprecated_grub_regcache_for_registers)
5105 (deprecated_grub_regcache_for_register_valid)
5106 (regcache_valid_p): Add function declarations.
5107
5108 * regcache.c: Update copyright.
5109 (regcache_descr_handle): New global variable.
5110 (struct regcache_descr): Define.
5111 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5112 (regcache_descr, xfree_regcache_descr): New functions.
5113 (struct regcache): Define.
5114 (regcache_xmalloc, regcache_xfree): New functions.
5115 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5116 (regcache_dup, regcache_dup_no_passthrough): New functions.
5117 (regcache_valid_p, regcache_read_as_address): New functions.
5118 (deprecated_grub_regcache_for_registers): New function.
5119 (deprecated_grub_regcache_for_register_valid): New function.
5120 (current_regcache): New global variable.
5121 (register_buffer): Add regcache parameter. Update calls.
5122 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5123 (read_register_gen, write_register_gen): Update register_buffer
5124 call. Test for legacy_p instead of gdbarch_register_read_p or
5125 gdbarch_register_write_p.
5126 (regcache_collect): Update register_buffer call.
5127 (build_regcache): Rewrite. Use deprecated grub functions.
5128 (regcache_save, regcache_save_no_passthrough): New functions.
5129 (regcache_restore, regcache_restore_no_passthrough): New
5130 functions.
5131 (_initialize_regcache): Create the regcache_data_handle. Swap
5132 current_regcache global variable.
5133
5134 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5135 parameter to regcache_read and regcache_write calls.
5136 (sh4_register_read): Ditto.
5137 (sh64_pseudo_register_read): Ditto.
5138 (sh64_register_read): Ditto.
5139 (sh_pseudo_register_write): Ditto.
5140 (sh4_register_write): Ditto.
5141 (sh64_pseudo_register_write): Ditto.
5142 (sh64_register_write): Ditto.
5143
5144 * defs.h (XCALLOC): Define.
5145
152d9db6
GS
51462002-06-19 Grace Sainsbury <graces@redhat.com>
5147
5148 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5149 * m68k-tdep.c (m68k_gdbarch_init): Added.
5150 (m68k_dump_tdep): Added.
5151
170911c7
DJ
51522002-06-19 Daniel Jacobowitz <drow@mvista.com>
5153
5154 * ada-lang.c (fill_in_ada_prototype): Update comment.
5155
2e4ebe70
DJ
51562002-06-19 Daniel Jacobowitz <drow@mvista.com>
5157
5158 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5159 MIPS_ABI_LAST.
5160 (mips_abi_string, mips_abi_strings): New.
5161 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5162 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5163 tdep->mips_abi_string. Honor mips_abi_string. Default to
5164 O32 if no ABI is found.
5165 (mips_dump_tdep): Use mips_abi_strings.
5166 (mips_abi_update): New function.
5167 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5168 ``set mips abi'' and ``show mips abi''. Check the size of
5169 mips_abi_strings.
5170
16775908
AC
51712002-06-19 Andrew Cagney <cagney@redhat.com>
5172
5173 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5174 constant.
5175
5051bfa4 51762002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 5177
5051bfa4
JB
5178 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5179 current frame using only the first stack size adjustment. All
5180 subsequent size adjustments are not considered to be part of
5181 the "static" part of the current frame.
5182 Compute the address of the saved registers relative to the
5183 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5184 in use in this frame.
5185
56468235
DH
51862002-06-18 Don Howard <dhoward@redhat.com>
5187
5188 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5189 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5190 suggesting this solution.
5191
0b624158
AC
51922002-06-18 Andrew Cagney <ac131313@redhat.com>
5193
5194 * config/romp/xm-rtbsd.h: Delete file.
5195 * config/romp/rtbsd.mh: Delete file.
5196
221ea385
KS
51972002-06-18 Keith Seitz <keiths@redhat.com>
5198
5199 * breakpoint.c (condition_command): Post breakpoint_modify
5200 when a condition is added to an existing breakpoint.
5201 (commands_command): Likewise for commands.
5202 (set_ignore_count): Likewise for ignore counts.
5203 If no tty, do not simply return, still need to send event
5204 notification.
5205 (ignore_command): Only print a newline if the command came
5206 from a tty.
5207 Don't call breakpoints_changed, since this is now properly
5208 handled by set_ignore_count.
5209
5402eed1
AC
52102002-06-18 Andrew Cagney <cagney@redhat.com>
5211
5212 * MAINTAINERS: Note that cris-elf target can be compiled with
5213 -Werror.
5214 * cris-tdep.c (cris_register_name): Make return type constant.
5215 (cris_breakpoint_from_pc): Ditto.
5216
cc22880b
ML
52172002-06-18 Michal Ludvig <mludvig@suse.cz>
5218
5219 * frame.h (struct frame_info): Change type of context to
5220 'struct context'.
5221
fa88f677
AC
52222002-06-17 Andrew Cagney <cagney@redhat.com>
5223
5224 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5225 pointer.
5226 * gdbarch.h, gdbarch.c: Regenerate.
5227 * config/mips/tm-mips.h (mips_register_name): Update.
5228 * i386-tdep.h (i386_register_name): Update.
5229 * mips-tdep.c (mips_register_name): Update
5230 * alpha-tdep.c (alpha_register_name): Update.
5231 * arch-utils.c (legacy_register_name): Update.
5232 * arch-utils.h (legacy_register_name): Update.
5233 * avr-tdep.c (avr_register_name): Update.
5234 * ia64-tdep.c (ia64_register_name): Update.
5235 * i386-tdep.c (i386_register_name): Update.
5236 * sparc-tdep.c (sparc32_register_name): Update.
5237 (sparc64_register_name): Update.
5238 (sparclite_register_name): Update.
5239 (sparclet_register_name): Update.
5240 * sh-tdep.c (sh_generic_register_name): Update.
5241 (sh_sh_register_name): Update.
5242 (sh_sh3_register_name): Update.
5243 (sh_sh3e_register_name): Update.
5244 (sh_sh_dsp_register_name): Update.
5245 (sh_sh3_dsp_register_name): Update.
5246 (sh_sh4_register_name): Update.
5247 (sh_sh64_register_name): Update.
5248 * s390-tdep.c (s390_register_name): Update.
5249 * rs6000-tdep.c (rs6000_register_name): Update.
5250 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5251 (ns32k_register_name_32382): Update.
5252 * d10v-tdep.c (d10v_ts2_register_name): Update.
5253 (d10v_ts3_register_name): Update.
5254 * xstormy16-tdep.c (xstormy16_register_name): Update.
5255 * vax-tdep.c (vax_register_name): Update.
5256 * v850-tdep.c (v850_register_name): Update.
5257 * m68hc11-tdep.c (m68hc11_register_name): Update.
5258 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5259 (am33_register_name): Update.
5260
ea1e7ef6
GS
52612002-06-17 Grace Sainsbury <graces@redhat.com>
5262
5263 * m68k-tdep.c: Reindented.
5264
9b02dd1b
AC
52652002-06-17 Andrew Cagney <ac131313@redhat.com>
5266
5267 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5268 list of predefined types.
5269
8758dec1
MK
52702002-06-16 Mark Kettenis <kettenis@gnu.org>
5271
b6197528
MK
5272 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5273 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5274 REGISTER_CONVERT_TO_RAW): Remove defines.
5275 (i386_register_virtual_type, i386_register_convertible,
5276 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5277 Remove prototypes.
5278 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5279 macros mentioned above.
5280
82b47e62
MK
5281 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5282 (i386lynx_saved_pc_after_call): Remove prototype.
5283 * i386ly-tdep.c: Include "i386-tdep.h".
5284 (i386lynx_saved_pc_after_call): Make static. Use
5285 read_memory_nobpt instead of read_memory. Use
5286 read_memory_unsigned_integer instead of read_memory_integer.
5287 (i386lynx_init_abi): New function.
5288 (i386lynx_coff_osabi_sniffer): New function.
5289 (_initialize_i386bsd_tdep): New function.
5290
8758dec1
MK
5291 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5292 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5293 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5294 (i386_fix_call_dummy): Remove prototype.
5295 * i386-tdep.c (i386_call_dummy_words): New variable.
5296 (i386_gdbarch_init): Adjust for removal of the
5297 macros mentioned above.
5298
e9e68a56
AC
52992002-06-15 Andrew Cagney <ac131313@redhat.com>
5300
5301 * command.h (add_setshow_auto_boolean_cmd): Replace
5302 add_set_auto_boolean_cmd.
5303 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5304 add_set_auto_boolean_cmd.
5305 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5306 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5307 mask-address'' command.
5308 (show_mask_address): Add cmd parameter.
5309 * remote.c (add_packet_config_cmd): Update. Change type of
5310 set_func and show_func to cmd_sfunc_ftype.
5311 (_initialize_remote): Update `set remote Z-packet'
5312 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5313 (show_remote_protocol_e_packet_cmd): Ditto.
5314 (show_remote_protocol_E_packet_cmd): Ditto.
5315 (show_remote_protocol_P_packet_cmd): Ditto.
5316 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5317 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5318 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5319 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5320 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5321 (show_remote_protocol_Z_packet_cmd): Ditto.
5322 (show_remote_protocol_binary_download_cmd): Ditto.
5323 (show_remote_cmd): Pass NULL to all of above.
5324
fc08ec52
MK
53252002-06-15 Mark Kettenis <kettenis@gnu.org>
5326
5327 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5328 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5329 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5330 POP_FRAME): Remove defines.
5331 (i386_push_arguments, i386_store_struct_return,
5332 i386_extract_return_value, i386_store_return_value,
5333 i386_extract_struct_value_address, i386_push_dummy_frame,
5334 i386_pop_frame): Renove prototypes.
5335 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5336 macros mentioned above.
5337
e707bbc2
AC
53382002-06-15 Andrew Cagney <ac131313@redhat.com>
5339
5340 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5341 add_set_boolean_cmd.
5342 (add_setshow_cmd): New function.
5343 * command.h (add_setshow_boolean_cmd): Replace
5344 add_set_boolean_cmd.
5345 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5346 and ``set rdiromatzero''.
5347 * maint.c (_initialize_maint_cmds): Update commented out code.
5348 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5349 * target.c (initialize_targets): Update `set
5350 trust-readonly-sections'.
5351 * remote.c (_initialize_remote): Update `set remotebreak'.
5352
42fdc8df
MK
53532002-06-15 Mark Kettenis <kettenis@gnu.org>
5354
93924b6b
MK
5355 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5356 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5357 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5358 fit into multi-arch framework.
5359 (i386_breakpoint_from_pc): New function.
5360 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5361 above.
5362
42fdc8df
MK
5363 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5364 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5365 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5366 (i386_frameless_function_invocation, i386_frame_num_args,
5367 i386_frame_init_saved_regs): Remove prototypes.
5368 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5369 macros mentioned above.
5370
9773a94b
AC
53712002-06-15 Andrew Cagney <ac131313@redhat.com>
5372
5373 * cli/cli-decode.c (set_cmd_cfunc): Update.
5374 (set_cmd_sfunc): Update.
5375 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5376 (set_cmd_sfunc, set_cmd_cfunc): Update.
5377 * cli/cli-decode.h: Update.
5378
6e157172
MK
53792002-06-15 Mark Kettenis <kettenis@gnu.org>
5380
5381 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5382 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5383
7f19b9a2
AC
53842002-06-15 Andrew Cagney <ac131313@redhat.com>
5385
5386 * defs.h (auto_boolean): Declare enum.
5387 * command.h (cmd_auto_boolean): Delete enum.
5388 * mips-tdep.c (mask_address_var): Update.
5389 (mips_mask_address_p): Update.
5390 (show_mask_address): Update.
5391 * remote.c (struct packet_config): Update.
5392 (update_packet_config): Update.
5393 (show_packet_config_cmd): Update.
5394 (packet_ok): Update.
5395 (add_packet_config_cmd): Update.
5396 (_initialize_remote):
5397 * command.h: Update.
5398 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5399 (do_setshow_command): Update.
5400 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5401 * cli/cli-decode.h: Update.
5402
1cf88de5
MK
54032002-06-15 Mark Kettenis <kettenis@gnu.org>
5404
22ba8cf2
MK
5405 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5406 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5407 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5408 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5409 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5410 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5411
762c5349
MK
5412 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5413 list of DJGPP COFF targets.
5414
091198bb
MK
5415 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5416 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5417 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5418 (FP0_REGNUM): Remove define.
5419 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5420 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5421 (i386_register_virtual_size): Remove protoype.
5422 * i386-tdep.c (i386_register_virtual_size): Removed.
5423 (i386_extract_return_value, i386_store_return_value): Use
5424 FP0_REGNUM instead of NUM_FREGS to determine whether the
5425 floating-point registers are available.
5426 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5427 Adjust for removal of macros mentioned above.
5428
54292002-06-15 Mark Kettenis <kettenis@gnu.org>
5430
fcc9bf01
MK
5431 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5432 comments.
5433 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5434 Remove prototypes.
5435 (supply_gregset, fill_gregset): Remove use of register keyword and
5436 remove declaration for regmap. Use I386_NUM_GREGS instead of
5437 NUM_REGS and NUM_FREGS.
5438 (FPREGSET_FSAVE_OFFSET): Remove.
5439 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5440 NUM_FREGS to determine whether the floating-point registers are
5441 available.
5442
65e78234
MK
5443 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5444 gnu_store_registers): Replace usage of NUM_GREGS with
5445 I386_NUM_GREGS.
5446
98df6387
MK
5447 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5448 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5449 usage of NUM_GREGS with I386_NUM_GREGS.
5450
099a9414
MK
5451 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5452
57976e88
MK
5453 * i386bsd-nat.c: Include "i386-tdep.h".
5454 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5455 I386_NUM_GREGS.
5456
b335f4a6
MK
5457 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5458 and associated comment. They no longer make any sense, since we
5459 don't use this file anymore on Linux.
5460
1cf88de5
MK
5461 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5462 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5463 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5464 elements in these arrays.
5465 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5466 MAX_NUM_REGS.
5467
daa66587
MK
54682002-06-15 Mark Kettenis <kettenis@gnu.org>
5469
5470 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5471 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5472
26e9b323
AC
54732002-06-14 Andrew Cagney <cagney@redhat.com>
5474
5475 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5476 EXTRACT_RETURN_VALUE.
5477 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5478 EXTRACT_STRUCT_VALUE_ADDRESS.
5479 * gdbarch.h, gdbarch.c: Regenerate.
5480
5481 * values.c (value_being_returned): Handle
5482 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5483 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5484
5485 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5486 * arm-tdep.c (arm_gdbarch_init): Update.
5487 * avr-tdep.c (avr_gdbarch_init): Update.
5488 * cris-tdep.c (cris_gdbarch_init): Update.
5489 * d10v-tdep.c (d10v_gdbarch_init): Update.
5490 * ia64-tdep.c (ia64_gdbarch_init): Update.
5491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5492 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5493 * s390-tdep.c (s390_gdbarch_init): Update.
5494 * sh-tdep.c (sh_gdbarch_init): Update.
5495 * s390-tdep.c (s390_gdbarch_init): Update.
5496 * sparc-tdep.c (sparc_gdbarch_init): Update.
5497 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5498 * v850-tdep.c (v850_gdbarch_init): Update.
5499 * vax-tdep.c (vax_gdbarch_init): Update.
5500 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5502
5503 * config/arc/tm-arc.h: Update.
5504 * config/d30v/tm-d30v.h: Update.
5505 * config/fr30/tm-fr30.h: Update.
5506 * config/h8300/tm-h8300.h: Update.
5507 * config/h8500/tm-h8500.h: Update.
5508 * config/i386/tm-i386.h: Update.
5509 * config/i386/tm-ptx.h: Update.
5510 * config/i386/tm-symmetry.h: Update.
5511 * config/i960/tm-i960.h: Update.
5512 * config/m32r/tm-m32r.h: Update.
5513 * config/m68k/tm-delta68.h: Update.
5514 * config/m68k/tm-linux.h: Update.
5515 * config/m68k/tm-m68k.h: Update.
5516 * config/m88k/tm-m88k.h: Update.
5517 * config/mcore/tm-mcore.h: Update.
5518 * config/mips/tm-mips.h: Update.
5519 * config/mn10200/tm-mn10200.h: Update.
5520 * config/pa/tm-hppa.h: Update.
5521 * config/pa/tm-hppa64.h: Update.
5522 * config/sparc/tm-sp64.h: Update.
5523 * config/sparc/tm-sparc.h: Update.
5524 * config/sparc/tm-sparclet.h: Update.
5525 * config/z8k/tm-z8k.h: Update.
5526
5179e78f
AC
55272002-06-14 Andrew Cagney <cagney@redhat.com>
5528
5529 * Makefile.in (i386_linux_tdep_h): Define.
5530 (i386_tdep_h, i387_tdep_h): Define.
5531 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5532 $(i386_tdep_h) and $(i387_tdep_h).
5533 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5534
8201327c
MK
55352002-06-14 Mark Kettenis <kettenis@gnu.org>
5536
edf393ac
MK
5537 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5538 Already covered by the default.
5539
896fb97d
MK
5540 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5541 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5542 (i386_gdbarch_init): Initialize long_double_format and long_double
5543 bit.
5544
8201327c
MK
5545 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5546 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5547 Move these to ...
5548 * config/i386/i386sol2.mh: ... here.
5549 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5550 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5551 (SIGCONTEXT_PC_OFFSET): Remove define.
5552 (IN_SIGTRAMP): Remove define.
5553 * i386-sol2-tdep.c: New file.
5554
5555 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5556 * config/i386/tm-i386nw.h: Removed.
5557
5558 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5559 USE_STRUCT_CONVENTION): Remove defines.
5560 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5561 (get_longjmp_target): Remove prototype.
5562 (IN_SIGTRAMP): Remove define.
5563 (i386bsd_in_sigtramp): Remove prototype.
5564 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5565 function. Update comment accordingly
5566 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5567 (FRAME_SAVED_PC): Remove define.
5568 (i386bsd_frame_saved_pc): Remove prototype.
5569 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5570 GET_LONGJMP_TARGET): Remove defines.
5571 (get_longjmp_target): Remove prototype.
5572 (IN_SIGTRAMP): Remove define.
5573 (i386bsd_in_sigtramp): Remove prototype.
5574 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5575 function. Update comment accordingly
5576 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5577 (FRAME_SAVED_PC): Remove define.
5578 (i386bsd_frame_saved_pc): Remove prototype.
5579 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5580 Remove prototype.
5581 (USE_STRUCT_CONVENTION): Remove prototype.
5582 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5583 declaration.
5584 (_initialize_i386bsd_nat): Revise logic to determine some
5585 constants at compile time when compiling a native GDB. Warn if
5586 things don't match up with what we expect.
5587 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5588 Remove variables.
5589 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5590 to use date stored in `struct gdbarch_tdep'.
5591 (i386bsd_sigcontext_offset): Remove varaible.
5592 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5593 stored in `struct gdbarch_tdep'.
5594 (i386bsd_frame_saved_pc): Make static.
5595 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5596 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5597 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5598 i386fbsd4_sc_pc_offset): New variables.
5599 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5600 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5601 functions.
5602 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5603 functions.
5604 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5605 Modify the value of i386fbsd_sigtramp_start and
5606 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5607 i386fbsd_sigtramp_end.
5608 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5609 function.
5610
5611 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5612 define to i386-linux-tdep.h.
5613 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5614 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5615 defines.
5616 (i386_linux_register_name, i386_linux_register_byte,
5617 i386_linux_register_raw_size): Remove prototypes.
5618 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5619 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5620 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5621 TARGET_WRITE_PC): Remove defines.
5622 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5623 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5624 i386_linux_write_pc): Remove prototypes.
5625 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5626 (get_longjmp_target): Remove prototype.
5627 * i386-linux-tdep.h: New file.
5628 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5629 * i386-linux-tdep.c: Include "i386-tdep.h" and
5630 "i386-linux-tdep.h".
5631 (i386_linux_register_name, i386_linux_register_byte,
5632 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5633 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5634 Make static.
5635 (i386_linux_init_abi): New function.
5636 (_initialize_i386_linux_tdep): New function.
5637
5638 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5639 (i386_saved_pc_after_call): Remove prototype.
5640 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5641 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5642 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5643 (i386_register_name, i386_stab_reg_to_regnum,
5644 i386_dwarf_reg_to_regnum): Remove prototypes.
5645 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5646 SIZEOF_SSE_REGS): Remove defines.
5647 (REGISTER_BYTES): Remove define.
5648 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5649 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5650 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5651 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5652 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5653 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5654 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5655 (get_longjmp_target): Remove prototype.
5656 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5657 (sigtramp_saved_pc): Remove define.
5658 (i386v4_sigtramp_saved_pc): Remove prototype.
5659 * config/i386/tm-go32.h (FRAME_CHAIN,
5660 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5661 (i386go32_frame_saved_pc): Remove prototype.
5662 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5663 (get_longjmp_target): Remove prototype.
5664 * i386-tdep.h: Include "osabi.h".
5665 (enum i386_abi): Removed.
5666 (enum struct_return): New enum.
5667 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5668 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5669 sc_pc_offset members.
5670 (i386_gdbarch_register_os_abi): Remove prototype.
5671 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5672 I386_SSE_NUM_REGS): New defines.
5673 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5674 I386_SSE_SIZEOF_REGS): New defines.
5675 (i386_register_name, i386_register_byte, i386_register_raw_size):
5676 New prototypes.
5677 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5678 (i386bsd_sigtramp_saved_pc): New prototype.
5679 * i386-tdep.c: Don't include "elf-bfd.h".
5680 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5681 i386_frame_chain, i386_saved_pc_after_call): Make static.
5682 (i386_frame_saved_pc): Rewrite to call architecture dependent
5683 function to deal with signal handlers. Make static.
5684 (i386go32_frame_saved_pc): Removed.
5685 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5686 Removed.
5687 (i386_get_longjmp_target): New function.
5688 (default_struct_convention, pcc_struct_convention,
5689 reg_struct_convention, valid_conventions, struct_convention): New
5690 variables.
5691 (i386_use_struct_convention): New function.
5692 (i386v4_sigtramp_saved_pc): Renamed to
5693 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5694 (i386_pc_in_sigtramp): New function.
5695 (i386_abi_names): Removed.
5696 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5697 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5698 Removed.
5699 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5700 i386_gdbarch_register_os_abi): Removed.
5701 (struct i386_abi_handler): Removed.
5702 (i386_abi_handler_list): Removed.
5703 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5704 functions.
5705 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5706 i386_nw_init_abi): New functions.
5707 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5708 Use set_gdbarch_xxx() calls instead of relying on macros for a
5709 number of calls.
5710 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5711 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5712 Register the various architecture variants defined in this file.
5713
ad2f7632
DJ
57142002-06-14 Daniel Jacobowitz <drow@mvista.com>
5715
5716 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5717 (struct main_type): Remove arg_types member. Update comments for
5718 struct field.
5719 (TYPE_ARG_TYPES): Remove.
5720 (TYPE_FN_FIELD_ARGS): Update.
5721 (smash_to_method_type): Update prototype.
5722
5723 * c-typeprint.c (cp_type_print_method_args): Take method type
5724 instead of argument list. Use new argument layout. Simplify.
5725 (c_type_print_args): Use new argument layout. Simplify.
5726 (c_type_print_base): Update call to cp_type_print_method_args.
5727 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5728 argument; use die->type instead. Update call to
5729 smash_to_method_type.
5730 (read_structure_scope): Update call to dwarf2_add_member_fn.
5731 * gdbtypes.c (allocate_stub_method): Update comment.
5732 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5733 Use new argument layout.
5734 (check_stub_method): Use new argument layout. Don't count
5735 void as an argument.
5736 (print_arg_types): Update comments. Use new argument layout.
5737 (recursive_dump_type): Don't print arg_types member.
5738 * hpread.c (hpread_read_struct_type): Use new argument layout.
5739 (fixup_class_method_type): Likewise.
5740 (hpread_type_lookup): Likewise.
5741 * stabsread.c (read_type): Update calls to read_args and
5742 smash_to_method_type.
5743 (read_args): Use new argument layout. Simplify.
5744 * valops.c (typecmp): Use new argument layout. Update parameters
5745 and comments. Simplify.
5746 (hand_function_call): Use new argument layout.
5747 (search_struct_method): Update call to typecmp.
5748 (find_overload_match): Use new argument layout.
5749
6da02953
DJ
57502002-06-13 Daniel Jacobowitz <drow@mvista.com>
5751
5752 * NEWS: Mention multithreaded debug support for gdbserver.
5753
519b2366
DJ
57542002-06-13 Daniel Jacobowitz <drow@mvista.com>
5755
5756 * MAINTAINERS: Mention NEWS.
5757
6c0d6680
DJ
57582002-06-13 Daniel Jacobowitz <drow@mvista.com>
5759
5760 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5761 (struct mips_objfile_private, compare_pdr_entries): New.
5762 (non_heuristic_proc_desc): Read the ".pdr" section if it
5763 is present.
5764
6529d2dd
AC
57652002-06-12 Andrew Cagney <ac131313@redhat.com>
5766
5767 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5768 (arm_debug): New static variable.
5769 (_initialize_arm_tdep): Add ``set debug arm'' command.
5770
26216b98
AC
57712002-06-12 Andrew Cagney <ac131313@redhat.com>
5772
5773 * Makefile.in (sim_arm_h): Define.
5774 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5775 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5776 (arm_register_sim_regno): New function, map an internal REGNUM
5777 onto a simulator register number.
5778 (arm_gdbarch_init): Set register_sim_regno.
5779
814b3ba0
AH
57802002-06-09 Aldy Hernandez <aldyh@redhat.com>
5781
5782 * MAINTAINERS: Add self.
5783
475b0867
JB
57842002-06-11 Jim Blandy <jimb@redhat.com>
5785
919d772c
JB
5786 * source.c (source_info): Mention whether the symtab has
5787 information about preprocessor macros.
5788
475b0867
JB
5789 Call the command `info macro', not `show macro'.
5790 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5791 Fix error message.
5792 (_initialize_macrocmd): Register `info_macro_command' in
5793 `infolist', not `showlist'.
5794
9e364162
DJ
57952002-06-11 Daniel Jacobowitz <drow@mvista.com>
5796
5797 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5798 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5799 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5800 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5801 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5802 unconditionally.
5803 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5804 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5805 (_initialize_mips_tdep): Remove dead code.
5806 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5807 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5808 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5809 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5810 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5811 MIPS_LAST_FP_ARG_REGNUM): Remove.
5812
23aa4c72
ML
58132002-06-11 Michal Ludvig <mludvig@suse.cz>
5814
5815 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5816 (unwind_tmp_obstack_free, parse_frame_info)
5817 (update_context, cfi_read_fp, cfi_write_fp)
5818 (cfi_frame_chain, cfi_init_extra_frame_info)
5819 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5820 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5821
70eb15a4
CV
58222002-06-11 Corinna Vinschen <vinschen@redhat.com>
5823
5824 * v850-tdep.c (v850_type_is_scalar): New function.
5825 (v850_use_struct_convention): Match current gcc implementation
5826 as close as possible.
5827 (v850_push_arguments): Fix stack_offset handling. Don't write
5828 struct_addr into register. This is done by v850_store_struct_return.
5829 (v850_extract_return_value): Care for structs.
5830 (v850_store_return_value): Ditto.
5831 (v850_store_struct_return): Actually write address.
5832
482a4d06
ML
58332002-06-11 Michal Ludvig <mludvig@suse.cz>
5834
5835 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5836 without debug information too.
5837
d855c300
AC
58382002-06-10 Andrew Cagney <ac131313@redhat.com>
5839
5840 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5841 Make multi-arch pure.
5842 * gdbarch.h, gdbarch.c: Re-generate.
5843 * arm-tdep.c (arm_print_float_info): Update.
5844 * arch-utils.h (default_print_float_info): Update.
5845 * arch-utils.c (default_print_float_info): Update.
5846 * infcmd.c (float_info): Update call.
5847
dd12a101
AC
58482002-06-10 Andrew Cagney <ac131313@redhat.com>
5849
5850 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5851 the front of the initialize list.
5852
101dcfbe
AC
58532002-06-10 Andrew Cagney <ac131313@redhat.com>
5854
5855 * infrun.c (struct inferior_status): Replace fields
5856 selected_frame_address and selected_level with field
5857 selected_frame_id.
5858 (save_inferior_status): Update. Use get_frame_id.
5859 (struct restore_selected_frame_args): Delete.
5860 (restore_selected_frame): Update. Use frame_find_by_id.
5861 (restore_inferior_status): Update.
5862
5863 * breakpoint.h (struct breakpoint): Change type of
5864 watchpoint_frame to frame_id.
5865 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5866 call to get_current_frame.
5867 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5868 get_current_frame.
5869 (watchpoint_check): Use frame_find_by_id.
5870
5871 * frame.h (record_selected_frame): Delete declaration.
5872 * stack.c (record_selected_frame): Delete function.
5873
5874 * frame.h (struct frame_id): Define.
5875 (get_frame_id): Declare.
5876 (frame_find_by_id): Declare.
5877 * frame.c (frame_find_by_id): New function.
5878 (get_frame_id): New function.
5879
304270b6
AV
58802002-06-10 Andrey Volkov <avolkov@transas.com>
5881
5882 * ser-e7kpc.c: Fix duplicated define and call of
5883 _initialize_ser_e7000pc
5884
2f2cf184
DJ
58852002-06-09 Daniel Jacobowitz <drow@mvista.com>
5886
5887 * signals/signals.c (target_signal_from_host): Fix #ifdef
5888 SIGRTMIN case.
5889 (do_target_signal_to_host): Likewise.
5890
caaa3122
DJ
58912002-06-09 Daniel Jacobowitz <drow@mvista.com>
5892
5893 * mips-tdep.c (mips_find_abi_section): New function.
5894 (mips_gdbarch_init): Call it.
5895
6ac5df3a
MK
58962002-06-09 Mark Kettenis <kettenis@gnu.org>
5897
5898 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5899 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5900 after Andrew's 2002-06-08 gdbarch change.
5901
82ea117a
MK
59022002-06-09 Mark Kettenis <kettenis@gnu.org>
5903
5904 * i386-linux-nat.c (suppy_gregset): Don't supply
5905 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5906 register cache.
5907 (fill_gregset): Don't fetch it under the same circumstances.
5908
3c25f8c7
AC
59092002-06-09 Andrew Cagney <cagney@redhat.com>
5910
5911 * Makefile.in (callback_h): Define.
5912 (remote_sim_h): Update path to remote-sim.h.
5913 (remote-rdp.o): Add $(callback_h).
5914 (remote-sim.o): Use $(callback_h).
5915 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5916 * remote-rdp.c: Include "gdb/callback.h".
5917
1029b7fa
MK
59182002-06-09 Mark Kettenis <kettenis@gnu.org>
5919
5920 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5921 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5922
616675d3
AC
59232002-06-08 Andrew Cagney <ac131313@redhat.com>
5924
a3efda28
AC
5925 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5926 * rdi-share/serpardr.c: Ditto.
5927 * rdi-share/unixcomm.c: Ditto.
5928 * rdi-share/serdrv.c: Ditto.
5929 * rdi-share/hostchan.h: Ditto.
5930 * rdi-share/hostchan.c: Ditto.
5931 * rdi-share/host.h: Ditto.
5932 * rdi-share/devsw.c: Ditto.
5933
c5f10366
AC
5934 * objfiles.h: Change type of obj_private to void pointer.
5935 * pa64solib.c: Update copyright. Don't include "assert.h", use
5936 strcmp instead of STREQ, use LONGEST, do not use PTR
5937 * somsolib.c: Ditto.
5938
616675d3
AC
5939 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5940 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5941 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5942
e4b415d9
AC
59432002-06-08 Andrew Cagney <ac131313@redhat.com>
5944
5945 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5946 (default_get_saved_register): Delete function.
5947 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5948 generic_unwind_get_saved_register.
5949 * gdbarch.h, gdbarch.c: Re-generate.
5950
ca0d0b52
AC
59512002-06-08 Andrew Cagney <ac131313@redhat.com>
5952
5953 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5954 generic_func_frame_chain_valid.
5955 * gdbarch.h, gdbarch.c: Re-generate.
5956 * blockframe.c (generic_func_frame_chain_valid): Only check
5957 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5958 passing FP to PC_IN_CALL_DUMMY.
5959 Fix PR gdb/360.
5960
76860b5f
AC
59612002-06-08 Andrew Cagney <ac131313@redhat.com>
5962
5963 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5964 (register_gdbarch_data): Initialize init_p.
5965 (gdbarch_data): Initialize data pointer using the init function.
5966 (init_gdbarch_data): Delete function.
5967 (gdbarch_update_p): Update.
5968 (initialize_non_multiarch): Update.
5969 (struct gdbarch): Add field initialized_p.
5970 * gdbarch.h, gdbarch.c: Re-generate.
5971
8dda9770
ML
59722002-06-07 Michal Ludvig <mludvig@suse.cz>
5973
5974 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5975 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5976 better do the things actually here.
5977 * x86-64-tdep.c (x86_64_register_name2nr): New.
5978 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5979 (x86_64_gdbarch_init): Respect the above change.
5980 * x86-64-tdep.h (x86_64_register_name2nr)
5981 (x86_64_register_nr2name): Add prototypes.
5982 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5983
3d79a47c
MS
59842002-06-06 Michael Snyder <msnyder@redhat.com>
5985
7bd91a28
MS
5986 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5987 Delete extra braces and re-indent.
5988 (d10v_store_return_value): Char return values
3d79a47c
MS
5989 must be shifted over by one byte in R0.
5990 (d10v_extract_return_value): Delete extra braces, re-indent.
5991
095a4c96
EZ
59922002-06-06 Elena Zannoni <ezannoni@redhat.com>
5993
5994 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5995 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5996 (d10v_integer_to_address): Rewrite.
5997 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5998 the d10v specific functions which take care of converting to the
5999 correct space.
6000
e8a77ca4
EZ
60012002-06-06 Elena Zannoni <ezannoni@redhat.com>
6002
6003 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6004 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6005
4f2e4a4f
AC
60062002-06-02 Andrew Cagney <ac131313@redhat.com>
6007
6008 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6009 includes.
6010 * config/tm-linux.h: Ditto.
6011 * config/alpha/tm-alphalinux.h: Ditto.
6012 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6013 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6014 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6015 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6016 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6017 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6018 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6019 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6020 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6021 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6022 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6023 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6024 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6025 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6026 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6027 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6028 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6029 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6030 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6031 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6032 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6033 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6034 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6035 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6036 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6037 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6038 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6039 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6040 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6041 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6042 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6043 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6044 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6045 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6046 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6047 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6048 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6049
ae2ab2ce
AS
60502002-05-04 Aidan Skinner <aidan@velvet.net>
6051
6052 * ada-exp.tab.c: New file
6053 * ada-exp.y: New file
6054 * ada-lang.c: New file
6055 * ada-lang.h: New file
6056 * ada-lex.c: New file
6057 * ada-lex.l: New file
6058 * ada-tasks.c: New file
6059 * ada-typeprint.c: New file
6060 * ada-valprint.c: New file
6061
0ddd0135
JT
60622002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6063
6064 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6065 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6066
750fbacc
JT
60672002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6068
6069 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6070 insetead of ppc-linux-tdep.o.
6071 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6072 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6073
df94e18a
AC
60742002-06-02 Andrew Cagney <ac131313@redhat.com>
6075
6076 2002-05-07 Christian Groessler <chris@groessler.org>
6077 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6078 bit register contents for little endian hosts.
6079
1a38ab75
AC
60802002-06-01 Andrew Cagney <ac131313@redhat.com>
6081
6082 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6083 any maintainer.
6084
8b1632ac
AC
60852002-06-01 Andrew Cagney <ac131313@redhat.com>
6086
6087 * gdbarch.h: Regenerate.
6088
627054c8
AC
60892002-06-01 Andrew Cagney <ac131313@redhat.com>
6090
6091 * MAINTAINERS: Add everyone to write-after-approval list.
6092
4f460812
AC
60932002-06-01 Andrew Cagney <ac131313@redhat.com>
6094
6095 * stack.c (frame_info): Use frame_register_unwind instead of
6096 saved_regs. Mention when the SP is on the stack or in a register.
6097
6098 * frame.h (frame_register_unwind_ftype): Define. Document.
6099 (struct frame_info): Add field register_unwind and
6100 register_unwind_cache.
6101 (frame_register_unwind): Declare.
6102 (generic_unwind_get_saved_register): Declare.
6103
6104 * frame.c (frame_register_unwind): New function.
6105 (generic_unwind_get_saved_register): New function.
6106
6107 * blockframe.c (generic_call_dummy_register_unwind): New function.
6108 (frame_saved_regs_register_unwind): New function.
6109 (set_unwind_by_pc): New function.
6110 (create_new_frame): New function.
6111 (get_prev_frame): New function.
6112
de888f76
AC
61132002-05-30 Andrew Cagney <ac131313@redhat.com>
6114
6115 * a29k-share/: Delete directory.
6116 * remote-vx29k.c: Delete file.
6117
2f2c3626
JT
61182002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6119
6120 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6121 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6122
9ce5c36a
JT
61232002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6124
6125 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6126 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6127 (sparc64nbsd-nat.o)
6128 (sparcnbsd-nat.o)
6129 (sparcnbsd-tdep.o): New dependency lists.
6130 * NEWS: Note new UltraSPARC NetBSD native configuration.
6131 * configure.host (sparc64-*-netbsd*): New host.
6132 * configure.tgt (sparc-*-netbsdelf*)
6133 (sparc-*-netbsd*): Set gdb_target to nbsd.
6134 (sparc64-*-netbsd*): New target.
6135 * sparc64nbsd-nat.c: New file.
6136 * sparcnbsd-nat.c: New file.
6137 * sparcnbsd-tdep.c: New file.
6138 * sparcnbsd-tdep.h: New file.
6139 * config/sparc/nbsd.mt: New file.
6140 * config/sparc/nbsd64.mh: New file.
6141 * config/sparc/nbsd64.mt: New file.
6142 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6143 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6144 (HOST_IPC): Remove.
6145 * config/sparc/nbsdaout.mt: Remove.
6146 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6147 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6148 (HOST_IPC): Remove.
6149 * config/sparc/nbsdelf.mt: Remove.
6150 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6151 sparc-nat.c compatiblity defines.
6152 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6153 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6154 * config/sparc/tm-nbsd64.h: New file.
6155 * config/sparc/tm-nbsdaout.h: Remove.
6156 * config/sparc/xm-nbsd.h: Remove.
6157
ef3cf062
JT
61582002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6159
6160 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6161 * sparc-tdep.c: Include osabi.h.
6162 (gdbarch_tdep): Add osabi member.
6163 (_initialize_sparc_tdep): Use gdbarch_register.
6164 (sparc_gdbarch_init): Use generic OS ABI framework.
6165 (sparc_dump_tdep): New function.
6166
ee8ff470
KB
61672002-05-30 Kevin Buettner <kevinb@redhat.com>
6168
6169 * corefile.c (do_captured_read_memory_integer): Return non-zero
6170 result.
6171 (safe_read_memory_integer): Copy result of memory read when
6172 status is non-zero. Also, add comments.
6173
7b112f9c
JT
61742002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6175
6176 * Makefile.in (ppc_tdep_h): Define.
6177 (ppc-linux-nat.o)
6178 (ppc-linux-tdep.o)
6179 (rs6000-tdep.o): Use $(ppc_tdep_h).
6180 (ppc-sysv-tdep.o)
6181 (ppcnbsd-nat.o)
6182 (ppcnbsd-tdep.o): New dependency lists.
6183 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
6184 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6185 (ppc_linux_init_abi): New functions.
7b112f9c
JT
6186 (ppc_sysv_abi_broken_use_struct_convention)
6187 (ppc_sysv_abi_use_struct_convention)
6188 (ppc_sysv_abi_push_arguments): Move to...
6189 * ppc-sysv-tdep.c: ...here.
6190 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6191 * rs6000-tdep.c (process_note_abi_tag_sections)
6192 (get_elfosabi): Remove.
6193 (rs6000_gdbarch_init): Use generic OS ABI framework.
6194 (rs6000_dump_tdep): New function.
6195 (_initialize_rs6000_tdep): Use gdbarch_register.
6196 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6197 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6198 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6199 of ppc-linux-tdep.o.
6200 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6201 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6202 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6203 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6204 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6205 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6206
480dd42a
JB
62072002-05-29 Jim Blandy <jimb@redhat.com>
6208
6209 * macroscope.c (default_macro_scope): Put `void' in empty argument
6210 list.
6211
4182591f
AC
62122002-05-29 Andrew Cagney <ac131313@redhat.com>
6213
6214 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6215 * arch-utils.c: Include "sim-regno.h".
6216 * gdbarch.sh: Don't include "sim-regno.h".
6217 * gdbarch.h, gdbarch.c: Regenerate.
6218 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6219 here.
6220 * arch-utils.h (legacy_register_sim_regno): To here.
6221 * remote-sim.c (legacy_register_sim_regno): Move function from
6222 here.
6223 * arch-utils.c (legacy_register_sim_regno): To here.
6224
8238d0bf
AC
62252002-05-28 Andrew Cagney <ac131313@redhat.com>
6226
6227 * sim-regno.h: New file.
6228 * Makefile.in (sim_regno_h): Define.
6229 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6230 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6231 (legacy_register_sim_regno): New function.
6232 (one2one_register_sim_regno): New function.
6233 (gdbsim_fetch_register): Rewrite.
6234 (gdbsim_store_register): Only store a register when
6235 REGISTER_SIM_REGNO is valid.
6236 * d10v-tdep.c: Include "sim-regno.h".
6237 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6238 (d10v_ts3_register_sim_regno): Ditto.
6239 * gdbarch.sh: Include "sim-regno.h".
6240 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6241 * gdbarch.h, gdbarch.c: Regenerate.
6242 * arch-utils.h (default_register_sim_regno): Delete declaration.
6243 * arch-utils.c (default_register_sim_regno): Delete function.
6244
485721b1
JT
62452002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6246
6247 * ppcnbsd-nat.c: Rewrite.
6248 * ppcnbsd-tdep.c: New file.
6249 * ppcnbsd-tdep.h: New file.
6250 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6251 solib.o, and solib-svr4.o.
6252 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6253 nbsd-tdep.o, and corelow.o.
6254
697f244d
AC
62552002-05-28 Andrew Cagney <ac131313@redhat.com>
6256
6257 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6258 `tr' and `sed'. Mention that `broken' targets are not expected to
6259 build.
6260
f08caad1 62612002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
6262
6263 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6264 Let PC point right after the prologue before looking up symbols.
6265
3139facc
MH
62662002-05-27 Martin M. Hunt <hunt@redhat.com>
6267
6268 * i386-tdep.c (i386_register_virtual_type): Return
6269 builtin_type_vec128i for SSE registers.
6270
6271 * gdbtypes.h (builtin_type_vec128i): Declare.
6272
6273 * gdbtypes.c (build_builtin_type_vec128i): New function.
6274 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6275 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6276 (build_gdbtypes): Initialize new builtin vector types.
6277 (_initialize_gdbtypes): Register new vector types with gdbarch.
6278
6e3ba3b8
JT
62792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6280
6281 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6282 since it has been multi-arch'd.
6283 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6284 Move Alpha and VAX multi-arch news entries to same section
6285 as other multi-arch news.
6286
93d5585d
JT
62872002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6288
6289 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6290 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6291 static. Rename some register numbers to put them in ns32k-tdep
6292 private namespace.
6293 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6294 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6295 functions.
6296 (_initialize_ns32k_tdep): Use gdbarch_register.
6297 * ns32k-tdep.h: New file.
6298 * ns32knbsd-tdep.c: New file.
6299 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6300 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6301 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6302 REGISTER_BYTES, REGISTER_BYTE): Remove.
6303 * config/ns32k/tm-ns32k.h: New file.
6304 * config/ns32k/tm-umax.h: Remove.
6305
efb2c70e
JT
63062002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6307
6308 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6309 ns32k_store_struct_return, ns32k_extract_return_value,
6310 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6311 functions.
6312 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6313 ns32k_saved_pc_after_call.
6314 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6315 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6316 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6317 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6318 ns32k_extract_struct_value_address.
6319
7bcc927b
JT
63202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6321
6322 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6323 ns32k_fix_call_dummy): New.
6324 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6325 ns32k_call_dummy_words.
6326 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6327 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6328 CALL_DUMMY_NARGS): Remove.
6329 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6330
78f9d765
JT
63312002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6332
6333 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6334 ns32k_frame_saved_pc, ns32k_frame_args_address,
6335 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6336 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6337 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6338 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6339 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6340 (BREAKPOINT): Remove..
6341 (FRAME_CHAIN): Define as ns32k_frame_chain.
6342 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6343 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6344 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6345 (FRAME_FIND_SAVED_REGS): Remove.
6346 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6347 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6348 (POP_FRAME): Define as ns32k_pop_frame.
6349
f2c762e0
JT
63502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6351
6352 * ns32k-tdep.c (ns32k_register_byte_32082,
6353 ns32k_register_byte_32382, ns32k_register_raw_size,
6354 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6355 functions.
6356 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6357 ns32k_register_byte_32382.
6358 * config/ns32k/tm-umax.h: Update copyright years.
6359 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6360 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6361 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6362 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6363 (ns32k_get_enter_addr): Fix prototype.
6364
af137673
JT
63652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6366
6367 * ns32k-tdep.c: Update copyright years.
6368 (ns32k_register_name_32082): New function.
6369 (ns32k_register_name_32382): Ditto.
6370 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6371 (REGISTER_NAME): Define as ns32k_register_name_32382.
6372 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6373 (REGISTER_NAME): Define as ns32k_register_name_32082.
6374
a8bc7b56
JB
63752002-05-24 Jim Blandy <jimb@redhat.com>
6376
6377 * dwarf2read.c (free_line_header): Use xfree, not free.
6378
83a45910
JT
63792002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6380
6381 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6382 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6383
0db71247
AC
63842002-05-23 Andrew Cagney <ac131313@redhat.com>
6385
6386 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6387
b9e5e4dd
AC
63882002-05-23 Andrew Cagney <ac131313@redhat.com>
6389
6390 From Ross Alexander at NEC Europe:
6391 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6392
de530e84
MS
63932002-05-23 Michael Snyder <msnyder@redhat.com>
6394
6395 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6396 for input, rather than parse_and_eval_address.
6397
b91b96f4
AC
63982002-05-23 Andrew Cagney <ac131313@redhat.com>
6399
6400 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6401 * Makefile.in (sim_d10v_h): Update definition.
6402
8b279e7a
AC
64032002-05-24 Andrew Cagney <cagney@redhat.com>
6404
6405 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6406 change `2002-05-22 Michael Snyder' below.
6407 (d10v_push_arguments): Ditto.
6408 (d10v_extract_return_value): Ditto.
6409
0a3d0425
JB
64102002-05-23 Jim Blandy <jimb@redhat.com>
6411
6412 * macrotab.c (check_for_redefinition): Don't complain if the new
6413 definition is the same as the previous one. Take more arguments
6414 to allow the comparison.
6415 (macro_define_object, macro_define_function): Pass more arguments
6416 to check_for_redefinition.
6417
78eac43e
MS
64182002-05-22 Michael Snyder <msnyder@redhat.com>
6419
6420 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6421 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6422 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6423 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6424 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6425 Add a temp variable to save a call (and a memory read).
6426 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6427 if possible (so that PC_IN_CALL_DUMMY will work).
6428
9bc1edb8
CV
64292002-05-22 Corinna Vinschen <vinschen@redhat.com>
6430
6431 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6432
005ef3d2
ML
64332002-05-22 Michal Ludvig <mludvig@suse.cz>
6434
6435 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6436 fde->cie_ptr.
6437 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6438 (dwarf2_build_frame_info): Add offset to fde->initial_location
6439 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6440 (execute_stack_op): Change type of 'result' from ULONGEST to
6441 CORE_ADDR.
005ef3d2 6442
fcf4f891
JT
64432002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6444
6445 * config/alpha/tm-nbsd.h: Include solib.h.
6446
cfef91e4
JT
64472002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6448
6449 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6450 assumptions about the host's byte order.
6451
9964235a
JT
64522002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6453
6454 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6455 to dependency list.
6456 * alphanbsd-tdep.c: Include solib-svr4.h.
6457 * shnbsd-tdep.c: Ditto.
6458
9eeef8ef
JT
64592002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6460
6461 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6462 nbsd-tdep.h to dependency list.
6463 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6464 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6465 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6466 nbsdaout.mh and nbsdelf.mh consistently.
6467 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6468 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6469 nbsdaout.mt and nbsdelf.mh consistently.
6470 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6471 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6472 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6473 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6474 a.out shared library stuff from here...
6475 * config/nm-nbsdaout.h: ...to here.
6476 * config/tm-nbsd.h: Remove.
6477 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6478 * config/arm/nbsd.mh: Remove.
6479 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6480 nbsd-tdep.o.
6481 * config/arm/nbsdaout.mh: New file.
6482 * config/arm/nbsdelf.mh: New file.
6483 * config/arm/nm-nbsdaout.h: New file.
6484 * config/i386/nbsd.mh: Remove.
6485 * config/i386/nbsd.mt: Remove.
6486 * config/i386/nbsdaout.mh: New file.
6487 * config/i386/nbsdaout.mt: New file.
6488 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6489 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6490 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6491 i386_register_u_addr): Remove.
6492 * config/i386/nm-nbsdaout.h: New file.
6493 * config/i386/nm-nbsdelf.h: Remove.
6494 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6495 (USE_STRUCT_CONVENTION): Remove.
6496 * config/i386/tm-nbsdaout.h: New file.
6497 * config/i386/tm-nbsdelf.h: Remove.
6498 * config/m68k/nbsd.mh: Remove.
6499 * config/m68k/nbsd.mt: Remove.
6500 * config/m68k/nbsdaout.mh: New file.
6501 * config/m68k/nbsdaout.mt: New file.
6502 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6503 * config/m68k/nm-nbsdaout.h: New file.
6504 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6505 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6506 * config/ns32k/nbsd.mh: Remove.
6507 * config/ns32k/nbsd.mt: Remove.
6508 * config/ns32k/nbsdaout.mh: New file.
6509 * config/ns32k/nbsdaout.mt: New file.
6510 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6511 * config/ns32k/nm-nbsdaout.h: New file.
6512 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6513 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6514 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6515 (SVR4_SHARED_LIBS): Remove.
6516 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6517 * config/sparc/nbsd.mh: Remove.
6518 * config/sparc/nbsd.mt: Remove.
6519 * config/sparc/nbsdaout.mh: New file.
6520 * config/sparc/nbsdaout.mt: New file.
6521 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6522 * config/sparc/nbsdelf.mt: New file.
6523 * config/sparc/nm-nbsdaout.h: New file.
6524 * config/sparc/nm-nbsdelf.h: Remove.
6525 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6526 * config/sparc/tm-nbsdaout.h: New file.
6527
257ce470
JT
65282002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6529
6530 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6531 mipsnbsd-tdep.c
6532 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6533
76a6d5fe
JT
65342002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6535
6536 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6537 shnbsd-nat.c.
6538 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6539
45888261
JT
65402002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6541
6542 * NEWS: Note new MIPS NetBSD native configuration.
6543 * configure.host (mips*-*-netbsd*): New host.
6544 * configure.tgt (mips*-*-netbsd*): New target.
6545 * mipsnbsd-nat.c: New file.
6546 * mipsnbsd-tdep.c: New file.
6547 * mipsnbsd-tdep.h: New file.
6548 * config/mips/nbsd.mh: New file.
6549 * config/mips/nbsd.mt: New file.
6550 * config/mips/nm-nbsd.h: New file.
6551 * config/mips/tm-nbsd.h: New file.
6552
70f80edf
JT
65532002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6554
6555 * Makefile.in (SFILES): Add osabi.c.
6556 (COMMON_OBS): Add osabi.o.
6557 (osabi.o): New dependency list.
6558 * osabi.c: New file.
6559 * osabi.h: New file.
6560 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6561
6562 * Makefile.in (alpha_tdep_h): Define and use instead of
6563 alpha-tdep.h.
6564 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6565 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6566 Remove.
6567 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6568 * alpha-tdep.h: Include osabi.h.
6569 (alpha_abi): Remove.
6570 (gdbarch_tdep): Use generic OS ABI framework.
6571 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6572 gdbarch_register_osabi.
6573 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6574 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6575 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6576
6577 * Makefile.in (sh_tdep_h): Add osabi.h.
6578 * sh-tdep.h (sh_osabi): Remove.
6579 (gdbarch_tdep): Use generic OS ABI framework.
6580 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6581 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6582 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6583 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6584
6585 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6586 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6587 gdbarch_register_osabi.
6588 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6589 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6590 (get_elfosabi): Rename to...
6591 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6592 ABI framework support routines.
6593 (arm_gdbarch_init): Use generic OS ABI framework.
6594 (arm_dump_tdep): Likewise.
6595 (_initialize_arm_tdep): Likewise.
6596 * arm-tdep.h: Include osabi.h.
6597 (arm_abi): Remove.
6598 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6599 osabi member.
6600 (arm_gdbarch_register_os_abi): Remove prototype.
6601 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6602 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6603
6604 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6605 * mips-tdep.c: Include osabi.h.
6606 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6607 OS ABI framework.
6608
d194345b
KH
66092002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6610
6611 * h8300-tdep.c: Fix formatting.
6612
70c6b0d1
EZ
66132002-05-20 Elena Zannoni <ezannoni@redhat.com>
6614
6615 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6616 printing vector registers.
6617
165b8e33
AC
66182002-05-19 Andrew Cagney <ac131313@redhat.com>
6619
6620 From Fernando Nasser:
6621 * remote.c (remote_async_open_1): Re-throw the exception when the
6622 connection fails.
6623 (remote_cisco_open): Ditto.
6624 (remote_open_1): Ditto.
6625
36918e70
AC
66262002-05-19 Andrew Cagney <ac131313@redhat.com>
6627
6628 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6629 (remote_start_remote): Add uiout parameter. Pass through to
6630 remote_start_remote_dummy.
6631 (remote_open_1): Use catch_exception instead of catch_errors.
6632 (remote_async_open_1): Ditto.
6633 (remote_cisco_open): Ditto.
6634
ae44c0c4
AC
66352002-05-19 Andrew Cagney <ac131313@redhat.com>
6636
6637 * remote.c (remote_start_remote): Replace PTR with void pointer.
6638 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6639 static.
6640
8efe637d
AC
66412002-05-18 Andrew Cagney <ac131313@redhat.com>
6642
6643 * gdb_indent.sh: Allow the script to be run in the sim directory.
6644
2f1b5984
MK
66452002-05-18 Mark Kettenis <kettenis@gnu.org>
6646
f0f625e2
MK
6647 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6648 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6649
2f1b5984
MK
6650 * corelow.c (core_open): Only call set_gdbarch_from_file if
6651 exec_bfd is NULL.
6652
fc974602
AV
66532002-05-17 Andrey Volkov <avolkov@transas.com>
6654
6655 * h8300-tdep.c: Add support of EXR register
6656 * config/h8300/tm-h8300.h: Ditto.
6657
906709f4
AV
66582002-05-17 Andrey Volkov <avolkov@transas.com>
6659
6660 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6661
6e591d68
AV
66622002-05-17 Andrey Volkov <avolkov@transas.com>
6663
6664 * h8300-tdep.c: Change literal regnums to REGNO.
6665
84f0252a
JB
66662002-05-17 Jim Blandy <jimb@redhat.com>
6667
e0e9281e
JB
6668 * NEWS: Note addition of macro support.
6669
84f0252a
JB
6670 Expand preprocessor macros in C expressions.
6671 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6672 (scan_macro_expansion, scanning_macro_expansion,
6673 finished_macro_expansion): New function declarations.
6674 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6675 variable declarations.
6676 * parser-defs.h (expression_context_pc): New declaration.
6677 * parse.c (expression_context_pc): New variable.
6678 (parse_exp_1): Set expression_context_pc, as well as
6679 expression_context_block.
6680 * c-exp.y (yylex): If we're not already reading the result of a
6681 macro expansion, try to macro-expand the next token. When we're
6682 done scanning a macro expansion, switch back to the mainline text.
6683 Commas and `if's in a macro's expansion don't terminate the input.
6684 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6685 (macro_original_text, macro_expanded_text,
6686 expression_macro_lookup_func, expression_macro_lookup_baton): New
6687 variables.
6688 (scan_macro_expansion, scanning_macro_expansion,
6689 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6690 c_preprocess_and_parse): New functions.
6691 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6692 c_preprocess_and_parse, instead of c_parse.
6693 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6694 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6695
1c509ca8
JR
6696Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6697
6698 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6699 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6700 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6701
2250ee0c
CV
67022002-05-17 Corinna Vinschen <vinschen@redhat.com>
6703
6704 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6705
ab3b8126
JT
67062002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6707
6708 * Makefile.in (sh_tdep_h): Define and use.
6709 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6710 register enum): Move to...
6711 * * sh-tdep.h: ...here.
6712 * sh-tdep.c: Include sh-tdep.h.
6713 * sh3-rom.c: Likewise.
6714 * shnbsd-tdep.c: Likewise.
6715
ed9d4749
MS
67162002-05-16 Michael Snyder <msnyder@redhat.com>
6717
6718 * arm-tdep.c: Spelling fix in comment.
6719
2e276125
JB
67202002-05-16 Jim Blandy <jimb@redhat.com>
6721
6821892e
JB
6722 Add commands for manually expanding macros and showing their
6723 definitions.
6724 * macrocmd.c, macroscope.c, macroscope.h: New files.
6725 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6726 (macroscope_h): New variable.
6727 (HFILES_NO_SRCDIR): Add macroscope.h.
6728 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6729 (macroscope.o, macrocmd.o): New rules.
6730
2e276125
JB
6731 Teach the Dwarf 2 reader to read macro information.
6732 * dwarf2read.c: #include "macrotab.h".
6733 (dwarf_macinfo_buffer): New variable.
6734 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6735 dwarf_macinfo_size.
6736 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6737 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6738 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6739 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6740 dwarf2_macro_spaces_in_definition): New complaints.
6741 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6742 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6743 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6744 the partial symbol table.
6745 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6746 from what's recorded in the partial symbol table.
6747 (read_file_scope): If the compilation unit has a
6748 `DW_AT_macro_info' attribute, read its macro information.
6749 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6750
2f53fe6c
DJ
67512002-05-16 Daniel Jacobowitz <drow@mvista.com>
6752
6753 Fix PR gdb/546
6754 * ser-tcp.c: Don't include <netinet/udp.h>.
6755
2be99286
SC
67562002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6757
6758 * MAINTAINERS: Update my email address.
6759
c9af212b 67602002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6761
6762 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6763 include file of the same name.
6764
bf5f1a52
CV
67652002-05-16 Corinna Vinschen <vinschen@redhat.com>
6766
6767 * configure.tgt: Mark v850 as multi-arched.
6768 * config/v850/tm-v850.h: Remove file.
6769 * config/v850/v850.mt: Eliminate TM_FILE.
6770
435e042a
CV
67712002-05-16 Corinna Vinschen <vinschen@redhat.com>
6772
6773 * v850-tdep.c: Full multi-arch.
6774 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6775 Define GDB_MULTI_ARCH to 2.
6776
9819c6c8
PM
67772002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6778
6779 * p-exp.y (current_type): New static variable.
6780 Carries the type of the expression at the position that is parsed.
6781 (push_current_type, pop_current_type): Two new functions. Used
6782 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6783 (search_field): New static variable. Set to one after parsing a point
6784 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6785 (FIELDNAME): New token. After a point only a token belonging to
6786 current_type type definition is allowed.
6787 (all over token rules): reset and change current_type according
6788 to rules.
6789 (exp '[' rule): insert implicit array index field if
6790 exp is a pascal string type.
6791
3a06899a
CV
67922002-05-16 Corinna Vinschen <vinschen@redhat.com>
6793
6794 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6795 frame info. Use frame_info's saved_regs instead of matching member
6796 in extra_frame_info throughout.
6797 (v850_frame_init_saved_regs): New function.
6798 (v850_init_extra_frame_info): Move most functionality into
6799 v850_frame_init_saved_regs().
6800 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6801 (v850_frame_find_saved_regs): Remove declaration.
6802 (FRAME_FIND_SAVED_REGS): Remove definition.
6803 (v850_frame_init_saved_regs): Add declaration.
6804 (FRAME_INIT_SAVED_REGS): Add definition.
6805
6ed14b0e
CV
68062002-05-16 Corinna Vinschen <vinschen@redhat.com>
6807
6808 * v850-tdep.c: Begin multi-arch'ing v850.
6809 (v850_target_architecture_hook): Remove function.
6810 (v850_gdbarch_init): New function. Add code previously in
6811 v850_target_architecture_hook().
6812 (_initialize_v850_tdep): Don't set target_architecture_hook.
6813 Call register_gdbarch_init() instead.
6814
42725910
DJ
68152002-05-16 Daniel Jacobowitz <drow@mvista.com>
6816
6817 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6818 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6819 (fixup_class_method_type): Likewise.
6820
99d9066e
JB
68212002-05-15 Jim Blandy <jimb@redhat.com>
6822
6823 Add macro structures to GDB's symbol tables. Nobody puts anything
6824 in them yet.
6825 * symtab.h (struct symtab): New member: `macro_table'.
6826 * buildsym.h (pending_macros): New global variable.
6827 * buildsym.c: #include "macrotab.h".
6828 (buildsym_init): Initialize `pending_macros'.
6829 (end_symtab): If we found macro information while reading a CU's
6830 debugging info, do build a symtab structure for it. Make the
6831 symtab point to the macro information, and clear the
6832 `pending_macros' pointer which held it while we were reading the
6833 debug info.
6834 (really_free_pendings): Free any pending macro table.
6835 * objfiles.h (struct objfile): New member: `macro_cache'.
6836 * objfiles.c (allocate_objfile): Set allocate and free functions
6837 for the macro cache's objstack.
6838 (free_objfile): Empty the macro cache's obstack.
6839 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6840 set new allocate and free functions for it.
6841 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6842 free functions for the macro cache's objstack. (Why is this
6843 function building its own objfile?)
6844 * symmisc.c (print_objfile_statistics): Print statistics on the
6845 macro bcache.
6846 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6847
c899585b
RE
68482002-05-15 Richard Earnshaw <rearnsha@arm.com>
6849
6850 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6851 (REGISTER_U_ADDR): Delete definition.
6852 (arm_register_u_addr): Delete declaration.
6853
a6cdd8c5
RE
68542002-05-15 Richard Earnshaw <rearnsha@arm.com>
6855
6856 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6857 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6858
c97dcfc7
AC
68592002-05-14 Andrew Cagney <ac131313@redhat.com>
6860
6861 * regcache.c (register_valid): Revise comments refering to "Not
6862 available" and "unavailable".
6863 * frame.c (frame_register_read): Ditto.
6864 * findvar.c (value_of_register): Ditto.
6865
93021b7d
AC
68662002-05-15 Andrew Cagney <cagney@redhat.com>
6867
6868 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6869 (remote-sim.o): Update dependencies.
6870 (d10v-tdep.o): Specify dependencies.
6871 (sim_d10v_h): Define.
6872
a86bc61c
JB
68732002-05-14 Jim Blandy <jimb@redhat.com>
6874
6875 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6876 * macrotab.c (macro_lookup_inclusion, find_definition,
6877 new_macro_table): Same.
6878
6879 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6880 not `! strcmp ()'. This is a dubious improvement.
6881 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6882
6883 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6884 although it's not necessary, to avoid a warning.
6885
2fdde8f8
DJ
68862002-05-14 Daniel Jacobowitz <drow@mvista.com>
6887
6888 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6889 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6890 TYPE_INSTANCE_FLAGS.
6891 (struct main_type): New.
6892 (struct type): Move most members to struct main_type. Change
6893 cv_type and as_type to new type_chain member. Add instance_flags.
6894 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6895 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6896 (finish_cv_type): Remove prototype.
6897 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6898 Set TYPE_CHAIN.
6899 (alloc_type_instance): New function.
6900 (smash_type): New function.
6901 (make_pointer_type, make_reference_type, make_function_type)
6902 (smash_to_member_type, smash_to_method_type): Call smash_type.
6903 (make_qualified_type): New function.
6904 (make_type_with_address_space): Call make_qualified_type.
6905 (make_cv_type): Likewise.
6906 (finish_cv_type): Remove unnecessary function.
6907 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6908 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6909 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6910 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6911 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6912 * hpread.c (hpread_read_struct_type): Likewise.
6913 * stabsread.c (read_struct_type): Likewise.
6914
843fedf4
EZ
69152002-05-14 Elena Zannoni <ezannoni@redhat.com>
6916
6917 * configure.tgt: Add a catch all sh* target, for cases like
6918 sh[2,3,4]-elf and sh-hms.
6919
05a6c72c
KS
69202002-05-14 Keith Seitz <keiths@redhat.com>
6921
6922 * event-loop.c (create_file_handler): Don't do anything but
6923 update data when we are given a fd which we are already
6924 monitoring.
6925
5d085aaf
ML
69262002-05-14 Michal Ludvig <mludvig@suse.cz>
6927
6928 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6929 (update_context): Use __func__ in warnings.
6930
9db8d71f
DJ
69312002-05-14 Daniel Jacobowitz <drow@mvista.com>
6932
6933 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6934 and tcp_close to net_open and net_close.
6935 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6936 using UDP if requested. Don't try to disable Nagle on UDP
6937 sockets.
6938 * remote.c (remote_serial_open): New function. Warn about UDP.
6939 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6940
5dbc6baa
EZ
69412002-05-13 Elena Zannoni <ezannoni@redhat.com>
6942
6943 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6944
cc3023f7
EZ
69452002-05-13 Elena Zannoni <ezannoni@redhat.com>
6946
6947 * configure.tgt: Remove sh-hms target.
6948 * MAINTAINERS: Don't list sh-hms as a separate target.
6949
ec2bcbe7
JB
69502002-05-13 Jim Blandy <jimb@redhat.com>
6951
6952 Add first preprocessor macro-expansion files.
6953 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6954 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6955 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6956 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6957 (COMMON_OBS): Add macrotab.o, macroexp.o.
6958 (macroexp.o, macrotab.o): New rules.
6959
6d531722
AC
69602002-05-13 Andrew Cagney <ac131313@redhat.com>
6961
6962 * config/m88k/tm-m88k.h: Update copyright.
6963 (m88k_target_write_pc): Declare
6964 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6965 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6966 (SHIFT_INST_REGS): Update definition.
6967 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6968 using old definition of TARGET_WRITE_PC.
6969 * regcache.c (generic_target_write_pc): Delete code handling
6970 NNPC_REGNUM.
6971 * gdbarch.sh (NNPC_REGNUM): Delete.
6972 * gdbarch.h, gdbarch.c: Regenerate.
6973
3e3f2739
RE
69742002-05-13 Richard Earnshaw <rearnsha@arm.com>
6975
6976 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6977 builtin reg number.
6978
0004e5a2
DJ
69792002-05-13 Daniel Jacobowitz <drow@mvista.com>
6980
6981 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6982 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6983 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6984 access macros.
6985 * c-typeprint.c (cp_type_print_method_args): Likewise.
6986 (c_type_print_args): Likewise.
6987 * d10v-tdep.c (d10v_push_arguments): Likewise.
6988 (d10v_extract_return_value): Likewise.
6989 * expprint.c (print_subexp): Likewise.
6990 * gdbtypes.c (lookup_primitive_typename): Likewise.
6991 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6992 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6993 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6994 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6995 (TYPE_VECTOR): Likewise.
6996 * hpread.c (hpread_read_struct_type)
6997 (fix_static_member_physnames, fixup_class_method_type)
6998 (hpread_type_lookup): Likewise.
6999 * mdebugread.c (parse_symbol, parse_type): Likewise.
7000 * p-lang.c (is_pascal_string_type): Likewise.
7001 * valops.c (hand_function_call): Likewise.
7002 * x86-64-tdep.c (classify_argument): Likewise.
7003
7004 * hpread.c (hpread_read_function_type)
7005 (hpread_read_doc_function_type): Call replace_type.
7006 * dstread.c (create_new_type): Delete.
7007 (decode_dst_structure, process_dst_function): Call alloc_type.
7008 Use type access macros.
7009
dff95cc7
MK
70102002-05-12 Mark Kettenis <kettenis@gnu.org>
7011
7012 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7013 the're not supported by the current architecture.
7014 (i387_fill_fxsave): Likewise.
7015
bbcd32ad
FF
70162002-05-12 Fred Fish <fnf@redhat.com>
7017
7018 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7019 sect_index_xxx members to index the first slot in section_offsets
7020 if all of the section_offsets are zero.
7021
89cf4787
MK
70222002-05-12 Mark Kettenis <kettenis@gnu.org>
7023
7024 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7025 checked in with last change.
7026
1f77ffc5
MK
70272002-05-12 Mark Kettenis <kettenis@gnu.org>
7028
7029 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7030 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7031 config.sub.
7032
89b8b4a9
DJ
70332002-05-12 Daniel Jacobowitz <drow@mvista.com>
7034
7035 * Makefile.in: Update dependencies.
7036
14a5e767
AC
70372002-05-11 Andrew Cagney <ac131313@redhat.com>
7038
7039 * language.c (local_hex_string_custom): Simplify. Do not depend
7040 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7041
7042 * memattr.c (mem_info_command): Replace calls to
7043 longest_local_hex_string and longest_local_hex_string_custom.
7044 * buildsym.c (make_blockvector): Ditto.
7045 * solib.c (info_sharedlibrary_command): Ditto.
7046 * tracepoint.c (tracepoints_info): Ditto.
7047 * symtab.c (print_msymbol_info): Ditto.
7048
7049 * language.c (local_hex_string): Delete.
7050 (local_hex_string_custom): Delete.
7051 (longest_local_hex_string): Rename to local_hex_string.
7052 (longest_local_hex_string_custom): Rename to
7053 local_hex_string_custom.
7054 * language.h (local_hex_string): Change parameter type to LONGEST.
7055 (local_hex_string_custom): Ditto.
7056 (longest_local_hex_string): Delete declaration.
7057 (longest_local_hex_string_custom): Ditto.
7058
7059 * solib.c: Update copyright.
7060 * memattr.c: Update copyright.
7061
13d01224
AC
70622002-05-11 Andrew Cagney <ac131313@redhat.com>
7063
7064 * arch-utils.h (legacy_register_to_value): Declare.
7065 (legacy_value_to_register): Declare.
7066 (legacy_convert_register_p): Declare.
7067 * arch-utils.c (legacy_register_to_value): New function.
7068 (legacy_value_to_register): New function.
7069 (legacy_convert_register_p): New function.
7070
7071 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7072 (VALUE_TO_REGISTER): Define.
7073 (CONVERT_REGISTER_P): Define.
7074 * gdbarch.h, gdbarch.c: Regenerate.
7075
7076 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7077 VALUE_TO_REGISTER.
7078 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7079 CONVERT_REGISTER_P.
7080
4a1970e4
DJ
70812005-05-11 Daniel Jacobowitz <drow@mvista.com>
7082 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7083
7084 * Makefile.in: Update dependencies for valops.c.
7085 * valops.c: Include "gdb_assert.h".
7086 (typecmp): Skip THIS parameter to methods.
7087 (find_method_list): Remove static_memfuncp argument,
7088 update callers. Check for stub methods.
7089 (find_value_oload_method_list): Don't set *static_memfuncp.
7090 (find_overload_match): Don't check for stub methods. Assert
7091 that methods are not stubbed. Handle static methods.
7092 (value_find_oload_method_list): Remove static_memfuncp argument.
7093 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7094 to the argument list for static stub methods.
7095 * value.h (value_find_oload_method_list): Update prototype.
7096
b2e75d78
AC
70972002-05-11 Andrew Cagney <ac131313@redhat.com>
7098
7099 * arch-utils.h (generic_register_size): Declare.
7100 (generic_register_raw_size, generic_register_virtual_size): Delete
7101 declarations.
7102 * arch-utils.c (generic_register_raw_size): Delete.
7103 (generic_register_size): New function.
7104 (generic_register_virtual_size): Delete.
7105
7106 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7107 default generic_register_size.
7108 * gdbarch.h, gdbarch.c: Re-generate.
7109
7110 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7111 register_virtual_size.
7112 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7113 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7114
451fbdda
AC
71152002-05-11 Andrew Cagney <ac131313@redhat.com>
7116
7117 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7118 * gdbarch.h, gdbarch.c: Regenerate.
7119 * gnu-v3-abi.c: Update copyright.
7120 (vtable_address_point_offset): Update.
7121 (gnuv3_rtti_type): Update.
7122 (gnuv3_baseclass_offset): Update.
7123 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7124 (init_fetch_link_map_offsets): Update.
7125 * remote.c (get_remote_state): Update.
7126
6d2f5cea
DJ
71272002-05-11 Daniel Jacobowitz <drow@mvista.com>
7128
7129 * TODO: Remove value_headof/value_from_vtable_info comment.
7130 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7131 * values.c (value_headof, value_from_vtable_info): Delete.
7132 * value.h (value_from_vtable_info): Delete prototype.
7133
d2324da4
AC
71342002-05-11 Andrew Cagney <ac131313@redhat.com>
7135
7136 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7137 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7138 $(gdb_regex_h).
7139 (gdb_assert_h): Define.
7140 (gdb_wait_h): Define.
7141 (gdb_regex_h): Define.
7142
5c717440
DJ
71432002-05-11 Daniel Jacobowitz <drow@mvista.com>
7144
7145 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7146 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7147
6c7861b3
JT
71482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7149
7150 * nbsd-tdep.c: Fix comment.
7151
ea5bc2a6
JT
71522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7153
7154 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7155 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7156 (nbsd-tdep.o): New dependency list.
7157 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7158 nbsd-tdep.h.
7159 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7160 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7161 * nbsd-tdep.c: New file.
7162 * nbsd-tdep.h: New file.
7163 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7164 nbsd-tdep.h.
7165 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7166 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7167 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7168 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7169
b28da865
JT
71702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7171
7172 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7173 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7174 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7175 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7176 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7177 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7178
4b8ff1fa
JT
71792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7180
7181 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7182 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7183 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7184 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7185 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7186 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7187 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7188
dfe6eb1f
JT
71892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7190
7191 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7192 fetch_elfcore_registers to...
7193 * i386nbsd-tdep.c: ...here.
7194 (i386nbsd_use_struct_convention): Rename to...
7195 (i386nbsd_aout_use_struct_convention): ...this.
7196 (i386nbsd_supply_reg): New function.
7197 (i386nbsd_fill_reg): New function.
7198 (fetch_core_registers): Use i386nbsd_supply_reg.
7199 (fetch_elfcore_registers): Likewise.
7200 (_initialize_i386nbsd_tdep): New function.
7201 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7202 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7203 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7204 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7205 (i386nbsd_aout_use_struct_convention): ...this.
7206
20cb8cda
JT
72072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7208
7209 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7210 (store_inferior_registers): Use shnbsd_fill_reg.
7211 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7212 sh_nbsd_supply_register): Collapse into...
7213 (shnbsd_supply_reg): ...this.
7214 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7215 (shnbsd_fill_reg): ...this.
7216 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7217 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7218 (fetch_core_registers): Use shnbsd_supply_reg.
7219 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7220 (sh_nbsd_core_fns): Rename to...
7221 (shnbsd_core_fns): ...this.
7222 (sh_nbsd_elfcore_fns): Rename to...
7223 (shnbsd_elfcore_fns): ...this.
7224 (sh_nbsd_init_abi): Rename to...
7225 (shnbsd_init_abi): ...this.
7226 (_initialize_sh_nbsd_tdep): Rename to...
7227 (_initialize_shnbsd_tdep): ...this.
7228 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7229 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7230 sh_nbsd_fill_register): Remove prototypes.
7231 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7232
e750d25e
JT
72332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7234
7235 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7236 (i387-nat.o): Delete dependency list.
7237 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7238 (x86-64-linux-nat.o): Likewise.
7239 * i387-nat.c: Delete file, moving contents to...
7240 * i387-tdep.c: ...here.
7241 * i387-nat.h: Rename...
7242 * i387-tdep.h: ...to this.
7243 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7244 * i386-linux-nat.c: Likewise.
7245 * i386bsd-nat.c: Likewise.
7246 * i386gnu-nat.c: Likewise.
7247 * i386nbsd-nat.c: Likewise.
7248 * i386v4-nat.c: Likewise.
7249 * x86-64-linux-nat.c: Likewise.
7250 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7251 * config/i386/go32.mh (NATDEPFILES): Likewise.
7252 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7253 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7254 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7255 * config/i386/linux.mh (NATDEPFILES): Likewise.
7256 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7257 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7258 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7259 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7260
1aee598a
JT
72612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7262
7263 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7264 (alphanbsd-nat.o): Remove dependency list.
7265 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7266 * alphanbsd-nat.c: Delete. Contents moved to...
7267 * alphanbsd-tdep.c: ...here.
7268 (_initialize_alphanbsd_tdep): Register core functions.
7269 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7270
12bcb0fe
JT
72712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7272
7273 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7274 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7275 (alphanbsd-nat.o): Likewise.
7276 (alphabsd-tdep.o): New dependency list.
7277 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7278 (fill_gregset): Use alphabsd_fill_reg.
7279 (supply_fpregset): Use alphabsd_supply_fpreg.
7280 (fill_fpregset): Use alphabsd_fill_fpreg.
7281 (fetch_inferior_registers): Use struct reg and struct fpreg
7282 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7283 and alphabsd_supply_fpreg.
7284 (store_inferior_registers): Use struct reg and struct fpreg
7285 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7286 and alphabsd_fill_fpreg.
7287 * alphabsd-tdep.c: New file.
7288 * alphabsd-tdep.h: New file.
7289 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7290 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7291 alphabsd_supply_fpreg.
7292 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7293 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7294
361d1df0
EC
72952002-05-11 Eric Christopher <echristo@redhat.com>
7296
7297 * mips-tdep.c (mips_double_register_type): Fix thinko.
7298 (mips_single_register_type): Ditto.
7299 * MAINTAINERS: Add self.
7300
92dd7cee
MK
73012002-05-11 Mark Kettenis <kettenis@gnu.org>
7302
7303 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7304 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7305 right thing on architectures with different endianness and/or
7306 integer sizes.
7307
e27da16d
JT
73082002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7309
7310 From Christian Limpach <chris@Pin.LU>
7311 * configure.in: Change sed expression which comments out
7312 NATDEPFILES to also comment out continuation lines.
7313 * configure: Regenerate.
7314
ddde02bd
EZ
73152002-05-10 Elena Zannoni <ezannoni@redhat.com>
7316
7317 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7318 big patch.
7319
1c922164
EZ
73202002-05-10 Elena Zannoni <ezannoni@redhat.com>
7321
7322 * sh-tdep.c: Include correct file.
7323
283150cd
EZ
73242002-05-10 Elena Zannoni <ezannoni@redhat.com>
7325
7326 New support for sh64-elf (sh5) target.
7327
7328 * configure.tgt: For sh64-elf target, default to sh-elf.
7329
7330 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7331 (struct gdbarch_tdep): Add new fields for new registers and ABI
7332 info.
361d1df0 7333
283150cd
EZ
7334 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7335 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7336 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7337 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7338 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7339 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7340 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7341 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7342 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7343 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7344 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7345 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7346 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7347 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7348 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7349 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7350 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7351 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7352 sign_extend, sh64_nofp_frame_init_saved_regs,
7353 sh64_init_extra_frame_info, sh64_get_saved_register,
7354 sh64_extract_struct_value_address, sh64_pop_frame,
7355 sh64_push_arguments, sh64_extract_return_value,
7356 sh64_store_return_value, sh64_show_media_regs,
7357 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7358 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7359 sh_sh64_register_virtual_type,
7360 sh_sh64_register_convert_to_virtual,
7361 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7362 sh64_register_read, sh64_pseudo_register_write,
7363 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7364 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7365 sh64_do_pseudo_register, sh_compact_do_registers_info,
7366 sh64_do_registers_info, sh_gdbarch_init): New functions.
7367
3117ed25
EZ
73682002-05-10 Elena Zannoni <ezannoni@redhat.com>
7369
7370 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7371
2654e6d4
DJ
73722002-05-10 Daniel Jacobowitz <drow@mvista.com>
7373
7374 * linespec.c (decode_line_1): Check for a double quote after
7375 a filename correctly.
7376
9ab3e532
JB
73772002-05-10 Jim Blandy <jimb@redhat.com>
7378
7379 Properly track the size of the current objfile's .debug_line section.
7380 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7381 (DWARF_LINE_SIZE): New macro.
7382 (dwarf2_build_psymtabs_hard): Record the line section's size in
7383 the partial symbol table.
7384 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7385 symbol table.
7386
126fa72d
PS
73872002-05-10 Petr Sorfa <petrs@caldera.com>
7388
7389 * ia64-tdep.c: Handle breakpoints on L instruction type
7390 in MLX instruction bundle by moving the breakpoint to
7391 the third slot (X instruction type) as L holds only data.
7392
1f077a3e
KB
73932002-05-10 Kevin Buettner <kevinb@redhat.com>
7394
7395 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7396 (process_one_symbol): Complain about discarding local symbols
7397 due to a misplaced N_LBRAC entry.
7398
8120c9d5 73992002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7400
7401 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7402 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7403 decrease the depth we are at, in the case of templates.
361d1df0 7404
67b2c998
DJ
74052002-05-09 Daniel Jacobowitz <drow@mvista.com>
7406
7407 * mips-tdep.c (mips_float_register_type): New function.
7408 (mips_double_register_type): New function.
7409 (mips_print_register): Use them.
7410 (do_fp_register_row): Likewise.
7411
fd326606
DJ
74122002-05-09 Daniel Jacobowitz <drow@mvista.com>
7413
6609d9af 7414 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7415 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7416 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7417
bef35864
MS
74182002-05-09 Michael Snyder <msnyder@redhat.com>
7419
7420 * remote-rdp.c (remote_rdp_can_run): Remove.
7421
c55a3f73
TT
74222002-05-09 Tom Tromey <tromey@redhat.com>
7423
7424 * jv-valprint.c (java_val_print): Handle `char' as a special case
7425 of TYPE_CODE_INT.
7426
b8d5e71d
MS
74272002-05-09 Michael Snyder <msnyder@redhat.com>
7428
7429 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7430 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7431 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7432 str r(0123),[sp,#nn].
361d1df0 7433 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7434 order-independent by placing it in a loop.
7435
e2cd42dd
MS
74362002-05-06 Michael Snyder <msnyder@redhat.com>
7437
7438 * stabsread.c (read_type): Add recognition for new attribute:
7439 "@V;" means that an array type is actually a vector.
7440 This is analogous to the vector flag that's been added to dwarf2.
7441
3ce1502b
MK
74422002-05-09 Mark Kettenis <kettenis@gnu.org>
7443
7444 * i386-tdep.h (i386_abi): New enum.
7445 (struct gdbarch_tdep): Replace os_ident member with abi.
7446 (i386_gdbarch_register_os_abi): New prototype.
7447 * i386-tdep.c (i386_abi_names): New array.
7448 (process_note_abi_tag_sections): Removed.
7449 (process_note_sections): New function.
7450 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7451 (struct i386_abi_handler): New struct.
7452 (i386_abi_handler_list): New variable.
7453 (i386_gdbarch_register_os_abi): New function.
7454 (i386_gdbarch_init): Adapt for the changes given above.
7455
084c156a
DJ
74562002-05-08 Daniel Jacobowitz <drow@mvista.com>
7457
7458 * gregset.h: Say "GNU/Linux".
7459
6599f021
EZ
74602002-05-08 Elena Zannoni <ezannoni@redhat.com>
7461
7462 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7463 (build_gdbtypes): Build builtin_type_v2_float.
7464 (_initialize_gdbtypes): Register new builtin type.
7465
40af4b0c
AC
74662002-05-08 Andrew Cagney <ac131313@redhat.com>
7467
7468 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7469 (clear_gdbarch_swap): New function.
7470 (initialize_non_multiarch): Call.
7471 (gdbarch_update_p): Before calling init(), swap out and clear the
7472 existing architecture.
7473 * gdbarch.c: Regenerate.
7474
4fe84f46
JT
74752002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7476
7477 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7478 alphanbsd-tdep.c.
7479
4015edd1
JT
74802002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7481
7482 * sh-nbsd-nat.c: Rename to...
7483 * shnbsd-nat.c: ...this.
7484 * sh-nbsd-tdep.c: Rename to...
7485 * shnbsd-tdep.c: ...this.
7486 * sh-nbsd-tdep.h: Rename to...
7487 * shnbsd-tdep.h: ...this.
7488 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7489 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7490
0e2bd219
RE
74912002-05-08 Richard Earnshaw <rearnsha@arm.com>
7492
7493 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7494 concatenation for command help messages.
7495
13a38d45
JT
74962002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7497
7498 * NEWS: Note new sh*-*-netbsdelf* configuration.
7499 * configure.host: Set gdb_host_cpu to sh for all sh*.
7500 (sh*-*-netbsdelf*): New host.
7501 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7502 (sh*-*-netbsdelf*): New target.
7503 * sh-nbsd-nat.c: New file.
7504 * sh-nbsd-tdep.c: New file.
7505 * sh-nbsd-tdep.h: New file.
7506 * config/sh/nbsd.mh: New file.
7507 * config/sh/nbsd.mt: New file.
7508 * config/sh/nm-nbsd.h: New file.
7509 * config/sh/tm-nbsd.h: New file.
7510
d658f924
JT
75112002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7512
7513 * sh-tdep.c (sh_osabi_names): Declare.
7514 (process_note_abi_tag_sections): New function.
7515 (get_elfosabi): Ditto.
7516 (sh_gdbarch_register_os_abi): Ditto.
7517 (sh_dump_tdep): Ditto.
7518 _initialize_sh_tdep): Use gdbarch_register to register
7519 sh_gdbarch_init and sh_dump_tdep.
7520 * config/sh/tm-sh.h (sh_osabi): Declare.
7521 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7522
848cfffb
AC
75232002-05-07 Andrew Cagney <ac131313@redhat.com>
7524
7525 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7526 (thumb_scan_prologue): Ditto.
7527 (arm_find_callers_reg): Ditto.
7528 (arm_frame_chain): Ditto.
7529 (arm_init_extra_frame_info): Ditto.
7530 (arm_frame_saved_pc): Ditto.
7531 (arm_pop_frame): Ditto.
7532 (arm_push_return_address): New function.
7533 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7534 call_dummy_location, call_dummy_breakpoint_offset_p,
7535 call_dummy_breakpoint_offset, call_dummy_p,
7536 call_dummy_stack_adjust_p, call_dummy_words,
7537 sizeof_call_dummy_words, call_dummy_start_offset,
7538 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7539 call_dummy_address, push_return_address and push_dummy_frame for
7540 generic dummy frames.
7541
e7d717c0
JT
75422002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7545 size computation for alloca.
7546 (sh_fp_frame_init_saved_regs): Likewise.
7547
7bbcf283
RE
75482002-05-07 Richard Earnshaw <rearnsha@arm.com>
7549
7550 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7551 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7552 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7553 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7554 * remote-rdp.c (remote_rdp_fetch_register): Use
7555 ARM_MAX_REGISTER_RAW_SIZE.
7556 (remote_rdp_store_register): Likewise.
7557
4657573b
ML
75582002-05-07 Michal Ludvig <mludvig@suse.cz>
7559
361d1df0 7560 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7561 added default labels to switch {} statements.
7562 * x86-64-tdep.c: Ditto.
7563 * x86-64-linux-nat.c: Ditto.
7564
010f3b2f
JT
75652002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * solib.h: Protect against multiple inclusion.
7568
debd256d
JB
75692002-05-06 Jim Blandy <jimb@redhat.com>
7570
9ab3e532
JB
7571 Add first preprocessor macro-expansion files.
7572 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7573 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7574 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7575 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7576 (COMMON_OBS): Add macrotab.o, macroexp.o.
7577 (macroexp.o, macrotab.o): New rules.
7578
debd256d
JB
7579 Separate the job of reading the line number info statement program
7580 header (...expialidocious) out into its own function.
7581 * dwarf2read.c (struct line_head, struct filenames, struct
7582 directories): Replace with...
7583 (struct line_header): New structure, containing the full
7584 contents of the statement program header, including the
7585 include directory and file name tables.
7586 (read_file_scope): If we have line number info, instead of just
7587 calling dwarf_decode_lines to do all the work, call
7588 dwarf_decode_line_header first to get a `struct line_header'
7589 containing the data in the statement program header, and then
7590 pass that to dwarf_decode_lines, which will pick up where that
7591 left off. Be sure to clean up the `struct line_header' object.
7592 (dwarf_decode_line_header, free_line_header, add_include_dir,
7593 add_file_name): New functions.
7594 (dwarf_decode_lines): Move all the code to read the statement
7595 program header into dwarf_decode_line_header. Take the line
7596 header it built as the first argument, instead of the offset to
7597 the compilation unit's line number info. Use the new `struct
7598 line_header' type instead of the old structures. No need to do
7599 cleanups here now, since we don't allocate anything.
7600 (dwarf2_statement_list_fits_in_line_number_section,
7601 dwarf2_line_header_too_long): New complaints.
7602
ac3aafc7
EZ
76032002-05-06 Elena Zannoni <ezannoni@redhat.com>
7604
7605 * gdbtypes.c (init_vector_type): New function.
7606 (build_builtin_type_vec128): Simplify the representation of SIMD
7607 registers.
7608 (build_gdbtypes): Initialize new builtin vector types.
7609 (_initialize_gdbtypes): Register new vector types with gdbarch.
7610 (builtin_type_v4_float, builtin_type_v4_int32,
7611 builtin_type_v8_int16, builtin_type_v16_int8,
7612 builtin_type_v2_int32, builtin_type_v4_int16,
7613 builtin_type_v8_int8): New (renamed) SIMD types.
7614
13e49980
MK
76152002-05-06 Mark Kettenis <kettenis@gnu.org>
7616
7617 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7618 (i387_fill_fxsave): Likewise.
7619
997b20b8
AO
76202002-05-05 Alexandre Oliva <aoliva@redhat.com>
7621
7622 * alpha-tdep.c (alpha_extract_return_value): Don't use
7623 non-constant array size in prototype.
7624
535c96ce
AC
76252002-05-04 Andrew Cagney <ac131313@redhat.com>
7626
7627 From Brian Taylor <briant at model dot com>:
7628 * ui-out.c (ui_out_field_core_addr): Use the function
7629 longest_local_hex_string_custom'to format addresses > 32 bits
7630 wide.
7631
7632 * ui-out.c (ui_out_field_core_addr): Update comment.
7633
bedfa57b
AC
76342002-05-04 Andrew Cagney <ac131313@redhat.com>
7635
7636 * stack.c (select_and_print_frame): Make static. Delete the
7637 parameter `level'.
7638 (func_command): Update call.
7639 (select_frame_command): Delete code computing the frame level.
7640 * frame.h (select_and_print_frame): Delete declaration.
7641
f621c63e
AC
76422002-05-04 Andrew Cagney <ac131313@redhat.com>
7643
7644 * sparc-tdep.c (sparc_get_saved_register): Comment why
7645 get_prev_frame call is safe.
7646
0f7d239c
AC
76472002-05-04 Andrew Cagney <ac131313@redhat.com>
7648
7649 * frame.h (select_frame): Delete level parameter.
7650 * stack.c (select_frame): Update. Use frame_relative_level to
7651 obtain the frame's level.
7652 (select_and_print_frame): Update call.
7653 (select_frame_command): Ditto.
7654 (up_silently_base): Ditto.
7655 (down_silently_base): Ditto.
7656 * ocd.c (ocd_start_remote): Ditto.
7657 * remote-rdp.c (remote_rdp_open): Ditto.
7658 * remote-mips.c (mips_initialize): Ditto.
7659 (common_open): Ditto.
7660 * remote-e7000.c (e7000_start_remote): Ditto.
7661 * m3-nat.c (select_thread): Ditto.
7662 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7663 (child_get_current_exception_event): Ditto.
7664 * varobj.c (varobj_create): Ditto.
7665 (varobj_update): Ditto.
7666 (c_value_of_root): Ditto.
7667 * tracepoint.c (finish_tfind_command): Ditto.
7668 * corelow.c (core_open): Ditto.
7669 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7670 * thread.c (info_threads_command): Ditto.
7671 (switch_to_thread): Ditto.
7672 * infrun.c (normal_stop): Ditto.
7673 (restore_selected_frame): Ditto.
7674 (restore_inferior_status): Ditto.
7675 * breakpoint.c (insert_breakpoints): Ditto.
7676 (watchpoint_check): Ditto.
7677 (bpstat_stop_status): Ditto.
7678 (do_enable_breakpoint): Ditto.
7679 * blockframe.c (flush_cached_frames): Ditto.
7680 (reinit_frame_cache): Ditto.
7681
71d6c7b1
AC
76822002-05-04 Andrew Cagney <ac131313@redhat.com>
7683
7684 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7685 maintainer.
7686
cda6c68a
JB
76872002-05-04 Jim Blandy <jimb@redhat.com>
7688
7689 * gdbtypes.c (replace_type): Doc fix.
7690
5c1c87f0
AC
76912002-05-04 Andrew Cagney <ac131313@redhat.com>
7692
7693 * valprint.c (strcat_longest): Delete commented out function.
7694 Update copyright.
7695
cd9bfe15
AC
76962002-05-04 Andrew Cagney <ac131313@redhat.com>
7697
7698 * MAINTAINERS: Mark a29k as deleted.
7699 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7700 Move new configurations to the top.
7701 * configure.tgt: Remove a29k.
7702 * config/a29k/tm-vx29k.h: Delete.
7703 * config/a29k/vx29k.mt: Delete.
7704 * config/a29k/tm-a29k.h: Delete.
7705 * config/a29k/a29k-udi.mt: Delete.
7706 * config/a29k/a29k.mt: Delete.
7707 * a29k-tdep.c: Delete.
7708 * remote-udi.c: Delete.
7709 * remote-mm.c: Delete.
7710 * remote-eb.c: Delete.
7711 * remote-adapt.c: Delete.
7712 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7713 * config/s390/s390x.mt: Ditto.
7714 * config/s390/s390.mt: Ditto.
7715 * config/sparc/sparclynx.mh: Ditto.
7716 * config/sparc/linux.mh: Ditto.
7717 * config/pa/hppaosf.mh: Ditto.
7718 * config/pa/hppabsd.mh: Ditto.
7719 * config/ns32k/nbsd.mt: Ditto.
7720 * config/mips/vr5000.mt: Ditto.
7721 * config/m68k/sun3os4.mh: Ditto.
7722 * config/m68k/nbsd.mt: Ditto.
7723 * config/m68k/m68klynx.mh: Ditto.
7724 * config/m32r/m32r.mt: Ditto.
7725 * config/i386/x86-64linux.mt: Ditto.
7726 * config/i386/nbsdelf.mt: Ditto.
7727 * config/i386/nbsd.mt: Ditto.
7728 * config/i386/i386lynx.mh: Ditto.
7729
bf0c5130
AC
77302002-05-04 Andrew Cagney <ac131313@redhat.com>
7731
7732 * target.c (debug_print_register): New function. Handle oversize
7733 registers.
7734 (debug_to_fetch_registers): Call.
7735 (debug_to_store_registers): Call.
7736
2ae1c2d2
JB
77372002-05-03 Jim Blandy <jimb@redhat.com>
7738
13a393b0
JB
7739 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7740 (read_type): Doc fix.
7741 * gdbtypes.c (replace_type): Doc fix.
7742
2ae1c2d2
JB
7743 * stabsread.c (multiply_defined_struct): New complaint.
7744 (read_struct_type): If the type we were passed isn't empty, or
7745 incomplete, don't read the new struct type into it; complain,
7746 and return the original type unchanged. Take a new `type_code'
7747 argument, which is the type code for the new type.
7748 (read_type): Rather than storing the type's type code here, pass
7749 it as an argument to read_struct_type, and let that take care of
7750 storing it. That way, we don't overwrite the original type code,
7751 so read_struct_type can use it to decide whether we're overwriting
7752 something we shouldn't.
7753 (complain_about_struct_wipeout): New function.
7754
8de9bdc4
AC
77552002-05-03 Andrew Cagney <ac131313@redhat.com>
7756
7757 * gdbarch.sh: Assert that gdbarch is non-NULL.
7758 * gdbarch.c: Regenerate.
7759
f773fdbb
JM
77602002-05-03 Jason Merrill <jason@redhat.com>
7761
7762 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7763 and return NULL.
7764
0e04a514
ML
77652002-05-03 Michal Ludvig <mludvig@suse.cz>
7766
7767 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7768 (x86_64_dwarf2gdb_regno_map_length),
7769 (x86_64_dwarf2_reg_to_regnum): Added.
7770 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7771 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7772 (_initialize_x86_64_tdep): Synced with the change above.
7773 (x86_64_skip_prologue): Reformulated message.
7774
065432a8
PM
77752002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7776
7777 * f-exp.y: Also use new prev_lexptr variable
7778 to improve error reporting. Based on Michael Snyder
7779 2002-04-24 dated patch to c-exp.y.
7780 * jv-exp.y: Likewise.
7781 * m2-exp.y: Likewise.
7782
a3162708
EZ
77832002-05-02 Elena Zannoni <ezannoni@redhat.com>
7784
7785 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7786 we are dealing with vectors.
7787
03620c38
PM
77882002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7789
7790 * config/m68k/tm-nbsd.h: Obvious fix,
7791 correct machine name.
7792
6604db2e
PM
77932002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7794
7795 * p-typeprint.c (pascal_type_print_base): Add support
7796 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7797
0906b739
PM
77982002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7799
7800 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7801 for fondamental pascal 'char' type.
7802
e2625b33
PM
78032002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7804
7805 * p-lang.h (is_pascal_string_type): Declaration changed,
7806 new sixth argument of type char ** added.
361d1df0 7807 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7808 changed. Args length_pos, length_size, string_pos, char_size
7809 can now be NULL. New argument arrayname set to the field
7810 name of the char array. Return value set to char array
7811 field index plus one.
361d1df0 7812 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7813 is_pascal_string_type function.
7814
cf17c188
AC
78152002-05-02 Andrew Cagney <cagney@redhat.com>
7816
7817 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7818 <cagney@redhat.com> change.
7819 * gdbarch.c: Regenerate.
7820
52bca491
AC
78212002-05-02 Andrew Cagney <cagney@redhat.com>
7822
7823 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7824 before probing for a new one. Detect errorenous gdbarch_init
7825 functions.
7826 * gdbarch.c: Regenerate.
7827
d5e72505
AC
78282002-05-01 Andrew Cagney <cagney@redhat.com>
7829
7830 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7831 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7832 * config/v850/tm-v850.h: Ditto. Update copyright.
7833
af566d9f
AC
78342002-04-30 Andrew Cagney <ac131313@redhat.com>
7835
7836 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7837 current_gdbarch.
7838
880d85fa
MS
78392002-04-30 Michael Snyder <msnyder@redhat.com>
7840
94c30b78
MS
7841 * arm-tdep.c: Whitespace clean-ups.
7842 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7843 should have been removed as part of 4/24 change.
7844
6f5987a6
KB
78452002-04-30 Kevin Buettner <kevinb@redhat.com>
7846
7847 * rs6000-tdep.c: Added comment describing how fpscr register
7848 numbers were chosen.
7849
1a113c93
MS
78502002-04-30 Michael Snyder <msnyder@redhat.com>
7851
7852 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7853
9a6f53fe
EZ
78542002-04-29 Elena Zannoni <ezannoni@redhat.com>
7855
7856 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7857 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7858 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7859
11ed25ac
KB
78602002-04-29 Kevin Buettner <kevinb@redhat.com>
7861
7862 From Louis Hamilton <hamilton@redhat.com>:
7863 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7864 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7865 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7866 not bfd-private xcoff data, to determine wordsize.
7867 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7868
ae232405
AC
78692002-04-29 Andrew Cagney <ac131313@redhat.com>
7870
7871 GDB 5.2 released from 5.2 branch.
7872
91fd20f7
ML
78732002-04-29 Michal Ludvig <mludvig@suse.cz>
7874
7875 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7876 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7877 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7878
2dc5091b
EZ
78792002-04-29 Elena Zannoni <ezannoni@redhat.com>
7880
7881 * rs6000-tdep.c (rs6000_extract_return_value,
7882 rs6000_store_return_value): Handle returning vectors.
7883 (rs6000_gdbarch_init): Use
7884 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7885 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7886 New function.
7887 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7888 vectors.
7889 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7890 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7891
2b9848d8
PM
78922002-04-24 Pierre Muller <ics.u-strasbg.fr>
7893
7894 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7895 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7896 with fprintf_unfiltered (gdb_stderr,...).
7897
f8d17dc5
PM
78982002-04-24 Pierre Muller <ics.u-strasbg.fr>
7899
7900 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7901 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7902 Replace fprintf (stderr,...
7903 with fprintf_unfiltered (gdb_stderr,....
7904 * remote-es.c: Likewise.
7905 * remote-os9k.c: Likewise.
7906 * remote-st.c: Likewise.
7907
2f2f1ad1
AS
79082002-04-28 Andreas Schwab <schwab@suse.de>
7909
7910 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7911 linux-proc.o and gcore.o.
7912
b6779aa2
AC
79132002-04-26 Michal Ludvig <mludvig@suse.cz>
7914
7915 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7916 code without frame pointers.
7917
7e57f5f4
AC
79182002-04-26 Andrew Cagney <ac131313@redhat.com>
7919
7920 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7921 ON_STACK is needed.
7922
2ceb85d0
BE
79232002-04-26 Ben Elliston <bje@redhat.com>
7924
7925 * target.c (do_xfer_memory): Correct reference to the new option
7926 "trust-readonly-sections".
7927
f5f8a009
EZ
79282002-04-26 Elena Zannoni <ezannoni@redhat.com>
7929
7930 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7931 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7932 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7933 vectors.
7934 (read_array_type): Record the fact that this array type is really a
7935 vector (i.e. are passed in by value).
7936
5868c862
JT
79372002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7938
7939 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7940 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7941 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7942 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7943 * alpha-linux-tdep.c: Include frame.h.
7944 (alpha_linux_sigcontext_addr): New function.
7945 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7946 alpha_linux_sigcontext_addr.
7947 * alpha-osf1-tdep.c: Include gdbcore.h.
7948 (alpha_osf1_sigcontext_addr): New function.
7949 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7950 alpha_osf1_sigcontext_addr.
7951 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7952 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7953
bfb01f37
AC
79542002-04-26 Andrew Cagney <ac131313@redhat.com>
7955
361d1df0 7956 * stack.c (selected_frame_level):
bfb01f37
AC
7957 (select_frame): Do not set selected_frame_level.
7958 * frame.h (selected_frame_level): Delete declaration.
7959
15813d3f
AC
79602002-04-26 Andrew Cagney <ac131313@redhat.com>
7961
7962 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7963 convert_from_func_ptr-addr when AIX / PowerOpen.
7964
6096c27a
AC
79652002-04-25 Andrew Cagney <ac131313@redhat.com>
7966
7967 * valops.c (hand_function_call): Call
7968 generic_save_call_dummy_addr.
7969 * frame.h (generic_save_call_dummy_addr): Declare.
7970 * blockframe.c (struct dummy_frame): Add fields call_lo and
7971 call_hi.
7972 (generic_find_dummy_frame): Check for PC in range call_lo to
7973 call_hi instead of entry_point_address.
7974 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7975 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7976 (generic_save_call_dummy_addr): New function.
7977
f510d44e
DM
79782002-04-24 David S. Miller <davem@redhat.com>
7979
7980 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7981 sparc_skip_prologue.
7982 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7983 information to find prologue when possible.
7984 (sparc_prologue_frameless_p): Call examine_prologue directly.
7985 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7986 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7987 second argument.
7988 (SKIP_PROLOGUE): Likewise.
7989
15d72a92
JT
79902002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7991
7992 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7993 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7994 indicate that the condition it was testing is always true.
7995 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7996 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7997 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7998
accc6d1f
JT
79992002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8000
8001 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8002 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8003 tdep->jb_pc and tdep->jb_elt_size.
8004 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8005 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8006 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8007 * alpha-nat.c (get_longjmp_target): Remove.
8008 (JB_ELEMENT_SIZE): Ditto.
8009 (JB_PC): Ditto.
8010 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8011 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8012 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8013 to alpha_get_longjmp_target.
8014 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8015 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8016 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8017
1bfdc549
AC
80182002-04-25 Andrew Cagney <ac131313@redhat.com>
8019
8020 * README: Update to GDB 5.2.
8021
1bd316f0
AC
80222002-04-25 Andrew Cagney <ac131313@redhat.com>
8023
8024 * gdbarch.sh (LC_ALL): Set to `c'.
8025
2e5ff58c
TR
80262002-04-25 Theodore A. Roth <troth@verinet.com>
8027
8028 * avr-tdep.c: Ran through gdb_indent.sh.
8029
e33ce519
TR
80302002-04-25 Theodore A. Roth <troth@verinet.com>
8031
8032 * MAINTAINERS: Add myself as AVR maintainer.
8033 * NEWS: Note new target avr.
8034
8818c391
TR
80352002-04-25 Theodore A. Roth <troth@verinet.com>
8036
8037 * Makefile.in: Add support for AVR target.
8038 * configure.tgt: Add support for AVR target.
8039 * avr-tdep.c: New file
8040 * config/avr/avr.mt: New file.
8041
79509c2d
TR
80422002-04-25 Theodore A. Roth <troth@verinet.com>
8043
8044 * MAINTAINERS: Add myself to write-after-approval.
8045
dac8068e
PM
80462002-04-24 Pierre Muller <ics.u-strasbg.fr>
8047
8048 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8049 with fprintf_unfiltered (gdb_stderr,....
8050
25bf3106
PM
80512002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8052
8053 Fix PR gdb/508.
8054 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8055
24467a86
PM
80562002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8057
8058 * p-exp.y: Also use new prev_lexptr variable
8059 to improve error reporting. Based on Michael Snyder
8060 2002-04-24 dated patch to c-exp.y.
8061
95b80706
JT
80622002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8063
8064 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8065 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8066 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8067 to 0.
8068 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8069 and struct value.
8070 (FUNCTION_START_OFFSET): Remove.
8071 (BREAKPOINT): Ditto.
8072
e90cc612
JT
80732002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8074
8075 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8076 * NEWS: Ditto.
8077
6c72f9f9
JT
80782002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8079
8080 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8081 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8082 alpha_linux_pc_in_sigtramp.
8083 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8084 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8085 alpha_osf1_pc_in_sigtramp.
8086 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8087 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8088 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8089 alphafbsd_pc_in_sigtramp.
8090 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8091 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8092 alphanbsd_pc_in_sigtramp.
8093 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8094 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8095
5e4f3379
JT
80962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8097
8098 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8099
da8ca43d
JT
81002002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8101
8102 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8103 alphanbsd-tdep.c.
8104 (alphanbsd-nat.o): New dependency list.
8105 (alphanbsd-tdep.o): Ditto.
8106 * NEWS: Note new native NetBSD/alpha configuration.
8107 * alphanbsd-nat.c: New file.
8108 * alphanbsd-tdep.c: Ditto.
8109 * configure.host (alpha*-*-netbsd*): New host.
8110 * configure.tgt (alpha*-*-netbsd*): New target.
8111 * config/alpha/nbsd.mh: New file.
8112 * config/alpha/nbsd.mt: Ditto.
8113 * config/alpha/nm-nbsd.h: Ditto.
8114 * config/alpha/tm-nbsd.h: Ditto.
8115
36a6271d
JT
81162002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8117
8118 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8119 (alpha-osf1-tdep.o): New dependency list.
8120 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8121 and skip_sigtramp_frame members.
8122 * alpha-linux-tdep.c: Include gdbcore.h.
8123 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8124 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8125 * alpha-osf1-tdep.c: New file.
8126 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8127 alpha-osf1-dep.c.
8128 (alpha_frame_past_sigtramp_frame): New function.
8129 (alpha_dynamic_sigtramp_offset): Ditto.
8130 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8131 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8132 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8133 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8134 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8135 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8136 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8137 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8138 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8139 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8140 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8141 to find_solib_trampoline_target.
8142 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8143 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8144 (SKIP_TRAMPOLINE_CODE): Remove.
8145 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8146 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8147 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8148 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8149 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8150 (PROC_SIGTRAMP_MAGIC): Ditto.
8151 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8152 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8153 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8154 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8155 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8156
2f4bc57b
JT
81572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8158
8159 * NEWS: Note that Alpha targets are now multi-arch.
8160
665132f9
MS
81612002-04-24 Michael Snyder <msnyder@redhat.com>
8162
8163 * parser-defs.h (prev_lexptr): New external variable.
8164 * parse.c (parse_exp_1): Set prev_lexptr to null before
8165 calling the language-specific parser.
8166 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8167 (yyerror): Use prev_lexptr in error reporting.
8168
32872fa7
DJ
81692002-04-24 Daniel Jacobowitz <drow@mvista.com>
8170
8171 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8172 * gregset.h: If FILL_FPXREGSET is defined, provide
8173 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8174 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8175 is defined, call fill_fpxregset.
8176
57e76fac
MS
81772002-04-24 Roland McGrath <roland@frob.com>
8178
8179 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8180 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8181 (supply_gregset, supply_fpregset): New functions.
8182
8183 * gnu-nat.c (gnu_find_memory_regions): New function.
8184 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8185 (gnu_xfer_memory): Add a cast.
8186
f43845b3
MS
81872002-04-24 Michael Snyder <msnyder@redhat.com>
8188
361d1df0 8189 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
8190 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8191 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 8192 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
8193 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8194 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8195
a0abec03
AC
8196Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8197
8198 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8199 NUM_PSEUDO_REGS can be used.
8200
d7bd68ca
AC
82012002-04-24 Andrew Cagney <ac131313@redhat.com>
8202
8203 * arch-utils.h: Update copyright.
8204
8205 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8206 * gdbarch.h, gdbarch.c: Re-generate.
8207
8208 * inferior.h (IN_SIGTRAMP): Delete definition.
8209 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8210 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8211
8212 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8213 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8214 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8215 (find_proc_framesize): Ditto.
8216 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8217 (alpha_init_extra_frame_info): Ditto.
8218 * infrun.c (handle_inferior_event): Ditto.
8219 (handle_inferior_event): Ditto.
8220 (check_sigtramp2): Ditto.
8221 * blockframe.c (create_new_frame): Ditto.
8222 (get_prev_frame): Ditto.
8223 * ppc-linux-tdep.c: Update comments.
8224 * i386-linux-tdep.c: Update comments.
8225 * breakpoint.c (bpstat_what): Update comment.
8226
4867e41e
DM
82272002-04-24 David S. Miller <davem@redhat.com>
8228
21d83aa5
DM
8229 * i960-tdep.c (register_in_window_p): New function.
8230 (i960_find_saved_register): Use it instead of
8231 REGISTER_IN_WINDOW_P.
8232 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8233
4867e41e
DM
8234 * symtab.h (find_stab_function_addr): Kill extern.
8235 * minsyms.c (find_stab_function_addr): Remove from here...
8236 * dbxread.c: ... to here, and mark it static.
8237
69cdf6a2
DM
82382002-04-20 David S. Miller <davem@redhat.com>
8239
8240 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8241 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8242
5a595886
DM
82432002-04-21 David S. Miller <davem@redhat.com>
8244
8245 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8246 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8247 (vx_write_register): Likewise.
8248
1da1a192
JB
82492002-04-23 J. Brobecker <brobecker@gnat.com>
8250
8251 * source.c (is_regular_file): New function.
8252 (openp): Check wether file to open is a regular file
8253 to avoid opening directories.
8254
baa6f10b
JT
82552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8256
8257 * findvar.c (extract_signed_integer): Cast printf argument
8258 to suppress format warning.
8259 (extract_unsigned_integer): Likewise.
8260 * infcmd.c (registers_info): Likewise.
8261 * top.c (get_prompt_1): Likewise.
8262 * valops.c (value_assign): Likewise.
8263 * valprint.c (print_decimal): Likewise.
8264
b2c4da81
L
82652002-04-22 H.J. Lu (hjl@gnu.org)
8266
8267 * c-exp.y (typebase): Support
361d1df0 8268
b2c4da81
L
8269 [long|long long|short] [signed|unsigned] [int|]
8270
8271 and
8272
8273 signed [long|long long|short] int
8274
f267bd6a
JT
82752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8276
8277 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8278 and vax-tdep.h.
8279 * vax-tdep.h: New file.
8280 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8281 Make several routines static.
8282 (vax_get_saved_register): New function.
8283 (vax_gdbarch_init): New function.
8284 (_initialize_vax_tdep): Register vax_gdbarch_init.
8285 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8286 Remove macros now under the control of gdbarch.
8287
da3c6d4a
MS
82882002-04-22 Michael Snyder <msnyder@redhat.com>
8289
11d3b27d
MS
8290 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8291 Some whitespace and coding standards tweaks.
da3c6d4a 8292
a33f7558
JT
82932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8294
8295 * vax-tdep.c: Include regcache.h.
8296 (vax_call_dummy_words): New.
8297 (sizeof_vax_call_dummy_words): New.
8298 (vax_fix_call_dummy): New function.
8299 (vax_saved_pc_after_call): Ditto.
8300 * config/vax/tm-vax.h: Don't include regcache.h.
8301 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8302 (CALL_DUMMY): Remove.
8303 (CALL_DUMMY_WORDS): Define.
8304 (SIZEOF_CALL_DUMMY_WORDS): Define.
8305 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8306
47a73475
MS
83072002-04-18 Michael Snyder <msnyder@redhat.com>
8308
8309 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8310
52efde73
JT
83112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8312
8313 * vax-tdep.c (vax_frame_chain): New function.
8314 (vax_push_dummy_frame): Ditto.
8315 (vax_pop_frame): Ditto.
8316 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8317 (FRAMELESS_FUNCTION_INVOCATION): Use
8318 generic_frameless_function_invocation_not.
8319 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8320 (POP_FRAME): Use vax_pop_frame.
8321
ea74468c
JT
83222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8323
8324 * vax-tdep.c (vax_store_struct_return): New function.
8325 (vax_extract_return_value): Ditto.
8326 (vax_store_return_value): Ditto.
8327 (vax_extract_struct_value_address): Ditto.
8328 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8329 vax_store_struct_return.
8330 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8331 (STORE_RETURN_VALUE): Use vax_store_return_value.
8332 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8333
5516aa92
JT
83342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8335
8336 * vax-tdep.c (vax_frame_saved_pc): New function.
8337 (vax_frame_args_address_correct): Ditto.
8338 (vax_frame_args_address): Ditto.
8339 (vax_frame_locals_address): Ditto.
8340 (vax_frame_num_args): Move code to be in proximity to
8341 other frame-related functions.
8342 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8343 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8344 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8345 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8346 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8347
36af0b35
L
83482002-04-22 H.J. Lu (hjl@gnu.org)
8349
8350 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8351 includedir.
8352
ab62c900
JT
83532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8354
8355 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8356 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8357 (FRAME_INIT_SAVED_REGS): New macro.
8358
7232b100
JT
83592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8360
8361 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8362
b70d2aee
JT
83632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8364
8365 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8366 where needed.
8367 (fetch_osf_core_registers): Likewise.
8368 (supply_gregset): Likewise.
8369
a0e8a2d1 83702002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8371
a0e8a2d1
JB
8372 * symfile.h (get_section_index): Define.
8373 * symfile.c (get_section_index): New function.
8374 * mdebugread.c (SC_IS_SBSS): New macro.
8375 (SC_IS_BSS): Return true for the scBss storage class only, as
8376 the scSBss storage class refers to the .sbss section.
8377 (parse_partial_symbols): Discard the symbols which associated
8378 section does not exist.
8379 Make sure to use the .sbss section index for symbols which
8380 storage class is scBss, rather than using the .bss section index.
8381
51eb8b08
JT
83822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8383
8384 * vax-tdep.c: Update copyright years.
8385 (vax_register_name): New function.
8386 (vax_register_byte): Ditto.
8387 (vax_register_raw_size): Ditto.
8388 (vax_register_virtual_size): Ditto.
8389 (vax_register_virtual_type): Ditto.
8390 * config/vax/tm-vax.h: Update copyright years.
8391 (REGISTER_NAMES): Remove.
8392 (REGISTER_NAME): Define.
8393 (REGISTER_BYTE): Use vax_register_byte.
8394 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8395 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8396 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8397
6cc1c0a8
AC
83982002-04-21 Andrew Cagney <ac131313@redhat.com>
8399
8400 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8401 declaration
8402 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8403
9319a2fe
DM
84042002-04-21 David S. Miller <davem@redhat.com>
8405
8406 * arch-utils.c (generic_prologue_frameless_p): Kill
8407 SKIP_PROLOGUE_FRAMELESS_P code.
8408 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8409 references.
8410 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8411 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8412 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8413 references.
8414 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8415 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8416 (sparc_gdbarch_init): Pass it to
8417 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8418
e9ed6d01
JT
84192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8420
8421 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8422 (alphabsd-nat.o): New dependency list.
8423
36012033
JT
84242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8425
8426 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8427 alphafbsd-tdep.c.
8428 (alpha-linux-tdep.o): New dependency list.
8429 (alphafbsd-tdep.o): Likewise.
8430
3379287a
JT
84312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8432
8433 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8434 to here...
8435 * alpha-tdep.c: ...from here.
8436 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8437
4bcbd6cb
JT
84382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8439
8440 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8441 prototype from here...
8442 * alpha-tdep.h: ...to here.
8443
b31da25e
AC
84442002-04-21 Andrew Cagney <ac131313@redhat.com>
8445
8446 * frame.h (selected_frame_level): Document as deprecated.
8447 (frame_relative_level): Declare.
8448 * stack.c (frame_relative_level): New function.
8449 (selected_frame_level): Document as deprecated.
8450 (select_frame): Do not set the selected_frame_level.
8451
8452 * stack.c (frame_info, record_selected_frame): Update.
8453 (frame_command, current_frame_command): Update.
8454 (up_silently_base, up_command, down_silently_base): Update.
8455 (down_command): Update.
8456 * inflow.c (kill_command): Update.
8457 * tracepoint.c (finish_tfind_command): Update.
8458 * corelow.c (core_open): Update.
8459 * thread.c (info_threads_command): Update.
8460 (do_captured_thread_select): Update.
8461 * infcmd.c (finish_command): Update.
8462 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8463
9c1d6fe5
JT
84642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8465
8466 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8467
ab89facf
AC
84682002-04-21 Andrew Cagney <ac131313@redhat.com>
8469
8470 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8471 type const.
8472
82a4efa1
JT
84732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8474
8475 * alphafbsd-tdep.c: Update copyright years. Include
8476 alpha-tdep.h.
8477 (alphafbsd_use_struct_convention): Make static.
8478 (alphafbsd_init_abi): New function.
8479 (_initialize_alphafbsd_tdep): New function.
8480 * config/alpha/tm-fbsd.h: Update copyright years.
8481 (USE_STRUCT_CONVENTION): Remove.
8482
44dffaac
JT
84832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8484
8485 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8486 an Alpha ABI variant.
8487 (alpha_abi_handler_list): Declare.
8488 (alpha_gdbarch_register_os_abi): New function.
8489 (alpha_gdbarch_init): Give registered ABI variant handlers a
8490 chance to tweak the gdbarch once we have set up defaults.
8491 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8492
65585be4
JT
84932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8494
8495 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8496 to standard_coerce_float_to_double.
8497 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8498
d9b023cc
JT
84992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8500
8501 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8502 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8503 from gdbarch_tdep rather than a constant.
8504 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8505 the default text address for all Alpha Unix ABIs.
8506 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8507 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8508
dc129d82
JT
85092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8510
8511 * alpha-tdep.h: New file. Includes several Alpha target constants
8512 taken from...
8513 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8514 let gdbarch deal with.
8515 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8516 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8517 to dependency list.
8518 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8519 Alpha target register names.
8520 * alphabsd-nat.c: Likewise.
8521 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8522 Alpha target register names. Make serveral routines static.
8523 (alpha_get_saved_register): New function.
8524 (alpha_abi_names): New.
8525 (process_note_abi_tag_sections): New function.
8526 (get_elfosabi): New function.
8527 (alpha_gdbarch_init): New function.
8528 (alpha_dump_tdep): New function.
8529 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8530
d49d1e0a
AC
85312002-04-21 Andrew Cagney <ac131313@redhat.com>
8532
8533 * frame.c (find_saved_register): Delete #ifdef
8534 HAVE_REGISTER_WINDOWS code.
8535 * config/sparc/tm-sparc.h: Update comments.
8536 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8537
92e8c9ed
AC
85382002-04-21 Andrew Cagney <ac131313@redhat.com>
8539
8540 * i960-tdep.c (i960_find_saved_register): New function.
8541 (i960_get_saved_register): New function.
8542 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8543 (i960_get_saved_register): Declare.
8544 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8545
e1925118
DM
85462002-04-20 David S. Miller <davem@redhat.com>
8547
8548 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8549
29673b29
AC
85502002-04-20 Andrew Cagney <ac131313@redhat.com>
8551
8552 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8553 instead of NUM_PSEUDO_REGS.
8554
6c86dcd5
DM
85552002-04-20 David S. Miller <davem@redhat.com>
8556
8557 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8558 GDB_MULTI_ARCH_PARTIAL
8559 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8560 define, let tm-sp64.h do it.
8561
aa40ec90
JT
85622002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 * frame.c (find_saved_register): Avoid a NULL pointer
8565 dereference and actually walk the frame list.
8566
0f79675b
AC
85672002-04-20 Andrew Cagney <ac131313@redhat.com>
8568
8569 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8570 sorted in most most-recent-used order. Document.
8571 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8572
f91305dd 85732002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8574
8575 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8576 instead of ->prev.
8577 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8578 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8579 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8580 instead of ->prev.
8581
73d322b1
EZ
85822002-04-19 Elena Zannoni <ezannoni@redhat.com>
8583
8584 Fix PR gdb/471.
8585 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8586 (build_builtin_type_vec128): Ditto.
8587 (append_composite_type_field): Fix calculation of type length in
8588 union case.
8589
ccd9a834
EZ
85902002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8591
8592 * config/djgpp/README: Update.
8593
8594 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8595 compiler warnings.
8596
a57f9e49
JT
85972002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8598
8599 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8600 (alpha_setup_arbitrary_frame): ...to this.
8601 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8602 for alpha_setup_arbitrary_frame.
8603
f4f9705a
AC
86042002-04-18 Andrew Cagney <cagney@redhat.com>
8605
8606 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8607 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8608
f4f9705a
AC
8609 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8610 * target.h (memory_breakpoint_from_pc): Update declaration.
8611 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8612
8613 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8614 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8615 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8616 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8617 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8618 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8619 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8620 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8621 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8622 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8623 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8624 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8625
8626 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8627 const pointer.
8628 * monitor.c (monitor_insert_breakpoint): Ditto.
8629 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8630
8631 * config/mcore/tm-mcore.h: Update copyright.
8632 * mem-break.c: Ditto.
8633 * xstormy16-tdep.c: Ditto.
8634
29f319b8
PM
86352002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8636
8637 * p-exp.y: Add precedence rule for '^' token.
8638 This removes the shift/reduce conflicts.
8639 Remove the comment concerning these shift/reduce conflicts.
8640
ebeac11a
EZ
86412002-04-18 Elena Zannoni <ezannoni@redhat.com>
8642
8643 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8644 (registers_powerpc_nofp): New register set for processors
8645 without floating point unit.
8646
27c31547
DM
86472002-04-18 David S. Miller <davem@redhat.com>
8648
8649 * MAINTAINERS: Add myself to write-after-approval.
8650
47a73475
MS
86512002-04-17 Michael Snyder <msnyder@redhat.com>
8652
8653 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8654
953836b2
AC
86552002-04-17 Andrew Cagney <ac131313@redhat.com>
8656
8657 * rs6000-tdep.c (frame_initial_stack_address): Use
8658 frame_register_read to read the alloca_reg.
8659
8b0d4340
AC
86602002-04-17 Andrew Cagney <ac131313@redhat.com>
8661
8662 * frame.c (find_saved_register): Find saved registers in the next
8663 not prev frame.
8664 Fix PR gdb/365.
8665
d8864532
AC
86662002-04-17 Andrew Cagney <ac131313@redhat.com>
8667
8668 * gdbarch.sh (LANG): Set to ``c''.
8669
36cc83a3 86702002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8671
36cc83a3 8672 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8673
2f4150cc 86742002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8675
8676 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8677 Update copyright.
8678
628703c6 8679 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8680 Also fix PR gdb/391.
361d1df0 8681
56157b4a
AC
86822002-04-14 Andrew Cagney <ac131313@redhat.com>
8683
8684 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8685 * aclocal.m4, configure: Re-generate.
8686 Fix PR gdb/391.
361d1df0 8687
6d1e3329
EZ
86882002-04-14 Elena Zannoni <ezannoni@redhat.com>
8689
8690 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8691 instead of tm_print_insn.
8692
cb06fa07
EZ
86932002-04-14 Elena Zannoni <ezannoni@redhat.com>
8694
8695 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8696
f208ba17
AC
86972002-04-14 Andrew Cagney <ac131313@redhat.com>
8698
8699 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8700 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8701 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8702
20f01a46
DH
87032002-04-12 Don Howard <dhoward@redhat.com>
8704
8705 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8706 max_user_call_depth.
8707 (init_cmd_lists): Initialize the new value;
8708 * cli/cli-script.c (execute_user_command): Limit the call depth of
8709 user defined commands. This avoids a core-dump when user commands
8710 are infinitly recursive.
8711
a88376a3
KB
87122002-04-12 Kevin Buettner <kevinb@redhat.com>
8713
8714 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8715 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8716 from tdep struct instead of DEFAULT_LR_SAVE.
8717 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8718 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8719 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8720
f2172603
MS
87212002-04-12 Michael Snyder <msnyder@redhat.com>
8722
694f61fb 8723 * Remote.c: Spelling fix.
20fe79c8
MS
8724 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8725 If no symbol found for "sbrk", try "_sbrk".
8726 (make_output_phdrs): Use bfd_section_name.
8727 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8728 * eval.c: Indentation fix-ups.
169a7369
MS
8729 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8730 in case it gets applied to an address that is already
8731 in the instruction space.
de74f71f
MS
8732 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8733 * symfile.c: Fix indentation, long lines.
f2172603
MS
8734 * source.c: White space fix-up.
8735
cda5a58a
AC
87362002-04-12 Andrew Cagney <cagney@redhat.com>
8737
8738 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8739 * frame.c (frame_register_read): New function. Return non-zero on
8740 success.
8741 (read_relative_register_raw_bytes_for_frame): Delete.
8742 (read_relative_register_raw_bytes): Delete.
8743 * frame.h (frame_register_read): Declare.
8744 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8745 * sh-tdep.c: Ditto.
8746 * infcmd.c (do_registers_info): Ditto.
8747 * hppa-tdep.c: Ditto.
8748 * rs6000-tdep.c: Ditto.
8749 * h8500-tdep.c: Ditto.
8750 * mips-tdep.c: Ditto.
8751 * h8300-tdep.c: Ditto.
8752 * z8k-tdep.c: Ditto.
8753
2ea5f656
KB
87542002-04-12 Kevin Buettner <kevinb@redhat.com>
8755
8756 From Jimi X <jimix@watson.ibm.com>:
8757 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8758 64-bit SysV ABI.
8759
27b15785
KB
87602002-04-12 Kevin Buettner <kevinb@redhat.com>
8761
8762 From Jimi X <jimix@watson.ibm.com>:
8763 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8764 bfd info.
8765
5d57ee30
KB
87662002-04-12 Kevin Buettner <kevinb@redhat.com>
8767
8768 From Jimi X <jimix@watson.ibm.com>:
8769 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8770 register sets for these processor variants.
8771
bc1e36ca
DJ
87722002-04-11 Daniel Jacobowitz <drow@mvista.com>
8773
bc1e36ca
DJ
8774 * regformats/reg-ppc.dat: Support FPSCR.
8775
e3f36dbd
KB
87762002-04-11 Kevin Buettner <kevinb@redhat.com>
8777
8778 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8779 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8780 Add fpscr as an invalid/unfetchable register.
8781 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8782 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8783 (fill_fpregset): Add support for register fpscr.
8784 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8785 (fill_gregset): Account for the fact that register ``mq'' might
8786 not exist.
8787 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8788 (registers_power): Add fpscr to register set at slot 71.
8789 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8790 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8791
943c9c25
MS
87922002-04-11 Michael Snyder <msnyder@redhat.com>
8793
8794 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8795 * configure: Regenerate.
8796 * config.in: Regenerate.
8797 * acconfig.h: Add define for _SYSCALL32.
8798 * core-sol2.c: Remove #define _SYSCALL32.
8799 * solib-legacy.c: Remove #define _SYSCALL32.
8800
d8c0a2e7
AC
88012002-04-10 Andrew Cagney <ac131313@redhat.com>
8802
8803 * stack.c (select_frame): Cleanup internal error message, do not
8804 use %p.
8805
7cc19214
AC
88062002-04-10 Andrew Cagney <ac131313@redhat.com>
8807
8808 * stack.c (select_frame): Check that selected_frame and the
8809 specified level are as expected.
8810 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8811 Update copyright.
8812 * frame.h (struct frame_info): Add field `level'. Update
8813 copyright.
8814 Work-in-progress PR gdb/464.
8815
67a2b77e
AC
88162002-04-10 Andrew Cagney <ac131313@redhat.com>
8817
8818 * maint.c (maint_print_section_info): Rename print_section_info.
8819 (print_bfd_section_info, print_objfile_section_info): Update.
8820 * inferior.h (struct gdbarch): Add opaque declaration.
8821 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8822 * gdbarch.h: Regenerate.
8823
8cfda98c
ML
88242002-04-10 Michal Ludvig <mludvig@suse.cz>
8825
8826 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8827 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8828 (kernel_u_size): Added.
8829 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8830 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8831
ca439ad2 88322002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8833
ca439ad2
JI
8834 * valarith.c (find_size_for_pointer_math): New function, either returns
8835 the size for a pointer's target, returns 1 for void *, or errors for
8836 incomplete types.
8837 (value_add, value_sub): use find_size_for_pointer_math.
8838
2f2893d9
DJ
88392002-04-09 Daniel Jacobowitz <drow@mvista.com>
8840
8841 * linux-low.c (linux_look_up_symbols): New hook.
8842 (linux_target_ops): Add linux_look_up_symbols.
8843 * remote-utils.c (decode_address): New function.
8844 (look_up_one_symbol): New function.
8845 * server.c (handle_query): Call target look_up_symbols hook.
8846 * server.h (look_up_one_symbol): Add prototype.
8847 * target.h (struct target_ops): Add look_up_symbols hook.
8848
96cb11df
AC
88492002-04-09 Andrew Cagney <ac131313@redhat.com>
8850
8851 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8852 override FP_REGNUM with frame->fp. Update copyright.
8853 * parse.c (num_std_regs, std_regs): Delete.
8854 (target_map_name_to_register): Do not search std_regs. Update
8855 function description.
8856 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8857 declarations. Update copyright.
8858 Fix PR gdb/251.
361d1df0 8859
97658e92
DJ
88602002-04-09 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8863 after the last symbol in a block.
8864
6044e3eb
PM
88652002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8866
8867 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8868 is non zero as a found symbol.
8869
0406ec40
AC
88702002-04-08 Andrew Cagney <ac131313@redhat.com>
8871
8872 * findvar.c: Include "builtin-regs.h".
8873 (value_of_register): Call value_of_builtin_reg when applicable.
8874 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8875 (target_map_name_to_register): Call
8876 builtin_reg_map_name_to_regnum.
8877 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8878 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8879 (builtin_regs_h): Define.
8880 (builtin-regs.o): New target.
8881 (findvar.o): Add $(builtin_regs_h).
8882 * builtin-regs.c, builtin-regs.h: New files.
8883 * std-regs.c: New file.
8884 Partial fix for PR gdb/251.
8885
56a6dfb9
KB
88862002-04-08 Kevin Buettner <kevinb@redhat.com>
8887
8888 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8889 it's no longer required.
8890
3a808432
AC
88912002-04-08 Andrew Cagney <ac131313@redhat.com>
8892
8893 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8894
7c40d541
KB
88952002-04-08 Kevin Buettner <kevinb@redhat.com>
8896
8897 From Jimi X <jimix@watson.ibm.com>:
8898 * rs6000-tdep.c (rs6000_software_single_step): Use
8899 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8900 and size. Use target_insert_breakpoint() and
8901 target_remove_breakpoint() to insert and remove breakpoints
8902 instead of explicit memory reads and writes.
8903
cc9836a8
KB
89042002-04-08 Kevin Buettner <kevinb@redhat.com>
8905
8906 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8907 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8908 ELF_OBJECT_FORMAT ifdef.
8909
7495d1dc
KB
89102002-04-08 Kevin Buettner <kevinb@redhat.com>
8911
8912 From Jimi X <jimix@watson.ibm.com>:
8913 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8914
4288e836
KB
89152002-04-08 Kevin Buettner <kevinb@redhat.com>
8916
8917 From Jimi X <jimix@watson.ibm.com>:
8918 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8919 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8920
a4e4e501
MK
89212002-04-07 Mark Kettenis <kettenis@gnu.org>
8922
8923 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8924 s/asprintf/xasprintf/.
8925 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8926
006defba
AC
89272002-04-07 Andrew Cagney <ac131313@redhat.com>
8928
8929 I believe Jeff Law denies responsability for this one:
8930 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8931 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8932 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8933 Work-around for PR gdb/366.
8934
7aa83cac
EZ
89352002-04-07 Elena Zannoni <ezannoni@redhat.com>
8936
8937 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8938 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8939 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8940
cf1fcca1
EZ
89412002-04-07 Elena Zannoni <ezannoni@redhat.com>
8942
8943 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8944 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8945 information.
8946
3f289e6f
AC
89472002-04-07 Andrew Cagney <ac131313@redhat.com>
8948
8949 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8950 maintainer.
8951
129188f6
AC
89522002-04-07 Andrew Cagney <ac131313@redhat.com>
8953
8954 * README (Reporting Bugs in GDB): Document the bug web page as the
8955 prefered way of submitting bugs.
8956 Fix PR gdb/402.
8957
1200cd6e
AC
89582002-04-06 Andrew Cagney <ac131313@redhat.com>
8959
8960 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8961 -1. Update comment.
8962 * gdbarch.h, gdbarch.c: Re-generate.
8963
2853c33c
AS
89642002-04-07 Andreas Schwab <schwab@suse.de>
8965
8966 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8967 buffer to regcache_collect.
8968
c2169756
AC
89692002-04-06 Andrew Cagney <ac131313@redhat.com>
8970
8971 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8972 * gdbarch.c, gdbarch.h: Re-generate.
8973
25f1b008
AC
89742002-04-06 Andrew Cagney <ac131313@redhat.com>
8975
8976 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8977 declaration. Fix -Werror.
8978
59263426
DJ
89792002-04-05 Daniel Jacobowitz <drow@mvista.com>
8980
8981 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8982 * gdbarch.c: Regenerate.
8983
f5db4da3
MS
89842002-04-05 Michael Snyder <msnyder@redhat.com>
8985
80f8a6eb
MS
8986 * breakpoint.c (clear_command): Rewrite middle section to
8987 combine two loops with identical control conditions.
8988 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8989 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8990
ad3dcc5c
L
89912002-04-05 H.J. Lu (hjl@gnu.org)
8992
8993 * solib-svr4.c (bkpt_names): Add "__start".
8994
f32e7a74
AC
89952002-04-04 Andrew Cagney <ac131313@redhat.com>
8996
8997 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8998 as test for 64 bit target.
8999
8227c0ff
AC
90002002-04-05 Andrew Cagney <ac131313@redhat.com>
9001
9002 * h8500-tdep.c (h8500_write_fp): Delete function.
9003 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9004 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9005 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9007 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9008 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9009 (s390_write_fp):
9010 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9011 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9012 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9013 (d10v_write_fp): Delete function.
9014 * inferior.h (write_fp, generic_target_write_fp): Delete
9015 declarations.
9016 * regcache.c (generic_target_write_fp): Delete function.
9017 (write_fp): Delete function.
9018 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9019 * gdbarch.h, gdbarch.c: Regenerate.
9020 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9021 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9022 (sparc64_write_fp): Delete declaration.
9023 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9024 (h8500_write_fp): Delete declaration.
9025
2757dd86
AC
90262002-04-04 Andrew Cagney <ac131313@redhat.com>
9027
9028 * sparc-tdep.c (sparc64_write_fp): Delete.
9029 (sparc_push_dummy_frame): Replace write_fp call with code to store
9030 the FP directly.
9031 (sparc_gdbarch_init): Do not initialize write_fp.
9032
c69255e1
KB
90332002-04-05 Kevin Buettner <kevinb@redhat.com>
9034
9035 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9036 clause.
9037
ae767bfb
JB
90382002-03-29 Jim Blandy <jimb@redhat.com>
9039
9040 * stack.c (get_selected_block): Add new argument `addr_in_block',
9041 used to return the exact code address we used to select the block,
9042 not just the block.
9043 * blockframe.c (get_frame_block, get_current_block): Same.
9044 * frame.h (get_frame_block, get_current_block,
9045 get_selected_block): Update declarations.
9046 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9047 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9048
84d2ac95
MS
90492002-04-05 Michael Snyder <msnyder@redhat.com>
9050
9051 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9052 warning message.
9053
596aa3bf
JB
90542002-04-05 J. Brobecker <brobecker@gnat.com>
9055
9056 * utils.c (xfullpath): New function.
9057 * defs.h (xfullpath): Add declaration.
9058 * source.c (openp): Use xfullpath in place of gdb_realpath to
9059 avoid resolving the basename part of filenames when the
9060 associated file is a symbolic link. This fixes a potential
9061 inconsistency between the filenames known to GDB and the
9062 filenames it prints in the annotations.
9063 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9064 to be able to match a filename with either the real filename, or
9065 the name of any symbolic link to this file.
9066 (lookup_partial_symtab): Ditto.
9067
c02f5703
MS
90682002-04-04 Michael Snyder <msnyder@redhat.com>
9069
9070 * breakpoint.c: Add support for hardware breakpoints in overlays.
9071 (overlay_events_enabled): New state variable.
9072 (insert_breakpoints): Use overlay_events_enabled to decide
9073 whether to attempt to set a breakpoint at the overlay load addr.
9074 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9075 (remove_breakpoint): Use overlay_events_enabled to decide
9076 whether breakpoints need to be removed from overlay load addr.
9077 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9078 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9079 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9080 disable_overlay_breakpoints): Update overlay_events_enabled.
9081
5fb290d7
DJ
90822002-04-04 Daniel Jacobowitz <drow@mvista.com>
9083
9084 * dwarf2read.c (struct function_range): New.
9085 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9086 (check_cu_functions): New.
9087 (read_file_scope): Initialize global function lists.
9088 Call dwarf_decode_line after processing children.
9089 (read_func_scope): Add to global function list.
9090 (dwarf_decode_lines): Call check_cu_functions everywhere
9091 record_line is called. Call record_line with a linenumber
9092 of 0 to mark sequence ends.
9093
7b3fabf0
ML
90942002-04-04 Michal Ludvig <mludvig@suse.cz>
9095
361d1df0 9096 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9097 change sync with glibc.
9098
bce58c09
JB
90992002-04-03 Jim Blandy <jimb@redhat.com>
9100
9101 * configure.in: Call AC_C_INLINE.
9102 * configure: Regenerated.
361d1df0 9103
2fccf04a
DJ
91042002-04-01 Daniel Jacobowitz <drow@mvista.com>
9105
9106 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9107 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9108
2d1bfe2e
MK
91092002-03-31 Mark Kettenis <kettenis@gnu.org>
9110
a5941fbf
MK
9111 * NEWS: Mention gcore support on FreeBSD/i386.
9112
a90cd31d
MK
9113 * fbsd-proc.c: New file.
9114 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9115 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9116
2d1bfe2e
MK
9117 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9118 while statement.
9119
9eb6e5a1
JB
91202002-03-29 Jim Blandy <jimb@redhat.com>
9121
9122 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9123 unescaped newlines in string literals, but newer ones don't. So
9124 escape them.
9125
f02df580
MS
91262002-03-26 Michael Snyder <msnyder@redhat.com>
9127 Andrew Cagney <cagney@redhat.com>
9128
361d1df0 9129 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
9130 restore file to memory.
9131 * cli/cli-dump.h: New file.
9132 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 9133 * NEWS: Mention new commands.
f02df580 9134
109f874e
MS
91352002-03-28 Michael Snyder <msnyder@redhat.com>
9136
9137 * symfile.c (symbol_file_add): Move test for null symbols to later.
9138
520f6ade
AC
91392002-03-27 Andrew Cagney <ac131313@redhat.com>
9140
9141 From veksler at il.ibm.com:
9142 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9143 the xstrduped original path.
9144 Fix PR gdb/417.
9145
d4654627
MS
91462002-03-27 Michael Snyder <msnyder@redhat.com>
9147
9148 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9149 * infcmd.c (_initialize_infcmd): Ditto.
9150 * language.c (_initialize_language): Ditto.
9151 * symfile.c (_initialize_symfile): Ditto.
9152 * top.c (_init_main): Ditto.
9153 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9154
6be8bc0c
EZ
91552002-03-27 Elena Zannoni <ezannoni@redhat.com>
9156
9157 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9158 vector registers handling.
9159 (skip_prologue): Handle new AltiVec instructions. Fill in new
9160 fields of frame data.
9161 (frame_get_saved_regs): Fill in information for AltiVec registers.
9162
12af6855
JB
91632002-03-27 Jim Blandy <jimb@redhat.com>
9164
9165 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9166 a function; leave this macro here to invoke that function.
9167 (symbol_init_mangled_name): Declaration for that function.
9168 * symtab.c (symbol_init_mangled_name): New function.
9169
dc672865
AC
91702002-03-27 Andrew Cagney <ac131313@redhat.com>
9171
9172 * valarith.c: Replace strerror with safe_strerror.
9173 * tracepoint.c: Ditto.
9174 * lin-lwp.c: Ditto.
9175 * go32-nat.c: Ditto.
9176 * inflow.c: Ditto.
9177 * gnu-nat.c: Ditto.
9178
d96429cd
AS
91792002-03-27 Andreas Schwab <schwab@suse.de>
9180
9181 * event-top.c (command_line_handler): Remove useless if.
9182
7e336ba1
AJ
91832002-03-27 Andreas Jaeger <aj@suse.de>
9184
9185 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9186 comment.
9187
de220d0f
ML
91882002-03-27 Michal Ludvig <mludvig@suse.cz>
9189
9190 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9191 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9192 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9193 (x86_64_linux_dr_get_status, supply_gregset),
9194 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9195 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9196 (x86_64_register_info_table): Add.
9197 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9198 (x86_64_register_raw_size, x86_64_register_virtual_type),
9199 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9200 general x86_64_register_info_table.
9201 (i386_gdbarch_init): gdbarch_register_bytes is now set
9202 dynamicaly during initialization.
9203 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9204 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 9205
0e98d0a7
DJ
92062002-03-27 Daniel Jacobowitz <drow@mvista.com>
9207
9208 * gdbserver/server.c (main): Call target_signal_to_host_p
9209 and target_signal_to_host on signals received from the remote.
9210 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9211 target_signal_from_host on signals sent to the remote.
9212 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9213 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9214
3130066b
DJ
92152002-03-27 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * signals/signals.c: Include "server.h" in gdbserver build.
9218 (target_signal_from_name): Don't use STREQ.
9219 (_initialize_signals): Likewise. Don't include function in
9220 gdbserver build.
9221
9aedf4f4
DJ
92222002-03-27 Daniel Jacobowitz <drow@mvista.com>
9223
9224 * signals.c: Moved to...
9225 * signals/signals.c: Here.
7e336ba1 9226 * Makefile (signals.o): Update.
9aedf4f4 9227
3fa41cdb
JL
92282002-03-26 Jeff Law (law@redhat.com)
9229
9230 * somread.c (som_symtab_read): Remove some commented out code and
9231 updated related comments. Do not set the minimal symbol table to
9232 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9233 in a dynamic executable.
9234 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9235 where we are unable to find the minimal symbol for the given
9236 PC value.
9237
ee677e8d
MS
92382002-03-25 Jeff Law (law@redhat.com)
9239
9240 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9241
e76e1718
ML
92422002-03-25 Michal Ludvig <mludvig@suse.cz>
9243
9244 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9245
18a642a1
AC
92462002-03-23 Andrew Cagney <ac131313@redhat.com>
9247
9248 * command.h: Update copyright.
9249 (struct cmd_list_element): Replace definition with opaque
9250 declaration.
9251 (enum cmd_types): Document that it will eventually be moved to
9252 cli/cli-decode.h
9253 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9254 (MALLOCED_REPLACEMENT): Delete macro.
9255 * Makefile.in (cli_decode_h): Add $(command_h).
9256 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9257 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9258 * completer.c: Include "cli/cli-decode.h".
9259 * maint.c: Include "cli/cli-decode.h".
9260 * cli/cli-decode.h: Include "command.h".
9261 (enum command_class): Delete.
9262 (enum cmd_types): Comment out.
9263 (enum cmd_auto_boolean): Delete.
9264 (enum var_types): Delete.
9265
b2875cc0
AC
92662002-03-23 Andrew Cagney <ac131313@redhat.com>
9267
9268 * cli/cli-decode.c: Include "gdb_assert.h".
9269 (add_set_or_show_cmd): New static function.
9270 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9271 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9272 all fields, such as func, from the set command.
9273
3b45974e
AC
92742002-03-23 Andrew Cagney <ac131313@redhat.com>
9275
9276 * MAINTAINERS (sh-elf): Change warning flag to -w.
9277
823ca731
AC
92782002-03-23 Andrew Cagney <cagney@redhat.com>
9279
9280 * defs.h (error): Add printf format attribute.
9281 * thread-db.c (thread_from_lwp): Fix error format string.
9282 * stack.c (parse_frame_specification): Ditto.
9283 * cli/cli-decode.c (undef_cmd_error): Ditto.
9284 * scm-lang.c (scm_lookup_name): Ditto.
9285 * tracepoint.c (trace_error): Ditto.
9286 * remote-utils.c (usage): Ditto.
9287 * remote.c (compare_sections_command): Ditto.
9288 Fix PR gdb/328.
9289
0e101458
AC
92902002-03-22 Andrew Cagney <ac131313@redhat.com>
9291
9292 * gdbtypes.c (append_composite_type_field): New function.
9293 (init_composite_type): New function.
9294 * gdbtypes.h (append_composite_type_field): Declare.
9295 (init_composite_type): Ditto.
9296
8e0662df
EZ
92972002-03-22 Elena Zannoni <ezannoni@redhat.com>
9298
9299 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9300 function.
8e0662df
EZ
9301 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9302 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9303 structure returning convention for SYSV ABI case, but not
9304 for GNU/Linux, FreeBSD, or NetBSD.
9305
3121eff0
DJ
93062002-03-22 Daniel Jacobowitz <drow@mvista.com>
9307
9308 * symtab.h (lookup_block_symbol): Add mangled_name argument
9309 to prototype.
9310
9311 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9312 with new mangled_name argument.
9313 * linespec.c (decode_line_1): Likewise.
9314 * valops (value_of_this): Likewise.
9315 * symtab.c (lookup_transparent_type): Likewise.
9316 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9317 (lookup_symbol): If we are given a mangled name, pass it down
9318 to lookup_symbol_aux.
9319 (lookup_block_symbol): If we are given a mangled name to check
9320 against, only return symbols which match it.
9321
349b409f
CF
93222002-03-22 Christopher Faylor <cgf@redhat.com>
9323
9324 * win32-nat.c (child_create_inferior): Check for proper shell to use
9325 here, in case the user changes it on the fly.
9326 (_initialize_inftarg): Remove shell path considerations.
9327
2a873819
EZ
93282002-03-21 Elena Zannoni <ezannoni@redhat.com>
9329
9330 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9331 for gdbarch_max_register_raw_size and max_register_virtual_size.
9332 Adjust copyright year.
9333
a1b9830c
DJ
93342002-03-21 Daniel Jacobowitz <drow@mvista.com>
9335
9336 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9337 in a function to cover the entire beginning of the function
9338 as well if it does not already.
9339
8b5790f2
TR
93402002-03-21 Tom Rix <trix@redhat.com>
9341
9342 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9343 (rs6000_ptrace64): Renamed from ptrace64.
9344
bdbe5747
MH
93452002-03-20 Martin M. Hunt <hunt@redhat.com>
9346
9347 * gdbserver/remote-utils.c (remote_open): Don't call
9348 getprotobyname, we're all using TCP here so just use
9349 IPPROTO_TCP.
7e336ba1 9350 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9351
93522002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9353
bdbe5747
MH
9354 * regcache.c (_initialize_regcache): No need to call
9355 build_regcache() at this time; it gets called whenever
9356 the gdbarch changes.
9357
7781cd62
DB
93582002-03-20 David O'Brien <obrien@FreeBSD.org>
9359
9360 * sparc-nat.c: Include sys/param.h where possible.
9361
f65ca430
DJ
93622002-03-20 Daniel Jacobowitz <drow@mvista.com>
9363
9364 Fix PR gdb/422.
9365 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9366 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9367 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9368 complex types.
9369 * stabsread.c (rs6000_builtin_type): Likewise.
9370 (read_sun_floating_type): Likewise.
9371
0c867556
PS
93722002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9373
9374 * stabsread.c (read_member_functions): Remove skip code for duplicate
9375 constructor/destructor methods. Use standard parsing for these
9376 methods and just do not chain them to the list of methods after
9377 parsing.
9378
12b9c64f
AO
93792002-03-19 Alexandre Oliva <aoliva@redhat.com>
9380
9381 * coffread.c: Remove redundant static declarations. Replace
9382 occurrences of `PTR' with `void *'.
9383 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9384 * top.h (quit_cover): Likewise.
9385 * defs.h (catch_errors): Likewise.
9386
349c5d5f
AC
93872002-03-18 Andrew Cagney <ac131313@redhat.com>
9388
9389 * defs.h (XMALLOC): Define.
9390 * gdb-events.sh (XMALLOC): Delete macro.
9391 * gdb-events.c, gdb-events.h: Regenerate.
9392 * gdbarch.sh (XMALLOC): Delete macro.
9393 * gdbarch.c: Regenerate.
9394 * serial.c (XMALLOC): Delete macro.
9395 * ui-file.c (XMALLOC): Ditto.
9396 * ser-unix.h (XMALLOC): Ditto.
9397 * sh-tdep.c (XMALLOC): Ditto.
9398 * ui-out.c (XMALLOC): Ditto.
9399 * utils.c (XMALLOC): Ditto.
9400 * i386-tdep.c (XMALLOC): Ditto.
9401 * gdb-events.c (XMALLOC): Ditto.
9402 * d10v-tdep.c (XMALLOC): Ditto.
9403 * cli-out.c (XMALLOC): Ditto.
9404
9405 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9406 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9407 * ui-file.c, ui-out.c: Ditto.
9408
7d0766f3
AC
94092002-03-18 Andrew Cagney <ac131313@redhat.com>
9410
9411 * command.h (struct cmd_list_element): Add field context.
9412 (set_cmd_context, get_cmd_context): Declare.
9413 * cli/cli-decode.h: Ditto.
9414 * cli/cli-decode.c (get_cmd_context): New function.
9415 (set_cmd_context): New function.
9416 (add_cmd): Initialize context.
9417 Part of fixing PR gdb/145 and PR gdb/146.
9418
5913bcb0
AC
94192002-03-17 Andrew Cagney <ac131313@redhat.com>
9420
1868c04e
AC
9421 * cli/cli-decode.c (cmd_type): New function.
9422 * command.h (cmd_type): Declare.
9423 * infrun.c (set_schedlock_func): Call function cmd_type.
9424 * kod.c (kod_set_os): Call cmd_type.
9425 * cris-tdep.c (cris_version_update): Use function cmd_type.
9426 (cris_mode_update, cris_abi_update): Ditto.
9427
5913bcb0
AC
9428 * command.h: (execute_cmd_post_hook): Declare.
9429 (execute_cmd_pre_hook): Declare.
9430 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9431 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9432 functions. Execute pre/post hook while ensuring that afterwords
9433 hook_in is cleared.
9434 * top.c (execute_command): Use execute_cmd_post_hook, and
9435 execute_cmd_pre_hook to execute pre/post commands.
9436 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9437 hook_stop_stub.
9438 (hook_stop_stub): Call execute_cmd_pre_hook.
9439
b51450c9
AC
94402002-03-17 Andrew Cagney <ac131313@redhat.com>
9441
9442 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9443 set'' and this leads to a core dump. Move xstrdup of
9444 operating_system to after check that it is not NULL.
9445
f66c9f11
AC
94462002-03-17 Andrew Cagney <ac131313@redhat.com>
9447
8e694ecf
AC
9448 * kod.c (kod_set_os): Remove unnecessary check that
9449 ``command->type'' is set_cmd.
9450
f66c9f11
AC
9451 * valprint.c (set_input_radix): Use input_radix.
9452 (set_output_radix): Use output_radix.
9453 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9454 isn't reverted.
9455
9d01611c
AC
94562002-03-16 Andrew Cagney <ac131313@redhat.com>
9457
9458 * value.h (struct value): Delete field ``substring_addr''. Change
9459 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9460 force_core_addr_align and force_pointer_aligh.
9461
9462 * value.h (struct value): Fix typo in above change.
9d01611c 9463
4156bb53
PS
94642002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9465
9466 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9467 to fix internal_error from ``maintenance print architecture''.
9468
0e5e3ea6
PS
94692002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9470
9471 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9472 for gcc versions after gcc-2.8.1.
9473
9b013045
PS
94742002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9475
9476 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9477 for method resolution. Restore adjustment of ``this'' pointer after
9478 calling value_struct_elt, which was accidentally removed during the
9479 HP merge.
9480
376c9600
AC
94812002-03-15 Andrew Cagney <ac131313@redhat.com>
9482
9483 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9484 value_of_register.
9485 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9486 get_saved_register.
9487 * value.h (value_of_register): Update.
9488
a4db0f07
RH
94892002-03-14 Richard Henderson <rth@redhat.com>
9490
9491 * configure.in: Detect declaration for canonicalize_file_name.
9492 * utils.c (canonicalize_file_name): Declare, if needed.
9493 (gdb_realpath): Prefer realpath if available and usable.
9494 * config.in, configure: Rebuild.
9495
96383835
RH
94962002-03-14 Richard Henderson <rth@redhat.com>
9497
9498 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9499 a constant array bound.
9500
9501 * MAINTAINERS: Add myself to write-after-approval.
9502
75245b24
MS
95032002-03-14 Michael Snyder <msnyder@redhat.com>
9504
9505 * symfile.c (syms_from_objfile): Return immediately if no syms.
9506 (symbol_file_add): Return immediately if no syms.
9507 (find_sym_fns): Return immediately if no syms.
9508
e641a1ca
ML
95092002-03-13 Michal Ludvig <mludvig@suse.cz>
9510
9511 * gdbserver/remote-util.c (remote_open): Print remote-side's
9512 IP address when remote debugging over the network.
7e336ba1 9513
df08bfec
DB
95142002-03-12 David O'Brien <obrien@FreeBSD.org>
9515
9516 * config/sparc/fbsd.mh: Fix copyright.
9517 * config/sparc/fbsd.mt: Likewise.
9518
9a57864f
RE
95192002-03-11 Richard Earnshaw <rearnsha@arm.com>
9520
9521 * MAINTAINERS: Fix typo in name of gdb warnings option.
9522 (x86-64): Fix formating so that this can be parsed by awk.
9523
dd7bf85e
DJ
95242002-03-10 Daniel Jacobowitz <drow@mvista.com>
9525
9526 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9527 * defs.h: Include "gdb/signals.h".
9528 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9529
33a0a2ac
ML
95302002-03-10 Michal Ludvig <mludvig@suse.cz>
9531
9532 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9533 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9534 from x86-64-tdep.h
9535
dd824b04
DJ
95362002-03-10 Daniel Jacobowitz <drow@mvista.com>
9537 Don Howard <dhoward@redhat.com>
9538
9539 * mips-tdep.c (ST0_FR): Define.
9540 (mips2_fp_compat): New function, temporarily disabled.
9541 (mips_read_fp_register_single): New function.
9542 (mips_read_fp_register_double): New function.
9543 (mips_print_register): Use them.
9544 (do_fp_register_row): Likewise.
9545
6a41ff59
AC
95462002-03-09 Andrew Cagney <ac131313@redhat.com>
9547
9548 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9549 approval''.
9550
4ea09c10
PS
95512002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9552
9553 * stabsread.c (read_member_functions): Fix is_stub test for
9554 static member functions, improve comment.
9555
6ccc741d
RE
95562002-03-07 Richard Earnshaw <rearnsha@arm.com>
9557
9558 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9559 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9560 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9561 commands that set boolean values.
9562 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9563 (arm_rdi_resume): Always initialize PC.
9564 (arm_rdi_open): Don't use rslt as a boolean.
9565 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9566 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9567 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9568 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9569
438013df
AO
95702002-03-06 Alexandre Oliva <aoliva@redhat.com>
9571
9572 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9573 * configure: Rebuilt.
9574
70ed8774
SC
95752002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9576
9577 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9578 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9579
5ba2abeb
AC
95802002-03-06 Andrew Cagney <ac131313@redhat.com>
9581
9582 * cli/cli-decode.c (set_cmd_completer): New function.
9583 * command.h (set_cmd_completer): Declare.
9584 * cli/cli-decode.h (set_cmd_completer): Ditto.
9585
9586 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9587 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9588 * win32-nat.c (_initialize_inftarg): Ditto.
9589 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9590 * proc-api.c (_initialize_proc_api): Ditto.
9591 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9592 * source.c (_initialize_source): Ditto.
9593 * exec.c (_initialize_exec): Ditto.
9594 * solib.c (_initialize_solib): Ditto.
9595 * top.c (init_main): Ditto.
9596 * tracepoint.c (_initialize_tracepoint): Ditto.
9597 * symfile.c (_initialize_symfile): Ditto.
9598 * printcmd.c (_initialize_printcmd): Ditto.
9599 * infcmd.c (_initialize_infcmd): Ditto.
9600 * corefile.c (_initialize_core): Ditto.
9601
f779ca99
AC
96022002-03-05 Andrew Cagney <ac131313@redhat.com>
9603
9604 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9605
01a3934b
AC
96062002-03-05 Andrew Cagney <ac131313@redhat.com>
9607
9608 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9609
37057839
AC
96102002-03-05 Andrew Cagney <ac131313@redhat.com>
9611
9612 * NEWS: Update headings, 5.2 has branched.
9613
c6ecbae5
DJ
96142002-03-04 Daniel Jacobowitz <drow@mvista.com>
9615
9616 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9617 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9618 (register_addr, REGISTER_RAW_SIZE): Likewise.
9619 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9620 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9621
e9f30c21
ML
96222002-03-03 Michal Ludvig <mludvig@suse.cz>
9623
9624 * MAINTAINERS (x86-64): Add myself.
9625 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9626 changed value_ptr -> struct value *
9627
54394ac3
DB
96282002-03-01 David O'Brien <obrien@FreeBSD.org>
9629
9630 * configure.host (sparc64-*-freebsd): Add.
9631 * configure.tgt: Likewise.
9632 * config/sparc/fbsd.mh: New file.
9633 * config/sparc/fbsd.mt: Likewise.
9634 * config/sparc/nm-fbsd.h: Likewise.
9635 * config/sparc/tm-fbsd.h: Likewise.
9636
bfe95955
DJ
96372002-03-01 Daniel Jacobowitz <drow@mvista.com>
9638
9639 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9640 regformats/reg-s390x.dat.
9641
f33c6cbf
AC
96422002-03-01 Andrew Cagney <ac131313@redhat.com>
9643
9644 * utils.c: Add FIXME explaining true/false problem.
9645
5ecaa7dd
AC
96462002-02-28 Andrew Cagney <ac131313@redhat.com>
9647
9648 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9649
2a251cc2
MC
96502002-02-28 Michael Chastain <mec@shout.net>
9651
9652 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9653
6a8031a3 96542002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9655
9656 * gdbserver/linux-s390-low.c: New file.
9657 * regformats/reg-s390.dat: New file.
9658 * regformats/reg-s390x.dat: New file.
9659 * gdbserver/configure.srv: Add S/390.
9660 * gdbserver/Makefile.in: Add S/390.
9661 * configure.tgt: Enable gdbserver for S/390.
9662
ac469903
EZ
96632002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9664
9665 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9666 first line of the doc string for "info dos", except at the end of
9667 the sentence, since the short help stops at the first period.
9668
985cb1a3
JM
96692002-02-28 Jason Merrill <jason@redhat.com>
9670
9671 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9672
c570663e
FF
96732002-02-27 Fred Fish <fnf@redhat.com>
9674
9675 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9676 comment (dumy -> dummy).
9677
43630227
PS
96782002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9679
9680 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9681
b84911e8
RB
96822002-02-27 Rodney Brown <rbrown64@csc.com.au>
9683
9684 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9685
58caa3dc
DJ
96862002-02-27 Daniel Jacobowitz <drow@mvista.com>
9687
9688 * gdbserver/acconfig.h: New file.
9689 * gdbserver/i387-fp.c: New file.
9690 * gdbserver/i387-fp.h: New file.
9691 * gdbserver/linux-x86-64.c: New file.
9692 * regformats/reg-x86-64.dat: New file.
9693 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9694 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9695 * gdbserver/configure.in: Add support for regsets.
9696 * gdbserver/config.in: Regenerate.
9697 * gdbserver/configure: Regenerate.
9698 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9699 * gdbserver/linux-low.h: New file.
9700 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9701 for regsets.
9702 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9703 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9704 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9705 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9706 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9707 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9708 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9709 "i387-fp.h". Add PTRACE_GETREGS and friends.
9710 * gdbserver/regcache.c (supply_register): New function.
9711 (supply_register_by_name): New function.
9712 (collect_register): New function.
9713 (collect_register_by_name): New function.
9714
93652174
DJ
97152002-02-27 Daniel Jacobowitz <drow@mvista.com>
9716
9717 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9718 (config.status): Add configure.srv dependency.
9719 (server_h): Add config.h dependency.
9720
a02e4a61
DJ
97212002-02-27 Daniel Jacobowitz <drow@mvista.com>
9722
9723 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9724 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9725 * gdbserver/configure.srv: Change i386-*-linux* to use
9726 reg-i386-linux.o.
9727
ce0eebec
AC
97282002-02-26 Andrew Cagney <ac131313@redhat.com>
9729
9730 * x86-64-tdep.c: Re-indent. Update copyright date.
9731
82dbc5f7
AC
97322002-02-26 Andrew Cagney <ac131313@redhat.com>
9733
9734 From Michal Ludvig <mludvig@suse.cz>:
9735 * x86-64-tdep.c (value.h): Delete.
9736 (gdb_assert.h): Include.
9737 (x86_64_register_convert_to_virtual,
9738 x86_64_register_convert_to_raw ): Add check which lets only
9739 floating-point values to be converted.
9740 (value_push): Delete.
9741 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9742 (i386_gdbarch_init): Number of register_bytes fixed.
9743
e4621584
AC
97442002-02-26 Andrew Cagney <ac131313@redhat.com>
9745
9746 * MAINTAINERS: Add x86-64 target.
9747
81a9a963
AC
97482002-02-26 Andrew Cagney <ac131313@redhat.com>
9749
9750 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9751 * osfsolib.c (solib_map_sections): Ditto.
9752 * irix5-nat.c (solib_map_sections): Ditto.
9753 * corelow.c (gdb_check_format): Ditto.
9754 * symfile.c (symfile_bfd_open): Ditto.
9755 * solib.c (solib_map_sections): Ditto.
9756 Fix PR gdb/354.
7e336ba1 9757
0f017ab9
AC
97582002-02-26 Andrew Cagney <ac131313@redhat.com>
9759
9760 * remote.c (_initialize_remote): By default, disable ``e'' and
9761 ``E'' step out-of-range packets.
9762
75738c29
AS
97632002-02-26 Andreas Schwab <schwab@suse.de>
9764
9765 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9766 m68k_linux_frame_saved_pc.
9767 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9768 in_sigtramp.
9769 (SIGCONTEXT_PC_OFFSET): Remove.
9770 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9771 m68k_linux_sigtramp_saved_pc): New functions.
9772 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9773 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9774 (UCONTEXT_PC_OFFSET): Define.
9775 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9776 non-RT and RT signal trampolines.
9777
7e8ed687
RE
97782002-02-26 Richard Earnshaw <rearnsha@arm.com>
9779
9780 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9781 (TARGET_NBPG, STACK_END_ADDR): Delete
9782 (VARIABLES_INSIDE_BLOCK): Delete.
9783
6972bc8b
AC
97842002-02-25 Andrew Cagney <ac131313@redhat.com>
9785
9786 * utils.c (perror_with_name): Make string parameter constant.
9787 (print_sys_errmsg): Ditto.
9788 (query): Ditto.
9789 * defs.h (perror_with_name): Update.
9790 (print_sys_errmsg): Update.
9791 (query): Update.
9792
aa32f823
DJ
97932002-02-25 Daniel Jacobowitz <drow@mvista.com>
9794
9795 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9796 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9797
19caaa45
PS
97982002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9799
9800 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9801 if it already matches the current architecture from the exec file.
9802 Include arch-utils.h for gdbarch_info_init prototype.
9803 * Makefile.in (rs6000-nat.o): Update dependencies.
9804
d951901f
EZ
98052002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9806
9807 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9808 list of exported variables.
9809
7ea81414
DJ
98102002-02-24 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * gdbserver/configure.srv: New file.
9813 * gdbserver/configure.in: Use configure.srv instead
9814 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9815 from it.
9816 * gdbserver/configure: Regenerated.
9817 * gdbserver/terminal.h: New file.
9818 * gdbserver/Makefile.in: Update for configure changes. Remove
9819 more unneeded include paths.
9820
080fe24b
AC
98212002-02-24 Andrew Cagney <ac131313@redhat.com>
9822
9823 From wiz at danbala:
9824 * config/sparc/tm-sp64.h: Fix grammar and typos.
9825 Fix PR gdb/287.
9826
8605d56e
AC
98272002-02-24 Andrew Cagney <ac131313@redhat.com>
9828
9829 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9830 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9831 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9832 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9833 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9834 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9835 * s390-tdep.c: Ditto.
92362027
AC
9836 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9837 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9838 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9839 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9840 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9841 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9842 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9843 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9844 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9845 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9846 Fix PR gdb/378.
7e336ba1 9847
8ed32cc0
AC
98482002-02-23 Andrew Cagney <ac131313@redhat.com>
9849
a3007b6f
AC
9850 * lin-thread.c: Delete file.
9851 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9852 to gdb_proc_service.h.
9853 * configure: Re-generate.
9854
50a9e2f1
AC
9855 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9856 * serial.c (serial_open): Delete check for "ocd".
9857 Fix PR gdb/349.
9858
8b6e7932
AC
9859 * Makefile.in (linux-thread.o): Delete target.
9860 * linux-thread.c: Delete file.
9861
d155c46b
AC
9862 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9863 renamed SH files to be consistent.
9864
8ed32cc0
AC
9865 * symtab.c (sort_search_symbols): Use xfree.
9866
0e18d038
RE
98672002-02-23 Richard Earnshaw <rearnsha@arm.com>
9868
9869 * arm-linux-tdep.c (arm_linux_init_abi): Register
9870 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9871 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9872 definition with undef, since we don't want the sysvr4 definition.
9873 (SKIP_TRAMPOLINE_CODE): Likewise.
9874
27aac7ff
AC
98752002-02-23 Andrew Cagney <ac131313@redhat.com>
9876
9877 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9878
9879 * configure.in: (AC_CHECK_FUNCS) Added test for
9880 canonicalize_file_name Regenerated.
9881 * config.in, configure: Regenerated.
9882 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9883 defined use canonicalize_file_name.
7e336ba1 9884
65a6e0ee
MC
98852002-02-23 Michael Chastain <mec@shout.net>
9886
9887 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9888
47b95330
AC
98892002-02-23 Andrew Cagney <ac131313@redhat.com>
9890
9891 * README: Remove references to cygnus.com.
9892 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9893 dot com'' form. Remove references to cygnus.com and sourceware.
9894
696f451b
AC
98952002-02-23 Andrew Cagney <ac131313@redhat.com>
9896
9897 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9898 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9899 1003.1-2001 no longer allows "head -1".
9900 * gdb/Makefile.in (version.c): Likewise.
9901 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9902 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9903 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9904
bbaca940
AC
99052002-02-23 Andrew Cagney <ac131313@redhat.com>
9906
9907 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9908 * command.h (cmd_cfunc_eq): Declare.
9909 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9910
9911 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9912 ``struct cmd_list_element *''.
9913 * cli/cli-cmds.c (is_complete_command): Update. Use
9914 cmd_cfunc_eq.
9915 * top.c (execute_command): Pass the command to
9916 is_complete_command.
9917 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9918
b8b8b047
AC
99192002-02-23 Andrew Cagney <ac131313@redhat.com>
9920
9921 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9922 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9923 architecture defines.
9924 * s390-tdep.c (s390_gdbarch_init): Likewise.
9925
19d3fc80
RE
99262002-02-23 Richard Earnshaw <rearnsha@arm.com>
9927
9928 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9929 (arm_linux_push_arguments): Likewise.
9930 (arm_linux_init_abi): Register them. Also register linux-specific
9931 call_dummy_words.
9932 (find_minsym_and_objfile): Use strcmp, not STREQ.
9933 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9934 (arm_linux_call_dummy_words): Delete declaration.
9935 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9936 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9937 declarations.
9938 (LOWEST_PC): Delete.
9939
3ab13650
PS
99402002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9941
9942 * maint.c (print_section_info): Do not prepend `0x' to filepos
9943 output, it will be handled by local_hex_string_custom.
9944
19d3fc80 99452002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9946
9947 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9948 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9949 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9950
d85a5daf
JB
99512002-02-22 Jim Blandy <jimb@redhat.com>
9952
9953 Indicate that the bcache functions don't change the strings
9954 they're passed.
9955 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9956 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9957
eeb25b8a
PM
99582002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9959
9960 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9961
6badb179
CF
99622002-02-21 Christopher Faylor <cgf@redhat.com>
9963
9964 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9965 find the complete path to a loaded DLL.
9966
e8717518
FF
99672002-02-21 Fred Fish <fnf@redhat.com>
9968
9969 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9970 that marks the end of the range of a function, enter a line number
9971 entry that has a line number of zero and a PC offset that matches
9972 the end of the function. This starts a range of PC's for which no
9973 line number information is known.
9974 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9975 PC's for which no line number info is found (line number is zero)
9976 then we didn't find any valid line information.
9977 * symtab.h: Document use of zero line number entry.
9978
9abe5450
EZ
99792002-02-21 Elena Zannoni <ezannoni@redhat.com>
9980
9981 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9982 (have_ptrace_getvrregs): Define for run time checks.
9983 (gdb_vrregset_t): New type for Altivec register handling.
9984 (fetch_register, store_register): Fetch/store altivec register
9985 when needed.
9986 (fetch_altivec_register, store_altivec_register): New functions.
9987 (supply_vrregset, fill_vrregset): New functions.
9988 (fetch_altivec_registers, store_altivec_registers): New functions.
9989 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9990 registers as well.
9991
aaa38bb5
AJ
99922002-02-21 Jiri Smid <smid@suse.cz>
9993
9994 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9995
b34db576
RE
99962002-02-21 Richard Earnshaw <rearnsha@arm.com>
9997
9998 * Makefile.in (armnbsd-nat.o): Update dependencies.
9999 * armnbsd-nat.c (supply_gregset): New function. Common code to
10000 supply the integer register set.
10001 (supply_fparegset): New function. Similar for FPA registers.
10002 (fetch_regs, fetch_fp_regs): Use them.
10003 (fetch_core_registers): Likewise.
10004 (fetch_elfcore_registers): New function.
10005 (arm_netbsd_elfcore_fns): New core-file type specification.
10006 (_initialize_arm_netbsd_nat): Register it.
10007
3e56fc4b
RE
100082002-02-21 Richard Earnshaw <rearnsha@arm.com>
10009
10010 * armnbsd-nat.c: Include gdbcore.h.
10011 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10012 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10013 'void' to declaration, to shut up ARI.
10014 (fetch_core_registers): Make static. Rewrite using supply_register.
10015 (arm_netbsd_core_fns): New core-file type specification.
10016 (_initialize_arm_netbsd_nat): New function.
10017
097f6b0b
CF
100182002-02-21 Christopher Faylor <cgf@redhat.com>
10019
10020 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10021 value.
10022
c914e0cc
CF
100232002-02-20 Christopher Faylor <cgf@redhat.com>
10024
10025 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10026 fails.
10027
385fa495
DJ
100282002-02-20 Daniel Jacobowitz <drow@mvista.com>
10029
10030 * jv-exp.y (parse_number): Change type of implicit longs
10031 to builtin_type_uint64.
10032
e5f1222d
DJ
100332002-02-20 Daniel Jacobowitz <drow@mvista.com>
10034
10035 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10036 to be an integer instead of a `union wait'.
10037
75c9abc6
DJ
100382002-02-20 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * mips-linux-nat.c: Call the operating system GNU/Linux.
10041 * mips-linux-tdep.c: Likewise.
10042 * mips-tdep.c: Likewise.
10043
551792a5
DJ
100442002-02-20 Daniel Jacobowitz <drow@mvista.com>
10045
10046 Fix PR gdb/265.
10047 * jv-exp.y (parse_number): Handle 64-bit integers.
10048
ee6e2b82
DJ
100492002-02-20 Daniel Jacobowitz <drow@mvista.com>
10050
10051 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10052 AC_STDC_HEADERS to AC_HEADER_STDC.
10053 * gdbserver/configure: Regenerated.
10054
a48442a0
RE
100552002-02-20 Richard Earnshaw <rearnsha@arm.com>
10056
10057 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10058 is defined.
10059 * sparc-tdep.c (get_longjmp_target): Likewise.
10060
fe419ffc
RE
100612002-02-20 Richard Earnshaw <rearnsha@arm.com>
10062
10063 * News: Add news about ARM and Multi-arch. Mention the new target
10064 arm*-*-netbsd*.
10065
5832ed7e
JB
100662002-02-19 Jim Blandy <jimb@redhat.com>
10067
10068 * stabsread.c (error_type_complaint): Improve error message.
10069
84563040
DJ
100702002-02-19 Daniel Jacobowitz <drow@mvista.com>
10071
10072 * gdbserver/README: Update documentation.
10073 * gdbserver/configure.in: Update configury to match documentation.
10074 * gdbserver/Makefile.in: Likewise.
10075 * gdbserver/configure: Regenerated.
10076 * gdbserver/aclocal.m4: New file, generated by aclocal.
10077 * gdbserver/config.in: New file, generated by autoheader.
10078
375fd65b
RE
100792002-02-19 Richard Earnshaw <rearnsha@arm.com>
10080
10081 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10082 armnbsd-nat.c.
10083
08216dd7
RE
100842002-02-19 Richard Earnshaw <rearnsha@arm.com>
10085
10086 * arm-tdep.h (enum arm_float_model): New enum.
10087 (struct gdbarch_tdep): Add fp_model.
10088 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10089 up floating-point conversions until we know the floating-point model
10090 in use by the inferior. Don't complain about being unable to
10091 determine the ABI of the inferior when we don't have one.
10092 (arm_extract_return_value): Support different floating-point models.
10093 (arm_store_return_value): Likewise.
aaa38bb5 10094 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10095 ARM_FLOAT_SOFT.
10096 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10097
65d6d66a
PS
100982002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10099
10100 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10101 of ``current_gdbarch''.
10102
47221191
RE
101032002-02-19 Richard Earnshaw <rearnsha@arm.com>
10104
10105 * armnbsd-nat.c : ANSIfy all function declarations.
10106 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10107 (fetch_inferior_registers): Re-implement in terms of above.
10108 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10109 (store_inferior_registers): Re-implement in terms of above.
10110
fdf39c9a
RE
101112002-02-19 Richard Earnshaw <rearnsha@arm.com>
10112
aaa38bb5 10113 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10114 kernel.
10115 * arm-linux-tdep.c: Likewise.
10116 * config/arm/tm-linux.h: Likewise.
10117
93247f88
RE
101182002-02-19 Richard Earnshaw <rearnsha@arm.com>
10119
10120 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10121 * config/arm/nbsd.mt (TM_FILE): Delete.
10122 * config/arm/tm-nbsd.h: Delete.
10123
d7b486e7
RE
101242002-02-19 Richard Earnshaw <rearnsha@arm.com>
10125
10126 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10127 Initialize CALL_DUMMY_LENGTH.
10128
41d39a95
RE
101292002-02-19 Richard Earnshaw <rearnsha@arm.com>
10130
10131 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10132 function.
10133 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 10134 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
10135 defines one thing and that is incorrect for this port.
10136 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10137
e1195560
PM
101382002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10139
10140 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10141
c1748f97
PM
101422002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10143
10144 * win32-nat.c (display_selector): New function. Displays information
10145 about the information returned by GetThreadSelectorEntry API function.
10146 (display_selectors): New function. Displays the infomation of
10147 the selector given as argument, or of CS, DS ans FS selectors
10148 if no argument is given.
10149 ( _initialize_inftarg): Add "w32" as info prefix command.
10150 Add "info w32 selector" as command calling display_selectors.
10151
e41e6bbf
PM
101522002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10153
10154 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10155 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10156 if not defined.
10157
0d3a9f48
RE
101582002-02-18 Richard Earnshaw <rearnsha@arm.com>
10159
10160 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10161
3fb4b924
RE
101622002-02-18 Richard Earnshaw <rearnsha@arm.com>
10163
10164 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10165 (arm_fix_call_dummy): Call it.
10166 (arm_call_dummy_breakpoint_offset): Delete.
10167 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10168 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10169
7f55af32
AC
101702002-02-18 Andrew Cagney <ac131313@redhat.com>
10171
10172 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10173 Default to func_frame_chain_valid.
10174 * gdbarch.h, gdbarch.c: Re-generate.
10175 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10176
05f13b9c
EZ
101772002-02-18 Elena Zannoni <ezannoni@redhat.com>
10178
10179 * ppc-linux-nat.c: Update copyright.
10180 (fetch_register, store_register): Add tid parameter, don't compute
10181 tid here.
10182 (fetch_ppc_registers, store_ppc_registers): Add tid
10183 parameter. Pass it along to callees.
10184 (fetch_inferior_registers, store_inferior_registers): Compute tid
10185 here, and pass it to calleed functions.
10186 (fill_gregset, supply_fpregset): Clean up formatting.
10187
d7afb4c9
RE
101882002-02-18 Richard Earnshaw <rearnsha@arm.com>
10189
10190 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10191 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10192
9df628e0
RE
101932002-02-18 Richard Earnshaw <rearnsha@arm.com>
10194
10195 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10196 * gdbarch.c gdbarch.h: Regenerate.
10197 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10198 function.
10199 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10200 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10201 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10202
10203 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10204 * arm-tdep.c (arm_get_longjmp_target): New function.
10205 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10206 this to a positive value register arm_get_longjmp_target as the
10207 longjmp handler.
10208 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10209 (arm_linux_init_abi): Set up longjmp description in tdep.
10210 * armnbsd-nat.c (get_longjmp_target): Delete.
10211 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10212 description in tdep.
10213 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10214 (get_longjmp_target): Delete declaration.
10215 (GET_LONGJMP_TARGET): Delete.
10216 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10217 (GET_LONGJMP_TARGET): Delete.
10218
57bc8964
KB
102192002-02-17 Kevin Buettner <kevinb@redhat.com>
10220
10221 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10222 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10223 of ``current_gdbarch''.
10224
83d31a92
TT
102252002-02-17 Tom Tromey <tromey@redhat.com>
10226
10227 * cli/cli-cmds.c (compare_strings): New function.
10228 (complete_command): Only print each unique item once.
10229 * completer.h (complete_line): Declare.
10230 * completer.c (complete_line): New function.
10231 (line_completion_function): Use it.
10232
17ef5d92
AC
102332002-02-16 Andrew Cagney <ac131313@redhat.com>
10234
10235 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10236 * gdbarch.h, gdbarch.c: Re-generate.
10237
491b8946
DJ
102382002-02-16 Daniel Jacobowitz <drow@mvista.com>
10239
10240 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10241
102422002-02-16 Daniel Jacobowitz <drow@mvista.com>
10243
10244 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10245 * valops.c (value_arg_coerce): Don't take the address of a reference
10246 to convert an argument to a reference.
10247
dfe7f3ac
CF
102482002-02-15 Christopher Faylor <cgf@redhat.com>
10249
10250 * win32-nat.c (get_image_name): New function.
10251 (handle_load_dll): Use get_image_name function.
10252 (get_child_debug_event): Avoid registering debug events until possibly
10253 execed process is started.
10254 (child_create_inferior): Allow invocation via shell so that command
10255 line redirection, etc. works ok.
10256 (_initialize_inftarg): Add new command: "set shell" to control whether
10257 a shell is used to start a process.
10258
1d33e73a
DJ
102592002-02-15 Daniel Jacobowitz <drow@mvista.com>
10260
10261 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10262 instead of find_register_by_number.
10263 (cannot_store_register): Likewise.
10264
48cd0caa
PM
102652002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10266
aaa38bb5 10267 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10268 fprintf_unfiltered (gdb_stderr, ...).
10269
8656e7d8
DJ
102702002-02-15 Daniel Jacobowitz <drow@mvista.com>
10271
10272 * gdbserver/gdbserver.1: Document --attach.
10273
66e810cd
RE
102742002-02-15 Richard Earnshaw <rearnsha@arm.com>
10275
10276 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10277 descriptions.
10278 * arm-tdep.c (arm_default_arm_le_breakpoint)
10279 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10280 (arm_default_thumb_be_breakpoint): New. Initialize them from
10281 traditional breakpoint defines.
10282 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10283 (arm_gdbarch_init): Initialize new breakpoint variables.
10284 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10285 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10286 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10287 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10288 code out to ...
10289 (arm_netbsd_init_abi_common): ... here; new function.
10290 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10291 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10292 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10293 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10294
97e03143
RE
102952002-02-15 Richard Earnshaw <rearnsha@arm.com>
10296
10297 * arm-tdep.h (enum arm_abi): New enum.
10298 (struct gdbarch_tdep): New structure.
10299 (LOWEST_PC): Provide a default.
10300 (arm_gdbarch_register_os_abi): Declare new function.
10301 * arm-tdep.c (arm_abi_names): New array.
10302 (process_note_abi_tag_sections): New function.
10303 (get_elfosabi): New function.
10304 (arm_gdbarch_register_os_abi): New function.
10305 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10306 support for that ABI has been built in, then call the appropriate
10307 configuration routine. Use gdbarch_num_regs() to get the number
10308 of registers.
10309 (arm_dump_tdep): New function.
10310 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10311 place-holder functions.
10312 (_initialize_arm_tdep): Register them.
10313 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10314
10315 * armnbsd-tdep.c: New file.
10316 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10317 * config/arm/nbsd.mt (TDEPFILES): Add it.
10318 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10319
10320 * armnbsd-nat.c: Include regcache.h.
10321 * Makefile.in (armnbsd-nat.o): Update dependency list.
10322
10323 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10324
ad68be46
DJ
103252002-02-14 Daniel Jacobowitz <drow@mvista.com>
10326
10327 * gdbserver/Makefile.in: Fix typos in target rules.
10328
003d6d1d
DJ
103292002-02-14 Daniel Jacobowitz <drow@mvista.com>
10330
aaa38bb5 10331 Fix part of PR gdb/267.
003d6d1d
DJ
10332 * linespec.c (find_methods): Handle constructors specially for now.
10333
6b230f1b
CV
103342002-02-14 Corinna Vinschen <vinschen@redhat.com>
10335
10336 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10337 handling.
10338 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10339 standard_coerce_float_to_double().
10340
1ea98d12
CF
103412002-02-14 Christopher Faylor <cgf@redhat.com>
10342
10343 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10344 GDBINIT_FILENAME.
10345
dd47e6fd
EZ
103462002-02-14 Elena Zannoni <ezannoni@redhat.com>
10347
10348 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10349 find_variant_by_name, because it confuses the multiarch
10350 framework. Return NULL if there isn't an architecture with the
10351 user supplied name, instead of forcing a different one without
10352 recording the change with the multiarch machinery.
10353 (find_variant_by_name): Delete.
10354
d7e39b9e
PS
103552002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10356
10357 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10358 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10359
76e42a4f
MH
103602002-02-13 Martin M. Hunt <hunt@redhat.com>
10361
aaa38bb5 10362 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10363 print_frame_info_listing_hook, set current_source_symtab.
10364
0a30fbc4
DJ
103652002-02-14 Daniel Jacobowitz <drow@mvista.com>
10366
10367 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10368 and remove unused $(INCLUDE_DIR).
10369 Add regcache.c to OBS.
10370 Add generated register protocol files to clean target.
10371 Update dependencies for new objects, obsolete old target code.
10372
10373 * gdbserver/linux-low.c: Remove all platform-specific code to
10374 new files. Remove various dead code. Update to use regcache
10375 functionality.
10376 * gdbserver/remote-utils.c (fromhex): Add return statement
10377 to quiet warning.
10378 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10379 constant.
10380 (input_interrupt): Add integer parameter to match prototype
10381 of a signal handler.
10382 (outreg): Use register_data ().
10383 (prepare_resume_reply): Use gdbserver_expedite_regs.
10384 * gdbserver/server.c (main): Dynamically allocate own_buf because
10385 PBUFSIZ is no longer constant. Use registers_to_string () and
10386 registers_from_string ().
10387 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10388 for error (), fatal (), and warning (). Update definition of
10389 PBUFSIZ to use regcache functionality. Add include guard.
10390 * gdbserver/utils.c (fatal): Add missing ``const''.
10391 (warning): New function.
10392
10393 * regformats/regdat.sh: Include "regcache.h" in generated files.
10394 Provide init_registers () function.
10395 * regformats/regdef.h: Add prototype for set_register_cache ().
10396 Add include guard.
10397
10398 * gdbserver/linux-arm-low.c: New file.
10399 * gdbserver/linux-i386-low.c: New file.
10400 * gdbserver/linux-ia64-low.c: New file.
10401 * gdbserver/linux-m68k-low.c: New file.
10402 * gdbserver/linux-mips-low.c: New file.
10403 * gdbserver/linux-ppc-low.c: New file.
10404 * gdbserver/linux-sh-low.c: New file.
10405
10406 * gdbserver/regcache.c: New file.
10407 * gdbserver/regcache.h: New file.
10408
10409 * gdbserver/low-linux.c: Removed obsolete file.
10410
4cc841d0
DJ
104112002-02-14 Daniel Jacobowitz <drow@mvista.com>
10412
10413 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10414 * config/i386/linux.mt: Likewise.
10415 * config/ia64/linux.mt: Likewise.
10416 * config/m68k/linux.mh: Likewise.
10417 * config/powerpc/linux.mh: Likewise.
10418 * config/mips/linux.mt: Likewise.
10419
10420 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10421
10422 * config/i386/i386lynx.mh: Mark gdbserver variables
10423 as (currently) obsolete for this target.
10424 * config/i386/nbsd.mt: Likewise.
10425 * config/i386/nbsdelf.mt: Likewise.
10426 * config/m32r/m32r.mt: Likewise.
10427 * config/m68k/m68klynx.mh: Likewise.
10428 * config/m68k/nbsd.mt: Likewise.
10429 * config/m68k/sun3os4.mh: Likewise.
10430 * config/mips/vr5000.mt: Likewise.
10431 * config/ns32k/nbsd.mt: Likewise.
10432 * config/pa/hppabsd.mh: Likewise.
10433 * config/pa/hppaosf.mh: Likewise.
10434 * config/powerpc/nbsd.mt: Likewise.
10435 * config/rs6000/rs6000lynx.mh: Likewise.
10436 * config/s390/s390.mt: Likewise.
10437 * config/s390/s390x.mt: Likewise.
10438 * config/sparc/sparclynx.mh: Likewise.
10439 * config/sparc/sun4os4.mh: Likewise.
10440 * config/i386/x86-64linux.mt: Likewise.
10441 * config/sparc/linux.mh: Likewise.
10442
a85f51e7
DJ
104432002-02-14 Daniel Jacobowitz <drow@mvista.com>
10444
10445 * configure.tgt: Configure gdbserver only for known working
10446 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10447 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10448 SUBDIRS if it is configured. Update comment for ${nativefile}.
10449 * configure: Regenerated.
10450
65554fef
MS
104512002-02-13 Michael Snyder <msnyder@redhat.com>
10452
670a52db
MS
10453 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10454
6dbdc4a3
MS
10455 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10456 (default_gcore_mach): Just return 0, work around a problem in bfd.
10457 (default_gcore_target): OK to return NULL if exec_bfd is null.
10458 (make_mem_sec): Use a cast, avoid a warning.
10459
10460 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10461 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10462 sizeof (host pointer) != sizeof (target pointer)).
10463 (procfs_make_note_section): Avoid overflow in psargs string.
10464
aaa38bb5 10465 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10466 implementation return an error.
10467
104682002-02-13 Rodney Brown <rbrown64@csc.com.au>
10469
10470 * procfs.c (procfs_make_note_section): Provide a default definition
10471 (for alpha-dec-osf4.0f). Fix typos.
10472
1e4d76e7
EZ
104732002-02-13 Elena Zannoni <ezannoni@redhat.com>
10474
10475 * linux-proc.c: Add include of regcache.h.
10476 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10477
b6d1a1d5
AC
104782002-02-13 Andrew Cagney <ac131313@redhat.com>
10479
10480 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10481 * memattr.c (create_mem_region): Disallow useless empty region.
10482 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10483 non-overlapping.
b6d1a1d5 10484
6c6ea35e
MC
104852002-02-13 Michael Chastain <mec@shout.net>
10486
10487 * defs.h: Kill CONST_PTR.
10488 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10489 * c-lang.c (c_builtin_types): Likewise.
10490 * ch-lang.c (ch_builtin_types): Likewise.
10491 * f-lang.c (f_builtin_types): Likewise.
10492 * language.c (unknown_builtin_types): Likewise.
10493 * m2-lang.c (m2_builtin_types): Likewise.
10494 * p-lang.c (pascal_builtin_types): Likewise.
10495 * scm-lang.c (c_builtin_types): Likewise.
10496
3e0b0f48
KS
104972002-02-13 Keith Seitz <keiths@redhat.com>
10498
10499 * arm-tdep.h (arm_get_next_pc): Add declaration.
10500
67255d04
RE
105012002-02-13 Richard Earnshaw <rearnsha@arm.com>
10502
10503 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10504 with other related struct-returning functions.
10505 (arm_extract_struct_value_address): New function.
10506 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10507 initialize float_format, double_format and long_double_format as
10508 appropriate to the endianness of the target.
10509 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10510 (arm_use_struct_convention): Delete declaration.
10511 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10512
079777f6
KS
105132002-02-13 Keith Seitz <keiths@redhat.com>
10514
10515 * defs.h (core_addr_to_string_nz): New function.
10516
34588f23
MK
105172002-02-13 Mark Kettenis <kettenis@gnu.org>
10518
10519 Apply missing bits of 2002-01-15 patch.
10520 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10521 (fill_fpregset): Use i387_fill_fsave.
10522
49b563f9
KS
105232002-02-12 Keith Seitz <keiths@redhat.com>
10524
49b563f9
KS
10525 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10526 (core_addr_to_string_nz): New function.
10527
aeb98c60
RE
105282002-02-11 Richard Earnshaw <rearnsha@arm.com>
10529
10530 * arm-linux-nat.c: Really include arm-tdep.h.
10531 * config/arm/tm-linux.h (struct type, struct value): Declare.
10532
65554fef
MS
105332002-02-11 Michael Snyder <msnyder@redhat.com>
10534
10535 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10536 (gcore section): Ifdef for Solaris and Unixware only.
10537 (procfs_do_thread_registers): Unixware needs one lwpstatus
10538 per thread (not one prstatus or pstatus).
10539 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10540 not over all gdb threads. For unixware, call elfcore_write_pstatus
10541 once before iterating over threads.
10542
34e8f22d
RE
105432002-02-11 Richard Earnshaw <rearnsha@arm.com>
10544
10545 * arm-tdep.h: New file.
10546 * arm-tdep.c: Include arm-tdep.h.
10547 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10548 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10549 (arm_print_float_info, arm_register_type, convert_to_extended)
10550 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10551 (arm_extract_return_value, arm_register_name): Make static.
10552 (arm_software_single_step): Similarly. Fix types in declaration.
10553 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10554 (arm_store_return_value, arm_store_struct_return): New functions.
10555 (arm_gdbarch_init): Register the above functions. Also register
10556 call_dummy_start_offset, sizeof_call_dummy_words,
10557 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10558 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10559 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10560 prologue_cache.saved_regs here, rather than ...
10561 (_initialize_arm_tdep): ... here.
10562 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10563 declarations.
10564 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10565 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10566 (arm_print_float_info, arm_register_type, convert_to_extended)
10567 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10568 (arm_extract_return_value, arm_register_name): Delete declarations.
10569 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10570 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10571 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10572 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10573 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10574 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10575 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10576 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10577 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10578 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10579 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10580 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10581 interface.
10582 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10583 * remote-rdi.c remote-rdp.c: Likewise.
10584 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10585 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10586 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10587 definition.
10588
10589 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10590 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10591 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10592 from non-ARM_ prefixed definitions.
10593 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10594 all uses of above.
10595 * remote-rdi.c remote-rdp.c: Likewise.
10596 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10597
148754e5
RE
105982002-02-11 Richard Earnshaw <rearnsha@arm.com>
10599
10600 * arm-tdep.c (arm_frameless_function_invocation)
10601 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10602 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10603 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10604 (arm_pop_frame, arm_get_next_pc): Make static.
10605 (arm_gdbarch_init): Register above in gdbarch structure.
10606 (arm_read_fp): Renamed from arm_target_read_fp.
10607 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10608 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10609 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10610 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10611 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10612 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10613 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10614 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10615 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10616 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10617 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10618
434d2d4f
DJ
106192002-02-10 Daniel Jacobowitz <drow@mvista.com>
10620
10621 * symtab.c (compare_search_syms): New function.
10622 (sort_search_symbols): New function.
10623 (search_symbols): Sort symbols after searching rather than
10624 before.
10625
55241689
AC
106262002-02-10 Andrew Cagney <ac131313@redhat.com>
10627
10628 * NEWS: Linux -> GNU/Linux.
10629
028c194b
AC
106302002-02-10 Andrew Cagney <ac131313@redhat.com>
10631
10632 * gdbarch.sh: For for level one methods, disallow a definition
10633 when partially multi-arched. Add comments explaining rationale.
10634 * gdbarch.h: Re-generate.
10635
6acf50cd
AC
106362002-02-10 Andrew Cagney <ac131313@redhat.com>
10637
10638 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10639 multi-arch partial.
aaa38bb5 10640
50248794
AC
106412002-02-10 Andrew Cagney <ac131313@redhat.com>
10642
10643 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10644 field. Use diff -u.
10645 * gdbarch.c: Re-generate.
10646
c30e0066
AC
106472002-02-10 Andrew Cagney <ac131313@redhat.com>
10648
9b56c5f3 10649 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10650 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10651 partial.
10652
6e6d6484
AC
106532002-02-10 Andrew Cagney <ac131313@redhat.com>
10654
10655 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10656 multi-arch partial.
10657 (PUSH_ARGUMENTS): Switch to using predefault.
10658 * gdbarch.c: Regenerate.
10659
c203844d
AC
106602002-02-10 Andrew Cagney <ac131313@redhat.com>
10661
10662 * valops.c (PUSH_ARGUMENTS): Delete definition.
10663 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10664 partial. Default to default_push_arguments.
10665 * gdbarch.h, gdbarch.c: Regenerate.
10666
b5a2688f
AC
106672002-02-09 Andrew Cagney <ac131313@redhat.com>
10668
10669 * defs.h (throw_exception): Rename return_to_top_level. Update
10670 comments.
10671 * utils.c (error_stream, internal_verror, quit): Ditto.
10672 * top.c (throw_exception, catcher): Ditto.
10673 * sparclet-rom.c (sparclet_load): Ditto.
10674 * remote.c (interrupt_query, minitelnet): Ditto.
10675 * remote-sds.c (interrupt_query): Ditto.
10676 * remote-mips.c (mips_error, mips_kill): Ditto.
10677 * ocd.c (interrupt_query): Ditto.
10678 * monitor.c (monitor_interrupt_query): Ditto.
10679 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10680 * target.h: Update comment.
aaa38bb5 10681
b5a2688f 10682 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10683
2fa5c1e0
AC
106842002-02-09 Andrew Cagney <ac131313@redhat.com>
10685
10686 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10687 default_double_format.
10688 * gdbarch.h, gdbarch.c: Re-generate.
10689 * findvar.c (floatformat_unknown): Delete variable definition.
10690 * doublest.h (floatformat_unknown): Delete variable declaration.
10691
da966255
JB
106922002-02-09 Jim Blandy <jimb@redhat.com>
10693
10694 * stabsread.c (read_type): Add code to parse Sun's syntax for
10695 prototyped function types.
10696
123a4891
AC
106972002-02-09 Andrew Cagney <ac131313@redhat.com>
10698
10699 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10700 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10701
fb39c8f3
PS
107022002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10703
10704 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10705 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10706 now _initialize_xcoffsolib gets called again and overrides the
10707 commands from solib.c in a native configuration.
10708
0b87a11d
MK
107092002-02-09 Mark Kettenis <kettenis@gnu.org>
10710
10711 * doublest.c (store_typed_floating): Don't try to return a value.
10712 Fixes PR gdb/290.
10713
bdc2fc72
JB
107142002-02-08 Jim Blandy <jimb@redhat.com>
10715
10716 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10717 is prototyped and has no arguments, print its argument list as
10718 `(void)'.
10719
da69bbcf
CD
107202002-02-08 Chris Demetriou <cgd@broadcom.com>
10721
10722 * MAINTAINERS (write-after-approval): Add myself.
10723 (paper-trail): I've escaped!
aaa38bb5 10724
b69571f5
CF
107252002-02-08 Christopher Faylor <cgf@redhat.com>
10726
10727 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10728 changes.
10729 (_initialize_check_for_gdb_ini): Ditto.
10730
f6871398
MH
107312002-02-08 Martin M. Hunt <hunt@redhat.com>
10732
10733 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10734 xaprintf -> xasprintf.
10735
4e52d31c
PM
107362002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10737
10738 * win32-nat.c: Remove use of printf and sprintf functions.
10739
39bbf761
RE
107402002-02-08 Richard Earnshaw <rearnsha@arm.com>
10741
10742 * arm-tdep.c (arm_frame_chain_valid): Make static.
10743 (arm_push_arguments): Likewise.
10744 (arm_gdbarch_init): New function.
10745 (_initialize_arm_tdep): Call it.
10746 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10747 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10748 (FRAME_CHAIN_VALID): Delete.
10749 (arm_frame_chain_valid): Delete declaration.
10750 (PUSH_ARGUMENTS): Delete.
10751 (arm_push_arguments): Delete declaration.
10752 (CALL_DUMMY_P): Delete.
10753
9c9532c9
CV
107542002-02-08 Andrew Cagney <ac131313@redhat.com>
10755 Corinna Vinschen <vinschen@redhat.com>
10756
10757 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10758 on builtin float types.
10759
4e8f7a8b
DJ
107602002-02-08 Daniel Jacobowitz <drow@mvista.com>
10761
10762 * utils.c: Include <curses.h> before "bfd.h".
10763 * tui/tui-hooks.c: Likewise.
10764 * tui/tui.c: Likewise.
10765 * tui/tuiCommand.c: Likewise.
10766 * tui/tuiData.c: Likewise.
10767 * tui/tuiDataWin.c: Likewise.
10768 * tui/tuiDisassem.c: Likewise.
10769 * tui/tuiGeneralWin.c: Likewise.
10770 * tui/tuiIO.c: Likewise.
10771 * tui/tuiLayout.c: Likewise.
10772 * tui/tuiRegs.c: Likewise.
10773 * tui/tuiSource.c: Likewise.
10774 * tui/tuiSourceWin.c: Likewise.
10775 * tui/tuiStack.c: Likewise.
10776 * tui/tuiWin.c: Likewise.
10777
cd4bffcf
EZ
107782002-02-07 Elena Zannoni <ezannoni@redhat.com>
10779
10780 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10781 to include space for pseudoregs as well. Update loops accordingly.
10782 (sh_fp_frame_init_saved_regs): Ditto.
10783 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10784
26806ce2
AC
107852002-02-07 Andrew Cagney <ac131313@redhat.com>
10786
10787 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10788 Add Richard Earnshaw to Arm maintainers.
10789
97fdab62
AC
107902002-02-07 Andrew Cagney <ac131313@redhat.com>
10791
a6b98203
AC
10792 * defs.h (warning_begin): Delete declaration.
10793
97fdab62
AC
10794 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10795 Delete macro.
10796
78b29b40
MS
107972002-02-07 Michael Snyder <msnyder@redhat.com>
10798
aaa38bb5 10799 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10800 Logic bug, remove misplaced else.
10801
d8849953
KD
108022002-02-07 Klee Dienes <klee@apple.com>
10803
10804 * fork-inferior.c (fork_inferior): Add '!' to the list of
10805 characters that need to be quoted when building a string for the
10806 shell. Quote '!' specifically with a backslash, since CSH chokes
10807 when trying to evaluate "str!str".
aaa38bb5 10808
095778a0
NC
108092002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10810
10811 * rdi-share/host.h: Only provide a typedef for bool if it is not
10812 defined.
10813
1900040c
MS
108142002-02-04 Michael Snyder <msnyder@redhat.com>
10815
10816 * breakpoint.h (enum bptype): Add new overlay event bp type.
10817 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10818
1900040c
MS
10819 * breakpoint.c (create_internal_breakpoint): New function.
10820 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10821 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10822 (create_thread_event_breakpoint): Ditto.
10823 (create_solib_event_breakpoint): Ditto.
10824 (create_overlay_event_breakpoint): New function.
10825 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10826 (update_breakpoints_after_exec): Delete and re-initialize
10827 overlay event breakpoints after an exec. Add FIXME comment
10828 about longjmp breakpoint.
10829 (print_it_typical): Ignore overlay event breakpoints.
10830 (print_one_breakpoint): Ditto.
10831 (mention): Ditto.
10832 (bpstat_what): Do not stop for overlay event breakpoints.
10833 (delete_breakpoint): Don't delete overlay event breakpoints.
10834 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10835 (breakpoint_re_set): Re-create overlay event breakpoint.
10836
10837 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10838 (overlay_manual_command): Disable overlay breakpoints.
10839 (overlay_off_command): Disable overlay breakpoints.
10840
082fc60d
RE
108412002-02-06 Richard Earnshaw <rearnsha@arm.com>
10842
10843 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10844 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10845 to here from config/tm-arm.h.
10846 (coff_sym_is_thumb): Make static.
10847 (arm_elf_make_msymbol_special): New function.
10848 (arm_coff_make_msymbol_special): New function.
10849 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10850 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10851 (coff_sym_is_thumb): Delete declaration.
10852 (arm_elf_make_msymbol_special): Declare.
10853 (arm_coff_make_msymbol_special): Declare.
10854 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10855 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10856
039c5766
RE
108572002-02-06 Richard Earnshaw <rearnsha@arm.com>
10858
10859 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10860
108612002-02-06 Richard Earnshaw <rearnsha@arm.com>
10862
10863 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10864 * gdbarch.c gdbarch.h: Regenerate.
10865 * arch-utils.c (default_print_float_info): New function.
10866 * arch-utils.h (default_print_float_info): Prototype it.
10867 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10868 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10869 (PRINT_FLOAT_INFO): Document it.
10870
10871 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10872 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10873 (PRINT_FLOAT_INFO): Define.
10874
58fa08f0
PM
108752002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10876
aaa38bb5 10877 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10878 Add typecast to sprintf argument to suppress a warning.
10879
7393af7c
PM
108802002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10881
58fa08f0 10882 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10883 to allow easier handling of pass state.
10884 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10885 that gives exception name and address.
10886 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10887 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10888 exceptions added.
aaa38bb5
AJ
10889 (child_continue): Correctly report continue_status.
10890 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10891 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10892 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10893 the exception should be passed to debuggee or not.
10894
6af4589c
MS
108952002-02-05 Michael Snyder <msnyder@redhat.com>
10896
10897 * regcache.c (fetch_register): Call target_fetch_register
10898 only if we don't call FETCH_PSEUDO_REGISTER.
10899 (store_register): Call target_store_register only if we
10900 don't call STORE_PSEUDO_REGISTER.
10901
a2cf933a
EZ
109022002-02-05 Elena Zannoni <ezannoni@redhat.com>
10903
10904 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10905 ELF_MAKE_MSYMBOL_SPECIAL.
10906 * gdbarch.c, gdbarch.h: Regenerate.
10907 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10908 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10909 * elfread.c (elf_symtab_read): Compile use of
10910 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10911 multiarched.
10912 * coffread.c (coff_symtab_read): Ditto, for
10913 COFF_MAKE_MSYMBOL_SPECIAL.
10914
6bb7be43
JB
109152002-02-05 Jim Blandy <jimb@redhat.com>
10916
10917 * solib-svr4.c (svr4_truncate_ptr): New function.
10918 (svr4_relocate_section_addresses): Do the address arithmetic with
10919 the appropriate truncation for target addresses, even when
10920 CORE_ADDR is larger than a target address.
10921
e18651ec
DJ
109222002-02-05 Daniel Jacobowitz <drow@mvista.com>
10923
10924 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10925 to (int *).
10926
6b2725be
DJ
109272002-02-05 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10930 code.
10931
fca9e603
DJ
109322002-02-05 Daniel Jacobowitz <drow@mvista.com>
10933
10934 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10935
6c537a52
DJ
109362002-02-05 Daniel Jacobowitz <drow@mvista.com>
10937
10938 * gdbserver/linux-low.c: Remove unused include files.
10939
d844cde6
DJ
109402002-02-05 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10943 (read_inferior_memory): Use it.
10944 (write_inferior_memory): Likewise.
10945
d07c63e7
DJ
109462002-02-05 Daniel Jacobowitz <drow@mvista.com>
10947
10948 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10949 grubbing through sys_errlist.
10950
da6d8c04
DJ
109512002-02-05 Daniel Jacobowitz <drow@mvista.com>
10952
10953 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10954
5b421780
PM
109552002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10956 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10957
9f60d481
AC
109582002-02-04 Andrew Cagney <ac131313@redhat.com>
10959
10960 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10961 (do_sfunc, set_cmd_sfunc): New functions.
10962
10963 * command.h (struct cmd_list_element): Add field func.
10964 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10965 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10966 * cli/cli-decode.h: Ditto.
10967
10968 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10969 (help_all, help_cmd_list): Ditto.
10970 (find_cmd, complete_on_cmdlist): Ditto.
10971 * top.c (execute_command): Ditto.
10972
10973 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10974 function.sfunc.
10975
10976 * infcmd.c (notice_args_read): Fix function signature.
10977
10978 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10979 * cli/cli-decode.c (add_set_cmd): Ditto.
10980 * utils.c (initialize_utils): Ditto.
10981 * maint.c (_initialize_maint_cmds): Ditto.
10982 * infrun.c (_initialize_infrun): Ditto.
10983 * demangle.c (_initialize_demangler): Ditto.
10984 * remote.c (add_packet_config_cmd): Ditto.
10985 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10986 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10987 * proc-api.c (_initialize_proc_api): Ditto.
10988 * kod.c (_initialize_kod): Ditto.
10989 * valprint.c (_initialize_valprint): Ditto.
10990 * top.c (init_main): Ditto.
10991 * infcmd.c (_initialize_infcmd): Ditto.
10992 * corefile.c (_initialize_core): Ditto.
10993 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10994 * arch-utils.c (initialize_current_architecture): Ditto.
10995 (_initialize_gdbarch_utils): Ditto.
10996 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10997
10998 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10999 * wince.c (_initialize_inftarg): Ditto.
11000 * symfile.c (_initialize_symfile): Ditto.
11001 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11002 * language.c (_initialize_language): Ditto.
11003 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11004
f9ba0717
MS
110052002-02-04 Michael Snyder <msnyder@redhat.com>
11006
11007 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11008
0c74b2a7
DJ
110092002-02-04 Daniel Jacobowitz <drow@mvista.com>
11010
11011 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11012 Add rules for building the register data files.
11013
c638789f
DJ
110142002-02-04 Daniel Jacobowitz <drow@mvista.com>
11015
11016 * regformats/regdat.sh: Add braces to the definition of
11017 expedite_regs_${arch}.
11018
db253027
DJ
110192002-02-04 Daniel Jacobowitz <drow@mvista.com>
11020
11021 * regformats/regdef.h (struct reg): Add comment describing the
11022 requirements for offset and size fields.
11023
206be19c
AS
110242002-02-04 Andreas Schwab <schwab@suse.de>
11025
11026 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11027 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11028
181c1381
RE
110292002-02-04 Richard Earnshaw <rearnsha@arm.com>
11030
11031 * gdbarch.sh (copyright): Update years in generated header.
11032 (SMASH_TEXT_ADDRESS): Add rule.
db253027 11033 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
11034 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11035 * dbxread.c: Likewise.
11036 * dwarfread.c: Likewise.
11037 * elfread.c: Likewise.
11038 * somread.c: Likewise.
11039
11040 * arm-tdep.c (arm_smash_text_address): New function.
11041 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11042
fa4ba8da
PM
110432002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11044
11045 Add support for hardware watchpoints on win32 native.
aaa38bb5 11046 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 11047 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 11048 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
11049 of debug registers.
11050 (debug_registers_changed): New variable. Reflects when debug registers
11051 are changed and need to be written to inferior.
aaa38bb5 11052 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
11053 was set, used when new threads are created.
11054 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11055 i386-nat code.
11056 (thread_rec): Set dr array if id is the thread of current_event .
11057 (child_continue, child_resume): Change the debug registers for all
11058 threads if debug_registers_changed.
11059 (child_add_thread): Change the debug registers if debug_registers_used.
11060 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11061 Link nm.h to new nm-cygwin.h file.
11062 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11063 of hardware registers.
11064
a73c86fb
AC
110652002-02-03 Andrew Cagney <ac131313@redhat.com>
11066
11067 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11068 Restore behavour broken by 2002-01-20 Andrew Cagney
11069 <ac131313@redhat.com> IEEE_FLOAT removal.
11070
acf5ed49
DJ
110712002-02-03 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * c-valprint.c (c_val_print): Pass a proper valaddr to
11074 cp_print_class_method.
11075 * valops.c (search_struct_method): If there is only one method
11076 and args is NULL, return that method.
11077
493d28d5
DJ
110782002-02-03 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11081 accessing tag_name directly.
11082
7495dfdb
DJ
110832002-02-03 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11086 of accessing tag_name directly.
11087
dd6bda65
DJ
110882002-02-03 Daniel Jacobowitz <drow@mvista.com>
11089
11090 PR gdb/280
11091 * gdbtypes.c (replace_type): New function.
11092 * gdbtypes.h (replace_type): Add prototype.
11093 * stabsread.c (read_type): Use replace_type.
11094
88fe217c
RE
110952002-02-03 Richard Earnshaw <rearnsha@arm.com>
11096
11097 * Makefile.in (memattr.o): Add missing dependencies rule.
11098
e5d66720
PS
110992002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11100
11101 * breakpoint.c (break_at_finish_command): Really export.
11102 (break_at_finish_at_depth_command): Ditto.
11103 (tbreak_at_finish_command): Ditto.
11104 * hppa-tdep.c: Include completer.h.
11105 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11106 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11107
fffee0be
AC
111082002-02-01 Andrew Cagney <ac131313@redhat.com>
11109
11110 * utils.c (do_write): New function.
11111 (error_stream): Rewrite combining the code from error_begin and
11112 verror.
11113 (verror): Rewrite using error_stream.
11114 (error_begin): Delete function.
11115
255e7dbf
AC
111162002-02-01 Andrew Cagney <ac131313@redhat.com>
11117
11118 * utils.c (error_begin): Make static.
11119 * defs.h (error_begin): Delete declaration.
11120
11121 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11122 (decode_line_1): Use cplusplus_error instead of error_begin,
11123 cplusplus_hint and return_to_top_level.
11124 * coffread.c (coff_symfile_read): Use error instead of error_begin
11125 and return_to_top_level.
11126 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11127
ddfe3c15
AC
111282002-02-01 Andrew Cagney <ac131313@redhat.com>
11129
11130 * language.h (type_error, range_error): Make string parameter
11131 constant.
11132 * language.c (warning_pre_print): Delete extern declaration.
11133 * dwarfread.c (warning_pre_print): Ditto.
11134 * language.c (type_error, range_error): Rewrite to use verror and
11135 vwarning instead of warning_begin.
11136
03ac34d5
MS
111372002-02-01 Michael Snyder <msnyder@redhat.com>
11138
261c4ca2
MS
11139 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11140 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 11141
e00d1dc8
AC
111422002-02-01 Andrew Cagney <ac131313@redhat.com>
11143
11144 * command.h (NO_FUNCTION): Delete macro.
11145 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11146 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11147 * tracepoint.c (_initialize_tracepoint): Ditto.
11148 * cli/cli-decode.c (add_set_cmd): Ditto.
11149 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 11150
76b79d6e
DJ
111512002-02-01 Daniel Jacobowitz <drow@mvista.com>
11152
11153 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11154 Update ``this'' pointer when calling virtual functions.
11155
799f9e91
MS
111562002-02-01 Michael Snyder <msnyder@redhat.com>
11157
c7bd442c 11158 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
11159 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11160
3cf384d4
DJ
111612002-02-01 Daniel Jacobowitz <drow@mvista.com>
11162
11163 * regformats/reg-arm.dat: New file.
11164 * regformats/reg-i386.dat: New file.
11165 * regformats/reg-ia64.dat: New file.
11166 * regformats/reg-m68k.dat: New file.
11167 * regformats/reg-mips.dat: New file.
11168 * regformats/reg-ppc.dat: New file.
11169 * regformats/reg-sh.dat: New file.
11170 * regformats/regdef.h: New file.
11171 * regformats/regdat.sh: New file.
11172
0defa245
RE
111732002-02-01 Richard Earnshaw <reanrsha@arm.com>
11174
11175 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11176 (arm_frame_args_address, arm_frame_locals_address): New functions.
11177 (arm_frame_num_args): New function.
11178 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11179 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11180 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11181
405f26e6
MS
111822002-01-31 Michael Snyder <msnyder@redhat.com>
11183
502fd408
MS
11184 * breakpoint.c (break_at_finish_command): Export.
11185 (break_at_finish_at_depth_command): Export.
11186 (tbreak_at_finish_command): Export.
d6020d45 11187 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 11188 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 11189 "txbreak" commands, which are HPPA specific.
502fd408 11190
7d35e135
MS
11191 * printcmd.c (disassemble_command): Remove an ancient
11192 artifact of an old merge.
11193
aaa38bb5 11194 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
11195 Define enum constant values for overlay mode.
11196 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
11197 (overlay_is_mapped, overlay_auto_command,
11198 overlay_manual_command): Ditto.
d874f1e2 11199
aaa38bb5
AJ
11200 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11201 breakpoint_here_p, breakpoint_inserted_here_p,
11202 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
11203 describe_other_breakpoints, check_duplicates, clear_command):
11204 Coding standard fixes.
11205
8add0441 11206 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 11207 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
11208 code: check bfd SEC_READONLY flag for section.
11209
e351066e
AC
112102002-01-31 Andrew Cagney <ac131313@redhat.com>
11211
7d35e135 11212 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 11213
8a48e967
DJ
112142002-01-30 Daniel Jacobowitz <drow@mvista.com>
11215
11216 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11217 data symbols, since we search based on textlow and texthigh.
11218 (find_pc_sect_symtab): Likewise.
11219
f5a96129
AC
112202002-01-30 Andrew Cagney <ac131313@redhat.com>
11221
11222 * defs.h (vwarning): Declare.
f5a96129
AC
11223 * utils.c (vwarning): New function.
11224 (warning): Call vwarning.
11225 (warning_begin): Delete function.
11226
11227 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11228 the warning message.
11229 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11230 warning_begin.
11231
cefd4ef5
MS
112322002-01-30 Michael Snyder <msnyder@redhat.com>
11233
1a703748
MS
11234 * NEWS: Mention "set trust-readonly-sections" command.
11235 Mention generate-core-file command.
cefd4ef5 11236
3a11626d
MS
112372002-01-15 Michael Snyder <msnyder@redhat.com>
11238
11239 * target.c: New command, "set trust-readonly-sections on".
11240 (do_xfer_memory): Honor the suggestion to trust readonly sections
11241 by reading them from the object file instead of from the target.
11242 (initialize_targets): Register command "set trust-readonly-sections".
11243
d1c7e53b
AC
112442002-01-29 Andrew Cagney <ac131313@redhat.com>
11245
11246 * parse.c (target_map_name_to_register): Simplify, search regs and
11247 pseudo-regs using a single loop.
11248
e2c9a72c
AC
112492002-01-30 Andrew Cagney <ac131313@redhat.com>
11250
11251 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11252
69824b4e
MK
112532002-01-15 Rodney Brown <rbrown64@csc.com.au>
11254
11255 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11256 * config/i386/i386v42mp.mh: Add i387-nat.o .
11257 * i386v4-nat.c: Include i387-nat.h.
11258 (supply_fpregset): Use i387_supply_fsave.
11259 (fill_fpregset): Use i387_fill_fsave.
11260
6eb69eab
RE
112612002-01-30 Richard Earnshaw <rearnsha@arm.com>
11262
11263 * arm-tdep.c (arm_call_dummy_words): Define.
11264 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11265 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11266 (CALL_DUMMY_WORDS): Define.
11267 (arm_call_dummy_words): Declare.
11268 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11269 (arm_linux_call_dummy_words): Declare.
11270
9852326a
AS
112712002-01-30 Andreas Schwab <schwab@suse.de>
11272
11273 * m68klinux-nat.c: Fix last change to use regcache_collect
11274 instead of referencing registers[] directly.
11275
977a3030
AC
112762002-01-29 Andrew Cagney <ac131313@redhat.com>
11277
11278 * parse.c (target_map_name_to_register): Delete code wrapped in
11279 #ifdef REGISTER_NAME_ALIAS_HOOK.
11280
2076c72b
MS
112812002-01-28 Michael Snyder <msnyder@redhat.com>
11282
11283 * regcache.c (legacy_read_register_gen): Need to be able to
11284 read pseudo-register as well as real register.
11285 (legacy_write_register_gen): Ditto.
11286
8fcc723b
AC
112872002-01-28 Andrew Cagney <ac131313@redhat.com>
11288
11289 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11290 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11291 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11292 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11293 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11294 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11295 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11296 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11297 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11298 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11299 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11300 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11301 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11302 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11303 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11304 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11305 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11306 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11307 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11308 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11309
afe64c1a
AC
113102002-01-28 Andrew Cagney <ac131313@redhat.com>
11311
11312 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11313 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11314 (initialize_current_architecture): Update target_byte_order using
11315 information from BFD.
aaa38bb5 11316 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11317 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11318
75bc7ddf
AC
113192002-01-28 Andrew Cagney <ac131313@redhat.com>
11320
11321 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11322 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11323
11324 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11325 #ifdef INVALID_FLOAT.
11326 * infcmd.c (do_registers_info): Ditto.
11327 * values.c (unpack_double): Ditto. Add comment.
11328
11329 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11330 already commented out.
11331
0280a90a
AS
113322002-01-26 Andreas Schwab <schwab@suse.de>
11333
11334 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11335 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11336 registers and add support for PTRACE_GETREGS.
11337
7072a954
AC
113382002-01-24 Andrew Cagney <ac131313@redhat.com>
11339
11340 GDB 5.1.1 released from 5.1 branch.
11341 * NEWS: Add 5.1.1 news.
11342 * README: Sync with 5.1 branch.
11343
86f902e0
FF
113442002-01-23 Fred Fish <fnf@redhat.com>
11345
11346 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11347 stabstring on initial malloc. Reallocing will copy it for us,
11348 if necessary.
11349
8af51c36
EZ
113502002-01-23 Elena Zannoni <ezannoni@redhat.com>
11351
aaa38bb5 11352 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11353 (HFILES_NO_SRCDIR): Remove hpread.h.
11354 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11355 (hpread.o): Update dependencies.
11356 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11357
11358 * hp-psymtab-read.c: Remove file.
11359 * hp-symtab-read.c: Remove file.
11360 * hpread.h: Remove file.
11361
11362 * hpread.c: Merge all contents of hp-psymtab-read.c,
11363 hp-symtab-read.c and hpread.h into this file, as it was prior to
11364 January 1999.
11365
11366 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11367 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11368 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11369 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11370
dc5cfeb6
EZ
113712002-01-23 Elena Zannoni <ezannoni@redhat.com>
11372
11373 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11374 fill_gregset): Call gdbarch_tdep() just once, assign result to
11375 variable and use that, instead of calling the function several
11376 times.
11377
ea87b71b
AO
113782002-01-24 Alexandre Oliva <aoliva@redhat.com>
11379
11380 * configure.host: Accept sparcv9 as alias for sparc64.
11381 * configure.tgt: Likewise.
11382
13fc0c2f
KB
113832002-01-22 Kevin Buettner <kevinb@redhat.com>
11384
11385 * solib-aix5.c (build_so_list_from_mapfile)
11386 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11387 arguments is not reversed.
11388 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11389 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11390
7bd872fe
EZ
113912002-01-22 Elena Zannoni <ezannoni@redhat.com>
11392
11393 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11394 modified version of obsolete sh_fetch_pseudo_register.
11395 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11396 (sh4_register_read): New function.
11397 (sh_pseudo_register_write): New function. Renamed and modified
11398 version of obsolete sh_store_pseudo_register.
11399 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11400 (sh4_register_write): New function.
11401 (sh_gdbarch_init): Remove setting of gdbarch function
11402 fetch_pseudo_register and store_pseudo_register. Remove setting of
11403 register_convert_to_raw, register_convert_to_virtual,
11404 register_convertible.
11405 (sh_sh4_register_convertible): Delete. No longer needed. All is
11406 taken care by architecture specific functions
11407 register_read/register_write.
11408 (sh_sh4_register_convert_to_virtual): Make static.
11409 (sh_sh4_register_convert_to_raw): Ditto.
11410
069e84fd
AC
114112002-01-22 Andrew Cagney <ac131313@redhat.com>
11412
11413 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11414 (floatformat_is_nan, floatformat_mantissa): Ditto.
11415
11416 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11417 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11418 builtin_type_ieee_double_little,
11419 builtin_type_ieee_double_littlebyte_bigword,
11420 builtin_type_m68881_ext, builtin_type_i960_ext,
11421 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11422 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11423 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11424 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11425
211a4f69
CV
114262002-01-22 Corinna Vinschen <vinschen@redhat.com>
11427
11428 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11429 parameter. Set frameless flag if it exists and depended of
11430 whether the scanned function is frameless or not.
11431 (xstormy16_skip_prologue): If function is frameless, return
11432 result of xstormy16_scan_prologue().
11433 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11434 call.
11435
f81353e4
EZ
114362002-01-21 Elena Zannoni <ezannoni@redhat.com>
11437
11438 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11439 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11440 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11441 sh_sh4_register_byte, sh_sh4_register_raw_size,
11442 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11443 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11444 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11445 sh_store_pseudo_register, sh_do_pseudo_register): Call
11446 gdbarch_tdep() just once, assign result to variable and use that,
11447 instead of calling the function several times.
11448
63c73a17
MK
114492002-01-20 Mark Kettenis <kettenis@gnu.org>
11450
11451 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11452 macros instead of LAST_FPU_CTRL_REGNUM.
11453 (store_register): Likewise.
11454
39ad761d
JB
114552002-01-21 Jim Blandy <jimb@redhat.com>
11456
11457 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11458 is up-to-date before running the program, not just when a program
11459 exits.
11460
3d74b771
FF
114612002-01-21 Fred Fish <fnf@redhat.com>
11462
11463 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11464 when we have found all instructions we are looking for.
11465
966fbf70
RE
114662002-01-21 Richard Earnshaw <rearnsha@arm.com>
11467
11468 * arm-tdep.c (arm_register_name): New function.
11469 (arm_registers_names): Make static.
11470 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11471 (arm_register_name): Declare.
11472 (REGISTER_NAME): Use it.
11473
c3b4394c
RE
114742002-01-21 Richard Earnshaw <rearnsha@arm.com>
11475 Kevin Buettner <kevinb@redhat.com>
11476
11477 Convert arm targets to new FRAME interface.
11478 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11479 (arm_frame_find_save_regs): Delete.
11480 (arm_frame_init_saved_regs): New.
11481 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11482 Allocate extra_info as required. Convert all uses of fsr.regs
11483 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11484 to use extra_info.
11485 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11486 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11487 (check_prologue_cache, save_prologue_cache): Likewise.
11488 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11489 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11490 (FRAME_FIND_SAVED_REGS): Delete.
11491 (arm_frame_find_saved_regs): Delete prototype.
11492 (arm_frame_init_saved_regs): New prototype.
11493 (FRAME_INIT_SAVED_REGS): Define.
11494
61d99182
AC
114952002-01-20 Andrew Cagney <ac131313@redhat.com>
11496
11497 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11498
6aaea291
AC
114992002-01-20 Andrew Cagney <ac131313@redhat.com>
11500
11501 From Jeff Law <law@redhat.com>:
11502 * infttrace.c: Include <sys/pstat.h>.
11503 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11504 exec file if the ttrace equivalent fails.
11505
15f698d2
AC
115062002-01-20 Andrew Cagney <ac131313@redhat.com>
11507
11508 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11509 (closeLogFile): Ditto.
11510
f86ddd7c
MC
115112002-01-20 Michael Chastain <mec@shout.net>
11512
11513 * top.c (print_gdb_version): Bump copyright year to 2002.
11514
904507ce
AC
115152002-01-20 Andrew Cagney <ac131313@redhat.com>
11516
11517 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11518 Zannoni and Eli Zaretskii.
11519
d7f0b9ce
DJ
115202002-01-20 Daniel Jacobowitz <drow@mvista.com>
11521
11522 * buildsym.c: Update copyright years.
11523 * c-typeprint.c: Likewise.
11524 * dwarf2read.c: Likewise.
11525 * f-typeprint.c: Likewise.
11526 * gdbtypes.c: Likewise.
11527 * gdbtypes.h: Likewise.
11528 * hp-symtab-read.c: Likewise.
11529 * hpread.c: Likewise.
11530 * mdebugread.c: Likewise.
11531 * p-typeprint.c: Likewise.
11532
3fd3d7d2
AC
115332002-01-20 Andrew Cagney <ac131313@redhat.com>
11534
11535 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11536 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11537 byte-order selectable.
11538 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11539 * arch-utils.c: Ditto.
11540 (set_endian): Ditto.
11541 (set_endian_from_file): Ditto.
11542 * gdbserver/low-sim.c (create_inferior): Ditto.
11543 * gdbarch.sh: Ditto.
11544 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11545 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11546 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11547 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11548 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11549 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11550 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11551 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11552 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11553 macro definition.
11554 * config/mips/tm-wince.h: Remove #undef of macro
11555 TARGET_BYTE_ORDER_SELECTABLE.
11556 * config/sh/tm-wince.h: Ditto.
11557
b02dede2
DJ
115582002-01-20 Daniel Jacobowitz <drow@mvista.com>
11559
11560 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11561 member function fields. Add accessor macro
11562 TYPE_FN_FIELD_ARTIFICIAL.
11563 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11564 * c-typeprint.c (c_type_print_base): Skip artificial member
11565 functions.
11566
c3643761
DJ
115672002-01-20 Daniel Jacobowitz <drow@mvista.com>
11568
11569 * f-typeprint.c: Delete unused function f_type_print_args.
11570 * p-typeprint.c: Delete unused function pascal_type_print_args.
11571
8176bb6d
DJ
115722002-01-20 Daniel Jacobowitz <drow@mvista.com>
11573
11574 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11575 comment. Add ``artificial'' to ``union field_location''.
11576
11577 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11578
11579 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11580 * mdebugread.c (parse_symbol): Likewise.
11581 * stabsread.c (define_symbol): Likewise.
11582 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11583 initializing TYPE_FIELD_BITPOS to n (obsolete).
11584 (hpread_doc_function_type): Likewise.
11585 * hpread.c (hpread_function_type): Likewise.
11586
7fd60527
AC
115872002-01-20 Andrew Cagney <ac131313@redhat.com>
11588
11589 * configure.in (host_makefile_frag): Only require a host makefile
11590 fragment when a native build.
11591 * configure: Re-generate.
11592
c2f05ac9
AC
115932002-01-20 Andrew Cagney <ac131313@redhat.com>
11594
11595 * doublest.h (floatformat_from_type): Declare.
11596 * doublest.c (floatformat_from_type): New function.
11597 (convert_typed_floating): Use.
11598
11599 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11600 call to function floatformat_from_type.
11601
11602 * gdbarch.sh (IEEE_FLOAT): Delete.
11603 * gdbarch.h, gdbarch.c: Re-generate.
11604 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11605 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11606 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11607 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11608 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11609 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11610 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11611 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11612 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11613 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11614 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11615 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11616
11617 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11618 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11619 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11620 * sh-tdep.c (sh_gdbarch_init): Ditto.
11621 * mips-tdep.c (mips_gdbarch_init): Ditto.
11622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11623 * cris-tdep.c (cris_gdbarch_init): Ditto.
11624
abf22e64
AJ
116252002-01-20 Jiri Smid <smid@suse.cz>
11626
11627 * configure.host, configure.tgt: Support x86-64.
11628 * NEWS: Note new target x86-64.
11629
b7c4cbf8
AJ
11630 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11631 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11632 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11633 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11634 x86-64-linux-nat.o): Fix dependencies.
11635
82600034
AC
116362002-01-19 Andrew Cagney <ac131313@redhat.com>
11637
11638 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11639 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11640 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11641 * config/sparc/xm-sun4os4.h: Delete file.
11642 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11643
bbe5c628
AC
116442002-01-19 Andrew Cagney <ac131313@redhat.com>
11645
11646 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11647 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11648 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11649 * config/i386/i386lynx.mh (XM_FILE): Delete.
11650 * config/rs6000/xm-rs6000ly.h: Delete file.
11651 * config/sparc/xm-sparclynx.h: Delete file.
11652 * config/m68k/xm-m68klynx.h: Delete file.
11653 * config/i386/xm-i386lynx.h: Delete file.
11654 * config/xm-lynx.h: Delete file.
11655 * config/djgpp/fnchange.lst: Update.
11656
f8453e34
JT
116572002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11658
11659 * alpha-tdep.c (alpha_register_byte): New function.
11660 (alpha_register_raw_size): Ditto.
11661 (alpha_register_virtual_size): Ditto.
11662 (alpha_skip_prologue_internal): Renamed from
11663 alpha_skip_prologue.
11664 (alpha_skip_prologue): New version that calls
11665 alpha_skip_prologue_internal.
11666 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11667 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11668 second argument from alpha_skip_prologue.
11669 (REGISTER_BYTE): Use alpha_register_byte.
11670 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11671 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11672 (FRAMELESS_FUNCTION_INVOCATION): Use
11673 generic_frameless_function_invocation_not.
11674 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11675 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11676
52d9e613
AC
116772002-01-19 Andrew Cagney <ac131313@redhat.com>
11678
11679 * config/mips/xm-news-mips.h: Delete file.
11680 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11681
11682 * config/m88k/xm-m88k.h: Delete file.
11683 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11684 * config/m88k/xm-delta88v4.h: Ditto.
11685 * config/m88k/xm-delta88.h: Ditto.
11686
11687 * config/alpha/xm-fbsd.h: Delete file.
11688 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11689
11690 * config/sparc/xm-sparc.h: Delete file.
11691 * Makefile.in (xm-sun4os4.h): Delete dependency.
11692 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11693 * config/sparc/xm-sun4os4.h: Ditto.
11694 * config/sparc/xm-linux.h: Ditto.
11695
11696 * config/i386/xm-windows.h: Delete file.
11697
2d1b2124
AC
116982002-01-19 Andrew Cagney <ac131313@redhat.com>
11699
11700 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11701 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11702
ee1f65f0
JT
117032002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11704
11705 * alpha-tdep.c (alpha_call_dummy_words): New.
11706 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11707 (CALL_DUMMY_P): Define.
11708 (CALL_DUMMY_WORDS): Define.
11709 (SIZEOF_CALL_DUMMY_WORDS): Define.
11710
98081e55
PB
117112002-01-19 Per Bothner <per@bothner.com>
11712
11713 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11714 isn't NULL, which can happen with some gcj-3.x-produced code.
11715
0d056799
JT
117162002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11717
11718 * alpha-tdep.c (alpha_register_virtual_type): New function.
11719 (alpha_init_frame_pc_first): Ditto.
11720 (alpha_fix_call_dummy): Ditto.
11721 (alpha_store_struct_return): Ditto.
11722 (alpha_extract_struct_value_address): Ditto.
11723 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11724 alpha_register_virtual_type.
11725 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11726 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11727 alpha_extract_struct_value_address.
11728 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11729 (INIT_FRAME_PC): Use init_frame_pc_noop.
11730 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11731
4604bcad
MK
117322002-01-19 Mark Kettenis <kettenis@gnu.org>
11733
11734 * i386gnu-nat.c: Include "i386-tdep.h".
11735 (fetch_fpregs): Simplify code dealing with uninitialized floating
11736 point states such that it doesn't require FP7_REGNUM.
11737
140f9984
JT
117382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11739
abf22e64
AJ
11740 * alpha-tdep.c (frame_extra_info): New.
11741 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11742 frame->extra_info.
11743 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11744 (alpha_frame_saved_pc): Use frame->extra_info.
11745 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11746 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11747 (init_extra_frame_info): Rename to...
11748 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11749 (alpha_print_extra_frame_info): New function.
140f9984
JT
11750 (alpha_frame_locals_address): Ditto.
11751 (alpha_frame_args_address): Ditto.
abf22e64 11752 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11753 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11754 alpha_frame_args_address.
abf22e64 11755 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11756 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11757 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11758 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11759 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11760 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11761
d734c450
JT
117622002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11763
11764 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11765 (alpha_cannot_fetch_register): Ditto.
11766 (alpha_cannot_store_register): Ditto.
11767 (alpha_register_convertible): Ditto.
11768 (alpha_use_struct_convention): Ditto.
11769 * config/alpha/tm-alpha.h: Update copyright years.
11770 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11771 (INNER_THAN): Use core_addr_lessthan.
11772 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11773 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11774 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11775 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11776 (FRAME_CHAIN): Remove unnecessary cast.
11777
b4ceaee6
AC
117782002-01-18 Andrew Cagney <ac131313@redhat.com>
11779
11780 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11781 obsolete.
11782
0a65a603
AC
117832002-01-18 Andrew Cagney <ac131313@redhat.com>
11784
11785 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11786 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11787 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11788 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11789 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11790 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11791 * x86-64-linux-nat.c: Ditto.
11792
636a6dfc
JT
117932002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11794
abf22e64 11795 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11796 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11797 (REGISTER_NAME): Define.
11798
acceddb6
JT
117992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11800
11801 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11802
ec32e4be
JT
118032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11804
11805 * alpha-tdep.c: Update copyright years.
11806 (alpha_next_pc): New function.
11807 (alpha_software_single_step): Ditto.
11808 * config/alpha/tm-alpha.h: Add prototype for
11809 alpha_software_single_step.
11810
e771a871
JT
118112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11812
11813 * alphabsd-nat.c: Update copyright years.
11814 (fill_gregset): Use regcache_collect.
11815 (fill_fpregset): Likewise.
11816 (fetch_inferior_registers): Only fetch integer registers
11817 if requested to do so.
11818 (store_inferior_registers): Only store integer registers
11819 if requested to do so.
11820
7708fa01
AC
118212002-01-17 Andrew Cagney <ac131313@redhat.com>
11822
11823 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11824 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11825 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11826 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11827 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11828 * config/arm/linux.mh (XDEPFILES): Delete.
11829 * config/arm/nbsd.mh (XDEPFILES): Delete.
11830 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11831 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11832 * config/i386/i386m3.mh (XDEPFILES): Delete.
11833 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11834 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11835 * config/i386/fbsd.mh (XDEPFILES): Delete.
11836 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11837 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11838 * config/i386/i386v4.mh (XDEPFILES): Delete.
11839 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11840 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11841 * config/i386/i386aix.mh (XDEPFILES): Delete.
11842 * config/i386/go32.mh (XDEPFILES): Delete.
11843 * config/i386/cygwin.mh (XDEPFILES): Delete.
11844 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11845 * config/i386/i386mach.mh (XDEPFILES): Delete.
11846 * config/i386/i386v32.mh (XDEPFILES): Delete.
11847 * config/i386/linux.mh (XDEPFILES): Delete.
11848 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11849 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11850 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11851 * config/i386/i386sco.mh (XDEPFILES): Delete.
11852 * config/i386/i386v.mh (XDEPFILES): Delete.
11853 * config/i386/nbsd.mh (XDEPFILES): Delete.
11854 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11855 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11856 * config/i386/symmetry.mh (XDEPFILES): Delete.
11857 * config/i386/obsd.mh (XDEPFILES): Delete.
11858 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11859 * config/ia64/linux.mh (XDEPFILES): Delete.
11860 * config/ia64/aix.mh (XDEPFILES): Delete.
11861 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11862 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11863 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11864 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11865 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11866 * config/m68k/linux.mh (XDEPFILES): Delete.
11867 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11868 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11869 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11870 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11871 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11872 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11873 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11874 * config/m88k/delta88.mh (XDEPFILES): Delete.
11875 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11876 * config/m88k/m88k.mh (XDEPFILES): Delete.
11877 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11878 * config/mips/linux.mh (XDEPFILES): Delete.
11879 * config/mips/irix6.mh (XDEPFILES): Delete.
11880 * config/mips/irix5.mh (XDEPFILES): Delete.
11881 * config/mips/irix4.mh (XDEPFILES): Delete.
11882 * config/mips/irix3.mh (XDEPFILES): Delete.
11883 * config/mips/decstation.mh (XDEPFILES): Delete.
11884 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11885 (NATDEPFILES): Move core-aout.o to here.
11886 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11887 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11888 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11889 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11890 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11891 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11892 * config/pa/hpux11.mh (XDEPFILES): Delete.
11893 * config/powerpc/aix.mh (XDEPFILES): Delete.
11894 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11895 * config/powerpc/linux.mh (XDEPFILES): Delete.
11896 * config/romp/rtbsd.mh: Rename XDEPFILES.
11897 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11898 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11899 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11900 * config/s390/s390.mh (XDEPFILES): Delete.
11901 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11902 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11903 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11904 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11905 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11906 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11907 * config/sparc/linux.mh (XDEPFILES): Delete.
11908 * config/vax/vaxult.mh (XDEPFILES): Delete.
11909 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11910 * Makefile.in (DEPFILES): Remove XDEPFILES.
11911
375fc983
AC
119122002-01-17 Andrew Cagney <ac131313@redhat.com>
11913
11914 * utils.c (internal_verror): Fix comments, default is yes not no.
11915 Update queries to match. Default to quit and dump core.
11916
8926118c
AC
119172002-01-17 Andrew Cagney <ac131313@redhat.com>
11918
11919 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11920 copyright.
11921 * defs.h, event-top.c, gdbcmd.h: Ditto.
11922 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11923 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11924 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11925 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11926 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11927 * mi/mi-main.c:Ditto.
11928
11929 * stack.c, symfile.c: Update copyright.
11930
45b7b345
DJ
119312002-01-17 Daniel Jacobowitz <drow@mvista.com>
11932
db728ff7
DJ
11933 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11934 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11935 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11936 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11937
db728ff7
DJ
119382002-01-17 Daniel Jacobowitz <drow@mvista.com>
11939
11940 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11941 * gdbserver/low-lynx.c (myattach): Likewise.
11942 * gdbserver/low-nbsd.c (myattach): Likewise.
11943 * gdbserver/low-sim.c (myattach): Likewise.
11944 * gdbserver/low-sparc.c (myattach): Likewise.
11945 * gdbserver/low-sun3.c (myattach): Likewise.
11946
11947 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11948
db728ff7 11949 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11950 (main): Handle "--attach".
11951
8de3c354
AC
119522002-01-16 Andrew Cagney <ac131313@redhat.com>
11953
11954 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11955 maintainer.
11956
b0129042
DJ
119572002-01-15 Daniel Jacobowitz <drow@mvista.com>
11958
11959 * c-typeprint.c (is_type_conversion_operator): Add additional
11960 check for non-conversion operators.
11961
ba8679fb 119622002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11963
11964 * linux-proc.c: Add "info proc" command, a la procfs.c.
11965 (read_mapping): New function, abstract and re-use code.
11966 (linux_find_memory_regions): Use new func read_mapping.
11967 (linux_info_proc_cmd): New function, implement "info proc".
11968 (_initialize_linux_proc): Add new command "info proc".
11969
e4f9b4d5
MS
119702002-01-15 Michael Snyder <msnyder@redhat.com>
11971
11972 * symfile.c (generic_load): Use bfd_map_over_sections method
11973 instead of manipulating bfd structure members directly.
11974 (add_section_size_callback): New function, bfd sections callback
11975 used by generic_load.
11976 (load_sections_callback): New function, bfd sections callback
11977 used by generic_load.
11978
08cf96df
EZ
119792002-01-15 Elena Zannoni <ezannoni@redhat.com>
11980
abf22e64 11981 [Based on work by Jim Blandy]
08cf96df
EZ
11982 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11983 (builtin_type_vec128): Export.
11984 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11985 types.
11986 (builtin_type_vec128): New builtin type for 128 bit vector
11987 registers.
11988 (build_gdbtypes): Initialize builtin_type_v16qi and
11989 builtin_type_v8hi. Create the vec128 register builtin type
11990 structure.
11991 (build_builtin_type_vec128): New function.
abf22e64 11992 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11993 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11994 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11995 AltiVec register to new builtin type.
11996
d7242108
DJ
119972001-01-15 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12000 to make_cv_type.
12001
4ee3352d
AC
120022002-01-14 Andrew Cagney <ac131313@redhat.com>
12003
12004 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12005 CLEAN_UP_REGISTER_VALUE.
12006 * regcache.c (supply_register): Update only call.
12007
f015b2e7
AC
120082002-01-14 Andrew Cagney <ac131313@redhat.com>
12009
12010 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12011 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12012 a29k-*-vxworks* targets as obsolete.
12013
356ae49d
MS
120142002-01-14 Michael Snyder <msnyder@redhat.com>
12015
12016 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12017 until we can resolve portability issues.
12018 * gregset.h: Remove references to fpxregs.
12019 * gcore.c (gcore_command): Initialize note_sec to NULL.
12020
ade8f45e
AC
120212002-01-13 Andrew Cagney <ac131313@redhat.com>
12022
12023 * signals.c (target_signal_to_name): Rewrite. Only use
12024 signals[].name when in bounds and non-NULL.
abf22e64 12025
89c49e7a
AC
120262002-01-13 Andrew Cagney <ac131313@redhat.com>
12027
12028 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12029 * signals.c (target_signal_to_name): Verify that SIG is within the
12030 bounds of the signals array.
12031
4daa9f9f
AC
120322002-01-13 Andrew Cagney <ac131313@redhat.com>
12033
12034 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12035
ba4bbdcb
KS
120362002-01-13 Keith Seitz <keiths@redhat.com>
12037
12038 * stack.c (print_frame_info_base): Print the frame's pc
12039 only if when print_frame_info_listing_hook is not defined.
12040
575bbeb6
KS
120412002-01-13 Keith Seitz <keiths@redhat.com>
12042
12043 * varobj.c (varobj_set_value): Make sure that there were no
12044 errors evaluating the object before attempting to set its
12045 value.
12046 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12047 so this offset adjustment is no longer necessary.
12048 (create_child): Don't set the error flag if the child is
12049 a CPLUS_FAKE_CHILD.
12050 (value_of_child): If value_fetch_lazy fails, return NULL
12051 so that callers will be notified that an error occurred.
12052 (c_value_of_variable): Delay check of variable's validity
12053 until later. We actually want all structs and unions to have
12054 the value "{...}".
12055 Do not return "???" for variables which could not be evaluated.
12056 This error condition must be returned to the caller so that it
12057 can get the error condition from gdb.
12058 (cplus_name_of_child): Adjust index for vptr before figuring
12059 out the name of the child.
12060 (cplus_value_of_child): If a child's (real) parent is not valid,
12061 don't even bother trying to give a value for it. Just return
12062 an error. Change all instances in this function.
12063 (cplus_type_of_child): If our parent is one of the "fake"
12064 parents, we need to get at the type of the real parent, and
12065 derive the child's true type using this information.
12066
b76898ab
AC
120672002-01-13 Andrew Cagney <ac131313@redhat.com>
12068
12069 From 2002-01-09 John Marshall <johnm@falch.net>:
12070 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12071 sources.redhat.com, and tweak some related URLs which had
12072 suffered from linkrot.
12073
b6649e88
AC
120742002-01-13 Andrew Cagney <ac131313@redhat.com>
12075
12076 From Jeff law:
12077 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12078 structures passed in registers.
12079
82cc5033
EZ
120802002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12081
12082 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12083 white space which prevented compilation. Reported by DSK
12084 <dsk@student.unsw.edu.au>.
12085
ba5f2f8a
MS
120862002-01-11 Michael Snyder <msnyder@redhat.com>
12087
fbd35540
MS
12088 * symfile.c (build_section_addr_info_from_section_tab):
12089 Use bfd access method instead of manipulating bfd directly.
12090 (syms_from_objfile): Ditto.
12091 (simple_overlay_update_1): Ditto.
12092 (simple_overlay_update): Ditto.
12093 (generic_load): Ditto.
12094 (overlay_unmapped_address): FIXME comment, bfd access methods.
12095 (sections_overlap): FIXME comment, bfd access methods.
12096 (pc_in_mapped_range): FIXME comment, bfd access methods.
12097 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12098 (section_is_mapped): FIXME comment, bfd access methods.
12099 (section_is_overlay): FIXME comment, bfd access methods.
12100
ba5f2f8a
MS
12101 * symfile.c (generic_load): Whitespace and long line cleanups.
12102 Remove duplicate variable, change several local variables to
12103 more appropriate data types.
12104 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12105
17df2af6
AC
121062002-01-12 Andrew Cagney <ac131313@redhat.com>
12107
12108 From Peter Schauer:
12109 * language.c (longest_local_hex_string_custom): Use phex_nz to
12110 convert NUM to a hex string.
12111
ec920329
EZ
121122002-01-12 Elena Zannoni <ezannoni@redhat.com>
12113
12114 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12115 the function.
538a76d6 12116 Update Copyright year.
ec920329 12117
3abd2e01
AC
121182002-01-12 Andrew Cagney <ac131313@redhat.com>
12119
12120 * language.c (longest_raw_hex_string): Delete unused function.
12121
b21b22e0
PS
121222002-01-11 Petr Sorfa <petrs@caldera.com>
12123
12124 * MAINTAINERS (write-after-approval): Add myself.
12125 * dwarf2read.c (read_tag_string_type): Handling of
12126 DW_AT_byte_size.
12127 (read_tag_string_type): FORTRAN fix to prevent propagation of
12128 first string size.
12129 (set_cu_language): Handling of DW_LANG_Fortran95
12130
747fe712
RE
121312002-01-11 Richard Earnshaw <rearnsha@arm.com>
12132
12133 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12134 GETPID(inferior_ptid).
12135 (store_inferior_registers): Likewise.
12136
f1bea926
JM
121372002-01-10 Jason Merrill <jason@redhat.com>
12138
12139 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12140 Fix DW_OP_minus.
12141
ae940673
AC
121422002-01-10 Andrew Cagney <ac131313@redhat.com>
12143
12144 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12145 and bfd/elf32-sh-nbsd.c.
12146
00546b04
MS
121472002-01-10 Michael Snyder <msnyder@redhat.com>
12148
352ed7b4
MS
12149 * NEWS: Mention --pid and corefile/proc-id behavior change.
12150
c18be923
MS
12151 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12152 * gcore.c: Include cli/cli-decode.h instead of command.h.
12153
00546b04
MS
12154 * main.c (captured_main): Add new command line option "--pid".
12155 If the second command line argument (following the symbol-file)
12156 begins with a digit, try to attach to it before trying to open
12157 it as a corefile.
12158 (print_gdb_help): Document the "--pid" argument.
12159
db60ec62
EZ
121602002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12161
12162 * completer.c (command_completer): New function.
12163
12164 * completer.h <command_completer>: Add prototype.
12165
12166 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12167 completer for the "help" command.
12168
39c22d1a
JM
121692002-01-09 Jason Merrill <jason@redhat.com>
12170
12171 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12172
c564377f
MS
121732002-01-09 Michael Snyder <msnyder@redhat.com>
12174
975aec09
MS
12175 * i386-linux-nat.c (fill_fpxregset): Make global.
12176 (store_fpxregset): Ditto.
12177
db4a10fa
MS
12178 * gregset.h (gdb_fpxregset_t): Define.
12179 (supply_fpxregset): Prototype.
12180 (fill_fpxregset): Prototype.
12181
c564377f
MS
12182 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12183
c3d45d70
RE
121842002-01-09 Richard Earnshaw <rearnsha@arm.com>
12185
12186 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12187 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12188 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12189
fcc87af1
AC
121902002-01-09 Andrew Cagney <ac131313@redhat.com>
12191
12192 * MAINTAINERS: Update target maintainer rules so that any
12193 Maintainer can approve a tested patch for a maintenance-only
12194 target.
12195
dd96c05b
RE
121962002-01-09 Richard Earnshaw <rearnsha@arm.com>
12197
d4297db9 12198 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 12199
d4297db9 12200 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
12201 IN_SIGTRAMP.
12202
145fdc6e
MS
122032002-01-08 Michael Snyder <msnyder@redhat.com>
12204
12205 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12206 real name of the executable, rather than the /proc name.
12207
be4d1333
MS
122082002-01-03 Michael Snyder <msnyder@redhat.com>
12209
12210 Implement a "generate-core-file" command in gdb, save target state.
12211 * gcore.c: New file. Implement new command 'generate-core-file'.
12212 Save a corefile image of the current state of the inferior.
12213 * linux-proc.c: Add linux-specific code for saving corefiles.
12214 * target.h (struct target_ops): Add new target vectors for saving
12215 corefiles; to_find_memory_regions and to_make_corefile_notes.
12216 (target_find_memory_regions): New macro.
12217 (target_make_corefile_notes): New macro.
12218 * target.c (update_current_target): Inherit new target methods.
12219 (dummy_find_memory_regions): New place-holder method.
12220 (dummy_make_corefile_notes): New place-holder method.
12221 (init_dummy_target): Initialize new dummy target vectors.
12222 * exec.c (exec_set_find_memory_regions): New function.
12223 Allow the exec_ops vector for memory regions to be taken over.
12224 (exec_make_note_section): New function, target vector method.
12225 * defs.h (exec_set_find_memory_regions): Export prototype.
12226 * procfs.c (proc_find_memory_regions): New function, corefile method.
12227 (procfs_make_note_section): New function, corefile method.
12228 (init_procfs_ops): Set new target vector pointers.
12229 (find_memory_regions_callback): New function.
12230 (procfs_do_thread_registers): New function.
12231 (procfs_corefile_thread_callback): New function.
12232 * sol-thread.c (sol_find_memory_regions): New function.
12233 (sol_make_note_section): New function.
12234 (init_sol_thread_ops): Initialize new target vectors.
12235 * inftarg.c (inftarg_set_find_memory_regions): New function.
12236 Allow to_find_memory_regions vector to be taken over.
12237 (inftarg_set_make_corefile_notes): New function.
12238 Allow to_make_corefile_notes vector to be taken over.
12239 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12240 interface layer if not target_has_execution (may be a corefile).
12241 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12242 * config/sparc/sun4sol2.mh: Ditto.
12243 * config/alpha/alpha-linux.mh: Ditto.
12244 * config/arm/linux.mh: Ditto.
12245 * config/i386/x86-64linux.mh: Ditto.
12246 * config/ia64/linux.mh: Ditto.
12247 * config/m68k/linux.mh: Ditto.
12248 * config/mips/linux.mh: Ditto.
12249 * config/powerpc/linux.mh: Ditto.
12250 * config/sparc/linux.mh: Ditto.
12251
c6b92abd
MS
122522002-01-07 Michael Snyder <msnyder@redhat.com>
12253
12254 * arm-linux-nat.c: Remove references to regcache.c internal data
12255 (registers[] and register_valid[]).
12256
4b09dc8c
MS
122572002-01-07 Michael Snyder <msnyder@redhat.com>
12258
abf22e64
AJ
12259 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12260 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12261 symbol file and shlibs.
12262 * Makefile.in: Add rule for linux-proc.o.
12263 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12264 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12265 * config/arm/linux.mh: Ditto.
12266 * config/i386/linux.mh: Ditto.
12267 * config/i386/x86-64linux.mh: Ditto.
12268 * config/ia64/linux.mh: Ditto.
12269 * config/m68k/linux.mh: Ditto.
12270 * config/mips/linux.mh: Ditto.
12271 * config/powerpc/linux.mh: Ditto.
12272 * config/sparc/linux.mh: Ditto.
12273
c25b74ac
PM
122742002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12275
12276 * win32-nat.c: Add i386-tdep.h dependency.
12277
94cd915f
MS
122782002-01-07 Michael Snyder <msnyder@redhat.com>
12279
c7cccb76
MS
12280 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12281 instead of bfd_get_arch_size. Don't bail out just because
12282 there's no exec_bfd.
abf22e64 12283
34c0bd93
MS
12284 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12285 * p-valprint.c (pascal_object_print_value): Ditto.
12286 * somread.c (som_symtab_read): Ditto.
12287 * symfile.c (simple_free_overlay_region_table): Ditto.
12288 * valops.c (value_assign): Ditto.
12289
21c1c920
MS
12290 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12291 use tilde_expand and strerror for opening save-tracepoints file.
12292
5bbd998e
MS
12293 * thread-db.c (thread_db_new_objfile): Indendation fix.
12294
94cd915f
MS
12295 * infptrace.c (GDB_MAX_ALLOCA): New define.
12296 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12297 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12298 can be overridden with whatever value is appropriate to the host).
12299 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12300 alloca to allocate potentially large buffer.
12301 * rs6000-nat.c (child_xfer_memory): Ditto.
12302 * symm-nat.c (child_xfer_memory): Ditto.
12303 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12304
494e8a93
JSC
123052002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12306
12307 From Nick Clifton <nickc@redhat.com>
12308 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12309
d0e1d48e
MS
123102002-01-07 Michael Snyder <msnyder@redhat.com>
12311
abf22e64 12312 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12313 Don't use exec_bfd if it's NULL.
12314
290b2c7a
MK
123152002-01-06 Mark Kettenis <kettenis@gnu.org>
12316
abf22e64 12317 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12318
aef21287
AC
123192002-01-06 Andrew Cagney <ac131313@redhat.com>
12320
12321 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12322 * gnu-nat.c: Ditto.
12323
30efa627
AC
123242002-01-06 Andrew Cagney <ac131313@redhat.com>
12325
12326 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12327 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12328 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12329 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12330 z8k-coff have not been multi-arched. Update z8k-coff build
12331 status.
12332
9b4ff276
AC
123332002-01-06 Andrew Cagney <ac131313@redhat.com>
12334
12335 * MAINTAINERS: Mark a29k target as obsolete.
12336 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12337 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12338 comments.
12339 * NEWS: Note that a29k targets are obsolete.
12340 * a29k-tdep.c: Mark as obsolete.
12341 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12342 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12343 a29k-*-vxworks* targets as obsolete.
12344 * remote-adapt.c: Obsolete.
12345 * remote-eb.c: Obsolete.
12346 * remote-mm.c: Obsolete.
12347 * remote-udi.c: Obsolete.
12348 * config/a29k/a29k-udi.mt: Obsolete.
12349 * config/a29k/a29k.mt: Obsolete.
12350 * config/a29k/tm-a29k.h: Obsolete.
12351 * config/a29k/tm-vx29k.h: Obsolete.
12352 * config/a29k/vx29k.mt: Obsolete.
12353
a9011d31
AC
123542002-01-05 Andrew Cagney <ac131313@redhat.com>
12355
12356 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12357 with BFD_ENDIAN_BIG.
12358
9299404e
AC
123592002-01-05 Andrew Cagney <ac131313@redhat.com>
12360
12361 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12362 * configure, config.in: Re-generate.
12363 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12364 * defs.h: Do not include <endian.h>.
12365
7e89e357
JT
123662002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12367
12368 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12369 * config.in: Regenerate.
12370 * configure.in: Update copyright years.
12371 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12372 * configure: Regenerate.
12373 * i386bsd-nat.c: Update copyright years.
12374 (fill_gregset): Use regcache_collect.
12375 (fetch_inferior_registers): Only fetch integer registers
12376 if requested to do so. Add support for XMM registers
12377 using PT_GETXMMREGS.
12378 (store_inferior_registers): Only store integer registers
12379 if requested to do so. Add support for XMM registers
12380 using PT_SETXMMREGS.
12381 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12382 (store_inferior_registers): Remove.
12383 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12384 (fetch_elfcore_registers): New function.
12385 (i386nbsd_elfcore_fns): New.
12386 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12387 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12388 i386bsd-nat.o.
12389 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12390 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12391 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12392 * config/i386/tm-nbsd.h: Update copyright years.
12393 (HAVE_SSE_REGS): Define.
12394 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12395 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12396 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12397 (SIGCONTEXT_PC_OFFSET): Remove.
12398 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12399
a752853e
AC
124002002-01-05 Andrew Cagney <ac131313@redhat.com>
12401
12402 * configure.tgt: Remove powerpc-*-macos* target.
12403 * config/m68k/xm-mpw.h: Delete file.
12404 * config/xm-mpw.h: Delete file.
12405 * ser-mac.c: Delete file.
12406 * mpw-make.sed: Delete file.
12407 * mpw-config.in: Delete file.
12408 * mac-xdep.c: Delete file.
12409 * mac-gdb.r: Delete file.
12410 * mac-defs.h: Delete file.
12411 * mac-nat.c: Delete file.
12412 * config/powerpc/macos.mh: Delete file.
12413 * config/powerpc/macos.mt: Delete file.
12414 * config/powerpc/nm-macos.h: Delete file.
12415 * config/powerpc/tm-macos.h: Delete file.
12416 * source.c (openp, open_source_file): Remove obsolete code.
12417 * top.c (gdb_readline): Ditto.
12418 * utils.c (query): Ditto.
12419 * event-top.c (display_gdb_prompt): Ditto.
12420 * Makefile.in (ser-mac.o): Delete obsolete target.
12421 * NEWS: Update.
12422
d7449b42
AC
124232002-01-04 Andrew Cagney <ac131313@redhat.com>
12424
12425 * defs.h (BIG_ENDIAN): Delete macro definition.
12426 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12427 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12428 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12429 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12430 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12431 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12432 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12433 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12434 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12435 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12436 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12437 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12438 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12439 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12440 * gdbarch.c: Re-generate.
12441
356374e8
DJ
124422002-01-04 Daniel Jacobowitz <drow@mvista.com>
12443
12444 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12445 for core files.
12446
a2b8f8f8
JT
124472002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12448
12449 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12450
12466af9
AC
124512002-01-04 Andrew Cagney <ac131313@redhat.com>
12452
12453 * value.h (value_ptr): Delete typedef.
12454
3549ab40
JT
124552002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12456
12457 * i386nbsd-nat.c: Update copyright years.
12458 Include i386-tdep.h.
12459
fedbd091
EZ
124602002-01-04 Elena Zannoni <ezannoni@redhat.com>
12461
12462 * stabsread.c: Update copyright years.
12463
12464 From Debashis Mahata <debashis.mahata@wipro.com>:
12465 (read_struct_fields): Deal with Sun C compiler erroneous stab
12466 output for structs and unions.
fec8b34f 12467 Fix PR gdb/269.
fedbd091 12468
eb43544b
DJ
124692002-01-04 Daniel Jacobowitz <drow@mvista.com>
12470
12471 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12472 prototype.
12473
1514d34e
DJ
124742002-01-04 Daniel Jacobowitz <drow@mvista.com>
12475
12476 * cp-abi.c: Fix whitespace.
12477 (baseclass_offset): New wrapper function.
12478 * cp-abi.h (baseclass_offset): Add prototype.
12479 (struct cp_abi_ops): Add baseclass_offset pointer.
12480
12481 * valops.c (vb_match): Move to...
12482 * gnu-v2-abi.c (vb_match): here.
12483 * valops.c (baseclass_offset): Move to...
12484 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12485
12486 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12487
12488 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12489 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12490 * hpacc-abi.c (init_hpacc_ops): Likewise.
12491
7f8c9282
DJ
124922002-01-04 Daniel Jacobowitz <drow@mvista.com>
12493
12494 * valops.c (find_overload_match): Accept obj as a
12495 reference parameter. Update it before returning.
12496 * value.h (find_overload_match): Update prototype.
12497 * eval.c (evaluate_subexp_standard): Pass object to
12498 find_overload_match by reference.
12499
f23631e4
AC
125002002-01-03 Andrew Cagney <ac131313@redhat.com>
12501
12502 * valarith.c: Replace value_ptr with struct value pointer. Remove
12503 register attribute from value declarations.
12504 * valops.c: Ditto.
12505 * value.h: Ditto.
12506 * scm-lang.c (scm_lookup_name): Ditto.
12507
79e10fab 125082002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12509
79e10fab
AC
12510 Abstract the functionality of iterating over mapped memory
12511 regions into a general purpose iterator function.
abf22e64 12512 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12513 iterator for memory sections.
12514 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12515 (solib_mappings_callback): New function, callback for above.
12516 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12517 (info_mappings_callback): New function, callback for above.
12518
12519 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12520
c5ad026a
MK
125212002-01-01 Mark Kettenis <kettenis@gnu.org>
12522
d2a7c97a
MK
12523 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12524 * i386-tdep.c: Include "elf-bfd.h".
12525 (process_note_abi_tag_sections): New function.
12526 (i386_gdbarch_init): Add code to recognize various OS/ABI
12527 combinations.
12528
c5ad026a
MK
12529 * maint.c (_initialize_maint_cmds): Add missing \ in
12530 string-literal.
12531
a1a5b71e 12532For older changes see ChangeLog-2001
c906108c
SS
12533\f
12534Local Variables:
12535mode: change-log
12536left-margin: 8
12537fill-column: 74
12538version-control: never
12539End:
This page took 0.925515 seconds and 4 git commands to generate.