2002-08-09 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-08-09 Andrew Cagney <cagney@redhat.com>
2
3 * regcache.c: Include "gdbcmd.h"
4 (_initialize_regcache): Add commands "maintenance print
5 registers", "maintenance print raw-registers" and "maintenance
6 print cooked-registers".
7 (enum regcache_dump_what): Define.
8 (dump_endian_bytes): New function.
9 (regcache_dump): New function.
10 (regcache_print): New function.
11 (maintenance_print_registers): New function.
12 (maintenance_print_raw_registers): New function.
13 (maintenance_print_cooked_registers): New function.
14 * Makefile.in (regcache.o): Update dependencies.
15
16 2002-08-09 Michael Snyder <msnyder@redhat.com>
17
18 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
19 (mips_push_arguments): Correct some comments. Use paddr_nz
20 for printing addresses in debug output. Replace static
21 allocation using MAX_REGISTER_RAW_SIZE with alloca.
22 (mips_n32n64_push_arguments): New function, cloned from
23 mips_push_arguments and tuned for the n32/n64 ABI.
24 (mips_push_register): Buffer needs dynamic allocation.
25 (mips_print_register): Ditto.
26 (do_gp_register_row): Ditto.
27 (mips_store_return_value): Ditto.
28 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
29
30 2002-08-09 Don Howard <dhoward@redhat.com>
31
32 * memattr.c (mem_info_command): Print special case of upper bound
33 as max CORE_ADDR + 1.
34
35 2002-08-08 Michael Snyder <msnyder@redhat.com>
36
37 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
38 returns structs by ref if they're too big to fit in two registers.
39
40 2002-08-09 Kevin Buettner <kevinb@redhat.com>
41
42 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
43 saved regs value.
44 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
45 mips_find_saved_regs().
46 (mips_pop_frame): Likewise.
47
48 2002-08-09 Kevin Buettner <kevinb@redhat.com>
49
50 * blockframe.c (frame_saved_regs_register_unwind): Revise
51 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
52 frames are in use.
53
54 2002-08-09 Grace Sainsbury <graces@redhat.com>
55
56 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
57 T-packets; the 'a' is not taken as a register number.
58 (remote_check_watch_resources, remote_stopped_by_watchpoint)
59 (remote_stopped_data_address): New functions; add to target
60 vector.
61 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
62 prototypes to match other implementations of this
63 function. replace integer argument with pointer -- the length
64 field in the Z-packet is the length of what is pointed to or 1 if
65 pointer is null. Add to target vector.
66 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
67 target vector.
68
69 From Mark Salter:
70 * remote.c (remote_wait): Add support to extract optional
71 watchpoint information from T-packet. Ignore unrecognized
72 optional info in T-packet.
73 (remote_async_wait): Ditto.
74
75 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
76
77 * cli/cli-dump.c: Change fopen modes to use binary open modes
78 as defined in include/fopen-bin.h throughout.
79
80 2002-08-08 Michael Snyder <msnyder@redhat.com>
81
82 * mips-tdep.c: Minor whitespace and indentation clean-ups.
83
84 2002-08-08 Kevin Buettner <kevinb@redhat.com>
85
86 * doublest.c (store_floating): Avoid floatformat_from_doublest()
87 assertion failure by returning early after a warning.
88
89 2002-08-08 Kevin Buettner <kevinb@redhat.com>
90
91 * mips-tdep.c (mips_find_saved_regs): Make static.
92 (mips_frame_init_saved_regs): New function.
93 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
94 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
95 (mips_find_saved_regs): Delete declaration.
96
97 2002-08-08 Grace Sainsbury <graces@redhat.com>
98
99 * remote.c (remote_wait, remote_async_wait): Change
100 thread_num from int to ULONGEST.
101 (unpack_varlen_hex): Change result parameter from
102 int * to ULONGEST *.
103
104 2002-08-08 Andrew Cagney <ac131313@redhat.com>
105
106 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
107 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
108 powerpc*-*-*.
109 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
110
111 2002-08-08 Andrew Cagney <cagney@redhat.com>
112
113 * gcore.c (override_derive_stack_segment): Delete variable.
114 (preempt_derive_stack_segment): Delete function.
115 (derive_stack_segment): Delete function.
116 (default_derive_stack_segment): Renamed to derive_stack_segment.
117 (override_derive_heap_segment): Delete variable.
118 (preempt_derive_heap_segment): Delete function.
119 (derive_heap_segment): Delete function.
120 (default_derive_heap_segment): Rename to derive_heap_segment.
121
122 2002-08-06 Michael Snyder <msnyder@redhat.com>
123
124 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
125 * mips-tdep.c (mips_EABI_use_struct_convention,
126 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
127 New functions. (mips_use_struct_convention): Delete.
128 (mips_gdbarch_init): set use_gdbarch_convention.
129
130 2002-08-06 Michael Snyder <msnyder@redhat.com>
131
132 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
133 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
134 mips_o32_reg_struct_has_addr): New functions.
135 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
136
137 2002-08-07 Andrew Cagney <ac131313@redhat.com>
138
139 * regcache.c (pseudo_register): Delete function.
140 (fetch_register): Delete function.
141 (store_register): Delete function.
142 (regcache_raw_read, legacy_read_register_gen): Use
143 target_fetch_registers instead of fetch_register.
144 (legacy_write_register_gen, regcache_raw_write): Use
145 target_store_register instead of store_register.
146 (write_register_bytes): Ditto.
147
148 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
149 (STORE_PSEUDO_REGISTER): Delete.
150 * gdbarch.h, gdbarch.c: Regenerate.
151
152 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
153
154 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
155 write dump file binary.
156
157 2002-08-05 Michael Snyder <msnyder@redhat.com>
158
159 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
160 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
161 (mips_gdbarch_init): Set N32 target to be mips64.
162
163 2002-08-06 Kevin Buettner <kevinb@redhat.com>
164
165 * frame.c (find_saved_register): Break out of loop once saved
166 register address is found. Don't mention sparc in loop comment
167 anymore.
168
169 2002-08-06 Kevin Buettner <kevinb@redhat.com>
170
171 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
172 mips_default_saved_regsize to 8.
173
174 2002-08-06 Andrew Cagney <ac131313@redhat.com>
175
176 * gcore.c: Do not include <sys/procfs.h>.
177 * Makefile.in (gcore.o): Update dependencies.
178
179 2002-08-06 Andrew Cagney <cagney@redhat.com>
180
181 * configure.tgt: Make arc-*-* obsolete.
182 * NEWS: Mention that arc-*-* has been identifed as obsolete.
183 * MAINTAINERS: Make arc-elf obsolete.
184 * arc-tdep.c: Make file obsolete.
185 * config/arc/arc.mt: Ditto.
186 * config/arc/tm-arc.h: Ditto.
187
188 2002-08-05 Theodore A. Roth <troth@verinet.com>
189
190 * gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc.
191
192 2002-08-05 Andrew Cagney <ac131313@redhat.com>
193
194 * mcore-tdep.c (mcore_gdbarch_init): Use
195 generic_unwind_get_saved_register instead of
196 generic_get_saved_register.
197 * v850-tdep.c (v850_gdbarch_init): Ditto.
198 * frv-tdep.c (frv_gdbarch_init): Ditto.
199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
200 * s390-tdep.c (s390_gdbarch_init): Ditto.
201 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
202 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
203 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
204
205 2002-08-05 Joel Brobecker <brobecker@gnat.com>
206
207 * objfiles.h: Add missing #include "symfile.h"
208
209 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
210
211 2002-08-04 Andrew Cagney <ac131313@redhat.com>
212
213 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
214 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
215 of FIELD_BITSIZE.
216
217 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
218
219 * NEWS: Cleanup and nitpick.
220
221 2002-08-03 Andrew Cagney <ac131313@redhat.com>
222
223 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
224
225 2002-08-03 Andrew Cagney <ac131313@redhat.com>
226
227 * Makefile.in (gdbtk-bp.o): Update dependencies.
228 (gdbtk-register.o): Ditto.
229 (gdbtk-varobj.o): Ditto.
230
231 2002-08-03 Andrew Cagney <cagney@redhat.com>
232
233 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
234 m68hc11_fetch_pseudo_register.
235 (m68hc11_pseudo_register_write): Replace
236 m68hc11_store_pseudo_register.
237 (m68hc11_gdbarch_init): Update.
238
239 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
240
241 * gdbarch.sh: Include "gdb_string.h".
242 * gdbarch.c: Regenerate.
243
244 * regcache.c: Include "gdb_string.h".
245 * ax-general.c: Ditto.
246 * varobj.c: Ditto.
247 * std-regs.c: Ditto.
248 * fbsd-proc.c: Ditto.
249 * thread.c: Ditto.
250
251 * Makefile.in (regcache.o): Update dependencies.
252 (thread.o, gdbarch.o): Ditto.
253 (ax-general.o, gdbarch.o): Ditto.
254 (varobj.o, std-regs.o): Ditto.
255 (fbsd-proc.o): Specify dependencies.
256
257 2002-08-02 Andrew Cagney <cagney@redhat.com>
258
259 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
260 regnum.
261 (regcache_cooked_write): Ditto.
262
263 2002-08-02 Andrew Cagney <ac131313@redhat.com>
264
265 * regcache.c (regcache_cooked_read): New function.
266 (regcache_cooked_write): New function.
267 (read_register_gen): Rewrite using regcache_cooked_read.
268 (write_register_gen): Rewrite using regcache_cooked_write.
269
270 * regcache.h (regcache_cooked_read, regcache_cooked_write):
271 Declare.
272
273 2002-08-02 Andrew Cagney <cagney@redhat.com>
274
275 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
276 Replace the architecture methods register_read and register_write.
277 * gdbarch.h, gdbarch.c: Regenerate.
278 * regcache.c (init_regcache_descr): Update.
279 (read_register_gen): Update.
280 (write_register_gen): Update.
281 (supply_register): Update comment.
282
283 * sh-tdep.c (sh_gdbarch_init): Update.
284 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
285 `regcache' and `gdbarch' parameters. Make `buffer' a void
286 pointer. Update code.
287 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
288 `regcache' and `gdbarch' parameters. Make `buffer' a constant
289 void pointer. Update code.
290 (sh64_register_write): Delete.
291 (sh4_register_read): Delete.
292 (sh64_register_read): Delete.
293 (sh4_register_write): Delete.
294 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
295 void pointer, `to' parameter a void pointer.
296 (sh_sh64_register_convert_to_raw): Ditto.
297
298 2002-08-01 Kevin Buettner <kevinb@redhat.com>
299
300 * mips-tdep.c (mips_register_virtual_type): Use architecture
301 invariant return values.
302
303 2002-08-01 Andrew Cagney <cagney@redhat.com>
304
305 * linux-proc.c: Include "gdb_string.h".
306 * Makefile.in (linux-proc.o): Update dependency list.
307
308 2002-08-01 Kevin Buettner <kevinb@redhat.com>
309
310 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
311 comment.
312
313 2002-08-01 Grace Sainsbury <graces@redhat.com>
314
315 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
316 to_insert_watchpoint, to_remove_watchpoint,
317 to_stopped_by_watchpoint, to_stopped_data_address,
318 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
319 target vecctor. Define their corresponding macros so they call
320 them.
321
322 * target.c: Add default and debug versions of for
323 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
324 to_insert_watchpoint, to_remove_watchpoint,
325 to_stopped_by_watchpoint, to_stopped_data_address,
326 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
327
328 2002-08-01 Kevin Buettner <kevinb@redhat.com>
329
330 * mips-tdep.c (mips_register_virtual_type): New function.
331 (mips_gdbarch_init): Register mips_register_virtual_type()
332 with gdbarch machinery.
333 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
334 this file instead of tm-bigmips.h.
335 (MIPS_REGSIZE): Delete this macro.
336 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
337 multiarch version in mips-tdep.c will be found.
338
339 2002-08-01 Andrew Cagney <cagney@redhat.com>
340
341 * NEWS: Menion that CHILL has been made obsolete.
342
343 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
344 * gdbserver/Makefile.in: Ditto.
345 * stabsread.c (read_range_type): Ditto.
346 * gdbtypes.h: Ditto.
347 * language.c (binop_type_check): Ditto.
348 (binop_result_type): Ditto.
349 (integral_type): Ditto.
350 (character_type): Ditto.
351 (string_type): Ditto.
352 (boolean_type): Ditto.
353 (structured_type): Ditto.
354 (lang_bool_type): Ditto.
355 (binop_type_check): Ditto.
356 * language.h (_LANG_chill): Ditto.
357 * dwarfread.c (set_cu_language): Ditto.
358 * dwarfread.c (CHILL_PRODUCER): Ditto.
359 * dwarfread.c (handle_producer): Ditto.
360 * expression.h (enum exp_opcode): Ditto.
361 * eval.c: Ditto for comments.
362 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
363 * expprint.c (print_subexp): Ditto.
364 (print_subexp): Ditto.
365 * valops.c (value_cast): Ditto.
366 (search_struct_field): Ditto.
367 * value.h (COERCE_VARYING_ARRAY): Ditto.
368 * symfile.c (init_filename_language_table): Ditto.
369 (add_psymbol_with_dem_name_to_list): Ditto.
370 * valarith.c (value_binop): Ditto.
371 (value_neg): Ditto.
372 * valops.c (value_slice): Ditto.
373 * symtab.h (union language_specific): Ditto.
374 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
375 (SYMBOL_DEMANGLED_NAME): Ditto.
376 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
377 * defs.h (enum language): Ditto.
378 * symtab.c (got_symtab): Ditto.
379 * utils.c (fprintf_symbol_filtered): Ditto.
380
381 * ch-typeprint.c: Make file obsolete.
382 * ch-valprint.c: Make file obsolete.
383 * ch-lang.h: Make file obsolete.
384 * ch-exp.c: Make file obsolete.
385 * ch-lang.c: Make file obsolete.
386
387 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
388 CHILL_LIB.
389 (TARGET_FLAGS_TO_PASS): Ditto.
390 (CHILLFLAGS): Obsolete.
391 (CHILL): Obsolete.
392 (CHILL_FOR_TARGET): Obsolete.
393 (CHILL_LIB): Obsolete.
394 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
395 ch-valprint.c.
396 (HFILES_NO_SRCDIR): Remove ch-lang.h.
397 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
398 ch-lang.o.
399 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
400 targets.
401
402 2002-07-31 Joel Brobecker <brobecker@gnat.com>
403
404 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
405 This does not change anything at the moment, but will be helpful
406 later when full Ada support is integrated.
407
408 2002-07-31 Kevin Buettner <kevinb@redhat.com>
409
410 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
411 help message.
412
413 2002-07-31 Kevin Buettner <kevinb@redhat.com>
414
415 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
416 and save it in a local variable. Use variable in later test.
417
418 2002-07-31 Kevin Buettner <kevinb@redhat.com>
419
420 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
421 test. (Thanks to Daniel Jacobowitz.)
422
423 2002-07-31 Kevin Buettner <kevinb@redhat.com>
424
425 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
426 (mips_abi_strings): Add "n64".
427 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
428
429 2002-07-31 Kevin Buettner <kevinb@redhat.com>
430
431 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
432 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
433
434 2002-07-31 Kevin Buettner <kevinb@redhat.com>
435
436 * utils.c (host_pointer_to_address, address_to_host_pointer):
437 Use gdb_assert() instead of explicit call to internal_error().
438
439 2002-07-30 Kevin Buettner <kevinb@redhat.com>
440
441 * Makefile.in (rs6000-nat.o): Update dependencies.
442
443 From Nicholas Duffek:
444 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
445 (aix-thread.o): New rule.
446 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
447 * config/powerpc/aix432.mh: New file.
448
449 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
450
451 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
452 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
453 (fetch_core_registers, ppc_linux_supply_gregset)
454 (ppc_linux_supply_fpregset): New functions.
455 (ppc_linux_regset_core_fns): New.
456 (_initialize_ppc_linux_tdep): Call add_core_fns.
457 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
458 and ppc_linux_supply_gregset.
459 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
460 (supply_fpregset): Call ppc_linux_supply_fpregset.
461 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
462 corelow.o.
463 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
464
465 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
466
467 * symtab.c (lookup_symbol): Demangle before lowercasing.
468
469 2002-07-30 Andrew Cagney <ac131313@redhat.com>
470
471 * symtab.h: Replace #include "gdb_obstack.h" with opaque
472 declaration.
473 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
474 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
475 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
476 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
477 "gdb_string.h".
478 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
479 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
480 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
481 (avr-tdep.o, mon960-rom.o): Ditto.
482 (aout_stabs_gnu_h): Define.
483 (symtab_h): Remove $(gdb_obstack_h).
484
485 2002-07-30 Jim Blandy <jimb@redhat.com>
486
487 Patch from David Carlton <carlton@math.stanford.edu>:
488 * gdbinit.in: Move the `dir' commands that add GDB's own source
489 directory to the search path to the end, so that the `gdb' source
490 directory will be searched first.
491
492 2002-07-29 Andrew Cagney <ac131313@redhat.com>
493
494 * gdb_obstack.h: New file.
495 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
496 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
497 * objfiles.h: Include "gdb_obstack.h".
498 * Makefile.in (gdb_obstack_h): Define.
499 (symtab_h): Add $(gdb_obstack_h).
500 (objfiles_h): Add $(gdb_obstack_h).
501
502 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
503 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
504 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
505 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
506 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
507 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
508 * symfile.c, coffread.c, c-typeprint.c: Ditto.
509 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
510
511 * Makefile.in (bcache.o): Update dependencies.
512 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
513 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
514 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
515 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
516 (stabsread.o, symfile.o, symmisc.o): Ditto.
517 (symtab.o, typeprint.o, macroexp.o): Ditto.
518 (macrotab.o, mdebugread.o): Ditto.
519 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
520 (coff_ecoff_h, aout_aout64_h): Define.
521 (aout_stabs_gnu_h, libaout_h): Define.
522
523 2002-07-29 Andrew Cagney <cagney@redhat.com>
524
525 * regcache.c (struct regcache_descr): Rename nr_registers to
526 nr_cooked_registers. Revise comments describing the structure
527 member fields.
528 (init_regcache_descr): Update.
529 (init_legacy_regcache_descr): Update.
530 (read_register_gen, write_register_gen): When a cooked register in
531 the raw register range, directly access the value from the raw
532 register cache.
533
534 2002-07-29 Andrew Cagney <ac131313@redhat.com>
535
536 * z8k-tdep.c: Do not include "obstack.h".
537 * h8300-tdep.c, h8500-tdep.c: Ditto.
538 * m68hc11-tdep.c, sh-tdep.c: Ditto.
539 * valprint.c, v850-tdep.c: Ditto.
540 * d10v-tdep.c, mn10300-tdep.c: Ditto.
541 * mn10200-tdep.c: Ditto.
542
543 * Makefile.in (z8k-tdep.o): Update dependencies.
544 (m68hc11-tdep.o, valprint.o): Ditto.
545 (v850-tdep.o, d10v-tdep.o): Ditto.
546 (mn10300-tdep.o, sparc-tdep.o): Ditto.
547 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
548 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
549 (sh_opc_h, gdb_sim_sh_h): Define.
550 (elf_sh_h, elf_bfd_h): Define.
551 (opcode_m68hc11_h): Define.
552 (OPCODES_SRC, OPCODES_DIR): define.
553 (OPCODES): Use $(OPCODES_DIR).
554 (gdb_sim_d10v_h): Rename sim_d10v_h.
555 (gdb_sim_arm_h): Rename sim_arm_h.
556
557 2002-07-26 Kevin Buettner <kevinb@redhat.com>
558
559 * utils.c (host_pointer_to_address, address_to_host_pointer):
560 Change internal_error() message to indicate function responsible
561 for the error.
562
563 2002-07-26 Kevin Buettner <kevinb@redhat.com>
564
565 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
566 calls to local_hex_string_custom().
567
568 2002-07-26 Kevin Buettner <kevinb@redhat.com>
569
570 * irix5-nat.c: Move IRIX shared library support from here...
571 * solib-irix.c: ...to here. Revised substantially to work with
572 generic solib framework.
573
574 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
575 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
576 * mips-irix-tdep.c: New file.
577
578 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
579 (mips-irix-tdep.o, solib-irix.o): New rules.
580 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
581 solib-irix.o.
582 * config/mips/irix6.mt (TDEPFILES): Likewise.
583 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
584
585 2002-07-26 Kevin Buettner <kevinb@redhat.com>
586
587 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
588 disabled (via ``#if 0'') includes.
589
590 2002-07-26 Kevin Buettner <kevinb@redhat.com>
591
592 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
593 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
594 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
595 Add support for the fpscr register.
596 * rs6000-nat.c (regmap, fetch_inferior_registers)
597 (store_inferior_registers, fetch_core_registers): Likewise.
598
599 2002-07-26 Kevin Buettner <kevinb@redhat.com>
600
601 * rs6000-nat.c (language.h): Include.
602 (special_regs): Delete this array.
603 (regmap): New function.
604 (fetch_register, store_register): Use regmap() to map gdb
605 register numbers to ptrace register numbers. Also, use
606 outputs from regmap() to make decisions regarding type of
607 ptrace() call to make. In particular, don't compare against
608 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
609 (fetch_inferior_registers, store_inferior_registers): Where
610 possible, obtain register numbers from tdep struct. Don't
611 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
612 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
613 (LAST_UISA_SP_REGNUM): Delete.
614
615 2002-07-25 Kevin Buettner <kevinb@redhat.com>
616
617 * rs6000-nat.c (ppc-tdep.h): Include.
618 (fetch_registers, store_register, fetch_core_registers): Don't
619 access registers[] directly. Instead, use supply_register() or
620 regcache_collect() as appropriate.
621 (find_toc_address): Format hex address with local_hex_string().
622
623 2002-07-25 Andrew Cagney <ac131313@redhat.com>
624
625 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
626 bfd/elf32-frv.c.
627
628 2002-07-24 Tom Tromey <tromey@redhat.com>
629
630 * jv-exp.y: Marked all strings with _().
631 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
632 internal_error.
633 (MethodInvocation, CastExpression, parse_number, yyerror,
634 java_type_from_name, push_expression_name, yylex): Typo fixes.
635
636 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
637
638 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
639 (tee_file_flush, tee_file_write, tee_file_fputs)
640 (tee_file_isatty): New.
641 * ui-file.h (tee_file_new): Add prototype.
642
643 2002-07-24 Aidan Skinner <aidan@velvet.net>
644
645 * ada-lang.c: Change k&r style function definitions to prototyped
646 form.
647 * ada-typeprint.c: Change k&r style function definitions to prototyped
648 form.
649 * ada-valprint.c: Change k&r style function definitions to prototyped
650 form.
651
652 2002-07-24 Andrew Cagney <cagney@redhat.com>
653
654 * README: Remove reference to remote-bug.
655 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
656 remote-bug.c.
657 (m88k-nat.o): Delete rule.
658 (m88k-tdep.o): Delete rule.
659 (remote-bug.o): Delete rule.
660 * MAINTAINERS: Mark as obsolete.
661 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
662 * m88k-tdep.c: Make file obsolete.
663 * config/m88k/m88k.mh: Ditto.
664 * config/m88k/delta88v4.mh: Ditto.
665 * config/m88k/delta88v4.mt: Ditto.
666 * config/m88k/delta88.mt: Ditto.
667 * config/m88k/delta88.mh: Ditto.
668 * remote-bug.c: Ditto.
669 * config/m88k/tm-delta88.h: Ditto.
670 * config/m88k/nm-delta88v4.h: Ditto.
671 * config/m88k/xm-delta88.h: Ditto.
672 * config/m88k/xm-dgux.h: Ditto.
673 * config/m88k/tm-m88k.h: Ditto.
674 * config/m88k/nm-m88k.h: Ditto.
675 * config/m88k/tm-delta88v4.h: Ditto.
676 * m88k-nat.c: Ditto.
677 * cxux-nat.c: Ditto.
678 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
679 and m88*-*-* obsolete.
680 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
681 m88*-*-* obsolete.
682
683 2002-07-24 Andrew Cagney <cagney@redhat.com>
684
685 * findvar.c (extract_unsigned_integer): Make `addr' parameter
686 constant. Same for local pointer variables.
687 (extract_signed_integer): Ditto.
688 * defs.h (extract_unsigned_integer): Update.
689 (extract_signed_integer): Update.
690
691 2002-07-24 Kevin Buettner <kevinb@redhat.com>
692
693 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
694 * gdbserver/configure: Regenerate.
695 * gdbserver/config.in: Regenerate.
696
697 2002-07-24 Andrew Cagney <cagney@redhat.com>
698
699 * regcache.c (regcache_raw_write): Change buf parameter to a
700 constant void pointer.
701 (regcache_raw_read): Change buf parameter to a void pointer.
702 (legacy_write_register_gen): Change myaddr parameter a constant
703 void pointer.
704 (supply_register): Change val parameter to a const void pointer.
705 * regcache.h (regcache_raw_write): Update declaration.
706 (regcache_raw_read): Update declaration.
707 (supply_register): Update declaration.
708
709 2002-07-24 Tom Tromey <tromey@redhat.com>
710
711 * defs.h (gdb_readline_wrapper): Declare.
712 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
713 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
714 * top.c (gdb_readline_wrapper): New function.
715 (command_line_input): Use it.
716
717 2002-07-24 Andrew Cagney <cagney@redhat.com>
718
719 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
720 regcache_read and regcache_write.
721 (regcache_raw_read_as_address): Replace regcache_read_as_address.
722 * regcache.c: Update.
723 * sh-tdep.c (sh64_push_arguments): Update comment.
724 (sh_pseudo_register_read): Update.
725 (sh_pseudo_register_write): Update.
726 (sh4_register_read): Update.
727 (sh4_register_write): Update.
728 (sh64_pseudo_register_read): Update.
729 (sh64_pseudo_register_write): Update.
730 (sh64_register_read): Update.
731 (sh64_register_write): Update.
732 * i386-tdep.c (i386_extract_return_value): Update.
733 (i386_extract_struct_value_address): Update.
734 (i386_extract_return_value): Update.
735 * blockframe.c (generic_read_register_dummy): Update.
736 (generic_call_dummy_register_unwind): Update
737 * infrun.c (write_inferior_status_register): Update.
738
739 2002-07-23 Jim Blandy <jimb@redhat.com>
740
741 * parser-defs.h (expression_context_pc): Make this extern.
742 (Thanks to Michael Snyder.)
743
744 2002-07-23 Andrew Cagney <ac131313@redhat.com>
745
746 GDB 5.2.1 released from 5.2 branch.
747 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
748 * README: Update to mention 5.2.1.
749
750 2002-07-23 Mark Salter <msalter@redhat.com>
751
752 * remote.c (remote_read_bytes): Fix check for error.
753
754 2002-07-22 Kevin Buettner <kevinb@redhat.com>
755
756 * aix-thread.c (language.h): Include.
757 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
758 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
759 Print newlines at end of debug messages.
760 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
761 (pdc_write_data): Use local_hex_string() instead of %llx formats.
762
763 2002-07-22 Kevin Buettner <kevinb@redhat.com>
764
765 * aix-thread.c (ppc-tdep.h): Include.
766 (special_register_p): New function.
767 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
768 (store_regs_user_thread): Use register number information from
769 gdbarch_tdep struct instead of hardcoded offsets relative to
770 FIRST_UISA_SP_REGNUM.
771 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
772 special_register_p() instead of using FPLAST_REGNUM and
773 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
774 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
775 will be MQ's register number.
776
777 2002-07-22 Michael Snyder <msnyder@redhat.com>
778
779 * aix-thread.c (ops): Rename to aix_thread_ops.
780 (base_ops): Rename to base_target.
781 (ops_attach): Rename to aix_thread_attach.
782 (ops_detach): Rename to aix_thread_detach.
783 (ops_resume): Rename to aix_thread_detach.
784 (ops_wait): Rename to aix_thread_wait.
785 (ops_kill): Rename to aix_thread_kill.
786 (init_ops): Rename to init_aix_thread_ops.
787 (ops_fetch_register): Rename to aix_thread_fetch_register.
788 (ops_store_register): Rename to aix_thread_store_register.
789 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
790 (ops_thread_alive): Rename to aix_thread_thread_alive.
791 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
792 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
793 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
794 (fetch_regs_lib): Rename to fetch_regs_user_thread.
795 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
796 (store_regs_lib): Rename to store_regs_user_thread.
797 (store_regs_kern): Rename to store_regs_kernel_thread.
798
799 2002-07-22 Michael Snyder <msnyder@redhat.com>
800
801 * aix-thread.c (ops_prepare_to_store): Eliminate.
802 (init_ops): Don't initialize ops.prepare_to_store.
803 (store_regs_kern): Pre-fetch register buffers from child,
804 because some registers may not be in the cache. Copy
805 regs from register cache only if they are cached.
806 (store_regs_lib): Copy regs from register cache only
807 if they are cached.
808 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
809 fill_gprs64): Ditto.
810
811 2002-07-22 Kevin Buettner <kevinb@redhat.com>
812
813 * aix-thread.c (gdb_assert.h): Include.
814 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
815 register sizes (from register cache) match size of buffer holding
816 register data.
817 (fill_sprs32): Change parameter types to match those in the ptrace()
818 buffer.
819 (store_regs_lib): Likewise, but for 32-bit temporary variables.
820 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
821
822 2002-07-22 Michael Snyder <msnyder@redhat.com>
823
824 * aix-thread.c (supply_sprs64): Cosmetic change.
825 (supply_sprs32): Cosmetic change.
826 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
827 (fill_sprs64): Use regcache_collect instead of read_register.
828 (store_regs_lib): Use regcache_collect instead of
829 read_register. Use fill_sprs32 instead of fill_sprs64,
830 if debugging a 32-bit architecture.
831 (store_regs_kern): Use fill_gprs64 etc. to pull the values
832 out of the register cache, instead of passing a pointer into
833 the register cache directly to ptrace. Use regcache_collect
834 insteaad of read_register.
835 (ops_prepare_to_store): Use target_read_registers instead
836 of read_register_bytes.
837
838 2002-07-20 Aidan Skinner <aidan@velvet.net>
839
840 * MAINTAINERS: Add self under write after approval.
841
842 2002-07-20 Aidan Skinner <aidan@velvet.net>
843
844 * ada-tasks.c: Change k&r style function definitions to prototyped
845 form.
846
847 2002-07-19 Andrew Cagney <ac131313@redhat.com>
848
849 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
850 * x86-64-tdep.c: Include "objfiles.h".
851 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
852 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
853
854 2002-07-17 Michal Ludvig <michal@suse.cz>
855
856 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
857 (update_context): Initialise cfa variable.
858
859 2002-07-17 Michael Snyder <msnyder@redhat.com>
860
861 * aix-thread.c: Shorten some long lines.
862 Bring comments into line with code spec.
863
864 2002-07-18 Joel Brobecker <brobecker@gnat.com>
865
866 * infrun.c: Re-indent using gdb_indent.sh.
867
868 2002-07-18 Joel Brobecker <brobecker@gnat.com>
869
870 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
871 Leave the indentation temporarily untouched, to minimize the diffs.
872
873 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
874
875 * stabsread.c: Make os9k sections of the code obsolete,
876 for real this time.
877 * stabsread.h: Make os9k sections of the code obsolete.
878
879 2002-07-18 Michal Ludvig <mludvig@suse.cz>
880
881 * linux-low.c (regsets_store_inferior_registers): Add free()
882 at the end of a loop to prevent memory leak.
883 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
884 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
885 * config/sparc/tm-sp64linux.h: Make the rest of #endif
886 line a comment.
887 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
888
889 2002-07-17 Jim Blandy <jimb@redhat.com>
890
891 * macrocmd.c (info_macro_command): Remove newline from error
892 message.
893
894 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
895
896 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
897 (sh_gdbarch_init): Use it for sh-dsp.
898
899 2002-07-16 Kevin Buettner <kevinb@redhat.com>
900
901 * dwarf2read.c (read_initial_length): Handle older, non-standard,
902 64-bit DWARF2 format.
903
904 2002-07-16 Joel Brobecker <brobecker@gnat.com>
905
906 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
907 <sys/proc.h> when not available.
908
909 2002-07-16 Andrew Cagney <ac131313@redhat.com>
910
911 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
912 * stabsread.c: Make os9k sections of the code obsolete.
913 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
914 * config/i386/i386os9k.mt: Make file obsolete.
915 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
916 (COMMON_OBS): Remove os9kread.o
917 (SFILES): Remove os9kread.c.
918 (os9kread.o, remote-os9k.o): Make target obsolete.
919 * remote-os9k.c: Make file obsolete.
920 * os9kread.c: Make file obsolete.
921 * Makefile.in
922
923 2002-07-16 Andrew Cagney <ac131313@redhat.com>
924
925 * NEWS: Mention that the FR30 has been made obsolete.
926 * fr30-tdep.c: Make file obsolete.
927 * config/fr30/tm-fr30.h: Ditto.
928 * config/fr30/fr30.mt: Ditto.
929 * configure.tgt: Make fr30-*-elf obsolete.
930 * MAINTAINERS: Make fr30-elf obsolete.
931
932 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
933
934 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
935 found is not inside a section.
936
937 2002-07-15 Kevin Buettner <kevinb@redhat.com>
938
939 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
940 strerror().
941 (pdc_realloc): Use xrealloc() instead of realloc().
942
943 2002-07-15 Kevin Buettner <kevinb@redhat.com>
944
945 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
946 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
947 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
948 macros.
949
950 2002-07-15 Kevin Buettner <kevinb@redhat.com>
951
952 * aix-thread.c (ptrace_check): Eliminate goto.
953 (sync_threadlists): Eliminate gotos. Also, fix array overrun
954 problem.
955
956 2002-07-15 Kevin Buettner <kevinb@redhat.com>
957
958 * aix-thread.c (gdbcmd.h): Include.
959 (DEBUG, DBG, DBG2, dbg): Eliminate.
960 (debug_aix_thread): New static global.
961 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
962 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
963 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
964 invocations to DBG and DBG2 macros to test against
965 ``debug_aix_thread'' and call fprintf_unfiltered().
966 (_initialize_aix_thread): Add new command "set debug aix-thread".
967
968 2002-07-15 Andrew Cagney <ac131313@redhat.com>
969
970 From Gerhard Tonn <TON@de.ibm.com>:
971 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
972 instead of supply_register.
973
974 2002-07-15 Andrew Cagney <ac131313@redhat.com>
975
976 * dwarf2cfi.c: Include "gdb_assert.h".
977 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
978 non-NULL.
979 (update_context): Do not use __func__. Add missing ``break''.
980 (update_context): Do not use __func__.
981
982 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
983
984 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
985 and its setting. Set gdbarch instruction printing functions
986 directly. For non-rs6000 case use new function
987 gdb_print_insn_powerpc.
988 (gdb_print_insn_powerpc): New function.
989
990 2002-07-13 Andrew Cagney <ac131313@redhat.com>
991
992 * NEWS: Mention that the d30v has been marked obsolete.
993 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
994 * configure.tgt: Mark d30v-*-* as obsolete.
995 * d30v-tdep.c: Mark file as obsolete.
996 * config/d30v/d30v.mt: Ditto.
997 * config/d30v/tm-d30v.h: Ditto.
998
999 2002-07-13 Aidan Skinner <aidan@velvet.net>
1000
1001 * ada-tasks.c (add_task_entry): replace calls to
1002 malloc() with xmalloc
1003 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1004
1005 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1006 ada_finish_decode_line_1, all_sals_for_line
1007 ada_breakpoint_rewrite): replace calls to free() with xfree()
1008
1009 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1010
1011 From Nicholas Duffek (with minor changes by Martin Hunt,
1012 Louis Hamilton, and Kevin Buettner):
1013 * aix-thread.c: New file.
1014
1015 2002-07-12 Petr Sorfa <petrs@caldera.com>
1016
1017 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1018 complaint for invalid attribute class or form.
1019 (read_func_scope): DW_AT_frame_base
1020 better handling of DW_AT_block*.
1021 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1022 better handling of DW_AT_block*.
1023 (read_common_block): DW_AT_location
1024 better handling of DW_AT_block*.
1025 (read_partial_die): DW_AT_location better handling
1026 of DW_AT_block*.
1027 (new_symbol): DW_AT_external better handling of
1028 DW_AT_block*. Proper initialization of variable
1029 "addr".
1030 (attr_form_is_block): New function that returns true
1031 if the attribute's form is of DW_FORM_block*.
1032
1033 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1034
1035 * valops.c (find_method_list): Remove comment about
1036 removed STATIC_MEMFUNCP argument.
1037 (value_find_oload_method_list): Likewise.
1038
1039 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1040
1041 From Nicholas Duffek:
1042 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1043 target_new_objfile_hook.
1044
1045 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1046
1047 From Nicholas Duffek:
1048 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1049 csect.
1050
1051 2002-07-12 Andrew Cagney <cagney@redhat.com>
1052
1053 * MAINTAINERS: Mention --enable-sim-build-warnings.
1054 (m68hc11-elf): Disable sim build warnings.
1055 (m32r-elf): Mark as broken obsolete candidate.
1056 (x86_64-linux-gnu): Mark as buildable with -Werror.
1057 (arm-elf): Change -w to ``,'' which enables warnings but not
1058 -Werror.
1059
1060 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1061
1062 * bcache.h: Update copyright.
1063 (struct bstring, struct bcache): Move definition to "bcache.c".
1064 Replaced by opaque declaration.
1065 (bcache_xfree): Replace free_bcache.
1066 (bcache_xmalloc, bcache_memory_used): Declare.
1067
1068 * bcache.c: Update copyright.
1069 (struct bstring, struct bcache): Moved to here from "bcache.h".
1070 Update comments.
1071 (bcache_xmalloc, bcache_memory_used): New functions.
1072 (bcache_xfree): Replace function free_bcache.
1073
1074 * Makefile.in (objfiles.o): Add $(bcache_h).
1075 (objfiles_h): Remove $(bcache_h).
1076 (symfile.o): Add $(bcache_h).
1077
1078 * symmisc.c: Update copyright.
1079 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1080 (print_objfile_statistics): Use bcache_memory_used.
1081
1082 * symfile.c: Include "bcache.h".
1083 (reread_symbols): Use bcache_xfree.
1084 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1085 (add_psymbol_to_list): Pass psymbol_cache by value.
1086 (add_psymbol_with_dem_name_to_list): Ditto.
1087
1088 * objfiles.h: Update copyright.
1089 (struct bcache): Declare opaque. Do not include "bcache.h".
1090 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1091 bcache'' pointers.
1092 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1093
1094 * objfiles.c: Include "bcache.h". Update copyright.
1095 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1096 macro_cache.
1097 (free_objfile): Use bcache_xfree.
1098
1099 2002-07-11 Grace Sainsbury <graces@redhat.com>
1100
1101 * monitor.c (monitor_fetch_register): Make name a constant.
1102 (monitor_store_register): Same.
1103
1104 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1105
1106 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1107 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1108 (finish_block) For non-function blocks, hash the symbol table. For
1109 function blocks, mark the symbol table as unhashed.
1110 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1111 (msymbol_hash_iw): Likewise.
1112 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1113 value.
1114 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1115 (lookup_minimal_symbol): Likewise for both.
1116 * symtab.h (struct block): Add `hashtable' flag. Comment the
1117 hashtable.
1118 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1119 (ALL_BLOCK_SYMBOLS): Update.
1120 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1121 (struct symbol): Add `hash_next' pointer.
1122 * symtab.c (lookup_block_symbol): Search using the hash table when
1123 possible.
1124 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1125 (search_symbols, find_addr_symbol): Likewise.
1126
1127 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1128 (read_dst_symtab): Likewise.
1129 * jv-lang.c (get_java_class_symtab): Likewise.
1130 * mdebugread.c: Include "gdb_assert.h".
1131 (shrink_block): Assert that the block being modified is not hashed.
1132 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1133 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1134 symbols.
1135 (dump_symtab): Recognize hashed blocks.
1136 * printcmd.c (print_frame_args): Assert that function blocks do not
1137 have hashed symbol tables.
1138 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1139 (fill_in_ada_prototype, debug_print_block): Likewise.
1140 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1141
1142 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1143
1144 * stack.c (print_frame): Use result of frame_address_in_block()
1145 instead of fi->pc when evaluating symbols.
1146 (backtrace_command_1): Ditto.
1147
1148 2002-07-11 Andrew Cagney <cagney@redhat.com>
1149
1150 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1151 Make static.
1152
1153 * arm-tdep.c (arm_register_name): Make return type constant.
1154
1155 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1156
1157 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1158 prototype.
1159 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1160 * s390-tdep.c (s390_fp_regnum): Ditto.
1161 (s390_read_fp): Ditto.
1162 (s390_pop_frame): Ditto.
1163 (_initialize_s390_tdep): Ditto.
1164 * remote.c (get_remote_state): Ditto.
1165 * procfs.c (mappingflags): Ditto.
1166 * memattr.c (_initialize_mem): Ditto.
1167 * mcore-tdep.c (mcore_pop_frame): Ditto.
1168 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1169 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1170 * language.c (set_case_str): Ditto.
1171 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1172 * frv-tdep.c (new_variant): Ditto.
1173 (frv_stopped_data_address): Ditto.
1174 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1175 (context_alloc): Ditto.
1176 (frame_state_alloc): Ditto.
1177 (unwind_tmp_obstack_init): Ditto.
1178 (unwind_tmp_obstack_free): Ditto.
1179 (cfi_read_fp): Ditto.
1180 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1181 (cris_pop_frame): Ditto.
1182 * c-lang.c (scanning_macro_expansion): Ditto.
1183 (finished_macro_expansion): Ditto.
1184 (c_preprocess_and_parse): Ditto.
1185 * gdbarch.sh: Ditto.
1186 * gdbarch.h, gdbarch.c: Regenerate.
1187 * config/mn10200/tm-mn10200.h: Adjust indentation.
1188 * target.c: Adjust indentation.
1189 * symtab.h: Adjust indentation.
1190 * stabsread.h: Adjust indentation.
1191 * remote-es.c: Adjust indentation.
1192 * os9kread.c: Adjust indentation.
1193
1194 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1195
1196 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1197 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1198
1199 2002-07-10 Grace Sainsbury <graces@redhat.com>
1200
1201 * NEWS: Mention m68k, mcore multi-arching.
1202 * MAINTAINERS: Change status of m68k, mcore to reflect
1203 multi-arching.
1204
1205 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1206
1207 * valops.c (find_overload_match): Free oload_syms.
1208
1209 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1210
1211 Define HAVE_SYS_PROC_H if sys/proc.h exists
1212 * configure.in: Add check for sys/proc.h
1213 * config.in: Regenerate.
1214 * configure: Regenerate.
1215
1216 2002-07-09 Grace Sainsbury <graces@redhat.com>
1217
1218 * config/m68k/tm-m68k.h: Remove macros wrapped in
1219 #if !GDB_MULTI_ARCH.
1220
1221 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1222
1223 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1224 (perror_with_name, remote_close, remote_open, expect, play): Static.
1225
1226 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1227
1228 * config.in, configure: Regenerate.
1229
1230 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1231
1232 * dwarf2cfi.c: Include "gcore.h".
1233 (execute_stack_op): Fix implementation of the
1234 DW_OP_deref and DW_OP_deref_size operators by letting do their
1235 lookup in the target.
1236
1237 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1238
1239 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1240 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1241 tdep->sc_sp_offset.
1242
1243 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1244
1245 Fix PR gdb/595, gdb/602
1246 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1247 Don't call value_cast, just read the vtable pointer; update comments
1248 to match.
1249
1250 2002-07-05 Grace Sainsbury <graces@redhat.com>
1251
1252 * config/mcore/tm-mcore.h: Remove file.
1253 * config/mcore/mcore.mt: Remove definition of TM_FILE
1254 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1255
1256 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1257
1258 * i386bsd-tdep.c: Include "gdb_string.h".
1259
1260 2002-07-04 Grace Sainsbury <graces@redhat.com>
1261
1262 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1263 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1264 mcore-tdep.
1265 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1266 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1267 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1268 (RETVAL_REGNUM): Move macros from tm-mcore.h
1269 (mcore_reg_struct_has_addr): New function.
1270 (mcore_gdbarch_init): Added initializations for the macros removed
1271 from tm-mcore.h.
1272
1273 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1274
1275 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1276 traditonal string branding within the ELF header.
1277
1278 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1279
1280 * symtab.c (remove_params): New function.
1281 (make_symbol_overload_list): Use it instead of cplus_demangle.
1282 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1283
1284 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1285
1286 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1287
1288 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1289 New variables.
1290 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1291 and tdep->sigtramp_end.
1292 * i386obsd-nat.c: New file.
1293 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1294
1295 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1296 Don't call get_current_frame().
1297
1298 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1299
1300 * i386-nat.c (child_post_startup_inferior): New function
1301 calling i386_cleanup_dregs if
1302 I386_USE_GENERIC_WATCHPOINTS is defined.
1303 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1304 conditional to acknowledge that i386-nat.c has its
1305 own child_post_startup_inferior function.
1306
1307 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1308
1309 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1310 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1311 instead of MAX_REGISTER_RAW_SIZE.
1312 (i386_extract_return_value, i386_extract_struct_value_address):
1313 Convert to use regcache.
1314 (i386_gdbarch_init): Set max_register_raw_size and
1315 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1316 Set extract_return_value and extract_struct_value_address instead
1317 of their deprecated variants.
1318
1319 Convert i386 target to generic dummy frames.
1320 * i386-tdep.c: Include "symfile.h".
1321 (i386_frameless_signal_p): Consider a function to be frameless if
1322 the pc points at the first instruction of the function.
1323 (i386_frame_chain): Handle (generic) call dummies.
1324 (i386_frame_saved_pc): Likewise.
1325 (i386_frame_init_saved_regs): Remove code dealing with call
1326 dummies on the stack.
1327 (i386_push_dummy_frame): Removed.
1328 (i386_call_dummy_words): Removed.
1329 (i386_fix_call_dummy): Removed.
1330 (i386_push_return_address): New function.
1331 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1332 parameter, and don't call get_current_frame.
1333 (i386_pop_frame): New function.
1334 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1335 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1336 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1337 call_dummy_length to 0, set call_dummy_words to NULL, set
1338 sizeof_call_dummy_words to 0, set fix_call_dummy to
1339 generic_fix_call_dummy, set pc_in_call_dummy to
1340 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1341 generic_push_dummy_frame, set push_return_address to
1342 i386_push_return_address and set frame_chain_valid to
1343 generic_file_frame_chain_valid.
1344
1345 2002-07-04 Michal Ludvig <mludvig@suse.cz>
1346
1347 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1348 byte offsets instead of an array of indexes.
1349 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1350
1351 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1352
1353 * gdbarch.sh (struct regcache): Add opaque declaration.
1354 (EXTRACT_RETURN_VALUE): New architecture method.
1355 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1356 * gdbarch.h, gdbarch.c: Regenerate.
1357 * arch-utils.c (legacy_extract_return_value): New function.
1358 * arch-utils.h (legacy_extract_return_value): Declare.
1359 * values.c (value_being_returned): Re-enable code handling
1360 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1361 deprecated_grub_regcache_for_registers call to block handling
1362 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1363 (EXTRACT_RETURN_VALUE): Do not define.
1364
1365 2002-07-03 Grace Sainsbury <graces@redhat.com>
1366
1367 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1368 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1369 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1370 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1371 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1372 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1373 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1374 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1375 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1376 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1377 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1378 argument so the function fits the prototype in the architecture
1379 vector.
1380 (mcore_pop_frame): Remove argument so the function fits the
1381 prototype. Use get_current_frame instead of the argument.
1382 (mcore_push_arguments): Change type of struct_return so the
1383 function can be used in the architecture vector.
1384 (mcore_store_struct_return): Add.
1385 (mcore_frame_init_saved_regs): Add.
1386 (mcore_gdbarch_init): Add function calls to replace the macros
1387 removed from tm-mcore.h
1388
1389 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1390
1391 * infcmd.c (print_return_value): Remove compatibility code calling
1392 deprecated_grub_regcache_for_registers.
1393
1394 * values.c: Include "regcache.h".
1395 (value_being_returned): Update. Use
1396 deprecated_grub_regcache_for_registers to extract the register
1397 buffer address.
1398 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1399 ``struct regcache''.
1400 * Makefile.in (values.o): Add dependency on $(regcache_h).
1401
1402 * inferior.h (run_stack_dummy): Change type of second parameter to
1403 a ``struct regcache''.
1404 * valops.c (hand_function_call): Change type of retbuf to ``struct
1405 regcache''. Allocate using regcache_xmalloc, clean using
1406 make_cleanup_regcache_xfree.
1407 * infcmd.c (run_stack_dummy): Update. Use
1408 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1409
1410 * regcache.c (do_regcache_xfree): New function.
1411 (make_cleanup_regcache_xfree): New function.
1412 * regcache.h (make_cleanup_regcache_xfree): Declare.
1413
1414 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1415
1416 * event-top.c (command_line_handler): Don't read past
1417 beginning of buffer.
1418
1419 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1420
1421 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1422 struct frame_id.
1423 (varobj_create): Store frame_id for root.
1424 (varobj_gen_name): Use xasprintf.
1425 (varobj_update): Save and restore frame using get_frame_id() and
1426 frame_find_by_id().
1427 (create_child): Use xasprintf.
1428 (new_root_variable): Initialize frame_id.
1429 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1430 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1431 to prevent memory leak.
1432
1433 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1434
1435 * valops.c (hand_function_call): Move declaration of retbuf to
1436 start of function, allocate using malloc, add a cleanup but before
1437 the inf_status cleanup, cleanup the buffer. Rename local variable
1438 old_chain to inf_status_cleanup.
1439
1440 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1441
1442 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1443
1444 * cli/cli-decode.c (cmd_func_p): New function.
1445 (cmd_func): New function.
1446
1447 * command.h: Add cmd_func() and cmd_func_p().
1448
1449 2002-07-03 Grace Sainsbury <graces@redhat.com>
1450
1451 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1452 (REGISTER_SIZE): Remove.
1453 (MAX_REGISTER_RAW_SIZE): Remove.
1454 (REGISTER_VIRTUAL_TYPE): Remove.
1455 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1456 (REGISTER_NAME): Remove.
1457 (USE_GENERIC_DUMMY_FRAMES): Remove.
1458 (CALL_DUMMY): Remove.
1459 (CALL_DUMMY_START_OFFSET): Remove.
1460 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1461 (CALL_DUMMY_LOCATION): Remove.
1462 (FIX_CALL_DUMMY): Remove.
1463 (CALL_DUMMY_ADDRESS): Remove.
1464 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1465 (SAVE_DUMMY_FRAME_TOS): Remove.
1466 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1467 (mcore_register_virtual_type): New function.
1468 (mcore_register_byte): New function.
1469 (mcore_register_size): New function.
1470 (mcore_register_name): New function.
1471 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1472 macros removed from tm-mcore.h.
1473 (mcore_dump_tdep): Add.
1474 (_initialize_mcore_tdep): Add gdbarch_register call.
1475
1476 2002-07-03 Mark Kettenis <kettenis@gnu.org>
1477
1478 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1479 frameless_look_for_prologue, such that we actually call this
1480 function.
1481
1482 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1483
1484 * frame.h (frame_address_in_block): New function.
1485
1486 * blockframe.c (frame_address_in_block): New function extracted
1487 from get_frame_block().
1488 (get_frame_block): Use frame_address_in_block().
1489 (block_innermost_frame): Use frame_address_in_block() to match
1490 the frame pc address against the block boundaries rather than
1491 the frame pc directly. This prevents a failure when a frame pc
1492 is actually a return-address pointing immediately after the end
1493 of the given block.
1494
1495 2002-07-02 Grace Sainsbury <graces@redhat.com>
1496
1497 * MAINTAINERS: Add self under write after approval.
1498
1499 2002-07-02 Grace Sainsbury <graces@redhat.com>
1500
1501 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1502 used in architecture vector. The default is
1503 m68k_local_breakpoint_from_pc.
1504 (m68k_local_breakpoint_from_pc): Add.
1505 (enum): Add register numbers from tm-m68k.h.
1506 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1507 vector.
1508 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1509 GDB_MULTI_ARCH_PARTIAL.
1510 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1511 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1512 m68k-tdep.c.
1513 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1514 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1515 to enum in m68k-tdep.c
1516
1517 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1518
1519 * solib-osf.c (open_map): Compute the list of shared libraries
1520 loaded by the inferior, rather than the list of libraries loaded
1521 by GDB itself. Otherwise, GDB ends up reading the symbols from
1522 the wrong shared libraries...
1523
1524 2002-07-02 Mark Kettenis <kettenis@gnu.org>
1525
1526 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1527 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1528 macros.
1529 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1530 Remove functions.
1531 (FRAMELESS_SIGNAL): Remove function.
1532 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1533 i386_linux_saved_pc_after_call): Removed.
1534 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1535 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1536 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1537
1538 * i386-tdep.c (i386_frameless_signal_p): New function.
1539 (i386_frame_chain): Deal with frameless signals.
1540 (i386_sigtramp_saved_sp): New function.
1541 (i386_frame_saved_pc): Deal with frameless signals.
1542 (i386_saved_pc_after_call): Make sure the correct value is
1543 returned just after entry into a sigtramp.
1544 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1545 i386fbsd4_sc_sp_offset): New variables.
1546 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1547 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1548 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1549 similiar to what we already did for sc_pc_offset.
1550 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1551 tdep->sc_sp_offset.
1552
1553 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1554
1555 2002-07-02 Michal Ludvig <mludvig@suse.cz>
1556
1557 * config/i386/tm-x86-64linux.h: New.
1558 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1559 definitions.
1560 * config/i386/nm-x86-64.h: Rename to ...
1561 * config/i386/nm-x86-64linux.h: ... this one.
1562 * config/i386/x86-64linux.mh: Reflect the above change.
1563
1564 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1565
1566 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1567 with sigcontext_addr. Add sc_sp_offset.
1568 (i386bsd_sigtramp_saved_pc): Remove prototype.
1569 (i386bsd_sicontext_addr): Add prototype.
1570 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1571 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1572 (i386_svr4_sigtramp_saved_pc): Removed.
1573 (i386_svr4_sigcontext_addr): New function.
1574 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1575 Initialize tdep->sigcontext_addr instead. Initialize
1576 tdep->sc_pc_offset and tdep->sc_sp_offset.
1577 (i386_gdbarch_init): Likewise.
1578 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1579 any more.
1580 (i386bsd_sigtramp_saved_pc): Remove function.
1581 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1582 Initialize tdep->sigcontext_addr instead. Initialize
1583 tdep->sc_pc_offset.
1584 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1585 of tdep->sigtramp_saved_pc.
1586 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1587 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1588 instead.
1589
1590 * i386-tdep.c (i386_frameless_function_invocation,
1591 i386_frame_num_args, i386_frame_init_saved_regs,
1592 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1593 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1594 i386_extract_return_value, i386_store_return_value,
1595 i386_extract_struct_value_address, i386_register_virtual_type,
1596 i386_register_convertible, i386_register_convert_to_virtual,
1597 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1598 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1599 static.
1600
1601 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1602
1603 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1604
1605 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1606 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1607 this macro. Include "value.h".
1608
1609 2002-06-30 Aidan Skinner <aidan@velvet.net>
1610
1611 * ada-exp.tab.c: remove as it's a generated file
1612 * ada-lex.c: remove as it's a generated file
1613
1614 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1615
1616 * config/i386/tm-i386.h (struct frame_info, struct
1617 frame_saved_regs, struct value, struct type): Remove forward
1618 declarations.
1619
1620 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1621 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1622 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1623 (FILL_FPXREGSET): Define.
1624
1625 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1626
1627 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1628 i[3456]86-*-netbsd* case.
1629 * config/i386/tm-obsd.h: Removed.
1630 * config/i386/obsd.mt: Removed.
1631 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1632 core-aout.o.
1633 (MH_CFLAGS): Add -DYYDEBUG=0.
1634
1635 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1636 i386nbsd_sc_pc_offset on OpenBSD too.
1637
1638 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1639 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1640 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1641 define.
1642 * i386bsd-tdep.c: Include "arch-utils.h".
1643 (i386bsd_aout_in_solib_call_trampoline): New function.
1644 (i386bsd_init_abi): Set in_solib_call_trampoline to
1645 i386bsd_aout_in_solib_call_trampoline.
1646 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1647 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1648
1649 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1650
1651 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1652 (struct obstack, struct bcache): Add opaque declarations.
1653 * Makefile.in (macrotab_h): Update
1654
1655 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1656
1657 * blockframe.c (generic_find_dummy_frame): Change return type to
1658 ``struct regcache''.
1659 (struct dummy_frame): Replace field ``registers'' with regcache, a
1660 struct regcache object.
1661 (generic_find_dummy_frame): Update.
1662 (generic_push_dummy_frame): Update. Use regcache_xfree,
1663 regcache_xmalloc and regcache_cpy.
1664 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1665 regcache_xfree.
1666 (deprecated_generic_find_dummy_frame): Update.
1667 (generic_read_register_dummy): Update. Use
1668 regcache_read_as_address.
1669 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1670 (generic_get_saved_register): Update. Use regcache_read.
1671
1672 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1673
1674 * Makefile.in (objfiles_h): Add $(bcache_h).
1675 * objfiles.h: Include "bcache.h".
1676
1677 * Makefile.in (symtab_h): Remove $(bcache_h).
1678 * symtab.h: Do not include "bcache.h".
1679
1680 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1681
1682 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1683 generic_func_frame_chain_valid.
1684
1685 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1686
1687 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1688 * config/i386/tm-fbsd.h: Likewise.
1689
1690 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1691
1692 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1693 generic_unwind_get_saved_register.
1694
1695 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1696
1697 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1698 * regcache.c (supply_register): Add missing argument to
1699 register_buffer call.
1700
1701 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1702
1703 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1704 Solaris /bin/grep does not not like it. From Peter Schauer.
1705
1706 2002-06-26 Tom Tromey <tromey@redhat.com>
1707
1708 * command.h (add_setshow_cmd): Declare.
1709 (add_setshow_cmd_full): Declare.
1710 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1711 returns void. Use add_setshow_cmd_full.
1712 (add_setshow_cmd_full): New function.
1713 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1714 (add_setshow_boolean_cmd): Likewise.
1715
1716 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1717
1718 * config/vax/tm-vax.h: Protect from multiple inclusion.
1719 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1720 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1721 * config/vax/tm-vaxbsd.h: ...here. New file.
1722 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1723
1724 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1725
1726 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1727 (BELIEVE_PCC_PROMOTION): Remove.
1728 (AP_REGNUM): Move to...
1729 * config/vax/nm-vax.h: ...here.
1730 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1731 (vax_breakpoint_from_pc): New function.
1732 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1733 and gdbarch_believe_pcc_promotion.
1734
1735 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1736
1737 * Makefile.in (vax_tdep_h): Define.
1738 (vax-tdep.o): Use $(vax_tdep_h).
1739 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1740 (vax_dump_tdep): New function.
1741 (_initialize_vax_tdep): Register vax_dump_tdep.
1742 * vax-tdep.h: Include osabi.h.
1743 (struct gdbarch_tdep): New.
1744
1745 2002-06-26 Andrew Cagney <cagney@redhat.com>
1746
1747 * frame.h (deprecated_generic_find_dummy_frame): Rename
1748 generic_find_dummy_frame.
1749 * blockframe.c (generic_find_dummy_frame): Make static.
1750 (deprecated_generic_find_dummy_frame): New function.
1751 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1752 generic_find_dummy_frame with deprecated_find_dummy_frame.
1753 (sh64_nofp_frame_init_saved_regs): Ditto.
1754 (sh_fp_frame_init_saved_regs): Ditto.
1755 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1756 (s390_frame_chain): Ditto.
1757 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1758
1759 2002-06-26 Grace Sainsbury <graces@redhat.com>
1760
1761 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1762 gdbarch vector are at the top.
1763 (NUM_REGS): Remove.
1764 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1765 (FRAME_ARGS_ADDRESS): Remove.
1766 (FRAME_LOCALS_ADDRESS): Remove.
1767 (FRAME_NUM_ARGS): Remove.
1768 (FRAME_ARGS_SKIP): Remove.
1769 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1770 (m68k_gdbarch_init): Add gdbarch initializations for macros
1771 undefined in tm-m68k.h
1772
1773 2002-06-26 Grace Sainsbury <graces@redhat.com>
1774
1775 * monitor.h: Add the function regname to monitor_ops
1776 structure. This way NUM_REGS does not have to be a constant.
1777 * monitor.c (monitor_fetch_register): Added support for regname
1778 function. The function is called if the array regnames is NULL.
1779 (monitor_store_register): Same.
1780 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1781 regnames array.
1782 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1783 cpu32bug_cmds.regname to point to new function.
1784 * abug-rom.c (abug_regname): Same as above.
1785 (init_abug_cmds): Same.
1786 * dbug-rom.c (dbug_regname): Same as above.
1787 (init_dbug_cmds): Same.
1788 * remote-est.c (est_regname): Same.
1789 (init_est_cmds): Same.
1790 * rom68k-rom.c (rom68k_regname): Same.
1791 (init_rom68k_cmds): Same.
1792
1793 2002-06-25 Tom Tromey <tromey@redhat.com>
1794
1795 * breakpoint.c (delete_command): Don't repeat `delete' commands.
1796
1797 2002-06-25 Andrew Cagney <cagney@redhat.com>
1798
1799 * infrun.c (stop_registers): Change variable's type to ``struct
1800 regcache'''.
1801 (xmalloc_inferior_status): Delete function.
1802 (free_inferior_status): Delete function.
1803 (normal_stop): Use regcache_cpy.
1804 (struct inferior_status): Change type of fields ``stop_registers''
1805 and ``registers'' to ``struct regcache''.
1806 (write_inferior_status_register): Use regcache_write.
1807 (save_inferior_status): Instead of calling
1808 xmalloc_inferior_status, allocate the inf_status buffer directly.
1809 Use regcache_dup_no_passthrough and regcache_dup to save the
1810 buffers.
1811 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
1812 Replace the stop_registers regcache instead of overriding it. Use
1813 regcache_xfree. Instead of calling free_inferior_status, xfree
1814 the buffer directly.
1815 (discard_inferior_status): Use regcache_xfree. Instead of calling
1816 free_inferior_status, xfree the buffer directly.
1817 (build_infrun): Use regcache_xmalloc.
1818 (_initialize_infrun): Delete redundant call to build_infrun.
1819
1820 * Makefile.in (infcmd.o): Add $(regcache_h).
1821
1822 * infcmd.c: Include "regcache.h".
1823 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
1824 obtain the address of `stop_registers' register buffer.
1825 (print_return_value): Ditto.
1826
1827 * inferior.h (struct regcache): Add opaque declaration.
1828 (stop_registers): Change variable's declared type to ``struct
1829 regcache''.
1830
1831 2002-06-24 Tom Tromey <tromey@redhat.com>
1832
1833 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
1834 * target.c (initialize_targets): Fixed typo in
1835 trust-readonly-sections `show' documentation.
1836
1837 * main.c: Marked all strings with _().
1838
1839 2002-06-24 Don Howard <dhoward@redhat.com>
1840
1841 * memattr.c (create_mem_region): Treat hi == 0 as a special case
1842 that means max CORE_ADDR+1.
1843 (lookup_mem_region): Ditto.
1844 (mem_info_command): Ditto.
1845
1846 2002-06-24 Grace Sainsbury <graces@redhat.com>
1847
1848 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
1849 (REGISTER_BYTES_OK): Remove.
1850 (REGISTER_BYTES): Remove.
1851 (STORE_STRUCT_RETURN): Remove.
1852 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
1853 (STORE_RETURN_VALUE): Remove.
1854 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1855 (FRAME_CHAIN): Remove.
1856 (FRAMELESS_FUNCTION_INVOCATION): Remove.
1857 (FRAME_SAVED_PC): Remove.
1858 * m68k-tdep.c (m68k_register_bytes_ok):Add.
1859 (m68k_store_struct_return): Add.
1860 (m68k_deprecated_extract_return_value): Add.
1861 (m68k_deprecated_extract_struct_value_address): Add.
1862 (m68k_store_return_value): Add.
1863 (m68k_frame_chain): Add.
1864 (m68k_frameless_function_invocation): Add.
1865 (m68k_frame_saved_pc): Add.
1866 (m68k_gdbarch_init): added set_gdbarch calls for new
1867 functions and deleted macros.
1868
1869 2002-06-23 Tom Tromey <tromey@redhat.com>
1870
1871 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
1872 (ALLDEPFILES): Likewise.
1873 (udiheaders): Removed.
1874 (udip2soc.o): Likewise.
1875 (udi2go32.o): Likewise.
1876 (udr.o): Likewise.
1877 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
1878
1879 2002-06-22 Andrew Cagney <ac131313@redhat.com>
1880
1881 * infrun.c (_initialize_infrun): Delete unnecessary call to
1882 build_infrun.
1883
1884 * regcache.h: Update comments describing the regcache_cpy family
1885 of functions.
1886 (regcache_save, regcache_restore): Delete declaration.
1887 (regcache_save_no_passthrough): Delete declaration.
1888 (regcache_restore_no_passthrough): Delete declaration.
1889 * regcache.c (regcache_save): Delete function.
1890 (regcache_save_no_passthrough): Delete function.
1891 (regcache_restore): Delete function.
1892 (regcache_restore_no_passthrough): Delete function.
1893
1894 2002-06-21 Andrew Cagney <ac131313@redhat.com>
1895
1896 * config/m68k/tm-m68k.h: Fix typo.
1897 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1898 (m68k_frame_init_saved_regs): Declare.
1899
1900 2002-06-21 Jim Blandy <jimb@redhat.com>
1901
1902 Remove some vestiges of Harris 88k support.
1903 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1904 register numbering quirk.
1905 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1906 odd symbols occurring in Harris 88k ELF targets.
1907
1908 2002-06-21 Tom Tromey <tromey@redhat.com>
1909
1910 * gdb_locale.h: New file.
1911 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1912 (defs_h): Added gdb_locale.h.
1913 * configure, config.in: Rebuilt.
1914 * configure.in (PACKAGE): Define.
1915 * defs.h: Include gdb_locale.h.
1916 * main.c (captured_main): Call setlocale, bindtextdomain,
1917 textdomain.
1918
1919 2002-06-21 Dave Brolley <brolley@redhat.com>
1920
1921 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1922 * config/frv/frv.mt: New file.
1923 * config/frv/tm-frv.h: New file.
1924 * configure.tgt: Support frv-*-*.
1925 * Makefile.in (frv-tdep.o): New target.
1926 * frv-tdep.c: New file.
1927 * NEWS: Mention frv.
1928
1929 2002-06-21 Dave Brolley <brolley@redhat.com>
1930
1931 * MAINTAINERS: Add self to "Write After Approval" list.
1932
1933 2002-06-21 Grace Sainsbury <graces@redhat.com>
1934
1935 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1936 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1937 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1938 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1939 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1940
1941 * m68k-tdep.c: Include arch-utils.h
1942 (m68k_register_raw_size): Add.
1943 (m68k_register_virtual_size): Add.
1944 (m68k_register_virtual_type): Add.
1945 (m68k_register_name): Add.
1946 (m68k_stack_align): Add.
1947 (m68k_register_byte): Add.
1948 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1949 tm-m68k.h.
1950
1951 2002-06-21 Grace Sainsbury <graces@redhat.com>
1952
1953 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1954 m68k_find_saved_regs.
1955 (m68k_pop_frame): Removed saved_regs structure, and replaced
1956 references to it with frame->saved_regs.
1957 (m68k_gdbarch_init): Added function calls to initialize the
1958 gdbarch structure.
1959 (m68k_fix_call_dummy): Add.
1960 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1961 (CALL_DUMMY): Remove.
1962 (CALL_DUMMY_LENGTH): Remove.
1963 (CALL_DUMMY_START_OFFSET): Remove.
1964 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1965 (FIX_CALL_DUMMY): Remove.
1966 (PUSH_DUMMY_FRAME): Remove.
1967 (POP_FRAME): Remove.
1968
1969 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1970
1971 * parse.c (parse_fprintf): New function used to avoid calls to
1972 fprintf in bison parser generated debug code.
1973 * parser-defs.h: Declaration of new parse_fprintf function.
1974 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1975 Set YYDEBUG to 1 by default.
1976 Set YYFPRINTF as parse_fprintf.
1977
1978 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1979
1980 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1981 encoding anymore.
1982 (pointer_encoding, enum ptr_encoding): New.
1983 (execute_cfa_program): Take care about pointer encoding.
1984 (dwarf2_build_frame_info): Only call parse_frame_info for
1985 .debug_frame and .eh_frame.
1986 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1987 fixed augmentation handling, added relative addressing,
1988 ignore duplicate FDEs. Added comments.
1989 * dwarf2cfi.c: Reindented.
1990
1991 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1992
1993 * event-top.c (command_handler): Don't use space_at_cmd_start
1994 unless there is sbrk() on the host. Assign time and space data
1995 to union fields of the appropriate length.
1996
1997 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1998
1999 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2000 x86_64_register_name. Return type changed to 'const char *'.
2001 (x86_64_register_name2nr): Rename to x86_64_register_number.
2002 (x86_64_gdbarch_init): Update to reflect the change.
2003 * x86-64-tdep.h: Ditto.
2004 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2005 (supply_fpregset): Ditto.
2006
2007 2002-06-19 Andrew Cagney <cagney@redhat.com>
2008
2009 * regcache.h: Update copyright.
2010 (struct regcache, struct gdbarch): Add opaque declarations.
2011 (current_regcache): Declare global variable.
2012 (regcache_read, regcache_write): Add gdbarch parameter.
2013 (regcache_save, regcache_save_no_passthrough)
2014 (regcache_restore, regcache_restore_no_passthrough)
2015 (regcache_dup, regcache_dup_no_passthrough)
2016 (regcache_cpy, regcache_cpy_no_passthrough)
2017 (deprecated_grub_regcache_for_registers)
2018 (deprecated_grub_regcache_for_register_valid)
2019 (regcache_valid_p): Add function declarations.
2020
2021 * regcache.c: Update copyright.
2022 (regcache_descr_handle): New global variable.
2023 (struct regcache_descr): Define.
2024 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2025 (regcache_descr, xfree_regcache_descr): New functions.
2026 (struct regcache): Define.
2027 (regcache_xmalloc, regcache_xfree): New functions.
2028 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2029 (regcache_dup, regcache_dup_no_passthrough): New functions.
2030 (regcache_valid_p, regcache_read_as_address): New functions.
2031 (deprecated_grub_regcache_for_registers): New function.
2032 (deprecated_grub_regcache_for_register_valid): New function.
2033 (current_regcache): New global variable.
2034 (register_buffer): Add regcache parameter. Update calls.
2035 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2036 (read_register_gen, write_register_gen): Update register_buffer
2037 call. Test for legacy_p instead of gdbarch_register_read_p or
2038 gdbarch_register_write_p.
2039 (regcache_collect): Update register_buffer call.
2040 (build_regcache): Rewrite. Use deprecated grub functions.
2041 (regcache_save, regcache_save_no_passthrough): New functions.
2042 (regcache_restore, regcache_restore_no_passthrough): New
2043 functions.
2044 (_initialize_regcache): Create the regcache_data_handle. Swap
2045 current_regcache global variable.
2046
2047 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2048 parameter to regcache_read and regcache_write calls.
2049 (sh4_register_read): Ditto.
2050 (sh64_pseudo_register_read): Ditto.
2051 (sh64_register_read): Ditto.
2052 (sh_pseudo_register_write): Ditto.
2053 (sh4_register_write): Ditto.
2054 (sh64_pseudo_register_write): Ditto.
2055 (sh64_register_write): Ditto.
2056
2057 * defs.h (XCALLOC): Define.
2058
2059 2002-06-19 Grace Sainsbury <graces@redhat.com>
2060
2061 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2062 * m68k-tdep.c (m68k_gdbarch_init): Added.
2063 (m68k_dump_tdep): Added.
2064
2065 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2066
2067 * ada-lang.c (fill_in_ada_prototype): Update comment.
2068
2069 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2070
2071 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2072 MIPS_ABI_LAST.
2073 (mips_abi_string, mips_abi_strings): New.
2074 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2075 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2076 tdep->mips_abi_string. Honor mips_abi_string. Default to
2077 O32 if no ABI is found.
2078 (mips_dump_tdep): Use mips_abi_strings.
2079 (mips_abi_update): New function.
2080 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2081 ``set mips abi'' and ``show mips abi''. Check the size of
2082 mips_abi_strings.
2083
2084 2002-06-19 Andrew Cagney <cagney@redhat.com>
2085
2086 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2087 constant.
2088
2089 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2090
2091 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2092 current frame using only the first stack size adjustment. All
2093 subsequent size adjustments are not considered to be part of
2094 the "static" part of the current frame.
2095 Compute the address of the saved registers relative to the
2096 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2097 in use in this frame.
2098
2099 2002-06-18 Don Howard <dhoward@redhat.com>
2100
2101 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2102 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2103 suggesting this solution.
2104
2105 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2106
2107 * config/romp/xm-rtbsd.h: Delete file.
2108 * config/romp/rtbsd.mh: Delete file.
2109
2110 2002-06-18 Keith Seitz <keiths@redhat.com>
2111
2112 * breakpoint.c (condition_command): Post breakpoint_modify
2113 when a condition is added to an existing breakpoint.
2114 (commands_command): Likewise for commands.
2115 (set_ignore_count): Likewise for ignore counts.
2116 If no tty, do not simply return, still need to send event
2117 notification.
2118 (ignore_command): Only print a newline if the command came
2119 from a tty.
2120 Don't call breakpoints_changed, since this is now properly
2121 handled by set_ignore_count.
2122
2123 2002-06-18 Andrew Cagney <cagney@redhat.com>
2124
2125 * MAINTAINERS: Note that cris-elf target can be compiled with
2126 -Werror.
2127 * cris-tdep.c (cris_register_name): Make return type constant.
2128 (cris_breakpoint_from_pc): Ditto.
2129
2130 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2131
2132 * frame.h (struct frame_info): Change type of context to
2133 'struct context'.
2134
2135 2002-06-17 Andrew Cagney <cagney@redhat.com>
2136
2137 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2138 pointer.
2139 * gdbarch.h, gdbarch.c: Regenerate.
2140 * config/mips/tm-mips.h (mips_register_name): Update.
2141 * i386-tdep.h (i386_register_name): Update.
2142 * mips-tdep.c (mips_register_name): Update
2143 * alpha-tdep.c (alpha_register_name): Update.
2144 * arch-utils.c (legacy_register_name): Update.
2145 * arch-utils.h (legacy_register_name): Update.
2146 * avr-tdep.c (avr_register_name): Update.
2147 * ia64-tdep.c (ia64_register_name): Update.
2148 * i386-tdep.c (i386_register_name): Update.
2149 * sparc-tdep.c (sparc32_register_name): Update.
2150 (sparc64_register_name): Update.
2151 (sparclite_register_name): Update.
2152 (sparclet_register_name): Update.
2153 * sh-tdep.c (sh_generic_register_name): Update.
2154 (sh_sh_register_name): Update.
2155 (sh_sh3_register_name): Update.
2156 (sh_sh3e_register_name): Update.
2157 (sh_sh_dsp_register_name): Update.
2158 (sh_sh3_dsp_register_name): Update.
2159 (sh_sh4_register_name): Update.
2160 (sh_sh64_register_name): Update.
2161 * s390-tdep.c (s390_register_name): Update.
2162 * rs6000-tdep.c (rs6000_register_name): Update.
2163 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2164 (ns32k_register_name_32382): Update.
2165 * d10v-tdep.c (d10v_ts2_register_name): Update.
2166 (d10v_ts3_register_name): Update.
2167 * xstormy16-tdep.c (xstormy16_register_name): Update.
2168 * vax-tdep.c (vax_register_name): Update.
2169 * v850-tdep.c (v850_register_name): Update.
2170 * m68hc11-tdep.c (m68hc11_register_name): Update.
2171 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2172 (am33_register_name): Update.
2173
2174 2002-06-17 Grace Sainsbury <graces@redhat.com>
2175
2176 * m68k-tdep.c: Reindented.
2177
2178 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2179
2180 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2181 list of predefined types.
2182
2183 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2184
2185 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2186 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2187 REGISTER_CONVERT_TO_RAW): Remove defines.
2188 (i386_register_virtual_type, i386_register_convertible,
2189 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2190 Remove prototypes.
2191 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2192 macros mentioned above.
2193
2194 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2195 (i386lynx_saved_pc_after_call): Remove prototype.
2196 * i386ly-tdep.c: Include "i386-tdep.h".
2197 (i386lynx_saved_pc_after_call): Make static. Use
2198 read_memory_nobpt instead of read_memory. Use
2199 read_memory_unsigned_integer instead of read_memory_integer.
2200 (i386lynx_init_abi): New function.
2201 (i386lynx_coff_osabi_sniffer): New function.
2202 (_initialize_i386bsd_tdep): New function.
2203
2204 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2205 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2206 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2207 (i386_fix_call_dummy): Remove prototype.
2208 * i386-tdep.c (i386_call_dummy_words): New variable.
2209 (i386_gdbarch_init): Adjust for removal of the
2210 macros mentioned above.
2211
2212 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2213
2214 * command.h (add_setshow_auto_boolean_cmd): Replace
2215 add_set_auto_boolean_cmd.
2216 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2217 add_set_auto_boolean_cmd.
2218 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2219 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2220 mask-address'' command.
2221 (show_mask_address): Add cmd parameter.
2222 * remote.c (add_packet_config_cmd): Update. Change type of
2223 set_func and show_func to cmd_sfunc_ftype.
2224 (_initialize_remote): Update `set remote Z-packet'
2225 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2226 (show_remote_protocol_e_packet_cmd): Ditto.
2227 (show_remote_protocol_E_packet_cmd): Ditto.
2228 (show_remote_protocol_P_packet_cmd): Ditto.
2229 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2230 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2231 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2232 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2233 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2234 (show_remote_protocol_Z_packet_cmd): Ditto.
2235 (show_remote_protocol_binary_download_cmd): Ditto.
2236 (show_remote_cmd): Pass NULL to all of above.
2237
2238 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2239
2240 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2241 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2242 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2243 POP_FRAME): Remove defines.
2244 (i386_push_arguments, i386_store_struct_return,
2245 i386_extract_return_value, i386_store_return_value,
2246 i386_extract_struct_value_address, i386_push_dummy_frame,
2247 i386_pop_frame): Renove prototypes.
2248 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2249 macros mentioned above.
2250
2251 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2252
2253 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2254 add_set_boolean_cmd.
2255 (add_setshow_cmd): New function.
2256 * command.h (add_setshow_boolean_cmd): Replace
2257 add_set_boolean_cmd.
2258 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2259 and ``set rdiromatzero''.
2260 * maint.c (_initialize_maint_cmds): Update commented out code.
2261 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2262 * target.c (initialize_targets): Update `set
2263 trust-readonly-sections'.
2264 * remote.c (_initialize_remote): Update `set remotebreak'.
2265
2266 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2267
2268 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2269 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2270 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2271 fit into multi-arch framework.
2272 (i386_breakpoint_from_pc): New function.
2273 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2274 above.
2275
2276 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2277 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2278 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2279 (i386_frameless_function_invocation, i386_frame_num_args,
2280 i386_frame_init_saved_regs): Remove prototypes.
2281 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2282 macros mentioned above.
2283
2284 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2285
2286 * cli/cli-decode.c (set_cmd_cfunc): Update.
2287 (set_cmd_sfunc): Update.
2288 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2289 (set_cmd_sfunc, set_cmd_cfunc): Update.
2290 * cli/cli-decode.h: Update.
2291
2292 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2293
2294 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2295 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2296
2297 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2298
2299 * defs.h (auto_boolean): Declare enum.
2300 * command.h (cmd_auto_boolean): Delete enum.
2301 * mips-tdep.c (mask_address_var): Update.
2302 (mips_mask_address_p): Update.
2303 (show_mask_address): Update.
2304 * remote.c (struct packet_config): Update.
2305 (update_packet_config): Update.
2306 (show_packet_config_cmd): Update.
2307 (packet_ok): Update.
2308 (add_packet_config_cmd): Update.
2309 (_initialize_remote):
2310 * command.h: Update.
2311 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2312 (do_setshow_command): Update.
2313 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2314 * cli/cli-decode.h: Update.
2315
2316 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2317
2318 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2319 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2320 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2321 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2322 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2323 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2324
2325 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2326 list of DJGPP COFF targets.
2327
2328 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2329 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2330 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2331 (FP0_REGNUM): Remove define.
2332 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2333 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2334 (i386_register_virtual_size): Remove protoype.
2335 * i386-tdep.c (i386_register_virtual_size): Removed.
2336 (i386_extract_return_value, i386_store_return_value): Use
2337 FP0_REGNUM instead of NUM_FREGS to determine whether the
2338 floating-point registers are available.
2339 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2340 Adjust for removal of macros mentioned above.
2341
2342 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2343
2344 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2345 comments.
2346 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2347 Remove prototypes.
2348 (supply_gregset, fill_gregset): Remove use of register keyword and
2349 remove declaration for regmap. Use I386_NUM_GREGS instead of
2350 NUM_REGS and NUM_FREGS.
2351 (FPREGSET_FSAVE_OFFSET): Remove.
2352 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2353 NUM_FREGS to determine whether the floating-point registers are
2354 available.
2355
2356 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2357 gnu_store_registers): Replace usage of NUM_GREGS with
2358 I386_NUM_GREGS.
2359
2360 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2361 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2362 usage of NUM_GREGS with I386_NUM_GREGS.
2363
2364 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2365
2366 * i386bsd-nat.c: Include "i386-tdep.h".
2367 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2368 I386_NUM_GREGS.
2369
2370 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2371 and associated comment. They no longer make any sense, since we
2372 don't use this file anymore on Linux.
2373
2374 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2375 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2376 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2377 elements in these arrays.
2378 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2379 MAX_NUM_REGS.
2380
2381 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2382
2383 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2384 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2385
2386 2002-06-14 Andrew Cagney <cagney@redhat.com>
2387
2388 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2389 EXTRACT_RETURN_VALUE.
2390 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2391 EXTRACT_STRUCT_VALUE_ADDRESS.
2392 * gdbarch.h, gdbarch.c: Regenerate.
2393
2394 * values.c (value_being_returned): Handle
2395 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2396 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2397
2398 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2399 * arm-tdep.c (arm_gdbarch_init): Update.
2400 * avr-tdep.c (avr_gdbarch_init): Update.
2401 * cris-tdep.c (cris_gdbarch_init): Update.
2402 * d10v-tdep.c (d10v_gdbarch_init): Update.
2403 * ia64-tdep.c (ia64_gdbarch_init): Update.
2404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2406 * s390-tdep.c (s390_gdbarch_init): Update.
2407 * sh-tdep.c (sh_gdbarch_init): Update.
2408 * s390-tdep.c (s390_gdbarch_init): Update.
2409 * sparc-tdep.c (sparc_gdbarch_init): Update.
2410 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2411 * v850-tdep.c (v850_gdbarch_init): Update.
2412 * vax-tdep.c (vax_gdbarch_init): Update.
2413 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2414 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2415
2416 * config/arc/tm-arc.h: Update.
2417 * config/d30v/tm-d30v.h: Update.
2418 * config/fr30/tm-fr30.h: Update.
2419 * config/h8300/tm-h8300.h: Update.
2420 * config/h8500/tm-h8500.h: Update.
2421 * config/i386/tm-i386.h: Update.
2422 * config/i386/tm-ptx.h: Update.
2423 * config/i386/tm-symmetry.h: Update.
2424 * config/i960/tm-i960.h: Update.
2425 * config/m32r/tm-m32r.h: Update.
2426 * config/m68k/tm-delta68.h: Update.
2427 * config/m68k/tm-linux.h: Update.
2428 * config/m68k/tm-m68k.h: Update.
2429 * config/m88k/tm-m88k.h: Update.
2430 * config/mcore/tm-mcore.h: Update.
2431 * config/mips/tm-mips.h: Update.
2432 * config/mn10200/tm-mn10200.h: Update.
2433 * config/pa/tm-hppa.h: Update.
2434 * config/pa/tm-hppa64.h: Update.
2435 * config/sparc/tm-sp64.h: Update.
2436 * config/sparc/tm-sparc.h: Update.
2437 * config/sparc/tm-sparclet.h: Update.
2438 * config/z8k/tm-z8k.h: Update.
2439
2440 2002-06-14 Andrew Cagney <cagney@redhat.com>
2441
2442 * Makefile.in (i386_linux_tdep_h): Define.
2443 (i386_tdep_h, i387_tdep_h): Define.
2444 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2445 $(i386_tdep_h) and $(i387_tdep_h).
2446 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2447
2448 2002-06-14 Mark Kettenis <kettenis@gnu.org>
2449
2450 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2451 Already covered by the default.
2452
2453 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2454 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2455 (i386_gdbarch_init): Initialize long_double_format and long_double
2456 bit.
2457
2458 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2459 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2460 Move these to ...
2461 * config/i386/i386sol2.mh: ... here.
2462 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2463 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2464 (SIGCONTEXT_PC_OFFSET): Remove define.
2465 (IN_SIGTRAMP): Remove define.
2466 * i386-sol2-tdep.c: New file.
2467
2468 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2469 * config/i386/tm-i386nw.h: Removed.
2470
2471 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2472 USE_STRUCT_CONVENTION): Remove defines.
2473 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2474 (get_longjmp_target): Remove prototype.
2475 (IN_SIGTRAMP): Remove define.
2476 (i386bsd_in_sigtramp): Remove prototype.
2477 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2478 function. Update comment accordingly
2479 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2480 (FRAME_SAVED_PC): Remove define.
2481 (i386bsd_frame_saved_pc): Remove prototype.
2482 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2483 GET_LONGJMP_TARGET): Remove defines.
2484 (get_longjmp_target): Remove prototype.
2485 (IN_SIGTRAMP): Remove define.
2486 (i386bsd_in_sigtramp): Remove prototype.
2487 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2488 function. Update comment accordingly
2489 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2490 (FRAME_SAVED_PC): Remove define.
2491 (i386bsd_frame_saved_pc): Remove prototype.
2492 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2493 Remove prototype.
2494 (USE_STRUCT_CONVENTION): Remove prototype.
2495 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2496 declaration.
2497 (_initialize_i386bsd_nat): Revise logic to determine some
2498 constants at compile time when compiling a native GDB. Warn if
2499 things don't match up with what we expect.
2500 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2501 Remove variables.
2502 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2503 to use date stored in `struct gdbarch_tdep'.
2504 (i386bsd_sigcontext_offset): Remove varaible.
2505 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2506 stored in `struct gdbarch_tdep'.
2507 (i386bsd_frame_saved_pc): Make static.
2508 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2509 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2510 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2511 i386fbsd4_sc_pc_offset): New variables.
2512 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2513 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2514 functions.
2515 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2516 functions.
2517 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2518 Modify the value of i386fbsd_sigtramp_start and
2519 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2520 i386fbsd_sigtramp_end.
2521 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2522 function.
2523
2524 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2525 define to i386-linux-tdep.h.
2526 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2527 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2528 defines.
2529 (i386_linux_register_name, i386_linux_register_byte,
2530 i386_linux_register_raw_size): Remove prototypes.
2531 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2532 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2533 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2534 TARGET_WRITE_PC): Remove defines.
2535 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2536 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2537 i386_linux_write_pc): Remove prototypes.
2538 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2539 (get_longjmp_target): Remove prototype.
2540 * i386-linux-tdep.h: New file.
2541 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2542 * i386-linux-tdep.c: Include "i386-tdep.h" and
2543 "i386-linux-tdep.h".
2544 (i386_linux_register_name, i386_linux_register_byte,
2545 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2546 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2547 Make static.
2548 (i386_linux_init_abi): New function.
2549 (_initialize_i386_linux_tdep): New function.
2550
2551 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2552 (i386_saved_pc_after_call): Remove prototype.
2553 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2554 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2555 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2556 (i386_register_name, i386_stab_reg_to_regnum,
2557 i386_dwarf_reg_to_regnum): Remove prototypes.
2558 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2559 SIZEOF_SSE_REGS): Remove defines.
2560 (REGISTER_BYTES): Remove define.
2561 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2562 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2563 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2564 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2565 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2566 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2567 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2568 (get_longjmp_target): Remove prototype.
2569 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2570 (sigtramp_saved_pc): Remove define.
2571 (i386v4_sigtramp_saved_pc): Remove prototype.
2572 * config/i386/tm-go32.h (FRAME_CHAIN,
2573 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2574 (i386go32_frame_saved_pc): Remove prototype.
2575 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2576 (get_longjmp_target): Remove prototype.
2577 * i386-tdep.h: Include "osabi.h".
2578 (enum i386_abi): Removed.
2579 (enum struct_return): New enum.
2580 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2581 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2582 sc_pc_offset members.
2583 (i386_gdbarch_register_os_abi): Remove prototype.
2584 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2585 I386_SSE_NUM_REGS): New defines.
2586 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2587 I386_SSE_SIZEOF_REGS): New defines.
2588 (i386_register_name, i386_register_byte, i386_register_raw_size):
2589 New prototypes.
2590 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2591 (i386bsd_sigtramp_saved_pc): New prototype.
2592 * i386-tdep.c: Don't include "elf-bfd.h".
2593 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2594 i386_frame_chain, i386_saved_pc_after_call): Make static.
2595 (i386_frame_saved_pc): Rewrite to call architecture dependent
2596 function to deal with signal handlers. Make static.
2597 (i386go32_frame_saved_pc): Removed.
2598 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2599 Removed.
2600 (i386_get_longjmp_target): New function.
2601 (default_struct_convention, pcc_struct_convention,
2602 reg_struct_convention, valid_conventions, struct_convention): New
2603 variables.
2604 (i386_use_struct_convention): New function.
2605 (i386v4_sigtramp_saved_pc): Renamed to
2606 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2607 (i386_pc_in_sigtramp): New function.
2608 (i386_abi_names): Removed.
2609 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2610 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2611 Removed.
2612 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2613 i386_gdbarch_register_os_abi): Removed.
2614 (struct i386_abi_handler): Removed.
2615 (i386_abi_handler_list): Removed.
2616 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2617 functions.
2618 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2619 i386_nw_init_abi): New functions.
2620 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2621 Use set_gdbarch_xxx() calls instead of relying on macros for a
2622 number of calls.
2623 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2624 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2625 Register the various architecture variants defined in this file.
2626
2627 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2628
2629 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2630 (struct main_type): Remove arg_types member. Update comments for
2631 struct field.
2632 (TYPE_ARG_TYPES): Remove.
2633 (TYPE_FN_FIELD_ARGS): Update.
2634 (smash_to_method_type): Update prototype.
2635
2636 * c-typeprint.c (cp_type_print_method_args): Take method type
2637 instead of argument list. Use new argument layout. Simplify.
2638 (c_type_print_args): Use new argument layout. Simplify.
2639 (c_type_print_base): Update call to cp_type_print_method_args.
2640 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2641 argument; use die->type instead. Update call to
2642 smash_to_method_type.
2643 (read_structure_scope): Update call to dwarf2_add_member_fn.
2644 * gdbtypes.c (allocate_stub_method): Update comment.
2645 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2646 Use new argument layout.
2647 (check_stub_method): Use new argument layout. Don't count
2648 void as an argument.
2649 (print_arg_types): Update comments. Use new argument layout.
2650 (recursive_dump_type): Don't print arg_types member.
2651 * hpread.c (hpread_read_struct_type): Use new argument layout.
2652 (fixup_class_method_type): Likewise.
2653 (hpread_type_lookup): Likewise.
2654 * stabsread.c (read_type): Update calls to read_args and
2655 smash_to_method_type.
2656 (read_args): Use new argument layout. Simplify.
2657 * valops.c (typecmp): Use new argument layout. Update parameters
2658 and comments. Simplify.
2659 (hand_function_call): Use new argument layout.
2660 (search_struct_method): Update call to typecmp.
2661 (find_overload_match): Use new argument layout.
2662
2663 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2664
2665 * NEWS: Mention multithreaded debug support for gdbserver.
2666
2667 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2668
2669 * MAINTAINERS: Mention NEWS.
2670
2671 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2672
2673 * gdbserver/regcache.c: Add comment.
2674
2675 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2676
2677 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2678 (struct mips_objfile_private, compare_pdr_entries): New.
2679 (non_heuristic_proc_desc): Read the ".pdr" section if it
2680 is present.
2681
2682 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2683
2684 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2685 (arm_debug): New static variable.
2686 (_initialize_arm_tdep): Add ``set debug arm'' command.
2687
2688 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2689
2690 * Makefile.in (sim_arm_h): Define.
2691 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2692 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2693 (arm_register_sim_regno): New function, map an internal REGNUM
2694 onto a simulator register number.
2695 (arm_gdbarch_init): Set register_sim_regno.
2696
2697 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2698
2699 * MAINTAINERS: Add self.
2700
2701 2002-06-11 Jim Blandy <jimb@redhat.com>
2702
2703 * source.c (source_info): Mention whether the symtab has
2704 information about preprocessor macros.
2705
2706 Call the command `info macro', not `show macro'.
2707 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2708 Fix error message.
2709 (_initialize_macrocmd): Register `info_macro_command' in
2710 `infolist', not `showlist'.
2711
2712 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2713
2714 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2715 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2716 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2717 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2718 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2719 unconditionally.
2720 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2721 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2722 (_initialize_mips_tdep): Remove dead code.
2723 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2724 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2725 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2726 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2727 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2728 MIPS_LAST_FP_ARG_REGNUM): Remove.
2729
2730 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2731
2732 * gdbserver/thread-db.c: New file.
2733 * gdbserver/proc-service.c: New file.
2734 * gdbserver/acinclude.m4: New file.
2735 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2736 proc-service.o, and thread-db.o.
2737 (linux-low.o): Add USE_THREAD_DB.
2738 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2739 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2740 * gdbserver/aclocal.m4: Regenerated.
2741 * gdbserver/config.in: Regenerated.
2742 * gdbserver/configure: Regenerated.
2743 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2744 thread_db.h, and linux/elf.h headrs.
2745 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2746 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2747 Check for -lthread_db and thread support.
2748 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2749 PowerPC, and SuperH.
2750 * gdbserver/i387-fp.c: Constify arguments.
2751 * gdbserver/i387-fp.h: Likewise.
2752 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2753 `struct inferior_info'. Remove PID member. Use generic inferior
2754 list header. All uses updated.
2755 (inferiors, signal_pid): Removed.
2756 (all_threads): New variable.
2757 (get_thread): Define.
2758 (add_inferior_to_list): New function.
2759 (for_each_inferior): New function.
2760 (change_inferior_id): New function.
2761 (add_inferior): Removed.
2762 (remove_inferior): New function.
2763 (add_thread): New function.
2764 (free_one_thread): New function.
2765 (remove_thread): New function.
2766 (clear_inferiors): Use for_each_inferior and free_one_thread.
2767 (find_inferior): New function.
2768 (find_inferior_id): New function.
2769 (inferior_target_data): Update argument type.
2770 (set_inferior_target_data): Likewise.
2771 (inferior_regcache_data): Likewise.
2772 (set_inferior_regcache_data): Likewise.
2773 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2774 (all_processes, stopping_threads, using_thrads)
2775 (struct pending_signals, debug_threads, pid_of): New.
2776 (inferior_pid): Replace with macro.
2777 (struct inferior_linux_data): Remove.
2778 (get_stop_pc, add_process): New functions.
2779 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2780 Use add_process and add_thread.
2781 (linux_attach_lwp): New function, based on old linux_attach. Use
2782 add_process and add_thread. Set stop_expected for new threads.
2783 (linux_attach): New function.
2784 (linux_kill_one_process): New function.
2785 (linux_kill): Kill all LWPs.
2786 (linux_thread_alive): Use find_inferior_id.
2787 (check_removed_breakpoints, status_pending_p): New functions.
2788 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2789 Update. Use WNOHANG. Wait for cloned processes also. Update process
2790 struct for the found process.
2791 (linux_wait_for_event): New function.
2792 (linux_wait): Use it. Support LWPs.
2793 (send_sigstop, wait_for_sigstop, stop_all_processes)
2794 (linux_resume_one_process, linux_continue_one_process): New functions.
2795 (linux_resume): Support LWPs.
2796 (REGISTER_RAW_SIZE): Remove.
2797 (fetch_register): Use register_size instead. Call supply_register.
2798 (usr_store_inferior_registers): Likewise. Call collect_register.
2799 Fix recursive case.
2800 (regsets_fetch_inferior_registers): Improve error message.
2801 (regsets_store_inferior_registers): Add debugging.
2802 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2803 (unstopped_p, linux_signal_pid): New functions.
2804 (linux_target_ops): Add linux_signal_pid.
2805 (linux_init_signals): New function.
2806 (initialize_low): Call it. Initialize using_threads.
2807 * gdbserver/regcache.c (inferior_regcache_data): Add valid
2808 flag.
2809 (get_regcache): Fetch registers lazily. Add fetch argument
2810 and update all callers.
2811 (regcache_invalidate_one, regcache_invalidate): New
2812 functions.
2813 (new_register_cache): Renamed from create_register_cache.
2814 Return the new regcache.
2815 (free_register_cache): Change argument to a void *.
2816 (registers_to_string, registers_from_string): Call get_regcache
2817 with fetch flag set.
2818 (register_data): Make static. Pass fetch flag to get_regcache.
2819 (supply_register): Call get_regcache with fetch flag clear.
2820 (collect_register): Call get_regcache with fetch flag set.
2821 (collect_register_as_string): New function.
2822 * gdbserver/regcache.h: Update.
2823 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
2824 stderr.
2825 Handle input interrupts while waiting for an ACK.
2826 (input_interrupt): Use signal_pid method.
2827 (getpkt): Flush after debug output and use stderr.
2828 (outreg): Use collect_register_as_string.
2829 (new_thread_notify, dead_thread_notify): New functions.
2830 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2831 and general_thread.
2832 (look_up_one_symbol): Flush after debug output.
2833 * gdbserver/server.c (step_thread, server_waiting): New variables.
2834 (start_inferior): Don't use signal_pid. Update call to mywait.
2835 (attach_inferior): Update call to mywait.
2836 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2837 (main): Don't fetch/store registers explicitly. Use
2838 set_desired_inferior. Support proposed ``Hs'' packet. Update
2839 calls to mywait.
2840 * gdbserver/server.h: Update.
2841 (struct inferior_list, struct_inferior_list_entry): New.
2842 * gdbserver/target.c (set_desired_inferior): New.
2843 (write_inferior_memory): Constify.
2844 (mywait): New function.
2845 * gdbserver/target.h: Update.
2846 (struct target_ops): New signal_pid method.
2847 (mywait): Removed macro, added prototype.
2848
2849 * gdbserver/linux-low.h (regset_func): Removed.
2850 (regset_fill_func, regset_store_func): New.
2851 (enum regset_type): New.
2852 (struct regset_info): Add type field. Use new operation types.
2853 (struct linux_target_ops): stop_pc renamed to get_pc.
2854 Add decr_pc_after_break and breakpoint_at.
2855 (get_process, get_thread_proess, get_process_thread)
2856 (strut process_info, all_processes, linux_attach_lwp)
2857 (thread_db_init): New.
2858
2859 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
2860 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2861 (the_low_target): Add new members.
2862 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2863 (i386_store_fpxregset): Constify.
2864 (target_regsets): Add new kind identifier.
2865 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2866 (i386_set_pc): Add debugging.
2867 (i386_breakpoint_at): New function.
2868 (the_low_target): Add new members.
2869 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
2870 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2871 (mips_breakpoint_at): New.
2872 (the_low_target): Add new members.
2873 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2874 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2875 (the_low_target): Add new members.
2876 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
2877 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2878 (the_low_target): Add new members.
2879 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
2880 identifier.
2881
2882 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2883
2884 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2885 (unwind_tmp_obstack_free, parse_frame_info)
2886 (update_context, cfi_read_fp, cfi_write_fp)
2887 (cfi_frame_chain, cfi_init_extra_frame_info)
2888 (cfi_virtual_frame_pointer): Use the above function.
2889 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
2890
2891 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
2892
2893 * v850-tdep.c (v850_type_is_scalar): New function.
2894 (v850_use_struct_convention): Match current gcc implementation
2895 as close as possible.
2896 (v850_push_arguments): Fix stack_offset handling. Don't write
2897 struct_addr into register. This is done by v850_store_struct_return.
2898 (v850_extract_return_value): Care for structs.
2899 (v850_store_return_value): Ditto.
2900 (v850_store_struct_return): Actually write address.
2901
2902 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2903
2904 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2905 without debug information too.
2906
2907 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2908
2909 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2910 Make multi-arch pure.
2911 * gdbarch.h, gdbarch.c: Re-generate.
2912 * arm-tdep.c (arm_print_float_info): Update.
2913 * arch-utils.h (default_print_float_info): Update.
2914 * arch-utils.c (default_print_float_info): Update.
2915 * infcmd.c (float_info): Update call.
2916
2917 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2918
2919 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2920 the front of the initialize list.
2921
2922 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2923
2924 * infrun.c (struct inferior_status): Replace fields
2925 selected_frame_address and selected_level with field
2926 selected_frame_id.
2927 (save_inferior_status): Update. Use get_frame_id.
2928 (struct restore_selected_frame_args): Delete.
2929 (restore_selected_frame): Update. Use frame_find_by_id.
2930 (restore_inferior_status): Update.
2931
2932 * breakpoint.h (struct breakpoint): Change type of
2933 watchpoint_frame to frame_id.
2934 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2935 call to get_current_frame.
2936 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2937 get_current_frame.
2938 (watchpoint_check): Use frame_find_by_id.
2939
2940 * frame.h (record_selected_frame): Delete declaration.
2941 * stack.c (record_selected_frame): Delete function.
2942
2943 * frame.h (struct frame_id): Define.
2944 (get_frame_id): Declare.
2945 (frame_find_by_id): Declare.
2946 * frame.c (frame_find_by_id): New function.
2947 (get_frame_id): New function.
2948
2949 2002-06-10 Andrey Volkov <avolkov@transas.com>
2950
2951 * ser-e7kpc.c: Fix duplicated define and call of
2952 _initialize_ser_e7000pc
2953
2954 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2955
2956 * signals/signals.c (target_signal_from_host): Fix #ifdef
2957 SIGRTMIN case.
2958 (do_target_signal_to_host): Likewise.
2959
2960 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2961
2962 * mips-tdep.c (mips_find_abi_section): New function.
2963 (mips_gdbarch_init): Call it.
2964
2965 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2966
2967 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2968 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2969 after Andrew's 2002-06-08 gdbarch change.
2970
2971 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2972
2973 * i386-linux-nat.c (suppy_gregset): Don't supply
2974 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2975 register cache.
2976 (fill_gregset): Don't fetch it under the same circumstances.
2977
2978 2002-06-09 Andrew Cagney <cagney@redhat.com>
2979
2980 * Makefile.in (callback_h): Define.
2981 (remote_sim_h): Update path to remote-sim.h.
2982 (remote-rdp.o): Add $(callback_h).
2983 (remote-sim.o): Use $(callback_h).
2984 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2985 * remote-rdp.c: Include "gdb/callback.h".
2986
2987 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2988
2989 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2990 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2991
2992 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2993
2994 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2995 * rdi-share/serpardr.c: Ditto.
2996 * rdi-share/unixcomm.c: Ditto.
2997 * rdi-share/serdrv.c: Ditto.
2998 * rdi-share/hostchan.h: Ditto.
2999 * rdi-share/hostchan.c: Ditto.
3000 * rdi-share/host.h: Ditto.
3001 * rdi-share/devsw.c: Ditto.
3002
3003 * objfiles.h: Change type of obj_private to void pointer.
3004 * pa64solib.c: Update copyright. Don't include "assert.h", use
3005 strcmp instead of STREQ, use LONGEST, do not use PTR
3006 * somsolib.c: Ditto.
3007
3008 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3009 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3010 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3011
3012 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3013
3014 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3015 (default_get_saved_register): Delete function.
3016 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3017 generic_unwind_get_saved_register.
3018 * gdbarch.h, gdbarch.c: Re-generate.
3019
3020 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3021
3022 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3023 generic_func_frame_chain_valid.
3024 * gdbarch.h, gdbarch.c: Re-generate.
3025 * blockframe.c (generic_func_frame_chain_valid): Only check
3026 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3027 passing FP to PC_IN_CALL_DUMMY.
3028 Fix PR gdb/360.
3029
3030 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3031
3032 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3033 (register_gdbarch_data): Initialize init_p.
3034 (gdbarch_data): Initialize data pointer using the init function.
3035 (init_gdbarch_data): Delete function.
3036 (gdbarch_update_p): Update.
3037 (initialize_non_multiarch): Update.
3038 (struct gdbarch): Add field initialized_p.
3039 * gdbarch.h, gdbarch.c: Re-generate.
3040
3041 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3042
3043 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3044 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3045 better do the things actually here.
3046 * x86-64-tdep.c (x86_64_register_name2nr): New.
3047 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3048 (x86_64_gdbarch_init): Respect the above change.
3049 * x86-64-tdep.h (x86_64_register_name2nr)
3050 (x86_64_register_nr2name): Add prototypes.
3051 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3052
3053 2002-06-06 Michael Snyder <msnyder@redhat.com>
3054
3055 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3056 Delete extra braces and re-indent.
3057 (d10v_store_return_value): Char return values
3058 must be shifted over by one byte in R0.
3059 (d10v_extract_return_value): Delete extra braces, re-indent.
3060
3061 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3062
3063 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3064 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3065 (d10v_integer_to_address): Rewrite.
3066 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3067 the d10v specific functions which take care of converting to the
3068 correct space.
3069
3070 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3071
3072 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3073 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3074
3075 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3076
3077 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3078 includes.
3079 * config/tm-linux.h: Ditto.
3080 * config/alpha/tm-alphalinux.h: Ditto.
3081 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3082 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3083 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3084 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3085 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3086 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3087 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3088 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3089 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3090 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3091 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3092 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3093 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3094 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3095 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3096 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3097 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3098 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3099 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3100 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3101 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3102 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3103 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3104 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3105 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3106 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3107 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3108 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3109 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3110 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3111 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3112 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3113 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3114 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3115 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3116 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3117 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3118
3119 2002-05-04 Aidan Skinner <aidan@velvet.net>
3120
3121 * ada-exp.tab.c: New file
3122 * ada-exp.y: New file
3123 * ada-lang.c: New file
3124 * ada-lang.h: New file
3125 * ada-lex.c: New file
3126 * ada-lex.l: New file
3127 * ada-tasks.c: New file
3128 * ada-typeprint.c: New file
3129 * ada-valprint.c: New file
3130
3131 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3132
3133 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3134 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3135
3136 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3137
3138 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3139 insetead of ppc-linux-tdep.o.
3140 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3141 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3142
3143 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3144
3145 2002-05-07 Christian Groessler <chris@groessler.org>
3146 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3147 bit register contents for little endian hosts.
3148
3149 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3150
3151 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3152 any maintainer.
3153
3154 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3155
3156 * gdbarch.h: Regenerate.
3157
3158 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3159
3160 * MAINTAINERS: Add everyone to write-after-approval list.
3161
3162 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3163
3164 * stack.c (frame_info): Use frame_register_unwind instead of
3165 saved_regs. Mention when the SP is on the stack or in a register.
3166
3167 * frame.h (frame_register_unwind_ftype): Define. Document.
3168 (struct frame_info): Add field register_unwind and
3169 register_unwind_cache.
3170 (frame_register_unwind): Declare.
3171 (generic_unwind_get_saved_register): Declare.
3172
3173 * frame.c (frame_register_unwind): New function.
3174 (generic_unwind_get_saved_register): New function.
3175
3176 * blockframe.c (generic_call_dummy_register_unwind): New function.
3177 (frame_saved_regs_register_unwind): New function.
3178 (set_unwind_by_pc): New function.
3179 (create_new_frame): New function.
3180 (get_prev_frame): New function.
3181
3182 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3183
3184 * a29k-share/: Delete directory.
3185 * remote-vx29k.c: Delete file.
3186
3187 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3188
3189 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3190 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3191
3192 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3193
3194 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3195 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3196 (sparc64nbsd-nat.o)
3197 (sparcnbsd-nat.o)
3198 (sparcnbsd-tdep.o): New dependency lists.
3199 * NEWS: Note new UltraSPARC NetBSD native configuration.
3200 * configure.host (sparc64-*-netbsd*): New host.
3201 * configure.tgt (sparc-*-netbsdelf*)
3202 (sparc-*-netbsd*): Set gdb_target to nbsd.
3203 (sparc64-*-netbsd*): New target.
3204 * sparc64nbsd-nat.c: New file.
3205 * sparcnbsd-nat.c: New file.
3206 * sparcnbsd-tdep.c: New file.
3207 * sparcnbsd-tdep.h: New file.
3208 * config/sparc/nbsd.mt: New file.
3209 * config/sparc/nbsd64.mh: New file.
3210 * config/sparc/nbsd64.mt: New file.
3211 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3212 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3213 (HOST_IPC): Remove.
3214 * config/sparc/nbsdaout.mt: Remove.
3215 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3216 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3217 (HOST_IPC): Remove.
3218 * config/sparc/nbsdelf.mt: Remove.
3219 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3220 sparc-nat.c compatiblity defines.
3221 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3222 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3223 * config/sparc/tm-nbsd64.h: New file.
3224 * config/sparc/tm-nbsdaout.h: Remove.
3225 * config/sparc/xm-nbsd.h: Remove.
3226
3227 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3228
3229 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3230 * sparc-tdep.c: Include osabi.h.
3231 (gdbarch_tdep): Add osabi member.
3232 (_initialize_sparc_tdep): Use gdbarch_register.
3233 (sparc_gdbarch_init): Use generic OS ABI framework.
3234 (sparc_dump_tdep): New function.
3235
3236 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3237
3238 * corefile.c (do_captured_read_memory_integer): Return non-zero
3239 result.
3240 (safe_read_memory_integer): Copy result of memory read when
3241 status is non-zero. Also, add comments.
3242
3243 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3244
3245 * Makefile.in (ppc_tdep_h): Define.
3246 (ppc-linux-nat.o)
3247 (ppc-linux-tdep.o)
3248 (rs6000-tdep.o): Use $(ppc_tdep_h).
3249 (ppc-sysv-tdep.o)
3250 (ppcnbsd-nat.o)
3251 (ppcnbsd-tdep.o): New dependency lists.
3252 * ppc-tdep.h: Use generic OS ABI framework.
3253 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3254 (ppc_linux_init_abi): New functions.
3255 (ppc_sysv_abi_broken_use_struct_convention)
3256 (ppc_sysv_abi_use_struct_convention)
3257 (ppc_sysv_abi_push_arguments): Move to...
3258 * ppc-sysv-tdep.c: ...here.
3259 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3260 * rs6000-tdep.c (process_note_abi_tag_sections)
3261 (get_elfosabi): Remove.
3262 (rs6000_gdbarch_init): Use generic OS ABI framework.
3263 (rs6000_dump_tdep): New function.
3264 (_initialize_rs6000_tdep): Use gdbarch_register.
3265 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3266 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3267 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3268 of ppc-linux-tdep.o.
3269 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3270 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3271 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3272 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3273 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3274 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3275
3276 2002-05-29 Jim Blandy <jimb@redhat.com>
3277
3278 * macroscope.c (default_macro_scope): Put `void' in empty argument
3279 list.
3280
3281 2002-05-29 Andrew Cagney <ac131313@redhat.com>
3282
3283 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3284 * arch-utils.c: Include "sim-regno.h".
3285 * gdbarch.sh: Don't include "sim-regno.h".
3286 * gdbarch.h, gdbarch.c: Regenerate.
3287 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3288 here.
3289 * arch-utils.h (legacy_register_sim_regno): To here.
3290 * remote-sim.c (legacy_register_sim_regno): Move function from
3291 here.
3292 * arch-utils.c (legacy_register_sim_regno): To here.
3293
3294 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3295
3296 * sim-regno.h: New file.
3297 * Makefile.in (sim_regno_h): Define.
3298 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3299 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3300 (legacy_register_sim_regno): New function.
3301 (one2one_register_sim_regno): New function.
3302 (gdbsim_fetch_register): Rewrite.
3303 (gdbsim_store_register): Only store a register when
3304 REGISTER_SIM_REGNO is valid.
3305 * d10v-tdep.c: Include "sim-regno.h".
3306 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3307 (d10v_ts3_register_sim_regno): Ditto.
3308 * gdbarch.sh: Include "sim-regno.h".
3309 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3310 * gdbarch.h, gdbarch.c: Regenerate.
3311 * arch-utils.h (default_register_sim_regno): Delete declaration.
3312 * arch-utils.c (default_register_sim_regno): Delete function.
3313
3314 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3315
3316 * ppcnbsd-nat.c: Rewrite.
3317 * ppcnbsd-tdep.c: New file.
3318 * ppcnbsd-tdep.h: New file.
3319 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3320 solib.o, and solib-svr4.o.
3321 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3322 nbsd-tdep.o, and corelow.o.
3323
3324 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3325
3326 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3327 `tr' and `sed'. Mention that `broken' targets are not expected to
3328 build.
3329
3330 2002-05-27 Michal Ludvig <mludvig@suse.cz>
3331
3332 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3333 Let PC point right after the prologue before looking up symbols.
3334
3335 2002-05-27 Martin M. Hunt <hunt@redhat.com>
3336
3337 * i386-tdep.c (i386_register_virtual_type): Return
3338 builtin_type_vec128i for SSE registers.
3339
3340 * gdbtypes.h (builtin_type_vec128i): Declare.
3341
3342 * gdbtypes.c (build_builtin_type_vec128i): New function.
3343 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3344 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3345 (build_gdbtypes): Initialize new builtin vector types.
3346 (_initialize_gdbtypes): Register new vector types with gdbarch.
3347
3348 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3349
3350 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3351 since it has been multi-arch'd.
3352 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3353 Move Alpha and VAX multi-arch news entries to same section
3354 as other multi-arch news.
3355
3356 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3357
3358 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3359 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3360 static. Rename some register numbers to put them in ns32k-tdep
3361 private namespace.
3362 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3363 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3364 functions.
3365 (_initialize_ns32k_tdep): Use gdbarch_register.
3366 * ns32k-tdep.h: New file.
3367 * ns32knbsd-tdep.c: New file.
3368 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3369 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3370 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3371 REGISTER_BYTES, REGISTER_BYTE): Remove.
3372 * config/ns32k/tm-ns32k.h: New file.
3373 * config/ns32k/tm-umax.h: Remove.
3374
3375 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3376
3377 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3378 ns32k_store_struct_return, ns32k_extract_return_value,
3379 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3380 functions.
3381 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3382 ns32k_saved_pc_after_call.
3383 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3384 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3385 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3386 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3387 ns32k_extract_struct_value_address.
3388
3389 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3390
3391 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3392 ns32k_fix_call_dummy): New.
3393 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3394 ns32k_call_dummy_words.
3395 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3396 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3397 CALL_DUMMY_NARGS): Remove.
3398 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3399
3400 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3401
3402 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3403 ns32k_frame_saved_pc, ns32k_frame_args_address,
3404 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3405 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3406 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3407 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3408 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3409 (BREAKPOINT): Remove..
3410 (FRAME_CHAIN): Define as ns32k_frame_chain.
3411 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3412 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3413 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3414 (FRAME_FIND_SAVED_REGS): Remove.
3415 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3416 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3417 (POP_FRAME): Define as ns32k_pop_frame.
3418
3419 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3420
3421 * ns32k-tdep.c (ns32k_register_byte_32082,
3422 ns32k_register_byte_32382, ns32k_register_raw_size,
3423 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3424 functions.
3425 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3426 ns32k_register_byte_32382.
3427 * config/ns32k/tm-umax.h: Update copyright years.
3428 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3429 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3430 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3431 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3432 (ns32k_get_enter_addr): Fix prototype.
3433
3434 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3435
3436 * ns32k-tdep.c: Update copyright years.
3437 (ns32k_register_name_32082): New function.
3438 (ns32k_register_name_32382): Ditto.
3439 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3440 (REGISTER_NAME): Define as ns32k_register_name_32382.
3441 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3442 (REGISTER_NAME): Define as ns32k_register_name_32082.
3443
3444 2002-05-24 Jim Blandy <jimb@redhat.com>
3445
3446 * dwarf2read.c (free_line_header): Use xfree, not free.
3447
3448 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3449
3450 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3451 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3452
3453 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3454
3455 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3456
3457 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3458
3459 From Ross Alexander at NEC Europe:
3460 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3461
3462 2002-05-23 Michael Snyder <msnyder@redhat.com>
3463
3464 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3465 for input, rather than parse_and_eval_address.
3466
3467 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3468
3469 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3470 * Makefile.in (sim_d10v_h): Update definition.
3471
3472 2002-05-24 Andrew Cagney <cagney@redhat.com>
3473
3474 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3475 change `2002-05-22 Michael Snyder' below.
3476 (d10v_push_arguments): Ditto.
3477 (d10v_extract_return_value): Ditto.
3478
3479 2002-05-23 Jim Blandy <jimb@redhat.com>
3480
3481 * macrotab.c (check_for_redefinition): Don't complain if the new
3482 definition is the same as the previous one. Take more arguments
3483 to allow the comparison.
3484 (macro_define_object, macro_define_function): Pass more arguments
3485 to check_for_redefinition.
3486
3487 2002-05-22 Michael Snyder <msnyder@redhat.com>
3488
3489 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3490 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3491 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3492 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3493 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3494 Add a temp variable to save a call (and a memory read).
3495 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3496 if possible (so that PC_IN_CALL_DUMMY will work).
3497
3498 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
3499
3500 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3501
3502 2002-05-22 Michal Ludvig <mludvig@suse.cz>
3503
3504 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3505 fde->cie_ptr.
3506 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3507 (dwarf2_build_frame_info): Add offset to fde->initial_location
3508 so that frames of shared libraries are mapped correctly.
3509 (execute_stack_op): Change type of 'result' from ULONGEST to
3510 CORE_ADDR.
3511
3512 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3513
3514 * config/alpha/tm-nbsd.h: Include solib.h.
3515
3516 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3517
3518 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3519 assumptions about the host's byte order.
3520
3521 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3522
3523 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3524 to dependency list.
3525 * alphanbsd-tdep.c: Include solib-svr4.h.
3526 * shnbsd-tdep.c: Ditto.
3527
3528 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3529
3530 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3531 nbsd-tdep.h to dependency list.
3532 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3533 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3534 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3535 nbsdaout.mh and nbsdelf.mh consistently.
3536 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3537 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3538 nbsdaout.mt and nbsdelf.mh consistently.
3539 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3540 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3541 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3542 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3543 a.out shared library stuff from here...
3544 * config/nm-nbsdaout.h: ...to here.
3545 * config/tm-nbsd.h: Remove.
3546 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3547 * config/arm/nbsd.mh: Remove.
3548 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3549 nbsd-tdep.o.
3550 * config/arm/nbsdaout.mh: New file.
3551 * config/arm/nbsdelf.mh: New file.
3552 * config/arm/nm-nbsdaout.h: New file.
3553 * config/i386/nbsd.mh: Remove.
3554 * config/i386/nbsd.mt: Remove.
3555 * config/i386/nbsdaout.mh: New file.
3556 * config/i386/nbsdaout.mt: New file.
3557 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3558 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3559 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3560 i386_register_u_addr): Remove.
3561 * config/i386/nm-nbsdaout.h: New file.
3562 * config/i386/nm-nbsdelf.h: Remove.
3563 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3564 (USE_STRUCT_CONVENTION): Remove.
3565 * config/i386/tm-nbsdaout.h: New file.
3566 * config/i386/tm-nbsdelf.h: Remove.
3567 * config/m68k/nbsd.mh: Remove.
3568 * config/m68k/nbsd.mt: Remove.
3569 * config/m68k/nbsdaout.mh: New file.
3570 * config/m68k/nbsdaout.mt: New file.
3571 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3572 * config/m68k/nm-nbsdaout.h: New file.
3573 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3574 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3575 * config/ns32k/nbsd.mh: Remove.
3576 * config/ns32k/nbsd.mt: Remove.
3577 * config/ns32k/nbsdaout.mh: New file.
3578 * config/ns32k/nbsdaout.mt: New file.
3579 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3580 * config/ns32k/nm-nbsdaout.h: New file.
3581 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3582 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3583 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3584 (SVR4_SHARED_LIBS): Remove.
3585 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3586 * config/sparc/nbsd.mh: Remove.
3587 * config/sparc/nbsd.mt: Remove.
3588 * config/sparc/nbsdaout.mh: New file.
3589 * config/sparc/nbsdaout.mt: New file.
3590 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3591 * config/sparc/nbsdelf.mt: New file.
3592 * config/sparc/nm-nbsdaout.h: New file.
3593 * config/sparc/nm-nbsdelf.h: Remove.
3594 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3595 * config/sparc/tm-nbsdaout.h: New file.
3596
3597 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3598
3599 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3600 mipsnbsd-tdep.c
3601 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3602
3603 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3604
3605 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3606 shnbsd-nat.c.
3607 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3608
3609 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3610
3611 * NEWS: Note new MIPS NetBSD native configuration.
3612 * configure.host (mips*-*-netbsd*): New host.
3613 * configure.tgt (mips*-*-netbsd*): New target.
3614 * mipsnbsd-nat.c: New file.
3615 * mipsnbsd-tdep.c: New file.
3616 * mipsnbsd-tdep.h: New file.
3617 * config/mips/nbsd.mh: New file.
3618 * config/mips/nbsd.mt: New file.
3619 * config/mips/nm-nbsd.h: New file.
3620 * config/mips/tm-nbsd.h: New file.
3621
3622 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3623
3624 * Makefile.in (SFILES): Add osabi.c.
3625 (COMMON_OBS): Add osabi.o.
3626 (osabi.o): New dependency list.
3627 * osabi.c: New file.
3628 * osabi.h: New file.
3629 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3630
3631 * Makefile.in (alpha_tdep_h): Define and use instead of
3632 alpha-tdep.h.
3633 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3634 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3635 Remove.
3636 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3637 * alpha-tdep.h: Include osabi.h.
3638 (alpha_abi): Remove.
3639 (gdbarch_tdep): Use generic OS ABI framework.
3640 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3641 gdbarch_register_osabi.
3642 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3643 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3644 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3645
3646 * Makefile.in (sh_tdep_h): Add osabi.h.
3647 * sh-tdep.h (sh_osabi): Remove.
3648 (gdbarch_tdep): Use generic OS ABI framework.
3649 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3650 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3651 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3652 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3653
3654 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3655 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3656 gdbarch_register_osabi.
3657 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3658 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3659 (get_elfosabi): Rename to...
3660 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3661 ABI framework support routines.
3662 (arm_gdbarch_init): Use generic OS ABI framework.
3663 (arm_dump_tdep): Likewise.
3664 (_initialize_arm_tdep): Likewise.
3665 * arm-tdep.h: Include osabi.h.
3666 (arm_abi): Remove.
3667 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3668 osabi member.
3669 (arm_gdbarch_register_os_abi): Remove prototype.
3670 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3671 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3672
3673 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3674 * mips-tdep.c: Include osabi.h.
3675 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3676 OS ABI framework.
3677
3678 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3679
3680 * h8300-tdep.c: Fix formatting.
3681
3682 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3683
3684 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3685 printing vector registers.
3686
3687 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3688
3689 From Fernando Nasser:
3690 * remote.c (remote_async_open_1): Re-throw the exception when the
3691 connection fails.
3692 (remote_cisco_open): Ditto.
3693 (remote_open_1): Ditto.
3694
3695 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3696
3697 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3698 (remote_start_remote): Add uiout parameter. Pass through to
3699 remote_start_remote_dummy.
3700 (remote_open_1): Use catch_exception instead of catch_errors.
3701 (remote_async_open_1): Ditto.
3702 (remote_cisco_open): Ditto.
3703
3704 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3705
3706 * remote.c (remote_start_remote): Replace PTR with void pointer.
3707 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3708 static.
3709
3710 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3711
3712 * gdb_indent.sh: Allow the script to be run in the sim directory.
3713
3714 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3715
3716 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3717 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3718
3719 * corelow.c (core_open): Only call set_gdbarch_from_file if
3720 exec_bfd is NULL.
3721
3722 2002-05-17 Andrey Volkov <avolkov@transas.com>
3723
3724 * h8300-tdep.c: Add support of EXR register
3725 * config/h8300/tm-h8300.h: Ditto.
3726
3727 2002-05-17 Andrey Volkov <avolkov@transas.com>
3728
3729 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3730
3731 2002-05-17 Andrey Volkov <avolkov@transas.com>
3732
3733 * h8300-tdep.c: Change literal regnums to REGNO.
3734
3735 2002-05-17 Jim Blandy <jimb@redhat.com>
3736
3737 * NEWS: Note addition of macro support.
3738
3739 Expand preprocessor macros in C expressions.
3740 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3741 (scan_macro_expansion, scanning_macro_expansion,
3742 finished_macro_expansion): New function declarations.
3743 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3744 variable declarations.
3745 * parser-defs.h (expression_context_pc): New declaration.
3746 * parse.c (expression_context_pc): New variable.
3747 (parse_exp_1): Set expression_context_pc, as well as
3748 expression_context_block.
3749 * c-exp.y (yylex): If we're not already reading the result of a
3750 macro expansion, try to macro-expand the next token. When we're
3751 done scanning a macro expansion, switch back to the mainline text.
3752 Commas and `if's in a macro's expansion don't terminate the input.
3753 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3754 (macro_original_text, macro_expanded_text,
3755 expression_macro_lookup_func, expression_macro_lookup_baton): New
3756 variables.
3757 (scan_macro_expansion, scanning_macro_expansion,
3758 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3759 c_preprocess_and_parse): New functions.
3760 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3761 c_preprocess_and_parse, instead of c_parse.
3762 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3763 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3764
3765 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3766
3767 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3768 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3769 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3770
3771 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
3772
3773 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3774
3775 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3776
3777 * Makefile.in (sh_tdep_h): Define and use.
3778 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3779 register enum): Move to...
3780 * * sh-tdep.h: ...here.
3781 * sh-tdep.c: Include sh-tdep.h.
3782 * sh3-rom.c: Likewise.
3783 * shnbsd-tdep.c: Likewise.
3784
3785 2002-05-16 Michael Snyder <msnyder@redhat.com>
3786
3787 * arm-tdep.c: Spelling fix in comment.
3788
3789 2002-05-16 Jim Blandy <jimb@redhat.com>
3790
3791 Add commands for manually expanding macros and showing their
3792 definitions.
3793 * macrocmd.c, macroscope.c, macroscope.h: New files.
3794 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
3795 (macroscope_h): New variable.
3796 (HFILES_NO_SRCDIR): Add macroscope.h.
3797 (COMMON_OBS): Add macrocmd.o, macroscope.o.
3798 (macroscope.o, macrocmd.o): New rules.
3799
3800 Teach the Dwarf 2 reader to read macro information.
3801 * dwarf2read.c: #include "macrotab.h".
3802 (dwarf_macinfo_buffer): New variable.
3803 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
3804 dwarf_macinfo_size.
3805 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
3806 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
3807 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
3808 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
3809 dwarf2_macro_spaces_in_definition): New complaints.
3810 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
3811 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
3812 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
3813 the partial symbol table.
3814 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
3815 from what's recorded in the partial symbol table.
3816 (read_file_scope): If the compilation unit has a
3817 `DW_AT_macro_info' attribute, read its macro information.
3818 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
3819
3820 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3821
3822 Fix PR gdb/546
3823 * ser-tcp.c: Don't include <netinet/udp.h>.
3824
3825 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
3826
3827 * MAINTAINERS: Update my email address.
3828
3829 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
3830
3831 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
3832 include file of the same name.
3833
3834 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3835
3836 * configure.tgt: Mark v850 as multi-arched.
3837 * config/v850/tm-v850.h: Remove file.
3838 * config/v850/v850.mt: Eliminate TM_FILE.
3839
3840 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3841
3842 * v850-tdep.c: Full multi-arch.
3843 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
3844 Define GDB_MULTI_ARCH to 2.
3845
3846 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
3847
3848 * p-exp.y (current_type): New static variable.
3849 Carries the type of the expression at the position that is parsed.
3850 (push_current_type, pop_current_type): Two new functions. Used
3851 to store/restore current_type in expression on specific tokens.
3852 (search_field): New static variable. Set to one after parsing a point
3853 as at that point only a FIELDNAME token should be searched.
3854 (FIELDNAME): New token. After a point only a token belonging to
3855 current_type type definition is allowed.
3856 (all over token rules): reset and change current_type according
3857 to rules.
3858 (exp '[' rule): insert implicit array index field if
3859 exp is a pascal string type.
3860
3861 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3862
3863 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
3864 frame info. Use frame_info's saved_regs instead of matching member
3865 in extra_frame_info throughout.
3866 (v850_frame_init_saved_regs): New function.
3867 (v850_init_extra_frame_info): Move most functionality into
3868 v850_frame_init_saved_regs().
3869 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
3870 (v850_frame_find_saved_regs): Remove declaration.
3871 (FRAME_FIND_SAVED_REGS): Remove definition.
3872 (v850_frame_init_saved_regs): Add declaration.
3873 (FRAME_INIT_SAVED_REGS): Add definition.
3874
3875 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3876
3877 * v850-tdep.c: Begin multi-arch'ing v850.
3878 (v850_target_architecture_hook): Remove function.
3879 (v850_gdbarch_init): New function. Add code previously in
3880 v850_target_architecture_hook().
3881 (_initialize_v850_tdep): Don't set target_architecture_hook.
3882 Call register_gdbarch_init() instead.
3883
3884 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3885
3886 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3887 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3888 (fixup_class_method_type): Likewise.
3889
3890 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3891
3892 From Martin Pool <mbp@samba.org>:
3893 * gdbserver/server.c (gdbserver_usage): New function.
3894 (main): Call it.
3895
3896 2002-05-15 Jim Blandy <jimb@redhat.com>
3897
3898 Add macro structures to GDB's symbol tables. Nobody puts anything
3899 in them yet.
3900 * symtab.h (struct symtab): New member: `macro_table'.
3901 * buildsym.h (pending_macros): New global variable.
3902 * buildsym.c: #include "macrotab.h".
3903 (buildsym_init): Initialize `pending_macros'.
3904 (end_symtab): If we found macro information while reading a CU's
3905 debugging info, do build a symtab structure for it. Make the
3906 symtab point to the macro information, and clear the
3907 `pending_macros' pointer which held it while we were reading the
3908 debug info.
3909 (really_free_pendings): Free any pending macro table.
3910 * objfiles.h (struct objfile): New member: `macro_cache'.
3911 * objfiles.c (allocate_objfile): Set allocate and free functions
3912 for the macro cache's objstack.
3913 (free_objfile): Empty the macro cache's obstack.
3914 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3915 set new allocate and free functions for it.
3916 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3917 free functions for the macro cache's objstack. (Why is this
3918 function building its own objfile?)
3919 * symmisc.c (print_objfile_statistics): Print statistics on the
3920 macro bcache.
3921 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3922
3923 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3924
3925 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3926 (REGISTER_U_ADDR): Delete definition.
3927 (arm_register_u_addr): Delete declaration.
3928
3929 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3930
3931 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3932 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3933
3934 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3935
3936 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3937 stop_at -> stop_pc.
3938
3939 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3940
3941 * regcache.c (register_valid): Revise comments refering to "Not
3942 available" and "unavailable".
3943 * frame.c (frame_register_read): Ditto.
3944 * findvar.c (value_of_register): Ditto.
3945
3946 2002-05-15 Andrew Cagney <cagney@redhat.com>
3947
3948 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3949 (remote-sim.o): Update dependencies.
3950 (d10v-tdep.o): Specify dependencies.
3951 (sim_d10v_h): Define.
3952
3953 2002-05-14 Jim Blandy <jimb@redhat.com>
3954
3955 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3956 * macrotab.c (macro_lookup_inclusion, find_definition,
3957 new_macro_table): Same.
3958
3959 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3960 not `! strcmp ()'. This is a dubious improvement.
3961 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3962
3963 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3964 although it's not necessary, to avoid a warning.
3965
3966 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3967
3968 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3969 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3970 TYPE_INSTANCE_FLAGS.
3971 (struct main_type): New.
3972 (struct type): Move most members to struct main_type. Change
3973 cv_type and as_type to new type_chain member. Add instance_flags.
3974 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3975 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3976 (finish_cv_type): Remove prototype.
3977 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3978 Set TYPE_CHAIN.
3979 (alloc_type_instance): New function.
3980 (smash_type): New function.
3981 (make_pointer_type, make_reference_type, make_function_type)
3982 (smash_to_member_type, smash_to_method_type): Call smash_type.
3983 (make_qualified_type): New function.
3984 (make_type_with_address_space): Call make_qualified_type.
3985 (make_cv_type): Likewise.
3986 (finish_cv_type): Remove unnecessary function.
3987 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3988 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3989 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3990 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3991 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3992 * hpread.c (hpread_read_struct_type): Likewise.
3993 * stabsread.c (read_struct_type): Likewise.
3994
3995 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3996
3997 * configure.tgt: Add a catch all sh* target, for cases like
3998 sh[2,3,4]-elf and sh-hms.
3999
4000 2002-05-14 Keith Seitz <keiths@redhat.com>
4001
4002 * event-loop.c (create_file_handler): Don't do anything but
4003 update data when we are given a fd which we are already
4004 monitoring.
4005
4006 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4007
4008 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4009 (update_context): Use __func__ in warnings.
4010
4011 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4012
4013 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4014 and tcp_close to net_open and net_close.
4015 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4016 using UDP if requested. Don't try to disable Nagle on UDP
4017 sockets.
4018 * remote.c (remote_serial_open): New function. Warn about UDP.
4019 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4020
4021 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4022
4023 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4024
4025 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4026
4027 * configure.tgt: Remove sh-hms target.
4028 * MAINTAINERS: Don't list sh-hms as a separate target.
4029
4030 2002-05-13 Jim Blandy <jimb@redhat.com>
4031
4032 Add first preprocessor macro-expansion files.
4033 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4034 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4035 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4036 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4037 (COMMON_OBS): Add macrotab.o, macroexp.o.
4038 (macroexp.o, macrotab.o): New rules.
4039
4040 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4041
4042 * config/m88k/tm-m88k.h: Update copyright.
4043 (m88k_target_write_pc): Declare
4044 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4045 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4046 (SHIFT_INST_REGS): Update definition.
4047 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4048 using old definition of TARGET_WRITE_PC.
4049 * regcache.c (generic_target_write_pc): Delete code handling
4050 NNPC_REGNUM.
4051 * gdbarch.sh (NNPC_REGNUM): Delete.
4052 * gdbarch.h, gdbarch.c: Regenerate.
4053
4054 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4055
4056 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4057 builtin reg number.
4058
4059 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4060
4061 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4062 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4063 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4064 access macros.
4065 * c-typeprint.c (cp_type_print_method_args): Likewise.
4066 (c_type_print_args): Likewise.
4067 * d10v-tdep.c (d10v_push_arguments): Likewise.
4068 (d10v_extract_return_value): Likewise.
4069 * expprint.c (print_subexp): Likewise.
4070 * gdbtypes.c (lookup_primitive_typename): Likewise.
4071 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4072 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4073 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4074 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4075 (TYPE_VECTOR): Likewise.
4076 * hpread.c (hpread_read_struct_type)
4077 (fix_static_member_physnames, fixup_class_method_type)
4078 (hpread_type_lookup): Likewise.
4079 * mdebugread.c (parse_symbol, parse_type): Likewise.
4080 * p-lang.c (is_pascal_string_type): Likewise.
4081 * valops.c (hand_function_call): Likewise.
4082 * x86-64-tdep.c (classify_argument): Likewise.
4083
4084 * hpread.c (hpread_read_function_type)
4085 (hpread_read_doc_function_type): Call replace_type.
4086 * dstread.c (create_new_type): Delete.
4087 (decode_dst_structure, process_dst_function): Call alloc_type.
4088 Use type access macros.
4089
4090 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4091
4092 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4093 the're not supported by the current architecture.
4094 (i387_fill_fxsave): Likewise.
4095
4096 2002-05-12 Fred Fish <fnf@redhat.com>
4097
4098 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4099 sect_index_xxx members to index the first slot in section_offsets
4100 if all of the section_offsets are zero.
4101
4102 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4103
4104 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4105 checked in with last change.
4106
4107 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4108
4109 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4110 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4111 config.sub.
4112
4113 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4114
4115 * Makefile.in: Update dependencies.
4116
4117 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4118
4119 * language.c (local_hex_string_custom): Simplify. Do not depend
4120 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4121
4122 * memattr.c (mem_info_command): Replace calls to
4123 longest_local_hex_string and longest_local_hex_string_custom.
4124 * buildsym.c (make_blockvector): Ditto.
4125 * solib.c (info_sharedlibrary_command): Ditto.
4126 * tracepoint.c (tracepoints_info): Ditto.
4127 * symtab.c (print_msymbol_info): Ditto.
4128
4129 * language.c (local_hex_string): Delete.
4130 (local_hex_string_custom): Delete.
4131 (longest_local_hex_string): Rename to local_hex_string.
4132 (longest_local_hex_string_custom): Rename to
4133 local_hex_string_custom.
4134 * language.h (local_hex_string): Change parameter type to LONGEST.
4135 (local_hex_string_custom): Ditto.
4136 (longest_local_hex_string): Delete declaration.
4137 (longest_local_hex_string_custom): Ditto.
4138
4139 * solib.c: Update copyright.
4140 * memattr.c: Update copyright.
4141
4142 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4143
4144 * arch-utils.h (legacy_register_to_value): Declare.
4145 (legacy_value_to_register): Declare.
4146 (legacy_convert_register_p): Declare.
4147 * arch-utils.c (legacy_register_to_value): New function.
4148 (legacy_value_to_register): New function.
4149 (legacy_convert_register_p): New function.
4150
4151 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4152 (VALUE_TO_REGISTER): Define.
4153 (CONVERT_REGISTER_P): Define.
4154 * gdbarch.h, gdbarch.c: Regenerate.
4155
4156 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4157 VALUE_TO_REGISTER.
4158 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4159 CONVERT_REGISTER_P.
4160
4161 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4162 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4163
4164 * Makefile.in: Update dependencies for valops.c.
4165 * valops.c: Include "gdb_assert.h".
4166 (typecmp): Skip THIS parameter to methods.
4167 (find_method_list): Remove static_memfuncp argument,
4168 update callers. Check for stub methods.
4169 (find_value_oload_method_list): Don't set *static_memfuncp.
4170 (find_overload_match): Don't check for stub methods. Assert
4171 that methods are not stubbed. Handle static methods.
4172 (value_find_oload_method_list): Remove static_memfuncp argument.
4173 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4174 to the argument list for static stub methods.
4175 * value.h (value_find_oload_method_list): Update prototype.
4176
4177 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4178
4179 * arch-utils.h (generic_register_size): Declare.
4180 (generic_register_raw_size, generic_register_virtual_size): Delete
4181 declarations.
4182 * arch-utils.c (generic_register_raw_size): Delete.
4183 (generic_register_size): New function.
4184 (generic_register_virtual_size): Delete.
4185
4186 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4187 default generic_register_size.
4188 * gdbarch.h, gdbarch.c: Re-generate.
4189
4190 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4191 register_virtual_size.
4192 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4194
4195 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4196
4197 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4198 * gdbarch.h, gdbarch.c: Regenerate.
4199 * gnu-v3-abi.c: Update copyright.
4200 (vtable_address_point_offset): Update.
4201 (gnuv3_rtti_type): Update.
4202 (gnuv3_baseclass_offset): Update.
4203 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4204 (init_fetch_link_map_offsets): Update.
4205 * remote.c (get_remote_state): Update.
4206
4207 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4208
4209 * TODO: Remove value_headof/value_from_vtable_info comment.
4210 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4211 * values.c (value_headof, value_from_vtable_info): Delete.
4212 * value.h (value_from_vtable_info): Delete prototype.
4213
4214 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4215
4216 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4217 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4218 $(gdb_regex_h).
4219 (gdb_assert_h): Define.
4220 (gdb_wait_h): Define.
4221 (gdb_regex_h): Define.
4222
4223 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4224
4225 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4226 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4227
4228 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4229
4230 * nbsd-tdep.c: Fix comment.
4231
4232 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4233
4234 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4235 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4236 (nbsd-tdep.o): New dependency list.
4237 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4238 nbsd-tdep.h.
4239 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4240 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4241 * nbsd-tdep.c: New file.
4242 * nbsd-tdep.h: New file.
4243 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4244 nbsd-tdep.h.
4245 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4246 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4247 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4248 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4249
4250 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4251
4252 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4253 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4254 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4255 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4256 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4257 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4258
4259 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4260
4261 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4262 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4263 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4264 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4265 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4266 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4267 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4268
4269 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4270
4271 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4272 fetch_elfcore_registers to...
4273 * i386nbsd-tdep.c: ...here.
4274 (i386nbsd_use_struct_convention): Rename to...
4275 (i386nbsd_aout_use_struct_convention): ...this.
4276 (i386nbsd_supply_reg): New function.
4277 (i386nbsd_fill_reg): New function.
4278 (fetch_core_registers): Use i386nbsd_supply_reg.
4279 (fetch_elfcore_registers): Likewise.
4280 (_initialize_i386nbsd_tdep): New function.
4281 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4282 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4283 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4284 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4285 (i386nbsd_aout_use_struct_convention): ...this.
4286
4287 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4288
4289 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4290 (store_inferior_registers): Use shnbsd_fill_reg.
4291 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4292 sh_nbsd_supply_register): Collapse into...
4293 (shnbsd_supply_reg): ...this.
4294 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4295 (shnbsd_fill_reg): ...this.
4296 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4297 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4298 (fetch_core_registers): Use shnbsd_supply_reg.
4299 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4300 (sh_nbsd_core_fns): Rename to...
4301 (shnbsd_core_fns): ...this.
4302 (sh_nbsd_elfcore_fns): Rename to...
4303 (shnbsd_elfcore_fns): ...this.
4304 (sh_nbsd_init_abi): Rename to...
4305 (shnbsd_init_abi): ...this.
4306 (_initialize_sh_nbsd_tdep): Rename to...
4307 (_initialize_shnbsd_tdep): ...this.
4308 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4309 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4310 sh_nbsd_fill_register): Remove prototypes.
4311 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4312
4313 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4314
4315 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4316 (i387-nat.o): Delete dependency list.
4317 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4318 (x86-64-linux-nat.o): Likewise.
4319 * i387-nat.c: Delete file, moving contents to...
4320 * i387-tdep.c: ...here.
4321 * i387-nat.h: Rename...
4322 * i387-tdep.h: ...to this.
4323 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4324 * i386-linux-nat.c: Likewise.
4325 * i386bsd-nat.c: Likewise.
4326 * i386gnu-nat.c: Likewise.
4327 * i386nbsd-nat.c: Likewise.
4328 * i386v4-nat.c: Likewise.
4329 * x86-64-linux-nat.c: Likewise.
4330 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4331 * config/i386/go32.mh (NATDEPFILES): Likewise.
4332 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4333 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4334 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4335 * config/i386/linux.mh (NATDEPFILES): Likewise.
4336 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4337 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4338 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4339 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4340
4341 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4342
4343 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4344 (alphanbsd-nat.o): Remove dependency list.
4345 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4346 * alphanbsd-nat.c: Delete. Contents moved to...
4347 * alphanbsd-tdep.c: ...here.
4348 (_initialize_alphanbsd_tdep): Register core functions.
4349 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4350
4351 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4352
4353 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4354 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4355 (alphanbsd-nat.o): Likewise.
4356 (alphabsd-tdep.o): New dependency list.
4357 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4358 (fill_gregset): Use alphabsd_fill_reg.
4359 (supply_fpregset): Use alphabsd_supply_fpreg.
4360 (fill_fpregset): Use alphabsd_fill_fpreg.
4361 (fetch_inferior_registers): Use struct reg and struct fpreg
4362 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4363 and alphabsd_supply_fpreg.
4364 (store_inferior_registers): Use struct reg and struct fpreg
4365 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4366 and alphabsd_fill_fpreg.
4367 * alphabsd-tdep.c: New file.
4368 * alphabsd-tdep.h: New file.
4369 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4370 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4371 alphabsd_supply_fpreg.
4372 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4373 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4374
4375 2002-05-11 Eric Christopher <echristo@redhat.com>
4376
4377 * mips-tdep.c (mips_double_register_type): Fix thinko.
4378 (mips_single_register_type): Ditto.
4379 * MAINTAINERS: Add self.
4380
4381 2002-05-11 Mark Kettenis <kettenis@gnu.org>
4382
4383 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4384 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4385 right thing on architectures with different endianness and/or
4386 integer sizes.
4387
4388 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4389
4390 From Christian Limpach <chris@Pin.LU>
4391 * configure.in: Change sed expression which comments out
4392 NATDEPFILES to also comment out continuation lines.
4393 * configure: Regenerate.
4394
4395 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4396
4397 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4398 big patch.
4399
4400 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4401
4402 * sh-tdep.c: Include correct file.
4403
4404 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4405
4406 New support for sh64-elf (sh5) target.
4407
4408 * configure.tgt: For sh64-elf target, default to sh-elf.
4409
4410 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4411 (struct gdbarch_tdep): Add new fields for new registers and ABI
4412 info.
4413
4414 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4415 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4416 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4417 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4418 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4419 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4420 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4421 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4422 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4423 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4424 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4425 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4426 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4427 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4428 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4429 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4430 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4431 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4432 sign_extend, sh64_nofp_frame_init_saved_regs,
4433 sh64_init_extra_frame_info, sh64_get_saved_register,
4434 sh64_extract_struct_value_address, sh64_pop_frame,
4435 sh64_push_arguments, sh64_extract_return_value,
4436 sh64_store_return_value, sh64_show_media_regs,
4437 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4438 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4439 sh_sh64_register_virtual_type,
4440 sh_sh64_register_convert_to_virtual,
4441 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4442 sh64_register_read, sh64_pseudo_register_write,
4443 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4444 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4445 sh64_do_pseudo_register, sh_compact_do_registers_info,
4446 sh64_do_registers_info, sh_gdbarch_init): New functions.
4447
4448 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4449
4450 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4451
4452 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
4453
4454 * linespec.c (decode_line_1): Check for a double quote after
4455 a filename correctly.
4456
4457 2002-05-10 Jim Blandy <jimb@redhat.com>
4458
4459 Properly track the size of the current objfile's .debug_line section.
4460 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4461 (DWARF_LINE_SIZE): New macro.
4462 (dwarf2_build_psymtabs_hard): Record the line section's size in
4463 the partial symbol table.
4464 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4465 symbol table.
4466
4467 2002-05-10 Petr Sorfa <petrs@caldera.com>
4468
4469 * ia64-tdep.c: Handle breakpoints on L instruction type
4470 in MLX instruction bundle by moving the breakpoint to
4471 the third slot (X instruction type) as L holds only data.
4472
4473 2002-05-10 Kevin Buettner <kevinb@redhat.com>
4474
4475 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4476 (process_one_symbol): Complain about discarding local symbols
4477 due to a misplaced N_LBRAC entry.
4478
4479 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
4480
4481 From Daniel Berlin <dan@cgsoftware.com>
4482 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4483 decrease the depth we are at, in the case of templates.
4484
4485 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4486
4487 * mips-tdep.c (mips_float_register_type): New function.
4488 (mips_double_register_type): New function.
4489 (mips_print_register): Use them.
4490 (do_fp_register_row): Likewise.
4491
4492 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4493
4494 * signals/signals.c (signals): Remove conditional compilation around
4495 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
4496 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
4497
4498 2002-05-09 Michael Snyder <msnyder@redhat.com>
4499
4500 * remote-rdp.c (remote_rdp_can_run): Remove.
4501
4502 2002-05-09 Tom Tromey <tromey@redhat.com>
4503
4504 * jv-valprint.c (java_val_print): Handle `char' as a special case
4505 of TYPE_CODE_INT.
4506
4507 2002-05-09 Michael Snyder <msnyder@redhat.com>
4508
4509 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4510 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
4511 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
4512 str r(0123),[sp,#nn].
4513 (arm_skip_prologue): Ditto. Also make disassembly
4514 order-independent by placing it in a loop.
4515
4516 2002-05-06 Michael Snyder <msnyder@redhat.com>
4517
4518 * stabsread.c (read_type): Add recognition for new attribute:
4519 "@V;" means that an array type is actually a vector.
4520 This is analogous to the vector flag that's been added to dwarf2.
4521
4522 2002-05-09 Mark Kettenis <kettenis@gnu.org>
4523
4524 * i386-tdep.h (i386_abi): New enum.
4525 (struct gdbarch_tdep): Replace os_ident member with abi.
4526 (i386_gdbarch_register_os_abi): New prototype.
4527 * i386-tdep.c (i386_abi_names): New array.
4528 (process_note_abi_tag_sections): Removed.
4529 (process_note_sections): New function.
4530 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4531 (struct i386_abi_handler): New struct.
4532 (i386_abi_handler_list): New variable.
4533 (i386_gdbarch_register_os_abi): New function.
4534 (i386_gdbarch_init): Adapt for the changes given above.
4535
4536 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
4537
4538 * gregset.h: Say "GNU/Linux".
4539
4540 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
4541
4542 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4543 (build_gdbtypes): Build builtin_type_v2_float.
4544 (_initialize_gdbtypes): Register new builtin type.
4545
4546 2002-05-08 Andrew Cagney <ac131313@redhat.com>
4547
4548 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4549 (clear_gdbarch_swap): New function.
4550 (initialize_non_multiarch): Call.
4551 (gdbarch_update_p): Before calling init(), swap out and clear the
4552 existing architecture.
4553 * gdbarch.c: Regenerate.
4554
4555 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4556
4557 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4558 alphanbsd-tdep.c.
4559
4560 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4561
4562 * sh-nbsd-nat.c: Rename to...
4563 * shnbsd-nat.c: ...this.
4564 * sh-nbsd-tdep.c: Rename to...
4565 * shnbsd-tdep.c: ...this.
4566 * sh-nbsd-tdep.h: Rename to...
4567 * shnbsd-tdep.h: ...this.
4568 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4569 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4570
4571 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
4572
4573 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4574 concatenation for command help messages.
4575
4576 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4577
4578 * NEWS: Note new sh*-*-netbsdelf* configuration.
4579 * configure.host: Set gdb_host_cpu to sh for all sh*.
4580 (sh*-*-netbsdelf*): New host.
4581 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4582 (sh*-*-netbsdelf*): New target.
4583 * sh-nbsd-nat.c: New file.
4584 * sh-nbsd-tdep.c: New file.
4585 * sh-nbsd-tdep.h: New file.
4586 * config/sh/nbsd.mh: New file.
4587 * config/sh/nbsd.mt: New file.
4588 * config/sh/nm-nbsd.h: New file.
4589 * config/sh/tm-nbsd.h: New file.
4590
4591 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4592
4593 * sh-tdep.c (sh_osabi_names): Declare.
4594 (process_note_abi_tag_sections): New function.
4595 (get_elfosabi): Ditto.
4596 (sh_gdbarch_register_os_abi): Ditto.
4597 (sh_dump_tdep): Ditto.
4598 _initialize_sh_tdep): Use gdbarch_register to register
4599 sh_gdbarch_init and sh_dump_tdep.
4600 * config/sh/tm-sh.h (sh_osabi): Declare.
4601 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4602
4603 2002-05-07 Andrew Cagney <ac131313@redhat.com>
4604
4605 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4606 (thumb_scan_prologue): Ditto.
4607 (arm_find_callers_reg): Ditto.
4608 (arm_frame_chain): Ditto.
4609 (arm_init_extra_frame_info): Ditto.
4610 (arm_frame_saved_pc): Ditto.
4611 (arm_pop_frame): Ditto.
4612 (arm_push_return_address): New function.
4613 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4614 call_dummy_location, call_dummy_breakpoint_offset_p,
4615 call_dummy_breakpoint_offset, call_dummy_p,
4616 call_dummy_stack_adjust_p, call_dummy_words,
4617 sizeof_call_dummy_words, call_dummy_start_offset,
4618 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4619 call_dummy_address, push_return_address and push_dummy_frame for
4620 generic dummy frames.
4621
4622 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4623
4624 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4625 size computation for alloca.
4626 (sh_fp_frame_init_saved_regs): Likewise.
4627
4628 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4629
4630 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4631 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4632 * arm-tdep.c (arm_store_return_value): Use them.
4633 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4634 * remote-rdp.c (remote_rdp_fetch_register): Use
4635 ARM_MAX_REGISTER_RAW_SIZE.
4636 (remote_rdp_store_register): Likewise.
4637
4638 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4639
4640 * dwarf2cfi.c: Code cleanup, removed unused variables,
4641 added default labels to switch {} statements.
4642 * x86-64-tdep.c: Ditto.
4643 * x86-64-linux-nat.c: Ditto.
4644
4645 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4646
4647 * solib.h: Protect against multiple inclusion.
4648
4649 2002-05-06 Jim Blandy <jimb@redhat.com>
4650
4651 Add first preprocessor macro-expansion files.
4652 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4653 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4654 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4655 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4656 (COMMON_OBS): Add macrotab.o, macroexp.o.
4657 (macroexp.o, macrotab.o): New rules.
4658
4659 Separate the job of reading the line number info statement program
4660 header (...expialidocious) out into its own function.
4661 * dwarf2read.c (struct line_head, struct filenames, struct
4662 directories): Replace with...
4663 (struct line_header): New structure, containing the full
4664 contents of the statement program header, including the
4665 include directory and file name tables.
4666 (read_file_scope): If we have line number info, instead of just
4667 calling dwarf_decode_lines to do all the work, call
4668 dwarf_decode_line_header first to get a `struct line_header'
4669 containing the data in the statement program header, and then
4670 pass that to dwarf_decode_lines, which will pick up where that
4671 left off. Be sure to clean up the `struct line_header' object.
4672 (dwarf_decode_line_header, free_line_header, add_include_dir,
4673 add_file_name): New functions.
4674 (dwarf_decode_lines): Move all the code to read the statement
4675 program header into dwarf_decode_line_header. Take the line
4676 header it built as the first argument, instead of the offset to
4677 the compilation unit's line number info. Use the new `struct
4678 line_header' type instead of the old structures. No need to do
4679 cleanups here now, since we don't allocate anything.
4680 (dwarf2_statement_list_fits_in_line_number_section,
4681 dwarf2_line_header_too_long): New complaints.
4682
4683 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4684
4685 * gdbtypes.c (init_vector_type): New function.
4686 (build_builtin_type_vec128): Simplify the representation of SIMD
4687 registers.
4688 (build_gdbtypes): Initialize new builtin vector types.
4689 (_initialize_gdbtypes): Register new vector types with gdbarch.
4690 (builtin_type_v4_float, builtin_type_v4_int32,
4691 builtin_type_v8_int16, builtin_type_v16_int8,
4692 builtin_type_v2_int32, builtin_type_v4_int16,
4693 builtin_type_v8_int8): New (renamed) SIMD types.
4694
4695 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4696
4697 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4698 (i387_fill_fxsave): Likewise.
4699
4700 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4701
4702 * alpha-tdep.c (alpha_extract_return_value): Don't use
4703 non-constant array size in prototype.
4704
4705 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4706
4707 From Brian Taylor <briant at model dot com>:
4708 * ui-out.c (ui_out_field_core_addr): Use the function
4709 longest_local_hex_string_custom'to format addresses > 32 bits
4710 wide.
4711
4712 * ui-out.c (ui_out_field_core_addr): Update comment.
4713
4714 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4715
4716 * stack.c (select_and_print_frame): Make static. Delete the
4717 parameter `level'.
4718 (func_command): Update call.
4719 (select_frame_command): Delete code computing the frame level.
4720 * frame.h (select_and_print_frame): Delete declaration.
4721
4722 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4723
4724 * sparc-tdep.c (sparc_get_saved_register): Comment why
4725 get_prev_frame call is safe.
4726
4727 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4728
4729 * frame.h (select_frame): Delete level parameter.
4730 * stack.c (select_frame): Update. Use frame_relative_level to
4731 obtain the frame's level.
4732 (select_and_print_frame): Update call.
4733 (select_frame_command): Ditto.
4734 (up_silently_base): Ditto.
4735 (down_silently_base): Ditto.
4736 * ocd.c (ocd_start_remote): Ditto.
4737 * remote-rdp.c (remote_rdp_open): Ditto.
4738 * remote-mips.c (mips_initialize): Ditto.
4739 (common_open): Ditto.
4740 * remote-e7000.c (e7000_start_remote): Ditto.
4741 * m3-nat.c (select_thread): Ditto.
4742 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4743 (child_get_current_exception_event): Ditto.
4744 * varobj.c (varobj_create): Ditto.
4745 (varobj_update): Ditto.
4746 (c_value_of_root): Ditto.
4747 * tracepoint.c (finish_tfind_command): Ditto.
4748 * corelow.c (core_open): Ditto.
4749 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4750 * thread.c (info_threads_command): Ditto.
4751 (switch_to_thread): Ditto.
4752 * infrun.c (normal_stop): Ditto.
4753 (restore_selected_frame): Ditto.
4754 (restore_inferior_status): Ditto.
4755 * breakpoint.c (insert_breakpoints): Ditto.
4756 (watchpoint_check): Ditto.
4757 (bpstat_stop_status): Ditto.
4758 (do_enable_breakpoint): Ditto.
4759 * blockframe.c (flush_cached_frames): Ditto.
4760 (reinit_frame_cache): Ditto.
4761
4762 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4763
4764 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4765 maintainer.
4766
4767 2002-05-04 Jim Blandy <jimb@redhat.com>
4768
4769 * gdbtypes.c (replace_type): Doc fix.
4770
4771 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4772
4773 * valprint.c (strcat_longest): Delete commented out function.
4774 Update copyright.
4775
4776 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4777
4778 * MAINTAINERS: Mark a29k as deleted.
4779 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4780 Move new configurations to the top.
4781 * configure.tgt: Remove a29k.
4782 * config/a29k/tm-vx29k.h: Delete.
4783 * config/a29k/vx29k.mt: Delete.
4784 * config/a29k/tm-a29k.h: Delete.
4785 * config/a29k/a29k-udi.mt: Delete.
4786 * config/a29k/a29k.mt: Delete.
4787 * a29k-tdep.c: Delete.
4788 * remote-udi.c: Delete.
4789 * remote-mm.c: Delete.
4790 * remote-eb.c: Delete.
4791 * remote-adapt.c: Delete.
4792 * Makefile.in: Remove obsolete code.
4793 * gdbserver/Makefile.in: Ditto.
4794 * config/s390/s390x.mt: Ditto.
4795 * config/s390/s390.mt: Ditto.
4796 * config/sparc/sparclynx.mh: Ditto.
4797 * config/sparc/linux.mh: Ditto.
4798 * config/pa/hppaosf.mh: Ditto.
4799 * config/pa/hppabsd.mh: Ditto.
4800 * config/ns32k/nbsd.mt: Ditto.
4801 * config/mips/vr5000.mt: Ditto.
4802 * config/m68k/sun3os4.mh: Ditto.
4803 * config/m68k/nbsd.mt: Ditto.
4804 * config/m68k/m68klynx.mh: Ditto.
4805 * config/m32r/m32r.mt: Ditto.
4806 * config/i386/x86-64linux.mt: Ditto.
4807 * config/i386/nbsdelf.mt: Ditto.
4808 * config/i386/nbsd.mt: Ditto.
4809 * config/i386/i386lynx.mh: Ditto.
4810
4811 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4812
4813 * target.c (debug_print_register): New function. Handle oversize
4814 registers.
4815 (debug_to_fetch_registers): Call.
4816 (debug_to_store_registers): Call.
4817
4818 2002-05-03 Jim Blandy <jimb@redhat.com>
4819
4820 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
4821 (read_type): Doc fix.
4822 * gdbtypes.c (replace_type): Doc fix.
4823
4824 * stabsread.c (multiply_defined_struct): New complaint.
4825 (read_struct_type): If the type we were passed isn't empty, or
4826 incomplete, don't read the new struct type into it; complain,
4827 and return the original type unchanged. Take a new `type_code'
4828 argument, which is the type code for the new type.
4829 (read_type): Rather than storing the type's type code here, pass
4830 it as an argument to read_struct_type, and let that take care of
4831 storing it. That way, we don't overwrite the original type code,
4832 so read_struct_type can use it to decide whether we're overwriting
4833 something we shouldn't.
4834 (complain_about_struct_wipeout): New function.
4835
4836 2002-05-03 Andrew Cagney <ac131313@redhat.com>
4837
4838 * gdbarch.sh: Assert that gdbarch is non-NULL.
4839 * gdbarch.c: Regenerate.
4840
4841 2002-05-03 Jason Merrill <jason@redhat.com>
4842
4843 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
4844 and return NULL.
4845
4846 2002-05-03 Michal Ludvig <mludvig@suse.cz>
4847
4848 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4849 (x86_64_dwarf2gdb_regno_map_length),
4850 (x86_64_dwarf2_reg_to_regnum): Added.
4851 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
4852 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
4853 (_initialize_x86_64_tdep): Synced with the change above.
4854 (x86_64_skip_prologue): Reformulated message.
4855
4856 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4857
4858 * f-exp.y: Also use new prev_lexptr variable
4859 to improve error reporting. Based on Michael Snyder
4860 2002-04-24 dated patch to c-exp.y.
4861 * jv-exp.y: Likewise.
4862 * m2-exp.y: Likewise.
4863
4864 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
4865
4866 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
4867 we are dealing with vectors.
4868
4869 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4870
4871 * config/m68k/tm-nbsd.h: Obvious fix,
4872 correct machine name.
4873
4874 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4875
4876 * p-typeprint.c (pascal_type_print_base): Add support
4877 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
4878
4879 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4880
4881 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
4882 for fondamental pascal 'char' type.
4883
4884 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4885
4886 * p-lang.h (is_pascal_string_type): Declaration changed,
4887 new sixth argument of type char ** added.
4888 * p-lang.c (is_pascal_string_type): Implementation
4889 changed. Args length_pos, length_size, string_pos, char_size
4890 can now be NULL. New argument arrayname set to the field
4891 name of the char array. Return value set to char array
4892 field index plus one.
4893 * p-valprint.c (pascal_val_print): Adapt to new declaration of
4894 is_pascal_string_type function.
4895
4896 2002-05-02 Andrew Cagney <cagney@redhat.com>
4897
4898 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4899 <cagney@redhat.com> change.
4900 * gdbarch.c: Regenerate.
4901
4902 2002-05-02 Andrew Cagney <cagney@redhat.com>
4903
4904 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4905 before probing for a new one. Detect errorenous gdbarch_init
4906 functions.
4907 * gdbarch.c: Regenerate.
4908
4909 2002-05-01 Andrew Cagney <cagney@redhat.com>
4910
4911 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4912 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4913 * config/v850/tm-v850.h: Ditto. Update copyright.
4914
4915 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4916
4917 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4918 current_gdbarch.
4919
4920 2002-04-30 Michael Snyder <msnyder@redhat.com>
4921
4922 * arm-tdep.c: Whitespace clean-ups.
4923 (arm_skip_prologue): Fix thinko; two lines
4924 should have been removed as part of 4/24 change.
4925
4926 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4927
4928 * rs6000-tdep.c: Added comment describing how fpscr register
4929 numbers were chosen.
4930
4931 2002-04-30 Michael Snyder <msnyder@redhat.com>
4932
4933 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4934
4935 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4936
4937 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4938 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4939 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4940
4941 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4942
4943 From Louis Hamilton <hamilton@redhat.com>:
4944 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4945 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4946 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4947 not bfd-private xcoff data, to determine wordsize.
4948 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4949
4950 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4951
4952 GDB 5.2 released from 5.2 branch.
4953
4954 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4955
4956 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4957 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4958 (x86_64_register_info_table): Added comments with register numbers.
4959
4960 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4961
4962 * rs6000-tdep.c (rs6000_extract_return_value,
4963 rs6000_store_return_value): Handle returning vectors.
4964 (rs6000_gdbarch_init): Use
4965 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4966 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4967 New function.
4968 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4969 vectors.
4970 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4971 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4972
4973 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4974
4975 * hpread.c (hpread_psymtab_to_symtab_1,
4976 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4977 with fprintf_unfiltered (gdb_stderr,...).
4978
4979 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4980
4981 * remote-array.c (printf_monitor, write_monitor,
4982 array_insert_breakpoint, array_remove_breakpoint ):
4983 Replace fprintf (stderr,...
4984 with fprintf_unfiltered (gdb_stderr,....
4985 * remote-es.c: Likewise.
4986 * remote-os9k.c: Likewise.
4987 * remote-st.c: Likewise.
4988
4989 2002-04-28 Andreas Schwab <schwab@suse.de>
4990
4991 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4992 linux-proc.o and gcore.o.
4993
4994 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4995
4996 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4997 code without frame pointers.
4998
4999 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5000
5001 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5002 ON_STACK is needed.
5003
5004 2002-04-26 Ben Elliston <bje@redhat.com>
5005
5006 * target.c (do_xfer_memory): Correct reference to the new option
5007 "trust-readonly-sections".
5008
5009 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5010
5011 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5012 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5013 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5014 vectors.
5015 (read_array_type): Record the fact that this array type is really a
5016 vector (i.e. are passed in by value).
5017
5018 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5019
5020 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5021 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5022 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5023 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5024 * alpha-linux-tdep.c: Include frame.h.
5025 (alpha_linux_sigcontext_addr): New function.
5026 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5027 alpha_linux_sigcontext_addr.
5028 * alpha-osf1-tdep.c: Include gdbcore.h.
5029 (alpha_osf1_sigcontext_addr): New function.
5030 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5031 alpha_osf1_sigcontext_addr.
5032 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5033 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5034
5035 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5036
5037 * stack.c (selected_frame_level):
5038 (select_frame): Do not set selected_frame_level.
5039 * frame.h (selected_frame_level): Delete declaration.
5040
5041 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5042
5043 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5044 convert_from_func_ptr-addr when AIX / PowerOpen.
5045
5046 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5047
5048 * valops.c (hand_function_call): Call
5049 generic_save_call_dummy_addr.
5050 * frame.h (generic_save_call_dummy_addr): Declare.
5051 * blockframe.c (struct dummy_frame): Add fields call_lo and
5052 call_hi.
5053 (generic_find_dummy_frame): Check for PC in range call_lo to
5054 call_hi instead of entry_point_address.
5055 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5056 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5057 (generic_save_call_dummy_addr): New function.
5058
5059 2002-04-24 David S. Miller <davem@redhat.com>
5060
5061 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5062 sparc_skip_prologue.
5063 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5064 information to find prologue when possible.
5065 (sparc_prologue_frameless_p): Call examine_prologue directly.
5066 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5067 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5068 second argument.
5069 (SKIP_PROLOGUE): Likewise.
5070
5071 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5072
5073 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5074 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5075 indicate that the condition it was testing is always true.
5076 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5077 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5078 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5079
5080 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5081
5082 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5083 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5084 tdep->jb_pc and tdep->jb_elt_size.
5085 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5086 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5087 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5088 * alpha-nat.c (get_longjmp_target): Remove.
5089 (JB_ELEMENT_SIZE): Ditto.
5090 (JB_PC): Ditto.
5091 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5092 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5093 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5094 to alpha_get_longjmp_target.
5095 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5096 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5097 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5098
5099 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5100
5101 * README: Update to GDB 5.2.
5102
5103 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5104
5105 * gdbarch.sh (LC_ALL): Set to `c'.
5106
5107 2002-04-25 Theodore A. Roth <troth@verinet.com>
5108
5109 * avr-tdep.c: Ran through gdb_indent.sh.
5110
5111 2002-04-25 Theodore A. Roth <troth@verinet.com>
5112
5113 * MAINTAINERS: Add myself as AVR maintainer.
5114 * NEWS: Note new target avr.
5115
5116 2002-04-25 Theodore A. Roth <troth@verinet.com>
5117
5118 * Makefile.in: Add support for AVR target.
5119 * configure.tgt: Add support for AVR target.
5120 * avr-tdep.c: New file
5121 * config/avr/avr.mt: New file.
5122
5123 2002-04-25 Theodore A. Roth <troth@verinet.com>
5124
5125 * MAINTAINERS: Add myself to write-after-approval.
5126
5127 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5128
5129 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5130 with fprintf_unfiltered (gdb_stderr,....
5131
5132 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5133
5134 Fix PR gdb/508.
5135 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5136
5137 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5138
5139 * p-exp.y: Also use new prev_lexptr variable
5140 to improve error reporting. Based on Michael Snyder
5141 2002-04-24 dated patch to c-exp.y.
5142
5143 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5144
5145 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5146 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5147 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5148 to 0.
5149 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5150 and struct value.
5151 (FUNCTION_START_OFFSET): Remove.
5152 (BREAKPOINT): Ditto.
5153
5154 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5155
5156 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5157 * NEWS: Ditto.
5158
5159 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5160
5161 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5162 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5163 alpha_linux_pc_in_sigtramp.
5164 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5165 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5166 alpha_osf1_pc_in_sigtramp.
5167 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5168 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5169 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5170 alphafbsd_pc_in_sigtramp.
5171 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5172 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5173 alphanbsd_pc_in_sigtramp.
5174 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5175 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5176
5177 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5178
5179 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5180
5181 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5182
5183 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5184 alphanbsd-tdep.c.
5185 (alphanbsd-nat.o): New dependency list.
5186 (alphanbsd-tdep.o): Ditto.
5187 * NEWS: Note new native NetBSD/alpha configuration.
5188 * alphanbsd-nat.c: New file.
5189 * alphanbsd-tdep.c: Ditto.
5190 * configure.host (alpha*-*-netbsd*): New host.
5191 * configure.tgt (alpha*-*-netbsd*): New target.
5192 * config/alpha/nbsd.mh: New file.
5193 * config/alpha/nbsd.mt: Ditto.
5194 * config/alpha/nm-nbsd.h: Ditto.
5195 * config/alpha/tm-nbsd.h: Ditto.
5196
5197 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5198
5199 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5200 (alpha-osf1-tdep.o): New dependency list.
5201 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5202 and skip_sigtramp_frame members.
5203 * alpha-linux-tdep.c: Include gdbcore.h.
5204 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5205 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5206 * alpha-osf1-tdep.c: New file.
5207 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5208 alpha-osf1-dep.c.
5209 (alpha_frame_past_sigtramp_frame): New function.
5210 (alpha_dynamic_sigtramp_offset): Ditto.
5211 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5212 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5213 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5214 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5215 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5216 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5217 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5218 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5219 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5220 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5221 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5222 to find_solib_trampoline_target.
5223 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5224 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5225 (SKIP_TRAMPOLINE_CODE): Remove.
5226 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5227 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5228 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5229 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5230 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5231 (PROC_SIGTRAMP_MAGIC): Ditto.
5232 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5233 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5234 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5235 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5236 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5237
5238 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5239
5240 * NEWS: Note that Alpha targets are now multi-arch.
5241
5242 2002-04-24 Michael Snyder <msnyder@redhat.com>
5243
5244 * parser-defs.h (prev_lexptr): New external variable.
5245 * parse.c (parse_exp_1): Set prev_lexptr to null before
5246 calling the language-specific parser.
5247 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5248 (yyerror): Use prev_lexptr in error reporting.
5249
5250 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5251
5252 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5253 * gregset.h: If FILL_FPXREGSET is defined, provide
5254 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5255 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5256 is defined, call fill_fpxregset.
5257
5258 2002-04-24 Roland McGrath <roland@frob.com>
5259
5260 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5261 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5262 (supply_gregset, supply_fpregset): New functions.
5263
5264 * gnu-nat.c (gnu_find_memory_regions): New function.
5265 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5266 (gnu_xfer_memory): Add a cast.
5267
5268 2002-04-24 Michael Snyder <msnyder@redhat.com>
5269
5270 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5271 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5272 of argument regs ("str r(0123), [r11, #-nn"]).
5273 (arm_skip_prologue): Better handling for frameless functions.
5274 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5275 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5276
5277 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5278
5279 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5280 NUM_PSEUDO_REGS can be used.
5281
5282 2002-04-24 Andrew Cagney <ac131313@redhat.com>
5283
5284 * arch-utils.h: Update copyright.
5285
5286 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5287 * gdbarch.h, gdbarch.c: Re-generate.
5288
5289 * inferior.h (IN_SIGTRAMP): Delete definition.
5290 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5291 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5292
5293 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5294 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5295 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5296 (find_proc_framesize): Ditto.
5297 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5298 (alpha_init_extra_frame_info): Ditto.
5299 * infrun.c (handle_inferior_event): Ditto.
5300 (handle_inferior_event): Ditto.
5301 (check_sigtramp2): Ditto.
5302 * blockframe.c (create_new_frame): Ditto.
5303 (get_prev_frame): Ditto.
5304 * ppc-linux-tdep.c: Update comments.
5305 * i386-linux-tdep.c: Update comments.
5306 * breakpoint.c (bpstat_what): Update comment.
5307
5308 2002-04-24 Michal Ludvig <mludvig@suse.cz>
5309
5310 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
5311 (regsets_store_inferior_registers): Removed cast to int from
5312 ptrace() calls.
5313 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5314
5315 2002-04-24 David S. Miller <davem@redhat.com>
5316
5317 * i960-tdep.c (register_in_window_p): New function.
5318 (i960_find_saved_register): Use it instead of
5319 REGISTER_IN_WINDOW_P.
5320 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5321
5322 * symtab.h (find_stab_function_addr): Kill extern.
5323 * minsyms.c (find_stab_function_addr): Remove from here...
5324 * dbxread.c: ... to here, and mark it static.
5325
5326 2002-04-20 David S. Miller <davem@redhat.com>
5327
5328 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5329 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5330
5331 2002-04-21 David S. Miller <davem@redhat.com>
5332
5333 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5334 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5335 (vx_write_register): Likewise.
5336
5337 2002-04-23 J. Brobecker <brobecker@gnat.com>
5338
5339 * source.c (is_regular_file): New function.
5340 (openp): Check wether file to open is a regular file
5341 to avoid opening directories.
5342
5343 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5344
5345 * findvar.c (extract_signed_integer): Cast printf argument
5346 to suppress format warning.
5347 (extract_unsigned_integer): Likewise.
5348 * infcmd.c (registers_info): Likewise.
5349 * top.c (get_prompt_1): Likewise.
5350 * valops.c (value_assign): Likewise.
5351 * valprint.c (print_decimal): Likewise.
5352
5353 2002-04-22 H.J. Lu (hjl@gnu.org)
5354
5355 * c-exp.y (typebase): Support
5356
5357 [long|long long|short] [signed|unsigned] [int|]
5358
5359 and
5360
5361 signed [long|long long|short] int
5362
5363 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5364
5365 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5366 and vax-tdep.h.
5367 * vax-tdep.h: New file.
5368 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5369 Make several routines static.
5370 (vax_get_saved_register): New function.
5371 (vax_gdbarch_init): New function.
5372 (_initialize_vax_tdep): Register vax_gdbarch_init.
5373 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5374 Remove macros now under the control of gdbarch.
5375
5376 2002-04-22 Michael Snyder <msnyder@redhat.com>
5377
5378 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5379 Some whitespace and coding standards tweaks.
5380
5381 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5382
5383 * vax-tdep.c: Include regcache.h.
5384 (vax_call_dummy_words): New.
5385 (sizeof_vax_call_dummy_words): New.
5386 (vax_fix_call_dummy): New function.
5387 (vax_saved_pc_after_call): Ditto.
5388 * config/vax/tm-vax.h: Don't include regcache.h.
5389 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5390 (CALL_DUMMY): Remove.
5391 (CALL_DUMMY_WORDS): Define.
5392 (SIZEOF_CALL_DUMMY_WORDS): Define.
5393 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5394
5395 2002-04-18 Michael Snyder <msnyder@redhat.com>
5396
5397 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5398
5399 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5400
5401 * vax-tdep.c (vax_frame_chain): New function.
5402 (vax_push_dummy_frame): Ditto.
5403 (vax_pop_frame): Ditto.
5404 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5405 (FRAMELESS_FUNCTION_INVOCATION): Use
5406 generic_frameless_function_invocation_not.
5407 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5408 (POP_FRAME): Use vax_pop_frame.
5409
5410 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5411
5412 * vax-tdep.c (vax_store_struct_return): New function.
5413 (vax_extract_return_value): Ditto.
5414 (vax_store_return_value): Ditto.
5415 (vax_extract_struct_value_address): Ditto.
5416 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5417 vax_store_struct_return.
5418 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5419 (STORE_RETURN_VALUE): Use vax_store_return_value.
5420 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5421
5422 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5423
5424 * vax-tdep.c (vax_frame_saved_pc): New function.
5425 (vax_frame_args_address_correct): Ditto.
5426 (vax_frame_args_address): Ditto.
5427 (vax_frame_locals_address): Ditto.
5428 (vax_frame_num_args): Move code to be in proximity to
5429 other frame-related functions.
5430 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5431 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5432 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5433 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5434 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5435
5436 2002-04-22 H.J. Lu (hjl@gnu.org)
5437
5438 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5439 includedir.
5440
5441 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5442
5443 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5444 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5445 (FRAME_INIT_SAVED_REGS): New macro.
5446
5447 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5448
5449 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5450
5451 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5452
5453 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5454 where needed.
5455 (fetch_osf_core_registers): Likewise.
5456 (supply_gregset): Likewise.
5457
5458 2002-04-22 J. Brobecker <brobecker@gnat.com>
5459
5460 * symfile.h (get_section_index): Define.
5461 * symfile.c (get_section_index): New function.
5462 * mdebugread.c (SC_IS_SBSS): New macro.
5463 (SC_IS_BSS): Return true for the scBss storage class only, as
5464 the scSBss storage class refers to the .sbss section.
5465 (parse_partial_symbols): Discard the symbols which associated
5466 section does not exist.
5467 Make sure to use the .sbss section index for symbols which
5468 storage class is scBss, rather than using the .bss section index.
5469
5470 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5471
5472 * vax-tdep.c: Update copyright years.
5473 (vax_register_name): New function.
5474 (vax_register_byte): Ditto.
5475 (vax_register_raw_size): Ditto.
5476 (vax_register_virtual_size): Ditto.
5477 (vax_register_virtual_type): Ditto.
5478 * config/vax/tm-vax.h: Update copyright years.
5479 (REGISTER_NAMES): Remove.
5480 (REGISTER_NAME): Define.
5481 (REGISTER_BYTE): Use vax_register_byte.
5482 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5483 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5484 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5485
5486 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5487
5488 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5489 declaration
5490 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5491
5492 2002-04-21 David S. Miller <davem@redhat.com>
5493
5494 * arch-utils.c (generic_prologue_frameless_p): Kill
5495 SKIP_PROLOGUE_FRAMELESS_P code.
5496 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5497 references.
5498 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5499 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5500 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5501 references.
5502 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5503 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5504 (sparc_gdbarch_init): Pass it to
5505 set_gdbarch_prologue_frameless_p.
5506
5507 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5508
5509 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5510 (alphabsd-nat.o): New dependency list.
5511
5512 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5513
5514 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5515 alphafbsd-tdep.c.
5516 (alpha-linux-tdep.o): New dependency list.
5517 (alphafbsd-tdep.o): Likewise.
5518
5519 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5520
5521 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5522 to here...
5523 * alpha-tdep.c: ...from here.
5524 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5525
5526 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5527
5528 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5529 prototype from here...
5530 * alpha-tdep.h: ...to here.
5531
5532 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5533
5534 * frame.h (selected_frame_level): Document as deprecated.
5535 (frame_relative_level): Declare.
5536 * stack.c (frame_relative_level): New function.
5537 (selected_frame_level): Document as deprecated.
5538 (select_frame): Do not set the selected_frame_level.
5539
5540 * stack.c (frame_info, record_selected_frame): Update.
5541 (frame_command, current_frame_command): Update.
5542 (up_silently_base, up_command, down_silently_base): Update.
5543 (down_command): Update.
5544 * inflow.c (kill_command): Update.
5545 * tracepoint.c (finish_tfind_command): Update.
5546 * corelow.c (core_open): Update.
5547 * thread.c (info_threads_command): Update.
5548 (do_captured_thread_select): Update.
5549 * infcmd.c (finish_command): Update.
5550 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5551
5552 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5553
5554 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5555
5556 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5557
5558 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5559 type const.
5560
5561 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5562
5563 * alphafbsd-tdep.c: Update copyright years. Include
5564 alpha-tdep.h.
5565 (alphafbsd_use_struct_convention): Make static.
5566 (alphafbsd_init_abi): New function.
5567 (_initialize_alphafbsd_tdep): New function.
5568 * config/alpha/tm-fbsd.h: Update copyright years.
5569 (USE_STRUCT_CONVENTION): Remove.
5570
5571 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5572
5573 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5574 an Alpha ABI variant.
5575 (alpha_abi_handler_list): Declare.
5576 (alpha_gdbarch_register_os_abi): New function.
5577 (alpha_gdbarch_init): Give registered ABI variant handlers a
5578 chance to tweak the gdbarch once we have set up defaults.
5579 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5580
5581 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5582
5583 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5584 to standard_coerce_float_to_double.
5585 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5586
5587 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5588
5589 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5590 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5591 from gdbarch_tdep rather than a constant.
5592 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5593 the default text address for all Alpha Unix ABIs.
5594 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5595 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5596
5597 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5598
5599 * alpha-tdep.h: New file. Includes several Alpha target constants
5600 taken from...
5601 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5602 let gdbarch deal with.
5603 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5604 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5605 to dependency list.
5606 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5607 Alpha target register names.
5608 * alphabsd-nat.c: Likewise.
5609 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5610 Alpha target register names. Make serveral routines static.
5611 (alpha_get_saved_register): New function.
5612 (alpha_abi_names): New.
5613 (process_note_abi_tag_sections): New function.
5614 (get_elfosabi): New function.
5615 (alpha_gdbarch_init): New function.
5616 (alpha_dump_tdep): New function.
5617 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5618
5619 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5620
5621 * frame.c (find_saved_register): Delete #ifdef
5622 HAVE_REGISTER_WINDOWS code.
5623 * config/sparc/tm-sparc.h: Update comments.
5624 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5625
5626 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5627
5628 * i960-tdep.c (i960_find_saved_register): New function.
5629 (i960_get_saved_register): New function.
5630 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5631 (i960_get_saved_register): Declare.
5632 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5633
5634 2002-04-20 David S. Miller <davem@redhat.com>
5635
5636 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5637
5638 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5639
5640 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5641 instead of NUM_PSEUDO_REGS.
5642
5643 2002-04-20 David S. Miller <davem@redhat.com>
5644
5645 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5646 GDB_MULTI_ARCH_PARTIAL
5647 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5648 define, let tm-sp64.h do it.
5649
5650 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5651
5652 * frame.c (find_saved_register): Avoid a NULL pointer
5653 dereference and actually walk the frame list.
5654
5655 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5656
5657 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5658 sorted in most most-recent-used order. Document.
5659 * gdbarch.h, gdbarch.c: Regenerate.
5660
5661 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5662
5663 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5664 (add_inferior): Call create_register_cache.
5665 (clear_inferiors): Call free_register_cache.
5666 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5667 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5668 (registers): Remove.
5669 (get_regcache): New function.
5670 (create_register_cache, free_register_cache): New functions.
5671 (set_register_cache): Don't initialize the register cache here.
5672 (registers_to_string, registers_from_string, register_data): Call
5673 get_regcache.
5674 * gdbserver/regcache.h: Add prototypes.
5675 * gdbserver/server.h: Likewise.
5676
5677 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5678
5679 * gdbserver/mem-break.c: New file.
5680 * gdbserver/mem-break.h: New file.
5681 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5682 dependencies.
5683 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5684 member.
5685 (clear_inferiors): Free target_data member if set.
5686 (inferior_target_data, set_inferior_target_data): New functions.
5687 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5688 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5689 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5690 (struct inferior_linux_data): New.
5691 (linux_create_inferior): Use set_inferior_target_data.
5692 (linux_attach): Likewise. Call add_inferior.
5693 (linux_wait_for_one_inferior): New function.
5694 (linux_wait): Call it.
5695 (linux_write_memory): Add const.
5696 (initialize_low): Call set_breakpoint_data.
5697 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5698 handling members.
5699 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5700 call.
5701 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5702 prototypes.
5703 * gdbserver/target.c (read_inferior_memory)
5704 (write_inferior_memory): New functions.
5705 * gdbserver/target.h (read_inferior_memory)
5706 (write_inferior_memory): Change macros to prototypes.
5707 (struct target_ops): Update comments. Add const to write_memory
5708 definition.
5709
5710 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5711
5712 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5713 instead of ->prev.
5714 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5715 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5716 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5717 instead of ->prev.
5718
5719 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5720
5721 Fix PR gdb/471.
5722 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5723 (build_builtin_type_vec128): Ditto.
5724 (append_composite_type_field): Fix calculation of type length in
5725 union case.
5726
5727 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5728
5729 * config/djgpp/README: Update.
5730
5731 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5732 compiler warnings.
5733
5734 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5735
5736 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5737 (alpha_setup_arbitrary_frame): ...to this.
5738 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5739 for alpha_setup_arbitrary_frame.
5740
5741 2002-04-18 Andrew Cagney <cagney@redhat.com>
5742
5743 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5744 * gdbarch.h, gdbarch.c: Regenerate.
5745
5746 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5747 * target.h (memory_breakpoint_from_pc): Update declaration.
5748 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5749
5750 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5751 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5752 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5753 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5754 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5755 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5756 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5757 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5758 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5759 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5760 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5761 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5762
5763 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5764 const pointer.
5765 * monitor.c (monitor_insert_breakpoint): Ditto.
5766 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5767
5768 * config/mcore/tm-mcore.h: Update copyright.
5769 * mem-break.c: Ditto.
5770 * xstormy16-tdep.c: Ditto.
5771
5772 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5773
5774 * p-exp.y: Add precedence rule for '^' token.
5775 This removes the shift/reduce conflicts.
5776 Remove the comment concerning these shift/reduce conflicts.
5777
5778 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
5779
5780 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5781 (registers_powerpc_nofp): New register set for processors
5782 without floating point unit.
5783
5784 2002-04-18 David S. Miller <davem@redhat.com>
5785
5786 * MAINTAINERS: Add myself to write-after-approval.
5787
5788 2002-04-17 Michael Snyder <msnyder@redhat.com>
5789
5790 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
5791
5792 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5793
5794 * rs6000-tdep.c (frame_initial_stack_address): Use
5795 frame_register_read to read the alloca_reg.
5796
5797 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5798
5799 * frame.c (find_saved_register): Find saved registers in the next
5800 not prev frame.
5801 Fix PR gdb/365.
5802
5803 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5804
5805 * gdbarch.sh (LANG): Set to ``c''.
5806
5807 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5808
5809 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
5810
5811 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5812
5813 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
5814 Update copyright.
5815
5816 * hpread.c (hpread_get_lntt): Add declaration.
5817 Also fix PR gdb/391.
5818
5819 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5820
5821 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
5822 * aclocal.m4, configure: Re-generate.
5823 Fix PR gdb/391.
5824
5825 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5826
5827 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
5828 instead of tm_print_insn.
5829
5830 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5831
5832 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
5833
5834 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5835
5836 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
5837 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
5838 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
5839
5840 2002-04-12 Don Howard <dhoward@redhat.com>
5841
5842 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
5843 max_user_call_depth.
5844 (init_cmd_lists): Initialize the new value;
5845 * cli/cli-script.c (execute_user_command): Limit the call depth of
5846 user defined commands. This avoids a core-dump when user commands
5847 are infinitly recursive.
5848
5849 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5850
5851 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
5852 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
5853 from tdep struct instead of DEFAULT_LR_SAVE.
5854 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
5855 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
5856 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
5857
5858 2002-04-12 Michael Snyder <msnyder@redhat.com>
5859
5860 * Remote.c: Spelling fix.
5861 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
5862 If no symbol found for "sbrk", try "_sbrk".
5863 (make_output_phdrs): Use bfd_section_name.
5864 (gcore_copy_callback): Use bfd_section_name.
5865 * eval.c: Indentation fix-ups.
5866 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
5867 in case it gets applied to an address that is already
5868 in the instruction space.
5869 * cli/cli-decode.c (help_list): Allow long lines to wrap.
5870 * symfile.c: Fix indentation, long lines.
5871 * source.c: White space fix-up.
5872
5873 2002-04-12 Andrew Cagney <cagney@redhat.com>
5874
5875 * defs.h (read_relative_register_raw_bytes): Delete declaration.
5876 * frame.c (frame_register_read): New function. Return non-zero on
5877 success.
5878 (read_relative_register_raw_bytes_for_frame): Delete.
5879 (read_relative_register_raw_bytes): Delete.
5880 * frame.h (frame_register_read): Declare.
5881 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5882 * sh-tdep.c: Ditto.
5883 * infcmd.c (do_registers_info): Ditto.
5884 * hppa-tdep.c: Ditto.
5885 * rs6000-tdep.c: Ditto.
5886 * h8500-tdep.c: Ditto.
5887 * mips-tdep.c: Ditto.
5888 * h8300-tdep.c: Ditto.
5889 * z8k-tdep.c: Ditto.
5890
5891 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5892
5893 From Jimi X <jimix@watson.ibm.com>:
5894 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5895 64-bit SysV ABI.
5896
5897 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5898
5899 From Jimi X <jimix@watson.ibm.com>:
5900 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5901 bfd info.
5902
5903 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5904
5905 From Jimi X <jimix@watson.ibm.com>:
5906 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5907 register sets for these processor variants.
5908
5909 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5910
5911 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5912 registers which are allowed to fail to store.
5913 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5914 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5915 (ppc_cannot_store_register): FPSCR may not be storable.
5916 * regformats/reg-ppc.dat: Support FPSCR.
5917
5918 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5919
5920 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5921 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5922 Add fpscr as an invalid/unfetchable register.
5923 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5924 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5925 (fill_fpregset): Add support for register fpscr.
5926 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5927 (fill_gregset): Account for the fact that register ``mq'' might
5928 not exist.
5929 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5930 (registers_power): Add fpscr to register set at slot 71.
5931 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5932 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5933
5934 2002-04-11 Michael Snyder <msnyder@redhat.com>
5935
5936 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5937 * configure: Regenerate.
5938 * config.in: Regenerate.
5939 * acconfig.h: Add define for _SYSCALL32.
5940 * core-sol2.c: Remove #define _SYSCALL32.
5941 * solib-legacy.c: Remove #define _SYSCALL32.
5942
5943 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5944
5945 * stack.c (select_frame): Cleanup internal error message, do not
5946 use %p.
5947
5948 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5949
5950 * stack.c (select_frame): Check that selected_frame and the
5951 specified level are as expected.
5952 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5953 Update copyright.
5954 * frame.h (struct frame_info): Add field `level'. Update
5955 copyright.
5956 Work-in-progress PR gdb/464.
5957
5958 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5959
5960 * maint.c (maint_print_section_info): Rename print_section_info.
5961 (print_bfd_section_info, print_objfile_section_info): Update.
5962 * inferior.h (struct gdbarch): Add opaque declaration.
5963 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5964 * gdbarch.h: Regenerate.
5965
5966 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5967
5968 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5969 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5970 (kernel_u_size): Added.
5971 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5972 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5973
5974 2002-04-04 Jim Ingham <jingham@apple.com>
5975
5976 * valarith.c (find_size_for_pointer_math): New function, either returns
5977 the size for a pointer's target, returns 1 for void *, or errors for
5978 incomplete types.
5979 (value_add, value_sub): use find_size_for_pointer_math.
5980
5981 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5982
5983 * linux-low.c (linux_look_up_symbols): New hook.
5984 (linux_target_ops): Add linux_look_up_symbols.
5985 * remote-utils.c (decode_address): New function.
5986 (look_up_one_symbol): New function.
5987 * server.c (handle_query): Call target look_up_symbols hook.
5988 * server.h (look_up_one_symbol): Add prototype.
5989 * target.h (struct target_ops): Add look_up_symbols hook.
5990
5991 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5992
5993 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5994 * ChangeLog: Correct paths in last ChangeLog entry.
5995
5996 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5997
5998 * gdbserver/linux-low.h: Remove obsolete prototypes.
5999 (struct linux_target_ops): New.
6000 (extern the_low_target): New.
6001 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6002 (register_addr): Use the_low_target explicitly.
6003 (fetch_register): Likewise.
6004 (usr_fetch_inferior_registers): Likewise.
6005 (usr_store_inferior_registers): Likewise.
6006 * gdbserver/linux-arm-low.c (num_regs): Remove.
6007 (arm_num_regs): Define.
6008 (arm_regmap): Renamed from regmap, made static.
6009 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6010 made static.
6011 (arm_cannot_store_register): Renamed from cannot_store_register,
6012 made static.
6013 (the_low_target): New.
6014 * gdbserver/linux-i386-low.c (num_regs): Remove.
6015 (i386_num_regs): Define.
6016 (i386_regmap): Renamed from regmap, made static.
6017 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6018 made static.
6019 (i386_cannot_store_register): Renamed from cannot_store_register,
6020 made static.
6021 (the_low_target): New.
6022 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6023 (ia64_num_regs): Define.
6024 (ia64_regmap): Renamed from regmap, made static.
6025 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6026 made static.
6027 (ia64_cannot_store_register): Renamed from cannot_store_register,
6028 made static.
6029 (the_low_target): New.
6030 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6031 (m68k_num_regs): Define.
6032 (m68k_regmap): Renamed from regmap, made static.
6033 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6034 made static.
6035 (m68k_cannot_store_register): Renamed from cannot_store_register,
6036 made static.
6037 (the_low_target): New.
6038 * gdbserver/linux-mips-low.c (num_regs): Remove.
6039 (mips_num_regs): Define.
6040 (mips_regmap): Renamed from regmap, made static.
6041 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6042 made static.
6043 (mips_cannot_store_register): Renamed from cannot_store_register,
6044 made static.
6045 (the_low_target): New.
6046 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6047 (ppc_num_regs): Define.
6048 (ppc_regmap): Renamed from regmap, made static.
6049 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6050 made static.
6051 (ppc_cannot_store_register): Renamed from cannot_store_register,
6052 made static.
6053 (the_low_target): New.
6054 * gdbserver/linux-s390-low.c (num_regs): Remove.
6055 (s390_num_regs): Define.
6056 (s390_regmap): Renamed from regmap, made static.
6057 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6058 made static.
6059 (s390_cannot_store_register): Renamed from cannot_store_register,
6060 made static.
6061 (the_low_target): New.
6062 * gdbserver/linux-sh-low.c (num_regs): Remove.
6063 (sh_num_regs): Define.
6064 (sh_regmap): Renamed from regmap, made static.
6065 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6066 made static.
6067 (sh_cannot_store_register): Renamed from cannot_store_register,
6068 made static.
6069 (the_low_target): New.
6070 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6071 (the_low_target): New.
6072
6073 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6074
6075 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6076 override FP_REGNUM with frame->fp. Update copyright.
6077 * parse.c (num_std_regs, std_regs): Delete.
6078 (target_map_name_to_register): Do not search std_regs. Update
6079 function description.
6080 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6081 declarations. Update copyright.
6082 Fix PR gdb/251.
6083
6084 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6085
6086 * gdbserver/Makefile.in: Add stamp-h target.
6087 * gdbserver/configure.in: Create stamp-h.
6088 * gdbserver/configure: Regenerated.
6089
6090 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6091
6092 * gdbserver/inferiors.c: New file.
6093 * gdbserver/target.c: New file.
6094 * gdbserver/target.h: New file.
6095 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6096 dependencies.
6097 * gdbserver/linux-low.c (inferior_pid): New static variable,
6098 moved from server.c.
6099 (linux_create_inferior): Renamed from create_inferior.
6100 Call add_inferior. Return 0 on success instead of a PID.
6101 (linux_attach): Renamed from myattach.
6102 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6103 (linux_thread_alive): Renamed from mythread_alive.
6104 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6105 child dies.
6106 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6107 (regsets_store_inferior_registers): Correct error message.
6108 Add missing ``return 0''.
6109 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6110 (linux_store_registers): Renamed from store_inferior_registers.
6111 (linux_read_memory): Renamed from read_inferior_memory.
6112 (linux_write_memory): Renamed from write_inferior_memory.
6113 (linux_target_ops): New structure.
6114 (initialize_low): Call set_target_ops ().
6115 * gdbserver/remote-utils.c (unhexify): New function.
6116 (hexify): New function.
6117 (input_interrupt): Send signals to ``signal_pid''.
6118 * gdbserver/server.c (inferior_pid): Remove.
6119 (start_inferior): Update create_inferior call.
6120 (attach_inferior): Call add_inferior.
6121 (handle_query): New function.
6122 (main): Call handle_query for `q' packets.
6123 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6124 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6125
6126 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6127
6128 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6129 dependencies.
6130 * gdbserver/configure.in: Check for <string.h>
6131 * gdbserver/configure: Regenerate.
6132 * gdbserver/config.in: Regenerate.
6133 * gdbserver/gdbreplay.c: Include needed system headers.
6134 (remote_open): Remove strchr prototype.
6135 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6136 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6137 (supply_register_by_name): Likewise.
6138 (collect_register): Change buf argument to void *.
6139 (collect_register_by_name): Likewise.
6140 * gdbserver/regcache.h: Add missing prototypes.
6141 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6142 * gdbserver/server.c (handle_query): New function.
6143 (attached): New static variable, moved out of main.
6144 (main): Quiet longjmp clobber warnings.
6145 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6146 * gdbserver/utils.c (error): Remove NORETURN.
6147 (fatal): Likewise.
6148
6149 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6150
6151 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6152 after the last symbol in a block.
6153
6154 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6155
6156 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6157 is non zero as a found symbol.
6158
6159 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6160
6161 * findvar.c: Include "builtin-regs.h".
6162 (value_of_register): Call value_of_builtin_reg when applicable.
6163 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6164 (target_map_name_to_register): Call
6165 builtin_reg_map_name_to_regnum.
6166 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6167 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6168 (builtin_regs_h): Define.
6169 (builtin-regs.o): New target.
6170 (findvar.o): Add $(builtin_regs_h).
6171 * builtin-regs.c, builtin-regs.h: New files.
6172 * std-regs.c: New file.
6173 Partial fix for PR gdb/251.
6174
6175 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6176
6177 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6178 it's no longer required.
6179
6180 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6181
6182 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6183
6184 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6185
6186 From Jimi X <jimix@watson.ibm.com>:
6187 * rs6000-tdep.c (rs6000_software_single_step): Use
6188 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6189 and size. Use target_insert_breakpoint() and
6190 target_remove_breakpoint() to insert and remove breakpoints
6191 instead of explicit memory reads and writes.
6192
6193 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6194
6195 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6196 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6197 ELF_OBJECT_FORMAT ifdef.
6198
6199 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6200
6201 From Jimi X <jimix@watson.ibm.com>:
6202 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6203
6204 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6205
6206 From Jimi X <jimix@watson.ibm.com>:
6207 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6208 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6209
6210 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6211
6212 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6213 s/asprintf/xasprintf/.
6214 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6215
6216 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6217
6218 I believe Jeff Law denies responsability for this one:
6219 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6220 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6221 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6222 Work-around for PR gdb/366.
6223
6224 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6225
6226 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6227 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6228 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6229
6230 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6231
6232 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6233 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6234 information.
6235
6236 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6237
6238 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6239 maintainer.
6240
6241 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6242
6243 * README (Reporting Bugs in GDB): Document the bug web page as the
6244 prefered way of submitting bugs.
6245 Fix PR gdb/402.
6246
6247 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6248
6249 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6250 -1. Update comment.
6251 * gdbarch.h, gdbarch.c: Re-generate.
6252
6253 2002-04-07 Andreas Schwab <schwab@suse.de>
6254
6255 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6256 buffer to regcache_collect.
6257
6258 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6259
6260 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6261 * gdbarch.c, gdbarch.h: Re-generate.
6262
6263 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6264
6265 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6266 declaration. Fix -Werror.
6267
6268 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6269
6270 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6271 * gdbarch.c: Regenerate.
6272
6273 2002-04-05 Michael Snyder <msnyder@redhat.com>
6274
6275 * breakpoint.c (clear_command): Rewrite middle section to
6276 combine two loops with identical control conditions.
6277 Add a cleanup to eliminate a memory leak.
6278 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6279
6280 2002-04-05 H.J. Lu (hjl@gnu.org)
6281
6282 * solib-svr4.c (bkpt_names): Add "__start".
6283
6284 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6285
6286 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6287 as test for 64 bit target.
6288
6289 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6290
6291 * h8500-tdep.c (h8500_write_fp): Delete function.
6292 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6293 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6294 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6296 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6297 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6298 (s390_write_fp):
6299 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6300 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6301 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6302 (d10v_write_fp): Delete function.
6303 * inferior.h (write_fp, generic_target_write_fp): Delete
6304 declarations.
6305 * regcache.c (generic_target_write_fp): Delete function.
6306 (write_fp): Delete function.
6307 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6308 * gdbarch.h, gdbarch.c: Regenerate.
6309 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6310 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6311 (sparc64_write_fp): Delete declaration.
6312 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6313 (h8500_write_fp): Delete declaration.
6314
6315 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6316
6317 * sparc-tdep.c (sparc64_write_fp): Delete.
6318 (sparc_push_dummy_frame): Replace write_fp call with code to store
6319 the FP directly.
6320 (sparc_gdbarch_init): Do not initialize write_fp.
6321
6322 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6323
6324 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6325 clause.
6326
6327 2002-03-29 Jim Blandy <jimb@redhat.com>
6328
6329 * stack.c (get_selected_block): Add new argument `addr_in_block',
6330 used to return the exact code address we used to select the block,
6331 not just the block.
6332 * blockframe.c (get_frame_block, get_current_block): Same.
6333 * frame.h (get_frame_block, get_current_block,
6334 get_selected_block): Update declarations.
6335 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6336 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6337
6338 2002-04-05 Michael Snyder <msnyder@redhat.com>
6339
6340 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6341 warning message.
6342
6343 2002-04-05 J. Brobecker <brobecker@gnat.com>
6344
6345 * utils.c (xfullpath): New function.
6346 * defs.h (xfullpath): Add declaration.
6347 * source.c (openp): Use xfullpath in place of gdb_realpath to
6348 avoid resolving the basename part of filenames when the
6349 associated file is a symbolic link. This fixes a potential
6350 inconsistency between the filenames known to GDB and the
6351 filenames it prints in the annotations.
6352 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6353 to be able to match a filename with either the real filename, or
6354 the name of any symbolic link to this file.
6355 (lookup_partial_symtab): Ditto.
6356
6357 2002-04-04 Michael Snyder <msnyder@redhat.com>
6358
6359 * breakpoint.c: Add support for hardware breakpoints in overlays.
6360 (overlay_events_enabled): New state variable.
6361 (insert_breakpoints): Use overlay_events_enabled to decide
6362 whether to attempt to set a breakpoint at the overlay load addr.
6363 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6364 (remove_breakpoint): Use overlay_events_enabled to decide
6365 whether breakpoints need to be removed from overlay load addr.
6366 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6367 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6368 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6369 disable_overlay_breakpoints): Update overlay_events_enabled.
6370
6371 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
6372
6373 * dwarf2read.c (struct function_range): New.
6374 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6375 (check_cu_functions): New.
6376 (read_file_scope): Initialize global function lists.
6377 Call dwarf_decode_line after processing children.
6378 (read_func_scope): Add to global function list.
6379 (dwarf_decode_lines): Call check_cu_functions everywhere
6380 record_line is called. Call record_line with a linenumber
6381 of 0 to mark sequence ends.
6382
6383 2002-04-04 Michal Ludvig <mludvig@suse.cz>
6384
6385 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
6386 change sync with glibc.
6387
6388 2002-04-03 Jim Blandy <jimb@redhat.com>
6389
6390 * configure.in: Call AC_C_INLINE.
6391 * configure: Regenerated.
6392
6393 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6396 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6397
6398 2002-03-31 Mark Kettenis <kettenis@gnu.org>
6399
6400 * NEWS: Mention gcore support on FreeBSD/i386.
6401
6402 * fbsd-proc.c: New file.
6403 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6404 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6405
6406 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6407 while statement.
6408
6409 2002-03-29 Jim Blandy <jimb@redhat.com>
6410
6411 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6412 unescaped newlines in string literals, but newer ones don't. So
6413 escape them.
6414
6415 2002-03-26 Michael Snyder <msnyder@redhat.com>
6416 Andrew Cagney <cagney@redhat.com>
6417
6418 * cli/cli-dump.c: New file. Dump memory to file,
6419 restore file to memory.
6420 * cli/cli-dump.h: New file.
6421 * Makefile.in: Add rules, dependencies for cli-dump.o.
6422 * NEWS: Mention new commands.
6423
6424 2002-03-28 Michael Snyder <msnyder@redhat.com>
6425
6426 * symfile.c (symbol_file_add): Move test for null symbols to later.
6427
6428 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6429
6430 From veksler at il.ibm.com:
6431 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6432 the xstrduped original path.
6433 Fix PR gdb/417.
6434
6435 2002-03-27 Michael Snyder <msnyder@redhat.com>
6436
6437 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6438 * infcmd.c (_initialize_infcmd): Ditto.
6439 * language.c (_initialize_language): Ditto.
6440 * symfile.c (_initialize_symfile): Ditto.
6441 * top.c (_init_main): Ditto.
6442 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6443
6444 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
6445
6446 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6447 vector registers handling.
6448 (skip_prologue): Handle new AltiVec instructions. Fill in new
6449 fields of frame data.
6450 (frame_get_saved_regs): Fill in information for AltiVec registers.
6451
6452 2002-03-27 Jim Blandy <jimb@redhat.com>
6453
6454 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6455 a function; leave this macro here to invoke that function.
6456 (symbol_init_mangled_name): Declaration for that function.
6457 * symtab.c (symbol_init_mangled_name): New function.
6458
6459 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6460
6461 * valarith.c: Replace strerror with safe_strerror.
6462 * tracepoint.c: Ditto.
6463 * lin-lwp.c: Ditto.
6464 * go32-nat.c: Ditto.
6465 * inflow.c: Ditto.
6466 * gnu-nat.c: Ditto.
6467
6468 2002-03-27 Andreas Schwab <schwab@suse.de>
6469
6470 * event-top.c (command_line_handler): Remove useless if.
6471
6472 2002-03-27 Andreas Jaeger <aj@suse.de>
6473
6474 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6475 comment.
6476
6477 2002-03-27 Michal Ludvig <mludvig@suse.cz>
6478
6479 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6480 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6481 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6482 (x86_64_linux_dr_get_status, supply_gregset),
6483 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6484 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6485 (x86_64_register_info_table): Add.
6486 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6487 (x86_64_register_raw_size, x86_64_register_virtual_type),
6488 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6489 general x86_64_register_info_table.
6490 (i386_gdbarch_init): gdbarch_register_bytes is now set
6491 dynamicaly during initialization.
6492 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6493 * gdbserver/linux-x86-64-low.c: Ditto.
6494
6495 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6496
6497 * gdbserver/server.c (main): Call target_signal_to_host_p
6498 and target_signal_to_host on signals received from the remote.
6499 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6500 target_signal_from_host on signals sent to the remote.
6501 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6502 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6503
6504 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6505
6506 * signals/signals.c: Include "server.h" in gdbserver build.
6507 (target_signal_from_name): Don't use STREQ.
6508 (_initialize_signals): Likewise. Don't include function in
6509 gdbserver build.
6510
6511 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6512
6513 * signals.c: Moved to...
6514 * signals/signals.c: Here.
6515 * Makefile (signals.o): Update.
6516
6517 2002-03-26 Jeff Law (law@redhat.com)
6518
6519 * somread.c (som_symtab_read): Remove some commented out code and
6520 updated related comments. Do not set the minimal symbol table to
6521 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6522 in a dynamic executable.
6523 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6524 where we are unable to find the minimal symbol for the given
6525 PC value.
6526
6527 2002-03-25 Jeff Law (law@redhat.com)
6528
6529 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6530
6531 2002-03-25 Michal Ludvig <mludvig@suse.cz>
6532
6533 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6534
6535 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6536
6537 * command.h: Update copyright.
6538 (struct cmd_list_element): Replace definition with opaque
6539 declaration.
6540 (enum cmd_types): Document that it will eventually be moved to
6541 cli/cli-decode.h
6542 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6543 (MALLOCED_REPLACEMENT): Delete macro.
6544 * Makefile.in (cli_decode_h): Add $(command_h).
6545 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
6546 * top.c: Include "cli/cli-decode.h".
6547 * completer.c: Include "cli/cli-decode.h".
6548 * maint.c: Include "cli/cli-decode.h".
6549 * cli/cli-decode.h: Include "command.h".
6550 (enum command_class): Delete.
6551 (enum cmd_types): Comment out.
6552 (enum cmd_auto_boolean): Delete.
6553 (enum var_types): Delete.
6554
6555 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6556
6557 * cli/cli-decode.c: Include "gdb_assert.h".
6558 (add_set_or_show_cmd): New static function.
6559 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6560 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6561 all fields, such as func, from the set command.
6562
6563 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6564
6565 * MAINTAINERS (sh-elf): Change warning flag to -w.
6566
6567 2002-03-23 Andrew Cagney <cagney@redhat.com>
6568
6569 * defs.h (error): Add printf format attribute.
6570 * thread-db.c (thread_from_lwp): Fix error format string.
6571 * stack.c (parse_frame_specification): Ditto.
6572 * cli/cli-decode.c (undef_cmd_error): Ditto.
6573 * scm-lang.c (scm_lookup_name): Ditto.
6574 * tracepoint.c (trace_error): Ditto.
6575 * remote-utils.c (usage): Ditto.
6576 * remote.c (compare_sections_command): Ditto.
6577 Fix PR gdb/328.
6578
6579 2002-03-22 Andrew Cagney <ac131313@redhat.com>
6580
6581 * gdbtypes.c (append_composite_type_field): New function.
6582 (init_composite_type): New function.
6583 * gdbtypes.h (append_composite_type_field): Declare.
6584 (init_composite_type): Ditto.
6585
6586 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
6587
6588 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
6589 function.
6590 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6591 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6592 structure returning convention for SYSV ABI case, but not
6593 for GNU/Linux, FreeBSD, or NetBSD.
6594
6595 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
6596
6597 * symtab.h (lookup_block_symbol): Add mangled_name argument
6598 to prototype.
6599
6600 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6601 with new mangled_name argument.
6602 * linespec.c (decode_line_1): Likewise.
6603 * valops (value_of_this): Likewise.
6604 * symtab.c (lookup_transparent_type): Likewise.
6605 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6606 (lookup_symbol): If we are given a mangled name, pass it down
6607 to lookup_symbol_aux.
6608 (lookup_block_symbol): If we are given a mangled name to check
6609 against, only return symbols which match it.
6610
6611 2002-03-22 Christopher Faylor <cgf@redhat.com>
6612
6613 * win32-nat.c (child_create_inferior): Check for proper shell to use
6614 here, in case the user changes it on the fly.
6615 (_initialize_inftarg): Remove shell path considerations.
6616
6617 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6618
6619 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6620 for gdbarch_max_register_raw_size and max_register_virtual_size.
6621 Adjust copyright year.
6622
6623 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6624
6625 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6626 in a function to cover the entire beginning of the function
6627 as well if it does not already.
6628
6629 2002-03-21 Tom Rix <trix@redhat.com>
6630
6631 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6632 (rs6000_ptrace64): Renamed from ptrace64.
6633
6634 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6635
6636 * gdbserver/remote-utils.c (remote_open): Don't call
6637 getprotobyname, we're all using TCP here so just use
6638 IPPROTO_TCP.
6639 * gdbserver/gdbreplay.c (remote_open): Ditto.
6640
6641 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6642
6643 * regcache.c (_initialize_regcache): No need to call
6644 build_regcache() at this time; it gets called whenever
6645 the gdbarch changes.
6646
6647 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6648
6649 * sparc-nat.c: Include sys/param.h where possible.
6650
6651 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6652
6653 Fix PR gdb/422.
6654 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6655 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6656 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6657 complex types.
6658 * stabsread.c (rs6000_builtin_type): Likewise.
6659 (read_sun_floating_type): Likewise.
6660
6661 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6662
6663 * stabsread.c (read_member_functions): Remove skip code for duplicate
6664 constructor/destructor methods. Use standard parsing for these
6665 methods and just do not chain them to the list of methods after
6666 parsing.
6667
6668 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6669
6670 * coffread.c: Remove redundant static declarations. Replace
6671 occurrences of `PTR' with `void *'.
6672 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6673 * top.h (quit_cover): Likewise.
6674 * defs.h (catch_errors): Likewise.
6675
6676 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6677
6678 * defs.h (XMALLOC): Define.
6679 * gdb-events.sh (XMALLOC): Delete macro.
6680 * gdb-events.c, gdb-events.h: Regenerate.
6681 * gdbarch.sh (XMALLOC): Delete macro.
6682 * gdbarch.c: Regenerate.
6683 * serial.c (XMALLOC): Delete macro.
6684 * ui-file.c (XMALLOC): Ditto.
6685 * ser-unix.h (XMALLOC): Ditto.
6686 * sh-tdep.c (XMALLOC): Ditto.
6687 * ui-out.c (XMALLOC): Ditto.
6688 * utils.c (XMALLOC): Ditto.
6689 * i386-tdep.c (XMALLOC): Ditto.
6690 * gdb-events.c (XMALLOC): Ditto.
6691 * d10v-tdep.c (XMALLOC): Ditto.
6692 * cli-out.c (XMALLOC): Ditto.
6693
6694 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6695 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6696 * ui-file.c, ui-out.c: Ditto.
6697
6698 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6699
6700 * command.h (struct cmd_list_element): Add field context.
6701 (set_cmd_context, get_cmd_context): Declare.
6702 * cli/cli-decode.h: Ditto.
6703 * cli/cli-decode.c (get_cmd_context): New function.
6704 (set_cmd_context): New function.
6705 (add_cmd): Initialize context.
6706 Part of fixing PR gdb/145 and PR gdb/146.
6707
6708 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6709
6710 * cli/cli-decode.c (cmd_type): New function.
6711 * command.h (cmd_type): Declare.
6712 * infrun.c (set_schedlock_func): Call function cmd_type.
6713 * kod.c (kod_set_os): Call cmd_type.
6714 * cris-tdep.c (cris_version_update): Use function cmd_type.
6715 (cris_mode_update, cris_abi_update): Ditto.
6716
6717 * command.h: (execute_cmd_post_hook): Declare.
6718 (execute_cmd_pre_hook): Declare.
6719 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6720 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6721 functions. Execute pre/post hook while ensuring that afterwords
6722 hook_in is cleared.
6723 * top.c (execute_command): Use execute_cmd_post_hook, and
6724 execute_cmd_pre_hook to execute pre/post commands.
6725 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6726 hook_stop_stub.
6727 (hook_stop_stub): Call execute_cmd_pre_hook.
6728
6729 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6730
6731 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6732 set'' and this leads to a core dump. Move xstrdup of
6733 operating_system to after check that it is not NULL.
6734
6735 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6736
6737 * kod.c (kod_set_os): Remove unnecessary check that
6738 ``command->type'' is set_cmd.
6739
6740 * valprint.c (set_input_radix): Use input_radix.
6741 (set_output_radix): Use output_radix.
6742 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6743 isn't reverted.
6744
6745 2002-03-16 Andrew Cagney <ac131313@redhat.com>
6746
6747 * value.h (struct value): Delete field ``substring_addr''. Change
6748 aligner fields to force_doublest_align, force_longest_align,
6749 force_core_addr_align and force_pointer_aligh.
6750
6751 * value.h (struct value): Fix typo in above change.
6752
6753 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6754
6755 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6756 to fix internal_error from ``maintenance print architecture''.
6757
6758 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6759
6760 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6761 for gcc versions after gcc-2.8.1.
6762
6763 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6764
6765 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6766 for method resolution. Restore adjustment of ``this'' pointer after
6767 calling value_struct_elt, which was accidentally removed during the
6768 HP merge.
6769
6770 2002-03-15 Andrew Cagney <ac131313@redhat.com>
6771
6772 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6773 value_of_register.
6774 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6775 get_saved_register.
6776 * value.h (value_of_register): Update.
6777
6778 2002-03-14 Richard Henderson <rth@redhat.com>
6779
6780 * configure.in: Detect declaration for canonicalize_file_name.
6781 * utils.c (canonicalize_file_name): Declare, if needed.
6782 (gdb_realpath): Prefer realpath if available and usable.
6783 * config.in, configure: Rebuild.
6784
6785 2002-03-14 Richard Henderson <rth@redhat.com>
6786
6787 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6788 a constant array bound.
6789
6790 * MAINTAINERS: Add myself to write-after-approval.
6791
6792 2002-03-14 Michael Snyder <msnyder@redhat.com>
6793
6794 * symfile.c (syms_from_objfile): Return immediately if no syms.
6795 (symbol_file_add): Return immediately if no syms.
6796 (find_sym_fns): Return immediately if no syms.
6797
6798 2002-03-13 Michal Ludvig <mludvig@suse.cz>
6799
6800 * gdbserver/remote-util.c (remote_open): Print remote-side's
6801 IP address when remote debugging over the network.
6802
6803 2002-03-12 David O'Brien <obrien@FreeBSD.org>
6804
6805 * config/sparc/fbsd.mh: Fix copyright.
6806 * config/sparc/fbsd.mt: Likewise.
6807
6808 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
6809
6810 * MAINTAINERS: Fix typo in name of gdb warnings option.
6811 (x86-64): Fix formating so that this can be parsed by awk.
6812
6813 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6814
6815 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
6816 * defs.h: Include "gdb/signals.h".
6817 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6818
6819 2002-03-10 Michal Ludvig <mludvig@suse.cz>
6820
6821 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
6822 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
6823 from x86-64-tdep.h
6824
6825 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6826 Don Howard <dhoward@redhat.com>
6827
6828 * mips-tdep.c (ST0_FR): Define.
6829 (mips2_fp_compat): New function, temporarily disabled.
6830 (mips_read_fp_register_single): New function.
6831 (mips_read_fp_register_double): New function.
6832 (mips_print_register): Use them.
6833 (do_fp_register_row): Likewise.
6834
6835 2002-03-09 Andrew Cagney <ac131313@redhat.com>
6836
6837 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
6838 approval''.
6839
6840 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6841
6842 * stabsread.c (read_member_functions): Fix is_stub test for
6843 static member functions, improve comment.
6844
6845 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6846
6847 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
6848 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
6849 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
6850 commands that set boolean values.
6851 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
6852 (arm_rdi_resume): Always initialize PC.
6853 (arm_rdi_open): Don't use rslt as a boolean.
6854 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
6855 (arm_rdi_fetch_registers, arm_rdi_store_registers)
6856 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
6857 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
6858
6859 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
6860
6861 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
6862 * configure: Rebuilt.
6863
6864 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6865
6866 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
6867 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
6868
6869 2002-03-06 Andrew Cagney <ac131313@redhat.com>
6870
6871 * cli/cli-decode.c (set_cmd_completer): New function.
6872 * command.h (set_cmd_completer): Declare.
6873 * cli/cli-decode.h (set_cmd_completer): Ditto.
6874
6875 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
6876 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6877 * win32-nat.c (_initialize_inftarg): Ditto.
6878 * remote-rdi.c (_initialize_remote_rdi): Ditto.
6879 * proc-api.c (_initialize_proc_api): Ditto.
6880 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
6881 * source.c (_initialize_source): Ditto.
6882 * exec.c (_initialize_exec): Ditto.
6883 * solib.c (_initialize_solib): Ditto.
6884 * top.c (init_main): Ditto.
6885 * tracepoint.c (_initialize_tracepoint): Ditto.
6886 * symfile.c (_initialize_symfile): Ditto.
6887 * printcmd.c (_initialize_printcmd): Ditto.
6888 * infcmd.c (_initialize_infcmd): Ditto.
6889 * corefile.c (_initialize_core): Ditto.
6890
6891 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6892
6893 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6894
6895 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6896
6897 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6898
6899 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6900
6901 * NEWS: Update headings, 5.2 has branched.
6902
6903 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6904
6905 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6906 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6907 (register_addr, REGISTER_RAW_SIZE): Likewise.
6908 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6909 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6910
6911 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6912
6913 * MAINTAINERS (x86-64): Add myself.
6914 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6915 changed value_ptr -> struct value *
6916
6917 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6918
6919 * configure.host (sparc64-*-freebsd): Add.
6920 * configure.tgt: Likewise.
6921 * config/sparc/fbsd.mh: New file.
6922 * config/sparc/fbsd.mt: Likewise.
6923 * config/sparc/nm-fbsd.h: Likewise.
6924 * config/sparc/tm-fbsd.h: Likewise.
6925
6926 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6927
6928 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6929 regformats/reg-s390x.dat.
6930
6931 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6932
6933 * utils.c: Add FIXME explaining true/false problem.
6934
6935 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6936
6937 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6938
6939 2002-02-28 Michael Chastain <mec@shout.net>
6940
6941 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6942
6943 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6944
6945 * gdbserver/linux-s390-low.c: New file.
6946 * regformats/reg-s390.dat: New file.
6947 * regformats/reg-s390x.dat: New file.
6948 * gdbserver/configure.srv: Add S/390.
6949 * gdbserver/Makefile.in: Add S/390.
6950 * configure.tgt: Enable gdbserver for S/390.
6951
6952 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6953
6954 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6955 first line of the doc string for "info dos", except at the end of
6956 the sentence, since the short help stops at the first period.
6957
6958 2002-02-28 Jason Merrill <jason@redhat.com>
6959
6960 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6961
6962 2002-02-27 Fred Fish <fnf@redhat.com>
6963
6964 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6965 comment (dumy -> dummy).
6966
6967 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6968
6969 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6970
6971 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6972
6973 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6974
6975 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6976
6977 * gdbserver/acconfig.h: New file.
6978 * gdbserver/i387-fp.c: New file.
6979 * gdbserver/i387-fp.h: New file.
6980 * gdbserver/linux-x86-64.c: New file.
6981 * regformats/reg-x86-64.dat: New file.
6982 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6983 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6984 * gdbserver/configure.in: Add support for regsets.
6985 * gdbserver/config.in: Regenerate.
6986 * gdbserver/configure: Regenerate.
6987 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6988 * gdbserver/linux-low.h: New file.
6989 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6990 for regsets.
6991 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6992 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6993 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6994 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6995 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6996 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6997 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6998 "i387-fp.h". Add PTRACE_GETREGS and friends.
6999 * gdbserver/regcache.c (supply_register): New function.
7000 (supply_register_by_name): New function.
7001 (collect_register): New function.
7002 (collect_register_by_name): New function.
7003
7004 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7007 (config.status): Add configure.srv dependency.
7008 (server_h): Add config.h dependency.
7009
7010 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7011
7012 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7013 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7014 * gdbserver/configure.srv: Change i386-*-linux* to use
7015 reg-i386-linux.o.
7016
7017 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7018
7019 * x86-64-tdep.c: Re-indent. Update copyright date.
7020
7021 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7022
7023 From Michal Ludvig <mludvig@suse.cz>:
7024 * x86-64-tdep.c (value.h): Delete.
7025 (gdb_assert.h): Include.
7026 (x86_64_register_convert_to_virtual,
7027 x86_64_register_convert_to_raw ): Add check which lets only
7028 floating-point values to be converted.
7029 (value_push): Delete.
7030 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7031 (i386_gdbarch_init): Number of register_bytes fixed.
7032
7033 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7034
7035 * MAINTAINERS: Add x86-64 target.
7036
7037 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7038
7039 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7040 * osfsolib.c (solib_map_sections): Ditto.
7041 * irix5-nat.c (solib_map_sections): Ditto.
7042 * corelow.c (gdb_check_format): Ditto.
7043 * symfile.c (symfile_bfd_open): Ditto.
7044 * solib.c (solib_map_sections): Ditto.
7045 Fix PR gdb/354.
7046
7047 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7048
7049 * remote.c (_initialize_remote): By default, disable ``e'' and
7050 ``E'' step out-of-range packets.
7051
7052 2002-02-26 Andreas Schwab <schwab@suse.de>
7053
7054 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7055 m68k_linux_frame_saved_pc.
7056 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7057 in_sigtramp.
7058 (SIGCONTEXT_PC_OFFSET): Remove.
7059 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7060 m68k_linux_sigtramp_saved_pc): New functions.
7061 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7062 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7063 (UCONTEXT_PC_OFFSET): Define.
7064 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7065 non-RT and RT signal trampolines.
7066
7067 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7068
7069 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7070 (TARGET_NBPG, STACK_END_ADDR): Delete
7071 (VARIABLES_INSIDE_BLOCK): Delete.
7072
7073 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7074
7075 * utils.c (perror_with_name): Make string parameter constant.
7076 (print_sys_errmsg): Ditto.
7077 (query): Ditto.
7078 * defs.h (perror_with_name): Update.
7079 (print_sys_errmsg): Update.
7080 (query): Update.
7081
7082 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7083
7084 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7085 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7086
7087 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7088
7089 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7090 if it already matches the current architecture from the exec file.
7091 Include arch-utils.h for gdbarch_info_init prototype.
7092 * Makefile.in (rs6000-nat.o): Update dependencies.
7093
7094 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7095
7096 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7097 list of exported variables.
7098
7099 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7100
7101 * gdbserver/configure.srv: New file.
7102 * gdbserver/configure.in: Use configure.srv instead
7103 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7104 from it.
7105 * gdbserver/configure: Regenerated.
7106 * gdbserver/terminal.h: New file.
7107 * gdbserver/Makefile.in: Update for configure changes. Remove
7108 more unneeded include paths.
7109
7110 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7111
7112 From wiz at danbala:
7113 * config/sparc/tm-sp64.h: Fix grammar and typos.
7114 Fix PR gdb/287.
7115
7116 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7117
7118 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7119 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7120 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7121 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7122 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7123 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7124 * s390-tdep.c: Ditto.
7125 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7126 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7127 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7128 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7129 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7130 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7131 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7132 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7133 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7134 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7135 Fix PR gdb/378.
7136
7137 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7138
7139 * lin-thread.c: Delete file.
7140 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7141 to gdb_proc_service.h.
7142 * configure: Re-generate.
7143
7144 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7145 * serial.c (serial_open): Delete check for "ocd".
7146 Fix PR gdb/349.
7147
7148 * Makefile.in (linux-thread.o): Delete target.
7149 * linux-thread.c: Delete file.
7150
7151 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7152 renamed SH files to be consistent.
7153
7154 * symtab.c (sort_search_symbols): Use xfree.
7155
7156 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7157
7158 * arm-linux-tdep.c (arm_linux_init_abi): Register
7159 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7160 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7161 definition with undef, since we don't want the sysvr4 definition.
7162 (SKIP_TRAMPOLINE_CODE): Likewise.
7163
7164 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7165
7166 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7167
7168 * configure.in: (AC_CHECK_FUNCS) Added test for
7169 canonicalize_file_name Regenerated.
7170 * config.in, configure: Regenerated.
7171 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7172 defined use canonicalize_file_name.
7173
7174 2002-02-23 Michael Chastain <mec@shout.net>
7175
7176 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7177
7178 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7179
7180 * README: Remove references to cygnus.com.
7181 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7182 dot com'' form. Remove references to cygnus.com and sourceware.
7183
7184 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7185
7186 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7187 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7188 1003.1-2001 no longer allows "head -1".
7189 * gdb/Makefile.in (version.c): Likewise.
7190 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7191 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7192 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7193
7194 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7195
7196 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7197 * command.h (cmd_cfunc_eq): Declare.
7198 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7199
7200 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7201 ``struct cmd_list_element *''.
7202 * cli/cli-cmds.c (is_complete_command): Update. Use
7203 cmd_cfunc_eq.
7204 * top.c (execute_command): Pass the command to
7205 is_complete_command.
7206 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7207
7208 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7209
7210 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7211 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7212 architecture defines.
7213 * s390-tdep.c (s390_gdbarch_init): Likewise.
7214
7215 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7216
7217 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7218 (arm_linux_push_arguments): Likewise.
7219 (arm_linux_init_abi): Register them. Also register linux-specific
7220 call_dummy_words.
7221 (find_minsym_and_objfile): Use strcmp, not STREQ.
7222 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7223 (arm_linux_call_dummy_words): Delete declaration.
7224 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7225 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7226 declarations.
7227 (LOWEST_PC): Delete.
7228
7229 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7230
7231 * maint.c (print_section_info): Do not prepend `0x' to filepos
7232 output, it will be handled by local_hex_string_custom.
7233
7234 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7235
7236 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7237 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7238 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7239
7240 2002-02-22 Jim Blandy <jimb@redhat.com>
7241
7242 Indicate that the bcache functions don't change the strings
7243 they're passed.
7244 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7245 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7246
7247 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7248
7249 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7250
7251 2002-02-21 Christopher Faylor <cgf@redhat.com>
7252
7253 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7254 find the complete path to a loaded DLL.
7255
7256 2002-02-21 Fred Fish <fnf@redhat.com>
7257
7258 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7259 that marks the end of the range of a function, enter a line number
7260 entry that has a line number of zero and a PC offset that matches
7261 the end of the function. This starts a range of PC's for which no
7262 line number information is known.
7263 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7264 PC's for which no line number info is found (line number is zero)
7265 then we didn't find any valid line information.
7266 * symtab.h: Document use of zero line number entry.
7267
7268 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7269
7270 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7271 (have_ptrace_getvrregs): Define for run time checks.
7272 (gdb_vrregset_t): New type for Altivec register handling.
7273 (fetch_register, store_register): Fetch/store altivec register
7274 when needed.
7275 (fetch_altivec_register, store_altivec_register): New functions.
7276 (supply_vrregset, fill_vrregset): New functions.
7277 (fetch_altivec_registers, store_altivec_registers): New functions.
7278 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7279 registers as well.
7280
7281 2002-02-21 Jiri Smid <smid@suse.cz>
7282
7283 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7284
7285 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7286
7287 * Makefile.in (armnbsd-nat.o): Update dependencies.
7288 * armnbsd-nat.c (supply_gregset): New function. Common code to
7289 supply the integer register set.
7290 (supply_fparegset): New function. Similar for FPA registers.
7291 (fetch_regs, fetch_fp_regs): Use them.
7292 (fetch_core_registers): Likewise.
7293 (fetch_elfcore_registers): New function.
7294 (arm_netbsd_elfcore_fns): New core-file type specification.
7295 (_initialize_arm_netbsd_nat): Register it.
7296
7297 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7298
7299 * armnbsd-nat.c: Include gdbcore.h.
7300 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7301 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7302 'void' to declaration, to shut up ARI.
7303 (fetch_core_registers): Make static. Rewrite using supply_register.
7304 (arm_netbsd_core_fns): New core-file type specification.
7305 (_initialize_arm_netbsd_nat): New function.
7306
7307 2002-02-21 Christopher Faylor <cgf@redhat.com>
7308
7309 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7310 value.
7311
7312 2002-02-20 Christopher Faylor <cgf@redhat.com>
7313
7314 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7315 fails.
7316
7317 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7318
7319 * jv-exp.y (parse_number): Change type of implicit longs
7320 to builtin_type_uint64.
7321
7322 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7323
7324 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7325 to be an integer instead of a `union wait'.
7326
7327 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7328
7329 * mips-linux-nat.c: Call the operating system GNU/Linux.
7330 * mips-linux-tdep.c: Likewise.
7331 * mips-tdep.c: Likewise.
7332
7333 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7334
7335 Fix PR gdb/265.
7336 * jv-exp.y (parse_number): Handle 64-bit integers.
7337
7338 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7339
7340 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7341 AC_STDC_HEADERS to AC_HEADER_STDC.
7342 * gdbserver/configure: Regenerated.
7343
7344 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7345
7346 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7347 is defined.
7348 * sparc-tdep.c (get_longjmp_target): Likewise.
7349
7350 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7351
7352 * News: Add news about ARM and Multi-arch. Mention the new target
7353 arm*-*-netbsd*.
7354
7355 2002-02-19 Jim Blandy <jimb@redhat.com>
7356
7357 * stabsread.c (error_type_complaint): Improve error message.
7358
7359 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * gdbserver/README: Update documentation.
7362 * gdbserver/configure.in: Update configury to match documentation.
7363 * gdbserver/Makefile.in: Likewise.
7364 * gdbserver/configure: Regenerated.
7365 * gdbserver/aclocal.m4: New file, generated by aclocal.
7366 * gdbserver/config.in: New file, generated by autoheader.
7367
7368 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7369
7370 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7371 armnbsd-nat.c.
7372
7373 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7374
7375 * arm-tdep.h (enum arm_float_model): New enum.
7376 (struct gdbarch_tdep): Add fp_model.
7377 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7378 up floating-point conversions until we know the floating-point model
7379 in use by the inferior. Don't complain about being unable to
7380 determine the ABI of the inferior when we don't have one.
7381 (arm_extract_return_value): Support different floating-point models.
7382 (arm_store_return_value): Likewise.
7383 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
7384 ARM_FLOAT_SOFT.
7385 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7386
7387 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7388
7389 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7390 of ``current_gdbarch''.
7391
7392 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7393
7394 * armnbsd-nat.c : ANSIfy all function declarations.
7395 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7396 (fetch_inferior_registers): Re-implement in terms of above.
7397 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7398 (store_inferior_registers): Re-implement in terms of above.
7399
7400 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7401
7402 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
7403 kernel.
7404 * arm-linux-tdep.c: Likewise.
7405 * config/arm/tm-linux.h: Likewise.
7406
7407 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7408
7409 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7410 * config/arm/nbsd.mt (TM_FILE): Delete.
7411 * config/arm/tm-nbsd.h: Delete.
7412
7413 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7414
7415 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7416 Initialize CALL_DUMMY_LENGTH.
7417
7418 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7419
7420 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7421 function.
7422 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
7423 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
7424 defines one thing and that is incorrect for this port.
7425 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7426
7427 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7428
7429 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7430
7431 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7432
7433 * win32-nat.c (display_selector): New function. Displays information
7434 about the information returned by GetThreadSelectorEntry API function.
7435 (display_selectors): New function. Displays the infomation of
7436 the selector given as argument, or of CS, DS ans FS selectors
7437 if no argument is given.
7438 ( _initialize_inftarg): Add "w32" as info prefix command.
7439 Add "info w32 selector" as command calling display_selectors.
7440
7441 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7442
7443 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7444 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7445 if not defined.
7446
7447 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7448
7449 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7450
7451 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7452
7453 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7454 (arm_fix_call_dummy): Call it.
7455 (arm_call_dummy_breakpoint_offset): Delete.
7456 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7457 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7458
7459 2002-02-18 Andrew Cagney <ac131313@redhat.com>
7460
7461 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7462 Default to func_frame_chain_valid.
7463 * gdbarch.h, gdbarch.c: Re-generate.
7464 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7465
7466 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
7467
7468 * ppc-linux-nat.c: Update copyright.
7469 (fetch_register, store_register): Add tid parameter, don't compute
7470 tid here.
7471 (fetch_ppc_registers, store_ppc_registers): Add tid
7472 parameter. Pass it along to callees.
7473 (fetch_inferior_registers, store_inferior_registers): Compute tid
7474 here, and pass it to calleed functions.
7475 (fill_gregset, supply_fpregset): Clean up formatting.
7476
7477 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7478
7479 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7480 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7481
7482 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7483
7484 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7485 * gdbarch.c gdbarch.h: Regenerate.
7486 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7487 function.
7488 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7489 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7490 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7491
7492 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7493 * arm-tdep.c (arm_get_longjmp_target): New function.
7494 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7495 this to a positive value register arm_get_longjmp_target as the
7496 longjmp handler.
7497 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7498 (arm_linux_init_abi): Set up longjmp description in tdep.
7499 * armnbsd-nat.c (get_longjmp_target): Delete.
7500 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7501 description in tdep.
7502 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7503 (get_longjmp_target): Delete declaration.
7504 (GET_LONGJMP_TARGET): Delete.
7505 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7506 (GET_LONGJMP_TARGET): Delete.
7507
7508 2002-02-17 Kevin Buettner <kevinb@redhat.com>
7509
7510 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7511 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7512 of ``current_gdbarch''.
7513
7514 2002-02-17 Tom Tromey <tromey@redhat.com>
7515
7516 * cli/cli-cmds.c (compare_strings): New function.
7517 (complete_command): Only print each unique item once.
7518 * completer.h (complete_line): Declare.
7519 * completer.c (complete_line): New function.
7520 (line_completion_function): Use it.
7521
7522 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7523
7524 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7525 * gdbarch.h, gdbarch.c: Re-generate.
7526
7527 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7528
7529 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7530
7531 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7532
7533 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7534 * valops.c (value_arg_coerce): Don't take the address of a reference
7535 to convert an argument to a reference.
7536
7537 2002-02-15 Christopher Faylor <cgf@redhat.com>
7538
7539 * win32-nat.c (get_image_name): New function.
7540 (handle_load_dll): Use get_image_name function.
7541 (get_child_debug_event): Avoid registering debug events until possibly
7542 execed process is started.
7543 (child_create_inferior): Allow invocation via shell so that command
7544 line redirection, etc. works ok.
7545 (_initialize_inftarg): Add new command: "set shell" to control whether
7546 a shell is used to start a process.
7547
7548 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7549
7550 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7551 instead of find_register_by_number.
7552 (cannot_store_register): Likewise.
7553
7554 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7555
7556 * dwarf2read.c: Replace fprintf (stderr, ...) by
7557 fprintf_unfiltered (gdb_stderr, ...).
7558
7559 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7560
7561 * gdbserver/gdbserver.1: Document --attach.
7562
7563 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7564
7565 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7566 descriptions.
7567 * arm-tdep.c (arm_default_arm_le_breakpoint)
7568 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7569 (arm_default_thumb_be_breakpoint): New. Initialize them from
7570 traditional breakpoint defines.
7571 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7572 (arm_gdbarch_init): Initialize new breakpoint variables.
7573 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7574 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7575 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7576 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7577 code out to ...
7578 (arm_netbsd_init_abi_common): ... here; new function.
7579 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7580 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7581 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7582 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7583
7584 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7585
7586 * arm-tdep.h (enum arm_abi): New enum.
7587 (struct gdbarch_tdep): New structure.
7588 (LOWEST_PC): Provide a default.
7589 (arm_gdbarch_register_os_abi): Declare new function.
7590 * arm-tdep.c (arm_abi_names): New array.
7591 (process_note_abi_tag_sections): New function.
7592 (get_elfosabi): New function.
7593 (arm_gdbarch_register_os_abi): New function.
7594 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7595 support for that ABI has been built in, then call the appropriate
7596 configuration routine. Use gdbarch_num_regs() to get the number
7597 of registers.
7598 (arm_dump_tdep): New function.
7599 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7600 place-holder functions.
7601 (_initialize_arm_tdep): Register them.
7602 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7603
7604 * armnbsd-tdep.c: New file.
7605 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7606 * config/arm/nbsd.mt (TDEPFILES): Add it.
7607 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7608
7609 * armnbsd-nat.c: Include regcache.h.
7610 * Makefile.in (armnbsd-nat.o): Update dependency list.
7611
7612 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7613
7614 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7615
7616 * gdbserver/Makefile.in: Fix typos in target rules.
7617
7618 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7619
7620 Fix part of PR gdb/267.
7621 * linespec.c (find_methods): Handle constructors specially for now.
7622
7623 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7624
7625 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7626 handling.
7627 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7628 standard_coerce_float_to_double().
7629
7630 2002-02-14 Christopher Faylor <cgf@redhat.com>
7631
7632 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7633 GDBINIT_FILENAME.
7634
7635 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7636
7637 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7638 find_variant_by_name, because it confuses the multiarch
7639 framework. Return NULL if there isn't an architecture with the
7640 user supplied name, instead of forcing a different one without
7641 recording the change with the multiarch machinery.
7642 (find_variant_by_name): Delete.
7643
7644 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7645
7646 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7647 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7648
7649 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7650
7651 * stack.c (print_frame_info_base): When calling
7652 print_frame_info_listing_hook, set current_source_symtab.
7653
7654 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7655
7656 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7657 and remove unused $(INCLUDE_DIR).
7658 Add regcache.c to OBS.
7659 Add generated register protocol files to clean target.
7660 Update dependencies for new objects, obsolete old target code.
7661
7662 * gdbserver/linux-low.c: Remove all platform-specific code to
7663 new files. Remove various dead code. Update to use regcache
7664 functionality.
7665 * gdbserver/remote-utils.c (fromhex): Add return statement
7666 to quiet warning.
7667 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7668 constant.
7669 (input_interrupt): Add integer parameter to match prototype
7670 of a signal handler.
7671 (outreg): Use register_data ().
7672 (prepare_resume_reply): Use gdbserver_expedite_regs.
7673 * gdbserver/server.c (main): Dynamically allocate own_buf because
7674 PBUFSIZ is no longer constant. Use registers_to_string () and
7675 registers_from_string ().
7676 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7677 for error (), fatal (), and warning (). Update definition of
7678 PBUFSIZ to use regcache functionality. Add include guard.
7679 * gdbserver/utils.c (fatal): Add missing ``const''.
7680 (warning): New function.
7681
7682 * regformats/regdat.sh: Include "regcache.h" in generated files.
7683 Provide init_registers () function.
7684 * regformats/regdef.h: Add prototype for set_register_cache ().
7685 Add include guard.
7686
7687 * gdbserver/linux-arm-low.c: New file.
7688 * gdbserver/linux-i386-low.c: New file.
7689 * gdbserver/linux-ia64-low.c: New file.
7690 * gdbserver/linux-m68k-low.c: New file.
7691 * gdbserver/linux-mips-low.c: New file.
7692 * gdbserver/linux-ppc-low.c: New file.
7693 * gdbserver/linux-sh-low.c: New file.
7694
7695 * gdbserver/regcache.c: New file.
7696 * gdbserver/regcache.h: New file.
7697
7698 * gdbserver/low-linux.c: Removed obsolete file.
7699
7700 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7701
7702 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7703 * config/i386/linux.mt: Likewise.
7704 * config/ia64/linux.mt: Likewise.
7705 * config/m68k/linux.mh: Likewise.
7706 * config/powerpc/linux.mh: Likewise.
7707 * config/mips/linux.mt: Likewise.
7708
7709 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7710
7711 * config/i386/i386lynx.mh: Mark gdbserver variables
7712 as (currently) obsolete for this target.
7713 * config/i386/nbsd.mt: Likewise.
7714 * config/i386/nbsdelf.mt: Likewise.
7715 * config/m32r/m32r.mt: Likewise.
7716 * config/m68k/m68klynx.mh: Likewise.
7717 * config/m68k/nbsd.mt: Likewise.
7718 * config/m68k/sun3os4.mh: Likewise.
7719 * config/mips/vr5000.mt: Likewise.
7720 * config/ns32k/nbsd.mt: Likewise.
7721 * config/pa/hppabsd.mh: Likewise.
7722 * config/pa/hppaosf.mh: Likewise.
7723 * config/powerpc/nbsd.mt: Likewise.
7724 * config/rs6000/rs6000lynx.mh: Likewise.
7725 * config/s390/s390.mt: Likewise.
7726 * config/s390/s390x.mt: Likewise.
7727 * config/sparc/sparclynx.mh: Likewise.
7728 * config/sparc/sun4os4.mh: Likewise.
7729 * config/i386/x86-64linux.mt: Likewise.
7730 * config/sparc/linux.mh: Likewise.
7731
7732 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7733
7734 * configure.tgt: Configure gdbserver only for known working
7735 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7736 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7737 SUBDIRS if it is configured. Update comment for ${nativefile}.
7738 * configure: Regenerated.
7739
7740 2002-02-13 Michael Snyder <msnyder@redhat.com>
7741
7742 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7743
7744 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7745 (default_gcore_mach): Just return 0, work around a problem in bfd.
7746 (default_gcore_target): OK to return NULL if exec_bfd is null.
7747 (make_mem_sec): Use a cast, avoid a warning.
7748
7749 * procfs.c (find_memory_regions_callback): Use a cast instead of
7750 calling host_pointer_to_address (which complains if
7751 sizeof (host pointer) != sizeof (target pointer)).
7752 (procfs_make_note_section): Avoid overflow in psargs string.
7753
7754 * procfs.c (procfs_make_note_section): Make the default
7755 implementation return an error.
7756
7757 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
7758
7759 * procfs.c (procfs_make_note_section): Provide a default definition
7760 (for alpha-dec-osf4.0f). Fix typos.
7761
7762 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
7763
7764 * linux-proc.c: Add include of regcache.h.
7765 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7766
7767 2002-02-13 Andrew Cagney <ac131313@redhat.com>
7768
7769 From 2002-01-18 Greg McGary <greg@mcgary.org>:
7770 * memattr.c (create_mem_region): Disallow useless empty region.
7771 Regions are half-open intervals, so allow [A..B) [B..C) as
7772 non-overlapping.
7773
7774 2002-02-13 Michael Chastain <mec@shout.net>
7775
7776 * defs.h: Kill CONST_PTR.
7777 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7778 * c-lang.c (c_builtin_types): Likewise.
7779 * ch-lang.c (ch_builtin_types): Likewise.
7780 * f-lang.c (f_builtin_types): Likewise.
7781 * language.c (unknown_builtin_types): Likewise.
7782 * m2-lang.c (m2_builtin_types): Likewise.
7783 * p-lang.c (pascal_builtin_types): Likewise.
7784 * scm-lang.c (c_builtin_types): Likewise.
7785
7786 2002-02-13 Keith Seitz <keiths@redhat.com>
7787
7788 * arm-tdep.h (arm_get_next_pc): Add declaration.
7789
7790 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
7791
7792 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
7793 with other related struct-returning functions.
7794 (arm_extract_struct_value_address): New function.
7795 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
7796 initialize float_format, double_format and long_double_format as
7797 appropriate to the endianness of the target.
7798 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
7799 (arm_use_struct_convention): Delete declaration.
7800 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7801
7802 2002-02-13 Keith Seitz <keiths@redhat.com>
7803
7804 * defs.h (core_addr_to_string_nz): New function.
7805
7806 2002-02-13 Mark Kettenis <kettenis@gnu.org>
7807
7808 Apply missing bits of 2002-01-15 patch.
7809 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
7810 (fill_fpregset): Use i387_fill_fsave.
7811
7812 2002-02-12 Keith Seitz <keiths@redhat.com>
7813
7814 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
7815 (core_addr_to_string_nz): New function.
7816
7817 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7818
7819 * arm-linux-nat.c: Really include arm-tdep.h.
7820 * config/arm/tm-linux.h (struct type, struct value): Declare.
7821
7822 2002-02-11 Michael Snyder <msnyder@redhat.com>
7823
7824 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
7825 (gcore section): Ifdef for Solaris and Unixware only.
7826 (procfs_do_thread_registers): Unixware needs one lwpstatus
7827 per thread (not one prstatus or pstatus).
7828 (procfs_make_note_section): Iterate only over kernel threads (lwps),
7829 not over all gdb threads. For unixware, call elfcore_write_pstatus
7830 once before iterating over threads.
7831
7832 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7833
7834 * arm-tdep.h: New file.
7835 * arm-tdep.c: Include arm-tdep.h.
7836 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7837 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7838 (arm_print_float_info, arm_register_type, convert_to_extended)
7839 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7840 (arm_extract_return_value, arm_register_name): Make static.
7841 (arm_software_single_step): Similarly. Fix types in declaration.
7842 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
7843 (arm_store_return_value, arm_store_struct_return): New functions.
7844 (arm_gdbarch_init): Register the above functions. Also register
7845 call_dummy_start_offset, sizeof_call_dummy_words,
7846 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
7847 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
7848 max_register_virtual_size, register_size. Set up
7849 prologue_cache.saved_regs here, rather than ...
7850 (_initialize_arm_tdep): ... here.
7851 * config/arm/tm-arm.h (struct type, struct value): Delete forward
7852 declarations.
7853 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7854 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7855 (arm_print_float_info, arm_register_type, convert_to_extended)
7856 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7857 (arm_extract_return_value, arm_register_name): Delete declarations.
7858 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
7859 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
7860 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
7861 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
7862 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7863 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
7864 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
7865 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
7866 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
7867 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
7868 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
7869 (arm_get_next_pc): No-longer static -- these are needed by the RDI
7870 interface.
7871 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
7872 * remote-rdi.c remote-rdp.c: Likewise.
7873 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
7874 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
7875 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
7876 definition.
7877
7878 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
7879 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
7880 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
7881 from non-ARM_ prefixed definitions.
7882 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7883 all uses of above.
7884 * remote-rdi.c remote-rdp.c: Likewise.
7885 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7886
7887 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7888
7889 * arm-tdep.c (arm_frameless_function_invocation)
7890 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7891 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7892 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7893 (arm_pop_frame, arm_get_next_pc): Make static.
7894 (arm_gdbarch_init): Register above in gdbarch structure.
7895 (arm_read_fp): Renamed from arm_target_read_fp.
7896 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7897 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7898 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7899 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7900 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7901 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7902 (arm_pc_is_thumb_dummy): Delete declarations.
7903 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7904 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7905 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7906 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7907
7908 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7909
7910 * symtab.c (compare_search_syms): New function.
7911 (sort_search_symbols): New function.
7912 (search_symbols): Sort symbols after searching rather than
7913 before.
7914
7915 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7916
7917 * NEWS: Linux -> GNU/Linux.
7918
7919 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7920
7921 * gdbarch.sh: For for level one methods, disallow a definition
7922 when partially multi-arched. Add comments explaining rationale.
7923 * gdbarch.h: Re-generate.
7924
7925 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7926
7927 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7928 multi-arch partial.
7929
7930 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7931
7932 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7933 field. Use diff -u.
7934 * gdbarch.c: Re-generate.
7935
7936 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7937
7938 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7939 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7940 partial.
7941
7942 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7943
7944 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7945 multi-arch partial.
7946 (PUSH_ARGUMENTS): Switch to using predefault.
7947 * gdbarch.c: Regenerate.
7948
7949 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7950
7951 * valops.c (PUSH_ARGUMENTS): Delete definition.
7952 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7953 partial. Default to default_push_arguments.
7954 * gdbarch.h, gdbarch.c: Regenerate.
7955
7956 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7957
7958 * defs.h (throw_exception): Rename return_to_top_level. Update
7959 comments.
7960 * utils.c (error_stream, internal_verror, quit): Ditto.
7961 * top.c (throw_exception, catcher): Ditto.
7962 * sparclet-rom.c (sparclet_load): Ditto.
7963 * remote.c (interrupt_query, minitelnet): Ditto.
7964 * remote-sds.c (interrupt_query): Ditto.
7965 * remote-mips.c (mips_error, mips_kill): Ditto.
7966 * ocd.c (interrupt_query): Ditto.
7967 * monitor.c (monitor_interrupt_query): Ditto.
7968 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7969 * target.h: Update comment.
7970
7971 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7972
7973 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7974
7975 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7976 default_double_format.
7977 * gdbarch.h, gdbarch.c: Re-generate.
7978 * findvar.c (floatformat_unknown): Delete variable definition.
7979 * doublest.h (floatformat_unknown): Delete variable declaration.
7980
7981 2002-02-09 Jim Blandy <jimb@redhat.com>
7982
7983 * stabsread.c (read_type): Add code to parse Sun's syntax for
7984 prototyped function types.
7985
7986 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7987
7988 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7989 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7990
7991 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7992
7993 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7994 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7995 now _initialize_xcoffsolib gets called again and overrides the
7996 commands from solib.c in a native configuration.
7997
7998 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7999
8000 * doublest.c (store_typed_floating): Don't try to return a value.
8001 Fixes PR gdb/290.
8002
8003 2002-02-08 Jim Blandy <jimb@redhat.com>
8004
8005 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8006 is prototyped and has no arguments, print its argument list as
8007 `(void)'.
8008
8009 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8010
8011 * MAINTAINERS (write-after-approval): Add myself.
8012 (paper-trail): I've escaped!
8013
8014 2002-02-08 Christopher Faylor <cgf@redhat.com>
8015
8016 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8017 changes.
8018 (_initialize_check_for_gdb_ini): Ditto.
8019
8020 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8021
8022 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8023 xaprintf -> xasprintf.
8024
8025 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8026
8027 * win32-nat.c: Remove use of printf and sprintf functions.
8028
8029 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8030
8031 * arm-tdep.c (arm_frame_chain_valid): Make static.
8032 (arm_push_arguments): Likewise.
8033 (arm_gdbarch_init): New function.
8034 (_initialize_arm_tdep): Call it.
8035 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8036 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8037 (FRAME_CHAIN_VALID): Delete.
8038 (arm_frame_chain_valid): Delete declaration.
8039 (PUSH_ARGUMENTS): Delete.
8040 (arm_push_arguments): Delete declaration.
8041 (CALL_DUMMY_P): Delete.
8042
8043 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8044 Corinna Vinschen <vinschen@redhat.com>
8045
8046 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8047 on builtin float types.
8048
8049 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8050
8051 * utils.c: Include <curses.h> before "bfd.h".
8052 * tui/tui-hooks.c: Likewise.
8053 * tui/tui.c: Likewise.
8054 * tui/tuiCommand.c: Likewise.
8055 * tui/tuiData.c: Likewise.
8056 * tui/tuiDataWin.c: Likewise.
8057 * tui/tuiDisassem.c: Likewise.
8058 * tui/tuiGeneralWin.c: Likewise.
8059 * tui/tuiIO.c: Likewise.
8060 * tui/tuiLayout.c: Likewise.
8061 * tui/tuiRegs.c: Likewise.
8062 * tui/tuiSource.c: Likewise.
8063 * tui/tuiSourceWin.c: Likewise.
8064 * tui/tuiStack.c: Likewise.
8065 * tui/tuiWin.c: Likewise.
8066
8067 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8068
8069 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8070 to include space for pseudoregs as well. Update loops accordingly.
8071 (sh_fp_frame_init_saved_regs): Ditto.
8072 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8073
8074 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8075
8076 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8077 Add Richard Earnshaw to Arm maintainers.
8078
8079 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8080
8081 * defs.h (warning_begin): Delete declaration.
8082
8083 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8084 Delete macro.
8085
8086 2002-02-07 Michael Snyder <msnyder@redhat.com>
8087
8088 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8089 Logic bug, remove misplaced else.
8090
8091 2002-02-07 Klee Dienes <klee@apple.com>
8092
8093 * fork-inferior.c (fork_inferior): Add '!' to the list of
8094 characters that need to be quoted when building a string for the
8095 shell. Quote '!' specifically with a backslash, since CSH chokes
8096 when trying to evaluate "str!str".
8097
8098 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8099
8100 * rdi-share/host.h: Only provide a typedef for bool if it is not
8101 defined.
8102
8103 2002-02-04 Michael Snyder <msnyder@redhat.com>
8104
8105 * breakpoint.h (enum bptype): Add new overlay event bp type.
8106 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8107
8108 * breakpoint.c (create_internal_breakpoint): New function.
8109 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8110 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8111 (create_thread_event_breakpoint): Ditto.
8112 (create_solib_event_breakpoint): Ditto.
8113 (create_overlay_event_breakpoint): New function.
8114 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8115 (update_breakpoints_after_exec): Delete and re-initialize
8116 overlay event breakpoints after an exec. Add FIXME comment
8117 about longjmp breakpoint.
8118 (print_it_typical): Ignore overlay event breakpoints.
8119 (print_one_breakpoint): Ditto.
8120 (mention): Ditto.
8121 (bpstat_what): Do not stop for overlay event breakpoints.
8122 (delete_breakpoint): Don't delete overlay event breakpoints.
8123 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8124 (breakpoint_re_set): Re-create overlay event breakpoint.
8125
8126 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8127 (overlay_manual_command): Disable overlay breakpoints.
8128 (overlay_off_command): Disable overlay breakpoints.
8129
8130 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8131
8132 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8133 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8134 to here from config/tm-arm.h.
8135 (coff_sym_is_thumb): Make static.
8136 (arm_elf_make_msymbol_special): New function.
8137 (arm_coff_make_msymbol_special): New function.
8138 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8139 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8140 (coff_sym_is_thumb): Delete declaration.
8141 (arm_elf_make_msymbol_special): Declare.
8142 (arm_coff_make_msymbol_special): Declare.
8143 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8144 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8145
8146 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8147
8148 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8149
8150 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8151
8152 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8153 * gdbarch.c gdbarch.h: Regenerate.
8154 * arch-utils.c (default_print_float_info): New function.
8155 * arch-utils.h (default_print_float_info): Prototype it.
8156 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8157 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8158 (PRINT_FLOAT_INFO): Document it.
8159
8160 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8161 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8162 (PRINT_FLOAT_INFO): Define.
8163
8164 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8165
8166 * win32-nat.c (_initialize_check_for_gdb_ini):
8167 Add typecast to sprintf argument to suppress a warning.
8168
8169 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8170
8171 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8172 to allow easier handling of pass state.
8173 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8174 that gives exception name and address.
8175 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8176 and set last_sig value to ourstatus->value.sig. Some missing
8177 exceptions added.
8178 (child_continue): Correctly report continue_status.
8179 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8180 TARGET_SIGNAL_0 (new default value).
8181 (child_resume): consider sig argument passed to decide if
8182 the exception should be passed to debuggee or not.
8183
8184 2002-02-05 Michael Snyder <msnyder@redhat.com>
8185
8186 * regcache.c (fetch_register): Call target_fetch_register
8187 only if we don't call FETCH_PSEUDO_REGISTER.
8188 (store_register): Call target_store_register only if we
8189 don't call STORE_PSEUDO_REGISTER.
8190
8191 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8192
8193 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8194 ELF_MAKE_MSYMBOL_SPECIAL.
8195 * gdbarch.c, gdbarch.h: Regenerate.
8196 * arch-utils.c (default_make_msymbol_special): New function.
8197 * arch-utils.h (default_make_msymbol_special): Export.
8198 * elfread.c (elf_symtab_read): Compile use of
8199 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8200 multiarched.
8201 * coffread.c (coff_symtab_read): Ditto, for
8202 COFF_MAKE_MSYMBOL_SPECIAL.
8203
8204 2002-02-05 Jim Blandy <jimb@redhat.com>
8205
8206 * solib-svr4.c (svr4_truncate_ptr): New function.
8207 (svr4_relocate_section_addresses): Do the address arithmetic with
8208 the appropriate truncation for target addresses, even when
8209 CORE_ADDR is larger than a target address.
8210
8211 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8212
8213 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8214 to (int *).
8215
8216 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8217
8218 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8219 code.
8220
8221 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8224
8225 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8226
8227 * gdbserver/linux-low.c: Remove unused include files.
8228
8229 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8230
8231 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8232 (read_inferior_memory): Use it.
8233 (write_inferior_memory): Likewise.
8234
8235 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8236
8237 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8238 grubbing through sys_errlist.
8239
8240 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8241
8242 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8243
8244 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8245 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8246
8247 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8248
8249 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8250 (do_sfunc, set_cmd_sfunc): New functions.
8251
8252 * command.h (struct cmd_list_element): Add field func.
8253 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8254 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8255 * cli/cli-decode.h: Ditto.
8256
8257 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8258 (help_all, help_cmd_list): Ditto.
8259 (find_cmd, complete_on_cmdlist): Ditto.
8260 * top.c (execute_command): Ditto.
8261
8262 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8263 function.sfunc.
8264
8265 * infcmd.c (notice_args_read): Fix function signature.
8266
8267 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8268 * cli/cli-decode.c (add_set_cmd): Ditto.
8269 * utils.c (initialize_utils): Ditto.
8270 * maint.c (_initialize_maint_cmds): Ditto.
8271 * infrun.c (_initialize_infrun): Ditto.
8272 * demangle.c (_initialize_demangler): Ditto.
8273 * remote.c (add_packet_config_cmd): Ditto.
8274 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8275 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8276 * proc-api.c (_initialize_proc_api): Ditto.
8277 * kod.c (_initialize_kod): Ditto.
8278 * valprint.c (_initialize_valprint): Ditto.
8279 * top.c (init_main): Ditto.
8280 * infcmd.c (_initialize_infcmd): Ditto.
8281 * corefile.c (_initialize_core): Ditto.
8282 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8283 * arch-utils.c (initialize_current_architecture): Ditto.
8284 (_initialize_gdbarch_utils): Ditto.
8285 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8286
8287 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8288 * wince.c (_initialize_inftarg): Ditto.
8289 * symfile.c (_initialize_symfile): Ditto.
8290 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8291 * language.c (_initialize_language): Ditto.
8292 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8293
8294 2002-02-04 Michael Snyder <msnyder@redhat.com>
8295
8296 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8297
8298 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8299
8300 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8301 Add rules for building the register data files.
8302
8303 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8304
8305 * regformats/regdat.sh: Add braces to the definition of
8306 expedite_regs_${arch}.
8307
8308 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8309
8310 * regformats/regdef.h (struct reg): Add comment describing the
8311 requirements for offset and size fields.
8312
8313 2002-02-04 Andreas Schwab <schwab@suse.de>
8314
8315 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8316 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8317
8318 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8319
8320 * gdbarch.sh (copyright): Update years in generated header.
8321 (SMASH_TEXT_ADDRESS): Add rule.
8322 * gdbarch.h, gdbarch.c: Re-generate.
8323 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8324 * dbxread.c: Likewise.
8325 * dwarfread.c: Likewise.
8326 * elfread.c: Likewise.
8327 * somread.c: Likewise.
8328
8329 * arm-tdep.c (arm_smash_text_address): New function.
8330 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8331
8332 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8333
8334 Add support for hardware watchpoints on win32 native.
8335 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8336 CONTEXT_DEBUG_REGISTERS.
8337 (dr variable): New variable. Static array containing a local copy
8338 of debug registers.
8339 (debug_registers_changed): New variable. Reflects when debug registers
8340 are changed and need to be written to inferior.
8341 (debug_registers_used): New variable. Reflects when any debug register
8342 was set, used when new threads are created.
8343 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8344 i386-nat code.
8345 (thread_rec): Set dr array if id is the thread of current_event .
8346 (child_continue, child_resume): Change the debug registers for all
8347 threads if debug_registers_changed.
8348 (child_add_thread): Change the debug registers if debug_registers_used.
8349 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8350 Link nm.h to new nm-cygwin.h file.
8351 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8352 of hardware registers.
8353
8354 2002-02-03 Andrew Cagney <ac131313@redhat.com>
8355
8356 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8357 Restore behavour broken by 2002-01-20 Andrew Cagney
8358 <ac131313@redhat.com> IEEE_FLOAT removal.
8359
8360 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8361
8362 * c-valprint.c (c_val_print): Pass a proper valaddr to
8363 cp_print_class_method.
8364 * valops.c (search_struct_method): If there is only one method
8365 and args is NULL, return that method.
8366
8367 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8368
8369 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8370 accessing tag_name directly.
8371
8372 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8373
8374 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8375 of accessing tag_name directly.
8376
8377 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8378
8379 PR gdb/280
8380 * gdbtypes.c (replace_type): New function.
8381 * gdbtypes.h (replace_type): Add prototype.
8382 * stabsread.c (read_type): Use replace_type.
8383
8384 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
8385
8386 * Makefile.in (memattr.o): Add missing dependencies rule.
8387
8388 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8389
8390 * breakpoint.c (break_at_finish_command): Really export.
8391 (break_at_finish_at_depth_command): Ditto.
8392 (tbreak_at_finish_command): Ditto.
8393 * hppa-tdep.c: Include completer.h.
8394 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8395 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8396
8397 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8398
8399 * utils.c (do_write): New function.
8400 (error_stream): Rewrite combining the code from error_begin and
8401 verror.
8402 (verror): Rewrite using error_stream.
8403 (error_begin): Delete function.
8404
8405 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8406
8407 * utils.c (error_begin): Make static.
8408 * defs.h (error_begin): Delete declaration.
8409
8410 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8411 (decode_line_1): Use cplusplus_error instead of error_begin,
8412 cplusplus_hint and return_to_top_level.
8413 * coffread.c (coff_symfile_read): Use error instead of error_begin
8414 and return_to_top_level.
8415 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8416
8417 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8418
8419 * language.h (type_error, range_error): Make string parameter
8420 constant.
8421 * language.c (warning_pre_print): Delete extern declaration.
8422 * dwarfread.c (warning_pre_print): Ditto.
8423 * language.c (type_error, range_error): Rewrite to use verror and
8424 vwarning instead of warning_begin.
8425
8426 2002-02-01 Michael Snyder <msnyder@redhat.com>
8427
8428 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8429 (set_ignore_count): Move misplaced comment back where it belongs.
8430
8431 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8432
8433 * command.h (NO_FUNCTION): Delete macro.
8434 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8435 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8436 * tracepoint.c (_initialize_tracepoint): Ditto.
8437 * cli/cli-decode.c (add_set_cmd): Ditto.
8438 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8439
8440 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8441
8442 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8443 Update ``this'' pointer when calling virtual functions.
8444
8445 2002-02-01 Michael Snyder <msnyder@redhat.com>
8446
8447 * breakpoint.c (create_temp_exception_breakpoint): Delete.
8448 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8449
8450 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8451
8452 * regformats/reg-arm.dat: New file.
8453 * regformats/reg-i386.dat: New file.
8454 * regformats/reg-ia64.dat: New file.
8455 * regformats/reg-m68k.dat: New file.
8456 * regformats/reg-mips.dat: New file.
8457 * regformats/reg-ppc.dat: New file.
8458 * regformats/reg-sh.dat: New file.
8459 * regformats/regdef.h: New file.
8460 * regformats/regdat.sh: New file.
8461
8462 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
8463
8464 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8465 (arm_frame_args_address, arm_frame_locals_address): New functions.
8466 (arm_frame_num_args): New function.
8467 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8468 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8469 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8470
8471 2002-01-31 Michael Snyder <msnyder@redhat.com>
8472
8473 * breakpoint.c (break_at_finish_command): Export.
8474 (break_at_finish_at_depth_command): Export.
8475 (tbreak_at_finish_command): Export.
8476 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8477 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8478 "tbreak" commands, which are HPPA specific.
8479
8480 * printcmd.c (disassemble_command): Remove an ancient
8481 artifact of an old merge.
8482
8483 * symfile.h (enum overlay_debugging_state):
8484 Define enum constant values for overlay mode.
8485 * symfile.c (overlay_debugging): Use enums instead of literals.
8486 (overlay_is_mapped, overlay_auto_command,
8487 overlay_manual_command): Ditto.
8488
8489 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8490 breakpoint_here_p, breakpoint_inserted_here_p,
8491 breakpoint_thread_match, bpstat_stop_status,
8492 describe_other_breakpoints, check_duplicates, clear_command):
8493 Coding standard fixes.
8494
8495 * target.c (target_xfer_memory): Add spaces, coding standard.
8496 (do_xfer_memory): Add missing line to trust-readonly
8497 code: check bfd SEC_READONLY flag for section.
8498
8499 2002-01-31 Andrew Cagney <ac131313@redhat.com>
8500
8501 * PROBLEMS: Fix typo, 5.1->5.1.1.
8502
8503 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
8504
8505 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8506 data symbols, since we search based on textlow and texthigh.
8507 (find_pc_sect_symtab): Likewise.
8508
8509 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8510
8511 * defs.h (vwarning): Declare.
8512 * utils.c (vwarning): New function.
8513 (warning): Call vwarning.
8514 (warning_begin): Delete function.
8515
8516 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8517 the warning message.
8518 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8519 warning_begin.
8520
8521 2002-01-30 Michael Snyder <msnyder@redhat.com>
8522
8523 * NEWS: Mention "set trust-readonly-sections" command.
8524 Mention generate-core-file command.
8525
8526 2002-01-15 Michael Snyder <msnyder@redhat.com>
8527
8528 * target.c: New command, "set trust-readonly-sections on".
8529 (do_xfer_memory): Honor the suggestion to trust readonly sections
8530 by reading them from the object file instead of from the target.
8531 (initialize_targets): Register command "set trust-readonly-sections".
8532
8533 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8534
8535 * parse.c (target_map_name_to_register): Simplify, search regs and
8536 pseudo-regs using a single loop.
8537
8538 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8539
8540 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8541
8542 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
8543
8544 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8545 * config/i386/i386v42mp.mh: Add i387-nat.o .
8546 * i386v4-nat.c: Include i387-nat.h.
8547 (supply_fpregset): Use i387_supply_fsave.
8548 (fill_fpregset): Use i387_fill_fsave.
8549
8550 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
8551
8552 * arm-tdep.c (arm_call_dummy_words): Define.
8553 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8554 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8555 (CALL_DUMMY_WORDS): Define.
8556 (arm_call_dummy_words): Declare.
8557 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8558 (arm_linux_call_dummy_words): Declare.
8559
8560 2002-01-30 Andreas Schwab <schwab@suse.de>
8561
8562 * m68klinux-nat.c: Fix last change to use regcache_collect
8563 instead of referencing registers[] directly.
8564
8565 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8566
8567 * parse.c (target_map_name_to_register): Delete code wrapped in
8568 #ifdef REGISTER_NAME_ALIAS_HOOK.
8569
8570 2002-01-28 Michael Snyder <msnyder@redhat.com>
8571
8572 * regcache.c (legacy_read_register_gen): Need to be able to
8573 read pseudo-register as well as real register.
8574 (legacy_write_register_gen): Ditto.
8575
8576 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8577
8578 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8579 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8580 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8581 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8582 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8583 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8584 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8585 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8586 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8587 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8588 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8589 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8590 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8591 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8592 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8593 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8594 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8595 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8596 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8597 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8598
8599 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8600
8601 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8602 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8603 (initialize_current_architecture): Update target_byte_order using
8604 information from BFD.
8605 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
8606 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8607
8608 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8609
8610 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8611 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8612
8613 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8614 #ifdef INVALID_FLOAT.
8615 * infcmd.c (do_registers_info): Ditto.
8616 * values.c (unpack_double): Ditto. Add comment.
8617
8618 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8619 already commented out.
8620
8621 2002-01-26 Andreas Schwab <schwab@suse.de>
8622
8623 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8624 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8625 registers and add support for PTRACE_GETREGS.
8626
8627 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8628
8629 GDB 5.1.1 released from 5.1 branch.
8630 * NEWS: Add 5.1.1 news.
8631 * README: Sync with 5.1 branch.
8632
8633 2002-01-23 Fred Fish <fnf@redhat.com>
8634
8635 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8636 stabstring on initial malloc. Reallocing will copy it for us,
8637 if necessary.
8638
8639 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8640
8641 * Makefile.in (hpread_h): Delete.
8642 (HFILES_NO_SRCDIR): Remove hpread.h.
8643 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8644 (hpread.o): Update dependencies.
8645 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8646
8647 * hp-psymtab-read.c: Remove file.
8648 * hp-symtab-read.c: Remove file.
8649 * hpread.h: Remove file.
8650
8651 * hpread.c: Merge all contents of hp-psymtab-read.c,
8652 hp-symtab-read.c and hpread.h into this file, as it was prior to
8653 January 1999.
8654
8655 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8656 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8657 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8658 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8659
8660 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8661
8662 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8663 fill_gregset): Call gdbarch_tdep() just once, assign result to
8664 variable and use that, instead of calling the function several
8665 times.
8666
8667 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8668
8669 * configure.host: Accept sparcv9 as alias for sparc64.
8670 * configure.tgt: Likewise.
8671
8672 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8673
8674 * solib-aix5.c (build_so_list_from_mapfile)
8675 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8676 arguments is not reversed.
8677 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8678 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8679
8680 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8681
8682 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8683 modified version of obsolete sh_fetch_pseudo_register.
8684 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8685 (sh4_register_read): New function.
8686 (sh_pseudo_register_write): New function. Renamed and modified
8687 version of obsolete sh_store_pseudo_register.
8688 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8689 (sh4_register_write): New function.
8690 (sh_gdbarch_init): Remove setting of gdbarch function
8691 fetch_pseudo_register and store_pseudo_register. Remove setting of
8692 register_convert_to_raw, register_convert_to_virtual,
8693 register_convertible.
8694 (sh_sh4_register_convertible): Delete. No longer needed. All is
8695 taken care by architecture specific functions
8696 register_read/register_write.
8697 (sh_sh4_register_convert_to_virtual): Make static.
8698 (sh_sh4_register_convert_to_raw): Ditto.
8699
8700 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8701
8702 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8703 (floatformat_is_nan, floatformat_mantissa): Ditto.
8704
8705 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8706 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8707 builtin_type_ieee_double_little,
8708 builtin_type_ieee_double_littlebyte_bigword,
8709 builtin_type_m68881_ext, builtin_type_i960_ext,
8710 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8711 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8712 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8713 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8714
8715 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8716
8717 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8718 parameter. Set frameless flag if it exists and depended of
8719 whether the scanned function is frameless or not.
8720 (xstormy16_skip_prologue): If function is frameless, return
8721 result of xstormy16_scan_prologue().
8722 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8723 call.
8724
8725 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8726
8727 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8728 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8729 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8730 sh_sh4_register_byte, sh_sh4_register_raw_size,
8731 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8732 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8733 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8734 sh_store_pseudo_register, sh_do_pseudo_register): Call
8735 gdbarch_tdep() just once, assign result to variable and use that,
8736 instead of calling the function several times.
8737
8738 2002-01-20 Mark Kettenis <kettenis@gnu.org>
8739
8740 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8741 macros instead of LAST_FPU_CTRL_REGNUM.
8742 (store_register): Likewise.
8743
8744 2002-01-21 Jim Blandy <jimb@redhat.com>
8745
8746 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8747 is up-to-date before running the program, not just when a program
8748 exits.
8749
8750 2002-01-21 Fred Fish <fnf@redhat.com>
8751
8752 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8753 when we have found all instructions we are looking for.
8754
8755 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8756
8757 * arm-tdep.c (arm_register_name): New function.
8758 (arm_registers_names): Make static.
8759 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8760 (arm_register_name): Declare.
8761 (REGISTER_NAME): Use it.
8762
8763 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8764 Kevin Buettner <kevinb@redhat.com>
8765
8766 Convert arm targets to new FRAME interface.
8767 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8768 (arm_frame_find_save_regs): Delete.
8769 (arm_frame_init_saved_regs): New.
8770 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8771 Allocate extra_info as required. Convert all uses of fsr.regs
8772 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8773 to use extra_info.
8774 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8775 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8776 (check_prologue_cache, save_prologue_cache): Likewise.
8777 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8778 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8779 (FRAME_FIND_SAVED_REGS): Delete.
8780 (arm_frame_find_saved_regs): Delete prototype.
8781 (arm_frame_init_saved_regs): New prototype.
8782 (FRAME_INIT_SAVED_REGS): Define.
8783
8784 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8785
8786 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8787
8788 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8789
8790 From Jeff Law <law@redhat.com>:
8791 * infttrace.c: Include <sys/pstat.h>.
8792 (child_pid_to_exec_file): Revamp. Use pstat call to get the
8793 exec file if the ttrace equivalent fails.
8794
8795 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8796
8797 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
8798 (closeLogFile): Ditto.
8799
8800 2002-01-20 Michael Chastain <mec@shout.net>
8801
8802 * top.c (print_gdb_version): Bump copyright year to 2002.
8803
8804 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8805
8806 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
8807 Zannoni and Eli Zaretskii.
8808
8809 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8810
8811 * buildsym.c: Update copyright years.
8812 * c-typeprint.c: Likewise.
8813 * dwarf2read.c: Likewise.
8814 * f-typeprint.c: Likewise.
8815 * gdbtypes.c: Likewise.
8816 * gdbtypes.h: Likewise.
8817 * hp-symtab-read.c: Likewise.
8818 * hpread.c: Likewise.
8819 * mdebugread.c: Likewise.
8820 * p-typeprint.c: Likewise.
8821
8822 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8823
8824 * remote-sim.c (gdbsim_open): Simplify code testing the macro
8825 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
8826 byte-order selectable.
8827 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
8828 * arch-utils.c: Ditto.
8829 (set_endian): Ditto.
8830 (set_endian_from_file): Ditto.
8831 * gdbserver/low-sim.c (create_inferior): Ditto.
8832 * gdbarch.sh: Ditto.
8833 * gdbarch.h: Re-generate.
8834 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8835 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
8836 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
8837 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8838 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8839 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8840 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
8841 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
8842 macro definition.
8843 * config/mips/tm-wince.h: Remove #undef of macro
8844 TARGET_BYTE_ORDER_SELECTABLE.
8845 * config/sh/tm-wince.h: Ditto.
8846
8847 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8848
8849 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
8850 member function fields. Add accessor macro
8851 TYPE_FN_FIELD_ARTIFICIAL.
8852 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
8853 * c-typeprint.c (c_type_print_base): Skip artificial member
8854 functions.
8855
8856 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8857
8858 * f-typeprint.c: Delete unused function f_type_print_args.
8859 * p-typeprint.c: Delete unused function pascal_type_print_args.
8860
8861 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8862
8863 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
8864 comment. Add ``artificial'' to ``union field_location''.
8865
8866 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
8867
8868 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
8869 * mdebugread.c (parse_symbol): Likewise.
8870 * stabsread.c (define_symbol): Likewise.
8871 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
8872 initializing TYPE_FIELD_BITPOS to n (obsolete).
8873 (hpread_doc_function_type): Likewise.
8874 * hpread.c (hpread_function_type): Likewise.
8875
8876 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8877
8878 * configure.in (host_makefile_frag): Only require a host makefile
8879 fragment when a native build.
8880 * configure: Re-generate.
8881
8882 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8883
8884 * doublest.h (floatformat_from_type): Declare.
8885 * doublest.c (floatformat_from_type): New function.
8886 (convert_typed_floating): Use.
8887
8888 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8889 call to function floatformat_from_type.
8890
8891 * gdbarch.sh (IEEE_FLOAT): Delete.
8892 * gdbarch.h, gdbarch.c: Re-generate.
8893 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8894 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8895 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8896 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8897 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8898 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8899 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8900 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8901 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8902 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8903 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8904 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8905
8906 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8907 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8908 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8909 * sh-tdep.c (sh_gdbarch_init): Ditto.
8910 * mips-tdep.c (mips_gdbarch_init): Ditto.
8911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8912 * cris-tdep.c (cris_gdbarch_init): Ditto.
8913
8914 2002-01-20 Jiri Smid <smid@suse.cz>
8915
8916 * configure.host, configure.tgt: Support x86-64.
8917 * NEWS: Note new target x86-64.
8918
8919 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8920 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8921 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8922 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8923 x86-64-linux-nat.o): Fix dependencies.
8924
8925 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8926
8927 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8928 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8929 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8930 * config/sparc/xm-sun4os4.h: Delete file.
8931 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8932
8933 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8934
8935 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8936 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8937 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8938 * config/i386/i386lynx.mh (XM_FILE): Delete.
8939 * config/rs6000/xm-rs6000ly.h: Delete file.
8940 * config/sparc/xm-sparclynx.h: Delete file.
8941 * config/m68k/xm-m68klynx.h: Delete file.
8942 * config/i386/xm-i386lynx.h: Delete file.
8943 * config/xm-lynx.h: Delete file.
8944 * config/djgpp/fnchange.lst: Update.
8945
8946 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8947
8948 * alpha-tdep.c (alpha_register_byte): New function.
8949 (alpha_register_raw_size): Ditto.
8950 (alpha_register_virtual_size): Ditto.
8951 (alpha_skip_prologue_internal): Renamed from
8952 alpha_skip_prologue.
8953 (alpha_skip_prologue): New version that calls
8954 alpha_skip_prologue_internal.
8955 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8956 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8957 second argument from alpha_skip_prologue.
8958 (REGISTER_BYTE): Use alpha_register_byte.
8959 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8960 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8961 (FRAMELESS_FUNCTION_INVOCATION): Use
8962 generic_frameless_function_invocation_not.
8963 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8964 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8965
8966 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8967
8968 * config/mips/xm-news-mips.h: Delete file.
8969 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8970
8971 * config/m88k/xm-m88k.h: Delete file.
8972 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8973 * config/m88k/xm-delta88v4.h: Ditto.
8974 * config/m88k/xm-delta88.h: Ditto.
8975
8976 * config/alpha/xm-fbsd.h: Delete file.
8977 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8978
8979 * config/sparc/xm-sparc.h: Delete file.
8980 * Makefile.in (xm-sun4os4.h): Delete dependency.
8981 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8982 * config/sparc/xm-sun4os4.h: Ditto.
8983 * config/sparc/xm-linux.h: Ditto.
8984
8985 * config/i386/xm-windows.h: Delete file.
8986
8987 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8988
8989 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8990 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8991
8992 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8993
8994 * alpha-tdep.c (alpha_call_dummy_words): New.
8995 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8996 (CALL_DUMMY_P): Define.
8997 (CALL_DUMMY_WORDS): Define.
8998 (SIZEOF_CALL_DUMMY_WORDS): Define.
8999
9000 2002-01-19 Per Bothner <per@bothner.com>
9001
9002 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9003 isn't NULL, which can happen with some gcj-3.x-produced code.
9004
9005 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9006
9007 * alpha-tdep.c (alpha_register_virtual_type): New function.
9008 (alpha_init_frame_pc_first): Ditto.
9009 (alpha_fix_call_dummy): Ditto.
9010 (alpha_store_struct_return): Ditto.
9011 (alpha_extract_struct_value_address): Ditto.
9012 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9013 alpha_register_virtual_type.
9014 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9015 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9016 alpha_extract_struct_value_address.
9017 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9018 (INIT_FRAME_PC): Use init_frame_pc_noop.
9019 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9020
9021 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9022
9023 * i386gnu-nat.c: Include "i386-tdep.h".
9024 (fetch_fpregs): Simplify code dealing with uninitialized floating
9025 point states such that it doesn't require FP7_REGNUM.
9026
9027 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9028
9029 * alpha-tdep.c (frame_extra_info): New.
9030 (alpha_find_saved_regs): Make static. Use
9031 frame->extra_info.
9032 (alpha_frame_init_saved_regs): New function.
9033 (alpha_frame_saved_pc): Use frame->extra_info.
9034 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9035 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9036 (init_extra_frame_info): Rename to...
9037 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9038 (alpha_print_extra_frame_info): New function.
9039 (alpha_frame_locals_address): Ditto.
9040 (alpha_frame_args_address): Ditto.
9041 (alpha_pop_frame): Use frame->extra_info.
9042 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9043 alpha_frame_args_address.
9044 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9045 (alpha_find_saved_regs): Remove prototype.
9046 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9047 (EXTRA_FRAME_INFO): Remove.
9048 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9049 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9050
9051 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9052
9053 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9054 (alpha_cannot_fetch_register): Ditto.
9055 (alpha_cannot_store_register): Ditto.
9056 (alpha_register_convertible): Ditto.
9057 (alpha_use_struct_convention): Ditto.
9058 * config/alpha/tm-alpha.h: Update copyright years.
9059 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9060 (INNER_THAN): Use core_addr_lessthan.
9061 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9062 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9063 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9064 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9065 (FRAME_CHAIN): Remove unnecessary cast.
9066
9067 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9068
9069 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9070 obsolete.
9071
9072 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9073
9074 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9075 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9076 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9077 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9078 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9079 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9080 * x86-64-linux-nat.c: Ditto.
9081
9082 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9083
9084 * alpha-tdep.c (alpha_register_name): New function.
9085 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9086 (REGISTER_NAME): Define.
9087
9088 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9089
9090 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9091
9092 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9093
9094 * alpha-tdep.c: Update copyright years.
9095 (alpha_next_pc): New function.
9096 (alpha_software_single_step): Ditto.
9097 * config/alpha/tm-alpha.h: Add prototype for
9098 alpha_software_single_step.
9099
9100 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9101
9102 * alphabsd-nat.c: Update copyright years.
9103 (fill_gregset): Use regcache_collect.
9104 (fill_fpregset): Likewise.
9105 (fetch_inferior_registers): Only fetch integer registers
9106 if requested to do so.
9107 (store_inferior_registers): Only store integer registers
9108 if requested to do so.
9109
9110 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9111
9112 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9113 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9114 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9115 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9116 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9117 * config/arm/linux.mh (XDEPFILES): Delete.
9118 * config/arm/nbsd.mh (XDEPFILES): Delete.
9119 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9120 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9121 * config/i386/i386m3.mh (XDEPFILES): Delete.
9122 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9123 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9124 * config/i386/fbsd.mh (XDEPFILES): Delete.
9125 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9126 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9127 * config/i386/i386v4.mh (XDEPFILES): Delete.
9128 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9129 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9130 * config/i386/i386aix.mh (XDEPFILES): Delete.
9131 * config/i386/go32.mh (XDEPFILES): Delete.
9132 * config/i386/cygwin.mh (XDEPFILES): Delete.
9133 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9134 * config/i386/i386mach.mh (XDEPFILES): Delete.
9135 * config/i386/i386v32.mh (XDEPFILES): Delete.
9136 * config/i386/linux.mh (XDEPFILES): Delete.
9137 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9138 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9139 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9140 * config/i386/i386sco.mh (XDEPFILES): Delete.
9141 * config/i386/i386v.mh (XDEPFILES): Delete.
9142 * config/i386/nbsd.mh (XDEPFILES): Delete.
9143 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9144 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9145 * config/i386/symmetry.mh (XDEPFILES): Delete.
9146 * config/i386/obsd.mh (XDEPFILES): Delete.
9147 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9148 * config/ia64/linux.mh (XDEPFILES): Delete.
9149 * config/ia64/aix.mh (XDEPFILES): Delete.
9150 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9151 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9152 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9153 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9154 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9155 * config/m68k/linux.mh (XDEPFILES): Delete.
9156 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9157 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9158 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9159 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9160 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9161 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9162 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9163 * config/m88k/delta88.mh (XDEPFILES): Delete.
9164 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9165 * config/m88k/m88k.mh (XDEPFILES): Delete.
9166 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9167 * config/mips/linux.mh (XDEPFILES): Delete.
9168 * config/mips/irix6.mh (XDEPFILES): Delete.
9169 * config/mips/irix5.mh (XDEPFILES): Delete.
9170 * config/mips/irix4.mh (XDEPFILES): Delete.
9171 * config/mips/irix3.mh (XDEPFILES): Delete.
9172 * config/mips/decstation.mh (XDEPFILES): Delete.
9173 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9174 (NATDEPFILES): Move core-aout.o to here.
9175 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9176 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9177 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9178 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9179 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9180 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9181 * config/pa/hpux11.mh (XDEPFILES): Delete.
9182 * config/powerpc/aix.mh (XDEPFILES): Delete.
9183 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9184 * config/powerpc/linux.mh (XDEPFILES): Delete.
9185 * config/romp/rtbsd.mh: Rename XDEPFILES.
9186 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9187 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9188 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9189 * config/s390/s390.mh (XDEPFILES): Delete.
9190 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9191 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9192 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9193 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9194 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9195 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9196 * config/sparc/linux.mh (XDEPFILES): Delete.
9197 * config/vax/vaxult.mh (XDEPFILES): Delete.
9198 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9199 * Makefile.in (DEPFILES): Remove XDEPFILES.
9200
9201 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9202
9203 * utils.c (internal_verror): Fix comments, default is yes not no.
9204 Update queries to match. Default to quit and dump core.
9205
9206 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9207
9208 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9209 copyright.
9210 * defs.h, event-top.c, gdbcmd.h: Ditto.
9211 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9212 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9213 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9214 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9215 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9216 * mi/mi-main.c:Ditto.
9217
9218 * stack.c, symfile.c: Update copyright.
9219
9220 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9221
9222 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9223 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9224 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9225 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9226
9227 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9228
9229 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9230 * gdbserver/low-lynx.c (myattach): Likewise.
9231 * gdbserver/low-nbsd.c (myattach): Likewise.
9232 * gdbserver/low-sim.c (myattach): Likewise.
9233 * gdbserver/low-sparc.c (myattach): Likewise.
9234 * gdbserver/low-sun3.c (myattach): Likewise.
9235
9236 * gdbserver/low-linux.c (myattach): New function.
9237
9238 * gdbserver/server.c (attach_inferior): New function.
9239 (main): Handle "--attach".
9240
9241 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9242
9243 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9244 maintainer.
9245
9246 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9247
9248 * c-typeprint.c (is_type_conversion_operator): Add additional
9249 check for non-conversion operators.
9250
9251 2002-01-15 Michael Snyder <msnyder@redhat.com>
9252
9253 * linux-proc.c: Add "info proc" command, a la procfs.c.
9254 (read_mapping): New function, abstract and re-use code.
9255 (linux_find_memory_regions): Use new func read_mapping.
9256 (linux_info_proc_cmd): New function, implement "info proc".
9257 (_initialize_linux_proc): Add new command "info proc".
9258
9259 2002-01-15 Michael Snyder <msnyder@redhat.com>
9260
9261 * symfile.c (generic_load): Use bfd_map_over_sections method
9262 instead of manipulating bfd structure members directly.
9263 (add_section_size_callback): New function, bfd sections callback
9264 used by generic_load.
9265 (load_sections_callback): New function, bfd sections callback
9266 used by generic_load.
9267
9268 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9269
9270 [Based on work by Jim Blandy]
9271 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9272 (builtin_type_vec128): Export.
9273 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9274 types.
9275 (builtin_type_vec128): New builtin type for 128 bit vector
9276 registers.
9277 (build_gdbtypes): Initialize builtin_type_v16qi and
9278 builtin_type_v8hi. Create the vec128 register builtin type
9279 structure.
9280 (build_builtin_type_vec128): New function.
9281 (_initialize_gdbtypes): Register builtin_type_v16qi and
9282 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9283 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9284 AltiVec register to new builtin type.
9285
9286 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9287
9288 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9289 to make_cv_type.
9290
9291 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9292
9293 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9294 CLEAN_UP_REGISTER_VALUE.
9295 * regcache.c (supply_register): Update only call.
9296
9297 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9298
9299 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9300 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9301 a29k-*-vxworks* targets as obsolete.
9302
9303 2002-01-14 Michael Snyder <msnyder@redhat.com>
9304
9305 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9306 until we can resolve portability issues.
9307 * gregset.h: Remove references to fpxregs.
9308 * gcore.c (gcore_command): Initialize note_sec to NULL.
9309
9310 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9311
9312 * signals.c (target_signal_to_name): Rewrite. Only use
9313 signals[].name when in bounds and non-NULL.
9314
9315 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9316
9317 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9318 * signals.c (target_signal_to_name): Verify that SIG is within the
9319 bounds of the signals array.
9320
9321 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9322
9323 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9324
9325 2002-01-13 Keith Seitz <keiths@redhat.com>
9326
9327 * stack.c (print_frame_info_base): Print the frame's pc
9328 only if when print_frame_info_listing_hook is not defined.
9329
9330 2002-01-13 Keith Seitz <keiths@redhat.com>
9331
9332 * varobj.c (varobj_set_value): Make sure that there were no
9333 errors evaluating the object before attempting to set its
9334 value.
9335 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9336 so this offset adjustment is no longer necessary.
9337 (create_child): Don't set the error flag if the child is
9338 a CPLUS_FAKE_CHILD.
9339 (value_of_child): If value_fetch_lazy fails, return NULL
9340 so that callers will be notified that an error occurred.
9341 (c_value_of_variable): Delay check of variable's validity
9342 until later. We actually want all structs and unions to have
9343 the value "{...}".
9344 Do not return "???" for variables which could not be evaluated.
9345 This error condition must be returned to the caller so that it
9346 can get the error condition from gdb.
9347 (cplus_name_of_child): Adjust index for vptr before figuring
9348 out the name of the child.
9349 (cplus_value_of_child): If a child's (real) parent is not valid,
9350 don't even bother trying to give a value for it. Just return
9351 an error. Change all instances in this function.
9352 (cplus_type_of_child): If our parent is one of the "fake"
9353 parents, we need to get at the type of the real parent, and
9354 derive the child's true type using this information.
9355
9356 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9357
9358 From 2002-01-09 John Marshall <johnm@falch.net>:
9359 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9360 sources.redhat.com, and tweak some related URLs which had
9361 suffered from linkrot.
9362
9363 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9364
9365 From Jeff law:
9366 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9367 structures passed in registers.
9368
9369 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9370
9371 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9372 white space which prevented compilation. Reported by DSK
9373 <dsk@student.unsw.edu.au>.
9374
9375 2002-01-11 Michael Snyder <msnyder@redhat.com>
9376
9377 * symfile.c (build_section_addr_info_from_section_tab):
9378 Use bfd access method instead of manipulating bfd directly.
9379 (syms_from_objfile): Ditto.
9380 (simple_overlay_update_1): Ditto.
9381 (simple_overlay_update): Ditto.
9382 (generic_load): Ditto.
9383 (overlay_unmapped_address): FIXME comment, bfd access methods.
9384 (sections_overlap): FIXME comment, bfd access methods.
9385 (pc_in_mapped_range): FIXME comment, bfd access methods.
9386 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9387 (section_is_mapped): FIXME comment, bfd access methods.
9388 (section_is_overlay): FIXME comment, bfd access methods.
9389
9390 * symfile.c (generic_load): Whitespace and long line cleanups.
9391 Remove duplicate variable, change several local variables to
9392 more appropriate data types.
9393 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9394
9395 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9396
9397 From Peter Schauer:
9398 * language.c (longest_local_hex_string_custom): Use phex_nz to
9399 convert NUM to a hex string.
9400
9401 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
9402
9403 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9404 the function.
9405 Update Copyright year.
9406
9407 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9408
9409 * language.c (longest_raw_hex_string): Delete unused function.
9410
9411 2002-01-11 Petr Sorfa <petrs@caldera.com>
9412
9413 * MAINTAINERS (write-after-approval): Add myself.
9414 * dwarf2read.c (read_tag_string_type): Handling of
9415 DW_AT_byte_size.
9416 (read_tag_string_type): FORTRAN fix to prevent propagation of
9417 first string size.
9418 (set_cu_language): Handling of DW_LANG_Fortran95
9419
9420 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
9421
9422 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9423 GETPID(inferior_ptid).
9424 (store_inferior_registers): Likewise.
9425
9426 2002-01-10 Jason Merrill <jason@redhat.com>
9427
9428 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9429 Fix DW_OP_minus.
9430
9431 2002-01-10 Andrew Cagney <ac131313@redhat.com>
9432
9433 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9434 and bfd/elf32-sh-nbsd.c.
9435
9436 2002-01-10 Michael Snyder <msnyder@redhat.com>
9437
9438 * NEWS: Mention --pid and corefile/proc-id behavior change.
9439
9440 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9441 * gcore.c: Include cli/cli-decode.h instead of command.h.
9442
9443 * main.c (captured_main): Add new command line option "--pid".
9444 If the second command line argument (following the symbol-file)
9445 begins with a digit, try to attach to it before trying to open
9446 it as a corefile.
9447 (print_gdb_help): Document the "--pid" argument.
9448
9449 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9450
9451 * completer.c (command_completer): New function.
9452
9453 * completer.h <command_completer>: Add prototype.
9454
9455 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9456 completer for the "help" command.
9457
9458 2002-01-09 Jason Merrill <jason@redhat.com>
9459
9460 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9461
9462 2002-01-09 Michael Snyder <msnyder@redhat.com>
9463
9464 * i386-linux-nat.c (fill_fpxregset): Make global.
9465 (store_fpxregset): Ditto.
9466
9467 * gregset.h (gdb_fpxregset_t): Define.
9468 (supply_fpxregset): Prototype.
9469 (fill_fpxregset): Prototype.
9470
9471 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9472
9473 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9474
9475 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9476 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9477 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9478
9479 2002-01-09 Andrew Cagney <ac131313@redhat.com>
9480
9481 * MAINTAINERS: Update target maintainer rules so that any
9482 Maintainer can approve a tested patch for a maintenance-only
9483 target.
9484
9485 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9486
9487 * MAINTAINERS (write-after-approval): Add myself.
9488
9489 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
9490 IN_SIGTRAMP.
9491
9492 2002-01-08 Michael Snyder <msnyder@redhat.com>
9493
9494 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9495 real name of the executable, rather than the /proc name.
9496
9497 2002-01-03 Michael Snyder <msnyder@redhat.com>
9498
9499 Implement a "generate-core-file" command in gdb, save target state.
9500 * gcore.c: New file. Implement new command 'generate-core-file'.
9501 Save a corefile image of the current state of the inferior.
9502 * linux-proc.c: Add linux-specific code for saving corefiles.
9503 * target.h (struct target_ops): Add new target vectors for saving
9504 corefiles; to_find_memory_regions and to_make_corefile_notes.
9505 (target_find_memory_regions): New macro.
9506 (target_make_corefile_notes): New macro.
9507 * target.c (update_current_target): Inherit new target methods.
9508 (dummy_find_memory_regions): New place-holder method.
9509 (dummy_make_corefile_notes): New place-holder method.
9510 (init_dummy_target): Initialize new dummy target vectors.
9511 * exec.c (exec_set_find_memory_regions): New function.
9512 Allow the exec_ops vector for memory regions to be taken over.
9513 (exec_make_note_section): New function, target vector method.
9514 * defs.h (exec_set_find_memory_regions): Export prototype.
9515 * procfs.c (proc_find_memory_regions): New function, corefile method.
9516 (procfs_make_note_section): New function, corefile method.
9517 (init_procfs_ops): Set new target vector pointers.
9518 (find_memory_regions_callback): New function.
9519 (procfs_do_thread_registers): New function.
9520 (procfs_corefile_thread_callback): New function.
9521 * sol-thread.c (sol_find_memory_regions): New function.
9522 (sol_make_note_section): New function.
9523 (init_sol_thread_ops): Initialize new target vectors.
9524 * inftarg.c (inftarg_set_find_memory_regions): New function.
9525 Allow to_find_memory_regions vector to be taken over.
9526 (inftarg_set_make_corefile_notes): New function.
9527 Allow to_make_corefile_notes vector to be taken over.
9528 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9529 interface layer if not target_has_execution (may be a corefile).
9530 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9531 * config/sparc/sun4sol2.mh: Ditto.
9532 * config/alpha/alpha-linux.mh: Ditto.
9533 * config/arm/linux.mh: Ditto.
9534 * config/i386/x86-64linux.mh: Ditto.
9535 * config/ia64/linux.mh: Ditto.
9536 * config/m68k/linux.mh: Ditto.
9537 * config/mips/linux.mh: Ditto.
9538 * config/powerpc/linux.mh: Ditto.
9539 * config/sparc/linux.mh: Ditto.
9540
9541 2002-01-07 Michael Snyder <msnyder@redhat.com>
9542
9543 * arm-linux-nat.c: Remove references to regcache.c internal data
9544 (registers[] and register_valid[]).
9545
9546 2002-01-07 Michael Snyder <msnyder@redhat.com>
9547
9548 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9549 so that attaching to a pid will automatically read the process's
9550 symbol file and shlibs.
9551 * Makefile.in: Add rule for linux-proc.o.
9552 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9553 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9554 * config/arm/linux.mh: Ditto.
9555 * config/i386/linux.mh: Ditto.
9556 * config/i386/x86-64linux.mh: Ditto.
9557 * config/ia64/linux.mh: Ditto.
9558 * config/m68k/linux.mh: Ditto.
9559 * config/mips/linux.mh: Ditto.
9560 * config/powerpc/linux.mh: Ditto.
9561 * config/sparc/linux.mh: Ditto.
9562
9563 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9564
9565 * win32-nat.c: Add i386-tdep.h dependency.
9566
9567 2002-01-07 Michael Snyder <msnyder@redhat.com>
9568
9569 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9570 instead of bfd_get_arch_size. Don't bail out just because
9571 there's no exec_bfd.
9572
9573 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9574 * p-valprint.c (pascal_object_print_value): Ditto.
9575 * somread.c (som_symtab_read): Ditto.
9576 * symfile.c (simple_free_overlay_region_table): Ditto.
9577 * valops.c (value_assign): Ditto.
9578
9579 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9580 use tilde_expand and strerror for opening save-tracepoints file.
9581
9582 * thread-db.c (thread_db_new_objfile): Indendation fix.
9583
9584 * infptrace.c (GDB_MAX_ALLOCA): New define.
9585 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
9586 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
9587 can be overridden with whatever value is appropriate to the host).
9588 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9589 alloca to allocate potentially large buffer.
9590 * rs6000-nat.c (child_xfer_memory): Ditto.
9591 * symm-nat.c (child_xfer_memory): Ditto.
9592 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9593
9594 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9595
9596 From Nick Clifton <nickc@redhat.com>
9597 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9598
9599 2002-01-07 Michael Snyder <msnyder@redhat.com>
9600
9601 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9602 Don't use exec_bfd if it's NULL.
9603
9604 2002-01-06 Mark Kettenis <kettenis@gnu.org>
9605
9606 * valops.c (value_arg_coerce): Fix formatting.
9607
9608 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9609
9610 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9611 * gnu-nat.c: Ditto.
9612
9613 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9614
9615 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9616 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9617 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9618 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9619 z8k-coff have not been multi-arched. Update z8k-coff build
9620 status.
9621
9622 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9623
9624 * MAINTAINERS: Mark a29k target as obsolete.
9625 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9626 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9627 comments.
9628 * NEWS: Note that a29k targets are obsolete.
9629 * a29k-tdep.c: Mark as obsolete.
9630 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9631 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9632 a29k-*-vxworks* targets as obsolete.
9633 * remote-adapt.c: Obsolete.
9634 * remote-eb.c: Obsolete.
9635 * remote-mm.c: Obsolete.
9636 * remote-udi.c: Obsolete.
9637 * config/a29k/a29k-udi.mt: Obsolete.
9638 * config/a29k/a29k.mt: Obsolete.
9639 * config/a29k/tm-a29k.h: Obsolete.
9640 * config/a29k/tm-vx29k.h: Obsolete.
9641 * config/a29k/vx29k.mt: Obsolete.
9642
9643 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9644
9645 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9646 with BFD_ENDIAN_BIG.
9647
9648 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9649
9650 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9651 * configure, config.in: Re-generate.
9652 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9653 * defs.h: Do not include <endian.h>.
9654
9655 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9656
9657 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9658 * config.in: Regenerate.
9659 * configure.in: Update copyright years.
9660 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9661 * configure: Regenerate.
9662 * i386bsd-nat.c: Update copyright years.
9663 (fill_gregset): Use regcache_collect.
9664 (fetch_inferior_registers): Only fetch integer registers
9665 if requested to do so. Add support for XMM registers
9666 using PT_GETXMMREGS.
9667 (store_inferior_registers): Only store integer registers
9668 if requested to do so. Add support for XMM registers
9669 using PT_SETXMMREGS.
9670 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9671 (store_inferior_registers): Remove.
9672 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9673 (fetch_elfcore_registers): New function.
9674 (i386nbsd_elfcore_fns): New.
9675 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9676 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9677 i386bsd-nat.o.
9678 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9679 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9680 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9681 * config/i386/tm-nbsd.h: Update copyright years.
9682 (HAVE_SSE_REGS): Define.
9683 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9684 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9685 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9686 (SIGCONTEXT_PC_OFFSET): Remove.
9687 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9688
9689 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9690
9691 * configure.tgt: Remove powerpc-*-macos* target.
9692 * config/m68k/xm-mpw.h: Delete file.
9693 * config/xm-mpw.h: Delete file.
9694 * ser-mac.c: Delete file.
9695 * mpw-make.sed: Delete file.
9696 * mpw-config.in: Delete file.
9697 * mac-xdep.c: Delete file.
9698 * mac-gdb.r: Delete file.
9699 * mac-defs.h: Delete file.
9700 * mac-nat.c: Delete file.
9701 * config/powerpc/macos.mh: Delete file.
9702 * config/powerpc/macos.mt: Delete file.
9703 * config/powerpc/nm-macos.h: Delete file.
9704 * config/powerpc/tm-macos.h: Delete file.
9705 * source.c (openp, open_source_file): Remove obsolete code.
9706 * top.c (gdb_readline): Ditto.
9707 * utils.c (query): Ditto.
9708 * event-top.c (display_gdb_prompt): Ditto.
9709 * Makefile.in (ser-mac.o): Delete obsolete target.
9710 * NEWS: Update.
9711
9712 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9713
9714 * defs.h (BIG_ENDIAN): Delete macro definition.
9715 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9716 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9717 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9718 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9719 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9720 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9721 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9722 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9723 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9724 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9725 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9726 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9727 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9728 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9729 * gdbarch.c: Re-generate.
9730
9731 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9732
9733 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9734 for core files.
9735
9736 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9737
9738 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9739
9740 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9741
9742 * value.h (value_ptr): Delete typedef.
9743
9744 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9745
9746 * i386nbsd-nat.c: Update copyright years.
9747 Include i386-tdep.h.
9748
9749 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
9750
9751 * stabsread.c: Update copyright years.
9752
9753 From Debashis Mahata <debashis.mahata@wipro.com>:
9754 (read_struct_fields): Deal with Sun C compiler erroneous stab
9755 output for structs and unions.
9756 Fix PR gdb/269.
9757
9758 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9761 prototype.
9762
9763 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9764
9765 * cp-abi.c: Fix whitespace.
9766 (baseclass_offset): New wrapper function.
9767 * cp-abi.h (baseclass_offset): Add prototype.
9768 (struct cp_abi_ops): Add baseclass_offset pointer.
9769
9770 * valops.c (vb_match): Move to...
9771 * gnu-v2-abi.c (vb_match): here.
9772 * valops.c (baseclass_offset): Move to...
9773 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9774
9775 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9776
9777 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9778 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9779 * hpacc-abi.c (init_hpacc_ops): Likewise.
9780
9781 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9782
9783 * valops.c (find_overload_match): Accept obj as a
9784 reference parameter. Update it before returning.
9785 * value.h (find_overload_match): Update prototype.
9786 * eval.c (evaluate_subexp_standard): Pass object to
9787 find_overload_match by reference.
9788
9789 2002-01-03 Andrew Cagney <ac131313@redhat.com>
9790
9791 * valarith.c: Replace value_ptr with struct value pointer. Remove
9792 register attribute from value declarations.
9793 * valops.c: Ditto.
9794 * value.h: Ditto.
9795 * scm-lang.c (scm_lookup_name): Ditto.
9796
9797 2002-01-03 Michael Snyder <msnyder@redhat.com>
9798
9799 Abstract the functionality of iterating over mapped memory
9800 regions into a general purpose iterator function.
9801 * procfs.c (iterate_over_mappings): New function, general purpose
9802 iterator for memory sections.
9803 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
9804 (solib_mappings_callback): New function, callback for above.
9805 (info_proc_mappings): Reimpliment using iterate_over_mappings.
9806 (info_mappings_callback): New function, callback for above.
9807
9808 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
9809
9810 2002-01-01 Mark Kettenis <kettenis@gnu.org>
9811
9812 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
9813 * i386-tdep.c: Include "elf-bfd.h".
9814 (process_note_abi_tag_sections): New function.
9815 (i386_gdbarch_init): Add code to recognize various OS/ABI
9816 combinations.
9817
9818 * maint.c (_initialize_maint_cmds): Add missing \ in
9819 string-literal.
9820
9821 For older changes see ChangeLog-2001
9822 \f
9823 Local Variables:
9824 mode: change-log
9825 left-margin: 8
9826 fill-column: 74
9827 version-control: never
9828 End:
This page took 0.537355 seconds and 4 git commands to generate.