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