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