]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
da8ca43d
JT
12002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4 alphanbsd-tdep.c.
5 (alphanbsd-nat.o): New dependency list.
6 (alphanbsd-tdep.o): Ditto.
7 * NEWS: Note new native NetBSD/alpha configuration.
8 * alphanbsd-nat.c: New file.
9 * alphanbsd-tdep.c: Ditto.
10 * configure.host (alpha*-*-netbsd*): New host.
11 * configure.tgt (alpha*-*-netbsd*): New target.
12 * config/alpha/nbsd.mh: New file.
13 * config/alpha/nbsd.mt: Ditto.
14 * config/alpha/nm-nbsd.h: Ditto.
15 * config/alpha/tm-nbsd.h: Ditto.
16
36a6271d
JT
172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
18
19 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
20 (alpha-osf1-tdep.o): New dependency list.
21 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
22 and skip_sigtramp_frame members.
23 * alpha-linux-tdep.c: Include gdbcore.h.
24 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
25 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
26 * alpha-osf1-tdep.c: New file.
27 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
28 alpha-osf1-dep.c.
29 (alpha_frame_past_sigtramp_frame): New function.
30 (alpha_dynamic_sigtramp_offset): Ditto.
31 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
32 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
33 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
34 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
35 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
36 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
37 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
38 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
39 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
40 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
41 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
42 to find_solib_trampoline_target.
43 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
44 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
45 (SKIP_TRAMPOLINE_CODE): Remove.
46 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
47 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
48 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
49 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
50 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
51 (PROC_SIGTRAMP_MAGIC): Ditto.
52 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
53 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
54 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
55 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
56 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
57
2f4bc57b
JT
582002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
59
60 * NEWS: Note that Alpha targets are now multi-arch.
61
665132f9
MS
622002-04-24 Michael Snyder <msnyder@redhat.com>
63
64 * parser-defs.h (prev_lexptr): New external variable.
65 * parse.c (parse_exp_1): Set prev_lexptr to null before
66 calling the language-specific parser.
67 * c-exp.y (yylex): Set prev_lexptr to start of current token.
68 (yyerror): Use prev_lexptr in error reporting.
69
32872fa7
DJ
702002-04-24 Daniel Jacobowitz <drow@mvista.com>
71
72 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
73 * gregset.h: If FILL_FPXREGSET is defined, provide
74 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
75 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
76 is defined, call fill_fpxregset.
77
57e76fac
MS
782002-04-24 Roland McGrath <roland@frob.com>
79
80 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
81 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
82 (supply_gregset, supply_fpregset): New functions.
83
84 * gnu-nat.c (gnu_find_memory_regions): New function.
85 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
86 (gnu_xfer_memory): Add a cast.
87
f43845b3
MS
882002-04-24 Michael Snyder <msnyder@redhat.com>
89
90 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
91 loop. Add handling for "str lr, [sp, #-4]!" and for saves
92 of argument regs ("str r(0123), [r11, #-nn"]).
93 (arm_skip_prologue): Better handling for frameless functions.
94 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
95 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
96
a0abec03
AC
97Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
98
99 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
100 NUM_PSEUDO_REGS can be used.
101
d7bd68ca
AC
1022002-04-24 Andrew Cagney <ac131313@redhat.com>
103
104 * arch-utils.h: Update copyright.
105
106 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
107 * gdbarch.h, gdbarch.c: Re-generate.
108
109 * inferior.h (IN_SIGTRAMP): Delete definition.
110 * arch-utils.c (legacy_pc_in_sigtramp): New function.
111 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
112
113 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
114 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
115 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
116 (find_proc_framesize): Ditto.
117 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
118 (alpha_init_extra_frame_info): Ditto.
119 * infrun.c (handle_inferior_event): Ditto.
120 (handle_inferior_event): Ditto.
121 (check_sigtramp2): Ditto.
122 * blockframe.c (create_new_frame): Ditto.
123 (get_prev_frame): Ditto.
124 * ppc-linux-tdep.c: Update comments.
125 * i386-linux-tdep.c: Update comments.
126 * breakpoint.c (bpstat_what): Update comment.
127
d06f167a
ML
1282002-04-24 Michal Ludvig <mludvig@suse.cz>
129
130 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
131 (regsets_store_inferior_registers): Removed cast to int from
132 ptrace() calls.
133 * gdbserver/regcache.h: Added declaration of struct inferior_info.
134
4867e41e
DM
1352002-04-24 David S. Miller <davem@redhat.com>
136
21d83aa5
DM
137 * i960-tdep.c (register_in_window_p): New function.
138 (i960_find_saved_register): Use it instead of
139 REGISTER_IN_WINDOW_P.
140 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
141
4867e41e
DM
142 * symtab.h (find_stab_function_addr): Kill extern.
143 * minsyms.c (find_stab_function_addr): Remove from here...
144 * dbxread.c: ... to here, and mark it static.
145
69cdf6a2
DM
1462002-04-20 David S. Miller <davem@redhat.com>
147
148 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
149 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
150
5a595886
DM
1512002-04-21 David S. Miller <davem@redhat.com>
152
153 * remote-vxsparc.c (vx_read_register): Fix typo, we want
154 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
155 (vx_write_register): Likewise.
156
1da1a192
JB
1572002-04-23 J. Brobecker <brobecker@gnat.com>
158
159 * source.c (is_regular_file): New function.
160 (openp): Check wether file to open is a regular file
161 to avoid opening directories.
162
baa6f10b
JT
1632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
164
165 * findvar.c (extract_signed_integer): Cast printf argument
166 to suppress format warning.
167 (extract_unsigned_integer): Likewise.
168 * infcmd.c (registers_info): Likewise.
169 * top.c (get_prompt_1): Likewise.
170 * valops.c (value_assign): Likewise.
171 * valprint.c (print_decimal): Likewise.
172
b2c4da81
L
1732002-04-22 H.J. Lu (hjl@gnu.org)
174
175 * c-exp.y (typebase): Support
176
177 [long|long long|short] [signed|unsigned] [int|]
178
179 and
180
181 signed [long|long long|short] int
182
f267bd6a
JT
1832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
184
185 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
186 and vax-tdep.h.
187 * vax-tdep.h: New file.
188 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
189 Make several routines static.
190 (vax_get_saved_register): New function.
191 (vax_gdbarch_init): New function.
192 (_initialize_vax_tdep): Register vax_gdbarch_init.
193 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
194 Remove macros now under the control of gdbarch.
195
da3c6d4a
MS
1962002-04-22 Michael Snyder <msnyder@redhat.com>
197
11d3b27d
MS
198 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
199 Some whitespace and coding standards tweaks.
da3c6d4a 200
a33f7558
JT
2012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
202
203 * vax-tdep.c: Include regcache.h.
204 (vax_call_dummy_words): New.
205 (sizeof_vax_call_dummy_words): New.
206 (vax_fix_call_dummy): New function.
207 (vax_saved_pc_after_call): Ditto.
208 * config/vax/tm-vax.h: Don't include regcache.h.
209 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
210 (CALL_DUMMY): Remove.
211 (CALL_DUMMY_WORDS): Define.
212 (SIZEOF_CALL_DUMMY_WORDS): Define.
213 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
214
47a73475
MS
2152002-04-18 Michael Snyder <msnyder@redhat.com>
216
217 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
218
52efde73
JT
2192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
220
221 * vax-tdep.c (vax_frame_chain): New function.
222 (vax_push_dummy_frame): Ditto.
223 (vax_pop_frame): Ditto.
224 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
225 (FRAMELESS_FUNCTION_INVOCATION): Use
226 generic_frameless_function_invocation_not.
227 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
228 (POP_FRAME): Use vax_pop_frame.
229
ea74468c
JT
2302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
231
232 * vax-tdep.c (vax_store_struct_return): New function.
233 (vax_extract_return_value): Ditto.
234 (vax_store_return_value): Ditto.
235 (vax_extract_struct_value_address): Ditto.
236 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
237 vax_store_struct_return.
238 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
239 (STORE_RETURN_VALUE): Use vax_store_return_value.
240 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
241
5516aa92
JT
2422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
243
244 * vax-tdep.c (vax_frame_saved_pc): New function.
245 (vax_frame_args_address_correct): Ditto.
246 (vax_frame_args_address): Ditto.
247 (vax_frame_locals_address): Ditto.
248 (vax_frame_num_args): Move code to be in proximity to
249 other frame-related functions.
250 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
251 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
252 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
253 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
254 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
255
36af0b35
L
2562002-04-22 H.J. Lu (hjl@gnu.org)
257
258 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
259 includedir.
260
ab62c900
JT
2612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
262
263 * vax-tdep.c (vax_frame_init_saved_regs): New function.
264 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
265 (FRAME_INIT_SAVED_REGS): New macro.
266
7232b100
JT
2672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
268
269 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
270
b70d2aee
JT
2712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
272
273 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
274 where needed.
275 (fetch_osf_core_registers): Likewise.
276 (supply_gregset): Likewise.
277
a0e8a2d1
JB
2782002-04-22 J. Brobecker <brobecker@gnat.com>
279
280 * symfile.h (get_section_index): Define.
281 * symfile.c (get_section_index): New function.
282 * mdebugread.c (SC_IS_SBSS): New macro.
283 (SC_IS_BSS): Return true for the scBss storage class only, as
284 the scSBss storage class refers to the .sbss section.
285 (parse_partial_symbols): Discard the symbols which associated
286 section does not exist.
287 Make sure to use the .sbss section index for symbols which
288 storage class is scBss, rather than using the .bss section index.
289
51eb8b08
JT
2902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
291
292 * vax-tdep.c: Update copyright years.
293 (vax_register_name): New function.
294 (vax_register_byte): Ditto.
295 (vax_register_raw_size): Ditto.
296 (vax_register_virtual_size): Ditto.
297 (vax_register_virtual_type): Ditto.
298 * config/vax/tm-vax.h: Update copyright years.
299 (REGISTER_NAMES): Remove.
300 (REGISTER_NAME): Define.
301 (REGISTER_BYTE): Use vax_register_byte.
302 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
303 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
304 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
305
6cc1c0a8
AC
3062002-04-21 Andrew Cagney <ac131313@redhat.com>
307
308 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
309 declaration
310 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
311
9319a2fe
DM
3122002-04-21 David S. Miller <davem@redhat.com>
313
314 * arch-utils.c (generic_prologue_frameless_p): Kill
315 SKIP_PROLOGUE_FRAMELESS_P code.
316 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
317 references.
318 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
319 * arc-tdep.c (arc_prologue_frameless_p): Implement.
320 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
321 references.
322 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
323 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
324 (sparc_gdbarch_init): Pass it to
325 set_gdbarch_prologue_frameless_p.
a0e8a2d1 326
e9ed6d01
JT
3272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
328
329 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
330 (alphabsd-nat.o): New dependency list.
331
36012033
JT
3322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
333
334 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
335 alphafbsd-tdep.c.
336 (alpha-linux-tdep.o): New dependency list.
337 (alphafbsd-tdep.o): Likewise.
338
3379287a
JT
3392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
340
341 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
342 to here...
343 * alpha-tdep.c: ...from here.
344 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
345
4bcbd6cb
JT
3462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
347
348 * config/alpha/tm-alpha.h: Move alpha_software_single_step
349 prototype from here...
350 * alpha-tdep.h: ...to here.
351
b31da25e
AC
3522002-04-21 Andrew Cagney <ac131313@redhat.com>
353
354 * frame.h (selected_frame_level): Document as deprecated.
355 (frame_relative_level): Declare.
356 * stack.c (frame_relative_level): New function.
357 (selected_frame_level): Document as deprecated.
358 (select_frame): Do not set the selected_frame_level.
359
360 * stack.c (frame_info, record_selected_frame): Update.
361 (frame_command, current_frame_command): Update.
362 (up_silently_base, up_command, down_silently_base): Update.
363 (down_command): Update.
364 * inflow.c (kill_command): Update.
365 * tracepoint.c (finish_tfind_command): Update.
366 * corelow.c (core_open): Update.
367 * thread.c (info_threads_command): Update.
368 (do_captured_thread_select): Update.
369 * infcmd.c (finish_command): Update.
370 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
371
9c1d6fe5
JT
3722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
373
374 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
375
ab89facf
AC
3762002-04-21 Andrew Cagney <ac131313@redhat.com>
377
378 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
379 type const.
380
82a4efa1
JT
3812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
382
383 * alphafbsd-tdep.c: Update copyright years. Include
384 alpha-tdep.h.
385 (alphafbsd_use_struct_convention): Make static.
386 (alphafbsd_init_abi): New function.
387 (_initialize_alphafbsd_tdep): New function.
388 * config/alpha/tm-fbsd.h: Update copyright years.
389 (USE_STRUCT_CONVENTION): Remove.
390
44dffaac
JT
3912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
392
393 * alpha-tdep.c (alpha_abi_handler): New structure to describe
394 an Alpha ABI variant.
395 (alpha_abi_handler_list): Declare.
396 (alpha_gdbarch_register_os_abi): New function.
397 (alpha_gdbarch_init): Give registered ABI variant handlers a
398 chance to tweak the gdbarch once we have set up defaults.
399 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
400
65585be4
JT
4012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
402
403 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
404 to standard_coerce_float_to_double.
405 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
406
d9b023cc
JT
4072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
408
409 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
410 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
411 from gdbarch_tdep rather than a constant.
412 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
413 the default text address for all Alpha Unix ABIs.
414 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
415 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
416
dc129d82
JT
4172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
418
419 * alpha-tdep.h: New file. Includes several Alpha target constants
420 taken from...
421 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
422 let gdbarch deal with.
423 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
424 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
425 to dependency list.
426 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
427 Alpha target register names.
428 * alphabsd-nat.c: Likewise.
429 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
430 Alpha target register names. Make serveral routines static.
431 (alpha_get_saved_register): New function.
432 (alpha_abi_names): New.
433 (process_note_abi_tag_sections): New function.
434 (get_elfosabi): New function.
435 (alpha_gdbarch_init): New function.
436 (alpha_dump_tdep): New function.
437 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
438
d49d1e0a
AC
4392002-04-21 Andrew Cagney <ac131313@redhat.com>
440
441 * frame.c (find_saved_register): Delete #ifdef
442 HAVE_REGISTER_WINDOWS code.
443 * config/sparc/tm-sparc.h: Update comments.
444 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
445
92e8c9ed
AC
4462002-04-21 Andrew Cagney <ac131313@redhat.com>
447
448 * i960-tdep.c (i960_find_saved_register): New function.
449 (i960_get_saved_register): New function.
450 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
451 (i960_get_saved_register): Declare.
452 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
453
e1925118
DM
4542002-04-20 David S. Miller <davem@redhat.com>
455
456 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
457
29673b29
AC
4582002-04-20 Andrew Cagney <ac131313@redhat.com>
459
460 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
461 instead of NUM_PSEUDO_REGS.
462
6c86dcd5
DM
4632002-04-20 David S. Miller <davem@redhat.com>
464
465 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
466 GDB_MULTI_ARCH_PARTIAL
467 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
468 define, let tm-sp64.h do it.
469
aa40ec90
JT
4702002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
471
472 * frame.c (find_saved_register): Avoid a NULL pointer
473 dereference and actually walk the frame list.
474
0f79675b
AC
4752002-04-20 Andrew Cagney <ac131313@redhat.com>
476
477 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
478 sorted in most most-recent-used order. Document.
479 * gdbarch.h, gdbarch.c: Regenerate.
480
c04a1aa8
DJ
4812002-04-20 Daniel Jacobowitz <drow@mvista.com>
482
483 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
484 (add_inferior): Call create_register_cache.
485 (clear_inferiors): Call free_register_cache.
486 (inferior_regcache_data, set_inferior_regcache_data): New functions.
487 * gdbserver/regcache.c (struct inferior_regcache_data): New.
488 (registers): Remove.
489 (get_regcache): New function.
490 (create_register_cache, free_register_cache): New functions.
491 (set_register_cache): Don't initialize the register cache here.
492 (registers_to_string, registers_from_string, register_data): Call
493 get_regcache.
494 * gdbserver/regcache.h: Add prototypes.
495 * gdbserver/server.h: Likewise.
496
611cb4a5
DJ
4972002-04-20 Daniel Jacobowitz <drow@mvista.com>
498
499 * gdbserver/mem-break.c: New file.
500 * gdbserver/mem-break.h: New file.
501 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
502 dependencies.
503 * gdbserver/inferiors.c (struct inferior_info): Add target_data
504 member.
505 (clear_inferiors): Free target_data member if set.
506 (inferior_target_data, set_inferior_target_data): New functions.
507 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
508 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
509 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
510 (struct inferior_linux_data): New.
511 (linux_create_inferior): Use set_inferior_target_data.
512 (linux_attach): Likewise. Call add_inferior.
513 (linux_wait_for_one_inferior): New function.
514 (linux_wait): Call it.
515 (linux_write_memory): Add const.
516 (initialize_low): Call set_breakpoint_data.
517 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
518 handling members.
519 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
520 call.
521 * gdbserver/server.h: Include mem-break.h. Update inferior.c
522 prototypes.
523 * gdbserver/target.c (read_inferior_memory)
524 (write_inferior_memory): New functions.
525 * gdbserver/target.h (read_inferior_memory)
526 (write_inferior_memory): Change macros to prototypes.
527 (struct target_ops): Update comments. Add const to write_memory
528 definition.
529
f91305dd 5302002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
531
532 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
533 instead of ->prev.
534 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
535 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
536 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
537 instead of ->prev.
538
73d322b1
EZ
5392002-04-19 Elena Zannoni <ezannoni@redhat.com>
540
541 Fix PR gdb/471.
542 * gdbtypes.c (init_simd_type): Rewrite using new functions.
543 (build_builtin_type_vec128): Ditto.
544 (append_composite_type_field): Fix calculation of type length in
545 union case.
546
ccd9a834
EZ
5472002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
548
549 * config/djgpp/README: Update.
550
551 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
552 compiler warnings.
553
a57f9e49
JT
5542002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
555
556 * alpha-tdep.c (setup_arbitrary_frame): Rename...
557 (alpha_setup_arbitrary_frame): ...to this.
558 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
559 for alpha_setup_arbitrary_frame.
560
f4f9705a
AC
5612002-04-18 Andrew Cagney <cagney@redhat.com>
562
563 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
564 * gdbarch.h, gdbarch.c: Regenerate.
565
566 * defs.h (breakpoint_from_pc_fn): Delete type definition.
567 * target.h (memory_breakpoint_from_pc): Update declaration.
568 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
569
570 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
571 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
572 * mem-break.c (memory_breakpoint_from_pc): Ditto.
573 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
574 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
575 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
576 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
577 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
578 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
579 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
580 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
581 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
582
583 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
584 const pointer.
585 * monitor.c (monitor_insert_breakpoint): Ditto.
586 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
587
588 * config/mcore/tm-mcore.h: Update copyright.
589 * mem-break.c: Ditto.
590 * xstormy16-tdep.c: Ditto.
591
29f319b8
PM
5922002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
593
594 * p-exp.y: Add precedence rule for '^' token.
595 This removes the shift/reduce conflicts.
596 Remove the comment concerning these shift/reduce conflicts.
597
ebeac11a
EZ
5982002-04-18 Elena Zannoni <ezannoni@redhat.com>
599
600 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
601 (registers_powerpc_nofp): New register set for processors
602 without floating point unit.
603
27c31547
DM
6042002-04-18 David S. Miller <davem@redhat.com>
605
606 * MAINTAINERS: Add myself to write-after-approval.
607
47a73475
MS
6082002-04-17 Michael Snyder <msnyder@redhat.com>
609
610 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
611
953836b2
AC
6122002-04-17 Andrew Cagney <ac131313@redhat.com>
613
614 * rs6000-tdep.c (frame_initial_stack_address): Use
615 frame_register_read to read the alloca_reg.
616
8b0d4340
AC
6172002-04-17 Andrew Cagney <ac131313@redhat.com>
618
619 * frame.c (find_saved_register): Find saved registers in the next
620 not prev frame.
621 Fix PR gdb/365.
622
d8864532
AC
6232002-04-17 Andrew Cagney <ac131313@redhat.com>
624
625 * gdbarch.sh (LANG): Set to ``c''.
626
36cc83a3
AC
6272002-04-15 Andrew Cagney <ac131313@redhat.com>
628
629 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
630
2f4150cc 6312002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
632
633 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
634 Update copyright.
635
628703c6 636 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
637 Also fix PR gdb/391.
638
56157b4a
AC
6392002-04-14 Andrew Cagney <ac131313@redhat.com>
640
641 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
642 * aclocal.m4, configure: Re-generate.
643 Fix PR gdb/391.
644
6d1e3329
EZ
6452002-04-14 Elena Zannoni <ezannoni@redhat.com>
646
647 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
648 instead of tm_print_insn.
649
cb06fa07
EZ
6502002-04-14 Elena Zannoni <ezannoni@redhat.com>
651
652 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
653
f208ba17
AC
6542002-04-14 Andrew Cagney <ac131313@redhat.com>
655
656 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
657 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
658 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
659
20f01a46
DH
6602002-04-12 Don Howard <dhoward@redhat.com>
661
662 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
663 max_user_call_depth.
664 (init_cmd_lists): Initialize the new value;
665 * cli/cli-script.c (execute_user_command): Limit the call depth of
666 user defined commands. This avoids a core-dump when user commands
667 are infinitly recursive.
668
a88376a3
KB
6692002-04-12 Kevin Buettner <kevinb@redhat.com>
670
671 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
672 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
673 from tdep struct instead of DEFAULT_LR_SAVE.
674 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
675 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
676 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
677
f2172603
MS
6782002-04-12 Michael Snyder <msnyder@redhat.com>
679
694f61fb 680 * Remote.c: Spelling fix.
20fe79c8
MS
681 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
682 If no symbol found for "sbrk", try "_sbrk".
683 (make_output_phdrs): Use bfd_section_name.
684 (gcore_copy_callback): Use bfd_section_name.
62995fc4 685 * eval.c: Indentation fix-ups.
169a7369
MS
686 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
687 in case it gets applied to an address that is already
688 in the instruction space.
de74f71f
MS
689 * cli/cli-decode.c (help_list): Allow long lines to wrap.
690 * symfile.c: Fix indentation, long lines.
f2172603
MS
691 * source.c: White space fix-up.
692
cda5a58a
AC
6932002-04-12 Andrew Cagney <cagney@redhat.com>
694
695 * defs.h (read_relative_register_raw_bytes): Delete declaration.
696 * frame.c (frame_register_read): New function. Return non-zero on
697 success.
698 (read_relative_register_raw_bytes_for_frame): Delete.
699 (read_relative_register_raw_bytes): Delete.
700 * frame.h (frame_register_read): Declare.
701 * d30v-tdep.c: Update Copyright. Use frame_register_read.
702 * sh-tdep.c: Ditto.
703 * infcmd.c (do_registers_info): Ditto.
704 * hppa-tdep.c: Ditto.
705 * rs6000-tdep.c: Ditto.
706 * h8500-tdep.c: Ditto.
707 * mips-tdep.c: Ditto.
708 * h8300-tdep.c: Ditto.
709 * z8k-tdep.c: Ditto.
710
2ea5f656
KB
7112002-04-12 Kevin Buettner <kevinb@redhat.com>
712
713 From Jimi X <jimix@watson.ibm.com>:
714 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
715 64-bit SysV ABI.
716
27b15785
KB
7172002-04-12 Kevin Buettner <kevinb@redhat.com>
718
719 From Jimi X <jimix@watson.ibm.com>:
720 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
721 bfd info.
722
5d57ee30
KB
7232002-04-12 Kevin Buettner <kevinb@redhat.com>
724
725 From Jimi X <jimix@watson.ibm.com>:
726 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
727 register sets for these processor variants.
728
bc1e36ca
DJ
7292002-04-11 Daniel Jacobowitz <drow@mvista.com>
730
731 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
732 registers which are allowed to fail to store.
733 * gdbserver/linux-low.h (linux_target_ops): Likewise.
734 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
735 (ppc_cannot_store_register): FPSCR may not be storable.
736 * regformats/reg-ppc.dat: Support FPSCR.
737
e3f36dbd
KB
7382002-04-11 Kevin Buettner <kevinb@redhat.com>
739
740 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
741 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
742 Add fpscr as an invalid/unfetchable register.
743 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
744 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
745 (fill_fpregset): Add support for register fpscr.
746 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
747 (fill_gregset): Account for the fact that register ``mq'' might
748 not exist.
749 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
750 (registers_power): Add fpscr to register set at slot 71.
751 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
752 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
753
943c9c25
MS
7542002-04-11 Michael Snyder <msnyder@redhat.com>
755
756 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
757 * configure: Regenerate.
758 * config.in: Regenerate.
759 * acconfig.h: Add define for _SYSCALL32.
760 * core-sol2.c: Remove #define _SYSCALL32.
761 * solib-legacy.c: Remove #define _SYSCALL32.
762
d8c0a2e7
AC
7632002-04-10 Andrew Cagney <ac131313@redhat.com>
764
765 * stack.c (select_frame): Cleanup internal error message, do not
766 use %p.
767
7cc19214
AC
7682002-04-10 Andrew Cagney <ac131313@redhat.com>
769
770 * stack.c (select_frame): Check that selected_frame and the
771 specified level are as expected.
772 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
773 Update copyright.
774 * frame.h (struct frame_info): Add field `level'. Update
775 copyright.
776 Work-in-progress PR gdb/464.
777
67a2b77e
AC
7782002-04-10 Andrew Cagney <ac131313@redhat.com>
779
780 * maint.c (maint_print_section_info): Rename print_section_info.
781 (print_bfd_section_info, print_objfile_section_info): Update.
782 * inferior.h (struct gdbarch): Add opaque declaration.
783 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
784 * gdbarch.h: Regenerate.
785
8cfda98c
ML
7862002-04-10 Michal Ludvig <mludvig@suse.cz>
787
788 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
789 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
790 (kernel_u_size): Added.
791 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
792 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
793
ca439ad2
JI
7942002-04-04 Jim Ingham <jingham@apple.com>
795
796 * valarith.c (find_size_for_pointer_math): New function, either returns
797 the size for a pointer's target, returns 1 for void *, or errors for
798 incomplete types.
799 (value_add, value_sub): use find_size_for_pointer_math.
800
2f2893d9
DJ
8012002-04-09 Daniel Jacobowitz <drow@mvista.com>
802
803 * linux-low.c (linux_look_up_symbols): New hook.
804 (linux_target_ops): Add linux_look_up_symbols.
805 * remote-utils.c (decode_address): New function.
806 (look_up_one_symbol): New function.
807 * server.c (handle_query): Call target look_up_symbols hook.
808 * server.h (look_up_one_symbol): Add prototype.
809 * target.h (struct target_ops): Add look_up_symbols hook.
810
2ec06d2e
DJ
8112002-04-09 Daniel Jacobowitz <drow@mvista.com>
812
d64b8841
DJ
813 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
814 * ChangeLog: Correct paths in last ChangeLog entry.
815
8162002-04-09 Daniel Jacobowitz <drow@mvista.com>
817
818 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
819 (struct linux_target_ops): New.
820 (extern the_low_target): New.
d64b8841 821 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
822 (register_addr): Use the_low_target explicitly.
823 (fetch_register): Likewise.
824 (usr_fetch_inferior_registers): Likewise.
825 (usr_store_inferior_registers): Likewise.
d64b8841 826 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
827 (arm_num_regs): Define.
828 (arm_regmap): Renamed from regmap, made static.
829 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
830 made static.
831 (arm_cannot_store_register): Renamed from cannot_store_register,
832 made static.
833 (the_low_target): New.
d64b8841 834 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
835 (i386_num_regs): Define.
836 (i386_regmap): Renamed from regmap, made static.
837 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
838 made static.
839 (i386_cannot_store_register): Renamed from cannot_store_register,
840 made static.
841 (the_low_target): New.
d64b8841 842 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
843 (ia64_num_regs): Define.
844 (ia64_regmap): Renamed from regmap, made static.
845 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
846 made static.
847 (ia64_cannot_store_register): Renamed from cannot_store_register,
848 made static.
849 (the_low_target): New.
d64b8841 850 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
851 (m68k_num_regs): Define.
852 (m68k_regmap): Renamed from regmap, made static.
853 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
854 made static.
855 (m68k_cannot_store_register): Renamed from cannot_store_register,
856 made static.
857 (the_low_target): New.
d64b8841 858 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
859 (mips_num_regs): Define.
860 (mips_regmap): Renamed from regmap, made static.
861 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
862 made static.
863 (mips_cannot_store_register): Renamed from cannot_store_register,
864 made static.
865 (the_low_target): New.
d64b8841 866 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
867 (ppc_num_regs): Define.
868 (ppc_regmap): Renamed from regmap, made static.
869 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
870 made static.
871 (ppc_cannot_store_register): Renamed from cannot_store_register,
872 made static.
873 (the_low_target): New.
d64b8841 874 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
875 (s390_num_regs): Define.
876 (s390_regmap): Renamed from regmap, made static.
877 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
878 made static.
879 (s390_cannot_store_register): Renamed from cannot_store_register,
880 made static.
881 (the_low_target): New.
d64b8841 882 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
883 (sh_num_regs): Define.
884 (sh_regmap): Renamed from regmap, made static.
885 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
886 made static.
887 (sh_cannot_store_register): Renamed from cannot_store_register,
888 made static.
889 (the_low_target): New.
d64b8841 890 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
891 (the_low_target): New.
892
96cb11df
AC
8932002-04-09 Andrew Cagney <ac131313@redhat.com>
894
895 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
896 override FP_REGNUM with frame->fp. Update copyright.
897 * parse.c (num_std_regs, std_regs): Delete.
898 (target_map_name_to_register): Do not search std_regs. Update
899 function description.
900 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
901 declarations. Update copyright.
902 Fix PR gdb/251.
903
c3a3ccc7
DJ
9042002-04-09 Daniel Jacobowitz <drow@mvista.com>
905
906 * gdbserver/Makefile.in: Add stamp-h target.
907 * gdbserver/configure.in: Create stamp-h.
908 * gdbserver/configure: Regenerated.
909
ce3a066d
DJ
9102002-04-09 Daniel Jacobowitz <drow@mvista.com>
911
912 * gdbserver/inferiors.c: New file.
913 * gdbserver/target.c: New file.
914 * gdbserver/target.h: New file.
915 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
916 dependencies.
917 * gdbserver/linux-low.c (inferior_pid): New static variable,
918 moved from server.c.
919 (linux_create_inferior): Renamed from create_inferior.
920 Call add_inferior. Return 0 on success instead of a PID.
921 (linux_attach): Renamed from myattach.
922 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
923 (linux_thread_alive): Renamed from mythread_alive.
924 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
925 child dies.
926 (linux_resume): Renamed from myresume. Add missing ``return 0''.
927 (regsets_store_inferior_registers): Correct error message.
928 Add missing ``return 0''.
929 (linux_fetch_registers): Renamed from fetch_inferior_registers.
930 (linux_store_registers): Renamed from store_inferior_registers.
931 (linux_read_memory): Renamed from read_inferior_memory.
932 (linux_write_memory): Renamed from write_inferior_memory.
933 (linux_target_ops): New structure.
934 (initialize_low): Call set_target_ops ().
935 * gdbserver/remote-utils.c (unhexify): New function.
936 (hexify): New function.
937 (input_interrupt): Send signals to ``signal_pid''.
938 * gdbserver/server.c (inferior_pid): Remove.
939 (start_inferior): Update create_inferior call.
940 (attach_inferior): Call add_inferior.
941 (handle_query): New function.
942 (main): Call handle_query for `q' packets.
943 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
944 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
945
0729219d
DJ
9462002-04-09 Daniel Jacobowitz <drow@mvista.com>
947
948 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
949 dependencies.
950 * gdbserver/configure.in: Check for <string.h>
951 * gdbserver/configure: Regenerate.
952 * gdbserver/config.in: Regenerate.
953 * gdbserver/gdbreplay.c: Include needed system headers.
954 (remote_open): Remove strchr prototype.
955 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
956 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
957 (supply_register_by_name): Likewise.
958 (collect_register): Change buf argument to void *.
959 (collect_register_by_name): Likewise.
960 * gdbserver/regcache.h: Add missing prototypes.
961 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
962 * gdbserver/server.c (handle_query): New function.
963 (attached): New static variable, moved out of main.
964 (main): Quiet longjmp clobber warnings.
965 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
966 * gdbserver/utils.c (error): Remove NORETURN.
967 (fatal): Likewise.
968
97658e92
DJ
9692002-04-09 Daniel Jacobowitz <drow@mvista.com>
970
971 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
972 after the last symbol in a block.
973
6044e3eb
PM
9742002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
975
976 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
977 is non zero as a found symbol.
978
0406ec40
AC
9792002-04-08 Andrew Cagney <ac131313@redhat.com>
980
981 * findvar.c: Include "builtin-regs.h".
982 (value_of_register): Call value_of_builtin_reg when applicable.
983 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
984 (target_map_name_to_register): Call
985 builtin_reg_map_name_to_regnum.
986 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
987 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
988 (builtin_regs_h): Define.
989 (builtin-regs.o): New target.
990 (findvar.o): Add $(builtin_regs_h).
991 * builtin-regs.c, builtin-regs.h: New files.
992 * std-regs.c: New file.
993 Partial fix for PR gdb/251.
994
56a6dfb9
KB
9952002-04-08 Kevin Buettner <kevinb@redhat.com>
996
997 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
998 it's no longer required.
999
3a808432
AC
10002002-04-08 Andrew Cagney <ac131313@redhat.com>
1001
1002 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1003
7c40d541
KB
10042002-04-08 Kevin Buettner <kevinb@redhat.com>
1005
1006 From Jimi X <jimix@watson.ibm.com>:
1007 * rs6000-tdep.c (rs6000_software_single_step): Use
1008 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1009 and size. Use target_insert_breakpoint() and
1010 target_remove_breakpoint() to insert and remove breakpoints
1011 instead of explicit memory reads and writes.
1012
cc9836a8
KB
10132002-04-08 Kevin Buettner <kevinb@redhat.com>
1014
1015 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1016 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1017 ELF_OBJECT_FORMAT ifdef.
1018
7495d1dc
KB
10192002-04-08 Kevin Buettner <kevinb@redhat.com>
1020
1021 From Jimi X <jimix@watson.ibm.com>:
1022 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1023
4288e836
KB
10242002-04-08 Kevin Buettner <kevinb@redhat.com>
1025
1026 From Jimi X <jimix@watson.ibm.com>:
1027 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1028 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1029
a4e4e501
MK
10302002-04-07 Mark Kettenis <kettenis@gnu.org>
1031
1032 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1033 s/asprintf/xasprintf/.
1034 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1035
006defba
AC
10362002-04-07 Andrew Cagney <ac131313@redhat.com>
1037
1038 I believe Jeff Law denies responsability for this one:
1039 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1040 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1041 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1042 Work-around for PR gdb/366.
1043
7aa83cac
EZ
10442002-04-07 Elena Zannoni <ezannoni@redhat.com>
1045
1046 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1047 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1048 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1049
cf1fcca1
EZ
10502002-04-07 Elena Zannoni <ezannoni@redhat.com>
1051
1052 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1053 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1054 information.
1055
3f289e6f
AC
10562002-04-07 Andrew Cagney <ac131313@redhat.com>
1057
1058 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1059 maintainer.
1060
129188f6
AC
10612002-04-07 Andrew Cagney <ac131313@redhat.com>
1062
1063 * README (Reporting Bugs in GDB): Document the bug web page as the
1064 prefered way of submitting bugs.
1065 Fix PR gdb/402.
1066
1200cd6e
AC
10672002-04-06 Andrew Cagney <ac131313@redhat.com>
1068
1069 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1070 -1. Update comment.
1071 * gdbarch.h, gdbarch.c: Re-generate.
1072
2853c33c
AS
10732002-04-07 Andreas Schwab <schwab@suse.de>
1074
1075 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1076 buffer to regcache_collect.
1077
c2169756
AC
10782002-04-06 Andrew Cagney <ac131313@redhat.com>
1079
1080 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1081 * gdbarch.c, gdbarch.h: Re-generate.
1082
25f1b008
AC
10832002-04-06 Andrew Cagney <ac131313@redhat.com>
1084
1085 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1086 declaration. Fix -Werror.
1087
59263426
DJ
10882002-04-05 Daniel Jacobowitz <drow@mvista.com>
1089
1090 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1091 * gdbarch.c: Regenerate.
1092
f5db4da3
MS
10932002-04-05 Michael Snyder <msnyder@redhat.com>
1094
80f8a6eb
MS
1095 * breakpoint.c (clear_command): Rewrite middle section to
1096 combine two loops with identical control conditions.
1097 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
1098 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1099
ad3dcc5c
L
11002002-04-05 H.J. Lu (hjl@gnu.org)
1101
1102 * solib-svr4.c (bkpt_names): Add "__start".
1103
f32e7a74
AC
11042002-04-04 Andrew Cagney <ac131313@redhat.com>
1105
1106 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1107 as test for 64 bit target.
1108
8227c0ff
AC
11092002-04-05 Andrew Cagney <ac131313@redhat.com>
1110
1111 * h8500-tdep.c (h8500_write_fp): Delete function.
1112 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1113 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1114 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1116 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1117 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1118 (s390_write_fp):
1119 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1120 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1121 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1122 (d10v_write_fp): Delete function.
1123 * inferior.h (write_fp, generic_target_write_fp): Delete
1124 declarations.
1125 * regcache.c (generic_target_write_fp): Delete function.
1126 (write_fp): Delete function.
1127 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1128 * gdbarch.h, gdbarch.c: Regenerate.
1129 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1130 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1131 (sparc64_write_fp): Delete declaration.
1132 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1133 (h8500_write_fp): Delete declaration.
1134
2757dd86
AC
11352002-04-04 Andrew Cagney <ac131313@redhat.com>
1136
1137 * sparc-tdep.c (sparc64_write_fp): Delete.
1138 (sparc_push_dummy_frame): Replace write_fp call with code to store
1139 the FP directly.
1140 (sparc_gdbarch_init): Do not initialize write_fp.
1141
c69255e1
KB
11422002-04-05 Kevin Buettner <kevinb@redhat.com>
1143
1144 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1145 clause.
1146
ae767bfb
JB
11472002-03-29 Jim Blandy <jimb@redhat.com>
1148
1149 * stack.c (get_selected_block): Add new argument `addr_in_block',
1150 used to return the exact code address we used to select the block,
1151 not just the block.
1152 * blockframe.c (get_frame_block, get_current_block): Same.
1153 * frame.h (get_frame_block, get_current_block,
1154 get_selected_block): Update declarations.
1155 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1156 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1157
84d2ac95
MS
11582002-04-05 Michael Snyder <msnyder@redhat.com>
1159
1160 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1161 warning message.
1162
596aa3bf
JB
11632002-04-05 J. Brobecker <brobecker@gnat.com>
1164
1165 * utils.c (xfullpath): New function.
1166 * defs.h (xfullpath): Add declaration.
1167 * source.c (openp): Use xfullpath in place of gdb_realpath to
1168 avoid resolving the basename part of filenames when the
1169 associated file is a symbolic link. This fixes a potential
1170 inconsistency between the filenames known to GDB and the
1171 filenames it prints in the annotations.
1172 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1173 to be able to match a filename with either the real filename, or
1174 the name of any symbolic link to this file.
1175 (lookup_partial_symtab): Ditto.
1176
c02f5703
MS
11772002-04-04 Michael Snyder <msnyder@redhat.com>
1178
1179 * breakpoint.c: Add support for hardware breakpoints in overlays.
1180 (overlay_events_enabled): New state variable.
1181 (insert_breakpoints): Use overlay_events_enabled to decide
1182 whether to attempt to set a breakpoint at the overlay load addr.
1183 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1184 (remove_breakpoint): Use overlay_events_enabled to decide
1185 whether breakpoints need to be removed from overlay load addr.
1186 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1187 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1188 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1189 disable_overlay_breakpoints): Update overlay_events_enabled.
1190
5fb290d7
DJ
11912002-04-04 Daniel Jacobowitz <drow@mvista.com>
1192
1193 * dwarf2read.c (struct function_range): New.
1194 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1195 (check_cu_functions): New.
1196 (read_file_scope): Initialize global function lists.
1197 Call dwarf_decode_line after processing children.
1198 (read_func_scope): Add to global function list.
1199 (dwarf_decode_lines): Call check_cu_functions everywhere
1200 record_line is called. Call record_line with a linenumber
1201 of 0 to mark sequence ends.
1202
7b3fabf0
ML
12032002-04-04 Michal Ludvig <mludvig@suse.cz>
1204
1205 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1206 change sync with glibc.
1207
bce58c09
JB
12082002-04-03 Jim Blandy <jimb@redhat.com>
1209
1210 * configure.in: Call AC_C_INLINE.
1211 * configure: Regenerated.
1212
2fccf04a
DJ
12132002-04-01 Daniel Jacobowitz <drow@mvista.com>
1214
1215 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1216 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1217
2d1bfe2e
MK
12182002-03-31 Mark Kettenis <kettenis@gnu.org>
1219
a5941fbf
MK
1220 * NEWS: Mention gcore support on FreeBSD/i386.
1221
a90cd31d
MK
1222 * fbsd-proc.c: New file.
1223 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1224 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1225
2d1bfe2e
MK
1226 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1227 while statement.
1228
9eb6e5a1
JB
12292002-03-29 Jim Blandy <jimb@redhat.com>
1230
1231 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1232 unescaped newlines in string literals, but newer ones don't. So
1233 escape them.
1234
f02df580
MS
12352002-03-26 Michael Snyder <msnyder@redhat.com>
1236 Andrew Cagney <cagney@redhat.com>
1237
1238 * cli/cli-dump.c: New file. Dump memory to file,
1239 restore file to memory.
1240 * cli/cli-dump.h: New file.
1241 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 1242 * NEWS: Mention new commands.
f02df580 1243
109f874e
MS
12442002-03-28 Michael Snyder <msnyder@redhat.com>
1245
1246 * symfile.c (symbol_file_add): Move test for null symbols to later.
1247
520f6ade
AC
12482002-03-27 Andrew Cagney <ac131313@redhat.com>
1249
1250 From veksler at il.ibm.com:
1251 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1252 the xstrduped original path.
1253 Fix PR gdb/417.
1254
d4654627
MS
12552002-03-27 Michael Snyder <msnyder@redhat.com>
1256
1257 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1258 * infcmd.c (_initialize_infcmd): Ditto.
1259 * language.c (_initialize_language): Ditto.
1260 * symfile.c (_initialize_symfile): Ditto.
1261 * top.c (_init_main): Ditto.
1262 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1263
6be8bc0c
EZ
12642002-03-27 Elena Zannoni <ezannoni@redhat.com>
1265
1266 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1267 vector registers handling.
1268 (skip_prologue): Handle new AltiVec instructions. Fill in new
1269 fields of frame data.
1270 (frame_get_saved_regs): Fill in information for AltiVec registers.
1271
12af6855
JB
12722002-03-27 Jim Blandy <jimb@redhat.com>
1273
1274 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1275 a function; leave this macro here to invoke that function.
1276 (symbol_init_mangled_name): Declaration for that function.
1277 * symtab.c (symbol_init_mangled_name): New function.
1278
dc672865
AC
12792002-03-27 Andrew Cagney <ac131313@redhat.com>
1280
1281 * valarith.c: Replace strerror with safe_strerror.
1282 * tracepoint.c: Ditto.
1283 * lin-lwp.c: Ditto.
1284 * go32-nat.c: Ditto.
1285 * inflow.c: Ditto.
1286 * gnu-nat.c: Ditto.
1287
d96429cd
AS
12882002-03-27 Andreas Schwab <schwab@suse.de>
1289
1290 * event-top.c (command_line_handler): Remove useless if.
1291
7e336ba1
AJ
12922002-03-27 Andreas Jaeger <aj@suse.de>
1293
1294 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1295 comment.
1296
de220d0f
ML
12972002-03-27 Michal Ludvig <mludvig@suse.cz>
1298
1299 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1300 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1301 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1302 (x86_64_linux_dr_get_status, supply_gregset),
1303 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1304 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1305 (x86_64_register_info_table): Add.
1306 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1307 (x86_64_register_raw_size, x86_64_register_virtual_type),
1308 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1309 general x86_64_register_info_table.
1310 (i386_gdbarch_init): gdbarch_register_bytes is now set
1311 dynamicaly during initialization.
1312 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1313 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 1314
0e98d0a7
DJ
13152002-03-27 Daniel Jacobowitz <drow@mvista.com>
1316
1317 * gdbserver/server.c (main): Call target_signal_to_host_p
1318 and target_signal_to_host on signals received from the remote.
1319 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1320 target_signal_from_host on signals sent to the remote.
1321 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1322 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1323
3130066b
DJ
13242002-03-27 Daniel Jacobowitz <drow@mvista.com>
1325
1326 * signals/signals.c: Include "server.h" in gdbserver build.
1327 (target_signal_from_name): Don't use STREQ.
1328 (_initialize_signals): Likewise. Don't include function in
1329 gdbserver build.
1330
9aedf4f4
DJ
13312002-03-27 Daniel Jacobowitz <drow@mvista.com>
1332
1333 * signals.c: Moved to...
1334 * signals/signals.c: Here.
7e336ba1 1335 * Makefile (signals.o): Update.
9aedf4f4 1336
3fa41cdb
JL
13372002-03-26 Jeff Law (law@redhat.com)
1338
1339 * somread.c (som_symtab_read): Remove some commented out code and
1340 updated related comments. Do not set the minimal symbol table to
1341 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1342 in a dynamic executable.
1343 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1344 where we are unable to find the minimal symbol for the given
1345 PC value.
1346
ee677e8d
MS
13472002-03-25 Jeff Law (law@redhat.com)
1348
1349 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1350
e76e1718
ML
13512002-03-25 Michal Ludvig <mludvig@suse.cz>
1352
1353 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1354
18a642a1
AC
13552002-03-23 Andrew Cagney <ac131313@redhat.com>
1356
1357 * command.h: Update copyright.
1358 (struct cmd_list_element): Replace definition with opaque
1359 declaration.
1360 (enum cmd_types): Document that it will eventually be moved to
1361 cli/cli-decode.h
1362 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1363 (MALLOCED_REPLACEMENT): Delete macro.
1364 * Makefile.in (cli_decode_h): Add $(command_h).
1365 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 1366 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
1367 * completer.c: Include "cli/cli-decode.h".
1368 * maint.c: Include "cli/cli-decode.h".
1369 * cli/cli-decode.h: Include "command.h".
1370 (enum command_class): Delete.
1371 (enum cmd_types): Comment out.
1372 (enum cmd_auto_boolean): Delete.
1373 (enum var_types): Delete.
1374
b2875cc0
AC
13752002-03-23 Andrew Cagney <ac131313@redhat.com>
1376
1377 * cli/cli-decode.c: Include "gdb_assert.h".
1378 (add_set_or_show_cmd): New static function.
1379 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1380 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1381 all fields, such as func, from the set command.
1382
3b45974e
AC
13832002-03-23 Andrew Cagney <ac131313@redhat.com>
1384
1385 * MAINTAINERS (sh-elf): Change warning flag to -w.
1386
823ca731
AC
13872002-03-23 Andrew Cagney <cagney@redhat.com>
1388
1389 * defs.h (error): Add printf format attribute.
1390 * thread-db.c (thread_from_lwp): Fix error format string.
1391 * stack.c (parse_frame_specification): Ditto.
1392 * cli/cli-decode.c (undef_cmd_error): Ditto.
1393 * scm-lang.c (scm_lookup_name): Ditto.
1394 * tracepoint.c (trace_error): Ditto.
1395 * remote-utils.c (usage): Ditto.
1396 * remote.c (compare_sections_command): Ditto.
1397 Fix PR gdb/328.
1398
0e101458
AC
13992002-03-22 Andrew Cagney <ac131313@redhat.com>
1400
1401 * gdbtypes.c (append_composite_type_field): New function.
1402 (init_composite_type): New function.
1403 * gdbtypes.h (append_composite_type_field): Declare.
1404 (init_composite_type): Ditto.
1405
8e0662df
EZ
14062002-03-22 Elena Zannoni <ezannoni@redhat.com>
1407
1408 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 1409 function.
8e0662df
EZ
1410 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1411 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1412 structure returning convention for SYSV ABI case, but not
1413 for GNU/Linux, FreeBSD, or NetBSD.
1414
3121eff0
DJ
14152002-03-22 Daniel Jacobowitz <drow@mvista.com>
1416
1417 * symtab.h (lookup_block_symbol): Add mangled_name argument
1418 to prototype.
1419
1420 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1421 with new mangled_name argument.
1422 * linespec.c (decode_line_1): Likewise.
1423 * valops (value_of_this): Likewise.
1424 * symtab.c (lookup_transparent_type): Likewise.
1425 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1426 (lookup_symbol): If we are given a mangled name, pass it down
1427 to lookup_symbol_aux.
1428 (lookup_block_symbol): If we are given a mangled name to check
1429 against, only return symbols which match it.
1430
349b409f
CF
14312002-03-22 Christopher Faylor <cgf@redhat.com>
1432
1433 * win32-nat.c (child_create_inferior): Check for proper shell to use
1434 here, in case the user changes it on the fly.
1435 (_initialize_inftarg): Remove shell path considerations.
1436
2a873819
EZ
14372002-03-21 Elena Zannoni <ezannoni@redhat.com>
1438
1439 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1440 for gdbarch_max_register_raw_size and max_register_virtual_size.
1441 Adjust copyright year.
1442
a1b9830c
DJ
14432002-03-21 Daniel Jacobowitz <drow@mvista.com>
1444
1445 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1446 in a function to cover the entire beginning of the function
1447 as well if it does not already.
1448
8b5790f2
TR
14492002-03-21 Tom Rix <trix@redhat.com>
1450
1451 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1452 (rs6000_ptrace64): Renamed from ptrace64.
1453
bdbe5747
MH
14542002-03-20 Martin M. Hunt <hunt@redhat.com>
1455
1456 * gdbserver/remote-utils.c (remote_open): Don't call
1457 getprotobyname, we're all using TCP here so just use
1458 IPPROTO_TCP.
7e336ba1 1459 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
1460
14612002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 1462
bdbe5747
MH
1463 * regcache.c (_initialize_regcache): No need to call
1464 build_regcache() at this time; it gets called whenever
1465 the gdbarch changes.
1466
7781cd62
DB
14672002-03-20 David O'Brien <obrien@FreeBSD.org>
1468
1469 * sparc-nat.c: Include sys/param.h where possible.
1470
f65ca430
DJ
14712002-03-20 Daniel Jacobowitz <drow@mvista.com>
1472
1473 Fix PR gdb/422.
1474 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1475 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1476 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1477 complex types.
1478 * stabsread.c (rs6000_builtin_type): Likewise.
1479 (read_sun_floating_type): Likewise.
1480
0c867556
PS
14812002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1482
1483 * stabsread.c (read_member_functions): Remove skip code for duplicate
1484 constructor/destructor methods. Use standard parsing for these
1485 methods and just do not chain them to the list of methods after
1486 parsing.
1487
12b9c64f
AO
14882002-03-19 Alexandre Oliva <aoliva@redhat.com>
1489
1490 * coffread.c: Remove redundant static declarations. Replace
1491 occurrences of `PTR' with `void *'.
1492 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1493 * top.h (quit_cover): Likewise.
1494 * defs.h (catch_errors): Likewise.
1495
349c5d5f
AC
14962002-03-18 Andrew Cagney <ac131313@redhat.com>
1497
1498 * defs.h (XMALLOC): Define.
1499 * gdb-events.sh (XMALLOC): Delete macro.
1500 * gdb-events.c, gdb-events.h: Regenerate.
1501 * gdbarch.sh (XMALLOC): Delete macro.
1502 * gdbarch.c: Regenerate.
1503 * serial.c (XMALLOC): Delete macro.
1504 * ui-file.c (XMALLOC): Ditto.
1505 * ser-unix.h (XMALLOC): Ditto.
1506 * sh-tdep.c (XMALLOC): Ditto.
1507 * ui-out.c (XMALLOC): Ditto.
1508 * utils.c (XMALLOC): Ditto.
1509 * i386-tdep.c (XMALLOC): Ditto.
1510 * gdb-events.c (XMALLOC): Ditto.
1511 * d10v-tdep.c (XMALLOC): Ditto.
1512 * cli-out.c (XMALLOC): Ditto.
1513
1514 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1515 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1516 * ui-file.c, ui-out.c: Ditto.
1517
7d0766f3
AC
15182002-03-18 Andrew Cagney <ac131313@redhat.com>
1519
1520 * command.h (struct cmd_list_element): Add field context.
1521 (set_cmd_context, get_cmd_context): Declare.
1522 * cli/cli-decode.h: Ditto.
1523 * cli/cli-decode.c (get_cmd_context): New function.
1524 (set_cmd_context): New function.
1525 (add_cmd): Initialize context.
1526 Part of fixing PR gdb/145 and PR gdb/146.
1527
5913bcb0
AC
15282002-03-17 Andrew Cagney <ac131313@redhat.com>
1529
1868c04e
AC
1530 * cli/cli-decode.c (cmd_type): New function.
1531 * command.h (cmd_type): Declare.
1532 * infrun.c (set_schedlock_func): Call function cmd_type.
1533 * kod.c (kod_set_os): Call cmd_type.
1534 * cris-tdep.c (cris_version_update): Use function cmd_type.
1535 (cris_mode_update, cris_abi_update): Ditto.
1536
5913bcb0
AC
1537 * command.h: (execute_cmd_post_hook): Declare.
1538 (execute_cmd_pre_hook): Declare.
1539 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1540 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1541 functions. Execute pre/post hook while ensuring that afterwords
1542 hook_in is cleared.
1543 * top.c (execute_command): Use execute_cmd_post_hook, and
1544 execute_cmd_pre_hook to execute pre/post commands.
1545 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1546 hook_stop_stub.
1547 (hook_stop_stub): Call execute_cmd_pre_hook.
1548
b51450c9
AC
15492002-03-17 Andrew Cagney <ac131313@redhat.com>
1550
1551 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1552 set'' and this leads to a core dump. Move xstrdup of
1553 operating_system to after check that it is not NULL.
1554
f66c9f11
AC
15552002-03-17 Andrew Cagney <ac131313@redhat.com>
1556
8e694ecf
AC
1557 * kod.c (kod_set_os): Remove unnecessary check that
1558 ``command->type'' is set_cmd.
1559
f66c9f11
AC
1560 * valprint.c (set_input_radix): Use input_radix.
1561 (set_output_radix): Use output_radix.
1562 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1563 isn't reverted.
1564
9d01611c
AC
15652002-03-16 Andrew Cagney <ac131313@redhat.com>
1566
1567 * value.h (struct value): Delete field ``substring_addr''. Change
1568 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
1569 force_core_addr_align and force_pointer_aligh.
1570
1571 * value.h (struct value): Fix typo in above change.
9d01611c 1572
4156bb53
PS
15732002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1574
1575 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1576 to fix internal_error from ``maintenance print architecture''.
1577
0e5e3ea6
PS
15782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1579
1580 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1581 for gcc versions after gcc-2.8.1.
1582
9b013045
PS
15832002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1584
1585 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1586 for method resolution. Restore adjustment of ``this'' pointer after
1587 calling value_struct_elt, which was accidentally removed during the
1588 HP merge.
1589
376c9600
AC
15902002-03-15 Andrew Cagney <ac131313@redhat.com>
1591
1592 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1593 value_of_register.
1594 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1595 get_saved_register.
1596 * value.h (value_of_register): Update.
1597
a4db0f07
RH
15982002-03-14 Richard Henderson <rth@redhat.com>
1599
1600 * configure.in: Detect declaration for canonicalize_file_name.
1601 * utils.c (canonicalize_file_name): Declare, if needed.
1602 (gdb_realpath): Prefer realpath if available and usable.
1603 * config.in, configure: Rebuild.
1604
96383835
RH
16052002-03-14 Richard Henderson <rth@redhat.com>
1606
1607 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1608 a constant array bound.
1609
1610 * MAINTAINERS: Add myself to write-after-approval.
1611
75245b24
MS
16122002-03-14 Michael Snyder <msnyder@redhat.com>
1613
1614 * symfile.c (syms_from_objfile): Return immediately if no syms.
1615 (symbol_file_add): Return immediately if no syms.
1616 (find_sym_fns): Return immediately if no syms.
1617
e641a1ca
ML
16182002-03-13 Michal Ludvig <mludvig@suse.cz>
1619
1620 * gdbserver/remote-util.c (remote_open): Print remote-side's
1621 IP address when remote debugging over the network.
7e336ba1 1622
df08bfec
DB
16232002-03-12 David O'Brien <obrien@FreeBSD.org>
1624
1625 * config/sparc/fbsd.mh: Fix copyright.
1626 * config/sparc/fbsd.mt: Likewise.
1627
9a57864f
RE
16282002-03-11 Richard Earnshaw <rearnsha@arm.com>
1629
1630 * MAINTAINERS: Fix typo in name of gdb warnings option.
1631 (x86-64): Fix formating so that this can be parsed by awk.
1632
dd7bf85e
DJ
16332002-03-10 Daniel Jacobowitz <drow@mvista.com>
1634
1635 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1636 * defs.h: Include "gdb/signals.h".
1637 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1638
33a0a2ac
ML
16392002-03-10 Michal Ludvig <mludvig@suse.cz>
1640
1641 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 1642 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
1643 from x86-64-tdep.h
1644
dd824b04
DJ
16452002-03-10 Daniel Jacobowitz <drow@mvista.com>
1646 Don Howard <dhoward@redhat.com>
1647
1648 * mips-tdep.c (ST0_FR): Define.
1649 (mips2_fp_compat): New function, temporarily disabled.
1650 (mips_read_fp_register_single): New function.
1651 (mips_read_fp_register_double): New function.
1652 (mips_print_register): Use them.
1653 (do_fp_register_row): Likewise.
1654
6a41ff59
AC
16552002-03-09 Andrew Cagney <ac131313@redhat.com>
1656
1657 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1658 approval''.
1659
4ea09c10
PS
16602002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1661
1662 * stabsread.c (read_member_functions): Fix is_stub test for
1663 static member functions, improve comment.
1664
6ccc741d
RE
16652002-03-07 Richard Earnshaw <rearnsha@arm.com>
1666
1667 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1668 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1669 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1670 commands that set boolean values.
1671 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1672 (arm_rdi_resume): Always initialize PC.
1673 (arm_rdi_open): Don't use rslt as a boolean.
1674 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1675 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1676 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1677 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1678
438013df
AO
16792002-03-06 Alexandre Oliva <aoliva@redhat.com>
1680
1681 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1682 * configure: Rebuilt.
1683
70ed8774
SC
16842002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1685
1686 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1687 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1688
5ba2abeb
AC
16892002-03-06 Andrew Cagney <ac131313@redhat.com>
1690
1691 * cli/cli-decode.c (set_cmd_completer): New function.
1692 * command.h (set_cmd_completer): Declare.
1693 * cli/cli-decode.h (set_cmd_completer): Ditto.
1694
1695 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1696 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1697 * win32-nat.c (_initialize_inftarg): Ditto.
1698 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1699 * proc-api.c (_initialize_proc_api): Ditto.
1700 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1701 * source.c (_initialize_source): Ditto.
1702 * exec.c (_initialize_exec): Ditto.
1703 * solib.c (_initialize_solib): Ditto.
1704 * top.c (init_main): Ditto.
1705 * tracepoint.c (_initialize_tracepoint): Ditto.
1706 * symfile.c (_initialize_symfile): Ditto.
1707 * printcmd.c (_initialize_printcmd): Ditto.
1708 * infcmd.c (_initialize_infcmd): Ditto.
1709 * corefile.c (_initialize_core): Ditto.
1710
f779ca99
AC
17112002-03-05 Andrew Cagney <ac131313@redhat.com>
1712
1713 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1714
01a3934b
AC
17152002-03-05 Andrew Cagney <ac131313@redhat.com>
1716
1717 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1718
37057839
AC
17192002-03-05 Andrew Cagney <ac131313@redhat.com>
1720
1721 * NEWS: Update headings, 5.2 has branched.
1722
c6ecbae5
DJ
17232002-03-04 Daniel Jacobowitz <drow@mvista.com>
1724
1725 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1726 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1727 (register_addr, REGISTER_RAW_SIZE): Likewise.
1728 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1729 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1730
e9f30c21
ML
17312002-03-03 Michal Ludvig <mludvig@suse.cz>
1732
1733 * MAINTAINERS (x86-64): Add myself.
1734 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1735 changed value_ptr -> struct value *
1736
54394ac3
DB
17372002-03-01 David O'Brien <obrien@FreeBSD.org>
1738
1739 * configure.host (sparc64-*-freebsd): Add.
1740 * configure.tgt: Likewise.
1741 * config/sparc/fbsd.mh: New file.
1742 * config/sparc/fbsd.mt: Likewise.
1743 * config/sparc/nm-fbsd.h: Likewise.
1744 * config/sparc/tm-fbsd.h: Likewise.
1745
bfe95955
DJ
17462002-03-01 Daniel Jacobowitz <drow@mvista.com>
1747
1748 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1749 regformats/reg-s390x.dat.
1750
f33c6cbf
AC
17512002-03-01 Andrew Cagney <ac131313@redhat.com>
1752
1753 * utils.c: Add FIXME explaining true/false problem.
1754
5ecaa7dd
AC
17552002-02-28 Andrew Cagney <ac131313@redhat.com>
1756
1757 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1758
2a251cc2
MC
17592002-02-28 Michael Chastain <mec@shout.net>
1760
1761 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1762
6a8031a3 17632002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
1764
1765 * gdbserver/linux-s390-low.c: New file.
1766 * regformats/reg-s390.dat: New file.
1767 * regformats/reg-s390x.dat: New file.
1768 * gdbserver/configure.srv: Add S/390.
1769 * gdbserver/Makefile.in: Add S/390.
1770 * configure.tgt: Enable gdbserver for S/390.
1771
ac469903
EZ
17722002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1773
1774 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1775 first line of the doc string for "info dos", except at the end of
1776 the sentence, since the short help stops at the first period.
1777
985cb1a3
JM
17782002-02-28 Jason Merrill <jason@redhat.com>
1779
1780 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1781
c570663e
FF
17822002-02-27 Fred Fish <fnf@redhat.com>
1783
1784 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1785 comment (dumy -> dummy).
1786
43630227
PS
17872002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1788
1789 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1790
b84911e8
RB
17912002-02-27 Rodney Brown <rbrown64@csc.com.au>
1792
1793 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1794
58caa3dc
DJ
17952002-02-27 Daniel Jacobowitz <drow@mvista.com>
1796
1797 * gdbserver/acconfig.h: New file.
1798 * gdbserver/i387-fp.c: New file.
1799 * gdbserver/i387-fp.h: New file.
1800 * gdbserver/linux-x86-64.c: New file.
1801 * regformats/reg-x86-64.dat: New file.
1802 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1803 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1804 * gdbserver/configure.in: Add support for regsets.
1805 * gdbserver/config.in: Regenerate.
1806 * gdbserver/configure: Regenerate.
1807 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1808 * gdbserver/linux-low.h: New file.
1809 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1810 for regsets.
1811 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1812 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1813 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1814 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1815 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1816 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1817 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1818 "i387-fp.h". Add PTRACE_GETREGS and friends.
1819 * gdbserver/regcache.c (supply_register): New function.
1820 (supply_register_by_name): New function.
1821 (collect_register): New function.
1822 (collect_register_by_name): New function.
1823
93652174
DJ
18242002-02-27 Daniel Jacobowitz <drow@mvista.com>
1825
1826 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1827 (config.status): Add configure.srv dependency.
1828 (server_h): Add config.h dependency.
1829
a02e4a61
DJ
18302002-02-27 Daniel Jacobowitz <drow@mvista.com>
1831
1832 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1833 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1834 * gdbserver/configure.srv: Change i386-*-linux* to use
1835 reg-i386-linux.o.
1836
ce0eebec
AC
18372002-02-26 Andrew Cagney <ac131313@redhat.com>
1838
1839 * x86-64-tdep.c: Re-indent. Update copyright date.
1840
82dbc5f7
AC
18412002-02-26 Andrew Cagney <ac131313@redhat.com>
1842
1843 From Michal Ludvig <mludvig@suse.cz>:
1844 * x86-64-tdep.c (value.h): Delete.
1845 (gdb_assert.h): Include.
1846 (x86_64_register_convert_to_virtual,
1847 x86_64_register_convert_to_raw ): Add check which lets only
1848 floating-point values to be converted.
1849 (value_push): Delete.
1850 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1851 (i386_gdbarch_init): Number of register_bytes fixed.
1852
e4621584
AC
18532002-02-26 Andrew Cagney <ac131313@redhat.com>
1854
1855 * MAINTAINERS: Add x86-64 target.
1856
81a9a963
AC
18572002-02-26 Andrew Cagney <ac131313@redhat.com>
1858
1859 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1860 * osfsolib.c (solib_map_sections): Ditto.
1861 * irix5-nat.c (solib_map_sections): Ditto.
1862 * corelow.c (gdb_check_format): Ditto.
1863 * symfile.c (symfile_bfd_open): Ditto.
1864 * solib.c (solib_map_sections): Ditto.
1865 Fix PR gdb/354.
7e336ba1 1866
0f017ab9
AC
18672002-02-26 Andrew Cagney <ac131313@redhat.com>
1868
1869 * remote.c (_initialize_remote): By default, disable ``e'' and
1870 ``E'' step out-of-range packets.
1871
75738c29
AS
18722002-02-26 Andreas Schwab <schwab@suse.de>
1873
1874 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1875 m68k_linux_frame_saved_pc.
1876 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1877 in_sigtramp.
1878 (SIGCONTEXT_PC_OFFSET): Remove.
1879 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1880 m68k_linux_sigtramp_saved_pc): New functions.
1881 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1882 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1883 (UCONTEXT_PC_OFFSET): Define.
1884 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1885 non-RT and RT signal trampolines.
1886
7e8ed687
RE
18872002-02-26 Richard Earnshaw <rearnsha@arm.com>
1888
1889 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1890 (TARGET_NBPG, STACK_END_ADDR): Delete
1891 (VARIABLES_INSIDE_BLOCK): Delete.
1892
6972bc8b
AC
18932002-02-25 Andrew Cagney <ac131313@redhat.com>
1894
1895 * utils.c (perror_with_name): Make string parameter constant.
1896 (print_sys_errmsg): Ditto.
1897 (query): Ditto.
1898 * defs.h (perror_with_name): Update.
1899 (print_sys_errmsg): Update.
1900 (query): Update.
1901
aa32f823
DJ
19022002-02-25 Daniel Jacobowitz <drow@mvista.com>
1903
1904 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1905 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1906
19caaa45
PS
19072002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1908
1909 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1910 if it already matches the current architecture from the exec file.
1911 Include arch-utils.h for gdbarch_info_init prototype.
1912 * Makefile.in (rs6000-nat.o): Update dependencies.
1913
d951901f
EZ
19142002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1915
1916 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1917 list of exported variables.
1918
7ea81414
DJ
19192002-02-24 Daniel Jacobowitz <drow@mvista.com>
1920
1921 * gdbserver/configure.srv: New file.
1922 * gdbserver/configure.in: Use configure.srv instead
1923 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1924 from it.
1925 * gdbserver/configure: Regenerated.
1926 * gdbserver/terminal.h: New file.
1927 * gdbserver/Makefile.in: Update for configure changes. Remove
1928 more unneeded include paths.
1929
080fe24b
AC
19302002-02-24 Andrew Cagney <ac131313@redhat.com>
1931
1932 From wiz at danbala:
1933 * config/sparc/tm-sp64.h: Fix grammar and typos.
1934 Fix PR gdb/287.
1935
8605d56e
AC
19362002-02-24 Andrew Cagney <ac131313@redhat.com>
1937
1938 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
1939 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1940 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1941 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
1942 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1943 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1944 * s390-tdep.c: Ditto.
92362027
AC
1945 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1946 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1947 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1948 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1949 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1950 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1951 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1952 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1953 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1954 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 1955 Fix PR gdb/378.
7e336ba1 1956
8ed32cc0
AC
19572002-02-23 Andrew Cagney <ac131313@redhat.com>
1958
a3007b6f
AC
1959 * lin-thread.c: Delete file.
1960 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1961 to gdb_proc_service.h.
1962 * configure: Re-generate.
1963
50a9e2f1
AC
1964 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1965 * serial.c (serial_open): Delete check for "ocd".
1966 Fix PR gdb/349.
1967
8b6e7932
AC
1968 * Makefile.in (linux-thread.o): Delete target.
1969 * linux-thread.c: Delete file.
1970
d155c46b
AC
1971 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1972 renamed SH files to be consistent.
1973
8ed32cc0
AC
1974 * symtab.c (sort_search_symbols): Use xfree.
1975
0e18d038
RE
19762002-02-23 Richard Earnshaw <rearnsha@arm.com>
1977
1978 * arm-linux-tdep.c (arm_linux_init_abi): Register
1979 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1980 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1981 definition with undef, since we don't want the sysvr4 definition.
1982 (SKIP_TRAMPOLINE_CODE): Likewise.
1983
27aac7ff
AC
19842002-02-23 Andrew Cagney <ac131313@redhat.com>
1985
1986 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1987
1988 * configure.in: (AC_CHECK_FUNCS) Added test for
1989 canonicalize_file_name Regenerated.
1990 * config.in, configure: Regenerated.
1991 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1992 defined use canonicalize_file_name.
7e336ba1 1993
65a6e0ee
MC
19942002-02-23 Michael Chastain <mec@shout.net>
1995
1996 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1997
47b95330
AC
19982002-02-23 Andrew Cagney <ac131313@redhat.com>
1999
2000 * README: Remove references to cygnus.com.
2001 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2002 dot com'' form. Remove references to cygnus.com and sourceware.
2003
696f451b
AC
20042002-02-23 Andrew Cagney <ac131313@redhat.com>
2005
2006 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2007 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2008 1003.1-2001 no longer allows "head -1".
2009 * gdb/Makefile.in (version.c): Likewise.
2010 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2011 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2012 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2013
bbaca940
AC
20142002-02-23 Andrew Cagney <ac131313@redhat.com>
2015
2016 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2017 * command.h (cmd_cfunc_eq): Declare.
2018 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2019
2020 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2021 ``struct cmd_list_element *''.
2022 * cli/cli-cmds.c (is_complete_command): Update. Use
2023 cmd_cfunc_eq.
2024 * top.c (execute_command): Pass the command to
2025 is_complete_command.
2026 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2027
b8b8b047
AC
20282002-02-23 Andrew Cagney <ac131313@redhat.com>
2029
2030 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2031 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2032 architecture defines.
2033 * s390-tdep.c (s390_gdbarch_init): Likewise.
2034
19d3fc80
RE
20352002-02-23 Richard Earnshaw <rearnsha@arm.com>
2036
2037 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2038 (arm_linux_push_arguments): Likewise.
2039 (arm_linux_init_abi): Register them. Also register linux-specific
2040 call_dummy_words.
2041 (find_minsym_and_objfile): Use strcmp, not STREQ.
2042 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2043 (arm_linux_call_dummy_words): Delete declaration.
2044 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2045 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2046 declarations.
2047 (LOWEST_PC): Delete.
2048
3ab13650
PS
20492002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2050
2051 * maint.c (print_section_info): Do not prepend `0x' to filepos
2052 output, it will be handled by local_hex_string_custom.
2053
19d3fc80 20542002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
2055
2056 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2057 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2058 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2059
d85a5daf
JB
20602002-02-22 Jim Blandy <jimb@redhat.com>
2061
2062 Indicate that the bcache functions don't change the strings
2063 they're passed.
2064 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2065 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2066
eeb25b8a
PM
20672002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2068
2069 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2070
6badb179
CF
20712002-02-21 Christopher Faylor <cgf@redhat.com>
2072
2073 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2074 find the complete path to a loaded DLL.
2075
e8717518
FF
20762002-02-21 Fred Fish <fnf@redhat.com>
2077
2078 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2079 that marks the end of the range of a function, enter a line number
2080 entry that has a line number of zero and a PC offset that matches
2081 the end of the function. This starts a range of PC's for which no
2082 line number information is known.
2083 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2084 PC's for which no line number info is found (line number is zero)
2085 then we didn't find any valid line information.
2086 * symtab.h: Document use of zero line number entry.
2087
9abe5450
EZ
20882002-02-21 Elena Zannoni <ezannoni@redhat.com>
2089
2090 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2091 (have_ptrace_getvrregs): Define for run time checks.
2092 (gdb_vrregset_t): New type for Altivec register handling.
2093 (fetch_register, store_register): Fetch/store altivec register
2094 when needed.
2095 (fetch_altivec_register, store_altivec_register): New functions.
2096 (supply_vrregset, fill_vrregset): New functions.
2097 (fetch_altivec_registers, store_altivec_registers): New functions.
2098 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2099 registers as well.
2100
aaa38bb5
AJ
21012002-02-21 Jiri Smid <smid@suse.cz>
2102
2103 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2104
b34db576
RE
21052002-02-21 Richard Earnshaw <rearnsha@arm.com>
2106
2107 * Makefile.in (armnbsd-nat.o): Update dependencies.
2108 * armnbsd-nat.c (supply_gregset): New function. Common code to
2109 supply the integer register set.
2110 (supply_fparegset): New function. Similar for FPA registers.
2111 (fetch_regs, fetch_fp_regs): Use them.
2112 (fetch_core_registers): Likewise.
2113 (fetch_elfcore_registers): New function.
2114 (arm_netbsd_elfcore_fns): New core-file type specification.
2115 (_initialize_arm_netbsd_nat): Register it.
2116
3e56fc4b
RE
21172002-02-21 Richard Earnshaw <rearnsha@arm.com>
2118
2119 * armnbsd-nat.c: Include gdbcore.h.
2120 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2121 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2122 'void' to declaration, to shut up ARI.
2123 (fetch_core_registers): Make static. Rewrite using supply_register.
2124 (arm_netbsd_core_fns): New core-file type specification.
2125 (_initialize_arm_netbsd_nat): New function.
2126
097f6b0b
CF
21272002-02-21 Christopher Faylor <cgf@redhat.com>
2128
2129 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2130 value.
2131
c914e0cc
CF
21322002-02-20 Christopher Faylor <cgf@redhat.com>
2133
2134 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2135 fails.
2136
385fa495
DJ
21372002-02-20 Daniel Jacobowitz <drow@mvista.com>
2138
2139 * jv-exp.y (parse_number): Change type of implicit longs
2140 to builtin_type_uint64.
2141
e5f1222d
DJ
21422002-02-20 Daniel Jacobowitz <drow@mvista.com>
2143
2144 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2145 to be an integer instead of a `union wait'.
2146
75c9abc6
DJ
21472002-02-20 Daniel Jacobowitz <drow@mvista.com>
2148
2149 * mips-linux-nat.c: Call the operating system GNU/Linux.
2150 * mips-linux-tdep.c: Likewise.
2151 * mips-tdep.c: Likewise.
2152
551792a5
DJ
21532002-02-20 Daniel Jacobowitz <drow@mvista.com>
2154
2155 Fix PR gdb/265.
2156 * jv-exp.y (parse_number): Handle 64-bit integers.
2157
ee6e2b82
DJ
21582002-02-20 Daniel Jacobowitz <drow@mvista.com>
2159
2160 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2161 AC_STDC_HEADERS to AC_HEADER_STDC.
2162 * gdbserver/configure: Regenerated.
2163
a48442a0
RE
21642002-02-20 Richard Earnshaw <rearnsha@arm.com>
2165
2166 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2167 is defined.
2168 * sparc-tdep.c (get_longjmp_target): Likewise.
2169
fe419ffc
RE
21702002-02-20 Richard Earnshaw <rearnsha@arm.com>
2171
2172 * News: Add news about ARM and Multi-arch. Mention the new target
2173 arm*-*-netbsd*.
2174
5832ed7e
JB
21752002-02-19 Jim Blandy <jimb@redhat.com>
2176
2177 * stabsread.c (error_type_complaint): Improve error message.
2178
84563040
DJ
21792002-02-19 Daniel Jacobowitz <drow@mvista.com>
2180
2181 * gdbserver/README: Update documentation.
2182 * gdbserver/configure.in: Update configury to match documentation.
2183 * gdbserver/Makefile.in: Likewise.
2184 * gdbserver/configure: Regenerated.
2185 * gdbserver/aclocal.m4: New file, generated by aclocal.
2186 * gdbserver/config.in: New file, generated by autoheader.
2187
375fd65b
RE
21882002-02-19 Richard Earnshaw <rearnsha@arm.com>
2189
2190 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2191 armnbsd-nat.c.
2192
08216dd7
RE
21932002-02-19 Richard Earnshaw <rearnsha@arm.com>
2194
2195 * arm-tdep.h (enum arm_float_model): New enum.
2196 (struct gdbarch_tdep): Add fp_model.
2197 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2198 up floating-point conversions until we know the floating-point model
2199 in use by the inferior. Don't complain about being unable to
2200 determine the ABI of the inferior when we don't have one.
2201 (arm_extract_return_value): Support different floating-point models.
2202 (arm_store_return_value): Likewise.
aaa38bb5 2203 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
2204 ARM_FLOAT_SOFT.
2205 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2206
65d6d66a
PS
22072002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2208
2209 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2210 of ``current_gdbarch''.
2211
47221191
RE
22122002-02-19 Richard Earnshaw <rearnsha@arm.com>
2213
2214 * armnbsd-nat.c : ANSIfy all function declarations.
2215 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2216 (fetch_inferior_registers): Re-implement in terms of above.
2217 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2218 (store_inferior_registers): Re-implement in terms of above.
2219
fdf39c9a
RE
22202002-02-19 Richard Earnshaw <rearnsha@arm.com>
2221
aaa38bb5 2222 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
2223 kernel.
2224 * arm-linux-tdep.c: Likewise.
2225 * config/arm/tm-linux.h: Likewise.
2226
93247f88
RE
22272002-02-19 Richard Earnshaw <rearnsha@arm.com>
2228
2229 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2230 * config/arm/nbsd.mt (TM_FILE): Delete.
2231 * config/arm/tm-nbsd.h: Delete.
2232
d7b486e7
RE
22332002-02-19 Richard Earnshaw <rearnsha@arm.com>
2234
2235 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2236 Initialize CALL_DUMMY_LENGTH.
2237
41d39a95
RE
22382002-02-19 Richard Earnshaw <rearnsha@arm.com>
2239
2240 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2241 function.
2242 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 2243 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
2244 defines one thing and that is incorrect for this port.
2245 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2246
e1195560
PM
22472002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2248
2249 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2250
c1748f97
PM
22512002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2252
2253 * win32-nat.c (display_selector): New function. Displays information
2254 about the information returned by GetThreadSelectorEntry API function.
2255 (display_selectors): New function. Displays the infomation of
2256 the selector given as argument, or of CS, DS ans FS selectors
2257 if no argument is given.
2258 ( _initialize_inftarg): Add "w32" as info prefix command.
2259 Add "info w32 selector" as command calling display_selectors.
2260
e41e6bbf
PM
22612002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2262
2263 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2264 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2265 if not defined.
2266
0d3a9f48
RE
22672002-02-18 Richard Earnshaw <rearnsha@arm.com>
2268
2269 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2270
3fb4b924
RE
22712002-02-18 Richard Earnshaw <rearnsha@arm.com>
2272
2273 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2274 (arm_fix_call_dummy): Call it.
2275 (arm_call_dummy_breakpoint_offset): Delete.
2276 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2277 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2278
7f55af32
AC
22792002-02-18 Andrew Cagney <ac131313@redhat.com>
2280
2281 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2282 Default to func_frame_chain_valid.
2283 * gdbarch.h, gdbarch.c: Re-generate.
2284 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2285
05f13b9c
EZ
22862002-02-18 Elena Zannoni <ezannoni@redhat.com>
2287
2288 * ppc-linux-nat.c: Update copyright.
2289 (fetch_register, store_register): Add tid parameter, don't compute
2290 tid here.
2291 (fetch_ppc_registers, store_ppc_registers): Add tid
2292 parameter. Pass it along to callees.
2293 (fetch_inferior_registers, store_inferior_registers): Compute tid
2294 here, and pass it to calleed functions.
2295 (fill_gregset, supply_fpregset): Clean up formatting.
2296
d7afb4c9
RE
22972002-02-18 Richard Earnshaw <rearnsha@arm.com>
2298
2299 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2300 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2301
9df628e0
RE
23022002-02-18 Richard Earnshaw <rearnsha@arm.com>
2303
2304 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2305 * gdbarch.c gdbarch.h: Regenerate.
2306 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2307 function.
2308 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2309 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2310 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2311
2312 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2313 * arm-tdep.c (arm_get_longjmp_target): New function.
2314 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2315 this to a positive value register arm_get_longjmp_target as the
2316 longjmp handler.
2317 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2318 (arm_linux_init_abi): Set up longjmp description in tdep.
2319 * armnbsd-nat.c (get_longjmp_target): Delete.
2320 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2321 description in tdep.
2322 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2323 (get_longjmp_target): Delete declaration.
2324 (GET_LONGJMP_TARGET): Delete.
2325 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2326 (GET_LONGJMP_TARGET): Delete.
2327
57bc8964
KB
23282002-02-17 Kevin Buettner <kevinb@redhat.com>
2329
2330 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2331 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2332 of ``current_gdbarch''.
2333
83d31a92
TT
23342002-02-17 Tom Tromey <tromey@redhat.com>
2335
2336 * cli/cli-cmds.c (compare_strings): New function.
2337 (complete_command): Only print each unique item once.
2338 * completer.h (complete_line): Declare.
2339 * completer.c (complete_line): New function.
2340 (line_completion_function): Use it.
2341
17ef5d92
AC
23422002-02-16 Andrew Cagney <ac131313@redhat.com>
2343
2344 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2345 * gdbarch.h, gdbarch.c: Re-generate.
2346
491b8946
DJ
23472002-02-16 Daniel Jacobowitz <drow@mvista.com>
2348
2349 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2350
23512002-02-16 Daniel Jacobowitz <drow@mvista.com>
2352
2353 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2354 * valops.c (value_arg_coerce): Don't take the address of a reference
2355 to convert an argument to a reference.
2356
dfe7f3ac
CF
23572002-02-15 Christopher Faylor <cgf@redhat.com>
2358
2359 * win32-nat.c (get_image_name): New function.
2360 (handle_load_dll): Use get_image_name function.
2361 (get_child_debug_event): Avoid registering debug events until possibly
2362 execed process is started.
2363 (child_create_inferior): Allow invocation via shell so that command
2364 line redirection, etc. works ok.
2365 (_initialize_inftarg): Add new command: "set shell" to control whether
2366 a shell is used to start a process.
2367
1d33e73a
DJ
23682002-02-15 Daniel Jacobowitz <drow@mvista.com>
2369
2370 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2371 instead of find_register_by_number.
2372 (cannot_store_register): Likewise.
2373
48cd0caa
PM
23742002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2375
aaa38bb5 2376 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
2377 fprintf_unfiltered (gdb_stderr, ...).
2378
8656e7d8
DJ
23792002-02-15 Daniel Jacobowitz <drow@mvista.com>
2380
2381 * gdbserver/gdbserver.1: Document --attach.
2382
66e810cd
RE
23832002-02-15 Richard Earnshaw <rearnsha@arm.com>
2384
2385 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2386 descriptions.
2387 * arm-tdep.c (arm_default_arm_le_breakpoint)
2388 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2389 (arm_default_thumb_be_breakpoint): New. Initialize them from
2390 traditional breakpoint defines.
2391 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2392 (arm_gdbarch_init): Initialize new breakpoint variables.
2393 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2394 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2395 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2396 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2397 code out to ...
2398 (arm_netbsd_init_abi_common): ... here; new function.
2399 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2400 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2401 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2402 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2403
97e03143
RE
24042002-02-15 Richard Earnshaw <rearnsha@arm.com>
2405
2406 * arm-tdep.h (enum arm_abi): New enum.
2407 (struct gdbarch_tdep): New structure.
2408 (LOWEST_PC): Provide a default.
2409 (arm_gdbarch_register_os_abi): Declare new function.
2410 * arm-tdep.c (arm_abi_names): New array.
2411 (process_note_abi_tag_sections): New function.
2412 (get_elfosabi): New function.
2413 (arm_gdbarch_register_os_abi): New function.
2414 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2415 support for that ABI has been built in, then call the appropriate
2416 configuration routine. Use gdbarch_num_regs() to get the number
2417 of registers.
2418 (arm_dump_tdep): New function.
2419 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2420 place-holder functions.
2421 (_initialize_arm_tdep): Register them.
2422 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2423
2424 * armnbsd-tdep.c: New file.
2425 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2426 * config/arm/nbsd.mt (TDEPFILES): Add it.
2427 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2428
2429 * armnbsd-nat.c: Include regcache.h.
2430 * Makefile.in (armnbsd-nat.o): Update dependency list.
2431
2432 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2433
ad68be46
DJ
24342002-02-14 Daniel Jacobowitz <drow@mvista.com>
2435
2436 * gdbserver/Makefile.in: Fix typos in target rules.
2437
003d6d1d
DJ
24382002-02-14 Daniel Jacobowitz <drow@mvista.com>
2439
aaa38bb5 2440 Fix part of PR gdb/267.
003d6d1d
DJ
2441 * linespec.c (find_methods): Handle constructors specially for now.
2442
6b230f1b
CV
24432002-02-14 Corinna Vinschen <vinschen@redhat.com>
2444
2445 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2446 handling.
2447 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2448 standard_coerce_float_to_double().
2449
1ea98d12
CF
24502002-02-14 Christopher Faylor <cgf@redhat.com>
2451
2452 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2453 GDBINIT_FILENAME.
2454
dd47e6fd
EZ
24552002-02-14 Elena Zannoni <ezannoni@redhat.com>
2456
2457 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2458 find_variant_by_name, because it confuses the multiarch
2459 framework. Return NULL if there isn't an architecture with the
2460 user supplied name, instead of forcing a different one without
2461 recording the change with the multiarch machinery.
2462 (find_variant_by_name): Delete.
2463
d7e39b9e
PS
24642002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2465
2466 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2467 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2468
76e42a4f
MH
24692002-02-13 Martin M. Hunt <hunt@redhat.com>
2470
aaa38bb5 2471 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
2472 print_frame_info_listing_hook, set current_source_symtab.
2473
0a30fbc4
DJ
24742002-02-14 Daniel Jacobowitz <drow@mvista.com>
2475
2476 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2477 and remove unused $(INCLUDE_DIR).
2478 Add regcache.c to OBS.
2479 Add generated register protocol files to clean target.
2480 Update dependencies for new objects, obsolete old target code.
2481
2482 * gdbserver/linux-low.c: Remove all platform-specific code to
2483 new files. Remove various dead code. Update to use regcache
2484 functionality.
2485 * gdbserver/remote-utils.c (fromhex): Add return statement
2486 to quiet warning.
2487 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2488 constant.
2489 (input_interrupt): Add integer parameter to match prototype
2490 of a signal handler.
2491 (outreg): Use register_data ().
2492 (prepare_resume_reply): Use gdbserver_expedite_regs.
2493 * gdbserver/server.c (main): Dynamically allocate own_buf because
2494 PBUFSIZ is no longer constant. Use registers_to_string () and
2495 registers_from_string ().
2496 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2497 for error (), fatal (), and warning (). Update definition of
2498 PBUFSIZ to use regcache functionality. Add include guard.
2499 * gdbserver/utils.c (fatal): Add missing ``const''.
2500 (warning): New function.
2501
2502 * regformats/regdat.sh: Include "regcache.h" in generated files.
2503 Provide init_registers () function.
2504 * regformats/regdef.h: Add prototype for set_register_cache ().
2505 Add include guard.
2506
2507 * gdbserver/linux-arm-low.c: New file.
2508 * gdbserver/linux-i386-low.c: New file.
2509 * gdbserver/linux-ia64-low.c: New file.
2510 * gdbserver/linux-m68k-low.c: New file.
2511 * gdbserver/linux-mips-low.c: New file.
2512 * gdbserver/linux-ppc-low.c: New file.
2513 * gdbserver/linux-sh-low.c: New file.
2514
2515 * gdbserver/regcache.c: New file.
2516 * gdbserver/regcache.h: New file.
2517
2518 * gdbserver/low-linux.c: Removed obsolete file.
2519
4cc841d0
DJ
25202002-02-14 Daniel Jacobowitz <drow@mvista.com>
2521
2522 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2523 * config/i386/linux.mt: Likewise.
2524 * config/ia64/linux.mt: Likewise.
2525 * config/m68k/linux.mh: Likewise.
2526 * config/powerpc/linux.mh: Likewise.
2527 * config/mips/linux.mt: Likewise.
2528
2529 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2530
2531 * config/i386/i386lynx.mh: Mark gdbserver variables
2532 as (currently) obsolete for this target.
2533 * config/i386/nbsd.mt: Likewise.
2534 * config/i386/nbsdelf.mt: Likewise.
2535 * config/m32r/m32r.mt: Likewise.
2536 * config/m68k/m68klynx.mh: Likewise.
2537 * config/m68k/nbsd.mt: Likewise.
2538 * config/m68k/sun3os4.mh: Likewise.
2539 * config/mips/vr5000.mt: Likewise.
2540 * config/ns32k/nbsd.mt: Likewise.
2541 * config/pa/hppabsd.mh: Likewise.
2542 * config/pa/hppaosf.mh: Likewise.
2543 * config/powerpc/nbsd.mt: Likewise.
2544 * config/rs6000/rs6000lynx.mh: Likewise.
2545 * config/s390/s390.mt: Likewise.
2546 * config/s390/s390x.mt: Likewise.
2547 * config/sparc/sparclynx.mh: Likewise.
2548 * config/sparc/sun4os4.mh: Likewise.
2549 * config/i386/x86-64linux.mt: Likewise.
2550 * config/sparc/linux.mh: Likewise.
2551
a85f51e7
DJ
25522002-02-14 Daniel Jacobowitz <drow@mvista.com>
2553
2554 * configure.tgt: Configure gdbserver only for known working
2555 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2556 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2557 SUBDIRS if it is configured. Update comment for ${nativefile}.
2558 * configure: Regenerated.
2559
65554fef
MS
25602002-02-13 Michael Snyder <msnyder@redhat.com>
2561
670a52db
MS
2562 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2563
6dbdc4a3
MS
2564 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2565 (default_gcore_mach): Just return 0, work around a problem in bfd.
2566 (default_gcore_target): OK to return NULL if exec_bfd is null.
2567 (make_mem_sec): Use a cast, avoid a warning.
2568
2569 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 2570 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
2571 sizeof (host pointer) != sizeof (target pointer)).
2572 (procfs_make_note_section): Avoid overflow in psargs string.
2573
aaa38bb5 2574 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
2575 implementation return an error.
2576
25772002-02-13 Rodney Brown <rbrown64@csc.com.au>
2578
2579 * procfs.c (procfs_make_note_section): Provide a default definition
2580 (for alpha-dec-osf4.0f). Fix typos.
2581
1e4d76e7
EZ
25822002-02-13 Elena Zannoni <ezannoni@redhat.com>
2583
2584 * linux-proc.c: Add include of regcache.h.
2585 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2586
b6d1a1d5
AC
25872002-02-13 Andrew Cagney <ac131313@redhat.com>
2588
2589 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
2590 * memattr.c (create_mem_region): Disallow useless empty region.
2591 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 2592 non-overlapping.
b6d1a1d5 2593
6c6ea35e
MC
25942002-02-13 Michael Chastain <mec@shout.net>
2595
2596 * defs.h: Kill CONST_PTR.
2597 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2598 * c-lang.c (c_builtin_types): Likewise.
2599 * ch-lang.c (ch_builtin_types): Likewise.
2600 * f-lang.c (f_builtin_types): Likewise.
2601 * language.c (unknown_builtin_types): Likewise.
2602 * m2-lang.c (m2_builtin_types): Likewise.
2603 * p-lang.c (pascal_builtin_types): Likewise.
2604 * scm-lang.c (c_builtin_types): Likewise.
2605
3e0b0f48
KS
26062002-02-13 Keith Seitz <keiths@redhat.com>
2607
2608 * arm-tdep.h (arm_get_next_pc): Add declaration.
2609
67255d04
RE
26102002-02-13 Richard Earnshaw <rearnsha@arm.com>
2611
2612 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2613 with other related struct-returning functions.
2614 (arm_extract_struct_value_address): New function.
2615 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2616 initialize float_format, double_format and long_double_format as
2617 appropriate to the endianness of the target.
2618 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2619 (arm_use_struct_convention): Delete declaration.
2620 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2621
079777f6
KS
26222002-02-13 Keith Seitz <keiths@redhat.com>
2623
2624 * defs.h (core_addr_to_string_nz): New function.
2625
34588f23
MK
26262002-02-13 Mark Kettenis <kettenis@gnu.org>
2627
2628 Apply missing bits of 2002-01-15 patch.
2629 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2630 (fill_fpregset): Use i387_fill_fsave.
2631
49b563f9
KS
26322002-02-12 Keith Seitz <keiths@redhat.com>
2633
49b563f9
KS
2634 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2635 (core_addr_to_string_nz): New function.
2636
aeb98c60
RE
26372002-02-11 Richard Earnshaw <rearnsha@arm.com>
2638
2639 * arm-linux-nat.c: Really include arm-tdep.h.
2640 * config/arm/tm-linux.h (struct type, struct value): Declare.
2641
65554fef
MS
26422002-02-11 Michael Snyder <msnyder@redhat.com>
2643
2644 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2645 (gcore section): Ifdef for Solaris and Unixware only.
2646 (procfs_do_thread_registers): Unixware needs one lwpstatus
2647 per thread (not one prstatus or pstatus).
2648 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2649 not over all gdb threads. For unixware, call elfcore_write_pstatus
2650 once before iterating over threads.
2651
34e8f22d
RE
26522002-02-11 Richard Earnshaw <rearnsha@arm.com>
2653
2654 * arm-tdep.h: New file.
2655 * arm-tdep.c: Include arm-tdep.h.
2656 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2657 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2658 (arm_print_float_info, arm_register_type, convert_to_extended)
2659 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2660 (arm_extract_return_value, arm_register_name): Make static.
2661 (arm_software_single_step): Similarly. Fix types in declaration.
2662 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2663 (arm_store_return_value, arm_store_struct_return): New functions.
2664 (arm_gdbarch_init): Register the above functions. Also register
2665 call_dummy_start_offset, sizeof_call_dummy_words,
2666 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2667 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 2668 max_register_virtual_size, register_size. Set up
34e8f22d
RE
2669 prologue_cache.saved_regs here, rather than ...
2670 (_initialize_arm_tdep): ... here.
2671 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2672 declarations.
2673 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2674 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2675 (arm_print_float_info, arm_register_type, convert_to_extended)
2676 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2677 (arm_extract_return_value, arm_register_name): Delete declarations.
2678 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2679 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2680 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2681 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2682 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2683 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2684 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2685 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2686 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2687 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2688 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2689 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2690 interface.
2691 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2692 * remote-rdi.c remote-rdp.c: Likewise.
2693 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2694 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2695 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2696 definition.
2697
2698 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2699 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2700 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2701 from non-ARM_ prefixed definitions.
2702 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2703 all uses of above.
2704 * remote-rdi.c remote-rdp.c: Likewise.
2705 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2706
148754e5
RE
27072002-02-11 Richard Earnshaw <rearnsha@arm.com>
2708
2709 * arm-tdep.c (arm_frameless_function_invocation)
2710 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2711 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2712 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2713 (arm_pop_frame, arm_get_next_pc): Make static.
2714 (arm_gdbarch_init): Register above in gdbarch structure.
2715 (arm_read_fp): Renamed from arm_target_read_fp.
2716 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2717 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2718 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2719 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2720 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2721 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2722 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
2723 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2724 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2725 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2726 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 2727
434d2d4f
DJ
27282002-02-10 Daniel Jacobowitz <drow@mvista.com>
2729
2730 * symtab.c (compare_search_syms): New function.
2731 (sort_search_symbols): New function.
2732 (search_symbols): Sort symbols after searching rather than
2733 before.
2734
55241689
AC
27352002-02-10 Andrew Cagney <ac131313@redhat.com>
2736
2737 * NEWS: Linux -> GNU/Linux.
2738
028c194b
AC
27392002-02-10 Andrew Cagney <ac131313@redhat.com>
2740
2741 * gdbarch.sh: For for level one methods, disallow a definition
2742 when partially multi-arched. Add comments explaining rationale.
2743 * gdbarch.h: Re-generate.
2744
6acf50cd
AC
27452002-02-10 Andrew Cagney <ac131313@redhat.com>
2746
2747 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2748 multi-arch partial.
aaa38bb5 2749
50248794
AC
27502002-02-10 Andrew Cagney <ac131313@redhat.com>
2751
2752 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2753 field. Use diff -u.
2754 * gdbarch.c: Re-generate.
2755
c30e0066
AC
27562002-02-10 Andrew Cagney <ac131313@redhat.com>
2757
9b56c5f3 2758 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
2759 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2760 partial.
2761
6e6d6484
AC
27622002-02-10 Andrew Cagney <ac131313@redhat.com>
2763
2764 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2765 multi-arch partial.
2766 (PUSH_ARGUMENTS): Switch to using predefault.
2767 * gdbarch.c: Regenerate.
2768
c203844d
AC
27692002-02-10 Andrew Cagney <ac131313@redhat.com>
2770
2771 * valops.c (PUSH_ARGUMENTS): Delete definition.
2772 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2773 partial. Default to default_push_arguments.
2774 * gdbarch.h, gdbarch.c: Regenerate.
2775
b5a2688f
AC
27762002-02-09 Andrew Cagney <ac131313@redhat.com>
2777
2778 * defs.h (throw_exception): Rename return_to_top_level. Update
2779 comments.
2780 * utils.c (error_stream, internal_verror, quit): Ditto.
2781 * top.c (throw_exception, catcher): Ditto.
2782 * sparclet-rom.c (sparclet_load): Ditto.
2783 * remote.c (interrupt_query, minitelnet): Ditto.
2784 * remote-sds.c (interrupt_query): Ditto.
2785 * remote-mips.c (mips_error, mips_kill): Ditto.
2786 * ocd.c (interrupt_query): Ditto.
2787 * monitor.c (monitor_interrupt_query): Ditto.
2788 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2789 * target.h: Update comment.
aaa38bb5 2790
b5a2688f 2791 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 2792
2fa5c1e0
AC
27932002-02-09 Andrew Cagney <ac131313@redhat.com>
2794
2795 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2796 default_double_format.
2797 * gdbarch.h, gdbarch.c: Re-generate.
2798 * findvar.c (floatformat_unknown): Delete variable definition.
2799 * doublest.h (floatformat_unknown): Delete variable declaration.
2800
da966255
JB
28012002-02-09 Jim Blandy <jimb@redhat.com>
2802
2803 * stabsread.c (read_type): Add code to parse Sun's syntax for
2804 prototyped function types.
2805
123a4891
AC
28062002-02-09 Andrew Cagney <ac131313@redhat.com>
2807
2808 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2809 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2810
fb39c8f3
PS
28112002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2812
2813 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2814 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2815 now _initialize_xcoffsolib gets called again and overrides the
2816 commands from solib.c in a native configuration.
2817
0b87a11d
MK
28182002-02-09 Mark Kettenis <kettenis@gnu.org>
2819
2820 * doublest.c (store_typed_floating): Don't try to return a value.
2821 Fixes PR gdb/290.
2822
bdc2fc72
JB
28232002-02-08 Jim Blandy <jimb@redhat.com>
2824
2825 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2826 is prototyped and has no arguments, print its argument list as
2827 `(void)'.
2828
da69bbcf
CD
28292002-02-08 Chris Demetriou <cgd@broadcom.com>
2830
2831 * MAINTAINERS (write-after-approval): Add myself.
2832 (paper-trail): I've escaped!
aaa38bb5 2833
b69571f5
CF
28342002-02-08 Christopher Faylor <cgf@redhat.com>
2835
2836 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2837 changes.
2838 (_initialize_check_for_gdb_ini): Ditto.
2839
f6871398
MH
28402002-02-08 Martin M. Hunt <hunt@redhat.com>
2841
2842 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2843 xaprintf -> xasprintf.
2844
4e52d31c
PM
28452002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2846
2847 * win32-nat.c: Remove use of printf and sprintf functions.
2848
39bbf761
RE
28492002-02-08 Richard Earnshaw <rearnsha@arm.com>
2850
2851 * arm-tdep.c (arm_frame_chain_valid): Make static.
2852 (arm_push_arguments): Likewise.
2853 (arm_gdbarch_init): New function.
2854 (_initialize_arm_tdep): Call it.
2855 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2856 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2857 (FRAME_CHAIN_VALID): Delete.
2858 (arm_frame_chain_valid): Delete declaration.
2859 (PUSH_ARGUMENTS): Delete.
2860 (arm_push_arguments): Delete declaration.
2861 (CALL_DUMMY_P): Delete.
2862
9c9532c9
CV
28632002-02-08 Andrew Cagney <ac131313@redhat.com>
2864 Corinna Vinschen <vinschen@redhat.com>
2865
2866 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2867 on builtin float types.
2868
4e8f7a8b
DJ
28692002-02-08 Daniel Jacobowitz <drow@mvista.com>
2870
2871 * utils.c: Include <curses.h> before "bfd.h".
2872 * tui/tui-hooks.c: Likewise.
2873 * tui/tui.c: Likewise.
2874 * tui/tuiCommand.c: Likewise.
2875 * tui/tuiData.c: Likewise.
2876 * tui/tuiDataWin.c: Likewise.
2877 * tui/tuiDisassem.c: Likewise.
2878 * tui/tuiGeneralWin.c: Likewise.
2879 * tui/tuiIO.c: Likewise.
2880 * tui/tuiLayout.c: Likewise.
2881 * tui/tuiRegs.c: Likewise.
2882 * tui/tuiSource.c: Likewise.
2883 * tui/tuiSourceWin.c: Likewise.
2884 * tui/tuiStack.c: Likewise.
2885 * tui/tuiWin.c: Likewise.
2886
cd4bffcf
EZ
28872002-02-07 Elena Zannoni <ezannoni@redhat.com>
2888
2889 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2890 to include space for pseudoregs as well. Update loops accordingly.
2891 (sh_fp_frame_init_saved_regs): Ditto.
2892 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2893
26806ce2
AC
28942002-02-07 Andrew Cagney <ac131313@redhat.com>
2895
2896 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2897 Add Richard Earnshaw to Arm maintainers.
2898
97fdab62
AC
28992002-02-07 Andrew Cagney <ac131313@redhat.com>
2900
a6b98203
AC
2901 * defs.h (warning_begin): Delete declaration.
2902
97fdab62
AC
2903 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2904 Delete macro.
2905
78b29b40
MS
29062002-02-07 Michael Snyder <msnyder@redhat.com>
2907
aaa38bb5 2908 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
2909 Logic bug, remove misplaced else.
2910
d8849953
KD
29112002-02-07 Klee Dienes <klee@apple.com>
2912
2913 * fork-inferior.c (fork_inferior): Add '!' to the list of
2914 characters that need to be quoted when building a string for the
2915 shell. Quote '!' specifically with a backslash, since CSH chokes
2916 when trying to evaluate "str!str".
aaa38bb5 2917
095778a0
NC
29182002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2919
2920 * rdi-share/host.h: Only provide a typedef for bool if it is not
2921 defined.
2922
1900040c
MS
29232002-02-04 Michael Snyder <msnyder@redhat.com>
2924
2925 * breakpoint.h (enum bptype): Add new overlay event bp type.
2926 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 2927
1900040c
MS
2928 * breakpoint.c (create_internal_breakpoint): New function.
2929 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2930 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2931 (create_thread_event_breakpoint): Ditto.
2932 (create_solib_event_breakpoint): Ditto.
2933 (create_overlay_event_breakpoint): New function.
2934 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2935 (update_breakpoints_after_exec): Delete and re-initialize
2936 overlay event breakpoints after an exec. Add FIXME comment
2937 about longjmp breakpoint.
2938 (print_it_typical): Ignore overlay event breakpoints.
2939 (print_one_breakpoint): Ditto.
2940 (mention): Ditto.
2941 (bpstat_what): Do not stop for overlay event breakpoints.
2942 (delete_breakpoint): Don't delete overlay event breakpoints.
2943 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2944 (breakpoint_re_set): Re-create overlay event breakpoint.
2945
2946 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2947 (overlay_manual_command): Disable overlay breakpoints.
2948 (overlay_off_command): Disable overlay breakpoints.
2949
082fc60d
RE
29502002-02-06 Richard Earnshaw <rearnsha@arm.com>
2951
2952 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2953 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2954 to here from config/tm-arm.h.
2955 (coff_sym_is_thumb): Make static.
2956 (arm_elf_make_msymbol_special): New function.
2957 (arm_coff_make_msymbol_special): New function.
2958 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2959 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2960 (coff_sym_is_thumb): Delete declaration.
2961 (arm_elf_make_msymbol_special): Declare.
2962 (arm_coff_make_msymbol_special): Declare.
2963 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2964 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2965
039c5766
RE
29662002-02-06 Richard Earnshaw <rearnsha@arm.com>
2967
2968 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2969
29702002-02-06 Richard Earnshaw <rearnsha@arm.com>
2971
2972 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2973 * gdbarch.c gdbarch.h: Regenerate.
2974 * arch-utils.c (default_print_float_info): New function.
2975 * arch-utils.h (default_print_float_info): Prototype it.
2976 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2977 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2978 (PRINT_FLOAT_INFO): Document it.
2979
2980 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2981 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2982 (PRINT_FLOAT_INFO): Define.
2983
58fa08f0
PM
29842002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2985
aaa38bb5 2986 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
2987 Add typecast to sprintf argument to suppress a warning.
2988
7393af7c
PM
29892002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2990
58fa08f0 2991 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
2992 to allow easier handling of pass state.
2993 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2994 that gives exception name and address.
2995 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 2996 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 2997 exceptions added.
aaa38bb5
AJ
2998 (child_continue): Correctly report continue_status.
2999 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 3000 TARGET_SIGNAL_0 (new default value).
aaa38bb5 3001 (child_resume): consider sig argument passed to decide if
7393af7c
PM
3002 the exception should be passed to debuggee or not.
3003
6af4589c
MS
30042002-02-05 Michael Snyder <msnyder@redhat.com>
3005
3006 * regcache.c (fetch_register): Call target_fetch_register
3007 only if we don't call FETCH_PSEUDO_REGISTER.
3008 (store_register): Call target_store_register only if we
3009 don't call STORE_PSEUDO_REGISTER.
3010
a2cf933a
EZ
30112002-02-05 Elena Zannoni <ezannoni@redhat.com>
3012
3013 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3014 ELF_MAKE_MSYMBOL_SPECIAL.
3015 * gdbarch.c, gdbarch.h: Regenerate.
3016 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 3017 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
3018 * elfread.c (elf_symtab_read): Compile use of
3019 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3020 multiarched.
3021 * coffread.c (coff_symtab_read): Ditto, for
3022 COFF_MAKE_MSYMBOL_SPECIAL.
3023
6bb7be43
JB
30242002-02-05 Jim Blandy <jimb@redhat.com>
3025
3026 * solib-svr4.c (svr4_truncate_ptr): New function.
3027 (svr4_relocate_section_addresses): Do the address arithmetic with
3028 the appropriate truncation for target addresses, even when
3029 CORE_ADDR is larger than a target address.
3030
e18651ec
DJ
30312002-02-05 Daniel Jacobowitz <drow@mvista.com>
3032
3033 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3034 to (int *).
3035
6b2725be
DJ
30362002-02-05 Daniel Jacobowitz <drow@mvista.com>
3037
3038 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3039 code.
3040
fca9e603
DJ
30412002-02-05 Daniel Jacobowitz <drow@mvista.com>
3042
3043 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3044
6c537a52
DJ
30452002-02-05 Daniel Jacobowitz <drow@mvista.com>
3046
3047 * gdbserver/linux-low.c: Remove unused include files.
3048
d844cde6
DJ
30492002-02-05 Daniel Jacobowitz <drow@mvista.com>
3050
3051 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3052 (read_inferior_memory): Use it.
3053 (write_inferior_memory): Likewise.
3054
d07c63e7
DJ
30552002-02-05 Daniel Jacobowitz <drow@mvista.com>
3056
3057 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3058 grubbing through sys_errlist.
3059
da6d8c04
DJ
30602002-02-05 Daniel Jacobowitz <drow@mvista.com>
3061
3062 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3063
5b421780
PM
30642002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3065 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3066
9f60d481
AC
30672002-02-04 Andrew Cagney <ac131313@redhat.com>
3068
3069 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3070 (do_sfunc, set_cmd_sfunc): New functions.
3071
3072 * command.h (struct cmd_list_element): Add field func.
3073 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3074 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3075 * cli/cli-decode.h: Ditto.
3076
3077 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3078 (help_all, help_cmd_list): Ditto.
3079 (find_cmd, complete_on_cmdlist): Ditto.
3080 * top.c (execute_command): Ditto.
3081
3082 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3083 function.sfunc.
3084
3085 * infcmd.c (notice_args_read): Fix function signature.
3086
3087 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3088 * cli/cli-decode.c (add_set_cmd): Ditto.
3089 * utils.c (initialize_utils): Ditto.
3090 * maint.c (_initialize_maint_cmds): Ditto.
3091 * infrun.c (_initialize_infrun): Ditto.
3092 * demangle.c (_initialize_demangler): Ditto.
3093 * remote.c (add_packet_config_cmd): Ditto.
3094 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3095 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3096 * proc-api.c (_initialize_proc_api): Ditto.
3097 * kod.c (_initialize_kod): Ditto.
3098 * valprint.c (_initialize_valprint): Ditto.
3099 * top.c (init_main): Ditto.
3100 * infcmd.c (_initialize_infcmd): Ditto.
3101 * corefile.c (_initialize_core): Ditto.
3102 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3103 * arch-utils.c (initialize_current_architecture): Ditto.
3104 (_initialize_gdbarch_utils): Ditto.
3105 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3106
3107 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3108 * wince.c (_initialize_inftarg): Ditto.
3109 * symfile.c (_initialize_symfile): Ditto.
3110 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3111 * language.c (_initialize_language): Ditto.
3112 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3113
f9ba0717
MS
31142002-02-04 Michael Snyder <msnyder@redhat.com>
3115
3116 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3117
0c74b2a7
DJ
31182002-02-04 Daniel Jacobowitz <drow@mvista.com>
3119
3120 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3121 Add rules for building the register data files.
3122
c638789f
DJ
31232002-02-04 Daniel Jacobowitz <drow@mvista.com>
3124
3125 * regformats/regdat.sh: Add braces to the definition of
3126 expedite_regs_${arch}.
3127
db253027
DJ
31282002-02-04 Daniel Jacobowitz <drow@mvista.com>
3129
3130 * regformats/regdef.h (struct reg): Add comment describing the
3131 requirements for offset and size fields.
3132
206be19c
AS
31332002-02-04 Andreas Schwab <schwab@suse.de>
3134
3135 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3136 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3137
181c1381
RE
31382002-02-04 Richard Earnshaw <rearnsha@arm.com>
3139
3140 * gdbarch.sh (copyright): Update years in generated header.
3141 (SMASH_TEXT_ADDRESS): Add rule.
db253027 3142 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
3143 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3144 * dbxread.c: Likewise.
3145 * dwarfread.c: Likewise.
3146 * elfread.c: Likewise.
3147 * somread.c: Likewise.
3148
3149 * arm-tdep.c (arm_smash_text_address): New function.
3150 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3151
fa4ba8da
PM
31522002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3153
3154 Add support for hardware watchpoints on win32 native.
aaa38bb5 3155 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 3156 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 3157 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
3158 of debug registers.
3159 (debug_registers_changed): New variable. Reflects when debug registers
3160 are changed and need to be written to inferior.
aaa38bb5 3161 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
3162 was set, used when new threads are created.
3163 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3164 i386-nat code.
3165 (thread_rec): Set dr array if id is the thread of current_event .
3166 (child_continue, child_resume): Change the debug registers for all
3167 threads if debug_registers_changed.
3168 (child_add_thread): Change the debug registers if debug_registers_used.
3169 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3170 Link nm.h to new nm-cygwin.h file.
3171 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3172 of hardware registers.
3173
a73c86fb
AC
31742002-02-03 Andrew Cagney <ac131313@redhat.com>
3175
3176 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3177 Restore behavour broken by 2002-01-20 Andrew Cagney
3178 <ac131313@redhat.com> IEEE_FLOAT removal.
3179
acf5ed49
DJ
31802002-02-03 Daniel Jacobowitz <drow@mvista.com>
3181
3182 * c-valprint.c (c_val_print): Pass a proper valaddr to
3183 cp_print_class_method.
3184 * valops.c (search_struct_method): If there is only one method
3185 and args is NULL, return that method.
3186
493d28d5
DJ
31872002-02-03 Daniel Jacobowitz <drow@mvista.com>
3188
3189 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3190 accessing tag_name directly.
3191
7495dfdb
DJ
31922002-02-03 Daniel Jacobowitz <drow@mvista.com>
3193
3194 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3195 of accessing tag_name directly.
3196
dd6bda65
DJ
31972002-02-03 Daniel Jacobowitz <drow@mvista.com>
3198
3199 PR gdb/280
3200 * gdbtypes.c (replace_type): New function.
3201 * gdbtypes.h (replace_type): Add prototype.
3202 * stabsread.c (read_type): Use replace_type.
3203
88fe217c
RE
32042002-02-03 Richard Earnshaw <rearnsha@arm.com>
3205
3206 * Makefile.in (memattr.o): Add missing dependencies rule.
3207
e5d66720
PS
32082002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3209
3210 * breakpoint.c (break_at_finish_command): Really export.
3211 (break_at_finish_at_depth_command): Ditto.
3212 (tbreak_at_finish_command): Ditto.
3213 * hppa-tdep.c: Include completer.h.
3214 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3215 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3216
fffee0be
AC
32172002-02-01 Andrew Cagney <ac131313@redhat.com>
3218
3219 * utils.c (do_write): New function.
3220 (error_stream): Rewrite combining the code from error_begin and
3221 verror.
3222 (verror): Rewrite using error_stream.
3223 (error_begin): Delete function.
3224
255e7dbf
AC
32252002-02-01 Andrew Cagney <ac131313@redhat.com>
3226
3227 * utils.c (error_begin): Make static.
3228 * defs.h (error_begin): Delete declaration.
3229
3230 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3231 (decode_line_1): Use cplusplus_error instead of error_begin,
3232 cplusplus_hint and return_to_top_level.
3233 * coffread.c (coff_symfile_read): Use error instead of error_begin
3234 and return_to_top_level.
3235 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3236
ddfe3c15
AC
32372002-02-01 Andrew Cagney <ac131313@redhat.com>
3238
3239 * language.h (type_error, range_error): Make string parameter
3240 constant.
3241 * language.c (warning_pre_print): Delete extern declaration.
3242 * dwarfread.c (warning_pre_print): Ditto.
3243 * language.c (type_error, range_error): Rewrite to use verror and
3244 vwarning instead of warning_begin.
3245
03ac34d5
MS
32462002-02-01 Michael Snyder <msnyder@redhat.com>
3247
261c4ca2
MS
3248 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3249 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 3250
e00d1dc8
AC
32512002-02-01 Andrew Cagney <ac131313@redhat.com>
3252
3253 * command.h (NO_FUNCTION): Delete macro.
3254 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3255 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3256 * tracepoint.c (_initialize_tracepoint): Ditto.
3257 * cli/cli-decode.c (add_set_cmd): Ditto.
3258 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 3259
76b79d6e
DJ
32602002-02-01 Daniel Jacobowitz <drow@mvista.com>
3261
3262 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3263 Update ``this'' pointer when calling virtual functions.
3264
799f9e91
MS
32652002-02-01 Michael Snyder <msnyder@redhat.com>
3266
c7bd442c 3267 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
3268 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3269
3cf384d4
DJ
32702002-02-01 Daniel Jacobowitz <drow@mvista.com>
3271
3272 * regformats/reg-arm.dat: New file.
3273 * regformats/reg-i386.dat: New file.
3274 * regformats/reg-ia64.dat: New file.
3275 * regformats/reg-m68k.dat: New file.
3276 * regformats/reg-mips.dat: New file.
3277 * regformats/reg-ppc.dat: New file.
3278 * regformats/reg-sh.dat: New file.
3279 * regformats/regdef.h: New file.
3280 * regformats/regdat.sh: New file.
3281
0defa245
RE
32822002-02-01 Richard Earnshaw <reanrsha@arm.com>
3283
3284 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3285 (arm_frame_args_address, arm_frame_locals_address): New functions.
3286 (arm_frame_num_args): New function.
3287 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3288 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3289 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3290
405f26e6
MS
32912002-01-31 Michael Snyder <msnyder@redhat.com>
3292
502fd408
MS
3293 * breakpoint.c (break_at_finish_command): Export.
3294 (break_at_finish_at_depth_command): Export.
3295 (tbreak_at_finish_command): Export.
3296 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3297 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3298 "tbreak" commands, which are HPPA specific.
3299
7d35e135
MS
3300 * printcmd.c (disassemble_command): Remove an ancient
3301 artifact of an old merge.
3302
aaa38bb5 3303 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
3304 Define enum constant values for overlay mode.
3305 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
3306 (overlay_is_mapped, overlay_auto_command,
3307 overlay_manual_command): Ditto.
d874f1e2 3308
aaa38bb5
AJ
3309 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3310 breakpoint_here_p, breakpoint_inserted_here_p,
3311 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
3312 describe_other_breakpoints, check_duplicates, clear_command):
3313 Coding standard fixes.
3314
8add0441 3315 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 3316 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
3317 code: check bfd SEC_READONLY flag for section.
3318
e351066e
AC
33192002-01-31 Andrew Cagney <ac131313@redhat.com>
3320
7d35e135 3321 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 3322
8a48e967
DJ
33232002-01-30 Daniel Jacobowitz <drow@mvista.com>
3324
3325 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3326 data symbols, since we search based on textlow and texthigh.
3327 (find_pc_sect_symtab): Likewise.
3328
f5a96129
AC
33292002-01-30 Andrew Cagney <ac131313@redhat.com>
3330
3331 * defs.h (vwarning): Declare.
f5a96129
AC
3332 * utils.c (vwarning): New function.
3333 (warning): Call vwarning.
3334 (warning_begin): Delete function.
3335
3336 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3337 the warning message.
3338 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3339 warning_begin.
3340
cefd4ef5
MS
33412002-01-30 Michael Snyder <msnyder@redhat.com>
3342
1a703748
MS
3343 * NEWS: Mention "set trust-readonly-sections" command.
3344 Mention generate-core-file command.
cefd4ef5 3345
3a11626d
MS
33462002-01-15 Michael Snyder <msnyder@redhat.com>
3347
3348 * target.c: New command, "set trust-readonly-sections on".
3349 (do_xfer_memory): Honor the suggestion to trust readonly sections
3350 by reading them from the object file instead of from the target.
3351 (initialize_targets): Register command "set trust-readonly-sections".
3352
d1c7e53b
AC
33532002-01-29 Andrew Cagney <ac131313@redhat.com>
3354
3355 * parse.c (target_map_name_to_register): Simplify, search regs and
3356 pseudo-regs using a single loop.
3357
e2c9a72c
AC
33582002-01-30 Andrew Cagney <ac131313@redhat.com>
3359
3360 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3361
69824b4e
MK
33622002-01-15 Rodney Brown <rbrown64@csc.com.au>
3363
3364 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3365 * config/i386/i386v42mp.mh: Add i387-nat.o .
3366 * i386v4-nat.c: Include i387-nat.h.
3367 (supply_fpregset): Use i387_supply_fsave.
3368 (fill_fpregset): Use i387_fill_fsave.
3369
6eb69eab
RE
33702002-01-30 Richard Earnshaw <rearnsha@arm.com>
3371
3372 * arm-tdep.c (arm_call_dummy_words): Define.
3373 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3374 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3375 (CALL_DUMMY_WORDS): Define.
3376 (arm_call_dummy_words): Declare.
3377 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3378 (arm_linux_call_dummy_words): Declare.
3379
9852326a
AS
33802002-01-30 Andreas Schwab <schwab@suse.de>
3381
3382 * m68klinux-nat.c: Fix last change to use regcache_collect
3383 instead of referencing registers[] directly.
3384
977a3030
AC
33852002-01-29 Andrew Cagney <ac131313@redhat.com>
3386
3387 * parse.c (target_map_name_to_register): Delete code wrapped in
3388 #ifdef REGISTER_NAME_ALIAS_HOOK.
3389
2076c72b
MS
33902002-01-28 Michael Snyder <msnyder@redhat.com>
3391
3392 * regcache.c (legacy_read_register_gen): Need to be able to
3393 read pseudo-register as well as real register.
3394 (legacy_write_register_gen): Ditto.
3395
8fcc723b
AC
33962002-01-28 Andrew Cagney <ac131313@redhat.com>
3397
3398 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3399 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3400 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3401 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3402 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3403 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3404 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3405 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3406 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3407 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3408 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3409 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3410 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3411 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3412 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3413 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3414 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3415 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3416 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3417 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3418
afe64c1a
AC
34192002-01-28 Andrew Cagney <ac131313@redhat.com>
3420
3421 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3422 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3423 (initialize_current_architecture): Update target_byte_order using
3424 information from BFD.
aaa38bb5 3425 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
3426 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3427
75bc7ddf
AC
34282002-01-28 Andrew Cagney <ac131313@redhat.com>
3429
3430 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3431 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3432
3433 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3434 #ifdef INVALID_FLOAT.
3435 * infcmd.c (do_registers_info): Ditto.
3436 * values.c (unpack_double): Ditto. Add comment.
3437
3438 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3439 already commented out.
3440
0280a90a
AS
34412002-01-26 Andreas Schwab <schwab@suse.de>
3442
3443 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3444 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3445 registers and add support for PTRACE_GETREGS.
3446
7072a954
AC
34472002-01-24 Andrew Cagney <ac131313@redhat.com>
3448
3449 GDB 5.1.1 released from 5.1 branch.
3450 * NEWS: Add 5.1.1 news.
3451 * README: Sync with 5.1 branch.
3452
86f902e0
FF
34532002-01-23 Fred Fish <fnf@redhat.com>
3454
3455 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3456 stabstring on initial malloc. Reallocing will copy it for us,
3457 if necessary.
3458
8af51c36
EZ
34592002-01-23 Elena Zannoni <ezannoni@redhat.com>
3460
aaa38bb5 3461 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
3462 (HFILES_NO_SRCDIR): Remove hpread.h.
3463 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3464 (hpread.o): Update dependencies.
3465 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3466
3467 * hp-psymtab-read.c: Remove file.
3468 * hp-symtab-read.c: Remove file.
3469 * hpread.h: Remove file.
3470
3471 * hpread.c: Merge all contents of hp-psymtab-read.c,
3472 hp-symtab-read.c and hpread.h into this file, as it was prior to
3473 January 1999.
3474
3475 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 3476 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
3477 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3478 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3479
dc5cfeb6
EZ
34802002-01-23 Elena Zannoni <ezannoni@redhat.com>
3481
3482 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3483 fill_gregset): Call gdbarch_tdep() just once, assign result to
3484 variable and use that, instead of calling the function several
3485 times.
3486
ea87b71b
AO
34872002-01-24 Alexandre Oliva <aoliva@redhat.com>
3488
3489 * configure.host: Accept sparcv9 as alias for sparc64.
3490 * configure.tgt: Likewise.
3491
13fc0c2f
KB
34922002-01-22 Kevin Buettner <kevinb@redhat.com>
3493
3494 * solib-aix5.c (build_so_list_from_mapfile)
3495 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3496 arguments is not reversed.
3497 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3498 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 3499
7bd872fe
EZ
35002002-01-22 Elena Zannoni <ezannoni@redhat.com>
3501
3502 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3503 modified version of obsolete sh_fetch_pseudo_register.
3504 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3505 (sh4_register_read): New function.
3506 (sh_pseudo_register_write): New function. Renamed and modified
3507 version of obsolete sh_store_pseudo_register.
3508 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3509 (sh4_register_write): New function.
3510 (sh_gdbarch_init): Remove setting of gdbarch function
3511 fetch_pseudo_register and store_pseudo_register. Remove setting of
3512 register_convert_to_raw, register_convert_to_virtual,
3513 register_convertible.
3514 (sh_sh4_register_convertible): Delete. No longer needed. All is
3515 taken care by architecture specific functions
3516 register_read/register_write.
3517 (sh_sh4_register_convert_to_virtual): Make static.
3518 (sh_sh4_register_convert_to_raw): Ditto.
3519
069e84fd
AC
35202002-01-22 Andrew Cagney <ac131313@redhat.com>
3521
3522 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3523 (floatformat_is_nan, floatformat_mantissa): Ditto.
3524
3525 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3526 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3527 builtin_type_ieee_double_little,
3528 builtin_type_ieee_double_littlebyte_bigword,
3529 builtin_type_m68881_ext, builtin_type_i960_ext,
3530 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3531 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3532 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3533 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3534
211a4f69
CV
35352002-01-22 Corinna Vinschen <vinschen@redhat.com>
3536
3537 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3538 parameter. Set frameless flag if it exists and depended of
3539 whether the scanned function is frameless or not.
3540 (xstormy16_skip_prologue): If function is frameless, return
3541 result of xstormy16_scan_prologue().
3542 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3543 call.
3544
f81353e4
EZ
35452002-01-21 Elena Zannoni <ezannoni@redhat.com>
3546
3547 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3548 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3549 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3550 sh_sh4_register_byte, sh_sh4_register_raw_size,
3551 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3552 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3553 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3554 sh_store_pseudo_register, sh_do_pseudo_register): Call
3555 gdbarch_tdep() just once, assign result to variable and use that,
3556 instead of calling the function several times.
3557
63c73a17
MK
35582002-01-20 Mark Kettenis <kettenis@gnu.org>
3559
3560 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3561 macros instead of LAST_FPU_CTRL_REGNUM.
3562 (store_register): Likewise.
3563
39ad761d
JB
35642002-01-21 Jim Blandy <jimb@redhat.com>
3565
3566 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3567 is up-to-date before running the program, not just when a program
3568 exits.
3569
3d74b771
FF
35702002-01-21 Fred Fish <fnf@redhat.com>
3571
3572 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3573 when we have found all instructions we are looking for.
3574
966fbf70
RE
35752002-01-21 Richard Earnshaw <rearnsha@arm.com>
3576
3577 * arm-tdep.c (arm_register_name): New function.
3578 (arm_registers_names): Make static.
3579 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3580 (arm_register_name): Declare.
3581 (REGISTER_NAME): Use it.
3582
c3b4394c
RE
35832002-01-21 Richard Earnshaw <rearnsha@arm.com>
3584 Kevin Buettner <kevinb@redhat.com>
3585
3586 Convert arm targets to new FRAME interface.
3587 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3588 (arm_frame_find_save_regs): Delete.
3589 (arm_frame_init_saved_regs): New.
3590 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3591 Allocate extra_info as required. Convert all uses of fsr.regs
3592 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3593 to use extra_info.
3594 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3595 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3596 (check_prologue_cache, save_prologue_cache): Likewise.
3597 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3598 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3599 (FRAME_FIND_SAVED_REGS): Delete.
3600 (arm_frame_find_saved_regs): Delete prototype.
3601 (arm_frame_init_saved_regs): New prototype.
3602 (FRAME_INIT_SAVED_REGS): Define.
3603
61d99182
AC
36042002-01-20 Andrew Cagney <ac131313@redhat.com>
3605
3606 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3607
6aaea291
AC
36082002-01-20 Andrew Cagney <ac131313@redhat.com>
3609
3610 From Jeff Law <law@redhat.com>:
3611 * infttrace.c: Include <sys/pstat.h>.
3612 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3613 exec file if the ttrace equivalent fails.
3614
15f698d2
AC
36152002-01-20 Andrew Cagney <ac131313@redhat.com>
3616
3617 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3618 (closeLogFile): Ditto.
3619
f86ddd7c
MC
36202002-01-20 Michael Chastain <mec@shout.net>
3621
3622 * top.c (print_gdb_version): Bump copyright year to 2002.
3623
904507ce
AC
36242002-01-20 Andrew Cagney <ac131313@redhat.com>
3625
3626 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3627 Zannoni and Eli Zaretskii.
3628
d7f0b9ce
DJ
36292002-01-20 Daniel Jacobowitz <drow@mvista.com>
3630
3631 * buildsym.c: Update copyright years.
3632 * c-typeprint.c: Likewise.
3633 * dwarf2read.c: Likewise.
3634 * f-typeprint.c: Likewise.
3635 * gdbtypes.c: Likewise.
3636 * gdbtypes.h: Likewise.
3637 * hp-symtab-read.c: Likewise.
3638 * hpread.c: Likewise.
3639 * mdebugread.c: Likewise.
3640 * p-typeprint.c: Likewise.
3641
3fd3d7d2
AC
36422002-01-20 Andrew Cagney <ac131313@redhat.com>
3643
3644 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3645 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3646 byte-order selectable.
3647 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3648 * arch-utils.c: Ditto.
3649 (set_endian): Ditto.
3650 (set_endian_from_file): Ditto.
3651 * gdbserver/low-sim.c (create_inferior): Ditto.
3652 * gdbarch.sh: Ditto.
3653 * gdbarch.h: Re-generate.
aaa38bb5
AJ
3654 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3655 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3656 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3657 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3658 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3659 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3660 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
3661 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3662 macro definition.
3663 * config/mips/tm-wince.h: Remove #undef of macro
3664 TARGET_BYTE_ORDER_SELECTABLE.
3665 * config/sh/tm-wince.h: Ditto.
3666
b02dede2
DJ
36672002-01-20 Daniel Jacobowitz <drow@mvista.com>
3668
3669 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3670 member function fields. Add accessor macro
3671 TYPE_FN_FIELD_ARTIFICIAL.
3672 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3673 * c-typeprint.c (c_type_print_base): Skip artificial member
3674 functions.
3675
c3643761
DJ
36762002-01-20 Daniel Jacobowitz <drow@mvista.com>
3677
3678 * f-typeprint.c: Delete unused function f_type_print_args.
3679 * p-typeprint.c: Delete unused function pascal_type_print_args.
3680
8176bb6d
DJ
36812002-01-20 Daniel Jacobowitz <drow@mvista.com>
3682
3683 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3684 comment. Add ``artificial'' to ``union field_location''.
3685
3686 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3687
3688 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3689 * mdebugread.c (parse_symbol): Likewise.
3690 * stabsread.c (define_symbol): Likewise.
3691 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3692 initializing TYPE_FIELD_BITPOS to n (obsolete).
3693 (hpread_doc_function_type): Likewise.
3694 * hpread.c (hpread_function_type): Likewise.
3695
7fd60527
AC
36962002-01-20 Andrew Cagney <ac131313@redhat.com>
3697
3698 * configure.in (host_makefile_frag): Only require a host makefile
3699 fragment when a native build.
3700 * configure: Re-generate.
3701
c2f05ac9
AC
37022002-01-20 Andrew Cagney <ac131313@redhat.com>
3703
3704 * doublest.h (floatformat_from_type): Declare.
3705 * doublest.c (floatformat_from_type): New function.
3706 (convert_typed_floating): Use.
3707
3708 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3709 call to function floatformat_from_type.
3710
3711 * gdbarch.sh (IEEE_FLOAT): Delete.
3712 * gdbarch.h, gdbarch.c: Re-generate.
3713 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3714 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3715 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3716 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3717 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3718 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3719 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3720 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3721 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3722 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3723 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
3724 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3725
3726 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3727 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3728 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3729 * sh-tdep.c (sh_gdbarch_init): Ditto.
3730 * mips-tdep.c (mips_gdbarch_init): Ditto.
3731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3732 * cris-tdep.c (cris_gdbarch_init): Ditto.
3733
abf22e64
AJ
37342002-01-20 Jiri Smid <smid@suse.cz>
3735
3736 * configure.host, configure.tgt: Support x86-64.
3737 * NEWS: Note new target x86-64.
3738
b7c4cbf8
AJ
3739 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3740 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3741 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3742 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3743 x86-64-linux-nat.o): Fix dependencies.
3744
82600034
AC
37452002-01-19 Andrew Cagney <ac131313@redhat.com>
3746
3747 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3748 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3749 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3750 * config/sparc/xm-sun4os4.h: Delete file.
3751 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 3752
bbe5c628
AC
37532002-01-19 Andrew Cagney <ac131313@redhat.com>
3754
3755 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3756 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3757 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3758 * config/i386/i386lynx.mh (XM_FILE): Delete.
3759 * config/rs6000/xm-rs6000ly.h: Delete file.
3760 * config/sparc/xm-sparclynx.h: Delete file.
3761 * config/m68k/xm-m68klynx.h: Delete file.
3762 * config/i386/xm-i386lynx.h: Delete file.
3763 * config/xm-lynx.h: Delete file.
3764 * config/djgpp/fnchange.lst: Update.
3765
f8453e34
JT
37662002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3767
3768 * alpha-tdep.c (alpha_register_byte): New function.
3769 (alpha_register_raw_size): Ditto.
3770 (alpha_register_virtual_size): Ditto.
3771 (alpha_skip_prologue_internal): Renamed from
3772 alpha_skip_prologue.
3773 (alpha_skip_prologue): New version that calls
3774 alpha_skip_prologue_internal.
3775 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3776 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3777 second argument from alpha_skip_prologue.
3778 (REGISTER_BYTE): Use alpha_register_byte.
3779 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3780 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3781 (FRAMELESS_FUNCTION_INVOCATION): Use
3782 generic_frameless_function_invocation_not.
3783 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3784 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3785
52d9e613
AC
37862002-01-19 Andrew Cagney <ac131313@redhat.com>
3787
3788 * config/mips/xm-news-mips.h: Delete file.
3789 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3790
3791 * config/m88k/xm-m88k.h: Delete file.
3792 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3793 * config/m88k/xm-delta88v4.h: Ditto.
3794 * config/m88k/xm-delta88.h: Ditto.
3795
3796 * config/alpha/xm-fbsd.h: Delete file.
3797 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3798
3799 * config/sparc/xm-sparc.h: Delete file.
3800 * Makefile.in (xm-sun4os4.h): Delete dependency.
3801 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3802 * config/sparc/xm-sun4os4.h: Ditto.
3803 * config/sparc/xm-linux.h: Ditto.
3804
3805 * config/i386/xm-windows.h: Delete file.
3806
2d1b2124
AC
38072002-01-19 Andrew Cagney <ac131313@redhat.com>
3808
3809 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3810 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3811
ee1f65f0
JT
38122002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3813
3814 * alpha-tdep.c (alpha_call_dummy_words): New.
3815 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3816 (CALL_DUMMY_P): Define.
3817 (CALL_DUMMY_WORDS): Define.
3818 (SIZEOF_CALL_DUMMY_WORDS): Define.
3819
98081e55
PB
38202002-01-19 Per Bothner <per@bothner.com>
3821
3822 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3823 isn't NULL, which can happen with some gcj-3.x-produced code.
3824
0d056799
JT
38252002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3826
3827 * alpha-tdep.c (alpha_register_virtual_type): New function.
3828 (alpha_init_frame_pc_first): Ditto.
3829 (alpha_fix_call_dummy): Ditto.
3830 (alpha_store_struct_return): Ditto.
3831 (alpha_extract_struct_value_address): Ditto.
3832 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3833 alpha_register_virtual_type.
3834 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3835 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3836 alpha_extract_struct_value_address.
3837 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3838 (INIT_FRAME_PC): Use init_frame_pc_noop.
3839 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3840
4604bcad
MK
38412002-01-19 Mark Kettenis <kettenis@gnu.org>
3842
3843 * i386gnu-nat.c: Include "i386-tdep.h".
3844 (fetch_fpregs): Simplify code dealing with uninitialized floating
3845 point states such that it doesn't require FP7_REGNUM.
3846
140f9984
JT
38472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3848
abf22e64
AJ
3849 * alpha-tdep.c (frame_extra_info): New.
3850 (alpha_find_saved_regs): Make static. Use
140f9984
JT
3851 frame->extra_info.
3852 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
3853 (alpha_frame_saved_pc): Use frame->extra_info.
3854 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3855 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
3856 (init_extra_frame_info): Rename to...
3857 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 3858 (alpha_print_extra_frame_info): New function.
140f9984
JT
3859 (alpha_frame_locals_address): Ditto.
3860 (alpha_frame_args_address): Ditto.
abf22e64 3861 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
3862 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3863 alpha_frame_args_address.
abf22e64 3864 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 3865 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
3866 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3867 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
3868 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3869 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3870
d734c450
JT
38712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3872
3873 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3874 (alpha_cannot_fetch_register): Ditto.
3875 (alpha_cannot_store_register): Ditto.
3876 (alpha_register_convertible): Ditto.
3877 (alpha_use_struct_convention): Ditto.
3878 * config/alpha/tm-alpha.h: Update copyright years.
3879 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3880 (INNER_THAN): Use core_addr_lessthan.
3881 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3882 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3883 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3884 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3885 (FRAME_CHAIN): Remove unnecessary cast.
3886
b4ceaee6
AC
38872002-01-18 Andrew Cagney <ac131313@redhat.com>
3888
3889 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3890 obsolete.
3891
0a65a603
AC
38922002-01-18 Andrew Cagney <ac131313@redhat.com>
3893
3894 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3895 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3896 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3897 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3898 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3899 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3900 * x86-64-linux-nat.c: Ditto.
3901
636a6dfc
JT
39022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3903
abf22e64 3904 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
3905 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3906 (REGISTER_NAME): Define.
3907
acceddb6
JT
39082002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3909
3910 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3911
ec32e4be
JT
39122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3913
3914 * alpha-tdep.c: Update copyright years.
3915 (alpha_next_pc): New function.
3916 (alpha_software_single_step): Ditto.
3917 * config/alpha/tm-alpha.h: Add prototype for
3918 alpha_software_single_step.
3919
e771a871
JT
39202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3921
3922 * alphabsd-nat.c: Update copyright years.
3923 (fill_gregset): Use regcache_collect.
3924 (fill_fpregset): Likewise.
3925 (fetch_inferior_registers): Only fetch integer registers
3926 if requested to do so.
3927 (store_inferior_registers): Only store integer registers
3928 if requested to do so.
3929
7708fa01
AC
39302002-01-17 Andrew Cagney <ac131313@redhat.com>
3931
3932 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3933 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3934 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3935 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3936 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3937 * config/arm/linux.mh (XDEPFILES): Delete.
3938 * config/arm/nbsd.mh (XDEPFILES): Delete.
3939 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3940 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3941 * config/i386/i386m3.mh (XDEPFILES): Delete.
3942 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3943 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3944 * config/i386/fbsd.mh (XDEPFILES): Delete.
3945 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3946 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3947 * config/i386/i386v4.mh (XDEPFILES): Delete.
3948 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3949 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3950 * config/i386/i386aix.mh (XDEPFILES): Delete.
3951 * config/i386/go32.mh (XDEPFILES): Delete.
3952 * config/i386/cygwin.mh (XDEPFILES): Delete.
3953 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3954 * config/i386/i386mach.mh (XDEPFILES): Delete.
3955 * config/i386/i386v32.mh (XDEPFILES): Delete.
3956 * config/i386/linux.mh (XDEPFILES): Delete.
3957 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3958 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3959 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3960 * config/i386/i386sco.mh (XDEPFILES): Delete.
3961 * config/i386/i386v.mh (XDEPFILES): Delete.
3962 * config/i386/nbsd.mh (XDEPFILES): Delete.
3963 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3964 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3965 * config/i386/symmetry.mh (XDEPFILES): Delete.
3966 * config/i386/obsd.mh (XDEPFILES): Delete.
3967 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3968 * config/ia64/linux.mh (XDEPFILES): Delete.
3969 * config/ia64/aix.mh (XDEPFILES): Delete.
3970 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3971 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3972 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3973 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3974 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3975 * config/m68k/linux.mh (XDEPFILES): Delete.
3976 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3977 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3978 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3979 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3980 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3981 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3982 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3983 * config/m88k/delta88.mh (XDEPFILES): Delete.
3984 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3985 * config/m88k/m88k.mh (XDEPFILES): Delete.
3986 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3987 * config/mips/linux.mh (XDEPFILES): Delete.
3988 * config/mips/irix6.mh (XDEPFILES): Delete.
3989 * config/mips/irix5.mh (XDEPFILES): Delete.
3990 * config/mips/irix4.mh (XDEPFILES): Delete.
3991 * config/mips/irix3.mh (XDEPFILES): Delete.
3992 * config/mips/decstation.mh (XDEPFILES): Delete.
3993 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3994 (NATDEPFILES): Move core-aout.o to here.
3995 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3996 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3997 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3998 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3999 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4000 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4001 * config/pa/hpux11.mh (XDEPFILES): Delete.
4002 * config/powerpc/aix.mh (XDEPFILES): Delete.
4003 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4004 * config/powerpc/linux.mh (XDEPFILES): Delete.
4005 * config/romp/rtbsd.mh: Rename XDEPFILES.
4006 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4007 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4008 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4009 * config/s390/s390.mh (XDEPFILES): Delete.
4010 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4011 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4012 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4013 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4014 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4015 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4016 * config/sparc/linux.mh (XDEPFILES): Delete.
4017 * config/vax/vaxult.mh (XDEPFILES): Delete.
4018 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4019 * Makefile.in (DEPFILES): Remove XDEPFILES.
4020
375fc983
AC
40212002-01-17 Andrew Cagney <ac131313@redhat.com>
4022
4023 * utils.c (internal_verror): Fix comments, default is yes not no.
4024 Update queries to match. Default to quit and dump core.
4025
8926118c
AC
40262002-01-17 Andrew Cagney <ac131313@redhat.com>
4027
4028 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4029 copyright.
4030 * defs.h, event-top.c, gdbcmd.h: Ditto.
4031 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4032 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4033 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4034 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4035 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4036 * mi/mi-main.c:Ditto.
4037
4038 * stack.c, symfile.c: Update copyright.
4039
45b7b345
DJ
40402002-01-17 Daniel Jacobowitz <drow@mvista.com>
4041
db728ff7
DJ
4042 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4043 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4044 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4045 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 4046
db728ff7
DJ
40472002-01-17 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4050 * gdbserver/low-lynx.c (myattach): Likewise.
4051 * gdbserver/low-nbsd.c (myattach): Likewise.
4052 * gdbserver/low-sim.c (myattach): Likewise.
4053 * gdbserver/low-sparc.c (myattach): Likewise.
4054 * gdbserver/low-sun3.c (myattach): Likewise.
4055
4056 * gdbserver/low-linux.c (myattach): New function.
45b7b345 4057
db728ff7 4058 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
4059 (main): Handle "--attach".
4060
8de3c354
AC
40612002-01-16 Andrew Cagney <ac131313@redhat.com>
4062
4063 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4064 maintainer.
4065
b0129042
DJ
40662002-01-15 Daniel Jacobowitz <drow@mvista.com>
4067
4068 * c-typeprint.c (is_type_conversion_operator): Add additional
4069 check for non-conversion operators.
4070
ba8679fb 40712002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
4072
4073 * linux-proc.c: Add "info proc" command, a la procfs.c.
4074 (read_mapping): New function, abstract and re-use code.
4075 (linux_find_memory_regions): Use new func read_mapping.
4076 (linux_info_proc_cmd): New function, implement "info proc".
4077 (_initialize_linux_proc): Add new command "info proc".
4078
e4f9b4d5
MS
40792002-01-15 Michael Snyder <msnyder@redhat.com>
4080
4081 * symfile.c (generic_load): Use bfd_map_over_sections method
4082 instead of manipulating bfd structure members directly.
4083 (add_section_size_callback): New function, bfd sections callback
4084 used by generic_load.
4085 (load_sections_callback): New function, bfd sections callback
4086 used by generic_load.
4087
08cf96df
EZ
40882002-01-15 Elena Zannoni <ezannoni@redhat.com>
4089
abf22e64 4090 [Based on work by Jim Blandy]
08cf96df
EZ
4091 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4092 (builtin_type_vec128): Export.
4093 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4094 types.
4095 (builtin_type_vec128): New builtin type for 128 bit vector
4096 registers.
4097 (build_gdbtypes): Initialize builtin_type_v16qi and
4098 builtin_type_v8hi. Create the vec128 register builtin type
4099 structure.
4100 (build_builtin_type_vec128): New function.
abf22e64 4101 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
4102 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4103 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4104 AltiVec register to new builtin type.
4105
d7242108
DJ
41062001-01-15 Daniel Jacobowitz <drow@mvista.com>
4107
4108 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4109 to make_cv_type.
4110
4ee3352d
AC
41112002-01-14 Andrew Cagney <ac131313@redhat.com>
4112
4113 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4114 CLEAN_UP_REGISTER_VALUE.
4115 * regcache.c (supply_register): Update only call.
4116
f015b2e7
AC
41172002-01-14 Andrew Cagney <ac131313@redhat.com>
4118
4119 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4120 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4121 a29k-*-vxworks* targets as obsolete.
4122
356ae49d
MS
41232002-01-14 Michael Snyder <msnyder@redhat.com>
4124
4125 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4126 until we can resolve portability issues.
4127 * gregset.h: Remove references to fpxregs.
4128 * gcore.c (gcore_command): Initialize note_sec to NULL.
4129
ade8f45e
AC
41302002-01-13 Andrew Cagney <ac131313@redhat.com>
4131
4132 * signals.c (target_signal_to_name): Rewrite. Only use
4133 signals[].name when in bounds and non-NULL.
abf22e64 4134
89c49e7a
AC
41352002-01-13 Andrew Cagney <ac131313@redhat.com>
4136
4137 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4138 * signals.c (target_signal_to_name): Verify that SIG is within the
4139 bounds of the signals array.
4140
4daa9f9f
AC
41412002-01-13 Andrew Cagney <ac131313@redhat.com>
4142
4143 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4144
ba4bbdcb
KS
41452002-01-13 Keith Seitz <keiths@redhat.com>
4146
4147 * stack.c (print_frame_info_base): Print the frame's pc
4148 only if when print_frame_info_listing_hook is not defined.
4149
575bbeb6
KS
41502002-01-13 Keith Seitz <keiths@redhat.com>
4151
4152 * varobj.c (varobj_set_value): Make sure that there were no
4153 errors evaluating the object before attempting to set its
4154 value.
4155 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4156 so this offset adjustment is no longer necessary.
4157 (create_child): Don't set the error flag if the child is
4158 a CPLUS_FAKE_CHILD.
4159 (value_of_child): If value_fetch_lazy fails, return NULL
4160 so that callers will be notified that an error occurred.
4161 (c_value_of_variable): Delay check of variable's validity
4162 until later. We actually want all structs and unions to have
4163 the value "{...}".
4164 Do not return "???" for variables which could not be evaluated.
4165 This error condition must be returned to the caller so that it
4166 can get the error condition from gdb.
4167 (cplus_name_of_child): Adjust index for vptr before figuring
4168 out the name of the child.
4169 (cplus_value_of_child): If a child's (real) parent is not valid,
4170 don't even bother trying to give a value for it. Just return
4171 an error. Change all instances in this function.
4172 (cplus_type_of_child): If our parent is one of the "fake"
4173 parents, we need to get at the type of the real parent, and
4174 derive the child's true type using this information.
4175
b76898ab
AC
41762002-01-13 Andrew Cagney <ac131313@redhat.com>
4177
4178 From 2002-01-09 John Marshall <johnm@falch.net>:
4179 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4180 sources.redhat.com, and tweak some related URLs which had
4181 suffered from linkrot.
4182
b6649e88
AC
41832002-01-13 Andrew Cagney <ac131313@redhat.com>
4184
4185 From Jeff law:
4186 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4187 structures passed in registers.
4188
82cc5033
EZ
41892002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4190
4191 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4192 white space which prevented compilation. Reported by DSK
4193 <dsk@student.unsw.edu.au>.
4194
ba5f2f8a
MS
41952002-01-11 Michael Snyder <msnyder@redhat.com>
4196
fbd35540
MS
4197 * symfile.c (build_section_addr_info_from_section_tab):
4198 Use bfd access method instead of manipulating bfd directly.
4199 (syms_from_objfile): Ditto.
4200 (simple_overlay_update_1): Ditto.
4201 (simple_overlay_update): Ditto.
4202 (generic_load): Ditto.
4203 (overlay_unmapped_address): FIXME comment, bfd access methods.
4204 (sections_overlap): FIXME comment, bfd access methods.
4205 (pc_in_mapped_range): FIXME comment, bfd access methods.
4206 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4207 (section_is_mapped): FIXME comment, bfd access methods.
4208 (section_is_overlay): FIXME comment, bfd access methods.
4209
ba5f2f8a
MS
4210 * symfile.c (generic_load): Whitespace and long line cleanups.
4211 Remove duplicate variable, change several local variables to
4212 more appropriate data types.
4213 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4214
17df2af6
AC
42152002-01-12 Andrew Cagney <ac131313@redhat.com>
4216
4217 From Peter Schauer:
4218 * language.c (longest_local_hex_string_custom): Use phex_nz to
4219 convert NUM to a hex string.
4220
ec920329
EZ
42212002-01-12 Elena Zannoni <ezannoni@redhat.com>
4222
4223 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4224 the function.
538a76d6 4225 Update Copyright year.
ec920329 4226
3abd2e01
AC
42272002-01-12 Andrew Cagney <ac131313@redhat.com>
4228
4229 * language.c (longest_raw_hex_string): Delete unused function.
4230
b21b22e0
PS
42312002-01-11 Petr Sorfa <petrs@caldera.com>
4232
4233 * MAINTAINERS (write-after-approval): Add myself.
4234 * dwarf2read.c (read_tag_string_type): Handling of
4235 DW_AT_byte_size.
4236 (read_tag_string_type): FORTRAN fix to prevent propagation of
4237 first string size.
4238 (set_cu_language): Handling of DW_LANG_Fortran95
4239
747fe712
RE
42402002-01-11 Richard Earnshaw <rearnsha@arm.com>
4241
4242 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4243 GETPID(inferior_ptid).
4244 (store_inferior_registers): Likewise.
4245
f1bea926
JM
42462002-01-10 Jason Merrill <jason@redhat.com>
4247
4248 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4249 Fix DW_OP_minus.
4250
ae940673
AC
42512002-01-10 Andrew Cagney <ac131313@redhat.com>
4252
4253 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4254 and bfd/elf32-sh-nbsd.c.
4255
00546b04
MS
42562002-01-10 Michael Snyder <msnyder@redhat.com>
4257
352ed7b4
MS
4258 * NEWS: Mention --pid and corefile/proc-id behavior change.
4259
c18be923
MS
4260 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4261 * gcore.c: Include cli/cli-decode.h instead of command.h.
4262
00546b04
MS
4263 * main.c (captured_main): Add new command line option "--pid".
4264 If the second command line argument (following the symbol-file)
4265 begins with a digit, try to attach to it before trying to open
4266 it as a corefile.
4267 (print_gdb_help): Document the "--pid" argument.
4268
db60ec62
EZ
42692002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4270
4271 * completer.c (command_completer): New function.
4272
4273 * completer.h <command_completer>: Add prototype.
4274
4275 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4276 completer for the "help" command.
4277
39c22d1a
JM
42782002-01-09 Jason Merrill <jason@redhat.com>
4279
4280 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4281
c564377f
MS
42822002-01-09 Michael Snyder <msnyder@redhat.com>
4283
975aec09
MS
4284 * i386-linux-nat.c (fill_fpxregset): Make global.
4285 (store_fpxregset): Ditto.
4286
db4a10fa
MS
4287 * gregset.h (gdb_fpxregset_t): Define.
4288 (supply_fpxregset): Prototype.
4289 (fill_fpxregset): Prototype.
4290
c564377f
MS
4291 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4292
c3d45d70
RE
42932002-01-09 Richard Earnshaw <rearnsha@arm.com>
4294
4295 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4296 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4297 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4298
fcc87af1
AC
42992002-01-09 Andrew Cagney <ac131313@redhat.com>
4300
4301 * MAINTAINERS: Update target maintainer rules so that any
4302 Maintainer can approve a tested patch for a maintenance-only
4303 target.
4304
dd96c05b
RE
43052002-01-09 Richard Earnshaw <rearnsha@arm.com>
4306
d4297db9 4307 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 4308
d4297db9 4309 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
4310 IN_SIGTRAMP.
4311
145fdc6e
MS
43122002-01-08 Michael Snyder <msnyder@redhat.com>
4313
4314 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4315 real name of the executable, rather than the /proc name.
4316
be4d1333
MS
43172002-01-03 Michael Snyder <msnyder@redhat.com>
4318
4319 Implement a "generate-core-file" command in gdb, save target state.
4320 * gcore.c: New file. Implement new command 'generate-core-file'.
4321 Save a corefile image of the current state of the inferior.
4322 * linux-proc.c: Add linux-specific code for saving corefiles.
4323 * target.h (struct target_ops): Add new target vectors for saving
4324 corefiles; to_find_memory_regions and to_make_corefile_notes.
4325 (target_find_memory_regions): New macro.
4326 (target_make_corefile_notes): New macro.
4327 * target.c (update_current_target): Inherit new target methods.
4328 (dummy_find_memory_regions): New place-holder method.
4329 (dummy_make_corefile_notes): New place-holder method.
4330 (init_dummy_target): Initialize new dummy target vectors.
4331 * exec.c (exec_set_find_memory_regions): New function.
4332 Allow the exec_ops vector for memory regions to be taken over.
4333 (exec_make_note_section): New function, target vector method.
4334 * defs.h (exec_set_find_memory_regions): Export prototype.
4335 * procfs.c (proc_find_memory_regions): New function, corefile method.
4336 (procfs_make_note_section): New function, corefile method.
4337 (init_procfs_ops): Set new target vector pointers.
4338 (find_memory_regions_callback): New function.
4339 (procfs_do_thread_registers): New function.
4340 (procfs_corefile_thread_callback): New function.
4341 * sol-thread.c (sol_find_memory_regions): New function.
4342 (sol_make_note_section): New function.
4343 (init_sol_thread_ops): Initialize new target vectors.
4344 * inftarg.c (inftarg_set_find_memory_regions): New function.
4345 Allow to_find_memory_regions vector to be taken over.
4346 (inftarg_set_make_corefile_notes): New function.
4347 Allow to_make_corefile_notes vector to be taken over.
4348 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4349 interface layer if not target_has_execution (may be a corefile).
4350 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4351 * config/sparc/sun4sol2.mh: Ditto.
4352 * config/alpha/alpha-linux.mh: Ditto.
4353 * config/arm/linux.mh: Ditto.
4354 * config/i386/x86-64linux.mh: Ditto.
4355 * config/ia64/linux.mh: Ditto.
4356 * config/m68k/linux.mh: Ditto.
4357 * config/mips/linux.mh: Ditto.
4358 * config/powerpc/linux.mh: Ditto.
4359 * config/sparc/linux.mh: Ditto.
4360
c6b92abd
MS
43612002-01-07 Michael Snyder <msnyder@redhat.com>
4362
4363 * arm-linux-nat.c: Remove references to regcache.c internal data
4364 (registers[] and register_valid[]).
4365
4b09dc8c
MS
43662002-01-07 Michael Snyder <msnyder@redhat.com>
4367
abf22e64
AJ
4368 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4369 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
4370 symbol file and shlibs.
4371 * Makefile.in: Add rule for linux-proc.o.
4372 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4373 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4374 * config/arm/linux.mh: Ditto.
4375 * config/i386/linux.mh: Ditto.
4376 * config/i386/x86-64linux.mh: Ditto.
4377 * config/ia64/linux.mh: Ditto.
4378 * config/m68k/linux.mh: Ditto.
4379 * config/mips/linux.mh: Ditto.
4380 * config/powerpc/linux.mh: Ditto.
4381 * config/sparc/linux.mh: Ditto.
4382
c25b74ac
PM
43832002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4384
4385 * win32-nat.c: Add i386-tdep.h dependency.
4386
94cd915f
MS
43872002-01-07 Michael Snyder <msnyder@redhat.com>
4388
c7cccb76
MS
4389 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4390 instead of bfd_get_arch_size. Don't bail out just because
4391 there's no exec_bfd.
abf22e64 4392
34c0bd93
MS
4393 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4394 * p-valprint.c (pascal_object_print_value): Ditto.
4395 * somread.c (som_symtab_read): Ditto.
4396 * symfile.c (simple_free_overlay_region_table): Ditto.
4397 * valops.c (value_assign): Ditto.
4398
21c1c920
MS
4399 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4400 use tilde_expand and strerror for opening save-tracepoints file.
4401
5bbd998e
MS
4402 * thread-db.c (thread_db_new_objfile): Indendation fix.
4403
94cd915f
MS
4404 * infptrace.c (GDB_MAX_ALLOCA): New define.
4405 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 4406 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
4407 can be overridden with whatever value is appropriate to the host).
4408 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4409 alloca to allocate potentially large buffer.
4410 * rs6000-nat.c (child_xfer_memory): Ditto.
4411 * symm-nat.c (child_xfer_memory): Ditto.
4412 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4413
494e8a93
JSC
44142002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4415
4416 From Nick Clifton <nickc@redhat.com>
4417 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4418
d0e1d48e
MS
44192002-01-07 Michael Snyder <msnyder@redhat.com>
4420
abf22e64 4421 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
4422 Don't use exec_bfd if it's NULL.
4423
290b2c7a
MK
44242002-01-06 Mark Kettenis <kettenis@gnu.org>
4425
abf22e64 4426 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 4427
aef21287
AC
44282002-01-06 Andrew Cagney <ac131313@redhat.com>
4429
4430 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4431 * gnu-nat.c: Ditto.
4432
30efa627
AC
44332002-01-06 Andrew Cagney <ac131313@redhat.com>
4434
4435 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4436 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4437 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4438 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4439 z8k-coff have not been multi-arched. Update z8k-coff build
4440 status.
4441
9b4ff276
AC
44422002-01-06 Andrew Cagney <ac131313@redhat.com>
4443
4444 * MAINTAINERS: Mark a29k target as obsolete.
4445 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4446 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4447 comments.
4448 * NEWS: Note that a29k targets are obsolete.
4449 * a29k-tdep.c: Mark as obsolete.
4450 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4451 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4452 a29k-*-vxworks* targets as obsolete.
4453 * remote-adapt.c: Obsolete.
4454 * remote-eb.c: Obsolete.
4455 * remote-mm.c: Obsolete.
4456 * remote-udi.c: Obsolete.
4457 * config/a29k/a29k-udi.mt: Obsolete.
4458 * config/a29k/a29k.mt: Obsolete.
4459 * config/a29k/tm-a29k.h: Obsolete.
4460 * config/a29k/tm-vx29k.h: Obsolete.
4461 * config/a29k/vx29k.mt: Obsolete.
4462
a9011d31
AC
44632002-01-05 Andrew Cagney <ac131313@redhat.com>
4464
4465 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4466 with BFD_ENDIAN_BIG.
4467
9299404e
AC
44682002-01-05 Andrew Cagney <ac131313@redhat.com>
4469
4470 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4471 * configure, config.in: Re-generate.
4472 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4473 * defs.h: Do not include <endian.h>.
4474
7e89e357
JT
44752002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4476
4477 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4478 * config.in: Regenerate.
4479 * configure.in: Update copyright years.
4480 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4481 * configure: Regenerate.
4482 * i386bsd-nat.c: Update copyright years.
4483 (fill_gregset): Use regcache_collect.
4484 (fetch_inferior_registers): Only fetch integer registers
4485 if requested to do so. Add support for XMM registers
4486 using PT_GETXMMREGS.
4487 (store_inferior_registers): Only store integer registers
4488 if requested to do so. Add support for XMM registers
4489 using PT_SETXMMREGS.
4490 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4491 (store_inferior_registers): Remove.
4492 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4493 (fetch_elfcore_registers): New function.
4494 (i386nbsd_elfcore_fns): New.
4495 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4496 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4497 i386bsd-nat.o.
4498 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4499 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4500 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4501 * config/i386/tm-nbsd.h: Update copyright years.
4502 (HAVE_SSE_REGS): Define.
4503 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4504 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4505 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4506 (SIGCONTEXT_PC_OFFSET): Remove.
4507 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4508
a752853e
AC
45092002-01-05 Andrew Cagney <ac131313@redhat.com>
4510
4511 * configure.tgt: Remove powerpc-*-macos* target.
4512 * config/m68k/xm-mpw.h: Delete file.
4513 * config/xm-mpw.h: Delete file.
4514 * ser-mac.c: Delete file.
4515 * mpw-make.sed: Delete file.
4516 * mpw-config.in: Delete file.
4517 * mac-xdep.c: Delete file.
4518 * mac-gdb.r: Delete file.
4519 * mac-defs.h: Delete file.
4520 * mac-nat.c: Delete file.
4521 * config/powerpc/macos.mh: Delete file.
4522 * config/powerpc/macos.mt: Delete file.
4523 * config/powerpc/nm-macos.h: Delete file.
4524 * config/powerpc/tm-macos.h: Delete file.
4525 * source.c (openp, open_source_file): Remove obsolete code.
4526 * top.c (gdb_readline): Ditto.
4527 * utils.c (query): Ditto.
4528 * event-top.c (display_gdb_prompt): Ditto.
4529 * Makefile.in (ser-mac.o): Delete obsolete target.
4530 * NEWS: Update.
4531
d7449b42
AC
45322002-01-04 Andrew Cagney <ac131313@redhat.com>
4533
4534 * defs.h (BIG_ENDIAN): Delete macro definition.
4535 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4536 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4537 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4538 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4539 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4540 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4541 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4542 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4543 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4544 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4545 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4546 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4547 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4548 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4549 * gdbarch.c: Re-generate.
4550
356374e8
DJ
45512002-01-04 Daniel Jacobowitz <drow@mvista.com>
4552
4553 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4554 for core files.
4555
a2b8f8f8
JT
45562002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4557
4558 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4559
12466af9
AC
45602002-01-04 Andrew Cagney <ac131313@redhat.com>
4561
4562 * value.h (value_ptr): Delete typedef.
4563
3549ab40
JT
45642002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4565
4566 * i386nbsd-nat.c: Update copyright years.
4567 Include i386-tdep.h.
4568
fedbd091
EZ
45692002-01-04 Elena Zannoni <ezannoni@redhat.com>
4570
4571 * stabsread.c: Update copyright years.
4572
4573 From Debashis Mahata <debashis.mahata@wipro.com>:
4574 (read_struct_fields): Deal with Sun C compiler erroneous stab
4575 output for structs and unions.
fec8b34f 4576 Fix PR gdb/269.
fedbd091 4577
eb43544b
DJ
45782002-01-04 Daniel Jacobowitz <drow@mvista.com>
4579
4580 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4581 prototype.
4582
1514d34e
DJ
45832002-01-04 Daniel Jacobowitz <drow@mvista.com>
4584
4585 * cp-abi.c: Fix whitespace.
4586 (baseclass_offset): New wrapper function.
4587 * cp-abi.h (baseclass_offset): Add prototype.
4588 (struct cp_abi_ops): Add baseclass_offset pointer.
4589
4590 * valops.c (vb_match): Move to...
4591 * gnu-v2-abi.c (vb_match): here.
4592 * valops.c (baseclass_offset): Move to...
4593 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4594
4595 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4596
4597 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4598 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4599 * hpacc-abi.c (init_hpacc_ops): Likewise.
4600
7f8c9282
DJ
46012002-01-04 Daniel Jacobowitz <drow@mvista.com>
4602
4603 * valops.c (find_overload_match): Accept obj as a
4604 reference parameter. Update it before returning.
4605 * value.h (find_overload_match): Update prototype.
4606 * eval.c (evaluate_subexp_standard): Pass object to
4607 find_overload_match by reference.
4608
f23631e4
AC
46092002-01-03 Andrew Cagney <ac131313@redhat.com>
4610
4611 * valarith.c: Replace value_ptr with struct value pointer. Remove
4612 register attribute from value declarations.
4613 * valops.c: Ditto.
4614 * value.h: Ditto.
4615 * scm-lang.c (scm_lookup_name): Ditto.
4616
79e10fab 46172002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 4618
79e10fab
AC
4619 Abstract the functionality of iterating over mapped memory
4620 regions into a general purpose iterator function.
abf22e64 4621 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
4622 iterator for memory sections.
4623 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4624 (solib_mappings_callback): New function, callback for above.
4625 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4626 (info_mappings_callback): New function, callback for above.
4627
4628 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4629
c5ad026a
MK
46302002-01-01 Mark Kettenis <kettenis@gnu.org>
4631
d2a7c97a
MK
4632 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4633 * i386-tdep.c: Include "elf-bfd.h".
4634 (process_note_abi_tag_sections): New function.
4635 (i386_gdbarch_init): Add code to recognize various OS/ABI
4636 combinations.
4637
c5ad026a
MK
4638 * maint.c (_initialize_maint_cmds): Add missing \ in
4639 string-literal.
4640
a1a5b71e 4641For older changes see ChangeLog-2001
c906108c
SS
4642\f
4643Local Variables:
4644mode: change-log
4645left-margin: 8
4646fill-column: 74
4647version-control: never
4648End: