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