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