2002-12-11 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
95486978
AC
12002-12-11 Andrew Cagney <cagney@redhat.com>
2
3 * frame.c (deprecated_get_frame_saved_regs): Rename
4 get_frame_saved_regs.
5 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
6 * sparc-tdep.c: Update.
7 * hppa-tdep.c: Update.
8 * h8500-tdep.c: Update.
9
321432c0
KB
102002-12-11 Kevin Buettner <kevinb@redhat.com>
11
12 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
13 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
14 ``char *'' for return and parameter types.
15 * gdbarch.h, gdbarch.c: Regenerate.
16 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
17 return type from ``char *'' to ``const char *''.
18 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
19 const.
20
5a4d6ff4
MK
212002-12-11 Mark Kettenis <kettenis@gnu.org>
22
23 * i386-tdep.c: Include "dummy-frame.h".
24 (i386_frame_chain, i386_frame_saved_pc): Replace
25 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
26 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
27
a5afb99f
AC
282002-12-10 Andrew Cagney <cagney@redhat.com>
29
30 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
31 Change to a function with predicate.
32 * gdbarch.h, gdbarch.c: Re-generate.
33 * frame.c (get_prev_frame): Update. Test
34 DEPRECATED_INIT_FRAME_PC_P.
35 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
36 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
37 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
38 * alpha-tdep.c (alpha_gdbarch_init): Update.
39 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
40 * mips-tdep.c (mips_gdbarch_init): Update.
41 * i386-interix-tdep.c (i386_interix_init_abi): Update.
42 * arm-tdep.c: Update comments.
43 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
44 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
45 * frv-tdep.c (frv_gdbarch_init): Ditto.
46 * x86-64-tdep.c (x86_64_init_abi): Ditto.
47 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
48 * s390-tdep.c (s390_gdbarch_init): Ditto.
49 * v850-tdep.c (v850_gdbarch_init): Ditto.
50 * vax-tdep.c (vax_gdbarch_init): Ditto.
51 * sh-tdep.c (sh_gdbarch_init): Ditto.
52 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
53 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
54 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
55 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
56 * i386-tdep.c (i386_gdbarch_init): Ditto.
57 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
58 * cris-tdep.c (cris_gdbarch_init): Ditto.
59 * avr-tdep.c (avr_gdbarch_init): Ditto.
60 * arm-tdep.c (arm_gdbarch_init): Ditto.
61 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
62 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
63
6604731b
DJ
642002-12-10 Daniel Jacobowitz <drow@mvista.com>
65
66 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
67 CHILD_FOLLOW_FORK.
68 * hppah-nat.c (saved_vfork_pid): Add.
69 (child_post_follow_vfork): Remove.
70 (child_follow_fork): New function.
71 (child_wait): Call detach_breakpoints after receiving the child vfork.
72 Call child_resume directly instead of going through resume ().
73 Make sure we have the exec before reporting the vfork.
74 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
75 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
76 (follow_fork): New function. Call target_follow_fork.
77 (follow_inferior_reset_breakpoints): New function broken out from
78 old follow_inferior_fork.
79 (resume): Remove hack to follow exec after vfork.
80 * inftarg.c (child_post_follow_vfork): Remove.
81 (child_follow_fork): New function.
82 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
83 * target.c (cleanup_target): Replace to_post_follow_vfork with
84 to_follow_fork.
85 (update_current_target): Likewise.
86 (setup_target_debug): Likewise.
87 (debug_to_post_follow_vfork): Remove.
88 (debug_to_follow_fork): New function.
89 * target.h (struct target_ops): Replace to_post_folow_vfork with
90 to_follow_fork.
91 (child_post_follow_vfork): Remove prototype.
92 (child_follow_fork): Add prototype.
93 (target_post_follow_vfork): Remove macro.
94 (target_follow_fork): Add macro.
95
7d2830a3
DJ
962002-12-10 Daniel Jacobowitz <drow@mvista.com>
97
98 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
99 (child_post_follow_vfork): Cancel pending exec event if we follow
100 the parent.
101 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
102 events have been processed. Return a fake TARGET_WAITKIND_EXECD
103 event at the following wait call if necessary.
104 * infrun.c (follow_vfork): Don't follow_exec here.
105 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
106 case about HP/UX 10.20. Remove code pushed down to
107 hppah-nat.c:child_wait.
108 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
109 vfork_in_flight is set.
110
1112002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
112
113 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
114 for the parent's fork event.
115 * infrun.c (handle_inferior_event): Only expect one fork event.
116 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
117 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
118
50631d4f
AC
1192002-12-10 Andrew Cagney <ac131313@redhat.com>
120
bc124bd3
AC
121 * PROBLEMS: Delete reference to PR gdb/725.
122
50631d4f
AC
123 * MAINTAINERS (gdb.c++): Add David Carlton.
124
808013d1
DC
1252002-12-09 David Carlton <carlton@math.stanford.edu>
126
127 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
128 * cli/cli-cmds.c: Ditto.
129
31deffe5
AC
1302002-12-09 Andrew Cagney <cagney@redhat.com>
131
6cbda714
AC
132 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
133 function address in <>.
31deffe5
AC
134 * gdbarch.c: Re-generate.
135
2692ddb3
DC
1362002-12-09 David Carlton <carlton@math.stanford.edu>
137
138 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
139
f3c39e76
DC
1402002-12-09 David Carlton <carlton@math.stanford.edu>
141
142 * linespec.c (symtab_from_filename): New function.
143 (decode_line_1): Move code into symtab_from_filename.
144
1b84163e
KB
1452002-12-09 Kevin Buettner <kevinb@redhat.com>
146
147 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
148
bdd78e62
AC
1492002-12-07 Andrew Cagney <ac131313@redhat.com>
150
151 * f-valprint.c (info_common_command): Use get_frame_pc.
152 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
153 * ax-gdb.c (agent_command): Ditto.
154 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
155 (rs6000_pop_frame): Ditto.
156 (rs6000_frameless_function_invocation): Ditto.
157 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
158 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
159 * macroscope.c (default_macro_scope): Ditto.
160 * stack.c (print_frame_info_base): Ditto.
161 (print_frame, frame_info, print_frame_label_vars): Ditto.
162 (return_command, func_command, get_frame_language): Ditto.
163 * infcmd.c (finish_command): Ditto.
164 * dummy-frame.c (cached_find_dummy_frame): Ditto.
165 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
166 (break_at_finish_at_depth_command_1): Ditto.
167 (break_at_finish_command_1): Ditto.
168 (until_break_command, get_catch_sals): Ditto.
169 * blockframe.c (func_frame_chain_valid): Ditto.
170 (frameless_look_for_prologue): Ditto.
171 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
172
408400e7
AC
1732002-12-08 Andrew Cagney <ac131313@redhat.com>
174
175 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
176 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
177
97f46953
AC
1782002-12-08 Andrew Cagney <ac131313@redhat.com>
179
180 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
181 to pure functions.
182 * gdbarch.h, gdbarch.c: Re-generate.
183 * frame.c (get_prev_frame): Explictly assign prev's pc with value
184 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
185
186 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
187 declaration to a function returning a CORE_ADDR.
188 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
189 * arch-utils.c (init_frame_pc_noop): Return the PC value.
190 (init_frame_pc_default): Ditto.
191 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
192 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
193 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
194 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
195 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
196 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
197
198 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
199 to init_frame_pc_noop.
200 (i386_interix_init_frame_pc): Delete function.
201 * z8k-tdep.c (init_frame_pc): Delete function.
202 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
203 (INIT_FRAME_PC_FIRST): Ditto.
204 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
205 (INIT_FRAME_PC_FIRST): Ditto.
206 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
207 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
208 init_frame_pc_noop.
209 (INIT_FRAME_PC_FIRST): Convert to an expression.
210 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
211
8b36eed8
AC
2122002-12-08 Andrew Cagney <ac131313@redhat.com>
213
214 * blockframe.c: Use get_frame_base instead of directly accessing
215 the `struct frame_info' member frame.
216 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
217 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
218
aeeccc89
EZ
2192002-12-08 Elena Zannoni <ezannoni@redhat.com>
220
221 * Makefile.in (readline_h): Define.
222 (completer.o): Depend on readline_h.
223 (corelow.o): Ditto.
224 (event-top.o): Ditto.
225 (exec.o): Ditto.
226 (solib.o): Ditto.
227 (source.o): Ditto.
228 (symfile.o): Ditto.
229 (symmisc.o): Ditto.
230 (top.o): Ditto.
231 (tracepoint.o): Ditto.
232 (utils.o): Ditto.
233 (cli-dump.o): Ditto.
234 (tui-hooks.o): Ditto.
235 (tuiWin.o): Ditto.
236
38017ce8
EZ
2372002-12-08 Elena Zannoni <ezannoni@redhat.com>
238
239 More cleanup from import of readline 4.3.
240 * completer.h (complete_line, readline_line_completion_function):
241 Update prototypes.
242 (line_completion_function): Removed, not used outside of completer.c.
243 * completer.c (readline_line_completion_function,
244 complete_function, line_completion_function): Use const for first
245 parameter.
246 (line_completion_function): Make static.
247 (filename_completer): filename_completion_function is now called
248 rl_filename_completion_function
249 * corelow.c: Include <readline/readline.h>.
250 * exec.c: Ditto.
251 * solib.c: Ditto.
252 * source.c: Ditto.
253 * symfile.c: Ditto.
254 * symmisc.c: Ditto.
255 * top.c (init_main): No need to coerce
256 readline_line_completion_function anymore.
257 * cli/cli-dump.c: Include <readline/readline.h>.
258
75e3c1f9
AC
2592002-12-08 Andrew Cagney <ac131313@redhat.com>
260
261 * stack.c (frame_info): Use get_prev_frame.
262 * blockframe.c (frame_address_in_block): Ditto.
263 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
264 (rs6000_frameless_function_invocation): Ditto.
265 (rs6000_frame_saved_pc): Ditto.
266 (rs6000_frame_chain): Ditto.
267 * arch-utils.c (init_frame_pc_default): Ditto.
268
0d2b8049
AC
2692002-12-08 Andrew Cagney <ac131313@redhat.com>
270
271 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
272 Delete redundant definition.
273
9255ee31
EZ
2742002-12-08 Elena Zannoni <ezannoni@redhat.com>
275
276 Import of readline 4.3:
277 * cli/cli-cmds.c: Include readline/tilde.h.
278 * cli/cli-setshow.c: Ditto.
279 * defs.h: Don't declare tilde_expand anymore, since readline
280 exports it.
281
3442dad6 2822002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
283
284 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
285 -Werror on this file.
286
52f87c51
AC
2872002-12-07 Andrew Cagney <ac131313@redhat.com>
288
289 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
290 the format name.
291 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
292 * gdbarch.c: Regenerate.
293
2ca6c561
AC
2942002-12-06 Andrew Cagney <ac131313@redhat.com>
295
296 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
297 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
298 provide a default value.
299 * gdbarch.h, gdbarch.c: Regenerate.
300 * frame.c (get_prev_frame): Update. Check
301 DEPRECATED_INIT_FRAME_PC_FIRST_P.
302 * s390-tdep.c (s390_gdbarch_init): Update.
303 * mips-tdep.c (mips_gdbarch_init): Update.
304 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
305 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
306 * alpha-tdep.c (alpha_gdbarch_init): Update.
307
e162d11b
EZ
3082002-12-06 Elena Zannoni <ezannoni@redhat.com>
309
310 * ia64-linux-nat.c: Include gdb_string.h.
311 * alpha-nat.c: Ditto.
2b298b5d
EZ
312 * ppc-linux-nat.c: Ditto.
313 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
314 Update dependencies.
e162d11b 315
aa0cd9c1
AC
3162002-12-05 Andrew Cagney <ac131313@redhat.com>
317
318 * gdbthread.h: Include "frame.h".
319 (struct thread_info): Replace step_frame_address with
320 step_frame_id.
321 * inferior.h: Include "frame.h".
322 (step_frame_id): Replace external variable step_frame_address.
323 * gdbthread.h (save_infrun_state): Replace step_frame_address
324 parameter with step_frame_id parameter.
325 (load_infrun_state): Ditto.
326 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
327 * infcmd.c (step_frame_id, step_1, step_once): Update.
328 * thread.c (load_infrun_state, save_infrun_state): Update.
329 * infrun.c (clear_proceed_status, save_inferior_status): Update.
330 (handle_inferior_event, step_over_function): Update.
331 (normal_stop, context_switch, restore_inferior_status): Update.
332 (struct inferior_status): Replace step_frame_address with
333 step_frame_id.
334
a9a9bd0f
DC
3352002-12-05 David Carlton <carlton@math.stanford.edu>
336
337 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
338 DW_TAG_member as well as a declaration as being a C++ static data
339 member.
340 (read_structure_scope): Combine tests for DW_TAG_member and
341 DW_TAG_variable.
342
614b3b14
DC
3432002-12-05 David Carlton <carlton@math.stanford.edu>
344
345 * linespec.c (decode_compound): New function.
346 (decode_line_1): Move code into decode_compound.
347
e4051eeb
DC
3482002-12-05 David Carlton <carlton@math.stanford.edu>
349
350 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
351 argument.
352 (lookup_symbol_aux): Do the 'field_of_this' check before checking
353 the static block. See PR gdb/804.
354
f61e8913
DC
3552002-12-05 David Carlton <carlton@math.stanford.edu>
356
357 * symtab.c (lookup_symbol_aux_block): New function.
358 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
359
1e9f55d0
AC
3602002-12-05 Andrew Cagney <ac131313@redhat.com>
361
362 * gdbarch.sh: Dump the predicate function and macro values.
363 (read): Print error on standard error.
364 * gdbarch.c: Regenerate.
365
d1973055
KB
3662002-12-04 Kevin Buettner <kevinb@redhat.com>
367
368 * Makefile.in (mips_tdep_h): Define.
369 (mips-tdep.o): Add mips_tdep_h to dependency list.
370 * mips-tdep.h: New file.
371 * mips-tdep.c (mips-tdep.h): Include.
372 (enum mips_abi): Move to mips-tdep.h.
373 (mips_abi): New function.
374
f1253c7b
DC
3752002-12-04 David Carlton <carlton@math.stanford.edu>
376
377 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
378
406bc4de
DC
3792002-12-04 David Carlton <carlton@math.stanford.edu>
380
381 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
382 function.
383 (lookup_symbol_aux_minsyms): New function.
384
2a3750c5
JB
3852002-12-04 J. Brobecker <brobecker@gnat.com>
386
387 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
388
961d8652
JB
3892002-12-04 J. Brobecker <brobecker@gnat.com>
390
391 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
392 which is an obsolete macro name.
393
38c52d5a
DJ
3942002-12-04 Daniel Jacobowitz <drow@mvista.com>
395
396 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
397 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
398
d8ef46f5
DJ
3992002-12-03 H.J. Lu (hjl@gnu.org)
400
401 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
402 (create_breakpoints): Make sure the addr_string field is not
403 NULL.
404
02ae7771
AC
4052002-12-03 Andrew Cagney <ac131313@redhat.com>
406
407 * sparc-nat.c (fetch_inferior_registers)
408 (store_inferior_registers): Add comment on problem of LWP vs
409 threads.
410
411 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
412 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
413 (lin_lwp_store_registers): Remove.
414 (init_lin_lwp_ops): Use fetch_inferior_registers
415 and store_inferior_registers directly.
416 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
417 (store_inferior_registers): Likewise.
418 Fix PR gdb/725.
419
7a424e99
AC
4202002-12-03 Andrew Cagney <ac131313@redhat.com>
421
422 * frame.h (get_frame_id): Convert to a function.
423 (null_frame_id, frame_id_p): Declare.
424 (frame_id_eq, frame_id_inner): Declare.
425 (frame_id_build): New function.
426 * frame.c (get_frame_id): Update. Use null_frame_id.
427 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
428 frame_id_inner.
429 (null_frame_id, frame_id_p): Define.
430 (frame_id_eq, frame_id_inner): Define.
431 (frame_id_build): New function.
432 * varobj.c (varobj_create): Update.
433 (varobj_update): Update.
434 * valops.c (value_assign): Update.
435 (new_root_variable): Update.
436 * infrun.c (save_inferior_status): Update.
437 * breakpoint.c (watch_command_1): Update.
438
891c7f5f
JB
4392002-12-03 J. Brobecker <brobecker@gnat.com>
440
441 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
442 (SNAP2): Likewise.
443
144da3c1
AC
4442002-12-03 Andrew Cagney <cagney@redhat.com>
445
46248966
AC
446 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
447 patch.
448
144da3c1
AC
449 * PROBLEMS: Mention PR gdb/725.
450
03c6228e
AS
4512002-12-03 Andreas Schwab <schwab@suse.de>
452
453 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
454
36e53c63
AF
4552002-12-02 Adam Fedor <fedor@gnu.org>
456 Klee Dienes <kdienes@apple.com>
457
458 * objc-lang.c (objc_printstr): Add width arg to match
459 printstr prototype.
460 (compare_selectors): Add 'const' to arg types.
461 (compare_classes): Likewise.
462 (find_imps): Cast msym pointer to avoid compiler warning.
463 (print_object_command): Validate the address before
464 passing it to the print routine.
465 (find_objc_msgcall_submethod): Change function argument to
466 return an int.
467 * objc-lang.h: Add 'extern' to all function declarations.
468 (value_nsstring): Add declaration.
469
504d5c7e
JB
4702002-12-02 J. Brobecker <brobecker@gnat.com>
471
472 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
473 Fixes a build failure on HP/UX.
474
475 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
476 failure on HP/UX.
477 (hpread_has_name): Advance declaration to avoid a compilation warning.
478 (pst_syms_count): Add missing variable type. By change, the compiler
479 was defaulting to int, which seems a good choice. Fixes a compilation
480 warning.
481 (pst_syms_size): Likewise.
482
59623e27
JB
4832002-12-02 J. Brobecker <brobecker@gnat.com>
484
485 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
486 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
487 later to set the proper gdbarch methods depending on the osabi.
488 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
489
a09a320d
JB
4902002-12-02 J. Brobecker <brobecker@gnat.com>
491
492 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
493 * osabi.c (gdb_osabi_name): Add strings images for the two new
494 enum values.
495 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
496
8a81a99e
AC
4972002-12-02 Andrew Cagney <ac131313@redhat.com>
498
499 * MAINTAINERS (Java): Global maintainers are responible for Java.
500 (Past Maintainers): Mention both Anthony Green and Per Bothner as
501 part Java maintainers.
502
7af35dad
JB
5032002-12-02 J. Brobecker <brobecker@gnat.com>
504
505 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
506 Fixes a compilation failure on AiX.
507
f4ede9bc
JB
5082002-12-02 J. Brobecker <brobecker@gnat.com>
509
510 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
511 why aix-thread.o is not listed.
512
ae45cd16
AC
5132002-12-01 Andrew Cagney <ac131313@redhat.com>
514
515 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
516 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
517 * gdbarch.h, gdbarch.c: Re-generate.
518 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
519 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
520 * config/pa/tm-hppa.h, frame.h: Update.
521 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
522 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
523 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
524 * cris-tdep.c, alpha-tdep.c: Update.
525 * frame.c (set_unwind_by_pc, create_new_frame): Use either
526 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
527 (get_prev_frame): Ditto.
528
020cc13c
AC
5292002-11-30 Andrew Cagney <cagney@redhat.com>
530
531 * exec.c (xfer_memory): Replace boolean with int.
532 * p-exp.y: Use 0 instead of false.
533 * corelow.c (gdb_check_format): Change return type to int from
534 boolean.
535 * utils.c: Don't include <curses.h> or <term.h> first.
536
1d9b2aa8
SC
5372002-11-29 Stephane Carrez <stcarrez@nerim.fr>
538
539 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
540 (m68hc11_register_byte): Remove.
541 (m68hc11_gdbarch_init): Don't set the above.
542
a193e397
AC
5432002-11-29 Andrew Cagney <cagney@redhat.com>
544
545 * remote-mips.c (mips_initialize): Force a selected frame rebuild
546 by calling get_selected_frame.
547 * ocd.c (ocd_start_remote): Use get_selected frame instead of
548 set_current_frame, create_new_frame, select_frame and
549 get_current_frame.
550 * remote-e7000.c (e7000_start_remote): Ditto.
551 * remote-mips.c (common_open): Ditto
552 * remote-rdp.c (remote_rdp_open): Ditto.
553
b5fc49aa
AS
5542002-11-29 Andreas Schwab <schwab@suse.de>
555
556 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
557 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
558 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
559 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
560 read_memory_unsigned_integer instead of read_memory_integer when
561 dealing with addresses and instruction opcodes.
562 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
563 (m68k_linux_frame_saved_pc): Likewise.
564
6e7f8b9c
AC
5652002-11-29 Andrew Cagney <ac131313@redhat.com>
566
567 * stack.c (selected_frame, select_frame): Move from here ...
568 * frame.c (selected_frame, select_frame): ... to here. Include
569 "language.h".
570 * Makefile.in (frame.o): Update dependencies.
571 * frame.c (get_selected_frame): New function.
572 * frame.h (get_selected_frame): Declare.
573 (deprecated_selected_frame): Rename selected_frame.
574 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
575 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
576 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
577 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
578 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
579 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
580 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
581 * z8k-tdep.c, cli/cli-cmds.c: Update.
582
805e2818
AC
5832002-11-29 Andrew Cagney <ac131313@redhat.com>
584
585 * frame.h (get_selected_block): Add comments.
586
1058bca7
AC
5872002-11-28 Andrew Cagney <ac131313@redhat.com>
588
589 * frame.c (pc_notcurrent): New function.
590 (find_frame_sal): New function.
591 * frame.h (find_frame_sal): Declare.
592 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
593 * stack.c (print_frame_info_base): Use find_frame_sal instead of
594 find_pc_line.
1058bca7
AC
595 (frame_info): Ditto.
596 * ada-lang.c (find_printable_frame): Ditto.
597
d92419e5
JB
5982002-11-28 J. Brobecker <brobecker@gnat.com>
599
600 * configure.in: Check that the pthdebug library is recent enough
601 before enabling thread support on native AiX.
602 * configure: Regenerate.
603
604 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
605 from the list of object files as it is now appended by configure
606 if thread support is enabled.
607 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
608 if thread support is enabled.
609
8c69fc49
AC
6102002-11-28 Andrew Cagney <cagney@redhat.com>
611
612 * stack.c (get_selected_block): In-line get_current_block.
613 * frame.h (get_current_block): Delete declaration.
614 * blockframe.c (get_current_block): Delete function.
615
07555a72
AC
6162002-11-28 Andrew Cagney <ac131313@redhat.com>
617
618 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
619 USE_GENERIC_DUMMY_FRAMES.
620 * gdbarch.h, gdbarch.c: Regenerate.
621 * valops.c, frame.c: Update.
622 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
623 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
624 * config/pa/tm-hppa.h, blockframe.c: Update.
625 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
626 * m68k-tdep.c, alpha-tdep.c: Ditto.
627
628 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
629 * mips-tdep.c: Ditto.
630
b99fa2d2
AC
6312002-11-27 Andrew Cagney <ac131313@redhat.com>
632
633 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
634 (USE_GENERIC_DUMMY_FRAMES): Default to true.
635 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
636 * gdbarch.c, gdbarch.h: Re-generate.
637 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
638 (CALL_DUMMY_LOCATION): Delete macro definition.
639 (PC_IN_CALL_DUMMY): Delete macro definitions.
640
641 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
642 default is already generic_pc_in_call_dummy.
643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
644 * v850-tdep.c (v850_gdbarch_init): Ditto.
645 * sh-tdep.c (sh_gdbarch_init): Ditto.
646 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
647 * mips-tdep.c (mips_gdbarch_init): Ditto.
648 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
650 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
652 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
653 * avr-tdep.c (avr_gdbarch_init): Ditto.
654
655 * arm-tdep.c (arm_gdbarch_init): Do not set
656 use_generic_dummy_frames, default is already 1.
657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
658 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
659 * v850-tdep.c (v850_gdbarch_init): Ditto.
660 * sh-tdep.c (sh_gdbarch_init): Ditto.
661 * s390-tdep.c (s390_gdbarch_init): Ditto.
662 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
663 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
664 * mips-tdep.c (mips_gdbarch_init): Ditto.
665 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
667 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
668 * i386-tdep.c (i386_gdbarch_init): Ditto.
669 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
670 * frv-tdep.c (frv_gdbarch_init): Ditto.
671 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
672 * cris-tdep.c (cris_gdbarch_init): Ditto.
673 * avr-tdep.c (avr_gdbarch_init): Ditto.
674
675 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
676 call_dummy_location, default is already AT_ENTRY_POINT.
677 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
678 * v850-tdep.c (v850_gdbarch_init): Ditto.
679 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
680 * sh-tdep.c (sh_gdbarch_init): Ditto.
681 * s390-tdep.c (s390_gdbarch_init): Ditto.
682 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
683 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
684 * mips-tdep.c (mips_gdbarch_init): Ditto.
685 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
686 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
687 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
688 * i386-tdep.c (i386_gdbarch_init): Ditto.
689 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
690 * frv-tdep.c (frv_gdbarch_init): Ditto.
691 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
692 * cris-tdep.c (cris_gdbarch_init): Ditto.
693 * avr-tdep.c (avr_gdbarch_init): Ditto.
694 * arm-tdep.c (arm_gdbarch_init): Ditto.
695 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
696
abc0af47
AC
6972002-11-28 Andrew Cagney <cagney@redhat.com>
698
699 * frame.h: Update comments on set_current_frame, create_new_frame,
700 flush_cached_frames, reinit_frame_cache, select_frame and
701 selected_frame.
702
ed5cedc5
AC
7032002-11-27 Andrew Cagney <cagney@redhat.com>
704
705 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
706 deprecated pc_in_call_dummy function.
707 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
708 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
709 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
710 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
711 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
712
b2a1bd4f
MH
7132002-11-26 Martin M. Hunt <hunt@redhat.com>
714
715 * Makefile.in: Remove Tix dependencies.
716 * acinclude.m4: Ditto.
717 * aclocal.m4: Ditto.
718 * configure.in: Ditto.
719 * configure: Regenerated.
720
f09cffaa
AC
7212002-11-26 Andrew Cagney <ac131313@redhat.com>
722
723 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
724 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
725 * gdbarch.c: Re-generate.
726
e92b0cc9
AC
7272002-11-26 Andrew Cagney <ac131313@redhat.com>
728
729 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
730 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
731 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
732 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
733 pc_in_call_dummy_at_entry_point.
734 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
735 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
736 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
737 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
738 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
739 pc_in_call_dummy_on_stack.
740 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
741 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
742 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
743 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
744 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
745
b4b88177
AC
7462002-11-26 Andrew Cagney <ac131313@redhat.com>
747
748 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
749 pc_in_call_dummy_before_text_end
750 (deprecated_pc_in_call_dummy_after_text_end): Rename
751 pc_in_call_dummy_after_text_end.
752 (deprecated_pc_in_call_dummy_on_stack): Rename
753 pc_in_call_dummy_on_stack.
754 (deprecated_pc_in_call_dummy_at_entry_point): Rename
755 pc_in_call_dummy_at_entry_point.
756 * m68k-tdep.c (m68k_gdbarch_init): Update.
757 * s390-tdep.c (s390_gdbarch_init): Update.
758 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
759 * vax-tdep.c (vax_gdbarch_init): Update.
760 * sparc-tdep.c (sparc_gdbarch_init): Update.
761 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
762 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
763 * i386-tdep.c (i386_gdbarch_init): Update.
764 * frv-tdep.c (frv_gdbarch_init): Update.
765 * cris-tdep.c (cris_gdbarch_init): Update.
766 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
767 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
768 (deprecated_pc_in_call_dummy_after_text_end)
769 (deprecated_pc_in_call_dummy_on_stack)
770 (deprecated_pc_in_call_dummy_at_entry_point): Update.
771 * alpha-tdep.c (alpha_gdbarch_init): Update.
772
eb784848
DJ
7732002-11-25 Daniel Jacobowitz <drow@mvista.com>
774
775 * acconfig.h (HAVE_PREAD64): Add.
776 * configure.in: Check for pread64.
777 * config.in: Regenerated.
778 * configure: Regenerated.
779 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
780 * linux-proc.c (linux_proc_xfer_memory): New function.
781 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
782
933c6fe4
DC
7832002-11-25 David Carlton <carlton@math.stanford.edu>
784
785 * dwarf2read.c (scan_partial_symbols): Descend into namespace
786 pdi's with no name.
787
158a8022
AC
7882002-11-25 Andrew Cagney <ac131313@redhat.com>
789
790 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
791 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
792
481d0f41
JB
7932002-11-25 Jim Blandy <jimb@redhat.com>
794
e8289572
JB
795 * symfile.c (init_objfile_sect_indices): New function.
796 (default_symfile_offsets): Move the section-index-initializing
797 stuff into init_objfile_sect_indices, and call that.
798
b29c9944
JB
799 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
800 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
801
13de58df
JB
802 * symfile.c (syms_from_objfile): Adjust indentation.
803
481d0f41
JB
804 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
805 || info_verbose isn't true.
806
7d6a26a7
AC
8072002-11-24 Andrew Cagney <ac131313@redhat.com>
808
809 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
810 default to get_frame_base.
811 * gdbarch.h, gdbarch.c: Regenerate.
812 * arch-utils.c (default_frame_address): Delete function.
813 * arch-utils.h (default_frame_address): Delete declaration
814
6abe1021
PM
8152002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
816
817 * varobj.c (find_frame_addr_in_frame_chain):
818 Use get_frame_base instead of FRAME_FP,
819 obvious fix.
820
c193f6ac
AC
8212002-11-19 Andrew Cagney <ac131313@redhat.com>
822
823 * frame.h (FRAME_FP): Delete macro.
824 (get_frame_base): New function declaration.
825 * frame.c (get_frame_base): New function.
826 (get_frame_id): Use ->frame.
827 (frame_find_by_id): Rewrite to use get_frame_id.
828 * blockframe.c: Use get_frame_base instead of FRAME_FP.
829 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
830 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
831 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
832 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
833 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
834 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
835
e5d2af14
AC
8362002-11-24 Andrew Cagney <ac131313@redhat.com>
837
838 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
839
931d12c6
AC
8402002-11-24 Andrew Cagney <ac131313@redhat.com>
841
842 * frame.c (set_unwind_by_pc): Revert change below, use
843 PC_IN_CALL_DUMMY.
844 (get_prev_frame): Ditto.
845
5e0f933e
AC
8462002-11-24 Andrew Cagney <ac131313@redhat.com>
847
848 * dummy-frame.c (pc_in_dummy_frame): New function.
849 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
850 (find_dummy_frame): Update comment.
851 (generic_pop_current_frame): Use get_frame_type.
852 * dummy-frame.h (pc_in_dummy_frame): Declare.
853 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
854 (create_new_frame): Use pc_in_dummy_frame.
855 (get_prev_frame): Use pc_in_dummy_frame.
856 (frame_saved_regs_register_unwind): Use get_prev_frame.
857 (deprecated_generic_get_saved_register): Use get_prev_frame.
858
7d8547c9
AC
8592002-11-23 Andrew Cagney <ac131313@redhat.com>
860
861 * blockframe.c (find_frame_addr_in_frame_chain): Move function
862 from here ...
863 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
864 (varobj_create): Note that frame ID should be used.
865 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
866
0225421b
AC
8672002-11-23 Andrew Cagney <ac131313@redhat.com>
868
869 * breakpoint.c: Include "gdb_assert.h".
870 (deprecated_frame_in_dummy): Assert that generic dummy frames are
871 not being used.
872 * Makefile.in (breakpoint.o): Update dependencies.
873 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
874 deprecated_frame_in_dummy.
875 * stack.c (print_frame_info_base): Ditto.
876 (frame_info): Ditto.
877 (print_frame_info_base): Ditto. Delete dead code.
878
32eeb91a
AS
8792002-11-23 Andreas Schwab <schwab@suse.de>
880
881 * Makefile.in (m68k_tdep_h): Define.
882 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
883 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
884 * m68k-tdep.c: Move register number enum ...
885 * m68k-tdep.h: ... to this new file and rename the constants from
886 E_* to M68K_*. All uses changed.
887 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
888 * abug-rom.c: Include "m68k-tdep.h". Use
889 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
890 * cpu32bug-rom.c: Likewise.
891 * dbug-rom.c: Likewise.
892 * m68k-tdep.c: Likewise.
893 * m68klinux-nat.c: Likewise.
894 * remote-est.c: Likewise.
895 * rom68k-rom.c: Likewise.
896 * config/m68k/tm-linux.h: Likewise.
897
9648bac8
AC
8982002-11-23 Andrew Cagney <ac131313@redhat.com>
899
900 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
901 dummy frame initialization code.
902 * mips-tdep.c (mips_gdbarch_init): Ditto.
903
91a175b3
CF
9042002-11-22 Christopher Faylor <cgf@redhat.com>
905
906 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
907 attach will hang.
908
f4ded5b1
AC
9092002-11-22 Andrew Cagney <ac131313@redhat.com>
910
911 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
912 to default_frame_address.
913 * gdbarch.h, gdbarch.c: Re-generate.
914
915 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
916 or frame_locals_address to default_frame_address.
917 * m68k-tdep.c (m68k_gdbarch_init): Update.
918 * i386-tdep.c (i386_gdbarch_init): Update.
919 * frv-tdep.c (frv_gdbarch_init): Update.
920 * sh-tdep.c (sh_gdbarch_init): Update.
921 * v850-tdep.c (v850_gdbarch_init): Update.
922 * sparc-tdep.c (sparc_gdbarch_init): Update.
923 * mips-tdep.c (mips_gdbarch_init): Update.
924 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
925 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
927
928 * cris-tdep.c (cris_frame_args_address): Delete function.
929 (cris_frame_locals_address): Delete function.
930 (cris_gdbarch_init): Do not set frame_args_address or
931 frame_locals_address.
932
f7c1e0f3
MS
9332002-11-22 Michael Snyder <msnyder@redhat.com>
934
935 * thread-db.c (thread_db_load): Tell the user what's going on
936 if dlopen fails on libthread_db.
937
03dac896
AS
9382002-11-23 Andreas Schwab <schwab@suse.de>
939
940 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
941 invariant return values.
942
7a67d0fe
AS
9432002-11-22 Andreas Schwab <schwab@suse.de>
944
945 * valops.c (value_slice): Move declaration of `offset' to avoid
946 warning.
947
5633f842
CF
9482002-11-22 Christopher Faylor <cgf@redhat.com>
949
950 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
951 (struct so_stuff): Add end_addr field.
952 (register_loaded_dll): Calculate and store end address of loaded dll.
953 (solib_address): New function.
954 (child_solib_loaded_library_pathname): Pass carefully constructed
955 section info to safe_symbol_file_add rather than ignoring it.
956 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
957 DLL is loaded.
958 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
959 (child_create_inferior): Fix a compiler warning.
960 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
961 (solib_address): Declare new function.
962
d85fe7f7
AS
9632002-11-22 Andreas Schwab <schwab@suse.de>
964
965 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
966 and FPS registers.
967
8308e54c
DJ
9682002-11-21 Daniel Jacobowitz <drow@mvista.com>
969
970 * maint.c (_initialize_maint_cmds): Fix typo. From
971 Francesco Potorti` <pot@gnu.org>.
972
8997bd5e
AC
9732002-11-21 Andrew Cagney <cagney@redhat.com>
974
975 * mips-tdep.c (mips_dump_tdep): Delete references to
976 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
977 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
978 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
979 * printcmd.c (build_address_symbolic): Delete calls to
980 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
981 (address_info): Ditto.
982 Fix PR gdb/773.
983
4e87b832
KD
9842002-11-19 Klee Dienes <kdienes@apple.com>
985 Adam Fedor <fedor@gnu.org>
986
987 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
988 the ability to explicitly specify the quote characters and word
989 break characters; if NULL is specified for either, use the old
990 behavior of using the characters used by the completer.
991 (skip_chars): New function. Convenience wrapper around
992 skip_quoted_chars to provide the original skip_chars behavior.
993 * completer.h (skip_quoted_chars): Add prototype.
994
9ba8d803
AC
9952002-11-19 Andrew Cagney <ac131313@redhat.com>
996
997 Problems reported by Paul Eggert.
998 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
999
0a595803
AS
10002002-11-19 Andreas Schwab <schwab@suse.de>
1001
1002 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1003 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1004 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1005 (m68k_linux_frame_saved_pc): Move to ...
1006 * m68klinux-tdep.c: ... here. New file.
1007 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1008 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1009
e8afa4d7
AF
10102002-11-19 Adam Fedor <fedor@gnu.org>
1011
1012 * objc-exp.y: Revert to old skip_quoted usage.
1013
a76c9d72
AF
10142002-11-19 Adam Fedor <fedor@gnu.org>
1015
1016 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1017 (objc_lang_h): Define.
1018 (YYFILES): Add objc-exp.tab.c.
1019 (local-maintainer-clean): Remove objc-exp.tab.c.
1020 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1021
fd0e9d45
PM
10222002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1023
1024 * p-exp.y (typecast rule): Add automatic dereference of
1025 pascal classes if needed.
1026 (THIS): Set current_type.
1027 Automatically dereference pascal classes.
1028 (typebase rule): Add ^typebase recognition.
1029
82eeeb94
AF
10302002-11-18 Adam Fedor <fedor@gnu.org>
1031
1032 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1033 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1034 (op_name): Handle OP_OBJC_SELF.
1035 * Makefile.in (expprint.o): Add additional depends.
1036
646df18d
AF
10372002-11-18 Adam Fedor <fedor@gnu.org>
1038
1039 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1040 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1041 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1042 * objc-exp.y: Likewise.
1043
379b85df
AF
10442002-11-18 Adam Fedor <fedor@gnu.org>
1045
1046 * gdb/parser-defs.h: (struct objc_class_str): New structure
1047 for parsing ObjC classes.
1048
85cf597a
AC
10492002-11-18 Andrew Cagney <ac131313@redhat.com>
1050
1051 * stack.c (frame_relative_level): Copy function from here ...
1052 * frame.c (frame_relative_level): ...to here.
1053
5a203e44
AC
10542002-11-18 Andrew Cagney <ac131313@redhat.com>
1055
1056 * frame.h (enum frame_type): Define.
1057 (get_frame_type): Declare.
1058 (struct frame_info): Add field `type'. Delete field
1059 signal_handler_caller.
1060 (deprecated_set_frame_signal_handler_caller): Declare.
1061 * frame.c (get_frame_type): New function.
1062 (deprecated_set_frame_type): New function.
1063 (create_new_frame): Set the frame's type.
1064 (get_prev_frame): Similar.
1065 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1066 * s390-tdep.c: Ditto.
1067 * m68klinux-nat.c: Ditto.
1068 * ns32k-tdep.c: Ditto.
1069 * x86-64-linux-tdep.c: Ditto.
1070 * vax-tdep.c: Ditto.
1071 * rs6000-tdep.c: Ditto.
1072 * ppc-linux-tdep.c: Ditto.
1073 * i386-interix-tdep.c: Ditto.
1074 * mips-tdep.c: Ditto.
1075 * m68k-tdep.c: Ditto.
1076 * hppa-tdep.c: Ditto.
1077 * ia64-tdep.c: Ditto.
1078 * cris-tdep.c: Ditto.
1079 * arm-tdep.c: Ditto.
1080 * alpha-tdep.c: Ditto.
1081 * i386-tdep.c: Ditto.
1082 * stack.c: Ditto.
1083 * ada-lang.c: Ditto.
1084 * blockframe.c: Update.
1085 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1086 deprecated_set_frame_type instead of signal_handler_caller.
1087 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1088 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1089 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1090
bf4ae8b2
KD
10912002-11-18 Klee Dienes <kdienes@apple.com>
1092
1093 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1094
a672ef13
KD
10952002-11-18 Klee Dienes <kdienes@apple.com>
1096
1097 * buildsym.c (pop_context): Add comment.
1098
0c5e171a
KD
10992002-11-18 Klee Dienes <kdienes@apple.com>
1100
1101 * buildsym.h (pop_context): Convert to function, defined in
1102 buildsym.c.
1103 * buildsym.c: Include gdb_assert.h.
1104 (pop_context): Implement as C function. Add check for stack
1105 underflow.
1106 * dbxread.c (process_one_symbol): Complain and stop processing
1107 that symbol if we are already at the top of the context stack for
1108 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1109 when processing N_RBRAC.
1110
8a1f4c4c
DJ
11112002-11-16 Daniel Jacobowitz <drow@mvista.com>
1112
1113 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1114 define.
1115 (struct target_waitstatus): Add opaque definition.
1116 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1117 * exec.c (init_exec_ops): Likewise.
1118 * fork-child.c (clone_and_follow_inferior): Remove.
1119 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1120 * inferior.h (clone_and_follow_inferior): Remove prototype.
1121 * infrun.c (follow_fork_mode_both): Remove.
1122 (follow_fork_mode_kind_names): Remove commented out "both".
1123 (follow_inferior_fork): Remove follow_fork_mode_both support.
1124 * inftarg.c (child_clone_and_follow_inferior): Remove.
1125 (child_post_follow_inferior_by_clone): Remove.
1126 (init_child_ops): Don't set to_clone_and_follow_inferior
1127 or to_post_follow_inferior_by_clone.
1128 * target.c (default_clone_and_follow_inferior): Remove.
1129 (cleanup_target): Don't set to_clone_and_follow_inferior
1130 or to_post_follow_inferior_by_clone.
1131 (find_default_clone_and_follow_inferior): Remove.
1132 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1133 (debug_to_clone_and_follow_inferior): Remove.
1134 (debug_to_post_follow_inferior_by_clone): Remove.
1135 (setup_target_debug): Don't set to_clone_and_follow_inferior
1136 or to_post_follow_inferior_by_clone.
1137 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1138 and to_post_follow_inferior_by_clone.
1139 (child_clone_and_follow_inferior): Remove prototype.
1140 (child_post_follow_inferior_by_clone): Remove prototype.
1141 (target_clone_and_follow_inferior): Remove macro.
1142 (target_post_follow_inferior_by_clone): Remove macro.
1143 (find_default_clone_and_follow_inferior): Remove prototype.
1144
47932f85
DJ
11452002-11-16 Daniel Jacobowitz <drow@mvista.com>
1146
1147 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1148 inferior_has_vforked, and inferior_has_execd instead of
1149 target_has_forked, target_has_vforked, and target_has_execd.
1150 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1151 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1152 (CHILD_WAIT): Define.
1153 (child_wait): Add prototype.
1154 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1155 Add prototype.
1156 (hpux_has_vforked): Likewise, from child_has_vforked.
1157 (hpux_has_execd): Likewise, from child_has_execd.
1158 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1159 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1160 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1161 and hpux_has_syscall_event instead of the target hooks.
1162 * infrun.c (inferior_has_forked, inferior_has_vforked)
1163 (inferior_has_execd): New functions.
1164 * inftarg.c (not_same_real_pid): Remove.
1165 (child_wait): Remove references to not_same_real_pid,
1166 target_has_forked, target_has_vforked, target_has_execd,
1167 and target_has_syscall_event.
1168 (child_has_forked, child_has_vforked, child_has_execd)
1169 (child_has_syscall_event): Remove.
1170 (init_child_ops): Remove references to child_has_forked,
1171 child_has_vforked, child_has_execd, and child_has_syscall_event.
1172 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1173 (hpux_has_vforked): Likewise, from child_has_vforked.
1174 (hpux_has_execd): Likewise, from child_has_execd.
1175 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1176 * target.c (cleanup_target): Remove references to
1177 to_has_forked, to_has_vforked, to_has_execd, and
1178 to_has_syscall_event.
1179 (update_current_target): Likewise.
1180 (setup_target_debug): Likewise.
1181 (debug_to_has_forked): Remove.
1182 (debug_to_has_vforked): Remove.
1183 (debug_to_has_execd): Remove.
1184 (debug_to_has_syscall_event): Remove.
1185 * target.h (struct target_ops): Remove to_has_forked.
1186 to_has_vforked, to_has_execd, and to_has_syscall_event.
1187 (child_has_forked, child_has_vforked, child_has_execd)
1188 (child_has_syscall_event): Remove prototypes.
1189 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1190 prototypes.
1191 (target_has_forked, target_has_vforked, target_has_execd)
1192 (target_has_syscall_event): Remove macros.
1193
4088142a
DJ
11942002-11-16 Daniel Jacobowitz <drow@mvista.com>
1195
1196 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1197 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1198 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1199 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1200 * target.c (cleanup_target): Remove reference to
1201 to_can_follow_vfork_prior_to_exec.
1202 (update_current_target): Likewise.
1203 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1204 (setup_target_debug): Remove reference to
1205 to_can_follow_vfork_prior_to_exec.
1206 * target.h (struct target_ops): Remove
1207 to_can_follow_vfork_prior_to_exec.
1208 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1209 (target_can_follow_vfork_prior_to_exec): Remove definition.
1210 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1211 define.
1212 * infrun.c (follow_vfork_when_exec): Remove.
1213 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1214 (follow_exec): Likewise.
1215 (handle_inferior_event): Likewise.
1216 (keep_going): Likewise.
1217
18cde8d5
AC
12182002-11-15 Andrew Cagney <cagney@redhat.com>
1219
1220 * frame.c (generic_unwind_get_saved_register): Make static.
1221 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1222 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1223 defaults to generic_unwind_get_saved_register.
1224 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1225 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1226 * frv-tdep.c (frv_gdbarch_init): Ditto.
1227 * i386-tdep.c (i386_gdbarch_init): Ditto.
1228 * s390-tdep.c (s390_gdbarch_init): Ditto.
1229 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1230 * v850-tdep.c (v850_gdbarch_init): Ditto.
1231 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1232 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1233 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1234
a6b063af
AC
12352002-11-15 Andrew Cagney <cagney@redhat.com>
1236
1237 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1238 i386-tdep.c.
1239
f407986f
AC
12402002-11-15 Andrew Cagney <cagney@redhat.com>
1241
1242 * frame.h (sigtramp_saved_pc): Delete declaration.
1243 * blockframe.c (sigtramp_saved_pc): Delete function.
1244 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1245 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1246 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1247 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1248
f18c5a73
AC
12492002-11-15 Andrew Cagney <ac131313@redhat.com>
1250
1251 * frame.c (frame_pc_unwind): New function.
1252 (frame_saved_regs_pc_unwind): New function.
1253 (frame_register_unwind): Pass unwind_cache instead of
1254 register_unwind_cache.
1255 (set_unwind_by_pc): Add unwind_pc parameter, set.
1256 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1257 (get_prev_frame): Ditto.
1258 * frame.h (frame_pc_unwind_ftype): Declare.
1259 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1260 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1261 (frame_pc_unwind): Declare.
1262 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1263 (struct dummy_frame): Add comment mentioning that values are for
1264 previous frame.
1265 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1266 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1267 (generic_file_frame_chain_valid): Ditto.
1268 * stack.c (frame_info): Ditto.
1269
d9285969 12702002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1271
1272 * linespec.c (locate_first_half): New function.
1273 (decode_line_1): Move code into locate_first_half.
1274
d741b867
AC
12752002-11-15 Andrew Cagney <ac131313@redhat.com>
1276
1277 * complaints.h: Add comment explaining how to eliminate a
1278 deprecated_complain call.
24382c5c 1279 * complaints.h: Fix spelling errors.
d741b867 1280
82d03c99
DC
12812002-11-15 David Carlton <carlton@math.stanford.edu>
1282
1283 * printcmd.c: Remove #include "disasm.h".
1284
c97eb5d9
AC
12852002-11-14 Andrew Cagney <ac131313@redhat.com>
1286
1287 * frame.h: Move the most relevant interface functions to the start
1288 of the file.
1289
524d7c18
AC
12902002-11-14 Andrew Cagney <ac131313@redhat.com>
1291
1292 * regcache.h (deprecated_registers): Rename registers.
1293 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1294 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1295 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1296 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1297 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1298 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1299 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1300 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1301 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1302 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1303 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1304 * v850ice.c: Update.
1305
6411e720
AC
1306Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1307
1308 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1309 NULL buffer.
1310
73937e03
AC
13112002-11-13 Andrew Cagney <cagney@redhat.com>
1312
1313 * regcache.h (deprecated_read_register_bytes): Rename
1314 read_register_bytes.
1315 (deprecated_write_register_bytes): Rename write_register_bytes.
1316 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1317 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1318 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1319 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1320 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1321 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1322 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1323 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1324 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1325 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1326 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1327 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1328 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1329 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1330
fb0cd46e
JB
13312002-11-13 Jim Blandy <jimb@redhat.com>
1332
1333 * findvar.c (read_var_value): Doc fix.
1334
2d28509a
AC
13352002-11-13 Andrew Cagney <cagney@redhat.com>
1336
1337 * regcache.c (struct regcache): Replace passthough_p with
1338 readonly_p.
1339 (regcache_xmalloc): Initialize readonly_p.
1340 (build_regcache): Initialize readonly_p.
1341 (regcache_save): New function.
1342 (regcache_restore): New function.
1343 (regcache_cpy): Re-implement using regcache_save and
1344 regcache_restore.
1345 (regcache_raw_read): Update.
1346 (regcache_cooked_read): When a read-only cache, checked for cached
1347 pseudo register values.
1348 (regcache_raw_write): Assert that the cache is not read-only.
1349 Remove code handling a non-passthrough cache.
1350 * regcache.h (regcache_save): Declare.
1351 (regcache_restore): Declare.
1352
067df2e5
AC
13532002-11-13 Andrew Cagney <cagney@redhat.com>
1354
1355 * regcache.c (struct regcache_descr): Add fields
1356 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1357 (init_legacy_regcache_descr): Compute the size of a cooked
1358 register cache and then assign that to sizeof_raw_registers. Set
1359 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1360 (init_legacy_regcache_descr): Ditto.
1361
51b1fe4e
AC
13622002-11-13 Andrew Cagney <cagney@redhat.com>
1363
1364 * regcache.c (register_buffer): Move to near start of file, update
1365 description.
1366 (regcache_raw_read): Use.
1367 (regcache_raw_write): Use.
1368 (struct regcache): Rename raw_registers to registers and
1369 raw_register_valid_p to register_valid_p.
1370 (regcache_xmalloc): Update.
1371 (regcache_xfree): Update.
1372 (register_buffer): Update.
1373 (regcache_cpy): Update.
1374 (regcache_cpy_no_passthrough): Update.
1375 (regcache_valid_p): Update.
1376 (deprecated_grub_regcache_for_registers): Update.
1377 (deprecated_grub_regcache_for_register_valid): Update.
1378 (set_register_cached): Update.
1379 (regcache_raw_write): Update.
1380
80b4c677
PM
13812002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1382
1383 * p-exp.y (name_not_typename): Use copy_name to
1384 set current_type variable for fields of THIS.
1385
0f3fafde
DJ
13862002-11-12 Daniel Jacobowitz <drow@mvista.com>
1387
1388 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1389 * monitor.c (init_base_monitor_ops): Likewise.
1390 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1391 * remote-array.c (init_array_ops): Likewise.
1392 * remote-e7000.c (init_e7000_ops): Likewise.
1393 * remote-es.c (init_es1800_ops): Likewise.
1394 (init_es1800_child_ops): Likewise.
1395 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1396 * remote-sim.c (init_gdbsim_ops): Likewise.
1397 * remote-st.c (init_st2000_ops): Likewise.
1398 * sol-thread.c (init_sol_core_ops): Likewise.
1399 (init_sol_thread_ops): Likewise.
1400 * v850ice.c (init_850ice_ops): Likewise.
1401 * win32-nat.c (init_child_ops): Likewise.
1402 * wince.c (init_child_ops): Likewise.
1403
82c0260e
AC
14042002-11-12 Andrew Cagney <ac131313@redhat.com>
1405
1406 * utils.c (gdb_realpath): Make rp a constant pointer.
1407
70d35819
AC
14082002-11-12 Andrew Cagney <ac131313@redhat.com>
1409
1410 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1411 a constant buffer; cannonicalize_file_name(); realpath() with a
1412 pathconf() defined buffer, xstrdup().
1413
9835a8b0
AC
14142002-11-12 Andrew Cagney <ac131313@redhat.com>
1415
1416 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1417 to hang2.C; hang3.c to hang3.C.
1418
3f47be5c
EZ
14192002-11-11 Elena Zannoni <ezannoni@redhat.com>
1420
1421 * findvar.c (read_var_value): Reenable TLS code.
1422
14232002-11-11 Elena Zannoni <ezannoni@redhat.com>
1424 Jim Blandy <jimb@redhat.com>
1425
1426 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1427 * target.c (update_current_target): Add
1428 to_get_thread_local_address.
1429 * target.h (to_get_thread_local_address): Export.
1430 (target_get_thread_local_address): Define.
1431 (target_get_thread_local_address_p): Define.
1432 * thread-db.c: Include solib-svr4.h.
1433 (td_thr_tls_get_addr_p): Define.
1434 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1435 (thread_db_get_thread_local_address): New function.
1436 (init_thread_db_ops): Initialize to_get_thread_local_address.
1437 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1438 * configure: Regenerate.
1439 * config.in: Regenerate.
1440
636b1a6d
DC
14412002-11-11 David Carlton <carlton@math.stanford.edu>
1442
1443 * linespec.c (set_flags): New function.
1444 (decode_line_1): Move code into set_flags.
1445
44fe14ab
DC
14462002-11-11 David Carlton <carlton@math.stanford.edu>
1447
1448 * linespec.c (decode_line_1): Move chunks of code to separate
1449 functions.
1450 (initialize_defaults): New function.
1451 (decode_indirect): New function.
1452
e6f181f5
AC
14532002-11-11 Andrew Cagney <ac131313@redhat.com>
1454
8971b011
AC
1455 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1456 instead of void_code_ptr.
1457 (sigtramp_saved_pc): Ditto.
1458
e6f181f5
AC
1459 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1460 i386_fp_regnum_p.
1461
01ad7f36
DJ
14622002-11-10 Daniel Jacobowitz <drow@mvista.com>
1463
1464 * gdbtypes.h (struct main_type): Move artificial flag out of
1465 loc. New member of ``struct field'' named static_kind. Reduce
1466 overloaded meaning of bitsize.
1467 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1468 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1469 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1470
1471 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1472 new fields.
1473 (template_to_fixed_record_type, template_to_static_fixed_type)
1474 (to_record_with_fixed_variant_part): Likewise.
1475 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1476 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1477 * dwarfread.c (struct_type, enum_type): Likewise.
1478 * hpread.c (hpread_read_enum_type)
1479 (hpread_read_function_type, hpread_read_doc_function_type)
1480 (hpread_read_struct_type): Likewise.
1481 * mdebugread.c (parse_symbol): Likewise.
1482
bf1e52be
AC
14832002-11-10 Andrew Cagney <ac131313@redhat.com>
1484
1485 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1486 * stack.c (print_frame_info_base): Update.
1487 (print_frame_info_base, frame_info): Update.
1488 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1489 (sparc_frame_saved_pc): Update.
1490 * ada-lang.c (find_printable_frame): Update.
1491 * breakpoint.c (deprecated_frame_in_dummy): Update.
1492
ce556f85
MK
14932002-11-09 Mark Kettenis <kettenis@gnu.org>
1494
1495 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1496 defined.
1497 (regmap): Extend to cover all registers.
1498 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1499 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1500 definitions.
1501 (fetch_register, sore_register): Simplify.
1502 (old_fetch_inferior_registers, old_store_inferior_registers):
1503 Remove functions.
1504 (cannot_fetch_register, cannot_store_register): Change
1505 implementation to use regmap array to decide which registers
1506 cannot be fetched/stored. This removes $orig_eax from the
1507 registers that cannot be fetched/stored.
1508 (fetch_inferior_registers): Call fetch_register directly instead
1509 of calling old_fetch_inferior_registers.
1510 (store_inferior_registers): Call store_register directly instead
1511 of calling old_store_inferior_registers.
1512 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1513 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1514 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1515
932bb524
KD
15162002-11-09 Klee Dienes <kdienes@apple.com>
1517
1518 * i387-tdep.c (i387_supply_register): When called with NULL as a
1519 buffer, mark the register as not provided (to mirror the behavior
1520 of supply_register).
1521 (i387_supply_fxsave): Ditto.
1522 (i387_supply_fsave): Ditto (inherits the behavior from
1523 i387_supply_register).
1524
ebe68b27
KD
15252002-11-09 Klee Dienes <kdienes@apple.com>
1526
1527 * blockframe.c (sigtramp_saved_pc): Use
1528 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1529 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1530 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1531
15220c65
AC
15322002-11-09 Andrew Cagney <ac131313@redhat.com>
1533
1534 * frame.c (get_prev_frame): Test prev_p to identify a previously
1535 unwound frame. Initialize prev_p.
1536 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1537 comment.
1538
95adb866
AC
15392002-11-09 Andrew Cagney <ac131313@redhat.com>
1540
1541 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1542 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1543 more comments. Zap dead code.
1544
e71ecd70
MK
15452002-11-09 Mark Kettenis <kettenis@gnu.org>
1546
1547 * infcmd.c (print_vector_info, print_float_info): Move code that
1548 checks whether the target has any registers and whether there is a
1549 selected frame up, such that it is also used if a target provides
1550 multi-arch definitions of these functions.
1551
c525330d
AC
15522002-11-08 Andrew Cagney <ac131313@redhat.com>
1553
72bdd927
AC
1554 * Makefile.in (DESTDIR): Define.
1555 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1556 prefix.
1557
c525330d
AC
1558 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1559 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1560
38c968cf
AC
15612002-11-08 Andrew Cagney <ac131313@redhat.com>
1562
1563 * i386-linux-tdep.c: Include "reggroups.h".
1564 (i386_linux_register_reggroup_p): New function.
1565 (i386_linux_init_abi): Set register_reggroup_p to
1566 i386_linux_register_reggroup_p.
1567 * i386-tdep.h (i386_register_reggroup_p): Declare.
1568 * i386-tdep.c: Include "reggroups.h".
1569 (i386_init_reggroups): New function.
1570 (i386_add_reggroups): New function.
1571 (i386_register_reggroup_p): New function.
1572 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1573 (_initialize_i386_tdep): Call i386_init_reggroups.
1574 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1575 specific reggroups.
1576
19e33363
MK
15772002-11-09 Mark Kettenis <kettenis@gnu.org>
1578
371a6e84
MK
1579 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1580 request that's available in *BSD.
1581
94ba925a
MK
1582 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1583
19e33363
MK
1584 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1585 FDOFF_REGNUM.
1586
8779790c
AC
15872002-11-08 Andrew Cagney <ac131313@redhat.com>
1588
1589 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1590 * dummy-frame.c (find_dummy_frame): Rename
1591 generic_find_dummy_frame, make static. Return the dummy frame
1592 instead of the regcache.
1593 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1594 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1595 (dummy_frame_register_unwind): Rename
1596 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1597 * dummy-frame.h (dummy_frame_register_unwind): Rename
1598 generic_call_dummy_register_unwind.
1599
8674b74f
MK
16002002-11-08 Mark Kettenis <kettenis@gnu.org>
1601
1602 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1603 except the inclusion of "i386/tm-i386.h", to...
1604 * config/i386/nm-i386v42mp.h: ...here.
1605 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1606
4c1e7e9d
AC
16072002-11-08 Andrew Cagney <ac131313@redhat.com>
1608
1609 * Makefile.in (frame.o): Update dependencies.
1610 * blockframe.c (current_frame, frame_obstack_alloc)
1611 (frame_saved_regs_zalloc, get_current_frame)
1612 (set_current_frame, create_new_frame)
1613 (set_unwind_by_pc, get_next_frame)
1614 (flush_cached_frames, reinit_frame_cache)
1615 (frame_saved_regs_register_unwind)
1616 (deprecated_generic_get_saved_register)
1617 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1618 (_initialize_blockframe): Move frame code from here...
1619 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1620 "annotate.h" and "dummy-frame.h".
1621 (_initialize_frame): New function.
1622
921e78cf
JB
16232002-11-08 Jim Blandy <jimb@redhat.com>
1624
1625 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1626 when we finish a function a context.
1627 * buildsym.h (outermost_context_p): New macro.
1628 (Bug analyzed by David Edelsohn.)
1629
9c1412c1
AC
16302002-11-08 Andrew Cagney <ac131313@redhat.com>
1631
1632 * blockframe.c: Include "dummy-frame.h".
1633 (struct dummy_frame, dummy_frame_stack)
1634 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1635 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1636 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1637 (generic_save_call_dummy_addr, generic_pop_current_frame)
1638 (generic_pop_dummy_frame, generic_fix_call_dummy)
1639 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1640 dummy frame code from here...
1641 * dummy-frame.c: ...to here. New file.
1642 * dummy-frame.h: New file.
1643 (generic_call_dummy_register_unwind): Declare.
1644 (generic_find_dummy_frame): Declare.
1645 * Makefile.in (SFILES): Add dummy-frame.c.
1646 (dummy-frame.o): Specify dependencies.
1647 (dummy_frame_h): Define.
1648 (COMMON_OBS): Add dummy-frame.o.
1649 (blockframe.o): Update dependencies.
1650
208d8187
JB
16512002-11-08 Jim Blandy <jimb@redhat.com>
1652
1653 * dwarf2read.c (read_func_scope): Restore local_symbols and
1654 param_symbols after we finish the function context. (Based on a
1655 patch from David Edelsohn.)
1656
413dad4d
DC
16572002-11-08 David Carlton <carlton@math.stanford.edu>
1658
1659 * linespec.c (symbol_found): New function.
1660 (minsym_found): New function.
1661 (decode_line_1): Separate out some code into separate functions.
1662
5512c44a
JB
16632002-11-08 Joel Brobecker <brobecker@gnat.com>
1664
1665 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1666 the benefit of the interix target.
1667 * i386-tdep.h (i386_frameless_signal_p): Declare.
1668
1b33ef47
AC
16692002-11-08 Andrew Cagney <ac131313@redhat.com>
1670
1671 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1672 declaration that snuck in from change below.
1673
23a34459
AC
16742002-11-06 Andrew Cagney <cagney@redhat.com>
1675
1676 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1677 all callers.
1678 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1679 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1680 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1681 (i386_mxcsr_regnum_p): new function. Use instead of
1682 MXCSR_REGNUM_P.
1683 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1684 (i386_sse_regnum_p): Declare.
1685 (i386_mxcsr_regnum_p): Declare.
1686 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1687 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1688 (IS_FP_REGNUM): Update definition.
1689 (IS_FPU_CTRL_REGNUM): Update definition..
1690 (IS_SSE_REGNUM): Update definition..
1691 * i386v-nat.c (register_u_addr): Update.
1692 * go32-nat.c (fetch_register): Update.
1693 (store_register): Update.
1694
d709c020
JB
16952002-11-07 Joel Brobecker <brobecker@gnat.com>
1696
1697 Preparation work to convert the hppa targets to multiarch partial.
1698
1699 * hppa-tdep.c: Add new functions replacing macro bodies from
1700 config/pa/tm-hppa.h. These function will be used to initialize
1701 the gdbarch structure. Import some comments from tm-hppa.h,
1702 and place them where appropriate, to avoid loosing them when
1703 we cleanup this file.
1704 (hppa_reg_struct_has_addr): New function.
1705 (hppa_inner_than): New function.
1706 (hppa_stack_align): New function.
1707 (hppa_pc_requires_run_before_use): New function.
1708 (hppa_instruction_nullified): New function.
1709 (hppa_register_byte): New function.
1710 (hppa_register_virtual_type): New function.
1711 (hppa_store_struct_return): New function.
1712 (hppa_cannot_store_register): New function.
1713 (hppa_frame_args_address): New function.
1714 (hppa_frame_locals_address): New function.
1715 (hppa_smash_text_address): New function.
1716 (hppa_coerce_float_to_double): New function. Requires the inclusion
1717 of "language.h".
1718
1719 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1720
1721 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1722 gdbarch-eligible macro to a call to the new associated function
1723 created in hppa-tdep.c.
1724 (INNER_THAN): Likewise.
1725 (STACK_ALIGN): Likewise.
1726 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1727 (INSTRUCTION_NULLIFIED): Likewise.
1728 (REGISTER_BYTE): Likewise.
1729 (REGISTER_VIRTUAL_TYPE): Likewise.
1730 (STORE_STRUCT_RETURN): Likewise.
1731 (CANNOT_STORE_REGISTER): Likewise.
1732 (FRAME_ARGS_ADDRESS): Likewise.
1733 (FRAME_LOCALS_ADDRESS): Likewise.
1734 (SMASH_TEXT_ADDRESS): Likewise.
1735 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1736 (ABOUT_TO_RETURN): Delete, as no longer used.
1737
83c31e7d
FN
17382002-11-07 Fernando Nasser <fnasser@redhat.com>
1739
1740 * printcmd.c (disassemble_command): Remove obsolete function.
1741 (_initialize_printcmd): Do not create disassemble command here.
1742 * cli/cli-cmds.c (disassemble_command): New function. Implements
1743 disassemble command.
1744 (init_cli_cmds): Create disassemble command here instead.
1745
0ec30a36
AC
17462002-11-07 Andrew Cagney <ac131313@redhat.com>
1747
1748 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1749
e600bd34
AC
17502002-11-07 Andrew Cagney <ac131313@redhat.com>
1751
1752 * regcache.h (regcache_cooked_read_using_offset_hack)
1753 (regcache_cooked_write_using_offset_hack): Delete declarations.
1754 (register_changed): Delete declaration.
1755 * regcache.c (regcache_cooked_read_using_offset_hack)
1756 (regcache_cooked_write_using_offset_hack): Delete functions.
1757 (cooked_xfer_using_offset_hack): Delete function.
1758 (register_changed): Delete function.
1759
568f8739
JB
17602002-11-07 Jim Blandy <jimb@redhat.com>
1761
1762 * macroscope.c: #include "complaints.h".
1763 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1764 but not in the macro table.
1765 * Makefile.in (macroscope.o): Record dependency.
1766
b0718b7b
JB
17672002-11-07 Joel Brobecker <brobecker@gnat.com>
1768
1769 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1770
2b9e5f3f
AC
17712002-11-07 Andrew Cagney <ac131313@redhat.com>
1772
1773 * regcache.c (deprecated_registers_fetched): Update.
1774 * regcache.h (deprecated_registers_fetched): Rename
1775 registers_fetched.
1776 * remote-vxsparc.c (vx_read_register): Update.
1777 * remote-vxmips.c (vx_read_register): Update.
1778 * remote-vx68.c (vx_read_register): Update.
1779 * irix5-nat.c (fetch_core_registers): Update.
1780 * mipsm3-nat.c (fetch_inferior_registers): Update.
1781 * sun3-nat.c (fetch_inferior_registers): Update.
1782 * symm-nat.c (fetch_inferior_registers): Update.
1783 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1784 (fetch_core_registers): Update.
1785 (fetch_kcore_registers): Update.
1786 * mips-nat.c (fetch_inferior_registers): Update.
1787 * corelow.c (get_core_registers): Update.
1788 * a68v-nat.c (fetch_inferior_registers): Update.
1789
e6e68f1f
JB
17902002-11-06 Joel Brobecker <brobecker@gnat.com>
1791
1792 Put in place the framework necessary for multiarching the hppa targets.
1793 * hppa-tdep.c (hppa_gdbarch_init): New function.
1794 (hppa_dump_tdep): New function.
1795 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1796 tdep structure dumper.
1797 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1798 until the multi-arching conversion has partially been completed.
1799
492254e9
AC
18002002-11-06 Andrew Cagney <ac131313@redhat.com>
1801
1802 * valops.c (value_assign): Merge lval_register case into
1803 lval_reg_frame_relative. Use frame_register and
1804 regcache_cooked_write instead of get_saved_register and
1805 write_register_bytes. After flushing the register cache, try to
1806 re-select the selected frame.
1807
8262ee23
AC
18082002-11-06 Andrew Cagney <ac131313@redhat.com>
1809
1810 * regcache.h (deprecated_register_valid): Rename register_valid.
1811 * regcache.c: Update.
1812 * ia64-aix-nat.c: Update.
1813 * i386gnu-nat.c: Update.
1814 * alpha-nat.c: Update.
1815 * sparc-nat.c: Update.
1816 * lynx-nat.c: Update.
1817 * remote-mips.c: Update.
1818
4facf7e8
JB
18192002-11-06 Joel Brobecker <brobecker@gnat.com>
1820
1821 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1822 to end of file, to be more consistent with the pratice followed
1823 by other targets.
1824
f9418c0f
AC
18252002-11-06 Andrew Cagney <ac131313@redhat.com>
1826
1827 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1828 (print_float_info): Print registers in float_reggroup.
1829 (print_vector_info): Print registers in vector_reggroup.
1830 (default_print_registers_info): When all, print registers in
1831 all_reggroup. Otherwize, print registers in general_reggroup.
1832 (registers_info): Rewrite. Add support for register groups.
1833 Eliminate a goto.
1834
3fe235a7
EZ
18352002-11-06 Elena Zannoni <ezannoni@redhat.com>
1836
1837 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1838 ages.
1839 (symtab_symbol_info): Remove eons old ifdeffed out code.
1840 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1841 command.
1842
ef944135
TR
18432002-11-06 Theodore A. Roth <troth@openavr.org>
1844
1845 * c-exp.y: Add missing semi-colons.
1846 * f-exp.y: Add missing semi-colons.
1847 * m2-exp.y: Add missing semi-colons.
1848 * p-exp.y: Add missing semi-colons.
1849 Add empty action to start rule to avoid a type clash error when
1850 building with bison >= 1.50.
1851
f8302a57
JB
18522002-11-06 Jim Blandy <jimb@redhat.com>
1853
1854 * macrotab.h (struct macro_source_file): Doc fix.
1855
6e382aa3
JJ
18562002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1857
1858 * varobj.c (child_exists, cplus_number_of_children): Change
1859 STREQ macro references to strcmp.
1860 (cplus_name_of_child): Change code to handle the fact that
1861 fields are not necessarily contiguous with regards to their
1862 access control. This is a fix for PR gdb/792.
1863
a216a322
AC
18642002-11-05 Andrew Cagney <ac131313@redhat.com>
1865
1866 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1867 * gdbarch.h, gdbarch.c: Regnerate.
1868 * frame.h (frame_register): Declare.
1869 * frame.c (frame_register): New function.
1870 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1871 GET_SAVED_REGISTER, otherwize call
1872 generic_unwind_get_saved_register.
1873 (frame_register_read): Use frame_register instead of
1874 get_saved_register.
1875
7d5b6fdd
EZ
18762002-11-05 Elena Zannoni <ezannoni@redhat.com>
1877
1878 From Jim Ingham <jingham@apple.com>:
1879 * event-top.c (gdb_disable_readline): New function.
1880 (_initialize_event_loop): Move comment.
1881
b7c64260
EZ
18822002-11-05 Elena Zannoni <ezannoni@redhat.com>
1883
1884 * event-loop.c (start_event_loop): Add comment.
1885 Update copyright.
1886
c2e1b8f2
AC
18872002-11-05 Andrew Cagney <ac131313@redhat.com>
1888
1889 * infcmd.c (default_print_registers_info): Do not call
1890 PRINT_REGISTER_HOOK.
1891
87647bb0
AC
18922002-11-05 Andrew Cagney <ac131313@redhat.com>
1893
1894 * sparc-tdep.c (sparc_print_register_hook): Make static.
1895 (sparc_print_registers_info): New function.
1896 (sparc_do_registers_info): New function.
1897 (sparclet_print_registers_info): New function.
1898 (sparclet_do_registers_info): New function.
1899 (do_sparc_print_registers_info): New function.
1900 (sparc_print_registers): New static function, clone of infcmd.c's
1901 default_print_registers_info.
1902 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1903 (sparclet_do_registers_info): Declare.
1904 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1905 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1906 Re-define.
1907 (sparc_do_registers_info): Declare.
1908 (PRINT_REGISTER_HOOK): Delete macro.
1909 (sparc_print_register_hook): Delete declaration.
1910
8155455b
DC
19112002-11-05 David Carlton <carlton@math.stanford.edu>
1912
1913 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1914 functions.
1915 (lookup_symbol_aux_local): New function.
1916 (lookup_symbol_aux_symtabs): New function.
1917 (lookup_symbol_aux_psymtabs): New function.
1918
29924310
DC
19192002-11-05 David Carlton <carlton@math.stanford.edu>
1920
1921 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1922 previous values of 'objfile' and 'block'.
1923
cc303028
PM
19242002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1925
1926 * values.c (value_change_enclosing_type): Set
1927 enclosing_type field correctly also for the case where
1928 more memory needs to be allocated.
1929
1d70089a
MK
19302002-11-03 Mark Kettenis <kettenis@gnu.org>
1931
f16a25ae
MK
1932 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1933 of puts_filtered.
1934
1d70089a
MK
1935 * i387-tdep.c (i387_print_float_info): Replace calls to
1936 register_read and deprecated_read_register_gen with calls to
1937 frame_register_read, and make the necessary adjustments to the
1938 surrounding code.
1939
7e20f3fb
AC
19402002-11-02 Andrew Cagney <ac131313@redhat.com>
1941
1942 * gdbarch.sh (register_reggroup_p): Allow default value.
1943 * gdbarch.h, gdbarch.c: Regenerate.
1944
192dbe33
AC
19452002-11-02 Andrew Cagney <ac131313@redhat.com>
1946
1947 * regcache.h: Add coment indicating replacements for deprecated
1948 functions.
1949
b59ff9d5
AC
19502002-11-02 Andrew Cagney <cagney@redhat.com>
1951
1952 * reggroups.h, reggroups.c: New files.
1953 * regcache.c: Include "reggroups.h".
1954 (enum regcache_dump_what): Add `regcache_dump_groups'.
1955 (regcache_dump): Contract size of the "Type" column. When
1956 specified, dump the register's groups.
1957 (maintenance_print_register_groups): New function.
1958 (_initialize_regcache): Add command `maint print register-groups'.
1959 * Makefile.in (COMMON_OBS): Add reggroups.o
1960 (SFILES): Add reggroups.c.
1961 (reggroups_h): Define.
1962 (regcache.o, gdbarch.o): Update dependencies.
1963 (reggroups.o): Specify dependencies.
1964 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1965 Add opaque declaration for `struct reggroup' in generated .h file.
1966 Include "reggroups.h" in generated .c file.
1967 gdbarch.h, gdbarch.c: Re-generate.
1968
4caf0990
AC
19692002-11-02 Andrew Cagney <cagney@redhat.com>
1970
1971 * regcache.h (deprecated_read_register_gen): Rename
1972 read_register_gen.
1973 (deprecated_write_register_gen): Rename write_register_gen.
1974 * i387-tdep.c: Update.
1975 * x86-64-linux-nat.c: Update
1976 * wince.c: Update.
1977 * thread-db.c: Update.
1978 * win32-nat.c: Update.
1979 * mips-tdep.c: Update.
1980 * d10v-tdep.c: Update.
1981 * cris-tdep.c: Update.
1982 * remote-sim.c: Update.
1983 * remote-rdi.c: Update.
1984 * remote-rdp.c: Update.
1985 * frame.c: Update.
1986 * target.c: Update.
1987 * blockframe.c: Update.
1988 * x86-64-tdep.c: Update.
1989 * xstormy16-tdep.c: Update.
1990 * sh-tdep.c: Update.
1991 * s390-tdep.c: Update.
1992 * rs6000-tdep.c: Update.
1993 * sparc-tdep.c: Update.
1994 * i386-tdep.c: Update.
1995 * dwarf2cfi.c: Update.
1996 * regcache.c: Update.
1997
7a7adcdf
JB
19982002-11-01 Joel Brobecker <brobecker@gnat.com>
1999
2000 New interix-specific files:
2001 * config/i386/nm-interix.h: New file.
2002 * config/i386/interix.mh: New file.
2003 * config/i386/interix.mt: New file.
2004 * i386-interix-nat.c: New file.
2005 * i386-interix-tdep.c: New file.
2006
bdcdd535
AC
20072002-11-01 Andrew Cagney <cagney@redhat.com>
2008
2009 * frame.h (deprecated_generic_get_saved_register): Rename
2010 generic_get_saved_register.
2011 * blockframe.c (deprecated_generic_get_saved_register): Update.
2012 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2013 (xstormy16_frame_saved_register): Update.
2014 * sh-tdep.c (sh_gdbarch_init): Update.
2015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2016 * ia64-tdep.c (ia64_get_saved_register): Update.
2017 * cris-tdep.c (cris_gdbarch_init): Update.
2018 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2019 * arm-tdep.c (arm_gdbarch_init): Update.
2020
2a4b7c45
DJ
20212002-10-31 Daniel Jacobowitz <drow@mvista.com>
2022
2023 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2024
ef17e74b
DJ
20252002-10-31 Daniel Jacobowitz <drow@mvista.com>
2026
2027 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2028 trampolines in sigaction.
2029
4904ba5b
AC
20302002-10-31 Andrew Cagney <cagney@redhat.com>
2031
2032 * h8300-tdep.c: Include "gdb_assert.h".
2033 (h8300_print_register): Add gdbarch, file and frame parameters.
2034 Use frame_read_unsigned_register to read the register's value.
2035 Use fprintf_filtered to display output.
2036 (h8300_print_registers_info): Replace h8300_do_registers_info.
2037 (h8300_gdbarch_init): Set print_registers_info.
2038
f908a0eb
AC
20392002-10-31 Andrew Cagney <cagney@redhat.com>
2040
2041 * frame.c (frame_read_unsigned_register): New function.
2042 (frame_read_signed_register): New function.
2043 * frame.h (frame_read_unsigned_register): Declare.
2044 (frame_read_signed_register): Declare.
2045
c5646e11
AC
20462002-10-31 Andrew Cagney <cagney@redhat.com>
2047
2048 * h8500-tdep.c (h8500_print_registers_info): New static function,
2049 clone of infcmd.c's default_print_registers_info.
2050 (h8500_do_registers_info): New funtion.
2051 (h8500_print_register_hook): Rename print_register_hook, make
2052 static.
2053
2054 * config/h8500/tm-h8500.h: Update copyright.
2055 (DEPRECATED_DO_REGISTERS_INFO): Define.
2056 (h8500_do_registers_info: Declare.
2057 (PRINT_REGISTER_HOOK): Delete macro.
2058 (print_register_hook): Delete function.
2059
0bdd672b
AC
20602002-10-31 Andrew Cagney <cagney@redhat.com>
2061
2062 * z8k-tdep.c (z8k_print_register_hook): Make static.
2063 (z8k_print_registers_info): New static function, clone of
2064 infcmd.c's default_print_registers_info.
2065 (z8k_do_registers_info): New function. Wrap
2066 z8k_print_registers_info.
2067 * config/z8k/tm-z8k.h: Update copyright.
2068 (PRINT_REGISTER_HOOK): Delete macro.
2069 (z8k_print_register_hook): Delete declaration.
2070 (DEPRECATED_DO_REGISTERS_INFO): Define.
2071 (z8k_do_registers_info): Declare.
2072
bf9c25dc
JB
20732002-10-30 Joel Brobecker <brobecker@gnat.com>
2074
2075 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2076 as this is already provided by value.h, and was actually causing
2077 a compilation error because of a conflict in parameter type
2078 declaration due to a missing const keyword.
2079 (low_text_segment_addres): Fix a compilation warning.
2080
2c665b51
DJ
20812002-10-29 Daniel Jacobowitz <drow@mvista.com>
2082
2083 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2084 registers without a name.
2085 (mips_linux_cannot_store_register): Don't store registers without
2086 a name.
2087
e70ea697
DC
20882002-10-28 David Carlton <carlton@math.stanford.edu>
2089
2090 * symtab.c (find_addr_symbol): Delete. (It was already commented
2091 out.)
2092 * symtab.h: Delete prototype for find_addr_symbol.
2093
903ad3a6
AC
20942002-10-26 Andrew Cagney <cagney@redhat.com>
2095
2096 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2097 DO_REGISTERS_INFO.
2098 gdbarch.h, gdbarch.c: Re-generate.
2099 * infcmd.c (default_print_registers_info): Update reference.
2100 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2101 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2102 * sh-tdep.c (sh_gdbarch_init): Ditto.
2103 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2104 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2105
ab91194c
MK
21062002-10-26 Mark Kettenis <kettenis@gnu.org>
2107
e3033f15
MK
2108 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2109 cfi_init_extra_frame_info.
2110 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2111 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2112
b83b026c
MK
2113 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2114 target where necessary. Add more comments and remove the ones
2115 that don't provide any useful information.
2116
267bf4bb
MK
2117 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2118 deprecated_read_register_dummy with
2119 frame_unwind_unsigned_register.
2120
751f1375
MK
2121 * i386-tdep.c (i386_extract_struct_value_address): Use
2122 regcache_raw_read_unsigned instead of
2123 regcache_cooked_read_unsigned since we know that the register
2124 we're reading isn't a pseudo register. Rename variable 'val' into
2125 the more descriptive 'addr'.
2126
26abbdc4
MK
2127 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2128 (x86_64_push_return_address): Add comment.
2129 (x86_64_pop_frame): Make static.
2130 (examine_argument): Clarify comment.
2131 (x86_64_skip_prologue): Make prolog_expact variable static.
2132
9f1549cc
MK
2133 * dwarf2cfi.c: Fix some formatting problems.
2134 (context_cpy, read_encoded_pointer): Clarify comments.
2135
ab91194c
MK
2136 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2137 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2138 i386 target back into x86_64_gdbarch_init. Add some comments and
2139 remove meaningless ones.
2140
72367fb4
AC
21412002-10-25 Andrew Cagney <cagney@redhat.com>
2142
2143 * complaints.h (struct deprecated_complaint): Rename `struct
2144 complaint'.
2145 * complaints.c (complain): Update.
2146 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2147 incorrect comment indicating that "symfile.h" was being included
2148 for the `struct complaint' definition.
2149 * remote-vx.c: Update.
2150 * objc-lang.c: Update.
2151 * xcoffread.c: Update.
2152 * hpread.c: Update.
2153 * mdebugread.c: Update.
2154 * stabsread.c: Update.
2155 * dwarf2read.c: Update.
2156 * dwarfread.c: Update.
2157 * elfread.c: Update.
2158 * coffread.c: Update.
2159 * stabsread.h: Update.
2160 * dbxread.c: Update.
2161 * buildsym.c: Update.
2162 * gdbtypes.c: Update.
2163 * macrotab.c: Update.
2164
1f2baacc
MK
21652002-10-25 Mark Kettenis <kettenis@gnu.org>
2166
0c1a73d6
MK
2167 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2168 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2169 (x86_64_init_abi): ...new function.
2170
6aee4d54 2171 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2172 * i386v-nat.c: Include "i386-tdep.h".
2173
8f9cbe01
AC
21742002-10-25 Andrew Cagney <cagney@redhat.com>
2175
5f11f355
AC
2176 * gdbtypes.c (address_space_name_to_int): Update.
2177 (address_space_int_to_name): Update.
2178 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2179 multi-arch predicate.
2180 (address_class_name_to_type_flags): Ditto.
2181 * gdbarch.h, gdbarch.c: Re-generate.
2182
8f9cbe01
AC
2183 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2184
e8d96a5d
MH
21852002-10-24 Martin M. Hunt <hunt@redhat.com>
2186
2187 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2188
fe39c653
EZ
21892002-10-24 Elena Zannoni <ezannoni@redhat.com>
2190
2191 * symtab.h (INIT_SAL): Delete macro.
2192 (init_sal): Export.
2193 * symtab.c (init_sal): New function.
2194
2195 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2196 to init_sal function call.
2197 (find_sal_from_funcs_and_line): Ditto.
2198 (all_sals_for_line): Ditto.
2199 * breakpoint.c (create_internal_breakpoint): Ditto.
2200 (create_fork_vfork_event_catchpoint): Ditto.
2201 (create_exec_event_catchpoint): Ditto.
2202 (parse_breakpoint_sals): Ditto.
2203 (watch_command_1): Ditto.
2204 (handle_gnu_4_16_catch_command): Ditto.
2205 (clear_command): Ditto.
2206 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2207 * infcmd.c (run_stack_dummy): Ditto.
2208 * infrun.c (process_event_stop_test): Ditto.
2209 (check_sigtramp2): Ditto.
2210 (step_over_function): Ditto.
2211 * linespec.c (decode_line_2): Ditto.
2212 (decode_line_1): Ditto.
2213 * source.c (line_info): Ditto.
2214 * symtab.c (find_pc_sect_line): Ditto.
2215
baed091b
ML
22162002-10-24 Michal Ludvig <mludvig@suse.cz>
2217
2218 * dwarf2cfi.c (struct context)
2219 (struct context_reg): Moved to dwarf2cfi.h
2220 (context_alloc, frame_state_alloc, context_cpy):
2221 Made extern instead of static, removed prototypes.
2222 * dwarf2cfi.h (struct context)
2223 (struct context_reg): New, moved from dwarf2cfi.c
2224 (context_alloc, frame_state_alloc, context_cpy):
2225 New prototypes.
2226 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2227 Changed from static to extern.
2228 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2229 (LINUX_SIGCONTEXT_FP_OFFSET)
2230 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2231 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2232 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2233 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2234 set_gdbarch_*() calls now use x86-64 specific functions
2235 instead of DWARF2 CFI ones.
2236 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2237 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2238 (x86_64_init_extra_frame_info): New prototypes.
2239
c38da1af
DC
22402002-10-23 David Carlton <carlton@math.stanford.edu>
2241
2242 * linespec.c: #include "parser-defs.h".
2243 Delete prototype for find_template_name_end.
2244 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2245
fb9b6b35
JJ
22462002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2247
2248 * NEWS: add recent mi fixes.
2249 * varobj.c (struct varobj): Add new "updated" flag.
2250 (new_variable): Default "updated" flag to 0.
2251 (varobj_set_value): Set "updated" flag to 1 if value
2252 changes.
2253 (varobj_update): Check varobj "updated" flag before
2254 comparing old and refreshed values. Fix for
2255 PR gdb/702.
2256
8da065d5
DC
22572002-10-23 David Carlton <carlton@math.stanford.edu>
2258
2259 * parse.c (parse_exp_1): Use BLOCK_START.
2260 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2261 SYMBOL_BLOCK_VALUE.
2262 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2263
87f2f08c
DC
22642002-10-23 David Carlton <carlton@math.stanford.edu>
2265
2266 * symtab.c: Delete cplusplus_hint.
2267 Delete prototype for find_template_name_end.
2268
88cda038
EZ
22692002-10-23 Elena Zannoni <ezannoni@redhat.com>
2270
2271 * symtab.h: Update comment.
2272
2625d86c
MS
22732002-10-23 Michael Snyder <msnyder@redhat.com>
2274
2275 * printcmd.c (address_info): Restore quotes in output.
2276 * valops.c (value_of_local): Restore quotes in error message.
2277
9cc0d196
EZ
22782002-10-23 Elena Zannoni <ezannoni@redhat.com>
2279
2280 * symtab.c (symbol_demangled_name): New function.
2281 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2282 turning most of it into a function.
2283 (symbol_demangled_name): Export.
2284
19de93d0
MS
22852002-10-23 Michael Snyder <msnyder@redhat.com>
2286
2287 * valops.c (value_of_local): Restore quotes in error message.
2288
89aad1f9
EZ
22892002-10-23 Elena Zannoni <ezannoni@redhat.com>
2290
2291 * symtab.c (symbol_init_language_specific): New function.
2292 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2293 turning most of it into a function.
2294 (symbol_init_language_specific): Export.
2295
d9fa45fe
DC
22962002-10-23 David Carlton <carlton@math.stanford.edu>
2297
2298 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2299 (dwarf_attr_name): Ditto.
2300 (dwarf_type_encoding_name): Ditto.
2301 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2302 (process_die): Handle DW_TAG_namespace,
2303 DW_TAG_imported_declaration, DW_TAG_imported_module.
2304 (read_namespace): New function.
2305
1045b512
JB
23062002-10-22 Joel Brobecker <brobecker@gnat.com>
2307
2308 * configure.in: Define NEW_PROC_API on Interix too.
2309 * configure: Regenerate.
2310
23112002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2312
2313 * configure: Regenerate using the proper version of autoconf.
2314
3987b9d4
EZ
23152002-10-21 Elena Zannoni <ezannoni@redhat.com>
2316
2317 * findvar.c (read_var_value): Temporarily disable TLS code, until
2318 complete TLS support is added.
2319
9d774e44
EZ
23202002-10-21 Jim Blandy <jimb@redhat.com>
2321 Elena Zannoni <ezannoni@redhat.com>
2322
2323 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2324 for thread local storage locations.
2325 (struct symbol): Add objfile field.
2326 (SYMBOL_OBJFILE): Define.
2327 * dwarf2read.c (is_thread_local): New static variable.
2328 (new_symbol): If variable is in thread local fill in address class
2329 and objfile appropriately.
2330 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2331 stack operation.
2332 * printcmd.c (address_info): Print the information for thread
2333 local storage variable.
2334 * findvar.c (read_var_value): In case of thread local variable,
2335 defer to the target vector code to compute address.
2336
bc4a16ae
EZ
23372002-10-21 Elena Zannoni <ezannoni@redhat.com>
2338
2339 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2340 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2341
407caf07
EZ
23422002-10-21 Elena Zannoni <ezannoni@redhat.com>
2343
2344 * symtab.h (address_class): Rename
2345 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2346 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2347 * printcmd.c (address_info): Ditto.
2348 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2349
005328e3
MK
23502002-10-20 Mark Kettenis <kettenis@gnu.org>
2351
afdb036a
MK
2352 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2353 DBREG_DRX macro to acces debug registers.
2354
ca02e098
MK
2355 * Makefile.in (i386obsd-tdep.o): New target.
2356
03cc47f7
MK
2357 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2358 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2359
005328e3
MK
2360 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2361 * config/i386/obsd.mt: New file.
2362 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2363 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2364 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2365 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2366 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2367 * i386obsd-tdep.c: New file.
2368
9c96f9f2
AF
23692002-10-19 Adam Fedor <fedor@gnu.org>
2370
2371 * objc-exp.y (name_not_typename): Fix invalid comment.
2372
ce1ed485
MK
23732002-10-20 Mark Kettenis <kettenis@gnu.org>
2374
2375 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2376 to allocate partial syms and macro byte caches.
2377
1efc7aaa
DC
23782002-10-18 David Carlton <carlton@math.stanford.edu>
2379
2380 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2381
7e1d63ec
AF
23822002-10-18 Adam Fedor <fedor@gnu.org>
2383
2384 * stabsread.c (find_name_end): New function.
2385 (define_symbol): Use it.
2386
6e8d29a9
DJ
23872002-10-18 Daniel Jacobowitz <drow@mvista.com>
2388
2389 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2390 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2391 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2392 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2393
1efc7aaa 23942002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2395
2396 * symfile.h: Add opaque declaration for struct obstack.
2397 Declare obsavestring to take a const char *.
2398 * symfile.c (obsavestring): Make first argument a const char *.
2399
1aeae86e
AF
24002002-10-16 Adam Fedor <fedor@gnu.org>
2401
2402 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2403 names when matching breakpoints in current file.
2404
8b2dbe47
KB
24052002-10-16 Kevin Buettner <kevinb@redhat.com>
2406
2407 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2408 (read_tag_pointer_type): Add address class support.
2409 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2410 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2411 New methods.
2412 * gdbarch.h, gdbarch.c: Regenerate.
2413 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2414 (make_type_with_address_space, recursive_type_dump): Add address
2415 class support.
2416 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2417 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2418 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2419
74451869
KD
24202002-10-16 Klee Dienes <kdienes@apple.com>
2421
2422 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2423 to get the last character of a char[] buffer, not
2424 name[sizeof(vptr_name)-1].
2425
ff4cb3e8
AF
24262002-10-14 Adam Fedor <fedor@gnu.org>
2427
2428 * symtab.h: New objc_specific struct.
2429 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2430 (SYMBOL_DEMANGLED_NAME): Likewise.
2431
da2cf7e0
AF
24322002-10-14 Adam Fedor <fedor@gnu.org>
2433
2434 * symfile.c (init_filename_language_table): Add ObjC file extension.
2435
4a351cef
AF
24362002-10-14 Adam Fedor <fedor@gnu.org>
2437
2438 * utils.c (puts_filtered_tabular): New function.
2439 (fprintf_symbol_filtered): Get ObjC demangled name.
2440 * defs.h (puts_filtered_tabular): Declared.
2441
9750e763
KB
24422002-10-14 Kevin Buettner <kevinb@redhat.com>
2443
2444 * c-lang.h (c_type_print_varspec_prefix): Delete.
2445 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2446 ``need_post_space'' parameter. Adjust all callers.
2447
eee771c1
DJ
24482002-10-14 Daniel Jacobowitz <drow@mvista.com>
2449
2450 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2451 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2452 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2453 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2454
46c82446
AF
24552002-10-13 Adam Fedor <fedor@gnu.org>
2456
2457 * source.c (print_source_lines): Update comments.
2458
d069f99d
AF
24592002-10-13 Adam Fedor <fedor@gnu.org>
2460
2461 * valops.c (value_of_local): New function.
2462 (value_of_this): Use it.
2463 * value.h (value_of_local): Declared.
2464
53c551b7
AF
24652002-10-13 Adam Fedor <fedor@gnu.org>
2466
2467 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2468 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2469
eb392fbf
AF
24702002-10-12 Adam Fedor <fedor@gnu.org>
2471
2472 * language.c (binop_result_type): Add language_objc to case.
2473 (integral_type): Likewise.
2474 (character_type): Likewise.
2475 (string_type): Likewise.
2476 (boolean_type): Likewise.
2477 (structured_type): Likewise.
2478 (binop_type_check): Likewise.
2479
e2b23ee9
AF
24802002-10-11 Adam Fedor <fedor@gnu.org>
2481
2482 * printcmd.c (address_info): Print 'self' for ObjC.
2483
b01ab485
AF
24842002-10-11 Adam Fedor <fedor@gnu.org>
2485
2486 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2487 OP_SELF.
2488
806e6073
AF
24892002-10-11 Adam Fedor <fedor@gnu.org>
2490
2491 * language.h (CAST_IS_CONVERSION): Add language_objc.
2492
50f85cdf
AF
24932002-10-11 Adam Fedor <fedor@gnu.org>
2494
2495 * defs.h (enum language): Add language_objc.
2496
0d540cdf
KD
24972002-10-11 Klee Dienes <kdienes@apple.com>
2498
69266111 2499 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2500 * gdbcore.h (read_memory_typed_address): Add prototype.
2501 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2502 to read a value destined for a CORE_ADDR, not read_memory_integer.
2503 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2504 (f77_get_dynamic_lowerbound): Ditto.
2505
d5dc7960
MH
25062002-10-11 Martin M. Hunt <hunt@redhat.com>
2507
2508 * utils.c (string_to_core_addr): After turning string into
2509 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2510 which will do necessary sign-extension, etc.
2511
8343f86c
DJ
25122002-10-11 Daniel Jacobowitz <drow@mvista.com>
2513
2514 * c-exp.y (THIS): Delete token and grammar rule.
2515 (yylex): Don't return THIS.
2516 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2517 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2518 * demangle.c (cplus_markers): Update comment. Put '$'
2519 first. Remove CPLUS_MARKER.
2520 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2521 * jv-exp.y (THIS): Delete token and grammar rule.
2522 (yylex): Don't return THIS.
2523 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2524 * objc-exp.y (THIS): Delete token and grammar rule.
2525 (yylex): Don't return THIS.
2526 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2527 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2528 (read_member_functions): Likewise for opname.
2529 (read_tilde_fields): Use is_cplus_marker.
2530
2531 * defs.h (CPLUS_MARKER): Don't define.
2532 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2533 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2534 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2535 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2536 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2537
2538 * config/i386/tm-i386v4.h: Delete file.
2539 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2540 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2541 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2542 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2543 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2544 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2545 * config/i386/i386v4.mt (TM_FILE): Likewise.
2546 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2547
967c0d83
MM
25482002-10-10 Marko Mlinar <markom@opencores.org>
2549
2550 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2551 accidentially not commited 2002-10-09
2552 * gdbarch.h, gdbarch.c: Re-generate.
2553
f74fa174
MM
25542002-10-09 Marko Mlinar <markom@opencores.org>
2555
2556 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2557 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2558 * gdbarch.h, gdbarch.c: Re-generate.
2559
57349743
JB
25602002-10-08 Petr Sorfa <petrs@caldera.com>
2561
2562 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2563
2564 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2565 so we can work on more than one compilation unit at a time. This
2566 helps prepare GDB to handle inter-CU die references.
2567 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2568 the code to be defined before struct comp_unit_head.
2569 (comp_unit_head): Added new members - offset, cu_head,
2570 begin_die, next and dwarf2_abbrevs.
2571 (dwarf2_abbrevs): Removed single static var; now member of
2572 struct comp_unit_head.
2573 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2574 members.
2575 (psymtab_to_symtab_1): Changed to work with the new
2576 struct comp_unit_head.
2577 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2578 constructs the dwarf2_abbrevs[] inside the cu_header.
2579 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2580 dwarf2_abbrev table to clean up.
2581 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2582 handling of dwarf2_abbrevs inside the cu_header.
2583 (read_partial_die): Now supports the call to the new
2584 dwarf2_lookup_abbrev.
2585 (read_full_die): Now supports the call to the new
2586 dwarf2_lookup_abbrev.
2587
4092aadb
CF
25882002-10-06 Christopher Faylor <cgf@redhat.com>
2589
2590 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2591 insure that shell variables, such as "transformed_name" are propagated
2592 to later shell statements in rule.
2593
af0b2512
MK
25942002-10-06 Mark Kettenis <kettenis@gnu.org>
2595
2596 * config/i386/nm-i386sco.h: Add protection against
2597 multiple-inclusion. Include "i386/nm-i386v.h".
2598 (REGISTER_U_ADDR): Remove define.
2599 (i386_register_u_addr): Remove prototype.
2600
d6020d45
MS
26012002-10-04 Michael Snyder <msnyder@redhat.com>
2602
2603 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2604 before treating it as a single-step event.
2605
7248f48e
AF
26062002-10-03 Adam Fedor <fedor@gnu.org>
2607
2608 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2609 (objc_demangle): Remove assignment in if statements, Replace
2610 free with xfree.
2611 (add_msglist): Likewise.
2612 (end_msglist): Likewise.
2613 (complare_selectors): Likewise.
2614 (selectors_info): Likewise.
2615 (compare_classes): Likewise.
2616 (classes_info): Likewise.
2617 (print_object_command): Likewise.
2618 (find_objc_msgcall_submethod): Replace PTR with void *.
2619 * objc-lang.h: Remove check for __STDC__.
2620
52c6a6ac
JJ
26212002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2622
2623 * ui-out.h (ui_out_field_fmt_int): New prototype.
2624 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2625 of field width and alignment.
2626 * stack.c (print_frame_info_base): When printing frame level, use
2627 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2628 PR gdb/192
2629
7e3cec17
JJ
26302002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2631
2632 * MAINTAINERS: Add self to Write After Approval list.
2633
a58dd373
EZ
26342002-10-02 Elena Zannoni <ezannoni@redhat.com>
2635
2636 * infcmd.c (interrupt_target_command_wrapper): Delete.
2637 (interrupt_target_command): Make non static.
2638 (nofp_registers_info): Make static.
2639 * stack.c (return_command_wrapper): Delete.
2640 (return_command): Make non static.
2641
cee6ddeb
EZ
26422002-10-02 Elena Zannoni <ezannoni@redhat.com>
2643
2644 * event-top.c (gdb_setup_readline): New function. Code moved from
2645 _initialize_event_loop().
2646 (_initialize_event_loop): Call gdb_setup_readline().
2647
c4ed33b9
AC
26482002-10-02 Andrew Cagney <ac131313@redhat.com>
2649
2650 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2651 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2652 * gdbarch.h, gdbarch.c: Re-generate.
2653
cef4f5dd
DJ
26542002-10-02 Daniel Jacobowitz <drow@mvista.com>
2655
2656 Fix PR gdb/778
2657 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2658 before recursing.
2659 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2660 of fill_in_vptr_fieldno.
2661
36dc181b 26622002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2663
36dc181b
EZ
2664 * inferior.h (registers_info, stepi_command, nexti_command,
2665 continue_command, interrupt_target_command): Export from infcmd.c.
2666 * frame.h (args_info, selected_frame_level_changed_hook,
2667 return_command): Export from stack.c.
2668 * v850ice.c (stepi_command, nexti_command, continue_command): use
2669 prototypes from inferior.h.
2670 * tracepoint.c (registers_info, args_info, locals_info): Use
2671 prototypes from frame.h and inferior.h.
2672 * Makefile.in (mi-main.o): Add dependency on frame.h.
2673
6f99cb26
AC
26742002-10-02 Andrew Cagney <ac131313@redhat.com>
2675
da3eff49
AC
2676 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2677 value in register 3 adjusted by ppc_gp0_regnum.
2678
6f99cb26
AC
2679 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2680
da615bee
MM
26812002-10-02 Marko Mlinar <markom@opencores.org>
2682
2683 * MAINTAINERS: Add myself to the Write After Approval list.
2684
d154bee2
AO
26852002-10-01 Alexandre Oliva <aoliva@redhat.com>
2686
62a49b2c
AO
2687 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2688 of the section for the N64 ABI, fixed.
2689
d154bee2
AO
2690 * config/mips/tm-irix6.h: Include solib.h.
2691
ed348acc
EZ
26922002-10-01 Elena Zannoni <ezannoni@redhat.com>
2693
2694 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2695 GNU operators.
2696
da0f9dcd
AC
26972002-10-01 Andrew Cagney <ac131313@redhat.com>
2698
2699 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2700 and that "mi0" syntax has been removed.
2701
bdf64bac
DC
27022002-09-30 David Carlton <carlton@math.stanford.edu>
2703
2704 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2705 * ppc-sysv-tdep.c: #include "gdb_string.h".
2706 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2707 pacify GCC.
2708
54c2a1e6
AC
27092002-10-01 Andrew Cagney <ac131313@redhat.com>
2710
2711 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2712 "vrsave"'s register number.
2713
cedea778
AC
27142002-09-30 Andrew Cagney <ac131313@redhat.com>
2715
2716 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2717 use frame_unwind_signed_register to obtain the PC.
2718 (mips_frame_chain): Handle a generic dummy frame.
2719 (mips_init_extra_frame_info): When a generic dummy frame, don't
2720 re-compute the frame base.
2721 (mips_pop_frame): Handle generic dummy frames.
2722 (mips_gdbarch_init): When generic dummy frames, set
2723 use_generic_dummy_frames, push_dummy_frame to
2724 generic_push_dummy_frame, pc_in_call_dummy to
2725 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2726 generic_save_dummy_frame_tos.
2727
68315eb8
AC
27282002-09-30 Andrew Cagney <ac131313@redhat.com>
2729
2730 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2731 against TOP when TOP was explictly set.
2732 (generic_push_dummy_frame): Set TOP to zero.
2733
3b8630c3
EZ
27342002-09-30 Elena Zannoni <ezannoni@redhat.com>
2735
2736 * event-loop.c (start_event_loop): Rename variable 'result' to
2737 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2738
28ee05e9
KS
27392002-09-30 Keith Seitz <keiths@redhat.com>
2740
2741 * gdb-events.sh (selected_thread_changed): New event.
2742 * gdb-events.c: Regenerated.
2743 * gdb-events.h: Regenerated.
2744
6eecb1c8
HPN
27452002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2746
2747 * MAINTAINERS: Add self to Write After Approval list.
2748
92df71f0
FN
27492002-09-30 Fernando Nasser <fnasser@redhat.com>
2750
3b8630c3
EZ
2751 * disasm.c: New file.
2752 * disasm.h: New file.
92df71f0
FN
2753 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2754 (compare_lines): Ditto.
2755 (dump_insns): Ditto.
3b8630c3
EZ
2756 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2757 argument.
92df71f0 2758 (do_assembly_only): Ditto.
3b8630c3
EZ
2759 (do_disassembly): Renamed to gdb_disassembly and moved to
2760 disasm.c. Sdded uiout argument.
2761 * Makefile.in: Add new files. Reorder SFILES list. Update
2762 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2763
0c22854d
AC
27642002-09-29 Andrew Cagney <ac131313@redhat.com>
2765
2766 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2767 bfd/elf64-alpha-fbsd.c.
2768
e67f2023
AC
27692002-09-29 Andrew Cagney <ac131313@redhat.com>
2770
2771 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2772 i386gnu-tdep.c.
2773
89396210
AC
27742002-09-29 Andrew Cagney <ac131313@redhat.com>
2775
2776 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2777 __FUNCTION__.
2778 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2779 function name.
2780 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2781 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2782 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2783 (S_msg_sig_post_reply): Ditto.
2784
7079c36c
CV
27852002-09-28 Corinna Vinschen <vinschen@redhat.com>
2786
89396210
AC
2787 * sh-tdep.c (sh_use_struct_convention): Use definition according
2788 to ABI.
7079c36c
CV
2789 (sh_push_arguments): Store in register with correct endianess.
2790 (sh_default_store_return_value): Ditto.
2791 (sh_gdbarch_init): Set sizeof long double to 8.
2792
975ac915
MK
27932002-09-27 Mark Kettenis <kettenis@gnu.org>
2794
2795 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2796 Fix some whitespace problems.
2797
9bbe19fb
DC
27982002-09-27 David Carlton <carlton@math.stanford.edu>
2799
2800 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2801 (mcore-tdep.o): Ditto.
2802 (ns32k-tdep.o): Ditto.
2803 (ns32knbsd-tdep.o): Ditto.
2804 (sh3-rom.o): Ditto.
2805 (vax-tdep.o): Ditto.
2806 * cris-tdep.c: #include "gdb_string.h"
2807 * mcore-tdep.c: Ditto.
2808 * ns32k-tdep.c: Ditto.
2809 * ns32knbsd-tdep.c: Ditto.
2810 * sh3-rom.c: Ditto.
2811 * vax-tdep.c: Ditto.
2812
43b2fdc7
DC
28132002-09-27 David Carlton <carlton@math.stanford.edu>
2814
2815 * config/djgpp/fnchange.lst: Add entries for
2816 gdb/testsuite/gdb.c++/m-static files.
2817
e8cfbbd9
JW
28182002-09-27 Jim Wilson <wilson@redhat.com>
2819
2820 * MAINTAINERS: Add myself to the Write After Approval list.
2821
43b2fdc7 28222002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2823
2824 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2825
2826
9f3b7f07
AC
28272002-09-26 Andrew Cagney <ac131313@redhat.com>
2828
2829 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2830 frame.
2831
11269d7e
AC
28322002-09-26 Andrew Cagney <ac131313@redhat.com>
2833
2834 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2835 (rs6000_struct_return_address): Delete variable.
2836 (rs6000_store_struct_return): Update.
2837 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2838 deprecated_extract_struct_value_address.
2839 (rs6000_frame_align): New function.
2840 (rs6000_gdbarch_init): Set frame_align.
2841
f15ab4a7
AC
28422002-09-26 Andrew Cagney <ac131313@redhat.com>
2843
2844 From Grace Sainsbury <graces@redhat.com>:
2845 * Makefile.in (gdbtk-main.o): New target.
2846 (gdb.o): New target.
2847 (main_h): Define.
2848 (main.o): Update dependencies.
2849 (gdb$(EXEEXT)): Add gdb.o.
2850 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2851 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2852 (SUBDIR_GDBTK_CLEAN): Set.
2853 (install-gdbtk): Install the insight binary.
2854 (uninstall-gdbtk): New target.
2855 (all-gdbtk, clean-gdbtk): New rule.
2856 * top.c (use_windows): Default to zero.
2857 * main.c: Include "main.h".
2858 (main): Delete.
2859 (struct captured_main_args): Delete.
2860 (gdb_main): New function.
2861 * main.h: New file.
2862 * gdb.c: New File.
2863
e36180d7
AC
28642002-09-25 Andrew Cagney <cagney@redhat.com>
2865
2866 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2867 (frame_map_regnum_to_name): New function.
2868 (frame_map_name_to_regnum): New function.
2869 * frame.h (frame_map_name_to_regnum): Declare.
2870 (frame_map_regnum_to_name): Declare.
2871 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2872 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2873 * parse.c: Do not include "builtin-regs.h".
2874 (target_map_name_to_register): Delete function.
2875 (write_dollar_variable): Use frame_map_name_to_regnum.
2876 * parser-defs.h (target_map_name_to_register): Delete declaration.
2877 * expprint.c: Include "frame.h".
2878 (print_subexp): Use frame_map_regnum_to_name.
2879 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2880 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2881
8b69000d
AC
28822002-09-25 Andrew Cagney <ac131313@redhat.com>
2883
2884 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2885 wasn't saved, and the next innermost frame is a dummy, return the
2886 dummy frame's link register.
2887
046ca86a
JB
28882002-09-24 Jim Blandy <jimb@redhat.com>
2889
2890 Fix from Paul Breed:
2891 * main.c (captured_main): Add a `break' after the case for 'b'.
2892
94b66fa7
KS
28932002-09-24 Keith Seitz <keiths@redhat.com>
2894
2895 * varobj.c (c_type_of_child): Use get_target_type instead
2896 of TYPE_TARGET_TYPE.
2897
c214a6fd
FN
28982002-09-22 Fernando Nasser <fnasser@redhat.com>
2899
53cb0458
FN
2900 * source.c (get_current_or_default_source_symtab_and_line): Remove
2901 function.
2902 (set_default_source_symtab_and_line): New function. Attempts to
2903 determine a source file to list lines from if one is not currently
2904 defined.
2905 (get_current_source_symtab_and_line): Initialize sal.pc and
2906 sal.end fields.
2907 (set_current_source_symtab_and_line): Mark argument as const.
2908 * source.h: Update declarations and comments.
2909 * linespec.c (decode_line_1): Replace call to removed routine above.
2910 * stack.c (print_frame_info_base): Ditto.
2911 * cli/cli-cmds.c (edit_command): Ditto.
2912 (list_command): Ditto.
2913
29142002-09-22 Fernando Nasser <fnasser@redhat.com>
2915
d6020d45 2916 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2917 sal.pc and sal.end fields.
c214a6fd
FN
2918 (get_current_or_default_source_symtab_and_line): Ditto.
2919 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2920 so we do not cause a new source symtab to be searched for (reverting an
2921 unintentional change from the 2002-09-20 patch).
2922 * scm-lang.c (scm_unpac): Ditto.
2923
cc3b68a5
AC
29242002-09-21 Andrew Cagney <cagney@redhat.com>
2925
2926 * complaints.c (symfile_explanations): Remove new-line from
2927 ``isolated_message''.
2928 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2929 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2930
5835abe7
NC
29312002-09-20 Nick Clifton <nickc@redhat.com>
2932
2933 * NEWS: Announce that V850EA ISA is no longer supported.
2934 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2935
a15ef5f5
DC
29362002-09-20 David Carlton <carlton@math.stanford.edu>
2937
06ba1b39
DC
2938 * Makefile.in (c-lang.o): Correct dependencies.
2939 (utils.o): Gather dependencies.
2940 (charset.o): Move.
a15ef5f5
DC
2941 * c-lang.c: #include "gdb_string.h"
2942
87885426
FN
29432002-09-20 Fernando Nasser <fnasser@redhat.com>
2944
2945 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2946 * cli/cli-cmds.c (list_command): New function. Implements the new
2947 cli edit command.
2948 (_init_cli_cmds): Add new command definition.
2949 * gdb.1: Document edit command.
2950 * doc/gdb.texinfo: Document edit command.
2951
29522002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2953
2954 * source.c: Make global variables current_source_symtab and
2955 current_source_line static.
2956 (list_command): Moved to cli/cli-cmds.c.
2957 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2958 (get_first_line_listed): New accessor function.
2959 (get_lines_to_list): New accessor function.
2960 (get_current_source_symtab_and_line): New function. Retrieves the
2961 position in the source code that we consider current.
2962 (get_current_or_default_source_symtab_and_line): New function.
2963 Like the above but attempts to determine a default position if one
2964 is not currently defined.
2965 (set_current_source_symtab_and_line): New function. Sets the source
2966 code position considered current and returns the previously set one.
2967 (clear_current_source_symtab_and_line): Reset stored information about
2968 a current source line.
2969 (_initialize_source): Remove registration for the "list" command and
2970 its alias.
2971 * source.h: Add declarations for the new functions above.
2972 * symtab.h: Remove declarations for the global variables mentioned
2973 above.
2974 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2975 obtain current source line.
2976 * linespec.c (decode_line_1): Ditto.
2977 * macroscope.c (default_macro_scope): Ditto.
2978 * scm-lang.c (scm_unpac): Ditto.
2979 * stack.c (print_frame_info_base): Ditto.
2980 * symfile.c (clear_symtab_users): Ditto.
2981 * symtab.c (decode_line_spec): Ditto.
2982 * cli/cli-cmds.c (list_command): Moved here from source.c.
2983 (ambiguous_line_spec): Moved here from source.c.
2984 (_init_cli_cmds): Add definition for "list" and its alias.
2985 * Makefile.in: Update dependencies.
2986
ddd216ea
CV
29872002-09-20 Corinna Vinschen <vinschen@redhat.com>
2988
2989 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2990 with what gcc thinks is correct.
2991
6d305052
CV
29922002-09-20 Corinna Vinschen <vinschen@redhat.com>
2993
2994 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2995 multiple register push instruction.
2996
234b45d4
KB
29972002-09-19 Jim Blandy <jimb@redhat.com>
2998
2999 Add support for distinct host and target character sets.
3000 * charset.c, charset.h: New files.
3001 * c-exp.y: #include "charset.h".
3002 (yylex): Convert character and string literals to the target
3003 character set, before returning them as the semantic value of the
3004 token.
3005 * c-lang.c: #include "charset.h".
3006 (c_emit_char): Use charset-specific methods to recognize
3007 characters with backslash escape forms, to decide which characters
3008 to print literally and which to print using numeric escape
3009 sequences, and to convert target characters to host characters
3010 before printing.
3011 * utils.c: #include "charset.h".
3012 (no_control_char_error): New function.
3013 (parse_escape): Use charset-specific methods to recognize
3014 backslash escapes, parse `control character' notation, and convert
3015 characters from the host character set to the target character set.
3016 * configure.in: Set the default host character set.
3017 Check where to find iconv, and what its argument types might be.
3018 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3019 * Makefile.in (SFILES): List charset.c.
3020 (COMMON_OBS): List charset.o.
3021 (charset.o): New rule.
3022 (charset_h): New header dependency variable.
3023 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3024 (LIBICONV): New variable, set by configure.
3025 (CLIBS): Include $(LIBICONV) here.
3026 * aclocal.m4, config.in, configure: Regenerated.
3027
525d6a61
JB
30282002-09-19 Joel Brobecker <brobecker@gnat.com>
3029
3030 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3031 bison 1.35 warning.
3032
3ed93867
RE
30332002-09-19 Richard Earnshaw <rearnsha@arm.com>
3034
3035 * gdb_mbuild.sh: New file.
3036
437666f8
AC
30372002-09-19 Andrew Cagney <ac131313@redhat.com>
3038
3039 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3040
389e51db
AC
30412002-09-18 Andrew Cagney <ac131313@redhat.com>
3042
3043 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3044 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3045 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3046 valops.c, value.h: Revert previous change.
3047
3b4efeaa
MS
30482002-09-18 Michael Snyder <msnyder@redhat.com>
3049
3050 Preliminary support for Objective-C:
3051 * defs.h (language_objc): New enum value.
3052 (puts_filtered_tabular): Declaration only, exported from utils.c.
3053 (skip_quoted): Delete, declared in completer.h.
3054 * c-exp.y: Include completer.h.
3055 * p-exp.y: Ditto.
3056 * jv-exp.y: Ditto.
3057 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3058 New operator enum values.
3059 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3060 * language.c (binop_result_type): Handle language_objc case.
3061 (integral_type, character_type, string_type, boolean_type,
3062 structured_type, binop_type_check): Ditto.
3063 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3064 (struct objc_specific): Add to general_symbol_info.
3065 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3066 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3067 * parser-defs.h (struct objc_class_str): New struct type.
3068 (start_msglist, end_msglist, add_msglist): Declaration only,
3069 exported from objc-lang.c.
3070 * value.h (value_of_local, value_nsstring,
3071 call_function_by_hand_expecting_type): Exported from valops.c.
3072 * valops.c (find_function_addr): Export.
3073 (call_function_by_hand_expecting_type): New function.
3074 (value_of_local): New function.
3075 * symfile.c (init_filename_language_table): Add ".m" extension
3076 for Objective-C.
3077 * utils.c (puts_filtered_tabular): New function.
3078 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3079 (set/show demangle): Extend help-string to refer to ObjC.
3080 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3081 * stabsread.c (symbol_reference_defined): Objective-C symbols
3082 may contain colons: make allowances when scanning stabs strings
3083 for colons.
3084 (objc_find_colon): New function.
3085 * printcmd.c (address_info): If language == objc then print
3086 "self" instead of "this".
3087 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3088 OP_NSSTRING, and OP_SELF.
3089 (prefixify_subexp): Ditto.
3090 * source.c (print_source_lines): Mention objc in comment.
3091 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3092 method names.
3093
b9caf505
AC
30942002-09-18 Andrew Cagney <ac131313@redhat.com>
3095
3096 * complaints.h: Update copyright.
3097 (struct complaints): Declare.
3098 (struct complaint): Make `message' constant.
3099 (internal_complaint): Declare.
3100 (complaint): Declare.
3101 (complaint_root): Delete declaration.
3102 (symfile_complaints): Delete declaration.
3103 (struct complaints): Add opaque declaration.
3104 (clear_complaints): Add a complaints parameter.
3105 * complaints.c: Update copyright.
3106 (enum complaint_series): Define.
3107 (complaint_root): Delete.
3108 (struct complaints): Define.
3109 (complaint_sentinel, symfile_complaint_book): New variables.
3110 (symfile_explanations, symfile_complaints): New variables.
3111 New variables.
3112 (get_complaints): New function.
3113 (vcomplaint): New function.
3114 (complaint): New function.
3115 (internal_complaint): New function.
3116 (complain): Call vcomplain with symfile_complaint.
3117 (clear_complaints): Rewrite.
3118 (_initialize_complaints): Use add_setshow_command.
3119 * Makefile.in (complaints.o): Update dependencies.
3120 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3121 to call to clear_complaints.
3122 (new_symfile_objfile, reread_symbols): Ditto.
3123 (oldsyms_complaint): Delete.
3124 (empty_symtab_complaint, unknown_option_complaint): Delete.
3125 (free_named_symtabs): Use complaint instead of complain.
3126
d2e6263c
MS
31272002-09-18 Michael Snyder <msnyder@redhat.com>
3128
5fb2031a
AC
3129 Contributed by Apple Computer, Inc. Merged with current sources
3130 by Adam Fedor <fedor@doc.com> [cagney].
3131
d2e6263c
MS
3132 * objc-lang.c: First clean-up round: comments, indentation.
3133 * objc-lang.h: Ditto.
3134 * objc-lang.y: Ditto.
3135
dec43320
AC
31362002-09-18 Andrew Cagney <ac131313@redhat.com>
3137
3138 * maint.c (maintenance_internal_error): Print the parameter as the
3139 error message.
3140 (maintenance_internal_warning): New function.
3141 (_initialize_maint_cmds): Add command `maint internal-warning'.
3142
3143 * defs.h (internal_warning, internal_vwarning): Declare.
3144 * utils.c (struct internal_problem): Define.
3145 (internal_vproblem): New function.
3146 (internal_warning): New function.
3147 (internal_vwarning): New function.
3148 (internal_warning_problem, internal_error_problem): New variables.
3149 (internal_verror): Just call internal_vproblem.
3150
b81654f1
MS
31512002-09-18 Michael Snyder <msnyder@redhat.com>
3152
3153 * objc-lang.c: New file, support for Objective-C.
3154 Preliminary check-in, not yet integrated into gdb.
3155 * objc-lang.h: New file.
3156 * objc-exp.y: New file.
3157
0542c381
AC
31582002-09-18 Andrew Cagney <ac131313@redhat.com>
3159
7bda5e4a
AC
3160 * infrun.c (signal_stop_update): Convert definition to ISO C.
3161 (signal_print_update): Ditto.
3162 (signal_pass_update): Ditto.
3163 * inflow.c (terminal_save_ours): Ditto.
3164
5247b418
AC
3165 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3166 comments.
3167
fc60962c
AC
3168 * config/djgpp/fnchange.lst: Handle name clashes between
3169 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3170 bfd/coff-tic80.c.
3171
0542c381
AC
3172 * i386-linux-tdep.h: Fix tipo.
3173
5b924b9b
AF
31742002-09-18 Adam Fedor <fedor@gnu.org>
3175
3176 * MAINTAINERS: Add myself to the Write After Approval list.
3177
5afc051b
JB
31782002-09-18 Jim Blandy <jimb@redhat.com>
3179
3180 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3181 texthigh and textlow to reader-specific structs caused
3182 objfile_relocate to miss them. This is fixable, but the work that
3183 the change was supposed to prepare GDB for never got done anyway.
3184
eb944380
DC
31852002-09-18 David Carlton <carlton@math.stanford.edu>
3186
3187 * MAINTAINERS: Alphabetize Write After Approval list.
3188
948e66d9
DJ
31892002-09-18 Daniel Jacobowitz <drow@mvista.com>
3190
3191 Fix PR gdb/709
3192 * values.c (value_static_field): Call read_var_value.
3193
dc604539
AC
31942002-09-18 Andrew Cagney <ac131313@redhat.com>
3195
3196 * valops.c (hand_function_call): Align the initial stack pointer
3197 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3198 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3199 return value.
3200 * mips-tdep.c (mips_frame_align): New function.
3201 (mips_gdbarch_init): Set frame_align.
3202 * gdbarch.sh (FRAME_ALIGN): New method.
3203 * gdbarch.h, gdbarch.c: Re-generate.
3204
cb7e422f
ML
32052002-09-18 Michal Ludvig <mludvig@suse.cz>
3206
3207 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3208 registers.
3209
a094c6fb
AC
32102002-09-17 Andrew Cagney <ac131313@redhat.com>
3211
3212 * NEWS: Mention that MIPS $fp behavior changed.
3213 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3214 reference to FP_REGNUM.
3215 (mipsnbsd_cannot_store_register): Ditto.
3216 * mips-linux-nat.c: Update copyright.
3217 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3218 (mips_linux_cannot_store_register): Ditto.
3219 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3220 * config/mips/tm-mips.h: Update copyright.
3221 (FP_REGNUM): Delete macro.
3222 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3223 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3224 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3225 (mips_r3041_reg_names, mips_r3051_reg_names)
3226 (mips_r3081_reg_names): Replace "fp" with "".
3227 Fix PR gdb/480.
3228
45cf40d1
TR
32292002-09-17 Theodore A. Roth <troth@verinet.com>
3230
3231 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3232 generic_read_register_dummy() (PR gdb/703).
3233 (avr_push_return_address): #if 0 out unused vars.
3234 (avr_gdbarch_init): Enable use of avr_push_return_address().
3235
c7e701b5
MS
32362002-09-17 Michael Snyder <msnyder@redhat.com>
3237
d76ba2a5 3238 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3239 RTE will take care of it.
3240
20bcf01c
AC
32412002-09-17 Andrew Cagney <ac131313@redhat.com>
3242
3243 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3244 invalid, return SP_REGNUM.
3245
009a9971 32462002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3247
3248 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3249 point registers without sign extension.
3250
135c175f
AC
32512002-09-17 Andrew Cagney <cagney@redhat.com>
3252
3253 * blockframe.c (deprecated_read_register_dummy): Rename
3254 generic_read_register_dummy.
3255 * frame.c (frame_unwind_signed_register): New function.
3256 (frame_unwind_unsigned_register): New function.
3257 * frame.h (frame_unwind_signed_register): Declare.
3258 (frame_unwind_unsigned_register): Declare.
3259 (deprecated_read_register_dummy): Rename
3260 generic_read_register_dummy.
3261
3262 * h8300-tdep.c (h8300_frame_chain): Update.
3263 (h8300_frame_saved_pc): Update.
3264 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3265 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3266 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3267 (s390_frame_chain): Update.
3268 * v850-tdep.c (v850_find_callers_reg): Update.
3269 (v850_frame_saved_pc): Update.
3270 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3271 (m32r_find_callers_reg): Update.
3272 (m32r_frame_saved_pc): Update.
3273 * sh-tdep.c (sh_find_callers_reg): Update.
3274 (sh64_get_saved_pr): Update.
3275 (sh_init_extra_frame_info): Update.
3276 (sh_init_extra_frame_info): Update.
3277 (sh64_init_extra_frame_info): Update.
3278 (sh64_init_extra_frame_info): Update.
3279 * mcore-tdep.c (mcore_find_callers_reg): Update.
3280 (mcore_frame_saved_pc): Update.
3281 (mcore_init_extra_frame_info): Update.
3282 * i386-tdep.c (i386_frame_saved_pc): Update.
3283 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3284 (ia64_init_extra_frame_info): Update.
3285 (ia64_init_extra_frame_info): Update.
3286 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3287 * cris-tdep.c (cris_init_extra_frame_info): Update.
3288 * avr-tdep.c (avr_frame_chain): Update.
3289 (avr_init_extra_frame_info): Update.
3290 (avr_frame_saved_pc): Update.
3291 * arm-tdep.c (arm_find_callers_reg): Update.
3292 (arm_init_extra_frame_info): Update.
3293 (arm_frame_saved_pc): Update.
3294
a741e514
TT
32952002-09-17 Tom Tromey <tromey@redhat.com>
3296
3297 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3298 is "'".
3299
d1a8e808
CV
33002002-09-17 Corinna Vinschen <vinschen@redhat.com>
3301
3302 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3303 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3304 NEXT_PROLOGUE_INSN.
3305 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3306 NEXT_PROLOGUE_INSN.
3307
d9025a18
JB
33082002-09-16 Joel Brobecker <brobecker@gnat.com>
3309
3310 * osfsolib.c: Remove file, replaced by solib-osf.c.
3311 * Makefile.in: Remove compilation rules for osfsolib.c.
3312
1b2ef1b6
DC
33132002-09-16 David Carlton <carlton@math.stanford.edu>
3314
3315 * cp-valprint.c (cp_print_class_method): Correct args to
3316 check_stub_method_group.
3317
928e48af
CV
33182002-09-16 Corinna Vinschen <vinschen@redhat.com>
3319
3320 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3321 `set architecture'. Unify naming convention of functions.
3322 (h8300_skip_prologue): Improve prologue analysis.
3323 (h8300_push_arguments): Rewritten to more closely match GCC's
3324 bizarre argument-passing behavior, along with the comment describing
3325 said behavior.
3326 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3327 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3328 sim, remote-e7000.c, remote-hms.c and remote.c
3329
5e3397bb
MK
33302002-09-15 Mark Kettenis <kettenis@gnu.org>
3331
3332 * i386-tdep.c (gdb_print_insn_i386): Removed.
3333 (i386_print_insn): New function.
3334 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3335 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3336 tm_print_insn_info.
3337
f710f4fc
MK
33382002-09-14 Mark Kettenis <kettenis@gnu.org>
3339
3340 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3341 zero.
3342
db54fef4
CV
33432002-09-14 Corinna Vinschen <vinschen@redhat.com>
3344
3345 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3346 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3347 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3348
2becadee
CF
33492002-09-13 Christopher Faylor <cgf@redhat.com>
3350
3351 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3352
de17c821
DJ
33532002-09-13 Daniel Jacobowitz <drow@mvista.com>
3354
3355 * gdbtypes.c (check_stub_method): Make static.
3356 (check_stub_method_group): New function.
3357 * gdbtypes.h: Update prototypes.
3358 * cp-support.c: New file.
3359 * cp-support.h: New file.
3360
3361 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3362 (update_method_name_from_physname): New function.
3363 (read_member_functions): Correct method names for operators
3364 and v3 constructors/destructors. Separate v2 constructors and
3365 destructors.
3366 * Makefile.in (stabsread.o): Update dependencies.
3367 (SFILES): Add cp-support.c.
3368 (COMMON_OBS): Add cp-support.o.
3369 (cp_support_h, cp-support.o): Add.
3370
3371 * cp-valprint.c (cp_print_class_method): Call
3372 check_stub_method_group instead of check_stub_method. Remove
3373 extraneous QUITs.
3374 * p-valprint.c (pascal_object_print_class_method): Likewise.
3375 * valops.c (search_struct_method): Likewise.
3376 (find_method_list, value_struct_elt_for_reference): Likewise.
3377
e76cff22
AC
33782002-09-13 Andrew Cagney <cagney@redhat.com>
3379
3380 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3381 * gdbarch.h, gdbarch.c: Regenerate.
3382
905abb3f
AC
33832002-09-13 Andrew Cagney <ac131313@redhat.com>
3384
3385 * frame.c (find_saved_register): Delete function.
3386 * frame.h (find_saved_register): Delete declaration.
3387 Fix PR gdb/631.
3388
64159455
AC
3389Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3390
3391 * mips-tdep.c (read_next_frame_reg): Re-hack using
3392 frame_register_unwind.
3393
795e1e11
AC
3394Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3395
3396 * mips-tdep.c (mips_get_saved_register): Re-hack using
3397 frame_register_unwind.
3398
5720643c
JB
33992002-09-12 Joel Brobecker <brobecker@gnat.com>
3400
3401 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3402 vector. Will be useful for Interix.
3403 * gdbarch.h, gdbarch.c: Regenerate.
3404
3405 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3406 name of the malloc function by NAME_OF_MALLOC.
3407
3bada2a2
JB
34082002-09-12 Joel Brobecker <brobecker@gnat.com>
3409
3410 * value.h (find_function_in_inferior): Add const keyword to
3411 one of the parameters. Allows us to invoke this function with
3412 a const char *.
3413 * valops.c (find_function_in_inferior): Likewise.
3414
3db26b01
JB
34152002-09-12 Joel Brobecker <brobecker@gnat.com>
3416
3417 * exec.c (xfer_memory): Fix compilation warning with old versions
3418 of GCC.
3419 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3420
17c5ed2c
DC
34212002-09-12 David Carlton <carlton@math.stanford.edu>
3422
3423 * symtab.h: Run through gdb_indent.h.
3424 Add 2002 to Copyright year list.
3425
ecd1107e
AM
34262002-09-12 Alan Modra <amodra@bigpond.net.au>
3427
3428 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3429 mach constants.
3430 * MAINTAINERS: Add myself to write after approval list.
3431
e64f66d1
JB
34322002-09-11 J. Brobecker <brobecker@gnat.com>
3433
3434 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3435
f9395794
JB
34362002-09-11 J. Brobecker <brobecker@gnat.com>
3437
3438 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3439 Interix.
3440
1a303dec
MS
34412002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3442
3443 * procfs.c (do_detach): Clear current signal, not just fault.
3444 Corrects problem with breakpoint trap signal leaking to detached
3445 process on Tru64.
3446
c0219d42
MS
34472002-09-10 Michael Snyder <msnyder@redhat.com>
3448
3449 * buildsym.c (finish_block): Protect against null pointer.
3450
9d84ac84
AC
34512002-09-10 Andrew Cagney <cagney@redhat.com>
3452
3453 * infcmd.c (default_print_registers_info): Send all output to
3454 ``file'' instead of ``gdb_stdout''.
3455
77d8f2b4
MS
34562002-09-10 Michael Snyder <msnyder@redhat.com>
3457
3458 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3459 LONGEST, and use signed register read (addresses are sign-
3460 extended for mips).
3461
99656a61
SC
34622002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3463
3464 * event-loop.c (gdb_do_one_event): Make public.
3465 * event-loop.h (gdb_do_one_event): Declare.
3466
da12f4d8
JL
34672002-09-10 Jeff Law <law@redhat.com>
3468
3469 * infttrace.c (child_resume): Simplify and rework to avoid
3470 TT_PROC_CONTINUE.
3471
d0aee0c4
FF
34722002-09-09 Fred Fish <fnf@intrinsity.com>
3473
3474 * printcmd.c (print_scalar_formatted): "len" is the number of
3475 target bytes, NOT the number of target bits.
3476
7cb3ec5e
EZ
34772002-09-09 Elena Zannoni <ezannoni@redhat.com>
3478
3479 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3480 * top.c (init_main): Set rl_terminal_name.
3481
4dc81987
AS
34822002-09-08 Aidan Skinner <aidan@velvet.net>
3483
3484 * ada-lang.c (ada_array_bound, ada_type_match,
3485 _initialize_ada_language): Fix K&R definitions.
3486 * ada-tasks.c (get_current_task): Fix K&R definitions.
3487 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3488
842330b4
CF
34892002-09-07 Christopher Faylor <cgf@redhat.com>
3490
3491 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3492 Add XP.
3493
43156d82
MK
34942002-09-06 Mark Kettenis <kettenis@gnu.org>
3495
66da5fd8
MK
3496 * i386-tdep.c (i386_register_virtual_type,
3497 i386_register_convertible, i386_register_convert_to_virtual,
3498 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3499 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3500 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3501 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3502 Don't set push_arguments twice.
3503
4b218c18
MK
3504 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3505 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3506 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3507 sigtramp_end to NULL.
3508 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3509 defines.
3510 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3511
4cc314d5
MK
3512 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3513 whitespace.
3514
43156d82
MK
3515 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3516 * gdbarch.h, gdbarch.c: Re-generate.
3517 * blockframe.c (find_pc_sect_partial_function): Convert to use
3518 SIGTRAMP_START_P predicate.
3519
6672060b
MS
35202002-09-05 Michael Snyder <msnyder@redhat.com>
3521
a90c3637
MS
3522 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3523 generic_dummy_frame method and old method. Also distinguish
3524 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3525 (arm_extract_return_value): Use new regcache method.
a90c3637 3526
6672060b
MS
3527 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3528 adjustment that doesn't conform to the ABI.
3529 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3530 saved regcache, not from current regcache.
3531
299ffc64
AC
35322002-09-05 Andrew Cagney <ac131313@redhat.com>
3533
3534 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3535 * README: Update.
3536
a3a2ee65
JT
35372002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3538
3539 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3540 if arm_apcs_32 is false.
3541
2bc7eea9
AC
35422002-09-04 Andrew Cagney <ac131313@redhat.com>
3543
3544 GDB 5.3 branch created.
3545
8a55a7c5
TR
35462002-09-03 Theodore A. Roth <troth@verinet.com>
3547
3548 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3549 generic_unwind_get_saved_register.
3550
e26fb1d7
DC
35512002-09-03 David Carlton <carlton@math.stanford.edu>
3552
3553 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3554 argument (PR gdb/653). Update call to smash_to_method_type.
3555 (read_structure_scope): Update call to dwarf2_add_member_fn.
3556
30d52491
ML
35572002-09-03 Michal Ludvig <mludvig@suse.cz>
3558
3559 * x86-64-linux-tdep.c: Include gdb_string.h
3560 * x86-64-linux-nat.c: Ditto.
3561
06891d83
JT
35622002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3563
3564 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3565 when YYDEBUG is set to 1.
3566 * c-exp.y: Likewise.
3567 * f-exp.y: Likewise.
3568 * jv-exp.y: Likewise.
3569 * m2-exp.y: Likewise.
3570 * p-exp.y: Likewise.
3571
7d400e77
JT
35722002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3573
3574 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3575 dependency list.
3576 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3577 solib_svr4_fetch_link_map_offsets to
3578 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3579 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3580 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3581 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3582 solib-svr4.o, and solib-legacy.o.
3583 * config/i386/tm-nbsd.h: Include solib.h.
3584
704a27c4
JT
35852002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3586
3587 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3588 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3589 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3590 comment noting that this needs its own target configuration.
3591 * config/i386/nbsd.mt: New file.
3592 * config/i386/nbsdaout.mt: Remove.
3593 * config/i386/nbsdelf.mt: Ditto.
3594 * config/i386/tm-nbsdaout.h: Ditto.
3595
d66198e1
JT
35962002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3597
3598 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3599 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3600 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3601 tdep->sigtramp_end.
3602 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3603 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3604 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3605
3cac699e
JT
36062002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3607
3608 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3609 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3610 * i386-tdep.h (i386bsd_init_abi): New prototype.
3611 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3612 function declaration.
3613 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3614 for NetBSD-a.out or NetBSD-ELF.
3615 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3616 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3617 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3618 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3619 and nbsd-tdep.h.
3620 (i386nbsd_pc_in_sigtramp): New function.
3621 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3622 i386nbsd_pc_in_sigtramp.
3623 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3624 and i386nbsdelf_init_abi OS ABI handlers.
3625 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3626 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3627
7010ca0a
MK
36282002-09-02 Mark Kettenis <kettenis@gnu.org>
3629
3630 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3631 registers if the target really has them.
3632
6dd93b72
JT
36332002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3634
3635 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3636 than nbsd-tdep.h.
3637
2ca8ae21
JT
36382002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3639
3640 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3641 list.
3642 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3643 (alphanbsd_skip_sigtramp_frame): New functions.
3644 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3645 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3646 to alphanbsd_sigcontext_addr.
3647
3d9b49b0
JT
36482002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3649
3650 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3651 list.
3652 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3653 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3654 nbsd_pc_in_sigtramp.
3655 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3656 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3657 * nbsd-tdep.c: Include gdb_string.h.
3658 (nbsd_pc_in_sigtramp): New function.
3659 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3660 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3661 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3662 ppcnbsd_pc_in_sigtramp.
3663 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3664 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3665 shnbsd_pc_in_sigtramp.
3666 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3667 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3668 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3669
c860120c
PM
36702002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3671
3672 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3673 watchpoints to NULL.
3674 (insert_breakpoints): set val field of watchpoints if NULL.
3675
3676
c7612d53
JB
36772002-08-29 Jim Blandy <jimb@redhat.com>
3678
3679 * symtab.c (lookup_symbol_aux): In the cases where we find a
3680 minimal symbol of an appropriate name and use its address to
3681 select a symtab to read and search, use `name' (as passed to us)
3682 as the demangled name when searching the symtab's global and
3683 static blocks, not the minsym's name.
3684
66609862
KS
36852002-08-29 Keith Seitz <keiths@redhat.com>
3686
3687 * stack.c (print_frame_info_base): Always set current_source_symtab
3688 and current_source_line.
3689
151fefe2
JB
36902002-08-29 Donn Terry <donnte@microsoft.com>
3691
3692 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3693
bfb3754e
KS
36942002-08-28 Keith Seitz <keiths@redhat.com>
3695
3696 * stack.c (select_frame): Add FIXME concerning selected-frame
3697 events.
3698 (select_frame_command): Send selected-frame-level-changed
3699 event notification, but only if the level actually changed.
3700 (up_silently_base): Add selected-frame-level-changed event
3701 notification.
3702 (down_silently_base): Likewise.
3703
e822a2a0
AC
37042002-08-28 Andrew Cagney <ac131313@redhat.com>
3705
3706 * Makefile.in: Update dependencies for all gdb/*.c files.
3707
309367d4
TT
37082002-08-27 Tom Tromey <tromey@redhat.com>
3709
3710 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3711 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3712 Update dependencies.
3713 * i387-tdep.c: Include gdb_string.h.
3714 * osabi.c: Likewise.
3715 * i386-linux-nat.c: Likewise.
3716 * lin-lwp.c: Likewise.
3717 * ax-gdb.c: Likewise.
3718 * signals/signals.c: Likewise.
3719 * jv-valprint.c: Likewise.
3720 * p-lang.c: Likewise.
3721 * c-valprint.c: Likewise.
3722 * cp-abi.c: Likewise.
3723
e1507482
EZ
37242002-08-27 Elena Zannoni <ezannoni@redhat.com>
3725
3726 * cli/cli-script.h (copy_command_lines): Export.
3727 * breakpoint.c: Include cli/cli-script.h.
3728 * Makefile.in (breakpoint.o): Update dependencies.
3729
c6510018
MS
37302002-08-26 Michael Snyder <msnyder@redhat.com>
3731
3732 * breakpoint.c (insert_breakpoints): Protect all references
3733 to 'process_warning'. Shorten long lines.
3734
c2b8ed2c
MS
37352002-08-26 Joel Brobecker <brobecker@gnat.com>
3736
3737 * cli/cli-script.c (copy_command_lines): New function.
3738 * defs.h (copy_command_lines): Export.
3739 * testsuite/gdb.base/commands.exp: New tests for commands
3740 attached to a temporary breakpoint, and for commands that
3741 delete the breakpoint they are attached to.
3742
37432002-08-26 Michael Snyder <msnyder@redhat.com>
3744
3745 * breakpoint.c (bpstat_stop_status): Instead of copying the
3746 pointer to the breakpoint commands struct, make a new copy
3747 of the struct and point to that.
3748 (bpstat_clear): Free the commands struct.
3749 (bpstat_clear_actions): Free the commands struct.
3750 (bpstat_do_actions): Free the command actions. Also execute
3751 the local cleanups, instead of deleting them.
3752 (delete_breakpoint): Leave the commands field of the bpstat
3753 chain alone -- it will be freed later.
3754
64b84175
KB
37552002-08-26 Kevin Buettner <kevinb@redhat.com>
3756
3757 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3758 deleted in 2002-08-20 commit. This function is still used by
3759 ppc-linux-nat.c.
3760
55970da6
KS
37612002-08-26 Keith Seitz <keiths@redhat.com>
3762
3763 * gdb-events.sh: Add selected-frame-level-changed event.
3764 * gdb-events.c: Regenerated.
3765 * gdb-events.h: Regenerated.
3766
a790ad35
SC
37672002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3768
3769 Fix PR gdb/393:
3770 * inflow.c (terminal_save_ours): New function to save terminal
3771 settings.
3772 * inferior.h (terminal_save_ours): Declare.
3773 * target.c (debug_to_terminal_save_ours): New function.
3774 (cleanup_target): Defaults to_terminal_save_ours.
3775 (update_current_target): Inherit to_terminal_save_ours.
3776 (setup_target_debug): Set to_terminal_save_ours.
3777 * target.h (target_terminal_save_ours): New to save terminal settings.
3778 (target_ops): New member to_terminal_save_ours.
3779 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3780 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3781 * inftarg.c (init_child_ops): Likewise.
3782 * m3-nat.c (init_m3_ops): Likewise.
3783 * procfs.c (init_procfs_ops): Likewise.
3784 * wince.c (init_child_ops): Likewise.
3785 * win32-nat.c (init_child_ops): Likewise.
3786 * sol-thread.c (init_sol_thread_ops): Likewise.
3787
c00dcbe9
MK
37882002-08-26 Mark Kettenis <kettenis@gnu.org>
3789
3d7f4f49
MK
3790 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3791 use regcache_* functions.
3792 (i386_gdbarch_init): Set store_return_value instead of
3793 deprecated_store_return_value.
3794
c00dcbe9
MK
3795 * regcache.c (regcache_raw_write_signed,
3796 regcache_raw_write_unsigned): New functions.
3797 * regcache.h (regcache_raw_write_signed,
3798 regcache_raw_write_unsigned): New prototypes.
3799
0e0d15ca
AC
38002002-08-25 Andrew Cagney <ac131313@redhat.com>
3801
3802 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3803 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3804 source file dependencies. Cleanup corresponding generator rules.
3805
d3b22ed5
AC
38062002-08-25 Andrew Cagney <ac131313@redhat.com>
3807
3808 * regcache.h (register_offset_hack): Declare.
3809 (regcache_cooked_read_using_offset_hack): Declare.
3810 (regcache_cooked_write_using_offset_hack): Declare.
3811
3812 * regcache.c (register_offset_hack): New function.
3813 (regcache_cooked_read_using_offset_hack): New function.
3814 (regcache_cooked_write_using_offset_hack): New function.
3815 (regcache_dump): Check that the registers, according to their
3816 offset, are packed hard against each other.
3817 (cooked_xfer_using_offset_hack): New function.
3818
bb425013
AC
38192002-08-25 Andrew Cagney <ac131313@redhat.com>
3820
3821 * regcache.c (struct regcache_descr): Add field register_type.
3822 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3823 in as a parameter
3824 (init_regcache_descr): Initialize register_type. Pass the descr
3825 to init_legacy_regcache_descr. Use register_type instead of
3826 REGISTER_VIRTUAL_TYPE.
3827 (register_type): New function.
3828 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3829 * regcache.h (register_type): Declare.
3830
d0403e00
AC
38312002-08-25 Andrew Cagney <ac131313@redhat.com>
3832
3833 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3834 instead of deprecated_store_return_value. Fix fallout from
3835 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3836
0ed04cce
AC
38372002-08-25 Andrew Cagney <ac131313@redhat.com>
3838
3839 * regcache.c (max_register_size): New function.
3840 (init_legacy_regcache_descr): Ensure that max_register_size is
3841 large enough for REGISTER_VIRTUAL_SIZE.
3842 * regcache.h (max_register_size): Declare.
3843
46d79c04
AC
38442002-08-24 Andrew Cagney <ac131313@redhat.com>
3845
3846 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3847 store_return_value.
3848 (e500_extract_return_value): Change type of valbuf pointer to
3849 void.
3850
853c7bd0
MK
38512002-08-24 Mark Kettenis <kettenis@gnu.org>
3852
cd87e769
MK
3853 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3854 workaround.
3855
853c7bd0
MK
3856 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3857 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3858 long long) to prevent compiler warning on 64-bit systems.
3859
ebba8386
AC
38602002-08-23 Andrew Cagney <cagney@redhat.com>
3861
3862 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3863 (DEPRECATED_STORE_RETURN_VALUE): New method.
3864 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3865 * gdbarch.h, gdbarch.c: Re-generate.
3866
3867 * values.c (set_return_value): Pass current_regcache to
3868 STORE_RETURN_VALUE.
3869 * arch-utils.h (legacy_store_return_value): Declare.
3870 * arch-utils.c (legacy_store_return_value): New function.
3871 (legacy_extract_return_value): Update parameters.
3872
3873 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3874 STORE_RETURN_VALUE.
3875 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3876 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3877 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3878 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3879 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3880 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3881 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3882 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3883 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3884 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3885
3886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3887 * i386-tdep.c (i386_extract_return_value): Update.
3888 * arch-utils.c (legacy_extract_return_value): Update.
3889 * frv-tdep.c (frv_gdbarch_init): Update.
3890 * cris-tdep.c (cris_gdbarch_init): Update.
3891 * d10v-tdep.c (d10v_gdbarch_init): Update.
3892 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3893 * m68k-tdep.c (m68k_gdbarch_init): Update.
3894 * mcore-tdep.c (mcore_gdbarch_init): Update.
3895 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3896 * s390-tdep.c (s390_gdbarch_init): Update.
3897 * sparc-tdep.c (sparc_gdbarch_init): Update.
3898 * sh-tdep.c (sh_gdbarch_init): Update.
3899 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3900 * v850-tdep.c (v850_gdbarch_init): Update.
3901 * avr-tdep.c (avr_gdbarch_init): Update.
3902 * ia64-tdep.c (ia64_gdbarch_init): Update.
3903 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3904 * vax-tdep.c (vax_gdbarch_init): Update.
3905 * alpha-tdep.c (alpha_gdbarch_init): Update.
3906 * arm-tdep.c (arm_gdbarch_init): Update.
3907 * mips-tdep.c (mips_gdbarch_init): Update.
3908 * i386-tdep.c (i386_gdbarch_init): Update.
3909
5bd8c6d0
AC
39102002-08-23 Andrew Cagney <ac131313@redhat.com>
3911
3912 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3913 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3914
e73e1724
MK
39152002-08-24 Mark Kettenis <kettenis@gnu.org>
3916
3917 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3918 problems.
3919
3e6564e1
JB
39202002-08-23 Joel Brobecker <brobecker@gnat.com>
3921
3922 * infrun.c (handle_inferior_event): Move a comment outside of a
3923 function call, in order to avoid indent reformatting this part
3924 of the code in an unreadable way.
3925
81d0cc19
GS
39262002-08-23 Grace Sainsbury <graces@redhat.com>
3927
3928 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3929 when breakpoints fail. Move general breakpoint error messages to
3930 insert_breakpoints.
3931 * breakpoint.c (insert_breakpoints): Change warnings when
3932 breakpoints are nto inserted to specify the type. Remove call to
3933 memory_error when hardware breakpoints can't be inserted. Remove
3934 multiple calls to warning so all messages are sent to the user at
3935 once.
3936 (delete_breakpoints): Make insert error messsages more explicit.
3937
17574093
DJ
39382002-08-23 Daniel Jacobowitz <drow@mvista.com>
3939
3940 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3941 gdbserver/ChangeLog.
3942
8acc2935
MK
39432002-08-23 Mark Kettenis <kettenis@gnu.org>
3944
dfe01d39
MK
3945 * i386-tdep.c: Include "objfiles.h".
3946 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3947 skip_trampoline_code.
3948 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3949 (CPLUS_MARKER): Define to '.'.
3950
8acc2935
MK
3951 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3952 member.
3953 (linux_corefile_thread_callback): Increase args->num_notes.
3954 (linux_make_note_section): Initialize thread_args.num_notes, and
3955 use it to determine whether notes for any threads were created.
3956
151fefe2 39572002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3958
3959 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3960 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3961 and PCUNKILL.
3962 (write_with_trace): Conditionalize out the switch branch handling
3963 PCSHOLD if the corresponding macro is not defined. Likewise for
3964 PRSABORT and PRSTOP.
3965 This change will be needed by the Interix port.
3966
e1507482
EZ
39672002-08-22 Elena Zannoni <ezannoni@redhat.com>
3968
3969 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3970 write_register wherever possible instead of manipulating the
3971 register bytes directly.
3972 Assign VALUE_CONTENTS to a variable and use that.
3973 The GPR numbers are now dependent on the architecture.
3974
96ff0de4
EZ
39752002-08-22 Elena Zannoni <ezannoni@redhat.com>
3976
3977 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3978 ev_offset fields.
3979 (skip_prologue): Add support for BookE/e500 instructions.
3980 (e500_extract_return_value): New function.
3981 (frame_get_saved_regs): Add support for saving ev registers and
3982 pseudo gpr's.
3983 (e500_store_return_value): New function.
3984 (rs6000_gdbarch_init): Move up default intializations of
3985 deprecated_extract_return_value and store_return_value. Overwrite
3986 init of store_return_value with e500 specific version.
3987 Set extract_return_value for e500.
3988
fbefca5b
EZ
39892002-08-22 Elena Zannoni <ezannoni@redhat.com>
3990
3991 * blockframe.c (generic_call_dummy_register_unwind): Use
3992 regcache_cooked_read to catch cases in which the variable is
3993 stored in a pseudo register.
3994
4d210288
AC
39952002-08-22 Andrew Cagney <cagney@redhat.com>
3996
3997 * NEWS: Mention that the i960 has been made obsolete.
3998 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3999 i960-tdep.c
4000 (remote-nrom.o): Obsolete target.
4001 (remote-nindy.o, i960-tdep.o): Ditto.
4002 * remote-nrom.c: Make file obsolete.
4003 * remote-nindy.c, remote-vx960.c: Ditto.
4004 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4005 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4006 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4007 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4008 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4009 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4010 i960-*-vxworks* obsolete.
4011 * MAINTAINERS: Note that the i960 is obsolete.
4012
6c0c456d
CV
40132002-08-21 Corinna Vinschen <vinschen@redhat.com
4014
4015 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4016 detach to allow reinitialization.
4017
9f9d12b3
AC
40182002-08-22 Andrew Cagney <ac131313@redhat.com>
4019
4020 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4021 attempt).
4022
ebeb39fe
JB
40232002-08-22 Jim Blandy <jimb@redhat.com>
4024
4025 * coffread.c (coff_symfile_read): Don't try to read the line
4026 number table from disk if the image file doesn't have a symbol
4027 table; we'll never actually look at the info anyway, and Windows
4028 ships DLL's with bogus file offsets for the line number data.
4029
5bf1c677
EZ
40302002-08-21 Elena Zannoni <ezannoni@redhat.com>
4031
4032 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4033 an e500 executable.
4034
71b8ef93
MS
40352002-08-21 Michael Snyder <msnyder@redhat.com>
4036
4037 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4038 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4039 (DEFAULT_MIPS_TYPE): Delete unused macro.
4040 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4041 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4042
d174216d
JB
40432002-08-21 Jim Blandy <jimb@redhat.com>
4044
4045 * valops.c (value_cast): Simplify and correct logic for doing a
4046 static cast from a pointer to a base class to a pointer to a
4047 derived class.
4048
0ab7a791
AC
40492002-08-21 Andrew Cagney <ac131313@redhat.com>
4050
4051 * infcmd.c (default_print_registers_info): Replace
4052 do_registers_info.
4053 (registers_info): Use gdbarch_print_registers_info instead of
4054 DO_REGISTERS_INFO.
4055 * inferior.h (default_print_registers_info): Replace
4056 do_registers_info.
4057 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4058 (DO_REGISTERS_INFO): Change to a predicate function.
4059 * gdbarch.h, gdbarch.c: Regenerate.
4060
e23792cc
KS
40612002-08-21 Keith Seitz <keiths@redhat.com>
4062
4063 * gdb-events.sh: Add target-changed event.
4064 * gdb-events.c: Regenerated.
4065 * gdb-events.c: Regenerated.
4066 * valops.c (value_assign): Add target-changed event notification
4067 to inlval_register, lval_memory, and lval_reg_frame_relative.
4068
9fb14e79
JB
40692002-08-21 Joel Brobecker <brobecker@gnat.com>
4070
4071 * NEWS: Add an entry regarding the improvement of the next/step
4072 operation on Alpha Tru64 multi-processor machines.
4073
6d39a69f
AC
40742002-08-21 Andrew Cagney <ac131313@redhat.com>
4075
72acd513
AC
4076 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4077 directores.
342af04b 4078 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4079 * Makefile.in (install-gdbtk): Move to install section.
4080 (rdi-share/libangsd.a): Move to end of file.
4081
fa5f27c7
AC
40822002-08-19 Andrew Cagney <ac131313@redhat.com>
4083
4084 * frame.c (frame_register_unwind): When a register, set addrp to
4085 the register's byte.
4086
5a89d8aa
MS
40872002-08-20 Michael Snyder <msnyder@redhat.com>
4088
4089 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4090 used locally, so move them from the target machine header to here.
4091 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4092 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4093 Make static.
4094 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4095
822e978b
AC
40962002-08-20 Andrew Cagney <cagney@redhat.com>
4097
4098 * NEWS: Mention that the Apollo line was made obsolete.
4099 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4100 m68*-hp-hpux* obsolete.
4101 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4102 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4103 * buildsym.c (make_blockvector): Make static.
4104 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4105 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4106 (ALLDEPFILES): Remove dstread.c.
4107 (dstread.o): Obsolete make rule.
4108 * dstread.c: Makefile obsolete.
4109 * dst.h: Ditto.
4110 * config/m68k/hp300hpux.mt: Ditto.
4111 * config/m68k/hp300hpux.mh: Ditto.
4112 * config/m68k/hp300bsd.mt: Ditto.
4113 * config/m68k/hp300bsd.mh: Ditto.
4114 * config/m68k/apollo68b.mt: Ditto.
4115 * config/m68k/apollo68v.mh: Ditto.
4116 * config/m68k/apollo68b.mh: Ditto.
4117
e41b17f0
MS
41182002-08-20 Michael Snyder <msnyder@redhat.com>
4119
4120 * mips-tdep.c (mips_in_return_stub): Make static.
4121 (mips_gdbarch_init): Set in_solib_return_trampoline.
4122 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4123
d50355b6
MS
41242002-08-20 Michael Snyder <msnyder@redhat.com>
4125
4126 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4127 * gdbarch.c, gdbarch.h: Regenerate.
4128 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4129 Add.
4130 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4131
757a7cc6
MS
41322002-08-20 Michael Snyder <msnyder@redhat.com>
4133
4134 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4135 (mips_gdbarch_init): Set skip_trampoline_code,
4136 in_solib_call_trampoline.
4137 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4138 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4139
c8001721
EZ
41402002-08-20 Elena Zannoni <ezannoni@redhat.com>
4141
4142 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4143
4144 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4145 vector type for ev registers.
4146 (e500_pseudo_register_read): New function.
4147 (e500_pseudo_register_write): New function.
4148 (e500_dwarf2_reg_to_regnum): New function.
4149 (PPC_UISA_NOFP_SPRS): New macro.
4150 (PPC_EV_REGS): New macro.
4151 (PPC_GPRS_PSEUDO_REGS): New macro.
4152 (registers_e500): New register set for e500.
4153 (variants): Add e500 variant.
4154 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4155 before setting architectural dependent variations. Initialize ev
4156 registers numbers. Add case for e500 architecture. Set the
4157 number of pseudo registers.
4158
64366f1c
EZ
41592002-08-20 Elena Zannoni <ezannoni@redhat.com>
4160
4161 * rs6000-tdep.c: Clean up comments.
4162
7e78f0ca
AC
41632002-08-20 Andrew Cagney <cagney@redhat.com>
4164
4165 * h8300-tdep.c: Re-indent file.
4166
697f7479
JB
41672002-08-20 Jim Blandy <jimb@redhat.com>
4168
4169 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4170 default for this.
697f7479 4171
e86ae29f
KS
41722002-08-20 Keith Seitz <keiths@redhat.com>
4173
4174 * breakpoints.c (watch_command_1): Use internal breakpoint
4175 when setting a watchpoint_scope breakpoint.
4176
216b504f
EZ
41772002-08-20 Elena Zannoni <ezannoni@redhat.com>
4178
4179 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4180 (build_builtin_type_vec64i): Ditto.
4181 (build_builtin_type_vec128): Ditto.
4182 (build_builtin_type_vec128i): Ditto.
4183
f7ab6ec6
MS
41842002-08-19 Michael Snyder <msnyder@redhat.com>
4185
4186 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4187 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4188 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4189 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4190 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4191 CALL_DUMMY_ADDRESS): Delete.
4192 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4193 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4194 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4195 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4196 push_return_address.
4197 (mips_register_raw_size, mips_eabi_use_struct_convention,
4198 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4199 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4200 mips_init_extra_frame_info, mips_eabi_push_arguments,
4201 mips_n32n64_push_arguments, mips_push_return_address,
4202 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4203 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4204
b5d1566e
MS
42052002-08-19 Michael Snyder <msnyder@redhat.com>
4206
4207 * mips-tdep.c (mips_frame_num_args): New function.
4208 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4209 frame_saved_pc, frame_args_address, frame_locals_address,
4210 frame_num_args, and frame_args_skip.
4211 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4212 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4213 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4214 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4215
2f1488ce
MS
42162002-08-20 Michael Snyder <msnyder@redhat.com>
4217
4218 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4219 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4220 * mips-tdep.c (mips_store_struct_return): New function.
4221 (mips_extract_struct_value_address): New function.
4222 (mips_gdbarch_init): Set store_struct_return and
4223 extract_struct_value_address.
4224
41ff2da1
DC
42252002-08-20 David Carlton <carlton@math.stanford.edu>
4226
4227 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4228 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4229 (read_file_scope): Check that line_header is nonzero before
4230 decoding macro information.
4231
e5451d58
MK
42322002-08-20 Mark Kettenis <kettenis@gnu.org>
4233
4234 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4235 flag the general-purpose registers as floating-point on targets
4236 that don't support the floating-point registers.
4237
4a6daafa
EZ
42382002-08-20 Elena Zannoni <ezannoni@redhat.com>
4239
4240 * rs6000-tdep.c (altivec_register_p): Delete.
4241 (rs6000_do_altivec_registers): Delete.
4242 (rs6000_altivec_registers_info): Delete.
4243 (rs6000_do_registers_info): Delete.
4244 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4245 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4246
ab4327e0
EZ
42472002-08-20 Elena Zannoni <ezannoni@redhat.com>
4248
4249 * infcmd.c (do_registers_info): Print vector registers in hex
4250 format only.
4251 (print_vector_info): Check that printing registers
4252 makes sense.
4253 (print_float_info): Ditto.
4254
cb1d2653
AC
42552002-08-20 Andrew Cagney <ac131313@redhat.com>
4256
4257 * mips-tdep.c (mips_gdbarch_init): Update.
4258 (mips_o32_extract_return_value): Rewrite.
4259 (mips_o32_store_return_value): Rewrite.
4260 (mips_o32_xfer_return_value): New function.
4261 (mips_xfer_register): Tweak debug print message. Allow for
4262 buf_offset when dumping the value transfered.
4263
dfc3d9b2
AC
42642002-08-20 Andrew Cagney <ac131313@redhat.com>
4265
4266 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4267 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4268 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4269 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4270 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4271
7807aa61
MS
42722002-08-14 Michael Snyder <msnyder@redhat.com>
4273
4274 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4275
489461e2
EZ
42762002-08-19 Elena Zannoni <ezannoni@redhat.com>
4277
4278 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4279 register.
4280 (P): New macro to define a register as a pseudo register.
4281 (R, R4, R8, R16, FR32, R64, R0): Updated.
4282 (struct variant): Add new fields for number of pseudo registers
4283 and number of total registers.
4284 (tot_num_registers): New macro replacing....
4285 (num_registers): ...deleted macro.
4286 (num_registers): New function.
4287 (num_pseudo_registers): New function.
4288 (variants): Update all variants to intialize new fields correctly.
4289 Postpone initialization of number of pseudo regs and real regs.
4290 (init_variants): New function.
4291 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4292 registers offsets.
4293
fcaffe4c
DC
42942002-08-19 David Carlton <carlton@math.stanford.edu>
4295
2c2738a0
DC
4296 * valops.c (search_struct_field): Change error message to treat
4297 return value of 0 from value_static_field as meaning that field is
4298 optimized out.
4299 (value_struct_elt_for_reference): Ditto.
4300 * values.c (value_static_field): Treat an unresolved location the
4301 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4302 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4303 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4304 * MAINTAINERS: Add self to Write After Approval list.
4305
88658117
AC
43062002-08-19 Andrew Cagney <ac131313@redhat.com>
4307
4308 * mips-tdep.c (mips_xfer_register): New function.
4309 (mips_n32n64_extract_return_value): Rewrite.
4310 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4311 instead of deprecated_extract_return_value.
4312
21283beb
EZ
43132002-08-19 Elena Zannoni <ezannoni@redhat.com>
4314
4315 * rs6000-tdep.c (TDEP): Delete macro.
4316 (branch_dest): Replace use of TDEP macro with its body.
4317 (rs6000_pop_frame): Ditto.
4318 (rs6000_push_arguments): Ditto.
4319 (rs6000_skip_trampoline_code): Ditto.
4320 (rs6000_frame_saved_pc): Ditto.
4321 (rs6000_frame_chain): Ditto.
4322 (rs6000_register_name): Ditto.
4323 (rs6000_register_byte): Ditto.
4324 (rs6000_register_raw_size): Ditto.
4325 (rs6000_register_virtual_type): Ditto.
4326 (rs6000_register_convertible): Ditto.
4327 (rs6000_convert_from_func_ptr_addr): Ditto.
4328
bf072999
DJ
43292002-08-19 Daniel Jacobowitz <drow@mvista.com>
4330
4331 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4332 conditionally.
4333 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4334 MIPS_LINUX_JB_ELEMENT_SIZE.
4335 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4336 for MAX_REGISTER_RAW_SIZE arrays.
4337 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4338 MIPS_LINUX_JB_ELEMENT_SIZE.
4339
9b949a49
PM
43402002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4341
4342 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4343
6d3e79c6
AS
43442002-08-19 Aidan Skinner <aidan@velvet.net>
4345
4346 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4347 ada-valprint.c ada-tasks.c.
4348 (YYFILES): Add ada-exp.y.
4349 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4350 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4351 (ada-exp.tab.o): New target.
4352
06c0b04e
AC
43532002-08-18 Andrew Cagney <ac131313@redhat.com>
4354
4355 * regcache.c (regcache_xfer_part): New function.
4356 (regcache_raw_read_part): New function.
4357 (regcache_raw_write_part): New function.
4358 (regcache_cooked_read_part): New function.
4359 (regcache_cooked_write_part): New function.
4360 * regcache.h (regcache_raw_read_part): Declare.
4361 (regcache_raw_write_part): Declare.
4362 (regcache_cooked_read_part): Declare.
4363 (regcache_cooked_write_part): Declare.
4364
92d1e331
DJ
43652002-08-18 Daniel Jacobowitz <drow@mvista.com>
4366
4367 * remote.c (remote_open_1): Add async_p.
4368 (remote_async_open_1): Delete.
4369 (open_remote_target): Delete.
4370 (remote_open, extended_remote_open): Update calls to remote_open_1.
4371 (remote_async_open, extended_remote_async_open): Call
4372 remote_open_1 instead of remote_async_open_1.
4373
247055de
MK
43742002-08-19 Mark Kettenis <kettenis@gnu.org>
4375
4376 * blockframe.c: Fix a few coding standard violations.
4377
641eda39
MK
43782002-08-19 Mark Kettenis <kettenis@gnu.org>
4379
0b717710
MK
4380 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4381 here from ...
4382 * config/i386/tm-i386sco5.h: ... here. File removed.
4383 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4384
26d28e12 4385 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4386 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4387 (TM_FILE): Set to tm-i386.h.
4388 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4389 * config/i386/tm-i386v.h: Remove file.
4390 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4391 instead of "i386/tm-i386v.h".
4392 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4393 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4394 "i386/tm-i386v.h".
4395 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4396 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4397 "i386/tm-i386.h".
4398
d4e0bab4
MK
43992002-08-18 Mark Kettenis <kettenis@gnu.org>
4400
4401 * config/i386/nm-i386v.h: Add protection against
4402 multiple-inclusion.
4403 (i386_register_u_addr): Remove prototype.
4404 (register_u_addr): New prototype.
4405 (REGISTER_U_ADDR): Redefine accordingly.
4406 * i386v-nat.c: Improve several comments.
4407 (i386_register_u_addr): Change signature and rename to
4408 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4409 ubase variable.
4410
46cac009
AC
44112002-08-18 Andrew Cagney <ac131313@redhat.com>
4412
4413 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4414 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4415 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4416 deprecated_extract_return_value.
4417 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4418 rename mips_o32o64_push_arguments.
4419 (mips_gdbarch_init): Update.
4420 (mips_extract_return_value): Delete.
4421 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4422 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4423 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4424 (mips_n32n64_extract_return_value): Clone
4425 mips_extract_return_value.
4426 (mips_store_return_value): Delete.
4427 (mips_o32_store_return_value): Clone mips_store_return_value.
4428 (mips_o64_store_return_value): Clone mips_store_return_value.
4429 (mips_eabi_store_return_value): Clone mips_store_return_value.
4430 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4431
d2e4a39e
AS
44322002-08-18 Aidan Skinner <aidan@velvet.net>
4433
0c30c098
AS
4434 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4435 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4436
44372002-08-18 Aidan Skinner <aidan@velvet.net>
4438
4439 * ada-lang.c: Run through gdb_indent.sh.
4440 * ada-lang.h: Run through gdb_indent.sh.
4441 * ada-tasks.c: Run through gdb_indent.sh.
4442 * ada-typeprint.c: Run through gdb_indent.sh.
4443 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4444
01fc4e33
AC
44452002-08-18 Andrew Cagney <ac131313@redhat.com>
4446
4447 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4448 ABI.
4449
d8ee244c
MK
44502002-08-18 Mark Kettenis <kettenis@gnu.org>
4451
c38d8261
MK
4452 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4453
222db64c
MK
4454 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4455 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4456
c2848c82
MK
4457 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4458 write_register_gen instead of write_register_bytes.
4459
d8ee244c
MK
4460 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4461 i[3456]-*-osf1mk* configurations have been made obsolete.
4462 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4463 i[3456]86-*-osf1mk* hosts obsolete.
4464 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4465 targets obsolete.
4466 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4467 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4468 config/i386/i386m3.mt, config/i386/nm-m3.h,
4469 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4470 config/i386/i386mk.mh, config/i386/i386mk.mt,
4471 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4472 obsolete.
4473 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4474 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4475 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4476
61d8d407
AC
44772002-08-18 Andrew Cagney <ac131313@redhat.com>
4478
4479 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4480 (hppa_value_returned_from_stack): Declare.
4481 (hppa_extract_return_value): Declare.
4482 * config/pa/hppa.mt: New file.
4483 * configure.tgt: Recognize hppa*-*-*.
4484 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4485
0c52bd59
MK
44862002-08-18 Mark Kettenis <kettenis@gnu.org>
4487
4488 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4489 comment.
4490
b5686e99
MK
44912002-08-17 Mark Kettenis <kettenis@gnu.org>
4492
4493 * top.c (gdb_rl_operate_and_get_next): Make sure
4494 operate-and-get-next functions correctly even when the history
4495 list is completely filled.
4496
c1bab85b
AC
44972002-08-18 Andrew Cagney <ac131313@redhat.com>
4498
4499 * MAINTAINERS (Target Instruction Set Architectures): Rename
4500 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4501 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4502 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4503 already listed under Host/Native.
4504
4505 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4506 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4507 mips*-*-*.
4508
32089c7c
AC
45092002-08-17 Andrew Cagney <ac131313@redhat.com>
4510
4511 * config/ia64/ia64.mt: New file.
4512 * config/alpha/alpha.mt: New file.
4513 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4514 ia64-linux-gnu. Mention that ia64-elf is broken.
4515 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4516
b4671f85
MK
45172002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4518
4519 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4520 generic_func_frame_valid instead of func_frame_valid.
4521
c8edd8b4
JB
45222002-08-16 Joel Brobecker <brobecker@gnat.com>
4523
4524 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4525 procfs appears to be broken when debugging on multi-processor
4526 machines. So enable software single stepping in order to avoid
4527 using the procfs interface to do next/step operations, using
4528 internal breakpoints instead.
4529
4530 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4531 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4532 make this pc address equal to the value it would have if the
4533 system stepping capability was used. Also set a new flag used
4534 to ensure that we don't readjust the PC one more time later.
4535
4536 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4537 address by DECR_PC_AFTER_BREAK when software single step is
4538 in use for this architecture, as this has already been taken
4539 care of in handle_inferior_event().
4540
238617f6
JB
45412002-08-16 Joel Brobecker <brobecker@gnat.com>
4542
4543 * infrun.c (handle_inferior_event): Minor reformatting, to make
4544 a rather long condition expression easier to read.
4545
541a7aac
AC
45462002-08-16 Andrew Cagney <ac131313@redhat.com>
4547
4548 * Makefile.in (gdbtk.o): Move to end of file.
4549 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4550 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4551 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4552 (gdbtk-wrapper.o, gdbres.o): Ditto.
4553
f92d4a7b
AC
45542002-08-16 Andrew Cagney <ac131313@redhat.com>
4555
4556 * Makefile.in (copying.o): Separate out compile rule.
4557 (hpux-thread.o, procfs.o, signals.o): Ditto.
4558 (v850ice.o, z8k-tdep.o): Ditto.
4559 (tui-file.o): Move to TUI section.
4560 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4561 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4562
1cce71eb
JB
45632002-08-16 Joel Brobecker <brobecker@gnat.com>
4564
4565 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4566 skip_trampoline_code, for better namespace-proofing.
4567
4568 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4569
0851f23d
JB
45702002-08-16 Joel Brobecker <brobecker@gnat.com>
4571
4572 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4573
f8d40ec8
JB
45742002-08-16 Joel Brobecker <brobecker@gnat.com>
4575
4576 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4577 signal, check whether we hit a breakpoint before checking for a
4578 single step breakpoint. Otherwise, GDB fails to notice that a
4579 breakpoint has been hit when stepping onto a breakpoint.
4580
63d022e0
KS
45812002-08-16 Keith Seitz <keiths@redhat.com>
4582
4583 * gdb-events.sh (clear_gdb_event_hooks): New function.
4584 * gdb-events.c: Regenerate.
4585 * gdb-events.h: Regenerate.
4586
6e31adb3
AC
45872002-08-16 Andrew Cagney <ac131313@redhat.com>
4588
4589 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4590 not_a_sw_breakpoint.
4591 * breakpoint.h (bpstat_stop_status): Add parameter names.
4592
c8189ed1
GS
45932002-08-16 Grace Sainsbury <graces@redhat.com>
4594
4595 * remote.c (remote_insert_hw_breakpoint)
4596 (remote_remove_hw_breakpoint): Fix calculation of length field
4597 for Z-packet.
4598
d05285fa
MS
45992002-08-15 Michael Snyder <msnyder@redhat.com>
4600
466d7106
MS
4601 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4602 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4603 (supply_fpregset): Ditto.
4604
d05285fa
MS
4605 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4606 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4607 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4608 (TARGET_READ_SP): Delete.
bf1f5b4c 4609 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4610 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4611 Delete.
4612 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4613 from macros to functions.
bf1f5b4c 4614
d05285fa
MS
4615 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4616 (mips_register_convertible, mips_register_convert_to_virtual,
4617 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4618 (mips_read_sp): New function.
4619 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4620 (mips_do_registers_info): Make static.
4621 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4622 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4623 (mips_register_convert_from_type, mips_register_convert_to_type):
4624 New functions.
4625 (mips_gdbarch_init): Set up function_start_offset,
4626 register_virtual_size, pc_in_sigtramp.
d05285fa 4627
e76f1f2e
AC
46282002-08-15 Andrew Cagney <ac131313@redhat.com>
4629
4630 * infcmd.c (vector_info): New function.
4631 (_initialize_infcmd): Add command "info vector".
4632 (print_vector_info): New function.
4633
4634 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4635 * gdbarch.h, gdbarch.c: Regenerate.
4636
4782dc19
AC
46372002-08-15 Andrew Cagney <ac131313@redhat.com>
4638
4639 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4640 ``print_all''. Only print vector registers when ``print_all''.
4641
23e3a7ac
AC
46422002-08-15 Andrew Cagney <ac131313@redhat.com>
4643
8e186fd6
AC
4644 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4645 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4646
23e3a7ac
AC
4647 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4648 Add `args' parameter.
4649 * gdbarch.h, gdbarch.c: Regenerate.
4650
4651 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4652
4653 * infcmd.c (float_info): Call print_float_info.
4654 (print_float_info): New function. By default, print the
4655 floating-point registers.
4656
4657 * arch-utils.h (default_print_float_info): Delete declaration.
4658 * arch-utils.c (default_print_float_info): Delete function.
4659
e0ca2bb9
MK
46602002-08-16 Mark Kettenis <kettenis@gnu.org>
4661
3f733acc
MK
4662 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4663 out define.
4664
7d8d2918
MK
4665 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4666 FRAME.
4667
1c7cc583
MK
4668 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4669 * configure.host: Make i[3456]86-*-aix host obsolete.
4670 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4671 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4672 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4673 config/i386/xm-i386aix.h: Make files obsolete.
4674 * i386aix-nat.c: Make file obsolete.
4675 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4676 (i386aix-nat.o): Make target obsolete.
4677
e0ca2bb9
MK
4678 * config/i386/nm-gnu.h: Removed.
4679 * config/i386/nm-i386gnu.h: New file.
4680 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4681 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4682 Moved here from ...
4683 * config/i386/tm-i386gnu.h: ... here. Removed.
4684 * config/i386/xm-i386gnu.h: Removed.
4685 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4686 (NAT_FILE): Set to nm-i386gnu.h.
4687 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4688 * i386-tdep.c: New file.
4689 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4690 (i386gnu-tdep.o): Specify dependencies.
4691
16057ec7 46922002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4693
6b99ee2e
MK
4694 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4695 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4696 Adjust a few comments to reflect reality a bit closer.
4697 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4698 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4699 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4700 target_insert_watchpoint, target_remove_watchpoint):
4701 Move defines to ...
4702 * config/i386/nm-i386sco5.h: ... here.
4703 (kernel_u_size): Add prototype. Improve a few comments and add
4704 protection against multiple inclusion.
4705
d9a6f65c
MK
4706 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4707 out define.
4708
047eff6a
MK
4709 * uw-thread.c (SP_ARG0): Define if not already defined.
4710 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4711
dcdb1290
MK
4712 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4713
5d2d0b2a
MK
4714 * config/i386/tm-i386.h: Don't include "regcache.h".
4715
61113f8b
MK
4716 * i387-tdep.h (i387_print_float_info): New prototype.
4717 * i387-tdep.c (print_i387_value, print_i387_ext,
4718 print_i387_status_word, print_i387_control_word): Add `struct
4719 ui_file *' argument and use it for output.
4720 (i387_print_float_info): Renamed from i387_float_info. Add
4721 `struct gdbarch *' and `struct ui_file *' arguments and use the
4722 latter for output.
4723 * i386-tdep.c: Include "i387-tdep.h".
4724 (i386_gdbarch_init): Set print_float_info.
4725 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4726 (FLOAT_INFO): Remove define.
4727
46e0f506
MS
47282002-08-13 Michael Snyder <msnyder@redhat.com>
4729
4730 * mips-tdep.c (mips_push_arguments): Rename to
4731 mips_eabi_push_arguments, and tune for EABI.
4732 (MIPS_REGS_HAVE_HOME_P): Delete.
4733 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4734 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4735 Delete references to mips_regs_have_home_p.
4736
409268de
KS
47372002-08-14 Keith Seitz <keiths@redhat.com>
4738
4739 * Makefile.in (install-gdbtk): Create insight plugin directory.
4740 Install plugins.tcl file.
4741
ffc6a242
KS
47422002-08-14 Keith Seitz <keiths@redhat.com>
4743
4744 * configure.in: Move SUBDIRS to near top of the file so that
4745 --enable options may add things to it.
4746 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4747 * configure: Regenerate.
4748
ebafbe83
MS
47492002-08-13 Michael Snyder <msnyder@redhat.com>
4750
4751 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4752 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4753 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4754
32f6f25d
AC
47552002-08-13 Andrew Cagney <ac131313@redhat.com>
4756
4757 * vax-tdep.c (vax_get_saved_register): Delete function.
4758 (vax_gdbarch_init): Update.
4759 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4760 (ns32k_gdbarch_init): Update.
4761 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4762 (alpha_gdbarch_init): Update.
4763
53826de9
AC
47642002-08-13 Andrew Cagney <cagney@redhat.com>
4765
4766 * regcache.c (init_regcache_descr): Overallocate the
4767 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4768 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4769 nr_raw_registers.
4770 (set_register_cached): Add range checking assertions. Use
4771 current_regcache.
4772
16057ec7 47732002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4774
4775 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4776 numbers for MMX registers.
4777
7b4c2dce
AC
47782002-08-13 Andrew Cagney <cagney@redhat.com>
4779
4780 * i386-tdep.c (i386_gdbarch_init): Use
4781 generic_unwind_get_saved_register.
4782
1e03ad20
KB
47832002-08-13 Kevin Buettner <kevinb@redhat.com>
4784
4785 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4786 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4787 target vector.
4788 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4789 Delete. Add comment regarding this now-deleted target method.
4790
548bcbec
SC
47912002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4792
4793 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4794 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4795 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4796 real PC and the page number (if it's within the memory bank window).
4797 (m68hc11_pseudo_register_write): Likewise when saving.
4798 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4799 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4800 (m68hc11_register_raw_size): And use 32-bit for it.
4801 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4802 16K memory bank is used by the prog; also use the virtual pc.
4803
7df11f59
SC
48042002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4805
4806 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4807 (m68hc11_gdbarch_init): Install it in gdbarch.
4808 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4809 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4810 (MSYMBOL_SIZE): New for documentation.
4811 (insn_return_kind): Enum to specify how a function returns.
4812 (frame_extra_info): Cleanup and record the return mode.
4813 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4814 register in address computation.
4815 (m68hc11_get_return_insn): New to obtain the return instruction used
4816 by the function.
4817 (m68hc11_frame_init_saved_regs): Take into account the return
4818 instruction used by the function for far and interrupt functions.
4819 (m68hc11_init_extra_frame_info): Take into account page register.
4820 (m68hc11_frame_args_address): Adjust according to the return mode.
4821 (show_regs): Print page register only when it's used.
4822
5706502a
SC
48232002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4824
4825 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4826 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4827 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4828 registers.
4829 (m68hc11_register_raw_size): Likewise.
4830
28fc6740
AC
48312002-08-13 Andrew Cagney <cagney@redhat.com>
4832
4833 * i386-tdep.c (i386_register_name): Handle mmx registers.
4834 (mmx_regnum_p): New function.
4835 (i386_mmx_names): New array.
4836 (mmx_num_regs): New variable.
4837 (i386_pseudo_register_read): New function.
4838 (i386_pseudo_register_write): New function.
4839 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4840
4841 * regcache.c (regcache_raw_read_unsigned): New function.
4842 (regcache_raw_read_signed): New function.
4843 * regcache.h (regcache_raw_read_unsigned): Declare.
4844 (regcache_raw_read_signed): Declare.
4845
a378f419
AC
48462002-08-13 Andrew Cagney <cagney@redhat.com>
4847
4848 * regcache.c (regcache_raw_read_as_address): Delete function.
4849 (regcache_cooked_read_signed): New function.
4850 (regcache_cooked_read_unsigned): New function.
4851 * regcache.h (regcache_cooked_read_signed): Declare.
4852 (regcache_cooked_read_unsigned): Declare.
4853 (regcache_raw_read_as_address): Delete declaration.
4854
4855 * blockframe.c (generic_read_register_dummy): Use
4856 regcache_cooked_read_unsigned.
4857 * i386-tdep.c (i386_extract_struct_value_address): Use
4858 regcache_cooked_read_unsigned.
4859
81967506
SC
48602002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4861
4862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4863 double sizes according to ELF ABI flags.
4864 (gdbarch_tdep): Record elf_flags.
4865
ffe1f3ee
SC
48662002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4867
4868 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4869 (m6812_prolog): They can appear in 68HC12 function prologue.
4870 (m68hc11_frame_chain): Cleanup.
4871
98216c5d
AC
48722002-08-12 Andrew Cagney <cagney@redhat.com>
4873
4874 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4875 declarations.
4876 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4877 (i386_linux_register_raw_size): Delete function.
4878 (i386_linux_init_abi): Update.
4879 * i386-tdep.c (i386_register_raw_size): Delete function.
4880 (i386_register_byte): Delete function.
4881 (i386_gdbarch_init): Update.
4882 (i386_register_size): Delete array.
4883 (i386_register_offset): Delete array.
4884
4885 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4886 (REGISTER_RAW_SIZE): Delete macro.
4887 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4888 (REGISTER_BYTE): Delete macro.
4889
3b19021e
AS
48902002-08-11 Aidan Skinner <aidan@velvet.net>
4891
4892 * ada-lang.c (ada_lookup_partial_symbol)
4893 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4894 prototype names so that grep ^func works properly.
4895
4896 * ada-lang.c (ada_array_element_type)
4897 (ada_lookup_partial_symbol): Fix typos in parameter list.
4898
4899 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4900 Fix prototype names so that grep ^func works properly.
4901
b063e7a2
AC
49022002-08-10 Andrew Cagney <cagney@redhat.com>
4903 Elena Zannoni <ezannoni@redhat.com>
4904 Martin M. Hunt <hunt@redhat.com>
4905
4906 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4907 (build_builtin_type_vec128i): Set the vector bit.
4908 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4909 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4910 (build_builtin_type_vec64): New function.
4911 (build_builtin_type_vec64i): New function.
4912 (build_gdbtypes): Initialize builtin_type_vec64 and
4913 builtin_type_vec64i.
4914
a7e3c2ad
AC
49152002-08-09 Andrew Cagney <cagney@redhat.com>
4916
4917 * regcache.c (regcache_dump): Compare the register offset
4918 with REGISTER_BYTE.
4919 * arch-utils.c (generic_register_byte): New function.
4920 * arch-utils.h (generic_register_byte): Declare.
4921 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4922 * gdbarch.h, gdbarch.c: Regenerate.
4923
af030b9a
AC
49242002-08-09 Andrew Cagney <cagney@redhat.com>
4925
4926 * regcache.c: Include "gdbcmd.h"
4927 (_initialize_regcache): Add commands "maintenance print
4928 registers", "maintenance print raw-registers" and "maintenance
4929 print cooked-registers".
4930 (enum regcache_dump_what): Define.
4931 (dump_endian_bytes): New function.
4932 (regcache_dump): New function.
4933 (regcache_print): New function.
4934 (maintenance_print_registers): New function.
4935 (maintenance_print_raw_registers): New function.
4936 (maintenance_print_cooked_registers): New function.
4937 * Makefile.in (regcache.o): Update dependencies.
4938
cb3d25d1
MS
49392002-08-09 Michael Snyder <msnyder@redhat.com>
4940
4941 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4942 (mips_push_arguments): Correct some comments. Use paddr_nz
4943 for printing addresses in debug output. Replace static
4944 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4945 (mips_n32n64_push_arguments): New function, cloned from
4946 mips_push_arguments and tuned for the n32/n64 ABI.
4947 (mips_push_register): Buffer needs dynamic allocation.
4948 (mips_print_register): Ditto.
4949 (do_gp_register_row): Ditto.
4950 (mips_store_return_value): Ditto.
4951 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4952
2163ab9d
DH
49532002-08-09 Don Howard <dhoward@redhat.com>
4954
4955 * memattr.c (mem_info_command): Print special case of upper bound
4956 as max CORE_ADDR + 1.
4957
b78bcb18
MS
49582002-08-08 Michael Snyder <msnyder@redhat.com>
4959
4960 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4961 returns structs by ref if they're too big to fit in two registers.
4962
ffabd70d
KB
49632002-08-09 Kevin Buettner <kevinb@redhat.com>
4964
4965 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4966 saved regs value.
4967 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4968 mips_find_saved_regs().
4969 (mips_pop_frame): Likewise.
4970
fbcdb4a3
KB
49712002-08-09 Kevin Buettner <kevinb@redhat.com>
4972
4973 * blockframe.c (frame_saved_regs_register_unwind): Revise
4974 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4975 frames are in use.
4976
3c3bea1c
GS
49772002-08-09 Grace Sainsbury <graces@redhat.com>
4978
4979 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4980 T-packets; the 'a' is not taken as a register number.
4981 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4982 (remote_stopped_data_address): New functions; add to target
4983 vector.
4984 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4985 prototypes to match other implementations of this
4986 function. replace integer argument with pointer -- the length
4987 field in the Z-packet is the length of what is pointed to or 1 if
4988 pointer is null. Add to target vector.
4989 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4990 target vector.
4991
4992 From Mark Salter:
4993 * remote.c (remote_wait): Add support to extract optional
4994 watchpoint information from T-packet. Ignore unrecognized
4995 optional info in T-packet.
4996 (remote_async_wait): Ditto.
4997
5d1d95de
CV
49982002-08-09 Corinna Vinschen <vinschen@redhat.com>
4999
5000 * cli/cli-dump.c: Change fopen modes to use binary open modes
5001 as defined in include/fopen-bin.h throughout.
5002
c86b5b38
MS
50032002-08-08 Michael Snyder <msnyder@redhat.com>
5004
5005 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5006
b30590dc
KB
50072002-08-08 Kevin Buettner <kevinb@redhat.com>
5008
5009 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5010 assertion failure by returning early after a warning.
5011
498868ed
KB
50122002-08-08 Kevin Buettner <kevinb@redhat.com>
5013
5014 * mips-tdep.c (mips_find_saved_regs): Make static.
5015 (mips_frame_init_saved_regs): New function.
5016 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5017 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5018 (mips_find_saved_regs): Delete declaration.
5019
b2dd6311
GS
50202002-08-08 Grace Sainsbury <graces@redhat.com>
5021
3c3bea1c
GS
5022 * remote.c (remote_wait, remote_async_wait): Change
5023 thread_num from int to ULONGEST.
5024 (unpack_varlen_hex): Change result parameter from
5025 int * to ULONGEST *.
b2dd6311 5026
ea47855f
AC
50272002-08-08 Andrew Cagney <ac131313@redhat.com>
5028
5029 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5030 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5031 powerpc*-*-*.
5032 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5033
69db8bae
AC
50342002-08-08 Andrew Cagney <cagney@redhat.com>
5035
5036 * gcore.c (override_derive_stack_segment): Delete variable.
5037 (preempt_derive_stack_segment): Delete function.
5038 (derive_stack_segment): Delete function.
5039 (default_derive_stack_segment): Renamed to derive_stack_segment.
5040 (override_derive_heap_segment): Delete variable.
5041 (preempt_derive_heap_segment): Delete function.
5042 (derive_heap_segment): Delete function.
5043 (default_derive_heap_segment): Rename to derive_heap_segment.
5044
cb811fe7
MS
50452002-08-06 Michael Snyder <msnyder@redhat.com>
5046
5047 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5048 * mips-tdep.c (mips_EABI_use_struct_convention,
5049 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5050 New functions. (mips_use_struct_convention): Delete.
5051 (mips_gdbarch_init): set use_gdbarch_convention.
5052
8b389c40
MS
50532002-08-06 Michael Snyder <msnyder@redhat.com>
5054
5055 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5056 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5057 mips_o32_reg_struct_has_addr): New functions.
5058 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5059
5c27f28a
AC
50602002-08-07 Andrew Cagney <ac131313@redhat.com>
5061
5062 * regcache.c (pseudo_register): Delete function.
5063 (fetch_register): Delete function.
5064 (store_register): Delete function.
5065 (regcache_raw_read, legacy_read_register_gen): Use
5066 target_fetch_registers instead of fetch_register.
5067 (legacy_write_register_gen, regcache_raw_write): Use
5068 target_store_register instead of store_register.
5069 (write_register_bytes): Ditto.
5070
5071 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5072 (STORE_PSEUDO_REGISTER): Delete.
5073 * gdbarch.h, gdbarch.c: Regenerate.
5074
5b331675
CV
50752002-08-06 Corinna Vinschen <vinschen@redhat.com>
5076
5077 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5078 write dump file binary.
5079
6acdf5c7
MS
50802002-08-05 Michael Snyder <msnyder@redhat.com>
5081
5082 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5083 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5084 (mips_gdbarch_init): Set N32 target to be mips64.
5085
b2f01c35
KB
50862002-08-06 Kevin Buettner <kevinb@redhat.com>
5087
5088 * frame.c (find_saved_register): Break out of loop once saved
5089 register address is found. Don't mention sparc in loop comment
5090 anymore.
5091
63db5580
KB
50922002-08-06 Kevin Buettner <kevinb@redhat.com>
5093
5094 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5095 mips_default_saved_regsize to 8.
5096
5e34e75e
AC
50972002-08-06 Andrew Cagney <ac131313@redhat.com>
5098
5099 * gcore.c: Do not include <sys/procfs.h>.
5100 * Makefile.in (gcore.o): Update dependencies.
5101
eb4c54a2
AC
51022002-08-06 Andrew Cagney <cagney@redhat.com>
5103
5104 * configure.tgt: Make arc-*-* obsolete.
5105 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5106 * MAINTAINERS: Make arc-elf obsolete.
5107 * arc-tdep.c: Make file obsolete.
5108 * config/arc/arc.mt: Ditto.
5109 * config/arc/tm-arc.h: Ditto.
5110
ced15480
TR
51112002-08-05 Theodore A. Roth <troth@verinet.com>
5112
c1bab85b 5113 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5114
b4743822
AC
51152002-08-05 Andrew Cagney <ac131313@redhat.com>
5116
5117 * mcore-tdep.c (mcore_gdbarch_init): Use
5118 generic_unwind_get_saved_register instead of
5119 generic_get_saved_register.
5120 * v850-tdep.c (v850_gdbarch_init): Ditto.
5121 * frv-tdep.c (frv_gdbarch_init): Ditto.
5122 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5123 * s390-tdep.c (s390_gdbarch_init): Ditto.
5124 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5125 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5126 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5127
3956d554
JB
51282002-08-05 Joel Brobecker <brobecker@gnat.com>
5129
5130 * objfiles.h: Add missing #include "symfile.h"
5131
5132 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5133
8249c0d6
AC
51342002-08-04 Andrew Cagney <ac131313@redhat.com>
5135
5136 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5137 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5138 of FIELD_BITSIZE.
5139
b9d14705
DJ
51402002-08-04 Daniel Jacobowitz <drow@mvista.com>
5141
5142 * NEWS: Cleanup and nitpick.
5143
dd73b9bb
AC
51442002-08-03 Andrew Cagney <ac131313@redhat.com>
5145
5146 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5147
043a27f8
AC
51482002-08-03 Andrew Cagney <ac131313@redhat.com>
5149
5150 * Makefile.in (gdbtk-bp.o): Update dependencies.
5151 (gdbtk-register.o): Ditto.
5152 (gdbtk-varobj.o): Ditto.
5153
46ce284d
AC
51542002-08-03 Andrew Cagney <cagney@redhat.com>
5155
5156 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5157 m68hc11_fetch_pseudo_register.
5158 (m68hc11_pseudo_register_write): Replace
5159 m68hc11_store_pseudo_register.
5160 (m68hc11_gdbarch_init): Update.
5161
b66d6d2e
AC
5162Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5163
5164 * gdbarch.sh: Include "gdb_string.h".
5165 * gdbarch.c: Regenerate.
5166
5167 * regcache.c: Include "gdb_string.h".
5168 * ax-general.c: Ditto.
5169 * varobj.c: Ditto.
5170 * std-regs.c: Ditto.
5171 * fbsd-proc.c: Ditto.
5172 * thread.c: Ditto.
5173
5174 * Makefile.in (regcache.o): Update dependencies.
5175 (thread.o, gdbarch.o): Ditto.
5176 (ax-general.o, gdbarch.o): Ditto.
5177 (varobj.o, std-regs.o): Ditto.
5178 (fbsd-proc.o): Specify dependencies.
5179
29e1842b
AC
51802002-08-02 Andrew Cagney <cagney@redhat.com>
5181
5182 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5183 regnum.
5184 (regcache_cooked_write): Ditto.
5185
68365089
AC
51862002-08-02 Andrew Cagney <ac131313@redhat.com>
5187
5188 * regcache.c (regcache_cooked_read): New function.
5189 (regcache_cooked_write): New function.
5190 (read_register_gen): Rewrite using regcache_cooked_read.
5191 (write_register_gen): Rewrite using regcache_cooked_write.
5192
5193 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5194 Declare.
5195
d8124050
AC
51962002-08-02 Andrew Cagney <cagney@redhat.com>
5197
5198 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5199 Replace the architecture methods register_read and register_write.
5200 * gdbarch.h, gdbarch.c: Regenerate.
5201 * regcache.c (init_regcache_descr): Update.
5202 (read_register_gen): Update.
5203 (write_register_gen): Update.
5204 (supply_register): Update comment.
5205
5206 * sh-tdep.c (sh_gdbarch_init): Update.
5207 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5208 `regcache' and `gdbarch' parameters. Make `buffer' a void
5209 pointer. Update code.
5210 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5211 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5212 void pointer. Update code.
5213 (sh64_register_write): Delete.
5214 (sh4_register_read): Delete.
5215 (sh64_register_read): Delete.
5216 (sh4_register_write): Delete.
5217 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5218 void pointer, `to' parameter a void pointer.
5219 (sh_sh64_register_convert_to_raw): Ditto.
5220
a6425924
KB
52212002-08-01 Kevin Buettner <kevinb@redhat.com>
5222
5223 * mips-tdep.c (mips_register_virtual_type): Use architecture
5224 invariant return values.
5225
ff5922b5
AC
52262002-08-01 Andrew Cagney <cagney@redhat.com>
5227
5228 * linux-proc.c: Include "gdb_string.h".
5229 * Makefile.in (linux-proc.o): Update dependency list.
5230
32a6503c
KB
52312002-08-01 Kevin Buettner <kevinb@redhat.com>
5232
5233 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5234 comment.
5235
ccaa32c7
GS
52362002-08-01 Grace Sainsbury <graces@redhat.com>
5237
5238 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5239 to_insert_watchpoint, to_remove_watchpoint,
5240 to_stopped_by_watchpoint, to_stopped_data_address,
5241 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5242 target vecctor. Define their corresponding macros so they call
5243 them.
5244
5245 * target.c: Add default and debug versions of for
5246 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5247 to_insert_watchpoint, to_remove_watchpoint,
5248 to_stopped_by_watchpoint, to_stopped_data_address,
5249 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5250
78fde5f8
KB
52512002-08-01 Kevin Buettner <kevinb@redhat.com>
5252
5253 * mips-tdep.c (mips_register_virtual_type): New function.
5254 (mips_gdbarch_init): Register mips_register_virtual_type()
5255 with gdbarch machinery.
5256 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5257 this file instead of tm-bigmips.h.
5258 (MIPS_REGSIZE): Delete this macro.
5259 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5260 multiarch version in mips-tdep.c will be found.
5261
db034ac5
AC
52622002-08-01 Andrew Cagney <cagney@redhat.com>
5263
5264 * NEWS: Menion that CHILL has been made obsolete.
5265
5266 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5267 * stabsread.c (read_range_type): Ditto.
5268 * gdbtypes.h: Ditto.
5269 * language.c (binop_type_check): Ditto.
5270 (binop_result_type): Ditto.
5271 (integral_type): Ditto.
5272 (character_type): Ditto.
5273 (string_type): Ditto.
5274 (boolean_type): Ditto.
5275 (structured_type): Ditto.
5276 (lang_bool_type): Ditto.
5277 (binop_type_check): Ditto.
5278 * language.h (_LANG_chill): Ditto.
5279 * dwarfread.c (set_cu_language): Ditto.
5280 * dwarfread.c (CHILL_PRODUCER): Ditto.
5281 * dwarfread.c (handle_producer): Ditto.
5282 * expression.h (enum exp_opcode): Ditto.
5283 * eval.c: Ditto for comments.
5284 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5285 * expprint.c (print_subexp): Ditto.
5286 (print_subexp): Ditto.
5287 * valops.c (value_cast): Ditto.
5288 (search_struct_field): Ditto.
5289 * value.h (COERCE_VARYING_ARRAY): Ditto.
5290 * symfile.c (init_filename_language_table): Ditto.
5291 (add_psymbol_with_dem_name_to_list): Ditto.
5292 * valarith.c (value_binop): Ditto.
5293 (value_neg): Ditto.
5294 * valops.c (value_slice): Ditto.
5295 * symtab.h (union language_specific): Ditto.
5296 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5297 (SYMBOL_DEMANGLED_NAME): Ditto.
5298 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5299 * defs.h (enum language): Ditto.
5300 * symtab.c (got_symtab): Ditto.
5301 * utils.c (fprintf_symbol_filtered): Ditto.
5302
5303 * ch-typeprint.c: Make file obsolete.
5304 * ch-valprint.c: Make file obsolete.
5305 * ch-lang.h: Make file obsolete.
5306 * ch-exp.c: Make file obsolete.
5307 * ch-lang.c: Make file obsolete.
5308
5309 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5310 CHILL_LIB.
5311 (TARGET_FLAGS_TO_PASS): Ditto.
5312 (CHILLFLAGS): Obsolete.
5313 (CHILL): Obsolete.
5314 (CHILL_FOR_TARGET): Obsolete.
5315 (CHILL_LIB): Obsolete.
5316 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5317 ch-valprint.c.
5318 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5319 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5320 ch-lang.o.
5321 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5322 targets.
5323
8aaf0b47
JB
53242002-07-31 Joel Brobecker <brobecker@gnat.com>
5325
5326 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5327 This does not change anything at the moment, but will be helpful
5328 later when full Ada support is integrated.
5329
f3a7b3a5
KB
53302002-07-31 Kevin Buettner <kevinb@redhat.com>
5331
5332 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5333 help message.
5334
fb850278
KB
53352002-07-31 Kevin Buettner <kevinb@redhat.com>
5336
5337 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5338 and save it in a local variable. Use variable in later test.
5339
e3bddbfa
KB
53402002-07-31 Kevin Buettner <kevinb@redhat.com>
5341
5342 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5343 test. (Thanks to Daniel Jacobowitz.)
5344
28d169de
KB
53452002-07-31 Kevin Buettner <kevinb@redhat.com>
5346
5347 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5348 (mips_abi_strings): Add "n64".
5349 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5350
7fe7e44e
KB
53512002-07-31 Kevin Buettner <kevinb@redhat.com>
5352
5353 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5354 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5355
c6caf090
KB
53562002-07-31 Kevin Buettner <kevinb@redhat.com>
5357
5358 * utils.c (host_pointer_to_address, address_to_host_pointer):
5359 Use gdb_assert() instead of explicit call to internal_error().
5360
c41669e0
KB
53612002-07-30 Kevin Buettner <kevinb@redhat.com>
5362
5363 * Makefile.in (rs6000-nat.o): Update dependencies.
5364
5365 From Nicholas Duffek:
5366 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5367 (aix-thread.o): New rule.
5368 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5369 * config/powerpc/aix432.mh: New file.
5370
2fda4977
DJ
53712002-07-30 Daniel Jacobowitz <drow@mvista.com>
5372
5373 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5374 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5375 (fetch_core_registers, ppc_linux_supply_gregset)
5376 (ppc_linux_supply_fpregset): New functions.
5377 (ppc_linux_regset_core_fns): New.
5378 (_initialize_ppc_linux_tdep): Call add_core_fns.
5379 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5380 and ppc_linux_supply_gregset.
5381 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5382 (supply_fpregset): Call ppc_linux_supply_fpregset.
5383 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5384 corelow.o.
5385 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5386
729051e6
DJ
53872002-07-30 Daniel Jacobowitz <drow@mvista.com>
5388
5389 * symtab.c (lookup_symbol): Demangle before lowercasing.
5390
5f8a3188
AC
53912002-07-30 Andrew Cagney <ac131313@redhat.com>
5392
5393 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5394 declaration.
5395 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5396 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5397 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5398 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5399 "gdb_string.h".
5400 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5401 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5402 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5403 (avr-tdep.o, mon960-rom.o): Ditto.
5404 (aout_stabs_gnu_h): Define.
5405 (symtab_h): Remove $(gdb_obstack_h).
5406
67f07146
JB
54072002-07-30 Jim Blandy <jimb@redhat.com>
5408
5409 Patch from David Carlton <carlton@math.stanford.edu>:
5410 * gdbinit.in: Move the `dir' commands that add GDB's own source
5411 directory to the search path to the end, so that the `gdb' source
5412 directory will be searched first.
5413
04ea0df1
AC
54142002-07-29 Andrew Cagney <ac131313@redhat.com>
5415
5416 * gdb_obstack.h: New file.
5417 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5418 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5419 * objfiles.h: Include "gdb_obstack.h".
5420 * Makefile.in (gdb_obstack_h): Define.
5421 (symtab_h): Add $(gdb_obstack_h).
5422 (objfiles_h): Add $(gdb_obstack_h).
5423
5424 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5425 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5426 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5427 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5428 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5429 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5430 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5431 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5432
5433 * Makefile.in (bcache.o): Update dependencies.
5434 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5435 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5436 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5437 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5438 (stabsread.o, symfile.o, symmisc.o): Ditto.
5439 (symtab.o, typeprint.o, macroexp.o): Ditto.
5440 (macrotab.o, mdebugread.o): Ditto.
5441 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5442 (coff_ecoff_h, aout_aout64_h): Define.
5443 (aout_stabs_gnu_h, libaout_h): Define.
5444
d138e37a
AC
54452002-07-29 Andrew Cagney <cagney@redhat.com>
5446
5447 * regcache.c (struct regcache_descr): Rename nr_registers to
5448 nr_cooked_registers. Revise comments describing the structure
5449 member fields.
5450 (init_regcache_descr): Update.
5451 (init_legacy_regcache_descr): Update.
5452 (read_register_gen, write_register_gen): When a cooked register in
5453 the raw register range, directly access the value from the raw
5454 register cache.
5455
460e6ec3
AC
54562002-07-29 Andrew Cagney <ac131313@redhat.com>
5457
5458 * z8k-tdep.c: Do not include "obstack.h".
5459 * h8300-tdep.c, h8500-tdep.c: Ditto.
5460 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5461 * valprint.c, v850-tdep.c: Ditto.
5462 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5463 * mn10200-tdep.c: Ditto.
5464
5465 * Makefile.in (z8k-tdep.o): Update dependencies.
5466 (m68hc11-tdep.o, valprint.o): Ditto.
5467 (v850-tdep.o, d10v-tdep.o): Ditto.
5468 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5469 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5470 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5471 (sh_opc_h, gdb_sim_sh_h): Define.
5472 (elf_sh_h, elf_bfd_h): Define.
5473 (opcode_m68hc11_h): Define.
5474 (OPCODES_SRC, OPCODES_DIR): define.
5475 (OPCODES): Use $(OPCODES_DIR).
5476 (gdb_sim_d10v_h): Rename sim_d10v_h.
5477 (gdb_sim_arm_h): Rename sim_arm_h.
5478
790c9cf0
KB
54792002-07-26 Kevin Buettner <kevinb@redhat.com>
5480
5481 * utils.c (host_pointer_to_address, address_to_host_pointer):
5482 Change internal_error() message to indicate function responsible
5483 for the error.
5484
9647fa49
KB
54852002-07-26 Kevin Buettner <kevinb@redhat.com>
5486
5487 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5488 calls to local_hex_string_custom().
5489
dabbe2c0
KB
54902002-07-26 Kevin Buettner <kevinb@redhat.com>
5491
5492 * irix5-nat.c: Move IRIX shared library support from here...
5493 * solib-irix.c: ...to here. Revised substantially to work with
5494 generic solib framework.
5495
b96d0a4e
KB
5496 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5497 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5498 * mips-irix-tdep.c: New file.
5499
313fb2f6
KB
5500 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5501 (mips-irix-tdep.o, solib-irix.o): New rules.
5502 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5503 solib-irix.o.
5504 * config/mips/irix6.mt (TDEPFILES): Likewise.
5505 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5506
ab2eaf26
KB
55072002-07-26 Kevin Buettner <kevinb@redhat.com>
5508
177e4768 5509 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5510 disabled (via ``#if 0'') includes.
5511
7244546a
KB
55122002-07-26 Kevin Buettner <kevinb@redhat.com>
5513
5514 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5515 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5516 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5517 Add support for the fpscr register.
5518 * rs6000-nat.c (regmap, fetch_inferior_registers)
5519 (store_inferior_registers, fetch_core_registers): Likewise.
5520
dd7be90a
KB
55212002-07-26 Kevin Buettner <kevinb@redhat.com>
5522
5523 * rs6000-nat.c (language.h): Include.
5524 (special_regs): Delete this array.
5525 (regmap): New function.
5526 (fetch_register, store_register): Use regmap() to map gdb
5527 register numbers to ptrace register numbers. Also, use
5528 outputs from regmap() to make decisions regarding type of
5529 ptrace() call to make. In particular, don't compare against
5530 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5531 (fetch_inferior_registers, store_inferior_registers): Where
5532 possible, obtain register numbers from tdep struct. Don't
5533 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5534 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5535 (LAST_UISA_SP_REGNUM): Delete.
5536
11bf77db
KB
55372002-07-25 Kevin Buettner <kevinb@redhat.com>
5538
5539 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5540 (fetch_registers, store_register, fetch_core_registers): Don't
5541 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5542 regcache_collect() as appropriate.
5543 (find_toc_address): Format hex address with local_hex_string().
5544
06afebeb
AC
55452002-07-25 Andrew Cagney <ac131313@redhat.com>
5546
5547 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5548 bfd/elf32-frv.c.
5549
8c554d79
TT
55502002-07-24 Tom Tromey <tromey@redhat.com>
5551
5552 * jv-exp.y: Marked all strings with _().
5553 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5554 internal_error.
5555 (MethodInvocation, CastExpression, parse_number, yyerror,
5556 java_type_from_name, push_expression_name, yylex): Typo fixes.
5557
e4c242d9
DJ
55582002-07-24 Daniel Jacobowitz <drow@mvista.com>
5559
5560 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5561 (tee_file_flush, tee_file_write, tee_file_fputs)
5562 (tee_file_isatty): New.
5563 * ui-file.h (tee_file_new): Add prototype.
5564
ebf56fd3
AS
55652002-07-24 Aidan Skinner <aidan@velvet.net>
5566
5567 * ada-lang.c: Change k&r style function definitions to prototyped
5568 form.
5569 * ada-typeprint.c: Change k&r style function definitions to prototyped
5570 form.
5571 * ada-valprint.c: Change k&r style function definitions to prototyped
5572 form.
5573
7fb623f7
AC
55742002-07-24 Andrew Cagney <cagney@redhat.com>
5575
5576 * README: Remove reference to remote-bug.
5577 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5578 remote-bug.c.
5579 (m88k-nat.o): Delete rule.
5580 (m88k-tdep.o): Delete rule.
5581 (remote-bug.o): Delete rule.
5582 * MAINTAINERS: Mark as obsolete.
5583 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5584 * m88k-tdep.c: Make file obsolete.
5585 * config/m88k/m88k.mh: Ditto.
5586 * config/m88k/delta88v4.mh: Ditto.
5587 * config/m88k/delta88v4.mt: Ditto.
5588 * config/m88k/delta88.mt: Ditto.
5589 * config/m88k/delta88.mh: Ditto.
5590 * remote-bug.c: Ditto.
5591 * config/m88k/tm-delta88.h: Ditto.
5592 * config/m88k/nm-delta88v4.h: Ditto.
5593 * config/m88k/xm-delta88.h: Ditto.
5594 * config/m88k/xm-dgux.h: Ditto.
5595 * config/m88k/tm-m88k.h: Ditto.
5596 * config/m88k/nm-m88k.h: Ditto.
5597 * config/m88k/tm-delta88v4.h: Ditto.
5598 * m88k-nat.c: Ditto.
5599 * cxux-nat.c: Ditto.
5600 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5601 and m88*-*-* obsolete.
5602 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5603 m88*-*-* obsolete.
5604
37611a2b
AC
56052002-07-24 Andrew Cagney <cagney@redhat.com>
5606
5607 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5608 constant. Same for local pointer variables.
5609 (extract_signed_integer): Ditto.
5610 * defs.h (extract_unsigned_integer): Update.
5611 (extract_signed_integer): Update.
5612
1aaa5f99
AC
56132002-07-24 Andrew Cagney <cagney@redhat.com>
5614
5615 * regcache.c (regcache_raw_write): Change buf parameter to a
5616 constant void pointer.
5617 (regcache_raw_read): Change buf parameter to a void pointer.
5618 (legacy_write_register_gen): Change myaddr parameter a constant
5619 void pointer.
5620 (supply_register): Change val parameter to a const void pointer.
5621 * regcache.h (regcache_raw_write): Update declaration.
5622 (regcache_raw_read): Update declaration.
5623 (supply_register): Update declaration.
5624
b4f5539f
TT
56252002-07-24 Tom Tromey <tromey@redhat.com>
5626
5627 * defs.h (gdb_readline_wrapper): Declare.
5628 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5629 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5630 * top.c (gdb_readline_wrapper): New function.
5631 (command_line_input): Use it.
5632
0818c12a
AC
56332002-07-24 Andrew Cagney <cagney@redhat.com>
5634
5635 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5636 regcache_read and regcache_write.
5637 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5638 * regcache.c: Update.
5639 * sh-tdep.c (sh64_push_arguments): Update comment.
5640 (sh_pseudo_register_read): Update.
5641 (sh_pseudo_register_write): Update.
5642 (sh4_register_read): Update.
5643 (sh4_register_write): Update.
5644 (sh64_pseudo_register_read): Update.
5645 (sh64_pseudo_register_write): Update.
5646 (sh64_register_read): Update.
5647 (sh64_register_write): Update.
5648 * i386-tdep.c (i386_extract_return_value): Update.
5649 (i386_extract_struct_value_address): Update.
5650 (i386_extract_return_value): Update.
5651 * blockframe.c (generic_read_register_dummy): Update.
5652 (generic_call_dummy_register_unwind): Update
5653 * infrun.c (write_inferior_status_register): Update.
5654
f7321c06
JB
56552002-07-23 Jim Blandy <jimb@redhat.com>
5656
5657 * parser-defs.h (expression_context_pc): Make this extern.
5658 (Thanks to Michael Snyder.)
5659
2037aebb
AC
56602002-07-23 Andrew Cagney <ac131313@redhat.com>
5661
5662 GDB 5.2.1 released from 5.2 branch.
5663 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5664 * README: Update to mention 5.2.1.
5665
66504d44
MS
56662002-07-23 Mark Salter <msalter@redhat.com>
5667
5668 * remote.c (remote_read_bytes): Fix check for error.
5669
27bae383
KB
56702002-07-22 Kevin Buettner <kevinb@redhat.com>
5671
5672 * aix-thread.c (language.h): Include.
5673 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5674 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5675 Print newlines at end of debug messages.
5676 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5677 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5678
56792002-07-22 Kevin Buettner <kevinb@redhat.com>
5680
5681 * aix-thread.c (ppc-tdep.h): Include.
5682 (special_register_p): New function.
5683 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5684 (store_regs_user_thread): Use register number information from
5685 gdbarch_tdep struct instead of hardcoded offsets relative to
5686 FIRST_UISA_SP_REGNUM.
5687 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5688 special_register_p() instead of using FPLAST_REGNUM and
5689 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5690 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5691 will be MQ's register number.
5692
56932002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5694
5695 * aix-thread.c (ops): Rename to aix_thread_ops.
5696 (base_ops): Rename to base_target.
5697 (ops_attach): Rename to aix_thread_attach.
5698 (ops_detach): Rename to aix_thread_detach.
5699 (ops_resume): Rename to aix_thread_detach.
5700 (ops_wait): Rename to aix_thread_wait.
5701 (ops_kill): Rename to aix_thread_kill.
5702 (init_ops): Rename to init_aix_thread_ops.
5703 (ops_fetch_register): Rename to aix_thread_fetch_register.
5704 (ops_store_register): Rename to aix_thread_store_register.
5705 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5706 (ops_thread_alive): Rename to aix_thread_thread_alive.
5707 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5708 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5709 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5710 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5711 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5712 (store_regs_lib): Rename to store_regs_user_thread.
5713 (store_regs_kern): Rename to store_regs_kernel_thread.
5714
27bae383 57152002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5716
5717 * aix-thread.c (ops_prepare_to_store): Eliminate.
5718 (init_ops): Don't initialize ops.prepare_to_store.
5719 (store_regs_kern): Pre-fetch register buffers from child,
5720 because some registers may not be in the cache. Copy
5721 regs from register cache only if they are cached.
5722 (store_regs_lib): Copy regs from register cache only
5723 if they are cached.
5724 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5725 fill_gprs64): Ditto.
5726
61c5da0b
KB
57272002-07-22 Kevin Buettner <kevinb@redhat.com>
5728
5729 * aix-thread.c (gdb_assert.h): Include.
5730 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5731 register sizes (from register cache) match size of buffer holding
5732 register data.
5733 (fill_sprs32): Change parameter types to match those in the ptrace()
5734 buffer.
5735 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5736 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5737
57382002-07-22 Michael Snyder <msnyder@redhat.com>
5739
5740 * aix-thread.c (supply_sprs64): Cosmetic change.
5741 (supply_sprs32): Cosmetic change.
5742 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5743 (fill_sprs64): Use regcache_collect instead of read_register.
5744 (store_regs_lib): Use regcache_collect instead of
5745 read_register. Use fill_sprs32 instead of fill_sprs64,
5746 if debugging a 32-bit architecture.
5747 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5748 out of the register cache, instead of passing a pointer into
5749 the register cache directly to ptrace. Use regcache_collect
5750 insteaad of read_register.
5751 (ops_prepare_to_store): Use target_read_registers instead
5752 of read_register_bytes.
5753
36479eb1
AS
57542002-07-20 Aidan Skinner <aidan@velvet.net>
5755
5756 * MAINTAINERS: Add self under write after approval.
5757
80ae6ee2
AS
57582002-07-20 Aidan Skinner <aidan@velvet.net>
5759
5760 * ada-tasks.c: Change k&r style function definitions to prototyped
5761 form.
5762
8a8ab2b9
AC
57632002-07-19 Andrew Cagney <ac131313@redhat.com>
5764
5765 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5766 * x86-64-tdep.c: Include "objfiles.h".
5767 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5768 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5769
fb16b900
ML
57702002-07-17 Michal Ludvig <michal@suse.cz>
5771
5772 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5773 (update_context): Initialise cfa variable.
5774
0fe7bf7b
MS
57752002-07-17 Michael Snyder <msnyder@redhat.com>
5776
5777 * aix-thread.c: Shorten some long lines.
5778 Bring comments into line with code spec.
5779
488f131b
JB
57802002-07-18 Joel Brobecker <brobecker@gnat.com>
5781
5782 * infrun.c: Re-indent using gdb_indent.sh.
5783
46c415d2
JB
57842002-07-18 Joel Brobecker <brobecker@gnat.com>
5785
5786 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5787 Leave the indentation temporarily untouched, to minimize the diffs.
5788
cdecafbe
EZ
57892002-07-18 Elena Zannoni <ezannoni@redhat.com>
5790
5791 * stabsread.c: Make os9k sections of the code obsolete,
5792 for real this time.
5793 * stabsread.h: Make os9k sections of the code obsolete.
5794
7b6aa020
ML
57952002-07-18 Michal Ludvig <mludvig@suse.cz>
5796
09ec9b38
ML
5797 * linux-low.c (regsets_store_inferior_registers): Add free()
5798 at the end of a loop to prevent memory leak.
5799 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5800 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5801 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5802 line a comment.
4894ac5d 5803 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5804
233282cd
JB
58052002-07-17 Jim Blandy <jimb@redhat.com>
5806
5807 * macrocmd.c (info_macro_command): Remove newline from error
5808 message.
5809
7b6aa020 58102002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5811
5812 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5813 (sh_gdbarch_init): Use it for sh-dsp.
5814
f7ef9339
KB
58152002-07-16 Kevin Buettner <kevinb@redhat.com>
5816
5817 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5818 64-bit DWARF2 format.
5819
8dd72958
JB
58202002-07-16 Joel Brobecker <brobecker@gnat.com>
5821
5822 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5823 <sys/proc.h> when not available.
5824
a99a9e1b
AC
58252002-07-16 Andrew Cagney <ac131313@redhat.com>
5826
5827 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5828 * stabsread.c: Make os9k sections of the code obsolete.
5829 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5830 * config/i386/i386os9k.mt: Make file obsolete.
5831 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5832 (COMMON_OBS): Remove os9kread.o
5833 (SFILES): Remove os9kread.c.
5834 (os9kread.o, remote-os9k.o): Make target obsolete.
5835 * remote-os9k.c: Make file obsolete.
5836 * os9kread.c: Make file obsolete.
5837 * Makefile.in
5838
7a3085c1
AC
58392002-07-16 Andrew Cagney <ac131313@redhat.com>
5840
5841 * NEWS: Mention that the FR30 has been made obsolete.
5842 * fr30-tdep.c: Make file obsolete.
5843 * config/fr30/tm-fr30.h: Ditto.
5844 * config/fr30/fr30.mt: Ditto.
5845 * configure.tgt: Make fr30-*-elf obsolete.
5846 * MAINTAINERS: Make fr30-elf obsolete.
5847
28a93f5a
PM
58482002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5849
5850 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5851 found is not inside a section.
5852
be006b8b
KB
58532002-07-15 Kevin Buettner <kevinb@redhat.com>
5854
5855 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5856 strerror().
5857 (pdc_realloc): Use xrealloc() instead of realloc().
5858
14fa3751
KB
58592002-07-15 Kevin Buettner <kevinb@redhat.com>
5860
5861 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5862 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5863 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5864 macros.
5865
42cc437f
KB
58662002-07-15 Kevin Buettner <kevinb@redhat.com>
5867
5868 * aix-thread.c (ptrace_check): Eliminate goto.
5869 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5870 problem.
5871
8e2c28d4
KB
58722002-07-15 Kevin Buettner <kevinb@redhat.com>
5873
5874 * aix-thread.c (gdbcmd.h): Include.
5875 (DEBUG, DBG, DBG2, dbg): Eliminate.
5876 (debug_aix_thread): New static global.
5877 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5878 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5879 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5880 invocations to DBG and DBG2 macros to test against
5881 ``debug_aix_thread'' and call fprintf_unfiltered().
5882 (_initialize_aix_thread): Add new command "set debug aix-thread".
5883
30413464
AC
58842002-07-15 Andrew Cagney <ac131313@redhat.com>
5885
5886 From Gerhard Tonn <TON@de.ibm.com>:
5887 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5888 instead of supply_register.
5889
7c43edc1
AC
58902002-07-15 Andrew Cagney <ac131313@redhat.com>
5891
5892 * dwarf2cfi.c: Include "gdb_assert.h".
5893 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5894 non-NULL.
5895 (update_context): Do not use __func__. Add missing ``break''.
5896 (update_context): Do not use __func__.
5897
9364a0ef
EZ
58982002-07-15 Elena Zannoni <ezannoni@redhat.com>
5899
5900 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5901 and its setting. Set gdbarch instruction printing functions
5902 directly. For non-rs6000 case use new function
5903 gdb_print_insn_powerpc.
5904 (gdb_print_insn_powerpc): New function.
5905
3fbeef0b
AC
59062002-07-13 Andrew Cagney <ac131313@redhat.com>
5907
92eb23c5 5908 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5909 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5910 * configure.tgt: Mark d30v-*-* as obsolete.
5911 * d30v-tdep.c: Mark file as obsolete.
5912 * config/d30v/d30v.mt: Ditto.
5913 * config/d30v/tm-d30v.h: Ditto.
5914
aacb1f0a
AS
59152002-07-13 Aidan Skinner <aidan@velvet.net>
5916
5917 * ada-tasks.c (add_task_entry): replace calls to
5918 malloc() with xmalloc
5919 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5920
5921 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5922 ada_finish_decode_line_1, all_sals_for_line
5923 ada_breakpoint_rewrite): replace calls to free() with xfree()
5924
c11d79f2
KB
59252002-07-12 Kevin Buettner <kevinb@redhat.com>
5926
5927 From Nicholas Duffek (with minor changes by Martin Hunt,
5928 Louis Hamilton, and Kevin Buettner):
5929 * aix-thread.c: New file.
5930
8e19ed76
PS
59312002-07-12 Petr Sorfa <petrs@caldera.com>
5932
5933 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5934 complaint for invalid attribute class or form.
5935 (read_func_scope): DW_AT_frame_base
5936 better handling of DW_AT_block*.
5937 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5938 better handling of DW_AT_block*.
5939 (read_common_block): DW_AT_location
5940 better handling of DW_AT_block*.
5941 (read_partial_die): DW_AT_location better handling
5942 of DW_AT_block*.
5943 (new_symbol): DW_AT_external better handling of
5944 DW_AT_block*. Proper initialization of variable
5945 "addr".
5946 (attr_form_is_block): New function that returns true
5947 if the attribute's form is of DW_FORM_block*.
5948
295401f7
DJ
59492002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5950
5951 * valops.c (find_method_list): Remove comment about
5952 removed STATIC_MEMFUNCP argument.
5953 (value_find_oload_method_list): Likewise.
5954
e42dc924
KB
59552002-07-12 Kevin Buettner <kevinb@redhat.com>
5956
5957 From Nicholas Duffek:
5958 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5959 target_new_objfile_hook.
5960
6904b546
KB
59612002-07-12 Kevin Buettner <kevinb@redhat.com>
5962
5963 From Nicholas Duffek:
5964 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5965 csect.
5966
53fe9346
AC
59672002-07-12 Andrew Cagney <cagney@redhat.com>
5968
5969 * MAINTAINERS: Mention --enable-sim-build-warnings.
5970 (m68hc11-elf): Disable sim build warnings.
5971 (m32r-elf): Mark as broken obsolete candidate.
5972 (x86_64-linux-gnu): Mark as buildable with -Werror.
5973 (arm-elf): Change -w to ``,'' which enables warnings but not
5974 -Werror.
5975
af5f3db6
AC
59762002-07-12 Andrew Cagney <ac131313@redhat.com>
5977
5978 * bcache.h: Update copyright.
5979 (struct bstring, struct bcache): Move definition to "bcache.c".
5980 Replaced by opaque declaration.
5981 (bcache_xfree): Replace free_bcache.
5982 (bcache_xmalloc, bcache_memory_used): Declare.
5983
5984 * bcache.c: Update copyright.
5985 (struct bstring, struct bcache): Moved to here from "bcache.h".
5986 Update comments.
5987 (bcache_xmalloc, bcache_memory_used): New functions.
5988 (bcache_xfree): Replace function free_bcache.
5989
5990 * Makefile.in (objfiles.o): Add $(bcache_h).
5991 (objfiles_h): Remove $(bcache_h).
5992 (symfile.o): Add $(bcache_h).
5993
5994 * symmisc.c: Update copyright.
5995 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5996 (print_objfile_statistics): Use bcache_memory_used.
5997
5998 * symfile.c: Include "bcache.h".
5999 (reread_symbols): Use bcache_xfree.
6000 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6001 (add_psymbol_to_list): Pass psymbol_cache by value.
6002 (add_psymbol_with_dem_name_to_list): Ditto.
6003
6004 * objfiles.h: Update copyright.
6005 (struct bcache): Declare opaque. Do not include "bcache.h".
6006 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6007 bcache'' pointers.
6008 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6009
6010 * objfiles.c: Include "bcache.h". Update copyright.
6011 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6012 macro_cache.
6013 (free_objfile): Use bcache_xfree.
6014
444199e7
GS
60152002-07-11 Grace Sainsbury <graces@redhat.com>
6016
6017 * monitor.c (monitor_fetch_register): Make name a constant.
6018 (monitor_store_register): Same.
6019
261397f8
DJ
60202002-07-11 Daniel Jacobowitz <drow@mvista.com>
6021
6022 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6023 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6024 (finish_block) For non-function blocks, hash the symbol table. For
6025 function blocks, mark the symbol table as unhashed.
6026 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6027 (msymbol_hash_iw): Likewise.
6028 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6029 value.
6030 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6031 (lookup_minimal_symbol): Likewise for both.
6032 * symtab.h (struct block): Add `hashtable' flag. Comment the
6033 hashtable.
6034 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6035 (ALL_BLOCK_SYMBOLS): Update.
6036 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6037 (struct symbol): Add `hash_next' pointer.
6038 * symtab.c (lookup_block_symbol): Search using the hash table when
6039 possible.
6040 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6041 (search_symbols, find_addr_symbol): Likewise.
6042
6043 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6044 (read_dst_symtab): Likewise.
6045 * jv-lang.c (get_java_class_symtab): Likewise.
6046 * mdebugread.c: Include "gdb_assert.h".
6047 (shrink_block): Assert that the block being modified is not hashed.
6048 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6049 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6050 symbols.
6051 (dump_symtab): Recognize hashed blocks.
6052 * printcmd.c (print_frame_args): Assert that function blocks do not
6053 have hashed symbol tables.
6054 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6055 (fill_in_ada_prototype, debug_print_block): Likewise.
6056 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6057
6f0eaa01
CV
60582002-07-11 Corinna Vinschen <vinschen@redhat.com>
6059
6060 * stack.c (print_frame): Use result of frame_address_in_block()
6061 instead of fi->pc when evaluating symbols.
6062 (backtrace_command_1): Ditto.
6063
a208b0cb
AC
60642002-07-11 Andrew Cagney <cagney@redhat.com>
6065
6066 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6067 Make static.
6068
6069 * arm-tdep.c (arm_register_name): Make return type constant.
6070
a6b6b089
AC
60712002-07-10 Andrew Cagney <ac131313@redhat.com>
6072
5ae5f592
AC
6073 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6074 prototype.
6075 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6076 * s390-tdep.c (s390_fp_regnum): Ditto.
6077 (s390_read_fp): Ditto.
6078 (s390_pop_frame): Ditto.
6079 (_initialize_s390_tdep): Ditto.
6080 * remote.c (get_remote_state): Ditto.
6081 * procfs.c (mappingflags): Ditto.
6082 * memattr.c (_initialize_mem): Ditto.
6083 * mcore-tdep.c (mcore_pop_frame): Ditto.
6084 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6085 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6086 * language.c (set_case_str): Ditto.
6087 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6088 * frv-tdep.c (new_variant): Ditto.
6089 (frv_stopped_data_address): Ditto.
6090 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6091 (context_alloc): Ditto.
6092 (frame_state_alloc): Ditto.
6093 (unwind_tmp_obstack_init): Ditto.
6094 (unwind_tmp_obstack_free): Ditto.
6095 (cfi_read_fp): Ditto.
6096 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6097 (cris_pop_frame): Ditto.
6098 * c-lang.c (scanning_macro_expansion): Ditto.
6099 (finished_macro_expansion): Ditto.
6100 (c_preprocess_and_parse): Ditto.
6101 * gdbarch.sh: Ditto.
6102 * gdbarch.h, gdbarch.c: Regenerate.
6103 * config/mn10200/tm-mn10200.h: Adjust indentation.
6104 * target.c: Adjust indentation.
6105 * symtab.h: Adjust indentation.
6106 * stabsread.h: Adjust indentation.
6107 * remote-es.c: Adjust indentation.
6108 * os9kread.c: Adjust indentation.
6109
61102002-07-10 Andrew Cagney <ac131313@redhat.com>
6111
a6b6b089
AC
6112 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6113 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6114
a1789893
GS
61152002-07-10 Grace Sainsbury <graces@redhat.com>
6116
6117 * NEWS: Mention m68k, mcore multi-arching.
6118 * MAINTAINERS: Change status of m68k, mcore to reflect
6119 multi-arching.
6120
02f0d45d
DJ
61212002-07-10 Daniel Jacobowitz <drow@mvista.com>
6122
6123 * valops.c (find_overload_match): Free oload_syms.
6124
f15f768e
JB
61252002-07-09 Joel Brobecker <brobecker@gnat.com>
6126
6127 Define HAVE_SYS_PROC_H if sys/proc.h exists
6128 * configure.in: Add check for sys/proc.h
6129 * config.in: Regenerate.
6130 * configure: Regenerate.
6131
902a7139
GS
61322002-07-09 Grace Sainsbury <graces@redhat.com>
6133
6134 * config/m68k/tm-m68k.h: Remove macros wrapped in
6135 #if !GDB_MULTI_ARCH.
6136
a534e424
AC
61372002-07-08 Andrew Cagney <ac131313@redhat.com>
6138
6139 * config.in, configure: Regenerate.
6140
9b94f7bf
MK
61412002-07-08 Mark Kettenis <kettenis@gnu.org>
6142
6143 * dwarf2cfi.c: Include "gcore.h".
6144 (execute_stack_op): Fix implementation of the
6145 DW_OP_deref and DW_OP_deref_size operators by letting do their
6146 lookup in the target.
6147
1d34db41
MK
61482002-07-07 Mark Kettenis <kettenis@gnu.org>
6149
6150 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6151 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6152 tdep->sc_sp_offset.
6153
79d5b63a
DJ
61542002-07-05 Daniel Jacobowitz <drow@mvista.com>
6155
6156 Fix PR gdb/595, gdb/602
6157 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6158 Don't call value_cast, just read the vtable pointer; update comments
6159 to match.
6160
3bb912e8
GS
61612002-07-05 Grace Sainsbury <graces@redhat.com>
6162
6163 * config/mcore/tm-mcore.h: Remove file.
6164 * config/mcore/mcore.mt: Remove definition of TM_FILE
6165 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6166
ca39387d
MK
61672002-07-05 Mark Kettenis <kettenis@gnu.org>
6168
6169 * i386bsd-tdep.c: Include "gdb_string.h".
6170
efdc1108
GS
61712002-07-04 Grace Sainsbury <graces@redhat.com>
6172
6173 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6174 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6175 mcore-tdep.
6176 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6177 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6178 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6179 (RETVAL_REGNUM): Move macros from tm-mcore.h
6180 (mcore_reg_struct_has_addr): New function.
6181 (mcore_gdbarch_init): Added initializations for the macros removed
6182 from tm-mcore.h.
6183
bb21884d
MK
61842002-07-04 Mark Kettenis <kettenis@gnu.org>
6185
6186 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6187 traditonal string branding within the ELF header.
6188
228c6d41
DJ
61892002-07-04 Daniel Jacobowitz <drow@mvista.com>
6190
6191 * symtab.c (remove_params): New function.
6192 (make_symbol_overload_list): Use it instead of cplus_demangle.
6193 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6194
2404952e
MK
61952002-07-04 Mark Kettenis <kettenis@gnu.org>
6196
e5e4acad
MK
6197 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6198
baadce09
MK
6199 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6200 New variables.
6201 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6202 and tdep->sigtramp_end.
6203 * i386obsd-nat.c: New file.
6204 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6205
2404952e
MK
6206 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6207 Don't call get_current_frame().
6208
9b4f1ba7
PM
62092002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6210
6211 * i386-nat.c (child_post_startup_inferior): New function
6212 calling i386_cleanup_dregs if
6213 I386_USE_GENERIC_WATCHPOINTS is defined.
6214 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6215 conditional to acknowledge that i386-nat.c has its
6216 own child_post_startup_inferior function.
6217
c0d1d883
MK
62182002-07-04 Mark Kettenis <kettenis@gnu.org>
6219
00f8375e
MK
6220 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6221 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6222 instead of MAX_REGISTER_RAW_SIZE.
6223 (i386_extract_return_value, i386_extract_struct_value_address):
6224 Convert to use regcache.
6225 (i386_gdbarch_init): Set max_register_raw_size and
6226 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6227 Set extract_return_value and extract_struct_value_address instead
6228 of their deprecated variants.
6229
c0d1d883
MK
6230 Convert i386 target to generic dummy frames.
6231 * i386-tdep.c: Include "symfile.h".
6232 (i386_frameless_signal_p): Consider a function to be frameless if
6233 the pc points at the first instruction of the function.
6234 (i386_frame_chain): Handle (generic) call dummies.
6235 (i386_frame_saved_pc): Likewise.
6236 (i386_frame_init_saved_regs): Remove code dealing with call
6237 dummies on the stack.
6238 (i386_push_dummy_frame): Removed.
6239 (i386_call_dummy_words): Removed.
6240 (i386_fix_call_dummy): Removed.
6241 (i386_push_return_address): New function.
6242 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6243 parameter, and don't call get_current_frame.
6244 (i386_pop_frame): New function.
6245 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6246 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6247 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6248 call_dummy_length to 0, set call_dummy_words to NULL, set
6249 sizeof_call_dummy_words to 0, set fix_call_dummy to
6250 generic_fix_call_dummy, set pc_in_call_dummy to
6251 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6252 generic_push_dummy_frame, set push_return_address to
6253 i386_push_return_address and set frame_chain_valid to
6254 generic_file_frame_chain_valid.
6255
049ee0e4
AC
62562002-07-03 Andrew Cagney <ac131313@redhat.com>
6257
6258 * gdbarch.sh (struct regcache): Add opaque declaration.
6259 (EXTRACT_RETURN_VALUE): New architecture method.
6260 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6261 * gdbarch.h, gdbarch.c: Regenerate.
6262 * arch-utils.c (legacy_extract_return_value): New function.
6263 * arch-utils.h (legacy_extract_return_value): Declare.
6264 * values.c (value_being_returned): Re-enable code handling
6265 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6266 deprecated_grub_regcache_for_registers call to block handling
6267 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6268 (EXTRACT_RETURN_VALUE): Do not define.
6269
4e0d9804
GS
62702002-07-03 Grace Sainsbury <graces@redhat.com>
6271
6272 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6273 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6274 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6275 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6276 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6277 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6278 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6279 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6280 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6281 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6282 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6283 argument so the function fits the prototype in the architecture
6284 vector.
6285 (mcore_pop_frame): Remove argument so the function fits the
6286 prototype. Use get_current_frame instead of the argument.
6287 (mcore_push_arguments): Change type of struct_return so the
6288 function can be used in the architecture vector.
6289 (mcore_store_struct_return): Add.
6290 (mcore_frame_init_saved_regs): Add.
6291 (mcore_gdbarch_init): Add function calls to replace the macros
6292 removed from tm-mcore.h
6293
36160dc4
AC
62942002-07-03 Andrew Cagney <ac131313@redhat.com>
6295
6296 * infcmd.c (print_return_value): Remove compatibility code calling
6297 deprecated_grub_regcache_for_registers.
6298
6299 * values.c: Include "regcache.h".
6300 (value_being_returned): Update. Use
6301 deprecated_grub_regcache_for_registers to extract the register
6302 buffer address.
6303 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6304 ``struct regcache''.
6305 * Makefile.in (values.o): Add dependency on $(regcache_h).
6306
6307 * inferior.h (run_stack_dummy): Change type of second parameter to
6308 a ``struct regcache''.
6309 * valops.c (hand_function_call): Change type of retbuf to ``struct
6310 regcache''. Allocate using regcache_xmalloc, clean using
6311 make_cleanup_regcache_xfree.
6312 * infcmd.c (run_stack_dummy): Update. Use
6313 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6314
6315 * regcache.c (do_regcache_xfree): New function.
6316 (make_cleanup_regcache_xfree): New function.
6317 * regcache.h (make_cleanup_regcache_xfree): Declare.
6318
e64d9b3d
MH
63192002-07-03 Martin M. Hunt <hunt@redhat.com>
6320
4dd79c29
MH
6321 * event-top.c (command_line_handler): Don't read past
6322 beginning of buffer.
e64d9b3d 6323
4dd79c29
MH
63242002-07-03 Martin M. Hunt <hunt@redhat.com>
6325
e64d9b3d
MH
6326 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6327 struct frame_id.
6328 (varobj_create): Store frame_id for root.
6329 (varobj_gen_name): Use xasprintf.
6330 (varobj_update): Save and restore frame using get_frame_id() and
6331 frame_find_by_id().
6332 (create_child): Use xasprintf.
6333 (new_root_variable): Initialize frame_id.
6334 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6335 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6336 to prevent memory leak.
6337
26e6c56a
AC
63382002-07-03 Andrew Cagney <ac131313@redhat.com>
6339
6340 * valops.c (hand_function_call): Move declaration of retbuf to
6341 start of function, allocate using malloc, add a cleanup but before
6342 the inf_status cleanup, cleanup the buffer. Rename local variable
6343 old_chain to inf_status_cleanup.
6344
f436dd25
MH
63452002-07-03 Martin M. Hunt <hunt@redhat.com>
6346
6347 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6348
6349 * cli/cli-decode.c (cmd_func_p): New function.
6350 (cmd_func): New function.
6351
6352 * command.h: Add cmd_func() and cmd_func_p().
6353
4cfe2084
GS
63542002-07-03 Grace Sainsbury <graces@redhat.com>
6355
6356 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6357 (REGISTER_SIZE): Remove.
6358 (MAX_REGISTER_RAW_SIZE): Remove.
6359 (REGISTER_VIRTUAL_TYPE): Remove.
6360 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6361 (REGISTER_NAME): Remove.
6362 (USE_GENERIC_DUMMY_FRAMES): Remove.
6363 (CALL_DUMMY): Remove.
6364 (CALL_DUMMY_START_OFFSET): Remove.
6365 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6366 (CALL_DUMMY_LOCATION): Remove.
6367 (FIX_CALL_DUMMY): Remove.
6368 (CALL_DUMMY_ADDRESS): Remove.
6369 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6370 (SAVE_DUMMY_FRAME_TOS): Remove.
6371 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6372 (mcore_register_virtual_type): New function.
6373 (mcore_register_byte): New function.
6374 (mcore_register_size): New function.
6375 (mcore_register_name): New function.
6376 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6377 macros removed from tm-mcore.h.
6378 (mcore_dump_tdep): Add.
6379 (_initialize_mcore_tdep): Add gdbarch_register call.
6380
4fd667e9
MK
63812002-07-03 Mark Kettenis <kettenis@gnu.org>
6382
6383 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6384 frameless_look_for_prologue, such that we actually call this
6385 function.
6386
42f99ac2
JB
63872002-07-02 Joel Brobecker <brobecker@gnat.com>
6388
6389 * frame.h (frame_address_in_block): New function.
6390
6391 * blockframe.c (frame_address_in_block): New function extracted
6392 from get_frame_block().
6393 (get_frame_block): Use frame_address_in_block().
6394 (block_innermost_frame): Use frame_address_in_block() to match
6395 the frame pc address against the block boundaries rather than
6396 the frame pc directly. This prevents a failure when a frame pc
6397 is actually a return-address pointing immediately after the end
6398 of the given block.
6399
103a1597 64002002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6401
6402 * MAINTAINERS: Add self under write after approval.
6403
64042002-07-02 Grace Sainsbury <graces@redhat.com>
6405
103a1597
GS
6406 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6407 used in architecture vector. The default is
6408 m68k_local_breakpoint_from_pc.
6409 (m68k_local_breakpoint_from_pc): Add.
6410 (enum): Add register numbers from tm-m68k.h.
6411 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6412 vector.
6413 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6414 GDB_MULTI_ARCH_PARTIAL.
6415 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6416 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6417 m68k-tdep.c.
6418 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6419 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6420 to enum in m68k-tdep.c
6421
7a5a0534
JB
64222002-07-02 Joel Brobecker <brobecker@gnat.com>
6423
6424 * solib-osf.c (open_map): Compute the list of shared libraries
6425 loaded by the inferior, rather than the list of libraries loaded
6426 by GDB itself. Otherwise, GDB ends up reading the symbols from
6427 the wrong shared libraries...
6428
6f558d74
MK
64292002-07-02 Mark Kettenis <kettenis@gnu.org>
6430
b7d15bf7
MK
6431 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6432 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6433 macros.
6434 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6435 Remove functions.
6436 (FRAMELESS_SIGNAL): Remove function.
6437 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6438 i386_linux_saved_pc_after_call): Removed.
6439 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6440 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6441 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6442
6bff26de
MK
6443 * i386-tdep.c (i386_frameless_signal_p): New function.
6444 (i386_frame_chain): Deal with frameless signals.
6445 (i386_sigtramp_saved_sp): New function.
6446 (i386_frame_saved_pc): Deal with frameless signals.
6447 (i386_saved_pc_after_call): Make sure the correct value is
6448 returned just after entry into a sigtramp.
6449 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6450 i386fbsd4_sc_sp_offset): New variables.
6451 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6452 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6453 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6454 similiar to what we already did for sc_pc_offset.
6455 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6456 tdep->sc_sp_offset.
6457
6f558d74
MK
6458 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6459
145564b7
ML
64602002-07-02 Michal Ludvig <mludvig@suse.cz>
6461
6462 * config/i386/tm-x86-64linux.h: New.
6463 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6464 definitions.
6465 * config/i386/nm-x86-64.h: Rename to ...
6466 * config/i386/nm-x86-64linux.h: ... this one.
6467 * config/i386/x86-64linux.mh: Reflect the above change.
6468
3a1e71e3
MK
64692002-07-01 Mark Kettenis <kettenis@gnu.org>
6470
21d0e8a4
MK
6471 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6472 with sigcontext_addr. Add sc_sp_offset.
6473 (i386bsd_sigtramp_saved_pc): Remove prototype.
6474 (i386bsd_sicontext_addr): Add prototype.
6475 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6476 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6477 (i386_svr4_sigtramp_saved_pc): Removed.
6478 (i386_svr4_sigcontext_addr): New function.
6479 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6480 Initialize tdep->sigcontext_addr instead. Initialize
6481 tdep->sc_pc_offset and tdep->sc_sp_offset.
6482 (i386_gdbarch_init): Likewise.
6483 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6484 any more.
6485 (i386bsd_sigtramp_saved_pc): Remove function.
6486 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6487 Initialize tdep->sigcontext_addr instead. Initialize
6488 tdep->sc_pc_offset.
6489 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6490 of tdep->sigtramp_saved_pc.
6491 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6492 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6493 instead.
6494
3a1e71e3
MK
6495 * i386-tdep.c (i386_frameless_function_invocation,
6496 i386_frame_num_args, i386_frame_init_saved_regs,
6497 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6498 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6499 i386_extract_return_value, i386_store_return_value,
6500 i386_extract_struct_value_address, i386_register_virtual_type,
6501 i386_register_convertible, i386_register_convert_to_virtual,
6502 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6503 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6504 static.
6505
52e9098c
MK
65062002-07-01 Mark Kettenis <kettenis@gnu.org>
6507
77b13a25
MK
6508 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6509
52e9098c
MK
6510 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6511 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6512 this macro. Include "value.h".
6513
1b372fff
AS
65142002-06-30 Aidan Skinner <aidan@velvet.net>
6515
6516 * ada-exp.tab.c: remove as it's a generated file
6517 * ada-lex.c: remove as it's a generated file
6518
9c5045b5
MK
65192002-06-30 Mark Kettenis <kettenis@gnu.org>
6520
4a93c5bb
MK
6521 * config/i386/tm-i386.h (struct frame_info, struct
6522 frame_saved_regs, struct value, struct type): Remove forward
6523 declarations.
6524
322d4fe0
MK
6525 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6526 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6527 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6528 (FILL_FPXREGSET): Define.
6529
fdd8263d
MK
6530 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6531
482e577b
MK
6532 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6533 i[3456]86-*-netbsd* case.
6534 * config/i386/tm-obsd.h: Removed.
6535 * config/i386/obsd.mt: Removed.
6536 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6537 core-aout.o.
6538 (MH_CFLAGS): Add -DYYDEBUG=0.
6539
6916549a
MK
6540 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6541 i386nbsd_sc_pc_offset on OpenBSD too.
6542
9c5045b5
MK
6543 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6544 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6545 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6546 define.
6547 * i386bsd-tdep.c: Include "arch-utils.h".
6548 (i386bsd_aout_in_solib_call_trampoline): New function.
6549 (i386bsd_init_abi): Set in_solib_call_trampoline to
6550 i386bsd_aout_in_solib_call_trampoline.
6551 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6552 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6553
aa84d1bb
AC
65542002-06-28 Andrew Cagney <ac131313@redhat.com>
6555
6556 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6557 (struct obstack, struct bcache): Add opaque declarations.
6558 * Makefile.in (macrotab_h): Update
6559
b4d83933
AC
65602002-06-28 Andrew Cagney <ac131313@redhat.com>
6561
6562 * blockframe.c (generic_find_dummy_frame): Change return type to
6563 ``struct regcache''.
6564 (struct dummy_frame): Replace field ``registers'' with regcache, a
6565 struct regcache object.
6566 (generic_find_dummy_frame): Update.
6567 (generic_push_dummy_frame): Update. Use regcache_xfree,
6568 regcache_xmalloc and regcache_cpy.
6569 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6570 regcache_xfree.
6571 (deprecated_generic_find_dummy_frame): Update.
6572 (generic_read_register_dummy): Update. Use
6573 regcache_read_as_address.
6574 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6575 (generic_get_saved_register): Update. Use regcache_read.
6576
08c0b5bc
AC
65772002-06-28 Andrew Cagney <ac131313@redhat.com>
6578
6579 * Makefile.in (objfiles_h): Add $(bcache_h).
6580 * objfiles.h: Include "bcache.h".
6581
6582 * Makefile.in (symtab_h): Remove $(bcache_h).
6583 * symtab.h: Do not include "bcache.h".
6584
1f89801a
AC
65852002-06-28 Andrew Cagney <ac131313@redhat.com>
6586
6587 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6588 generic_func_frame_chain_valid.
6589
b9644b58
DB
65902002-06-28 David O'Brien <obrien@FreeBSD.org>
6591
6592 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6593 * config/i386/tm-fbsd.h: Likewise.
6594
dd486634
AC
65952002-06-28 Andrew Cagney <ac131313@redhat.com>
6596
6597 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6598 generic_unwind_get_saved_register.
6599
0b434a00
AC
66002002-06-27 Andrew Cagney <ac131313@redhat.com>
6601
6602 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6603 * regcache.c (supply_register): Add missing argument to
6604 register_buffer call.
6605
f30e5a77
AC
66062002-06-27 Andrew Cagney <ac131313@redhat.com>
6607
6608 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6609 Solaris /bin/grep does not not like it. From Peter Schauer.
6610
9f064c95
TT
66112002-06-26 Tom Tromey <tromey@redhat.com>
6612
6613 * command.h (add_setshow_cmd): Declare.
6614 (add_setshow_cmd_full): Declare.
6615 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6616 returns void. Use add_setshow_cmd_full.
6617 (add_setshow_cmd_full): New function.
6618 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6619 (add_setshow_boolean_cmd): Likewise.
6620
099c7589
JT
66212002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6622
6623 * config/vax/tm-vax.h: Protect from multiple inclusion.
6624 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6625 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6626 * config/vax/tm-vaxbsd.h: ...here. New file.
6627 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6628
1d049c5e
JT
66292002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6630
6631 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6632 (BELIEVE_PCC_PROMOTION): Remove.
6633 (AP_REGNUM): Move to...
6634 * config/vax/nm-vax.h: ...here.
6635 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6636 (vax_breakpoint_from_pc): New function.
6637 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6638 and gdbarch_believe_pcc_promotion.
6639
4791e091
JT
66402002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6641
6642 * Makefile.in (vax_tdep_h): Define.
6643 (vax-tdep.o): Use $(vax_tdep_h).
6644 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6645 (vax_dump_tdep): New function.
6646 (_initialize_vax_tdep): Register vax_dump_tdep.
6647 * vax-tdep.h: Include osabi.h.
6648 (struct gdbarch_tdep): New.
6649
da130f98
AC
66502002-06-26 Andrew Cagney <cagney@redhat.com>
6651
6652 * frame.h (deprecated_generic_find_dummy_frame): Rename
6653 generic_find_dummy_frame.
6654 * blockframe.c (generic_find_dummy_frame): Make static.
6655 (deprecated_generic_find_dummy_frame): New function.
6656 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6657 generic_find_dummy_frame with deprecated_find_dummy_frame.
6658 (sh64_nofp_frame_init_saved_regs): Ditto.
6659 (sh_fp_frame_init_saved_regs): Ditto.
6660 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6661 (s390_frame_chain): Ditto.
6662 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6663
6300c360
GS
66642002-06-26 Grace Sainsbury <graces@redhat.com>
6665
6666 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6667 gdbarch vector are at the top.
6668 (NUM_REGS): Remove.
6669 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6670 (FRAME_ARGS_ADDRESS): Remove.
6671 (FRAME_LOCALS_ADDRESS): Remove.
6672 (FRAME_NUM_ARGS): Remove.
6673 (FRAME_ARGS_SKIP): Remove.
6674 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6675 (m68k_gdbarch_init): Add gdbarch initializations for macros
6676 undefined in tm-m68k.h
6677
1c617db8
GS
66782002-06-26 Grace Sainsbury <graces@redhat.com>
6679
6680 * monitor.h: Add the function regname to monitor_ops
6681 structure. This way NUM_REGS does not have to be a constant.
6682 * monitor.c (monitor_fetch_register): Added support for regname
6683 function. The function is called if the array regnames is NULL.
6684 (monitor_store_register): Same.
da130f98
AC
6685 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6686 regnames array.
1c617db8
GS
6687 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6688 cpu32bug_cmds.regname to point to new function.
6689 * abug-rom.c (abug_regname): Same as above.
6690 (init_abug_cmds): Same.
6691 * dbug-rom.c (dbug_regname): Same as above.
6692 (init_dbug_cmds): Same.
6693 * remote-est.c (est_regname): Same.
6694 (init_est_cmds): Same.
6695 * rom68k-rom.c (rom68k_regname): Same.
6696 (init_rom68k_cmds): Same.
6697
ea9365bb
TT
66982002-06-25 Tom Tromey <tromey@redhat.com>
6699
6700 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6701
72cec141
AC
67022002-06-25 Andrew Cagney <cagney@redhat.com>
6703
6704 * infrun.c (stop_registers): Change variable's type to ``struct
6705 regcache'''.
6706 (xmalloc_inferior_status): Delete function.
6707 (free_inferior_status): Delete function.
6708 (normal_stop): Use regcache_cpy.
6709 (struct inferior_status): Change type of fields ``stop_registers''
6710 and ``registers'' to ``struct regcache''.
6711 (write_inferior_status_register): Use regcache_write.
6712 (save_inferior_status): Instead of calling
6713 xmalloc_inferior_status, allocate the inf_status buffer directly.
6714 Use regcache_dup_no_passthrough and regcache_dup to save the
6715 buffers.
6716 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6717 Replace the stop_registers regcache instead of overriding it. Use
6718 regcache_xfree. Instead of calling free_inferior_status, xfree
6719 the buffer directly.
6720 (discard_inferior_status): Use regcache_xfree. Instead of calling
6721 free_inferior_status, xfree the buffer directly.
6722 (build_infrun): Use regcache_xmalloc.
6723 (_initialize_infrun): Delete redundant call to build_infrun.
6724
6725 * Makefile.in (infcmd.o): Add $(regcache_h).
6726
6727 * infcmd.c: Include "regcache.h".
6728 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6729 obtain the address of `stop_registers' register buffer.
6730 (print_return_value): Ditto.
6731
6732 * inferior.h (struct regcache): Add opaque declaration.
6733 (stop_registers): Change variable's declared type to ``struct
6734 regcache''.
6735
defc6f8c
TT
67362002-06-24 Tom Tromey <tromey@redhat.com>
6737
c0e624e7
TT
6738 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6739 * target.c (initialize_targets): Fixed typo in
6740 trust-readonly-sections `show' documentation.
6741
defc6f8c
TT
6742 * main.c: Marked all strings with _().
6743
2b236d82
DH
67442002-06-24 Don Howard <dhoward@redhat.com>
6745
6746 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6747 that means max CORE_ADDR+1.
6748 (lookup_mem_region): Ditto.
6749 (mem_info_command): Ditto.
6750
942dc0e9
GS
67512002-06-24 Grace Sainsbury <graces@redhat.com>
6752
6753 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6754 (REGISTER_BYTES_OK): Remove.
6755 (REGISTER_BYTES): Remove.
6756 (STORE_STRUCT_RETURN): Remove.
6757 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6758 (STORE_RETURN_VALUE): Remove.
6759 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6760 (FRAME_CHAIN): Remove.
6761 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6762 (FRAME_SAVED_PC): Remove.
6763 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6764 (m68k_store_struct_return): Add.
6765 (m68k_deprecated_extract_return_value): Add.
6766 (m68k_deprecated_extract_struct_value_address): Add.
6767 (m68k_store_return_value): Add.
6768 (m68k_frame_chain): Add.
6769 (m68k_frameless_function_invocation): Add.
6770 (m68k_frame_saved_pc): Add.
6771 (m68k_gdbarch_init): added set_gdbarch calls for new
6772 functions and deleted macros.
6773
03c30d4d
TT
67742002-06-23 Tom Tromey <tromey@redhat.com>
6775
6776 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6777 (ALLDEPFILES): Likewise.
6778 (udiheaders): Removed.
6779 (udip2soc.o): Likewise.
6780 (udi2go32.o): Likewise.
6781 (udr.o): Likewise.
6782 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6783
37e71372
AC
67842002-06-22 Andrew Cagney <ac131313@redhat.com>
6785
06a6ac57
AC
6786 * infrun.c (_initialize_infrun): Delete unnecessary call to
6787 build_infrun.
6788
37e71372
AC
6789 * regcache.h: Update comments describing the regcache_cpy family
6790 of functions.
6791 (regcache_save, regcache_restore): Delete declaration.
6792 (regcache_save_no_passthrough): Delete declaration.
6793 (regcache_restore_no_passthrough): Delete declaration.
6794 * regcache.c (regcache_save): Delete function.
6795 (regcache_save_no_passthrough): Delete function.
6796 (regcache_restore): Delete function.
6797 (regcache_restore_no_passthrough): Delete function.
6798
78f6d055
AC
67992002-06-21 Andrew Cagney <ac131313@redhat.com>
6800
6801 * config/m68k/tm-m68k.h: Fix typo.
6802 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6803 (m68k_frame_init_saved_regs): Declare.
6804
78b119cb
JB
68052002-06-21 Jim Blandy <jimb@redhat.com>
6806
6807 Remove some vestiges of Harris 88k support.
6808 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6809 register numbering quirk.
6810 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6811 odd symbols occurring in Harris 88k ELF targets.
6812
0fbb3da7
TT
68132002-06-21 Tom Tromey <tromey@redhat.com>
6814
6815 * gdb_locale.h: New file.
6816 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6817 (defs_h): Added gdb_locale.h.
6818 * configure, config.in: Rebuilt.
6819 * configure.in (PACKAGE): Define.
6820 * defs.h: Include gdb_locale.h.
6821 * main.c (captured_main): Call setlocale, bindtextdomain,
6822 textdomain.
6823
456f8b9d
DB
68242002-06-21 Dave Brolley <brolley@redhat.com>
6825
6826 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6827 * config/frv/frv.mt: New file.
6828 * config/frv/tm-frv.h: New file.
6829 * configure.tgt: Support frv-*-*.
6830 * Makefile.in (frv-tdep.o): New target.
6831 * frv-tdep.c: New file.
6832 * NEWS: Mention frv.
6833
cdd463f9
DB
68342002-06-21 Dave Brolley <brolley@redhat.com>
6835
6836 * MAINTAINERS: Add self to "Write After Approval" list.
6837
5d3ed2e3
GS
68382002-06-21 Grace Sainsbury <graces@redhat.com>
6839
6840 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6841 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6842 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6843 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6844 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6845
6846 * m68k-tdep.c: Include arch-utils.h
6847 (m68k_register_raw_size): Add.
6848 (m68k_register_virtual_size): Add.
6849 (m68k_register_virtual_type): Add.
6850 (m68k_register_name): Add.
6851 (m68k_stack_align): Add.
6852 (m68k_register_byte): Add.
6853 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6854 tm-m68k.h.
6855
7f8e7424
GS
68562002-06-21 Grace Sainsbury <graces@redhat.com>
6857
a2c6a6d5 6858 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6859 m68k_find_saved_regs.
6860 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6861 references to it with frame->saved_regs.
7f8e7424
GS
6862 (m68k_gdbarch_init): Added function calls to initialize the
6863 gdbarch structure.
a2c6a6d5
GS
6864 (m68k_fix_call_dummy): Add.
6865 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6866 (CALL_DUMMY): Remove.
6867 (CALL_DUMMY_LENGTH): Remove.
6868 (CALL_DUMMY_START_OFFSET): Remove.
6869 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6870 (FIX_CALL_DUMMY): Remove.
6871 (PUSH_DUMMY_FRAME): Remove.
6872 (POP_FRAME): Remove.
7f8e7424 6873
f461f5cf
PM
68742002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6875
6876 * parse.c (parse_fprintf): New function used to avoid calls to
6877 fprintf in bison parser generated debug code.
6878 * parser-defs.h: Declaration of new parse_fprintf function.
6879 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6880 Set YYDEBUG to 1 by default.
6881 Set YYFPRINTF as parse_fprintf.
6882
7f0c12ed
ML
68832002-06-21 Michal Ludvig <mludvig@suse.cz>
6884
6885 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6886 encoding anymore.
6887 (pointer_encoding, enum ptr_encoding): New.
6888 (execute_cfa_program): Take care about pointer encoding.
6889 (dwarf2_build_frame_info): Only call parse_frame_info for
6890 .debug_frame and .eh_frame.
6891 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6892 fixed augmentation handling, added relative addressing,
6893 ignore duplicate FDEs. Added comments.
19d833a2 6894 * dwarf2cfi.c: Reindented.
7f0c12ed 6895
87c4a039
EZ
68962002-06-20 Elena Zannoni <ezannoni@redhat.com>
6897
6898 * event-top.c (command_handler): Don't use space_at_cmd_start
6899 unless there is sbrk() on the host. Assign time and space data
6900 to union fields of the appropriate length.
6901
1cf877ad
ML
69022002-06-20 Michal Ludvig <mludvig@suse.cz>
6903
6904 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6905 x86_64_register_name. Return type changed to 'const char *'.
6906 (x86_64_register_name2nr): Rename to x86_64_register_number.
6907 (x86_64_gdbarch_init): Update to reflect the change.
6908 * x86-64-tdep.h: Ditto.
6909 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6910 (supply_fpregset): Ditto.
6911
3fadccb3
AC
69122002-06-19 Andrew Cagney <cagney@redhat.com>
6913
6914 * regcache.h: Update copyright.
6915 (struct regcache, struct gdbarch): Add opaque declarations.
6916 (current_regcache): Declare global variable.
6917 (regcache_read, regcache_write): Add gdbarch parameter.
6918 (regcache_save, regcache_save_no_passthrough)
6919 (regcache_restore, regcache_restore_no_passthrough)
6920 (regcache_dup, regcache_dup_no_passthrough)
6921 (regcache_cpy, regcache_cpy_no_passthrough)
6922 (deprecated_grub_regcache_for_registers)
6923 (deprecated_grub_regcache_for_register_valid)
6924 (regcache_valid_p): Add function declarations.
6925
6926 * regcache.c: Update copyright.
6927 (regcache_descr_handle): New global variable.
6928 (struct regcache_descr): Define.
6929 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6930 (regcache_descr, xfree_regcache_descr): New functions.
6931 (struct regcache): Define.
6932 (regcache_xmalloc, regcache_xfree): New functions.
6933 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6934 (regcache_dup, regcache_dup_no_passthrough): New functions.
6935 (regcache_valid_p, regcache_read_as_address): New functions.
6936 (deprecated_grub_regcache_for_registers): New function.
6937 (deprecated_grub_regcache_for_register_valid): New function.
6938 (current_regcache): New global variable.
6939 (register_buffer): Add regcache parameter. Update calls.
6940 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6941 (read_register_gen, write_register_gen): Update register_buffer
6942 call. Test for legacy_p instead of gdbarch_register_read_p or
6943 gdbarch_register_write_p.
6944 (regcache_collect): Update register_buffer call.
6945 (build_regcache): Rewrite. Use deprecated grub functions.
6946 (regcache_save, regcache_save_no_passthrough): New functions.
6947 (regcache_restore, regcache_restore_no_passthrough): New
6948 functions.
6949 (_initialize_regcache): Create the regcache_data_handle. Swap
6950 current_regcache global variable.
6951
6952 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6953 parameter to regcache_read and regcache_write calls.
6954 (sh4_register_read): Ditto.
6955 (sh64_pseudo_register_read): Ditto.
6956 (sh64_register_read): Ditto.
6957 (sh_pseudo_register_write): Ditto.
6958 (sh4_register_write): Ditto.
6959 (sh64_pseudo_register_write): Ditto.
6960 (sh64_register_write): Ditto.
6961
6962 * defs.h (XCALLOC): Define.
6963
152d9db6
GS
69642002-06-19 Grace Sainsbury <graces@redhat.com>
6965
6966 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6967 * m68k-tdep.c (m68k_gdbarch_init): Added.
6968 (m68k_dump_tdep): Added.
6969
170911c7
DJ
69702002-06-19 Daniel Jacobowitz <drow@mvista.com>
6971
6972 * ada-lang.c (fill_in_ada_prototype): Update comment.
6973
2e4ebe70
DJ
69742002-06-19 Daniel Jacobowitz <drow@mvista.com>
6975
6976 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6977 MIPS_ABI_LAST.
6978 (mips_abi_string, mips_abi_strings): New.
6979 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6980 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6981 tdep->mips_abi_string. Honor mips_abi_string. Default to
6982 O32 if no ABI is found.
6983 (mips_dump_tdep): Use mips_abi_strings.
6984 (mips_abi_update): New function.
6985 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6986 ``set mips abi'' and ``show mips abi''. Check the size of
6987 mips_abi_strings.
6988
16775908
AC
69892002-06-19 Andrew Cagney <cagney@redhat.com>
6990
6991 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6992 constant.
6993
5051bfa4 69942002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6995
5051bfa4
JB
6996 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6997 current frame using only the first stack size adjustment. All
6998 subsequent size adjustments are not considered to be part of
6999 the "static" part of the current frame.
7000 Compute the address of the saved registers relative to the
7001 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7002 in use in this frame.
7003
56468235
DH
70042002-06-18 Don Howard <dhoward@redhat.com>
7005
7006 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7007 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7008 suggesting this solution.
7009
0b624158
AC
70102002-06-18 Andrew Cagney <ac131313@redhat.com>
7011
7012 * config/romp/xm-rtbsd.h: Delete file.
7013 * config/romp/rtbsd.mh: Delete file.
7014
221ea385
KS
70152002-06-18 Keith Seitz <keiths@redhat.com>
7016
7017 * breakpoint.c (condition_command): Post breakpoint_modify
7018 when a condition is added to an existing breakpoint.
7019 (commands_command): Likewise for commands.
7020 (set_ignore_count): Likewise for ignore counts.
7021 If no tty, do not simply return, still need to send event
7022 notification.
7023 (ignore_command): Only print a newline if the command came
7024 from a tty.
7025 Don't call breakpoints_changed, since this is now properly
7026 handled by set_ignore_count.
7027
5402eed1
AC
70282002-06-18 Andrew Cagney <cagney@redhat.com>
7029
7030 * MAINTAINERS: Note that cris-elf target can be compiled with
7031 -Werror.
7032 * cris-tdep.c (cris_register_name): Make return type constant.
7033 (cris_breakpoint_from_pc): Ditto.
7034
cc22880b
ML
70352002-06-18 Michal Ludvig <mludvig@suse.cz>
7036
7037 * frame.h (struct frame_info): Change type of context to
7038 'struct context'.
7039
fa88f677
AC
70402002-06-17 Andrew Cagney <cagney@redhat.com>
7041
7042 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7043 pointer.
7044 * gdbarch.h, gdbarch.c: Regenerate.
7045 * config/mips/tm-mips.h (mips_register_name): Update.
7046 * i386-tdep.h (i386_register_name): Update.
7047 * mips-tdep.c (mips_register_name): Update
7048 * alpha-tdep.c (alpha_register_name): Update.
7049 * arch-utils.c (legacy_register_name): Update.
7050 * arch-utils.h (legacy_register_name): Update.
7051 * avr-tdep.c (avr_register_name): Update.
7052 * ia64-tdep.c (ia64_register_name): Update.
7053 * i386-tdep.c (i386_register_name): Update.
7054 * sparc-tdep.c (sparc32_register_name): Update.
7055 (sparc64_register_name): Update.
7056 (sparclite_register_name): Update.
7057 (sparclet_register_name): Update.
7058 * sh-tdep.c (sh_generic_register_name): Update.
7059 (sh_sh_register_name): Update.
7060 (sh_sh3_register_name): Update.
7061 (sh_sh3e_register_name): Update.
7062 (sh_sh_dsp_register_name): Update.
7063 (sh_sh3_dsp_register_name): Update.
7064 (sh_sh4_register_name): Update.
7065 (sh_sh64_register_name): Update.
7066 * s390-tdep.c (s390_register_name): Update.
7067 * rs6000-tdep.c (rs6000_register_name): Update.
7068 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7069 (ns32k_register_name_32382): Update.
7070 * d10v-tdep.c (d10v_ts2_register_name): Update.
7071 (d10v_ts3_register_name): Update.
7072 * xstormy16-tdep.c (xstormy16_register_name): Update.
7073 * vax-tdep.c (vax_register_name): Update.
7074 * v850-tdep.c (v850_register_name): Update.
7075 * m68hc11-tdep.c (m68hc11_register_name): Update.
7076 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7077 (am33_register_name): Update.
7078
ea1e7ef6
GS
70792002-06-17 Grace Sainsbury <graces@redhat.com>
7080
7081 * m68k-tdep.c: Reindented.
7082
9b02dd1b
AC
70832002-06-17 Andrew Cagney <ac131313@redhat.com>
7084
7085 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7086 list of predefined types.
7087
8758dec1
MK
70882002-06-16 Mark Kettenis <kettenis@gnu.org>
7089
b6197528
MK
7090 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7091 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7092 REGISTER_CONVERT_TO_RAW): Remove defines.
7093 (i386_register_virtual_type, i386_register_convertible,
7094 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7095 Remove prototypes.
7096 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7097 macros mentioned above.
7098
82b47e62
MK
7099 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7100 (i386lynx_saved_pc_after_call): Remove prototype.
7101 * i386ly-tdep.c: Include "i386-tdep.h".
7102 (i386lynx_saved_pc_after_call): Make static. Use
7103 read_memory_nobpt instead of read_memory. Use
7104 read_memory_unsigned_integer instead of read_memory_integer.
7105 (i386lynx_init_abi): New function.
7106 (i386lynx_coff_osabi_sniffer): New function.
7107 (_initialize_i386bsd_tdep): New function.
7108
8758dec1
MK
7109 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7110 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7111 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7112 (i386_fix_call_dummy): Remove prototype.
7113 * i386-tdep.c (i386_call_dummy_words): New variable.
7114 (i386_gdbarch_init): Adjust for removal of the
7115 macros mentioned above.
7116
e9e68a56
AC
71172002-06-15 Andrew Cagney <ac131313@redhat.com>
7118
7119 * command.h (add_setshow_auto_boolean_cmd): Replace
7120 add_set_auto_boolean_cmd.
7121 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7122 add_set_auto_boolean_cmd.
7123 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7124 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7125 mask-address'' command.
7126 (show_mask_address): Add cmd parameter.
7127 * remote.c (add_packet_config_cmd): Update. Change type of
7128 set_func and show_func to cmd_sfunc_ftype.
7129 (_initialize_remote): Update `set remote Z-packet'
7130 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7131 (show_remote_protocol_e_packet_cmd): Ditto.
7132 (show_remote_protocol_E_packet_cmd): Ditto.
7133 (show_remote_protocol_P_packet_cmd): Ditto.
7134 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7135 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7136 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7137 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7138 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7139 (show_remote_protocol_Z_packet_cmd): Ditto.
7140 (show_remote_protocol_binary_download_cmd): Ditto.
7141 (show_remote_cmd): Pass NULL to all of above.
7142
fc08ec52
MK
71432002-06-15 Mark Kettenis <kettenis@gnu.org>
7144
7145 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7146 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7147 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7148 POP_FRAME): Remove defines.
7149 (i386_push_arguments, i386_store_struct_return,
7150 i386_extract_return_value, i386_store_return_value,
7151 i386_extract_struct_value_address, i386_push_dummy_frame,
7152 i386_pop_frame): Renove prototypes.
7153 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7154 macros mentioned above.
7155
e707bbc2
AC
71562002-06-15 Andrew Cagney <ac131313@redhat.com>
7157
7158 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7159 add_set_boolean_cmd.
7160 (add_setshow_cmd): New function.
7161 * command.h (add_setshow_boolean_cmd): Replace
7162 add_set_boolean_cmd.
7163 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7164 and ``set rdiromatzero''.
7165 * maint.c (_initialize_maint_cmds): Update commented out code.
7166 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7167 * target.c (initialize_targets): Update `set
7168 trust-readonly-sections'.
7169 * remote.c (_initialize_remote): Update `set remotebreak'.
7170
42fdc8df
MK
71712002-06-15 Mark Kettenis <kettenis@gnu.org>
7172
93924b6b
MK
7173 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7174 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7175 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7176 fit into multi-arch framework.
7177 (i386_breakpoint_from_pc): New function.
7178 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7179 above.
7180
42fdc8df
MK
7181 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7182 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7183 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7184 (i386_frameless_function_invocation, i386_frame_num_args,
7185 i386_frame_init_saved_regs): Remove prototypes.
7186 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7187 macros mentioned above.
7188
9773a94b
AC
71892002-06-15 Andrew Cagney <ac131313@redhat.com>
7190
7191 * cli/cli-decode.c (set_cmd_cfunc): Update.
7192 (set_cmd_sfunc): Update.
7193 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7194 (set_cmd_sfunc, set_cmd_cfunc): Update.
7195 * cli/cli-decode.h: Update.
7196
6e157172
MK
71972002-06-15 Mark Kettenis <kettenis@gnu.org>
7198
7199 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7200 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7201
7f19b9a2
AC
72022002-06-15 Andrew Cagney <ac131313@redhat.com>
7203
7204 * defs.h (auto_boolean): Declare enum.
7205 * command.h (cmd_auto_boolean): Delete enum.
7206 * mips-tdep.c (mask_address_var): Update.
7207 (mips_mask_address_p): Update.
7208 (show_mask_address): Update.
7209 * remote.c (struct packet_config): Update.
7210 (update_packet_config): Update.
7211 (show_packet_config_cmd): Update.
7212 (packet_ok): Update.
7213 (add_packet_config_cmd): Update.
7214 (_initialize_remote):
7215 * command.h: Update.
7216 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7217 (do_setshow_command): Update.
7218 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7219 * cli/cli-decode.h: Update.
7220
1cf88de5
MK
72212002-06-15 Mark Kettenis <kettenis@gnu.org>
7222
22ba8cf2
MK
7223 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7224 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7225 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7226 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7227 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7228 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7229
762c5349
MK
7230 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7231 list of DJGPP COFF targets.
7232
091198bb
MK
7233 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7234 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7235 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7236 (FP0_REGNUM): Remove define.
7237 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7238 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7239 (i386_register_virtual_size): Remove protoype.
7240 * i386-tdep.c (i386_register_virtual_size): Removed.
7241 (i386_extract_return_value, i386_store_return_value): Use
7242 FP0_REGNUM instead of NUM_FREGS to determine whether the
7243 floating-point registers are available.
7244 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7245 Adjust for removal of macros mentioned above.
7246
72472002-06-15 Mark Kettenis <kettenis@gnu.org>
7248
fcc9bf01
MK
7249 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7250 comments.
7251 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7252 Remove prototypes.
7253 (supply_gregset, fill_gregset): Remove use of register keyword and
7254 remove declaration for regmap. Use I386_NUM_GREGS instead of
7255 NUM_REGS and NUM_FREGS.
7256 (FPREGSET_FSAVE_OFFSET): Remove.
7257 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7258 NUM_FREGS to determine whether the floating-point registers are
7259 available.
7260
65e78234
MK
7261 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7262 gnu_store_registers): Replace usage of NUM_GREGS with
7263 I386_NUM_GREGS.
7264
98df6387
MK
7265 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7266 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7267 usage of NUM_GREGS with I386_NUM_GREGS.
7268
099a9414
MK
7269 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7270
57976e88
MK
7271 * i386bsd-nat.c: Include "i386-tdep.h".
7272 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7273 I386_NUM_GREGS.
7274
b335f4a6
MK
7275 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7276 and associated comment. They no longer make any sense, since we
7277 don't use this file anymore on Linux.
7278
1cf88de5
MK
7279 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7280 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7281 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7282 elements in these arrays.
7283 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7284 MAX_NUM_REGS.
7285
daa66587
MK
72862002-06-15 Mark Kettenis <kettenis@gnu.org>
7287
7288 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7289 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7290
26e9b323
AC
72912002-06-14 Andrew Cagney <cagney@redhat.com>
7292
7293 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7294 EXTRACT_RETURN_VALUE.
7295 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7296 EXTRACT_STRUCT_VALUE_ADDRESS.
7297 * gdbarch.h, gdbarch.c: Regenerate.
7298
7299 * values.c (value_being_returned): Handle
7300 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7301 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7302
7303 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7304 * arm-tdep.c (arm_gdbarch_init): Update.
7305 * avr-tdep.c (avr_gdbarch_init): Update.
7306 * cris-tdep.c (cris_gdbarch_init): Update.
7307 * d10v-tdep.c (d10v_gdbarch_init): Update.
7308 * ia64-tdep.c (ia64_gdbarch_init): Update.
7309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7310 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7311 * s390-tdep.c (s390_gdbarch_init): Update.
7312 * sh-tdep.c (sh_gdbarch_init): Update.
7313 * s390-tdep.c (s390_gdbarch_init): Update.
7314 * sparc-tdep.c (sparc_gdbarch_init): Update.
7315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7316 * v850-tdep.c (v850_gdbarch_init): Update.
7317 * vax-tdep.c (vax_gdbarch_init): Update.
7318 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7320
7321 * config/arc/tm-arc.h: Update.
7322 * config/d30v/tm-d30v.h: Update.
7323 * config/fr30/tm-fr30.h: Update.
7324 * config/h8300/tm-h8300.h: Update.
7325 * config/h8500/tm-h8500.h: Update.
7326 * config/i386/tm-i386.h: Update.
7327 * config/i386/tm-ptx.h: Update.
7328 * config/i386/tm-symmetry.h: Update.
7329 * config/i960/tm-i960.h: Update.
7330 * config/m32r/tm-m32r.h: Update.
7331 * config/m68k/tm-delta68.h: Update.
7332 * config/m68k/tm-linux.h: Update.
7333 * config/m68k/tm-m68k.h: Update.
7334 * config/m88k/tm-m88k.h: Update.
7335 * config/mcore/tm-mcore.h: Update.
7336 * config/mips/tm-mips.h: Update.
7337 * config/mn10200/tm-mn10200.h: Update.
7338 * config/pa/tm-hppa.h: Update.
7339 * config/pa/tm-hppa64.h: Update.
7340 * config/sparc/tm-sp64.h: Update.
7341 * config/sparc/tm-sparc.h: Update.
7342 * config/sparc/tm-sparclet.h: Update.
7343 * config/z8k/tm-z8k.h: Update.
7344
5179e78f
AC
73452002-06-14 Andrew Cagney <cagney@redhat.com>
7346
7347 * Makefile.in (i386_linux_tdep_h): Define.
7348 (i386_tdep_h, i387_tdep_h): Define.
7349 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7350 $(i386_tdep_h) and $(i387_tdep_h).
7351 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7352
8201327c
MK
73532002-06-14 Mark Kettenis <kettenis@gnu.org>
7354
edf393ac
MK
7355 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7356 Already covered by the default.
7357
896fb97d
MK
7358 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7359 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7360 (i386_gdbarch_init): Initialize long_double_format and long_double
7361 bit.
7362
8201327c
MK
7363 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7364 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7365 Move these to ...
7366 * config/i386/i386sol2.mh: ... here.
7367 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7368 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7369 (SIGCONTEXT_PC_OFFSET): Remove define.
7370 (IN_SIGTRAMP): Remove define.
7371 * i386-sol2-tdep.c: New file.
7372
7373 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7374 * config/i386/tm-i386nw.h: Removed.
7375
7376 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7377 USE_STRUCT_CONVENTION): Remove defines.
7378 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7379 (get_longjmp_target): Remove prototype.
7380 (IN_SIGTRAMP): Remove define.
7381 (i386bsd_in_sigtramp): Remove prototype.
7382 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7383 function. Update comment accordingly
7384 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7385 (FRAME_SAVED_PC): Remove define.
7386 (i386bsd_frame_saved_pc): Remove prototype.
7387 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7388 GET_LONGJMP_TARGET): Remove defines.
7389 (get_longjmp_target): Remove prototype.
7390 (IN_SIGTRAMP): Remove define.
7391 (i386bsd_in_sigtramp): Remove prototype.
7392 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7393 function. Update comment accordingly
7394 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7395 (FRAME_SAVED_PC): Remove define.
7396 (i386bsd_frame_saved_pc): Remove prototype.
7397 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7398 Remove prototype.
7399 (USE_STRUCT_CONVENTION): Remove prototype.
7400 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7401 declaration.
7402 (_initialize_i386bsd_nat): Revise logic to determine some
7403 constants at compile time when compiling a native GDB. Warn if
7404 things don't match up with what we expect.
7405 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7406 Remove variables.
7407 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7408 to use date stored in `struct gdbarch_tdep'.
7409 (i386bsd_sigcontext_offset): Remove varaible.
7410 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7411 stored in `struct gdbarch_tdep'.
7412 (i386bsd_frame_saved_pc): Make static.
7413 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7414 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7415 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7416 i386fbsd4_sc_pc_offset): New variables.
7417 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7418 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7419 functions.
7420 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7421 functions.
7422 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7423 Modify the value of i386fbsd_sigtramp_start and
7424 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7425 i386fbsd_sigtramp_end.
7426 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7427 function.
7428
7429 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7430 define to i386-linux-tdep.h.
7431 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7432 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7433 defines.
7434 (i386_linux_register_name, i386_linux_register_byte,
7435 i386_linux_register_raw_size): Remove prototypes.
7436 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7437 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7438 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7439 TARGET_WRITE_PC): Remove defines.
7440 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7441 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7442 i386_linux_write_pc): Remove prototypes.
7443 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7444 (get_longjmp_target): Remove prototype.
7445 * i386-linux-tdep.h: New file.
7446 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7447 * i386-linux-tdep.c: Include "i386-tdep.h" and
7448 "i386-linux-tdep.h".
7449 (i386_linux_register_name, i386_linux_register_byte,
7450 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7451 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7452 Make static.
7453 (i386_linux_init_abi): New function.
7454 (_initialize_i386_linux_tdep): New function.
7455
7456 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7457 (i386_saved_pc_after_call): Remove prototype.
7458 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7459 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7460 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7461 (i386_register_name, i386_stab_reg_to_regnum,
7462 i386_dwarf_reg_to_regnum): Remove prototypes.
7463 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7464 SIZEOF_SSE_REGS): Remove defines.
7465 (REGISTER_BYTES): Remove define.
7466 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7467 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7468 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7469 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7470 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7471 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7472 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7473 (get_longjmp_target): Remove prototype.
7474 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7475 (sigtramp_saved_pc): Remove define.
7476 (i386v4_sigtramp_saved_pc): Remove prototype.
7477 * config/i386/tm-go32.h (FRAME_CHAIN,
7478 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7479 (i386go32_frame_saved_pc): Remove prototype.
7480 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7481 (get_longjmp_target): Remove prototype.
7482 * i386-tdep.h: Include "osabi.h".
7483 (enum i386_abi): Removed.
7484 (enum struct_return): New enum.
7485 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7486 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7487 sc_pc_offset members.
7488 (i386_gdbarch_register_os_abi): Remove prototype.
7489 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7490 I386_SSE_NUM_REGS): New defines.
7491 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7492 I386_SSE_SIZEOF_REGS): New defines.
7493 (i386_register_name, i386_register_byte, i386_register_raw_size):
7494 New prototypes.
7495 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7496 (i386bsd_sigtramp_saved_pc): New prototype.
7497 * i386-tdep.c: Don't include "elf-bfd.h".
7498 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7499 i386_frame_chain, i386_saved_pc_after_call): Make static.
7500 (i386_frame_saved_pc): Rewrite to call architecture dependent
7501 function to deal with signal handlers. Make static.
7502 (i386go32_frame_saved_pc): Removed.
7503 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7504 Removed.
7505 (i386_get_longjmp_target): New function.
7506 (default_struct_convention, pcc_struct_convention,
7507 reg_struct_convention, valid_conventions, struct_convention): New
7508 variables.
7509 (i386_use_struct_convention): New function.
7510 (i386v4_sigtramp_saved_pc): Renamed to
7511 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7512 (i386_pc_in_sigtramp): New function.
7513 (i386_abi_names): Removed.
7514 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7515 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7516 Removed.
7517 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7518 i386_gdbarch_register_os_abi): Removed.
7519 (struct i386_abi_handler): Removed.
7520 (i386_abi_handler_list): Removed.
7521 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7522 functions.
7523 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7524 i386_nw_init_abi): New functions.
7525 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7526 Use set_gdbarch_xxx() calls instead of relying on macros for a
7527 number of calls.
7528 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7529 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7530 Register the various architecture variants defined in this file.
7531
ad2f7632
DJ
75322002-06-14 Daniel Jacobowitz <drow@mvista.com>
7533
7534 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7535 (struct main_type): Remove arg_types member. Update comments for
7536 struct field.
7537 (TYPE_ARG_TYPES): Remove.
7538 (TYPE_FN_FIELD_ARGS): Update.
7539 (smash_to_method_type): Update prototype.
7540
7541 * c-typeprint.c (cp_type_print_method_args): Take method type
7542 instead of argument list. Use new argument layout. Simplify.
7543 (c_type_print_args): Use new argument layout. Simplify.
7544 (c_type_print_base): Update call to cp_type_print_method_args.
7545 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7546 argument; use die->type instead. Update call to
7547 smash_to_method_type.
7548 (read_structure_scope): Update call to dwarf2_add_member_fn.
7549 * gdbtypes.c (allocate_stub_method): Update comment.
7550 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7551 Use new argument layout.
7552 (check_stub_method): Use new argument layout. Don't count
7553 void as an argument.
7554 (print_arg_types): Update comments. Use new argument layout.
7555 (recursive_dump_type): Don't print arg_types member.
7556 * hpread.c (hpread_read_struct_type): Use new argument layout.
7557 (fixup_class_method_type): Likewise.
7558 (hpread_type_lookup): Likewise.
7559 * stabsread.c (read_type): Update calls to read_args and
7560 smash_to_method_type.
7561 (read_args): Use new argument layout. Simplify.
7562 * valops.c (typecmp): Use new argument layout. Update parameters
7563 and comments. Simplify.
7564 (hand_function_call): Use new argument layout.
7565 (search_struct_method): Update call to typecmp.
7566 (find_overload_match): Use new argument layout.
7567
6da02953
DJ
75682002-06-13 Daniel Jacobowitz <drow@mvista.com>
7569
7570 * NEWS: Mention multithreaded debug support for gdbserver.
7571
519b2366
DJ
75722002-06-13 Daniel Jacobowitz <drow@mvista.com>
7573
7574 * MAINTAINERS: Mention NEWS.
7575
6c0d6680
DJ
75762002-06-13 Daniel Jacobowitz <drow@mvista.com>
7577
7578 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7579 (struct mips_objfile_private, compare_pdr_entries): New.
7580 (non_heuristic_proc_desc): Read the ".pdr" section if it
7581 is present.
7582
6529d2dd
AC
75832002-06-12 Andrew Cagney <ac131313@redhat.com>
7584
7585 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7586 (arm_debug): New static variable.
7587 (_initialize_arm_tdep): Add ``set debug arm'' command.
7588
26216b98
AC
75892002-06-12 Andrew Cagney <ac131313@redhat.com>
7590
7591 * Makefile.in (sim_arm_h): Define.
7592 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7593 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7594 (arm_register_sim_regno): New function, map an internal REGNUM
7595 onto a simulator register number.
7596 (arm_gdbarch_init): Set register_sim_regno.
7597
814b3ba0
AH
75982002-06-09 Aldy Hernandez <aldyh@redhat.com>
7599
7600 * MAINTAINERS: Add self.
7601
475b0867
JB
76022002-06-11 Jim Blandy <jimb@redhat.com>
7603
919d772c
JB
7604 * source.c (source_info): Mention whether the symtab has
7605 information about preprocessor macros.
7606
475b0867
JB
7607 Call the command `info macro', not `show macro'.
7608 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7609 Fix error message.
7610 (_initialize_macrocmd): Register `info_macro_command' in
7611 `infolist', not `showlist'.
7612
9e364162
DJ
76132002-06-11 Daniel Jacobowitz <drow@mvista.com>
7614
7615 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7616 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7617 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7618 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7619 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7620 unconditionally.
7621 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7622 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7623 (_initialize_mips_tdep): Remove dead code.
7624 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7625 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7626 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7627 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7628 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7629 MIPS_LAST_FP_ARG_REGNUM): Remove.
7630
23aa4c72
ML
76312002-06-11 Michal Ludvig <mludvig@suse.cz>
7632
7633 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7634 (unwind_tmp_obstack_free, parse_frame_info)
7635 (update_context, cfi_read_fp, cfi_write_fp)
7636 (cfi_frame_chain, cfi_init_extra_frame_info)
7637 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7638 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7639
70eb15a4
CV
76402002-06-11 Corinna Vinschen <vinschen@redhat.com>
7641
7642 * v850-tdep.c (v850_type_is_scalar): New function.
7643 (v850_use_struct_convention): Match current gcc implementation
7644 as close as possible.
7645 (v850_push_arguments): Fix stack_offset handling. Don't write
7646 struct_addr into register. This is done by v850_store_struct_return.
7647 (v850_extract_return_value): Care for structs.
7648 (v850_store_return_value): Ditto.
7649 (v850_store_struct_return): Actually write address.
7650
482a4d06
ML
76512002-06-11 Michal Ludvig <mludvig@suse.cz>
7652
7653 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7654 without debug information too.
7655
d855c300
AC
76562002-06-10 Andrew Cagney <ac131313@redhat.com>
7657
7658 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7659 Make multi-arch pure.
7660 * gdbarch.h, gdbarch.c: Re-generate.
7661 * arm-tdep.c (arm_print_float_info): Update.
7662 * arch-utils.h (default_print_float_info): Update.
7663 * arch-utils.c (default_print_float_info): Update.
7664 * infcmd.c (float_info): Update call.
7665
dd12a101
AC
76662002-06-10 Andrew Cagney <ac131313@redhat.com>
7667
7668 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7669 the front of the initialize list.
7670
101dcfbe
AC
76712002-06-10 Andrew Cagney <ac131313@redhat.com>
7672
7673 * infrun.c (struct inferior_status): Replace fields
7674 selected_frame_address and selected_level with field
7675 selected_frame_id.
7676 (save_inferior_status): Update. Use get_frame_id.
7677 (struct restore_selected_frame_args): Delete.
7678 (restore_selected_frame): Update. Use frame_find_by_id.
7679 (restore_inferior_status): Update.
7680
7681 * breakpoint.h (struct breakpoint): Change type of
7682 watchpoint_frame to frame_id.
7683 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7684 call to get_current_frame.
7685 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7686 get_current_frame.
7687 (watchpoint_check): Use frame_find_by_id.
7688
7689 * frame.h (record_selected_frame): Delete declaration.
7690 * stack.c (record_selected_frame): Delete function.
7691
7692 * frame.h (struct frame_id): Define.
7693 (get_frame_id): Declare.
7694 (frame_find_by_id): Declare.
7695 * frame.c (frame_find_by_id): New function.
7696 (get_frame_id): New function.
7697
304270b6
AV
76982002-06-10 Andrey Volkov <avolkov@transas.com>
7699
7700 * ser-e7kpc.c: Fix duplicated define and call of
7701 _initialize_ser_e7000pc
7702
2f2cf184
DJ
77032002-06-09 Daniel Jacobowitz <drow@mvista.com>
7704
7705 * signals/signals.c (target_signal_from_host): Fix #ifdef
7706 SIGRTMIN case.
7707 (do_target_signal_to_host): Likewise.
7708
caaa3122
DJ
77092002-06-09 Daniel Jacobowitz <drow@mvista.com>
7710
7711 * mips-tdep.c (mips_find_abi_section): New function.
7712 (mips_gdbarch_init): Call it.
7713
6ac5df3a
MK
77142002-06-09 Mark Kettenis <kettenis@gnu.org>
7715
7716 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7717 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7718 after Andrew's 2002-06-08 gdbarch change.
7719
82ea117a
MK
77202002-06-09 Mark Kettenis <kettenis@gnu.org>
7721
7722 * i386-linux-nat.c (suppy_gregset): Don't supply
7723 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7724 register cache.
7725 (fill_gregset): Don't fetch it under the same circumstances.
7726
3c25f8c7
AC
77272002-06-09 Andrew Cagney <cagney@redhat.com>
7728
7729 * Makefile.in (callback_h): Define.
7730 (remote_sim_h): Update path to remote-sim.h.
7731 (remote-rdp.o): Add $(callback_h).
7732 (remote-sim.o): Use $(callback_h).
7733 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7734 * remote-rdp.c: Include "gdb/callback.h".
7735
1029b7fa
MK
77362002-06-09 Mark Kettenis <kettenis@gnu.org>
7737
7738 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7739 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7740
616675d3
AC
77412002-06-08 Andrew Cagney <ac131313@redhat.com>
7742
a3efda28
AC
7743 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7744 * rdi-share/serpardr.c: Ditto.
7745 * rdi-share/unixcomm.c: Ditto.
7746 * rdi-share/serdrv.c: Ditto.
7747 * rdi-share/hostchan.h: Ditto.
7748 * rdi-share/hostchan.c: Ditto.
7749 * rdi-share/host.h: Ditto.
7750 * rdi-share/devsw.c: Ditto.
7751
c5f10366
AC
7752 * objfiles.h: Change type of obj_private to void pointer.
7753 * pa64solib.c: Update copyright. Don't include "assert.h", use
7754 strcmp instead of STREQ, use LONGEST, do not use PTR
7755 * somsolib.c: Ditto.
7756
616675d3
AC
7757 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7758 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7759 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7760
e4b415d9
AC
77612002-06-08 Andrew Cagney <ac131313@redhat.com>
7762
7763 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7764 (default_get_saved_register): Delete function.
7765 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7766 generic_unwind_get_saved_register.
7767 * gdbarch.h, gdbarch.c: Re-generate.
7768
ca0d0b52
AC
77692002-06-08 Andrew Cagney <ac131313@redhat.com>
7770
7771 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7772 generic_func_frame_chain_valid.
7773 * gdbarch.h, gdbarch.c: Re-generate.
7774 * blockframe.c (generic_func_frame_chain_valid): Only check
7775 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7776 passing FP to PC_IN_CALL_DUMMY.
7777 Fix PR gdb/360.
7778
76860b5f
AC
77792002-06-08 Andrew Cagney <ac131313@redhat.com>
7780
7781 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7782 (register_gdbarch_data): Initialize init_p.
7783 (gdbarch_data): Initialize data pointer using the init function.
7784 (init_gdbarch_data): Delete function.
7785 (gdbarch_update_p): Update.
7786 (initialize_non_multiarch): Update.
7787 (struct gdbarch): Add field initialized_p.
7788 * gdbarch.h, gdbarch.c: Re-generate.
7789
8dda9770
ML
77902002-06-07 Michal Ludvig <mludvig@suse.cz>
7791
7792 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7793 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7794 better do the things actually here.
7795 * x86-64-tdep.c (x86_64_register_name2nr): New.
7796 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7797 (x86_64_gdbarch_init): Respect the above change.
7798 * x86-64-tdep.h (x86_64_register_name2nr)
7799 (x86_64_register_nr2name): Add prototypes.
7800 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7801
3d79a47c
MS
78022002-06-06 Michael Snyder <msnyder@redhat.com>
7803
7bd91a28
MS
7804 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7805 Delete extra braces and re-indent.
7806 (d10v_store_return_value): Char return values
3d79a47c
MS
7807 must be shifted over by one byte in R0.
7808 (d10v_extract_return_value): Delete extra braces, re-indent.
7809
095a4c96
EZ
78102002-06-06 Elena Zannoni <ezannoni@redhat.com>
7811
7812 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7813 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7814 (d10v_integer_to_address): Rewrite.
7815 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7816 the d10v specific functions which take care of converting to the
7817 correct space.
7818
e8a77ca4
EZ
78192002-06-06 Elena Zannoni <ezannoni@redhat.com>
7820
7821 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7822 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7823
4f2e4a4f
AC
78242002-06-02 Andrew Cagney <ac131313@redhat.com>
7825
7826 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7827 includes.
7828 * config/tm-linux.h: Ditto.
7829 * config/alpha/tm-alphalinux.h: Ditto.
7830 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7831 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7832 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7833 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7834 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7835 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7836 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7837 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7838 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7839 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7840 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7841 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7842 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7843 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7844 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7845 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7846 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7847 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7848 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7849 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7850 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7851 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7852 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7853 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7854 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7855 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7856 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7857 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7858 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7859 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7860 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7861 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7862 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7863 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7864 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7865 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7866 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7867
ae2ab2ce
AS
78682002-05-04 Aidan Skinner <aidan@velvet.net>
7869
7870 * ada-exp.tab.c: New file
7871 * ada-exp.y: New file
7872 * ada-lang.c: New file
7873 * ada-lang.h: New file
7874 * ada-lex.c: New file
7875 * ada-lex.l: New file
7876 * ada-tasks.c: New file
7877 * ada-typeprint.c: New file
7878 * ada-valprint.c: New file
7879
0ddd0135
JT
78802002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7881
7882 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7883 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7884
750fbacc
JT
78852002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7886
7887 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7888 insetead of ppc-linux-tdep.o.
7889 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7890 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7891
df94e18a
AC
78922002-06-02 Andrew Cagney <ac131313@redhat.com>
7893
7894 2002-05-07 Christian Groessler <chris@groessler.org>
7895 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7896 bit register contents for little endian hosts.
7897
1a38ab75
AC
78982002-06-01 Andrew Cagney <ac131313@redhat.com>
7899
7900 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7901 any maintainer.
7902
8b1632ac
AC
79032002-06-01 Andrew Cagney <ac131313@redhat.com>
7904
7905 * gdbarch.h: Regenerate.
7906
627054c8
AC
79072002-06-01 Andrew Cagney <ac131313@redhat.com>
7908
7909 * MAINTAINERS: Add everyone to write-after-approval list.
7910
4f460812
AC
79112002-06-01 Andrew Cagney <ac131313@redhat.com>
7912
7913 * stack.c (frame_info): Use frame_register_unwind instead of
7914 saved_regs. Mention when the SP is on the stack or in a register.
7915
7916 * frame.h (frame_register_unwind_ftype): Define. Document.
7917 (struct frame_info): Add field register_unwind and
7918 register_unwind_cache.
7919 (frame_register_unwind): Declare.
7920 (generic_unwind_get_saved_register): Declare.
7921
7922 * frame.c (frame_register_unwind): New function.
7923 (generic_unwind_get_saved_register): New function.
7924
7925 * blockframe.c (generic_call_dummy_register_unwind): New function.
7926 (frame_saved_regs_register_unwind): New function.
7927 (set_unwind_by_pc): New function.
7928 (create_new_frame): New function.
7929 (get_prev_frame): New function.
7930
de888f76
AC
79312002-05-30 Andrew Cagney <ac131313@redhat.com>
7932
7933 * a29k-share/: Delete directory.
7934 * remote-vx29k.c: Delete file.
7935
2f2c3626
JT
79362002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7937
7938 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7939 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7940
9ce5c36a
JT
79412002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7942
7943 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7944 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7945 (sparc64nbsd-nat.o)
7946 (sparcnbsd-nat.o)
7947 (sparcnbsd-tdep.o): New dependency lists.
7948 * NEWS: Note new UltraSPARC NetBSD native configuration.
7949 * configure.host (sparc64-*-netbsd*): New host.
7950 * configure.tgt (sparc-*-netbsdelf*)
7951 (sparc-*-netbsd*): Set gdb_target to nbsd.
7952 (sparc64-*-netbsd*): New target.
7953 * sparc64nbsd-nat.c: New file.
7954 * sparcnbsd-nat.c: New file.
7955 * sparcnbsd-tdep.c: New file.
7956 * sparcnbsd-tdep.h: New file.
7957 * config/sparc/nbsd.mt: New file.
7958 * config/sparc/nbsd64.mh: New file.
7959 * config/sparc/nbsd64.mt: New file.
7960 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7961 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7962 (HOST_IPC): Remove.
7963 * config/sparc/nbsdaout.mt: Remove.
7964 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7965 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7966 (HOST_IPC): Remove.
7967 * config/sparc/nbsdelf.mt: Remove.
7968 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7969 sparc-nat.c compatiblity defines.
7970 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7971 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7972 * config/sparc/tm-nbsd64.h: New file.
7973 * config/sparc/tm-nbsdaout.h: Remove.
7974 * config/sparc/xm-nbsd.h: Remove.
7975
ef3cf062
JT
79762002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7977
7978 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7979 * sparc-tdep.c: Include osabi.h.
7980 (gdbarch_tdep): Add osabi member.
7981 (_initialize_sparc_tdep): Use gdbarch_register.
7982 (sparc_gdbarch_init): Use generic OS ABI framework.
7983 (sparc_dump_tdep): New function.
7984
ee8ff470
KB
79852002-05-30 Kevin Buettner <kevinb@redhat.com>
7986
7987 * corefile.c (do_captured_read_memory_integer): Return non-zero
7988 result.
7989 (safe_read_memory_integer): Copy result of memory read when
7990 status is non-zero. Also, add comments.
7991
7b112f9c
JT
79922002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7993
7994 * Makefile.in (ppc_tdep_h): Define.
7995 (ppc-linux-nat.o)
7996 (ppc-linux-tdep.o)
7997 (rs6000-tdep.o): Use $(ppc_tdep_h).
7998 (ppc-sysv-tdep.o)
7999 (ppcnbsd-nat.o)
8000 (ppcnbsd-tdep.o): New dependency lists.
8001 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8002 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8003 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8004 (ppc_sysv_abi_broken_use_struct_convention)
8005 (ppc_sysv_abi_use_struct_convention)
8006 (ppc_sysv_abi_push_arguments): Move to...
8007 * ppc-sysv-tdep.c: ...here.
8008 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8009 * rs6000-tdep.c (process_note_abi_tag_sections)
8010 (get_elfosabi): Remove.
8011 (rs6000_gdbarch_init): Use generic OS ABI framework.
8012 (rs6000_dump_tdep): New function.
8013 (_initialize_rs6000_tdep): Use gdbarch_register.
8014 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8015 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8016 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8017 of ppc-linux-tdep.o.
8018 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8019 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8020 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8021 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8022 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8023 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8024
480dd42a
JB
80252002-05-29 Jim Blandy <jimb@redhat.com>
8026
8027 * macroscope.c (default_macro_scope): Put `void' in empty argument
8028 list.
8029
4182591f
AC
80302002-05-29 Andrew Cagney <ac131313@redhat.com>
8031
8032 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8033 * arch-utils.c: Include "sim-regno.h".
8034 * gdbarch.sh: Don't include "sim-regno.h".
8035 * gdbarch.h, gdbarch.c: Regenerate.
8036 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8037 here.
8038 * arch-utils.h (legacy_register_sim_regno): To here.
8039 * remote-sim.c (legacy_register_sim_regno): Move function from
8040 here.
8041 * arch-utils.c (legacy_register_sim_regno): To here.
8042
8238d0bf
AC
80432002-05-28 Andrew Cagney <ac131313@redhat.com>
8044
8045 * sim-regno.h: New file.
8046 * Makefile.in (sim_regno_h): Define.
8047 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8048 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8049 (legacy_register_sim_regno): New function.
8050 (one2one_register_sim_regno): New function.
8051 (gdbsim_fetch_register): Rewrite.
8052 (gdbsim_store_register): Only store a register when
8053 REGISTER_SIM_REGNO is valid.
8054 * d10v-tdep.c: Include "sim-regno.h".
8055 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8056 (d10v_ts3_register_sim_regno): Ditto.
8057 * gdbarch.sh: Include "sim-regno.h".
8058 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8059 * gdbarch.h, gdbarch.c: Regenerate.
8060 * arch-utils.h (default_register_sim_regno): Delete declaration.
8061 * arch-utils.c (default_register_sim_regno): Delete function.
8062
485721b1
JT
80632002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8064
8065 * ppcnbsd-nat.c: Rewrite.
8066 * ppcnbsd-tdep.c: New file.
8067 * ppcnbsd-tdep.h: New file.
8068 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8069 solib.o, and solib-svr4.o.
8070 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8071 nbsd-tdep.o, and corelow.o.
8072
697f244d
AC
80732002-05-28 Andrew Cagney <ac131313@redhat.com>
8074
8075 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8076 `tr' and `sed'. Mention that `broken' targets are not expected to
8077 build.
8078
f08caad1 80792002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8080
8081 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8082 Let PC point right after the prologue before looking up symbols.
8083
3139facc
MH
80842002-05-27 Martin M. Hunt <hunt@redhat.com>
8085
8086 * i386-tdep.c (i386_register_virtual_type): Return
8087 builtin_type_vec128i for SSE registers.
8088
8089 * gdbtypes.h (builtin_type_vec128i): Declare.
8090
8091 * gdbtypes.c (build_builtin_type_vec128i): New function.
8092 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8093 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8094 (build_gdbtypes): Initialize new builtin vector types.
8095 (_initialize_gdbtypes): Register new vector types with gdbarch.
8096
6e3ba3b8
JT
80972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8098
8099 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8100 since it has been multi-arch'd.
8101 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8102 Move Alpha and VAX multi-arch news entries to same section
8103 as other multi-arch news.
8104
93d5585d
JT
81052002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8106
8107 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8108 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8109 static. Rename some register numbers to put them in ns32k-tdep
8110 private namespace.
8111 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8112 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8113 functions.
8114 (_initialize_ns32k_tdep): Use gdbarch_register.
8115 * ns32k-tdep.h: New file.
8116 * ns32knbsd-tdep.c: New file.
8117 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8118 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8119 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8120 REGISTER_BYTES, REGISTER_BYTE): Remove.
8121 * config/ns32k/tm-ns32k.h: New file.
8122 * config/ns32k/tm-umax.h: Remove.
8123
efb2c70e
JT
81242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8125
8126 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8127 ns32k_store_struct_return, ns32k_extract_return_value,
8128 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8129 functions.
8130 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8131 ns32k_saved_pc_after_call.
8132 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8133 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8134 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8135 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8136 ns32k_extract_struct_value_address.
8137
7bcc927b
JT
81382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8139
8140 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8141 ns32k_fix_call_dummy): New.
8142 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8143 ns32k_call_dummy_words.
8144 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8145 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8146 CALL_DUMMY_NARGS): Remove.
8147 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8148
78f9d765
JT
81492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8150
8151 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8152 ns32k_frame_saved_pc, ns32k_frame_args_address,
8153 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8154 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8155 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8156 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8157 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8158 (BREAKPOINT): Remove..
8159 (FRAME_CHAIN): Define as ns32k_frame_chain.
8160 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8161 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8162 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8163 (FRAME_FIND_SAVED_REGS): Remove.
8164 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8165 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8166 (POP_FRAME): Define as ns32k_pop_frame.
8167
f2c762e0
JT
81682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8169
8170 * ns32k-tdep.c (ns32k_register_byte_32082,
8171 ns32k_register_byte_32382, ns32k_register_raw_size,
8172 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8173 functions.
8174 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8175 ns32k_register_byte_32382.
8176 * config/ns32k/tm-umax.h: Update copyright years.
8177 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8178 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8179 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8180 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8181 (ns32k_get_enter_addr): Fix prototype.
8182
af137673
JT
81832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8184
8185 * ns32k-tdep.c: Update copyright years.
8186 (ns32k_register_name_32082): New function.
8187 (ns32k_register_name_32382): Ditto.
8188 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8189 (REGISTER_NAME): Define as ns32k_register_name_32382.
8190 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8191 (REGISTER_NAME): Define as ns32k_register_name_32082.
8192
a8bc7b56
JB
81932002-05-24 Jim Blandy <jimb@redhat.com>
8194
8195 * dwarf2read.c (free_line_header): Use xfree, not free.
8196
83a45910
JT
81972002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8198
8199 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8200 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8201
0db71247
AC
82022002-05-23 Andrew Cagney <ac131313@redhat.com>
8203
8204 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8205
b9e5e4dd
AC
82062002-05-23 Andrew Cagney <ac131313@redhat.com>
8207
8208 From Ross Alexander at NEC Europe:
8209 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8210
de530e84
MS
82112002-05-23 Michael Snyder <msnyder@redhat.com>
8212
8213 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8214 for input, rather than parse_and_eval_address.
8215
b91b96f4
AC
82162002-05-23 Andrew Cagney <ac131313@redhat.com>
8217
8218 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8219 * Makefile.in (sim_d10v_h): Update definition.
8220
8b279e7a
AC
82212002-05-24 Andrew Cagney <cagney@redhat.com>
8222
8223 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8224 change `2002-05-22 Michael Snyder' below.
8225 (d10v_push_arguments): Ditto.
8226 (d10v_extract_return_value): Ditto.
8227
0a3d0425
JB
82282002-05-23 Jim Blandy <jimb@redhat.com>
8229
8230 * macrotab.c (check_for_redefinition): Don't complain if the new
8231 definition is the same as the previous one. Take more arguments
8232 to allow the comparison.
8233 (macro_define_object, macro_define_function): Pass more arguments
8234 to check_for_redefinition.
8235
78eac43e
MS
82362002-05-22 Michael Snyder <msnyder@redhat.com>
8237
8238 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8239 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8240 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8241 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8242 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8243 Add a temp variable to save a call (and a memory read).
8244 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8245 if possible (so that PC_IN_CALL_DUMMY will work).
8246
9bc1edb8
CV
82472002-05-22 Corinna Vinschen <vinschen@redhat.com>
8248
8249 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8250
005ef3d2
ML
82512002-05-22 Michal Ludvig <mludvig@suse.cz>
8252
8253 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8254 fde->cie_ptr.
8255 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8256 (dwarf2_build_frame_info): Add offset to fde->initial_location
8257 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8258 (execute_stack_op): Change type of 'result' from ULONGEST to
8259 CORE_ADDR.
005ef3d2 8260
fcf4f891
JT
82612002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8262
8263 * config/alpha/tm-nbsd.h: Include solib.h.
8264
cfef91e4
JT
82652002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8266
8267 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8268 assumptions about the host's byte order.
8269
9964235a
JT
82702002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8271
8272 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8273 to dependency list.
8274 * alphanbsd-tdep.c: Include solib-svr4.h.
8275 * shnbsd-tdep.c: Ditto.
8276
9eeef8ef
JT
82772002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8278
8279 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8280 nbsd-tdep.h to dependency list.
8281 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8282 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8283 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8284 nbsdaout.mh and nbsdelf.mh consistently.
8285 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8286 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8287 nbsdaout.mt and nbsdelf.mh consistently.
8288 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8289 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8290 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8291 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8292 a.out shared library stuff from here...
8293 * config/nm-nbsdaout.h: ...to here.
8294 * config/tm-nbsd.h: Remove.
8295 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8296 * config/arm/nbsd.mh: Remove.
8297 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8298 nbsd-tdep.o.
8299 * config/arm/nbsdaout.mh: New file.
8300 * config/arm/nbsdelf.mh: New file.
8301 * config/arm/nm-nbsdaout.h: New file.
8302 * config/i386/nbsd.mh: Remove.
8303 * config/i386/nbsd.mt: Remove.
8304 * config/i386/nbsdaout.mh: New file.
8305 * config/i386/nbsdaout.mt: New file.
8306 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8307 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8308 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8309 i386_register_u_addr): Remove.
8310 * config/i386/nm-nbsdaout.h: New file.
8311 * config/i386/nm-nbsdelf.h: Remove.
8312 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8313 (USE_STRUCT_CONVENTION): Remove.
8314 * config/i386/tm-nbsdaout.h: New file.
8315 * config/i386/tm-nbsdelf.h: Remove.
8316 * config/m68k/nbsd.mh: Remove.
8317 * config/m68k/nbsd.mt: Remove.
8318 * config/m68k/nbsdaout.mh: New file.
8319 * config/m68k/nbsdaout.mt: New file.
8320 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8321 * config/m68k/nm-nbsdaout.h: New file.
8322 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8323 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8324 * config/ns32k/nbsd.mh: Remove.
8325 * config/ns32k/nbsd.mt: Remove.
8326 * config/ns32k/nbsdaout.mh: New file.
8327 * config/ns32k/nbsdaout.mt: New file.
8328 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8329 * config/ns32k/nm-nbsdaout.h: New file.
8330 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8331 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8332 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8333 (SVR4_SHARED_LIBS): Remove.
8334 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8335 * config/sparc/nbsd.mh: Remove.
8336 * config/sparc/nbsd.mt: Remove.
8337 * config/sparc/nbsdaout.mh: New file.
8338 * config/sparc/nbsdaout.mt: New file.
8339 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8340 * config/sparc/nbsdelf.mt: New file.
8341 * config/sparc/nm-nbsdaout.h: New file.
8342 * config/sparc/nm-nbsdelf.h: Remove.
8343 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8344 * config/sparc/tm-nbsdaout.h: New file.
8345
257ce470
JT
83462002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8347
8348 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8349 mipsnbsd-tdep.c
8350 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8351
76a6d5fe
JT
83522002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8353
8354 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8355 shnbsd-nat.c.
8356 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8357
45888261
JT
83582002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8359
8360 * NEWS: Note new MIPS NetBSD native configuration.
8361 * configure.host (mips*-*-netbsd*): New host.
8362 * configure.tgt (mips*-*-netbsd*): New target.
8363 * mipsnbsd-nat.c: New file.
8364 * mipsnbsd-tdep.c: New file.
8365 * mipsnbsd-tdep.h: New file.
8366 * config/mips/nbsd.mh: New file.
8367 * config/mips/nbsd.mt: New file.
8368 * config/mips/nm-nbsd.h: New file.
8369 * config/mips/tm-nbsd.h: New file.
8370
70f80edf
JT
83712002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8372
8373 * Makefile.in (SFILES): Add osabi.c.
8374 (COMMON_OBS): Add osabi.o.
8375 (osabi.o): New dependency list.
8376 * osabi.c: New file.
8377 * osabi.h: New file.
8378 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8379
8380 * Makefile.in (alpha_tdep_h): Define and use instead of
8381 alpha-tdep.h.
8382 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8383 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8384 Remove.
8385 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8386 * alpha-tdep.h: Include osabi.h.
8387 (alpha_abi): Remove.
8388 (gdbarch_tdep): Use generic OS ABI framework.
8389 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8390 gdbarch_register_osabi.
8391 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8392 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8393 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8394
8395 * Makefile.in (sh_tdep_h): Add osabi.h.
8396 * sh-tdep.h (sh_osabi): Remove.
8397 (gdbarch_tdep): Use generic OS ABI framework.
8398 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8399 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8400 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8401 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8402
8403 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8404 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8405 gdbarch_register_osabi.
8406 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8407 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8408 (get_elfosabi): Rename to...
8409 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8410 ABI framework support routines.
8411 (arm_gdbarch_init): Use generic OS ABI framework.
8412 (arm_dump_tdep): Likewise.
8413 (_initialize_arm_tdep): Likewise.
8414 * arm-tdep.h: Include osabi.h.
8415 (arm_abi): Remove.
8416 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8417 osabi member.
8418 (arm_gdbarch_register_os_abi): Remove prototype.
8419 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8420 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8421
8422 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8423 * mips-tdep.c: Include osabi.h.
8424 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8425 OS ABI framework.
8426
d194345b
KH
84272002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8428
8429 * h8300-tdep.c: Fix formatting.
8430
70c6b0d1
EZ
84312002-05-20 Elena Zannoni <ezannoni@redhat.com>
8432
8433 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8434 printing vector registers.
8435
165b8e33
AC
84362002-05-19 Andrew Cagney <ac131313@redhat.com>
8437
8438 From Fernando Nasser:
8439 * remote.c (remote_async_open_1): Re-throw the exception when the
8440 connection fails.
8441 (remote_cisco_open): Ditto.
8442 (remote_open_1): Ditto.
8443
36918e70
AC
84442002-05-19 Andrew Cagney <ac131313@redhat.com>
8445
8446 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8447 (remote_start_remote): Add uiout parameter. Pass through to
8448 remote_start_remote_dummy.
8449 (remote_open_1): Use catch_exception instead of catch_errors.
8450 (remote_async_open_1): Ditto.
8451 (remote_cisco_open): Ditto.
8452
ae44c0c4
AC
84532002-05-19 Andrew Cagney <ac131313@redhat.com>
8454
8455 * remote.c (remote_start_remote): Replace PTR with void pointer.
8456 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8457 static.
8458
8efe637d
AC
84592002-05-18 Andrew Cagney <ac131313@redhat.com>
8460
8461 * gdb_indent.sh: Allow the script to be run in the sim directory.
8462
2f1b5984
MK
84632002-05-18 Mark Kettenis <kettenis@gnu.org>
8464
f0f625e2
MK
8465 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8466 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8467
2f1b5984
MK
8468 * corelow.c (core_open): Only call set_gdbarch_from_file if
8469 exec_bfd is NULL.
8470
fc974602
AV
84712002-05-17 Andrey Volkov <avolkov@transas.com>
8472
8473 * h8300-tdep.c: Add support of EXR register
8474 * config/h8300/tm-h8300.h: Ditto.
8475
906709f4
AV
84762002-05-17 Andrey Volkov <avolkov@transas.com>
8477
8478 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8479
6e591d68
AV
84802002-05-17 Andrey Volkov <avolkov@transas.com>
8481
8482 * h8300-tdep.c: Change literal regnums to REGNO.
8483
84f0252a
JB
84842002-05-17 Jim Blandy <jimb@redhat.com>
8485
e0e9281e
JB
8486 * NEWS: Note addition of macro support.
8487
84f0252a
JB
8488 Expand preprocessor macros in C expressions.
8489 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8490 (scan_macro_expansion, scanning_macro_expansion,
8491 finished_macro_expansion): New function declarations.
8492 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8493 variable declarations.
8494 * parser-defs.h (expression_context_pc): New declaration.
8495 * parse.c (expression_context_pc): New variable.
8496 (parse_exp_1): Set expression_context_pc, as well as
8497 expression_context_block.
8498 * c-exp.y (yylex): If we're not already reading the result of a
8499 macro expansion, try to macro-expand the next token. When we're
8500 done scanning a macro expansion, switch back to the mainline text.
8501 Commas and `if's in a macro's expansion don't terminate the input.
8502 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8503 (macro_original_text, macro_expanded_text,
8504 expression_macro_lookup_func, expression_macro_lookup_baton): New
8505 variables.
8506 (scan_macro_expansion, scanning_macro_expansion,
8507 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8508 c_preprocess_and_parse): New functions.
8509 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8510 c_preprocess_and_parse, instead of c_parse.
8511 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8512 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8513
1c509ca8
JR
8514Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8515
8516 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8517 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8518 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8519
2250ee0c
CV
85202002-05-17 Corinna Vinschen <vinschen@redhat.com>
8521
8522 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8523
ab3b8126
JT
85242002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8525
8526 * Makefile.in (sh_tdep_h): Define and use.
8527 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8528 register enum): Move to...
8529 * * sh-tdep.h: ...here.
8530 * sh-tdep.c: Include sh-tdep.h.
8531 * sh3-rom.c: Likewise.
8532 * shnbsd-tdep.c: Likewise.
8533
ed9d4749
MS
85342002-05-16 Michael Snyder <msnyder@redhat.com>
8535
8536 * arm-tdep.c: Spelling fix in comment.
8537
2e276125
JB
85382002-05-16 Jim Blandy <jimb@redhat.com>
8539
6821892e
JB
8540 Add commands for manually expanding macros and showing their
8541 definitions.
8542 * macrocmd.c, macroscope.c, macroscope.h: New files.
8543 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8544 (macroscope_h): New variable.
8545 (HFILES_NO_SRCDIR): Add macroscope.h.
8546 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8547 (macroscope.o, macrocmd.o): New rules.
8548
2e276125
JB
8549 Teach the Dwarf 2 reader to read macro information.
8550 * dwarf2read.c: #include "macrotab.h".
8551 (dwarf_macinfo_buffer): New variable.
8552 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8553 dwarf_macinfo_size.
8554 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8555 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8556 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8557 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8558 dwarf2_macro_spaces_in_definition): New complaints.
8559 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8560 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8561 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8562 the partial symbol table.
8563 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8564 from what's recorded in the partial symbol table.
8565 (read_file_scope): If the compilation unit has a
8566 `DW_AT_macro_info' attribute, read its macro information.
8567 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8568
2f53fe6c
DJ
85692002-05-16 Daniel Jacobowitz <drow@mvista.com>
8570
8571 Fix PR gdb/546
8572 * ser-tcp.c: Don't include <netinet/udp.h>.
8573
2be99286
SC
85742002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8575
8576 * MAINTAINERS: Update my email address.
8577
c9af212b 85782002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8579
8580 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8581 include file of the same name.
8582
bf5f1a52
CV
85832002-05-16 Corinna Vinschen <vinschen@redhat.com>
8584
8585 * configure.tgt: Mark v850 as multi-arched.
8586 * config/v850/tm-v850.h: Remove file.
8587 * config/v850/v850.mt: Eliminate TM_FILE.
8588
435e042a
CV
85892002-05-16 Corinna Vinschen <vinschen@redhat.com>
8590
8591 * v850-tdep.c: Full multi-arch.
8592 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8593 Define GDB_MULTI_ARCH to 2.
8594
9819c6c8
PM
85952002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8596
8597 * p-exp.y (current_type): New static variable.
8598 Carries the type of the expression at the position that is parsed.
8599 (push_current_type, pop_current_type): Two new functions. Used
8600 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8601 (search_field): New static variable. Set to one after parsing a point
8602 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8603 (FIELDNAME): New token. After a point only a token belonging to
8604 current_type type definition is allowed.
8605 (all over token rules): reset and change current_type according
8606 to rules.
8607 (exp '[' rule): insert implicit array index field if
8608 exp is a pascal string type.
8609
3a06899a
CV
86102002-05-16 Corinna Vinschen <vinschen@redhat.com>
8611
8612 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8613 frame info. Use frame_info's saved_regs instead of matching member
8614 in extra_frame_info throughout.
8615 (v850_frame_init_saved_regs): New function.
8616 (v850_init_extra_frame_info): Move most functionality into
8617 v850_frame_init_saved_regs().
8618 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8619 (v850_frame_find_saved_regs): Remove declaration.
8620 (FRAME_FIND_SAVED_REGS): Remove definition.
8621 (v850_frame_init_saved_regs): Add declaration.
8622 (FRAME_INIT_SAVED_REGS): Add definition.
8623
6ed14b0e
CV
86242002-05-16 Corinna Vinschen <vinschen@redhat.com>
8625
8626 * v850-tdep.c: Begin multi-arch'ing v850.
8627 (v850_target_architecture_hook): Remove function.
8628 (v850_gdbarch_init): New function. Add code previously in
8629 v850_target_architecture_hook().
8630 (_initialize_v850_tdep): Don't set target_architecture_hook.
8631 Call register_gdbarch_init() instead.
8632
42725910
DJ
86332002-05-16 Daniel Jacobowitz <drow@mvista.com>
8634
8635 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8636 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8637 (fixup_class_method_type): Likewise.
8638
99d9066e
JB
86392002-05-15 Jim Blandy <jimb@redhat.com>
8640
8641 Add macro structures to GDB's symbol tables. Nobody puts anything
8642 in them yet.
8643 * symtab.h (struct symtab): New member: `macro_table'.
8644 * buildsym.h (pending_macros): New global variable.
8645 * buildsym.c: #include "macrotab.h".
8646 (buildsym_init): Initialize `pending_macros'.
8647 (end_symtab): If we found macro information while reading a CU's
8648 debugging info, do build a symtab structure for it. Make the
8649 symtab point to the macro information, and clear the
8650 `pending_macros' pointer which held it while we were reading the
8651 debug info.
8652 (really_free_pendings): Free any pending macro table.
8653 * objfiles.h (struct objfile): New member: `macro_cache'.
8654 * objfiles.c (allocate_objfile): Set allocate and free functions
8655 for the macro cache's objstack.
8656 (free_objfile): Empty the macro cache's obstack.
8657 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8658 set new allocate and free functions for it.
8659 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8660 free functions for the macro cache's objstack. (Why is this
8661 function building its own objfile?)
8662 * symmisc.c (print_objfile_statistics): Print statistics on the
8663 macro bcache.
8664 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8665
c899585b
RE
86662002-05-15 Richard Earnshaw <rearnsha@arm.com>
8667
8668 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8669 (REGISTER_U_ADDR): Delete definition.
8670 (arm_register_u_addr): Delete declaration.
8671
a6cdd8c5
RE
86722002-05-15 Richard Earnshaw <rearnsha@arm.com>
8673
8674 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8675 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8676
c97dcfc7
AC
86772002-05-14 Andrew Cagney <ac131313@redhat.com>
8678
8679 * regcache.c (register_valid): Revise comments refering to "Not
8680 available" and "unavailable".
8681 * frame.c (frame_register_read): Ditto.
8682 * findvar.c (value_of_register): Ditto.
8683
93021b7d
AC
86842002-05-15 Andrew Cagney <cagney@redhat.com>
8685
8686 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8687 (remote-sim.o): Update dependencies.
8688 (d10v-tdep.o): Specify dependencies.
8689 (sim_d10v_h): Define.
8690
a86bc61c
JB
86912002-05-14 Jim Blandy <jimb@redhat.com>
8692
8693 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8694 * macrotab.c (macro_lookup_inclusion, find_definition,
8695 new_macro_table): Same.
8696
8697 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8698 not `! strcmp ()'. This is a dubious improvement.
8699 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8700
8701 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8702 although it's not necessary, to avoid a warning.
8703
2fdde8f8
DJ
87042002-05-14 Daniel Jacobowitz <drow@mvista.com>
8705
8706 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8707 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8708 TYPE_INSTANCE_FLAGS.
8709 (struct main_type): New.
8710 (struct type): Move most members to struct main_type. Change
8711 cv_type and as_type to new type_chain member. Add instance_flags.
8712 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8713 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8714 (finish_cv_type): Remove prototype.
8715 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8716 Set TYPE_CHAIN.
8717 (alloc_type_instance): New function.
8718 (smash_type): New function.
8719 (make_pointer_type, make_reference_type, make_function_type)
8720 (smash_to_member_type, smash_to_method_type): Call smash_type.
8721 (make_qualified_type): New function.
8722 (make_type_with_address_space): Call make_qualified_type.
8723 (make_cv_type): Likewise.
8724 (finish_cv_type): Remove unnecessary function.
8725 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8726 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8727 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8728 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8729 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8730 * hpread.c (hpread_read_struct_type): Likewise.
8731 * stabsread.c (read_struct_type): Likewise.
8732
843fedf4
EZ
87332002-05-14 Elena Zannoni <ezannoni@redhat.com>
8734
8735 * configure.tgt: Add a catch all sh* target, for cases like
8736 sh[2,3,4]-elf and sh-hms.
8737
05a6c72c
KS
87382002-05-14 Keith Seitz <keiths@redhat.com>
8739
8740 * event-loop.c (create_file_handler): Don't do anything but
8741 update data when we are given a fd which we are already
8742 monitoring.
8743
5d085aaf
ML
87442002-05-14 Michal Ludvig <mludvig@suse.cz>
8745
8746 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8747 (update_context): Use __func__ in warnings.
8748
9db8d71f
DJ
87492002-05-14 Daniel Jacobowitz <drow@mvista.com>
8750
8751 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8752 and tcp_close to net_open and net_close.
8753 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8754 using UDP if requested. Don't try to disable Nagle on UDP
8755 sockets.
8756 * remote.c (remote_serial_open): New function. Warn about UDP.
8757 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8758
5dbc6baa
EZ
87592002-05-13 Elena Zannoni <ezannoni@redhat.com>
8760
8761 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8762
cc3023f7
EZ
87632002-05-13 Elena Zannoni <ezannoni@redhat.com>
8764
8765 * configure.tgt: Remove sh-hms target.
8766 * MAINTAINERS: Don't list sh-hms as a separate target.
8767
ec2bcbe7
JB
87682002-05-13 Jim Blandy <jimb@redhat.com>
8769
8770 Add first preprocessor macro-expansion files.
8771 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8772 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8773 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8774 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8775 (COMMON_OBS): Add macrotab.o, macroexp.o.
8776 (macroexp.o, macrotab.o): New rules.
8777
6d531722
AC
87782002-05-13 Andrew Cagney <ac131313@redhat.com>
8779
8780 * config/m88k/tm-m88k.h: Update copyright.
8781 (m88k_target_write_pc): Declare
8782 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8783 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8784 (SHIFT_INST_REGS): Update definition.
8785 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8786 using old definition of TARGET_WRITE_PC.
8787 * regcache.c (generic_target_write_pc): Delete code handling
8788 NNPC_REGNUM.
8789 * gdbarch.sh (NNPC_REGNUM): Delete.
8790 * gdbarch.h, gdbarch.c: Regenerate.
8791
3e3f2739
RE
87922002-05-13 Richard Earnshaw <rearnsha@arm.com>
8793
8794 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8795 builtin reg number.
8796
0004e5a2
DJ
87972002-05-13 Daniel Jacobowitz <drow@mvista.com>
8798
8799 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8800 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8801 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8802 access macros.
8803 * c-typeprint.c (cp_type_print_method_args): Likewise.
8804 (c_type_print_args): Likewise.
8805 * d10v-tdep.c (d10v_push_arguments): Likewise.
8806 (d10v_extract_return_value): Likewise.
8807 * expprint.c (print_subexp): Likewise.
8808 * gdbtypes.c (lookup_primitive_typename): Likewise.
8809 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8810 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8811 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8812 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8813 (TYPE_VECTOR): Likewise.
8814 * hpread.c (hpread_read_struct_type)
8815 (fix_static_member_physnames, fixup_class_method_type)
8816 (hpread_type_lookup): Likewise.
8817 * mdebugread.c (parse_symbol, parse_type): Likewise.
8818 * p-lang.c (is_pascal_string_type): Likewise.
8819 * valops.c (hand_function_call): Likewise.
8820 * x86-64-tdep.c (classify_argument): Likewise.
8821
8822 * hpread.c (hpread_read_function_type)
8823 (hpread_read_doc_function_type): Call replace_type.
8824 * dstread.c (create_new_type): Delete.
8825 (decode_dst_structure, process_dst_function): Call alloc_type.
8826 Use type access macros.
8827
dff95cc7
MK
88282002-05-12 Mark Kettenis <kettenis@gnu.org>
8829
8830 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8831 the're not supported by the current architecture.
8832 (i387_fill_fxsave): Likewise.
8833
bbcd32ad
FF
88342002-05-12 Fred Fish <fnf@redhat.com>
8835
8836 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8837 sect_index_xxx members to index the first slot in section_offsets
8838 if all of the section_offsets are zero.
8839
89cf4787
MK
88402002-05-12 Mark Kettenis <kettenis@gnu.org>
8841
8842 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8843 checked in with last change.
8844
1f77ffc5
MK
88452002-05-12 Mark Kettenis <kettenis@gnu.org>
8846
8847 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8848 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8849 config.sub.
8850
89b8b4a9
DJ
88512002-05-12 Daniel Jacobowitz <drow@mvista.com>
8852
8853 * Makefile.in: Update dependencies.
8854
14a5e767
AC
88552002-05-11 Andrew Cagney <ac131313@redhat.com>
8856
8857 * language.c (local_hex_string_custom): Simplify. Do not depend
8858 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8859
8860 * memattr.c (mem_info_command): Replace calls to
8861 longest_local_hex_string and longest_local_hex_string_custom.
8862 * buildsym.c (make_blockvector): Ditto.
8863 * solib.c (info_sharedlibrary_command): Ditto.
8864 * tracepoint.c (tracepoints_info): Ditto.
8865 * symtab.c (print_msymbol_info): Ditto.
8866
8867 * language.c (local_hex_string): Delete.
8868 (local_hex_string_custom): Delete.
8869 (longest_local_hex_string): Rename to local_hex_string.
8870 (longest_local_hex_string_custom): Rename to
8871 local_hex_string_custom.
8872 * language.h (local_hex_string): Change parameter type to LONGEST.
8873 (local_hex_string_custom): Ditto.
8874 (longest_local_hex_string): Delete declaration.
8875 (longest_local_hex_string_custom): Ditto.
8876
8877 * solib.c: Update copyright.
8878 * memattr.c: Update copyright.
8879
13d01224
AC
88802002-05-11 Andrew Cagney <ac131313@redhat.com>
8881
8882 * arch-utils.h (legacy_register_to_value): Declare.
8883 (legacy_value_to_register): Declare.
8884 (legacy_convert_register_p): Declare.
8885 * arch-utils.c (legacy_register_to_value): New function.
8886 (legacy_value_to_register): New function.
8887 (legacy_convert_register_p): New function.
8888
8889 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8890 (VALUE_TO_REGISTER): Define.
8891 (CONVERT_REGISTER_P): Define.
8892 * gdbarch.h, gdbarch.c: Regenerate.
8893
8894 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8895 VALUE_TO_REGISTER.
8896 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8897 CONVERT_REGISTER_P.
8898
4a1970e4
DJ
88992005-05-11 Daniel Jacobowitz <drow@mvista.com>
8900 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8901
8902 * Makefile.in: Update dependencies for valops.c.
8903 * valops.c: Include "gdb_assert.h".
8904 (typecmp): Skip THIS parameter to methods.
8905 (find_method_list): Remove static_memfuncp argument,
8906 update callers. Check for stub methods.
8907 (find_value_oload_method_list): Don't set *static_memfuncp.
8908 (find_overload_match): Don't check for stub methods. Assert
8909 that methods are not stubbed. Handle static methods.
8910 (value_find_oload_method_list): Remove static_memfuncp argument.
8911 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8912 to the argument list for static stub methods.
8913 * value.h (value_find_oload_method_list): Update prototype.
8914
b2e75d78
AC
89152002-05-11 Andrew Cagney <ac131313@redhat.com>
8916
8917 * arch-utils.h (generic_register_size): Declare.
8918 (generic_register_raw_size, generic_register_virtual_size): Delete
8919 declarations.
8920 * arch-utils.c (generic_register_raw_size): Delete.
8921 (generic_register_size): New function.
8922 (generic_register_virtual_size): Delete.
8923
8924 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8925 default generic_register_size.
8926 * gdbarch.h, gdbarch.c: Re-generate.
8927
8928 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8929 register_virtual_size.
8930 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8931 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8932
451fbdda
AC
89332002-05-11 Andrew Cagney <ac131313@redhat.com>
8934
8935 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8936 * gdbarch.h, gdbarch.c: Regenerate.
8937 * gnu-v3-abi.c: Update copyright.
8938 (vtable_address_point_offset): Update.
8939 (gnuv3_rtti_type): Update.
8940 (gnuv3_baseclass_offset): Update.
8941 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8942 (init_fetch_link_map_offsets): Update.
8943 * remote.c (get_remote_state): Update.
8944
6d2f5cea
DJ
89452002-05-11 Daniel Jacobowitz <drow@mvista.com>
8946
8947 * TODO: Remove value_headof/value_from_vtable_info comment.
8948 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8949 * values.c (value_headof, value_from_vtable_info): Delete.
8950 * value.h (value_from_vtable_info): Delete prototype.
8951
d2324da4
AC
89522002-05-11 Andrew Cagney <ac131313@redhat.com>
8953
8954 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8955 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8956 $(gdb_regex_h).
8957 (gdb_assert_h): Define.
8958 (gdb_wait_h): Define.
8959 (gdb_regex_h): Define.
8960
5c717440
DJ
89612002-05-11 Daniel Jacobowitz <drow@mvista.com>
8962
8963 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8964 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8965
6c7861b3
JT
89662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8967
8968 * nbsd-tdep.c: Fix comment.
8969
ea5bc2a6
JT
89702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8971
8972 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8973 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8974 (nbsd-tdep.o): New dependency list.
8975 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8976 nbsd-tdep.h.
8977 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8978 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8979 * nbsd-tdep.c: New file.
8980 * nbsd-tdep.h: New file.
8981 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8982 nbsd-tdep.h.
8983 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8984 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8985 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8986 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8987
b28da865
JT
89882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8989
8990 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8991 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8992 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8993 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8994 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8995 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8996
4b8ff1fa
JT
89972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8998
8999 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9000 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9001 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9002 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9003 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9004 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9005 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9006
dfe6eb1f
JT
90072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9008
9009 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9010 fetch_elfcore_registers to...
9011 * i386nbsd-tdep.c: ...here.
9012 (i386nbsd_use_struct_convention): Rename to...
9013 (i386nbsd_aout_use_struct_convention): ...this.
9014 (i386nbsd_supply_reg): New function.
9015 (i386nbsd_fill_reg): New function.
9016 (fetch_core_registers): Use i386nbsd_supply_reg.
9017 (fetch_elfcore_registers): Likewise.
9018 (_initialize_i386nbsd_tdep): New function.
9019 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9020 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9021 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9022 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9023 (i386nbsd_aout_use_struct_convention): ...this.
9024
20cb8cda
JT
90252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9026
9027 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9028 (store_inferior_registers): Use shnbsd_fill_reg.
9029 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9030 sh_nbsd_supply_register): Collapse into...
9031 (shnbsd_supply_reg): ...this.
9032 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9033 (shnbsd_fill_reg): ...this.
9034 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9035 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9036 (fetch_core_registers): Use shnbsd_supply_reg.
9037 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9038 (sh_nbsd_core_fns): Rename to...
9039 (shnbsd_core_fns): ...this.
9040 (sh_nbsd_elfcore_fns): Rename to...
9041 (shnbsd_elfcore_fns): ...this.
9042 (sh_nbsd_init_abi): Rename to...
9043 (shnbsd_init_abi): ...this.
9044 (_initialize_sh_nbsd_tdep): Rename to...
9045 (_initialize_shnbsd_tdep): ...this.
9046 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9047 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9048 sh_nbsd_fill_register): Remove prototypes.
9049 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9050
e750d25e
JT
90512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9052
9053 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9054 (i387-nat.o): Delete dependency list.
9055 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9056 (x86-64-linux-nat.o): Likewise.
9057 * i387-nat.c: Delete file, moving contents to...
9058 * i387-tdep.c: ...here.
9059 * i387-nat.h: Rename...
9060 * i387-tdep.h: ...to this.
9061 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9062 * i386-linux-nat.c: Likewise.
9063 * i386bsd-nat.c: Likewise.
9064 * i386gnu-nat.c: Likewise.
9065 * i386nbsd-nat.c: Likewise.
9066 * i386v4-nat.c: Likewise.
9067 * x86-64-linux-nat.c: Likewise.
9068 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9069 * config/i386/go32.mh (NATDEPFILES): Likewise.
9070 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9071 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9072 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9073 * config/i386/linux.mh (NATDEPFILES): Likewise.
9074 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9075 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9076 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9077 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9078
1aee598a
JT
90792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9080
9081 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9082 (alphanbsd-nat.o): Remove dependency list.
9083 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9084 * alphanbsd-nat.c: Delete. Contents moved to...
9085 * alphanbsd-tdep.c: ...here.
9086 (_initialize_alphanbsd_tdep): Register core functions.
9087 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9088
12bcb0fe
JT
90892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9090
9091 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9092 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9093 (alphanbsd-nat.o): Likewise.
9094 (alphabsd-tdep.o): New dependency list.
9095 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9096 (fill_gregset): Use alphabsd_fill_reg.
9097 (supply_fpregset): Use alphabsd_supply_fpreg.
9098 (fill_fpregset): Use alphabsd_fill_fpreg.
9099 (fetch_inferior_registers): Use struct reg and struct fpreg
9100 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9101 and alphabsd_supply_fpreg.
9102 (store_inferior_registers): Use struct reg and struct fpreg
9103 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9104 and alphabsd_fill_fpreg.
9105 * alphabsd-tdep.c: New file.
9106 * alphabsd-tdep.h: New file.
9107 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9108 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9109 alphabsd_supply_fpreg.
9110 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9111 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9112
361d1df0
EC
91132002-05-11 Eric Christopher <echristo@redhat.com>
9114
9115 * mips-tdep.c (mips_double_register_type): Fix thinko.
9116 (mips_single_register_type): Ditto.
9117 * MAINTAINERS: Add self.
9118
92dd7cee
MK
91192002-05-11 Mark Kettenis <kettenis@gnu.org>
9120
9121 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9122 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9123 right thing on architectures with different endianness and/or
9124 integer sizes.
9125
e27da16d
JT
91262002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9127
9128 From Christian Limpach <chris@Pin.LU>
9129 * configure.in: Change sed expression which comments out
9130 NATDEPFILES to also comment out continuation lines.
9131 * configure: Regenerate.
9132
ddde02bd
EZ
91332002-05-10 Elena Zannoni <ezannoni@redhat.com>
9134
9135 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9136 big patch.
9137
1c922164
EZ
91382002-05-10 Elena Zannoni <ezannoni@redhat.com>
9139
9140 * sh-tdep.c: Include correct file.
9141
283150cd
EZ
91422002-05-10 Elena Zannoni <ezannoni@redhat.com>
9143
9144 New support for sh64-elf (sh5) target.
9145
9146 * configure.tgt: For sh64-elf target, default to sh-elf.
9147
9148 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9149 (struct gdbarch_tdep): Add new fields for new registers and ABI
9150 info.
361d1df0 9151
283150cd
EZ
9152 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9153 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9154 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9155 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9156 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9157 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9158 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9159 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9160 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9161 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9162 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9163 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9164 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9165 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9166 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9167 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9168 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9169 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9170 sign_extend, sh64_nofp_frame_init_saved_regs,
9171 sh64_init_extra_frame_info, sh64_get_saved_register,
9172 sh64_extract_struct_value_address, sh64_pop_frame,
9173 sh64_push_arguments, sh64_extract_return_value,
9174 sh64_store_return_value, sh64_show_media_regs,
9175 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9176 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9177 sh_sh64_register_virtual_type,
9178 sh_sh64_register_convert_to_virtual,
9179 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9180 sh64_register_read, sh64_pseudo_register_write,
9181 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9182 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9183 sh64_do_pseudo_register, sh_compact_do_registers_info,
9184 sh64_do_registers_info, sh_gdbarch_init): New functions.
9185
3117ed25
EZ
91862002-05-10 Elena Zannoni <ezannoni@redhat.com>
9187
9188 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9189
2654e6d4
DJ
91902002-05-10 Daniel Jacobowitz <drow@mvista.com>
9191
9192 * linespec.c (decode_line_1): Check for a double quote after
9193 a filename correctly.
9194
9ab3e532
JB
91952002-05-10 Jim Blandy <jimb@redhat.com>
9196
9197 Properly track the size of the current objfile's .debug_line section.
9198 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9199 (DWARF_LINE_SIZE): New macro.
9200 (dwarf2_build_psymtabs_hard): Record the line section's size in
9201 the partial symbol table.
9202 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9203 symbol table.
9204
126fa72d
PS
92052002-05-10 Petr Sorfa <petrs@caldera.com>
9206
9207 * ia64-tdep.c: Handle breakpoints on L instruction type
9208 in MLX instruction bundle by moving the breakpoint to
9209 the third slot (X instruction type) as L holds only data.
9210
1f077a3e
KB
92112002-05-10 Kevin Buettner <kevinb@redhat.com>
9212
9213 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9214 (process_one_symbol): Complain about discarding local symbols
9215 due to a misplaced N_LBRAC entry.
9216
8120c9d5 92172002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9218
9219 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9220 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9221 decrease the depth we are at, in the case of templates.
361d1df0 9222
67b2c998
DJ
92232002-05-09 Daniel Jacobowitz <drow@mvista.com>
9224
9225 * mips-tdep.c (mips_float_register_type): New function.
9226 (mips_double_register_type): New function.
9227 (mips_print_register): Use them.
9228 (do_fp_register_row): Likewise.
9229
fd326606
DJ
92302002-05-09 Daniel Jacobowitz <drow@mvista.com>
9231
6609d9af 9232 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9233 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9234 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9235
bef35864
MS
92362002-05-09 Michael Snyder <msnyder@redhat.com>
9237
9238 * remote-rdp.c (remote_rdp_can_run): Remove.
9239
c55a3f73
TT
92402002-05-09 Tom Tromey <tromey@redhat.com>
9241
9242 * jv-valprint.c (java_val_print): Handle `char' as a special case
9243 of TYPE_CODE_INT.
9244
b8d5e71d
MS
92452002-05-09 Michael Snyder <msnyder@redhat.com>
9246
9247 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9248 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9249 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9250 str r(0123),[sp,#nn].
361d1df0 9251 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9252 order-independent by placing it in a loop.
9253
e2cd42dd
MS
92542002-05-06 Michael Snyder <msnyder@redhat.com>
9255
9256 * stabsread.c (read_type): Add recognition for new attribute:
9257 "@V;" means that an array type is actually a vector.
9258 This is analogous to the vector flag that's been added to dwarf2.
9259
3ce1502b
MK
92602002-05-09 Mark Kettenis <kettenis@gnu.org>
9261
9262 * i386-tdep.h (i386_abi): New enum.
9263 (struct gdbarch_tdep): Replace os_ident member with abi.
9264 (i386_gdbarch_register_os_abi): New prototype.
9265 * i386-tdep.c (i386_abi_names): New array.
9266 (process_note_abi_tag_sections): Removed.
9267 (process_note_sections): New function.
9268 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9269 (struct i386_abi_handler): New struct.
9270 (i386_abi_handler_list): New variable.
9271 (i386_gdbarch_register_os_abi): New function.
9272 (i386_gdbarch_init): Adapt for the changes given above.
9273
084c156a
DJ
92742002-05-08 Daniel Jacobowitz <drow@mvista.com>
9275
9276 * gregset.h: Say "GNU/Linux".
9277
6599f021
EZ
92782002-05-08 Elena Zannoni <ezannoni@redhat.com>
9279
9280 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9281 (build_gdbtypes): Build builtin_type_v2_float.
9282 (_initialize_gdbtypes): Register new builtin type.
9283
40af4b0c
AC
92842002-05-08 Andrew Cagney <ac131313@redhat.com>
9285
9286 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9287 (clear_gdbarch_swap): New function.
9288 (initialize_non_multiarch): Call.
9289 (gdbarch_update_p): Before calling init(), swap out and clear the
9290 existing architecture.
9291 * gdbarch.c: Regenerate.
9292
4fe84f46
JT
92932002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9294
9295 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9296 alphanbsd-tdep.c.
9297
4015edd1
JT
92982002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9299
9300 * sh-nbsd-nat.c: Rename to...
9301 * shnbsd-nat.c: ...this.
9302 * sh-nbsd-tdep.c: Rename to...
9303 * shnbsd-tdep.c: ...this.
9304 * sh-nbsd-tdep.h: Rename to...
9305 * shnbsd-tdep.h: ...this.
9306 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9307 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9308
0e2bd219
RE
93092002-05-08 Richard Earnshaw <rearnsha@arm.com>
9310
9311 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9312 concatenation for command help messages.
9313
13a38d45
JT
93142002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9315
9316 * NEWS: Note new sh*-*-netbsdelf* configuration.
9317 * configure.host: Set gdb_host_cpu to sh for all sh*.
9318 (sh*-*-netbsdelf*): New host.
9319 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9320 (sh*-*-netbsdelf*): New target.
9321 * sh-nbsd-nat.c: New file.
9322 * sh-nbsd-tdep.c: New file.
9323 * sh-nbsd-tdep.h: New file.
9324 * config/sh/nbsd.mh: New file.
9325 * config/sh/nbsd.mt: New file.
9326 * config/sh/nm-nbsd.h: New file.
9327 * config/sh/tm-nbsd.h: New file.
9328
d658f924
JT
93292002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9330
9331 * sh-tdep.c (sh_osabi_names): Declare.
9332 (process_note_abi_tag_sections): New function.
9333 (get_elfosabi): Ditto.
9334 (sh_gdbarch_register_os_abi): Ditto.
9335 (sh_dump_tdep): Ditto.
9336 _initialize_sh_tdep): Use gdbarch_register to register
9337 sh_gdbarch_init and sh_dump_tdep.
9338 * config/sh/tm-sh.h (sh_osabi): Declare.
9339 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9340
848cfffb
AC
93412002-05-07 Andrew Cagney <ac131313@redhat.com>
9342
9343 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9344 (thumb_scan_prologue): Ditto.
9345 (arm_find_callers_reg): Ditto.
9346 (arm_frame_chain): Ditto.
9347 (arm_init_extra_frame_info): Ditto.
9348 (arm_frame_saved_pc): Ditto.
9349 (arm_pop_frame): Ditto.
9350 (arm_push_return_address): New function.
9351 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9352 call_dummy_location, call_dummy_breakpoint_offset_p,
9353 call_dummy_breakpoint_offset, call_dummy_p,
9354 call_dummy_stack_adjust_p, call_dummy_words,
9355 sizeof_call_dummy_words, call_dummy_start_offset,
9356 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9357 call_dummy_address, push_return_address and push_dummy_frame for
9358 generic dummy frames.
9359
e7d717c0
JT
93602002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9361
9362 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9363 size computation for alloca.
9364 (sh_fp_frame_init_saved_regs): Likewise.
9365
7bbcf283
RE
93662002-05-07 Richard Earnshaw <rearnsha@arm.com>
9367
9368 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9369 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9370 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9371 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9372 * remote-rdp.c (remote_rdp_fetch_register): Use
9373 ARM_MAX_REGISTER_RAW_SIZE.
9374 (remote_rdp_store_register): Likewise.
9375
4657573b
ML
93762002-05-07 Michal Ludvig <mludvig@suse.cz>
9377
361d1df0 9378 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9379 added default labels to switch {} statements.
9380 * x86-64-tdep.c: Ditto.
9381 * x86-64-linux-nat.c: Ditto.
9382
010f3b2f
JT
93832002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9384
9385 * solib.h: Protect against multiple inclusion.
9386
debd256d
JB
93872002-05-06 Jim Blandy <jimb@redhat.com>
9388
9ab3e532
JB
9389 Add first preprocessor macro-expansion files.
9390 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9391 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9392 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9393 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9394 (COMMON_OBS): Add macrotab.o, macroexp.o.
9395 (macroexp.o, macrotab.o): New rules.
9396
debd256d
JB
9397 Separate the job of reading the line number info statement program
9398 header (...expialidocious) out into its own function.
9399 * dwarf2read.c (struct line_head, struct filenames, struct
9400 directories): Replace with...
9401 (struct line_header): New structure, containing the full
9402 contents of the statement program header, including the
9403 include directory and file name tables.
9404 (read_file_scope): If we have line number info, instead of just
9405 calling dwarf_decode_lines to do all the work, call
9406 dwarf_decode_line_header first to get a `struct line_header'
9407 containing the data in the statement program header, and then
9408 pass that to dwarf_decode_lines, which will pick up where that
9409 left off. Be sure to clean up the `struct line_header' object.
9410 (dwarf_decode_line_header, free_line_header, add_include_dir,
9411 add_file_name): New functions.
9412 (dwarf_decode_lines): Move all the code to read the statement
9413 program header into dwarf_decode_line_header. Take the line
9414 header it built as the first argument, instead of the offset to
9415 the compilation unit's line number info. Use the new `struct
9416 line_header' type instead of the old structures. No need to do
9417 cleanups here now, since we don't allocate anything.
9418 (dwarf2_statement_list_fits_in_line_number_section,
9419 dwarf2_line_header_too_long): New complaints.
9420
ac3aafc7
EZ
94212002-05-06 Elena Zannoni <ezannoni@redhat.com>
9422
9423 * gdbtypes.c (init_vector_type): New function.
9424 (build_builtin_type_vec128): Simplify the representation of SIMD
9425 registers.
9426 (build_gdbtypes): Initialize new builtin vector types.
9427 (_initialize_gdbtypes): Register new vector types with gdbarch.
9428 (builtin_type_v4_float, builtin_type_v4_int32,
9429 builtin_type_v8_int16, builtin_type_v16_int8,
9430 builtin_type_v2_int32, builtin_type_v4_int16,
9431 builtin_type_v8_int8): New (renamed) SIMD types.
9432
13e49980
MK
94332002-05-06 Mark Kettenis <kettenis@gnu.org>
9434
9435 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9436 (i387_fill_fxsave): Likewise.
9437
997b20b8
AO
94382002-05-05 Alexandre Oliva <aoliva@redhat.com>
9439
9440 * alpha-tdep.c (alpha_extract_return_value): Don't use
9441 non-constant array size in prototype.
9442
535c96ce
AC
94432002-05-04 Andrew Cagney <ac131313@redhat.com>
9444
9445 From Brian Taylor <briant at model dot com>:
9446 * ui-out.c (ui_out_field_core_addr): Use the function
9447 longest_local_hex_string_custom'to format addresses > 32 bits
9448 wide.
9449
9450 * ui-out.c (ui_out_field_core_addr): Update comment.
9451
bedfa57b
AC
94522002-05-04 Andrew Cagney <ac131313@redhat.com>
9453
9454 * stack.c (select_and_print_frame): Make static. Delete the
9455 parameter `level'.
9456 (func_command): Update call.
9457 (select_frame_command): Delete code computing the frame level.
9458 * frame.h (select_and_print_frame): Delete declaration.
9459
f621c63e
AC
94602002-05-04 Andrew Cagney <ac131313@redhat.com>
9461
9462 * sparc-tdep.c (sparc_get_saved_register): Comment why
9463 get_prev_frame call is safe.
9464
0f7d239c
AC
94652002-05-04 Andrew Cagney <ac131313@redhat.com>
9466
9467 * frame.h (select_frame): Delete level parameter.
9468 * stack.c (select_frame): Update. Use frame_relative_level to
9469 obtain the frame's level.
9470 (select_and_print_frame): Update call.
9471 (select_frame_command): Ditto.
9472 (up_silently_base): Ditto.
9473 (down_silently_base): Ditto.
9474 * ocd.c (ocd_start_remote): Ditto.
9475 * remote-rdp.c (remote_rdp_open): Ditto.
9476 * remote-mips.c (mips_initialize): Ditto.
9477 (common_open): Ditto.
9478 * remote-e7000.c (e7000_start_remote): Ditto.
9479 * m3-nat.c (select_thread): Ditto.
9480 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9481 (child_get_current_exception_event): Ditto.
9482 * varobj.c (varobj_create): Ditto.
9483 (varobj_update): Ditto.
9484 (c_value_of_root): Ditto.
9485 * tracepoint.c (finish_tfind_command): Ditto.
9486 * corelow.c (core_open): Ditto.
9487 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9488 * thread.c (info_threads_command): Ditto.
9489 (switch_to_thread): Ditto.
9490 * infrun.c (normal_stop): Ditto.
9491 (restore_selected_frame): Ditto.
9492 (restore_inferior_status): Ditto.
9493 * breakpoint.c (insert_breakpoints): Ditto.
9494 (watchpoint_check): Ditto.
9495 (bpstat_stop_status): Ditto.
9496 (do_enable_breakpoint): Ditto.
9497 * blockframe.c (flush_cached_frames): Ditto.
9498 (reinit_frame_cache): Ditto.
9499
71d6c7b1
AC
95002002-05-04 Andrew Cagney <ac131313@redhat.com>
9501
9502 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9503 maintainer.
9504
cda6c68a
JB
95052002-05-04 Jim Blandy <jimb@redhat.com>
9506
9507 * gdbtypes.c (replace_type): Doc fix.
9508
5c1c87f0
AC
95092002-05-04 Andrew Cagney <ac131313@redhat.com>
9510
9511 * valprint.c (strcat_longest): Delete commented out function.
9512 Update copyright.
9513
cd9bfe15
AC
95142002-05-04 Andrew Cagney <ac131313@redhat.com>
9515
9516 * MAINTAINERS: Mark a29k as deleted.
9517 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9518 Move new configurations to the top.
9519 * configure.tgt: Remove a29k.
9520 * config/a29k/tm-vx29k.h: Delete.
9521 * config/a29k/vx29k.mt: Delete.
9522 * config/a29k/tm-a29k.h: Delete.
9523 * config/a29k/a29k-udi.mt: Delete.
9524 * config/a29k/a29k.mt: Delete.
9525 * a29k-tdep.c: Delete.
9526 * remote-udi.c: Delete.
9527 * remote-mm.c: Delete.
9528 * remote-eb.c: Delete.
9529 * remote-adapt.c: Delete.
9530 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9531 * config/s390/s390x.mt: Ditto.
9532 * config/s390/s390.mt: Ditto.
9533 * config/sparc/sparclynx.mh: Ditto.
9534 * config/sparc/linux.mh: Ditto.
9535 * config/pa/hppaosf.mh: Ditto.
9536 * config/pa/hppabsd.mh: Ditto.
9537 * config/ns32k/nbsd.mt: Ditto.
9538 * config/mips/vr5000.mt: Ditto.
9539 * config/m68k/sun3os4.mh: Ditto.
9540 * config/m68k/nbsd.mt: Ditto.
9541 * config/m68k/m68klynx.mh: Ditto.
9542 * config/m32r/m32r.mt: Ditto.
9543 * config/i386/x86-64linux.mt: Ditto.
9544 * config/i386/nbsdelf.mt: Ditto.
9545 * config/i386/nbsd.mt: Ditto.
9546 * config/i386/i386lynx.mh: Ditto.
9547
bf0c5130
AC
95482002-05-04 Andrew Cagney <ac131313@redhat.com>
9549
9550 * target.c (debug_print_register): New function. Handle oversize
9551 registers.
9552 (debug_to_fetch_registers): Call.
9553 (debug_to_store_registers): Call.
9554
2ae1c2d2
JB
95552002-05-03 Jim Blandy <jimb@redhat.com>
9556
13a393b0
JB
9557 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9558 (read_type): Doc fix.
9559 * gdbtypes.c (replace_type): Doc fix.
9560
2ae1c2d2
JB
9561 * stabsread.c (multiply_defined_struct): New complaint.
9562 (read_struct_type): If the type we were passed isn't empty, or
9563 incomplete, don't read the new struct type into it; complain,
9564 and return the original type unchanged. Take a new `type_code'
9565 argument, which is the type code for the new type.
9566 (read_type): Rather than storing the type's type code here, pass
9567 it as an argument to read_struct_type, and let that take care of
9568 storing it. That way, we don't overwrite the original type code,
9569 so read_struct_type can use it to decide whether we're overwriting
9570 something we shouldn't.
9571 (complain_about_struct_wipeout): New function.
9572
8de9bdc4
AC
95732002-05-03 Andrew Cagney <ac131313@redhat.com>
9574
9575 * gdbarch.sh: Assert that gdbarch is non-NULL.
9576 * gdbarch.c: Regenerate.
9577
f773fdbb
JM
95782002-05-03 Jason Merrill <jason@redhat.com>
9579
9580 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9581 and return NULL.
9582
0e04a514
ML
95832002-05-03 Michal Ludvig <mludvig@suse.cz>
9584
9585 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9586 (x86_64_dwarf2gdb_regno_map_length),
9587 (x86_64_dwarf2_reg_to_regnum): Added.
9588 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9589 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9590 (_initialize_x86_64_tdep): Synced with the change above.
9591 (x86_64_skip_prologue): Reformulated message.
9592
065432a8
PM
95932002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9594
9595 * f-exp.y: Also use new prev_lexptr variable
9596 to improve error reporting. Based on Michael Snyder
9597 2002-04-24 dated patch to c-exp.y.
9598 * jv-exp.y: Likewise.
9599 * m2-exp.y: Likewise.
9600
a3162708
EZ
96012002-05-02 Elena Zannoni <ezannoni@redhat.com>
9602
9603 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9604 we are dealing with vectors.
9605
03620c38
PM
96062002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9607
9608 * config/m68k/tm-nbsd.h: Obvious fix,
9609 correct machine name.
9610
6604db2e
PM
96112002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9612
9613 * p-typeprint.c (pascal_type_print_base): Add support
9614 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9615
0906b739
PM
96162002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9617
9618 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9619 for fondamental pascal 'char' type.
9620
e2625b33
PM
96212002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9622
9623 * p-lang.h (is_pascal_string_type): Declaration changed,
9624 new sixth argument of type char ** added.
361d1df0 9625 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9626 changed. Args length_pos, length_size, string_pos, char_size
9627 can now be NULL. New argument arrayname set to the field
9628 name of the char array. Return value set to char array
9629 field index plus one.
361d1df0 9630 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9631 is_pascal_string_type function.
9632
cf17c188
AC
96332002-05-02 Andrew Cagney <cagney@redhat.com>
9634
9635 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9636 <cagney@redhat.com> change.
9637 * gdbarch.c: Regenerate.
9638
52bca491
AC
96392002-05-02 Andrew Cagney <cagney@redhat.com>
9640
9641 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9642 before probing for a new one. Detect errorenous gdbarch_init
9643 functions.
9644 * gdbarch.c: Regenerate.
9645
d5e72505
AC
96462002-05-01 Andrew Cagney <cagney@redhat.com>
9647
9648 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9649 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9650 * config/v850/tm-v850.h: Ditto. Update copyright.
9651
af566d9f
AC
96522002-04-30 Andrew Cagney <ac131313@redhat.com>
9653
9654 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9655 current_gdbarch.
9656
880d85fa
MS
96572002-04-30 Michael Snyder <msnyder@redhat.com>
9658
94c30b78
MS
9659 * arm-tdep.c: Whitespace clean-ups.
9660 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9661 should have been removed as part of 4/24 change.
9662
6f5987a6
KB
96632002-04-30 Kevin Buettner <kevinb@redhat.com>
9664
9665 * rs6000-tdep.c: Added comment describing how fpscr register
9666 numbers were chosen.
9667
1a113c93
MS
96682002-04-30 Michael Snyder <msnyder@redhat.com>
9669
9670 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9671
9a6f53fe
EZ
96722002-04-29 Elena Zannoni <ezannoni@redhat.com>
9673
9674 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9675 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9676 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9677
11ed25ac
KB
96782002-04-29 Kevin Buettner <kevinb@redhat.com>
9679
9680 From Louis Hamilton <hamilton@redhat.com>:
9681 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9682 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9683 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9684 not bfd-private xcoff data, to determine wordsize.
9685 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9686
ae232405
AC
96872002-04-29 Andrew Cagney <ac131313@redhat.com>
9688
9689 GDB 5.2 released from 5.2 branch.
9690
91fd20f7
ML
96912002-04-29 Michal Ludvig <mludvig@suse.cz>
9692
9693 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9694 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9695 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9696
2dc5091b
EZ
96972002-04-29 Elena Zannoni <ezannoni@redhat.com>
9698
9699 * rs6000-tdep.c (rs6000_extract_return_value,
9700 rs6000_store_return_value): Handle returning vectors.
9701 (rs6000_gdbarch_init): Use
9702 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9703 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9704 New function.
9705 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9706 vectors.
9707 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9708 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9709
2b9848d8
PM
97102002-04-24 Pierre Muller <ics.u-strasbg.fr>
9711
9712 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9713 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9714 with fprintf_unfiltered (gdb_stderr,...).
9715
f8d17dc5
PM
97162002-04-24 Pierre Muller <ics.u-strasbg.fr>
9717
9718 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9719 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9720 Replace fprintf (stderr,...
9721 with fprintf_unfiltered (gdb_stderr,....
9722 * remote-es.c: Likewise.
9723 * remote-os9k.c: Likewise.
9724 * remote-st.c: Likewise.
9725
2f2f1ad1
AS
97262002-04-28 Andreas Schwab <schwab@suse.de>
9727
9728 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9729 linux-proc.o and gcore.o.
9730
b6779aa2
AC
97312002-04-26 Michal Ludvig <mludvig@suse.cz>
9732
9733 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9734 code without frame pointers.
9735
7e57f5f4
AC
97362002-04-26 Andrew Cagney <ac131313@redhat.com>
9737
9738 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9739 ON_STACK is needed.
9740
2ceb85d0
BE
97412002-04-26 Ben Elliston <bje@redhat.com>
9742
9743 * target.c (do_xfer_memory): Correct reference to the new option
9744 "trust-readonly-sections".
9745
f5f8a009
EZ
97462002-04-26 Elena Zannoni <ezannoni@redhat.com>
9747
9748 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9749 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9750 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9751 vectors.
9752 (read_array_type): Record the fact that this array type is really a
9753 vector (i.e. are passed in by value).
9754
5868c862
JT
97552002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9756
9757 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9758 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9759 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9760 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9761 * alpha-linux-tdep.c: Include frame.h.
9762 (alpha_linux_sigcontext_addr): New function.
9763 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9764 alpha_linux_sigcontext_addr.
9765 * alpha-osf1-tdep.c: Include gdbcore.h.
9766 (alpha_osf1_sigcontext_addr): New function.
9767 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9768 alpha_osf1_sigcontext_addr.
9769 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9770 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9771
bfb01f37
AC
97722002-04-26 Andrew Cagney <ac131313@redhat.com>
9773
361d1df0 9774 * stack.c (selected_frame_level):
bfb01f37
AC
9775 (select_frame): Do not set selected_frame_level.
9776 * frame.h (selected_frame_level): Delete declaration.
9777
15813d3f
AC
97782002-04-26 Andrew Cagney <ac131313@redhat.com>
9779
9780 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9781 convert_from_func_ptr-addr when AIX / PowerOpen.
9782
6096c27a
AC
97832002-04-25 Andrew Cagney <ac131313@redhat.com>
9784
9785 * valops.c (hand_function_call): Call
9786 generic_save_call_dummy_addr.
9787 * frame.h (generic_save_call_dummy_addr): Declare.
9788 * blockframe.c (struct dummy_frame): Add fields call_lo and
9789 call_hi.
9790 (generic_find_dummy_frame): Check for PC in range call_lo to
9791 call_hi instead of entry_point_address.
9792 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9793 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9794 (generic_save_call_dummy_addr): New function.
9795
f510d44e
DM
97962002-04-24 David S. Miller <davem@redhat.com>
9797
9798 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9799 sparc_skip_prologue.
9800 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9801 information to find prologue when possible.
9802 (sparc_prologue_frameless_p): Call examine_prologue directly.
9803 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9804 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9805 second argument.
9806 (SKIP_PROLOGUE): Likewise.
9807
15d72a92
JT
98082002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9809
9810 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9811 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9812 indicate that the condition it was testing is always true.
9813 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9814 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9815 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9816
accc6d1f
JT
98172002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9818
9819 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9820 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9821 tdep->jb_pc and tdep->jb_elt_size.
9822 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9823 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9824 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9825 * alpha-nat.c (get_longjmp_target): Remove.
9826 (JB_ELEMENT_SIZE): Ditto.
9827 (JB_PC): Ditto.
9828 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9829 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9830 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9831 to alpha_get_longjmp_target.
9832 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9833 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9834 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9835
1bfdc549
AC
98362002-04-25 Andrew Cagney <ac131313@redhat.com>
9837
9838 * README: Update to GDB 5.2.
9839
1bd316f0
AC
98402002-04-25 Andrew Cagney <ac131313@redhat.com>
9841
9842 * gdbarch.sh (LC_ALL): Set to `c'.
9843
2e5ff58c
TR
98442002-04-25 Theodore A. Roth <troth@verinet.com>
9845
9846 * avr-tdep.c: Ran through gdb_indent.sh.
9847
e33ce519
TR
98482002-04-25 Theodore A. Roth <troth@verinet.com>
9849
9850 * MAINTAINERS: Add myself as AVR maintainer.
9851 * NEWS: Note new target avr.
9852
8818c391
TR
98532002-04-25 Theodore A. Roth <troth@verinet.com>
9854
9855 * Makefile.in: Add support for AVR target.
9856 * configure.tgt: Add support for AVR target.
9857 * avr-tdep.c: New file
9858 * config/avr/avr.mt: New file.
9859
79509c2d
TR
98602002-04-25 Theodore A. Roth <troth@verinet.com>
9861
9862 * MAINTAINERS: Add myself to write-after-approval.
9863
dac8068e
PM
98642002-04-24 Pierre Muller <ics.u-strasbg.fr>
9865
9866 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9867 with fprintf_unfiltered (gdb_stderr,....
9868
25bf3106
PM
98692002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9870
9871 Fix PR gdb/508.
9872 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9873
24467a86
PM
98742002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9875
9876 * p-exp.y: Also use new prev_lexptr variable
9877 to improve error reporting. Based on Michael Snyder
9878 2002-04-24 dated patch to c-exp.y.
9879
95b80706
JT
98802002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9881
9882 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9883 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9884 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9885 to 0.
9886 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9887 and struct value.
9888 (FUNCTION_START_OFFSET): Remove.
9889 (BREAKPOINT): Ditto.
9890
e90cc612
JT
98912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9892
9893 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9894 * NEWS: Ditto.
9895
6c72f9f9
JT
98962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9897
9898 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9899 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9900 alpha_linux_pc_in_sigtramp.
9901 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9902 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9903 alpha_osf1_pc_in_sigtramp.
9904 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9905 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9906 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9907 alphafbsd_pc_in_sigtramp.
9908 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9909 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9910 alphanbsd_pc_in_sigtramp.
9911 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9912 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9913
5e4f3379
JT
99142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9915
9916 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9917
da8ca43d
JT
99182002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9919
9920 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9921 alphanbsd-tdep.c.
9922 (alphanbsd-nat.o): New dependency list.
9923 (alphanbsd-tdep.o): Ditto.
9924 * NEWS: Note new native NetBSD/alpha configuration.
9925 * alphanbsd-nat.c: New file.
9926 * alphanbsd-tdep.c: Ditto.
9927 * configure.host (alpha*-*-netbsd*): New host.
9928 * configure.tgt (alpha*-*-netbsd*): New target.
9929 * config/alpha/nbsd.mh: New file.
9930 * config/alpha/nbsd.mt: Ditto.
9931 * config/alpha/nm-nbsd.h: Ditto.
9932 * config/alpha/tm-nbsd.h: Ditto.
9933
36a6271d
JT
99342002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9935
9936 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9937 (alpha-osf1-tdep.o): New dependency list.
9938 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9939 and skip_sigtramp_frame members.
9940 * alpha-linux-tdep.c: Include gdbcore.h.
9941 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9942 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9943 * alpha-osf1-tdep.c: New file.
9944 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9945 alpha-osf1-dep.c.
9946 (alpha_frame_past_sigtramp_frame): New function.
9947 (alpha_dynamic_sigtramp_offset): Ditto.
9948 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9949 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9950 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9951 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9952 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9953 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9954 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9955 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9956 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9957 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9958 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9959 to find_solib_trampoline_target.
9960 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9961 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9962 (SKIP_TRAMPOLINE_CODE): Remove.
9963 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9964 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9965 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9966 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9967 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9968 (PROC_SIGTRAMP_MAGIC): Ditto.
9969 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9970 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9971 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9972 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9973 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9974
2f4bc57b
JT
99752002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9976
9977 * NEWS: Note that Alpha targets are now multi-arch.
9978
665132f9
MS
99792002-04-24 Michael Snyder <msnyder@redhat.com>
9980
9981 * parser-defs.h (prev_lexptr): New external variable.
9982 * parse.c (parse_exp_1): Set prev_lexptr to null before
9983 calling the language-specific parser.
9984 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9985 (yyerror): Use prev_lexptr in error reporting.
9986
32872fa7
DJ
99872002-04-24 Daniel Jacobowitz <drow@mvista.com>
9988
9989 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9990 * gregset.h: If FILL_FPXREGSET is defined, provide
9991 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9992 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9993 is defined, call fill_fpxregset.
9994
57e76fac
MS
99952002-04-24 Roland McGrath <roland@frob.com>
9996
9997 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9998 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9999 (supply_gregset, supply_fpregset): New functions.
10000
10001 * gnu-nat.c (gnu_find_memory_regions): New function.
10002 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10003 (gnu_xfer_memory): Add a cast.
10004
f43845b3
MS
100052002-04-24 Michael Snyder <msnyder@redhat.com>
10006
361d1df0 10007 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10008 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10009 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10010 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10011 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10012 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10013
a0abec03
AC
10014Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10015
10016 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10017 NUM_PSEUDO_REGS can be used.
10018
d7bd68ca
AC
100192002-04-24 Andrew Cagney <ac131313@redhat.com>
10020
10021 * arch-utils.h: Update copyright.
10022
10023 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10024 * gdbarch.h, gdbarch.c: Re-generate.
10025
10026 * inferior.h (IN_SIGTRAMP): Delete definition.
10027 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10028 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10029
10030 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10031 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10032 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10033 (find_proc_framesize): Ditto.
10034 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10035 (alpha_init_extra_frame_info): Ditto.
10036 * infrun.c (handle_inferior_event): Ditto.
10037 (handle_inferior_event): Ditto.
10038 (check_sigtramp2): Ditto.
10039 * blockframe.c (create_new_frame): Ditto.
10040 (get_prev_frame): Ditto.
10041 * ppc-linux-tdep.c: Update comments.
10042 * i386-linux-tdep.c: Update comments.
10043 * breakpoint.c (bpstat_what): Update comment.
10044
4867e41e
DM
100452002-04-24 David S. Miller <davem@redhat.com>
10046
21d83aa5
DM
10047 * i960-tdep.c (register_in_window_p): New function.
10048 (i960_find_saved_register): Use it instead of
10049 REGISTER_IN_WINDOW_P.
10050 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10051
4867e41e
DM
10052 * symtab.h (find_stab_function_addr): Kill extern.
10053 * minsyms.c (find_stab_function_addr): Remove from here...
10054 * dbxread.c: ... to here, and mark it static.
10055
69cdf6a2
DM
100562002-04-20 David S. Miller <davem@redhat.com>
10057
10058 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10059 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10060
5a595886
DM
100612002-04-21 David S. Miller <davem@redhat.com>
10062
10063 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10064 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10065 (vx_write_register): Likewise.
10066
1da1a192
JB
100672002-04-23 J. Brobecker <brobecker@gnat.com>
10068
10069 * source.c (is_regular_file): New function.
10070 (openp): Check wether file to open is a regular file
10071 to avoid opening directories.
10072
baa6f10b
JT
100732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10074
10075 * findvar.c (extract_signed_integer): Cast printf argument
10076 to suppress format warning.
10077 (extract_unsigned_integer): Likewise.
10078 * infcmd.c (registers_info): Likewise.
10079 * top.c (get_prompt_1): Likewise.
10080 * valops.c (value_assign): Likewise.
10081 * valprint.c (print_decimal): Likewise.
10082
b2c4da81
L
100832002-04-22 H.J. Lu (hjl@gnu.org)
10084
10085 * c-exp.y (typebase): Support
361d1df0 10086
b2c4da81
L
10087 [long|long long|short] [signed|unsigned] [int|]
10088
10089 and
10090
10091 signed [long|long long|short] int
10092
f267bd6a
JT
100932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10094
10095 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10096 and vax-tdep.h.
10097 * vax-tdep.h: New file.
10098 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10099 Make several routines static.
10100 (vax_get_saved_register): New function.
10101 (vax_gdbarch_init): New function.
10102 (_initialize_vax_tdep): Register vax_gdbarch_init.
10103 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10104 Remove macros now under the control of gdbarch.
10105
da3c6d4a
MS
101062002-04-22 Michael Snyder <msnyder@redhat.com>
10107
11d3b27d
MS
10108 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10109 Some whitespace and coding standards tweaks.
da3c6d4a 10110
a33f7558
JT
101112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10112
10113 * vax-tdep.c: Include regcache.h.
10114 (vax_call_dummy_words): New.
10115 (sizeof_vax_call_dummy_words): New.
10116 (vax_fix_call_dummy): New function.
10117 (vax_saved_pc_after_call): Ditto.
10118 * config/vax/tm-vax.h: Don't include regcache.h.
10119 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10120 (CALL_DUMMY): Remove.
10121 (CALL_DUMMY_WORDS): Define.
10122 (SIZEOF_CALL_DUMMY_WORDS): Define.
10123 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10124
47a73475
MS
101252002-04-18 Michael Snyder <msnyder@redhat.com>
10126
10127 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10128
52efde73
JT
101292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10130
10131 * vax-tdep.c (vax_frame_chain): New function.
10132 (vax_push_dummy_frame): Ditto.
10133 (vax_pop_frame): Ditto.
10134 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10135 (FRAMELESS_FUNCTION_INVOCATION): Use
10136 generic_frameless_function_invocation_not.
10137 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10138 (POP_FRAME): Use vax_pop_frame.
10139
ea74468c
JT
101402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10141
10142 * vax-tdep.c (vax_store_struct_return): New function.
10143 (vax_extract_return_value): Ditto.
10144 (vax_store_return_value): Ditto.
10145 (vax_extract_struct_value_address): Ditto.
10146 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10147 vax_store_struct_return.
10148 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10149 (STORE_RETURN_VALUE): Use vax_store_return_value.
10150 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10151
5516aa92
JT
101522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10153
10154 * vax-tdep.c (vax_frame_saved_pc): New function.
10155 (vax_frame_args_address_correct): Ditto.
10156 (vax_frame_args_address): Ditto.
10157 (vax_frame_locals_address): Ditto.
10158 (vax_frame_num_args): Move code to be in proximity to
10159 other frame-related functions.
10160 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10161 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10162 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10163 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10164 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10165
36af0b35
L
101662002-04-22 H.J. Lu (hjl@gnu.org)
10167
10168 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10169 includedir.
10170
ab62c900
JT
101712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10172
10173 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10174 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10175 (FRAME_INIT_SAVED_REGS): New macro.
10176
7232b100
JT
101772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10178
10179 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10180
b70d2aee
JT
101812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10182
10183 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10184 where needed.
10185 (fetch_osf_core_registers): Likewise.
10186 (supply_gregset): Likewise.
10187
a0e8a2d1 101882002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10189
a0e8a2d1
JB
10190 * symfile.h (get_section_index): Define.
10191 * symfile.c (get_section_index): New function.
10192 * mdebugread.c (SC_IS_SBSS): New macro.
10193 (SC_IS_BSS): Return true for the scBss storage class only, as
10194 the scSBss storage class refers to the .sbss section.
10195 (parse_partial_symbols): Discard the symbols which associated
10196 section does not exist.
10197 Make sure to use the .sbss section index for symbols which
10198 storage class is scBss, rather than using the .bss section index.
10199
51eb8b08
JT
102002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10201
10202 * vax-tdep.c: Update copyright years.
10203 (vax_register_name): New function.
10204 (vax_register_byte): Ditto.
10205 (vax_register_raw_size): Ditto.
10206 (vax_register_virtual_size): Ditto.
10207 (vax_register_virtual_type): Ditto.
10208 * config/vax/tm-vax.h: Update copyright years.
10209 (REGISTER_NAMES): Remove.
10210 (REGISTER_NAME): Define.
10211 (REGISTER_BYTE): Use vax_register_byte.
10212 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10213 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10214 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10215
6cc1c0a8
AC
102162002-04-21 Andrew Cagney <ac131313@redhat.com>
10217
10218 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10219 declaration
10220 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10221
9319a2fe
DM
102222002-04-21 David S. Miller <davem@redhat.com>
10223
10224 * arch-utils.c (generic_prologue_frameless_p): Kill
10225 SKIP_PROLOGUE_FRAMELESS_P code.
10226 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10227 references.
10228 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10229 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10230 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10231 references.
10232 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10233 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10234 (sparc_gdbarch_init): Pass it to
10235 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10236
e9ed6d01
JT
102372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10238
10239 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10240 (alphabsd-nat.o): New dependency list.
10241
36012033
JT
102422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10243
10244 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10245 alphafbsd-tdep.c.
10246 (alpha-linux-tdep.o): New dependency list.
10247 (alphafbsd-tdep.o): Likewise.
10248
3379287a
JT
102492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10250
10251 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10252 to here...
10253 * alpha-tdep.c: ...from here.
10254 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10255
4bcbd6cb
JT
102562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10257
10258 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10259 prototype from here...
10260 * alpha-tdep.h: ...to here.
10261
b31da25e
AC
102622002-04-21 Andrew Cagney <ac131313@redhat.com>
10263
10264 * frame.h (selected_frame_level): Document as deprecated.
10265 (frame_relative_level): Declare.
10266 * stack.c (frame_relative_level): New function.
10267 (selected_frame_level): Document as deprecated.
10268 (select_frame): Do not set the selected_frame_level.
10269
10270 * stack.c (frame_info, record_selected_frame): Update.
10271 (frame_command, current_frame_command): Update.
10272 (up_silently_base, up_command, down_silently_base): Update.
10273 (down_command): Update.
10274 * inflow.c (kill_command): Update.
10275 * tracepoint.c (finish_tfind_command): Update.
10276 * corelow.c (core_open): Update.
10277 * thread.c (info_threads_command): Update.
10278 (do_captured_thread_select): Update.
10279 * infcmd.c (finish_command): Update.
10280 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10281
9c1d6fe5
JT
102822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10283
10284 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10285
ab89facf
AC
102862002-04-21 Andrew Cagney <ac131313@redhat.com>
10287
10288 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10289 type const.
10290
82a4efa1
JT
102912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10292
10293 * alphafbsd-tdep.c: Update copyright years. Include
10294 alpha-tdep.h.
10295 (alphafbsd_use_struct_convention): Make static.
10296 (alphafbsd_init_abi): New function.
10297 (_initialize_alphafbsd_tdep): New function.
10298 * config/alpha/tm-fbsd.h: Update copyright years.
10299 (USE_STRUCT_CONVENTION): Remove.
10300
44dffaac
JT
103012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10302
10303 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10304 an Alpha ABI variant.
10305 (alpha_abi_handler_list): Declare.
10306 (alpha_gdbarch_register_os_abi): New function.
10307 (alpha_gdbarch_init): Give registered ABI variant handlers a
10308 chance to tweak the gdbarch once we have set up defaults.
10309 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10310
65585be4
JT
103112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10312
10313 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10314 to standard_coerce_float_to_double.
10315 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10316
d9b023cc
JT
103172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10318
10319 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10320 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10321 from gdbarch_tdep rather than a constant.
10322 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10323 the default text address for all Alpha Unix ABIs.
10324 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10325 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10326
dc129d82
JT
103272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10328
10329 * alpha-tdep.h: New file. Includes several Alpha target constants
10330 taken from...
10331 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10332 let gdbarch deal with.
10333 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10334 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10335 to dependency list.
10336 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10337 Alpha target register names.
10338 * alphabsd-nat.c: Likewise.
10339 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10340 Alpha target register names. Make serveral routines static.
10341 (alpha_get_saved_register): New function.
10342 (alpha_abi_names): New.
10343 (process_note_abi_tag_sections): New function.
10344 (get_elfosabi): New function.
10345 (alpha_gdbarch_init): New function.
10346 (alpha_dump_tdep): New function.
10347 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10348
d49d1e0a
AC
103492002-04-21 Andrew Cagney <ac131313@redhat.com>
10350
10351 * frame.c (find_saved_register): Delete #ifdef
10352 HAVE_REGISTER_WINDOWS code.
10353 * config/sparc/tm-sparc.h: Update comments.
10354 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10355
92e8c9ed
AC
103562002-04-21 Andrew Cagney <ac131313@redhat.com>
10357
10358 * i960-tdep.c (i960_find_saved_register): New function.
10359 (i960_get_saved_register): New function.
10360 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10361 (i960_get_saved_register): Declare.
10362 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10363
e1925118
DM
103642002-04-20 David S. Miller <davem@redhat.com>
10365
10366 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10367
29673b29
AC
103682002-04-20 Andrew Cagney <ac131313@redhat.com>
10369
10370 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10371 instead of NUM_PSEUDO_REGS.
10372
6c86dcd5
DM
103732002-04-20 David S. Miller <davem@redhat.com>
10374
10375 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10376 GDB_MULTI_ARCH_PARTIAL
10377 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10378 define, let tm-sp64.h do it.
10379
aa40ec90
JT
103802002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10381
10382 * frame.c (find_saved_register): Avoid a NULL pointer
10383 dereference and actually walk the frame list.
10384
0f79675b
AC
103852002-04-20 Andrew Cagney <ac131313@redhat.com>
10386
10387 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10388 sorted in most most-recent-used order. Document.
10389 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10390
f91305dd 103912002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10392
10393 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10394 instead of ->prev.
10395 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10396 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10397 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10398 instead of ->prev.
10399
73d322b1
EZ
104002002-04-19 Elena Zannoni <ezannoni@redhat.com>
10401
10402 Fix PR gdb/471.
10403 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10404 (build_builtin_type_vec128): Ditto.
10405 (append_composite_type_field): Fix calculation of type length in
10406 union case.
10407
ccd9a834
EZ
104082002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10409
10410 * config/djgpp/README: Update.
10411
10412 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10413 compiler warnings.
10414
a57f9e49
JT
104152002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10416
10417 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10418 (alpha_setup_arbitrary_frame): ...to this.
10419 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10420 for alpha_setup_arbitrary_frame.
10421
f4f9705a
AC
104222002-04-18 Andrew Cagney <cagney@redhat.com>
10423
10424 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10425 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10426
f4f9705a
AC
10427 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10428 * target.h (memory_breakpoint_from_pc): Update declaration.
10429 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10430
10431 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10432 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10433 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10434 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10435 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10436 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10437 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10438 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10439 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10440 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10441 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10442 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10443
10444 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10445 const pointer.
10446 * monitor.c (monitor_insert_breakpoint): Ditto.
10447 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10448
10449 * config/mcore/tm-mcore.h: Update copyright.
10450 * mem-break.c: Ditto.
10451 * xstormy16-tdep.c: Ditto.
10452
29f319b8
PM
104532002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10454
10455 * p-exp.y: Add precedence rule for '^' token.
10456 This removes the shift/reduce conflicts.
10457 Remove the comment concerning these shift/reduce conflicts.
10458
ebeac11a
EZ
104592002-04-18 Elena Zannoni <ezannoni@redhat.com>
10460
10461 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10462 (registers_powerpc_nofp): New register set for processors
10463 without floating point unit.
10464
27c31547
DM
104652002-04-18 David S. Miller <davem@redhat.com>
10466
10467 * MAINTAINERS: Add myself to write-after-approval.
10468
47a73475
MS
104692002-04-17 Michael Snyder <msnyder@redhat.com>
10470
10471 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10472
953836b2
AC
104732002-04-17 Andrew Cagney <ac131313@redhat.com>
10474
10475 * rs6000-tdep.c (frame_initial_stack_address): Use
10476 frame_register_read to read the alloca_reg.
10477
8b0d4340
AC
104782002-04-17 Andrew Cagney <ac131313@redhat.com>
10479
10480 * frame.c (find_saved_register): Find saved registers in the next
10481 not prev frame.
10482 Fix PR gdb/365.
10483
d8864532
AC
104842002-04-17 Andrew Cagney <ac131313@redhat.com>
10485
10486 * gdbarch.sh (LANG): Set to ``c''.
10487
36cc83a3 104882002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10489
36cc83a3 10490 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10491
2f4150cc 104922002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10493
10494 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10495 Update copyright.
10496
628703c6 10497 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10498 Also fix PR gdb/391.
361d1df0 10499
56157b4a
AC
105002002-04-14 Andrew Cagney <ac131313@redhat.com>
10501
10502 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10503 * aclocal.m4, configure: Re-generate.
10504 Fix PR gdb/391.
361d1df0 10505
6d1e3329
EZ
105062002-04-14 Elena Zannoni <ezannoni@redhat.com>
10507
10508 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10509 instead of tm_print_insn.
10510
cb06fa07
EZ
105112002-04-14 Elena Zannoni <ezannoni@redhat.com>
10512
10513 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10514
f208ba17
AC
105152002-04-14 Andrew Cagney <ac131313@redhat.com>
10516
10517 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10518 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10519 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10520
20f01a46
DH
105212002-04-12 Don Howard <dhoward@redhat.com>
10522
10523 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10524 max_user_call_depth.
10525 (init_cmd_lists): Initialize the new value;
10526 * cli/cli-script.c (execute_user_command): Limit the call depth of
10527 user defined commands. This avoids a core-dump when user commands
10528 are infinitly recursive.
10529
a88376a3
KB
105302002-04-12 Kevin Buettner <kevinb@redhat.com>
10531
10532 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10533 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10534 from tdep struct instead of DEFAULT_LR_SAVE.
10535 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10536 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10537 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10538
f2172603
MS
105392002-04-12 Michael Snyder <msnyder@redhat.com>
10540
694f61fb 10541 * Remote.c: Spelling fix.
20fe79c8
MS
10542 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10543 If no symbol found for "sbrk", try "_sbrk".
10544 (make_output_phdrs): Use bfd_section_name.
10545 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10546 * eval.c: Indentation fix-ups.
169a7369
MS
10547 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10548 in case it gets applied to an address that is already
10549 in the instruction space.
de74f71f
MS
10550 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10551 * symfile.c: Fix indentation, long lines.
f2172603
MS
10552 * source.c: White space fix-up.
10553
cda5a58a
AC
105542002-04-12 Andrew Cagney <cagney@redhat.com>
10555
10556 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10557 * frame.c (frame_register_read): New function. Return non-zero on
10558 success.
10559 (read_relative_register_raw_bytes_for_frame): Delete.
10560 (read_relative_register_raw_bytes): Delete.
10561 * frame.h (frame_register_read): Declare.
10562 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10563 * sh-tdep.c: Ditto.
10564 * infcmd.c (do_registers_info): Ditto.
10565 * hppa-tdep.c: Ditto.
10566 * rs6000-tdep.c: Ditto.
10567 * h8500-tdep.c: Ditto.
10568 * mips-tdep.c: Ditto.
10569 * h8300-tdep.c: Ditto.
10570 * z8k-tdep.c: Ditto.
10571
2ea5f656
KB
105722002-04-12 Kevin Buettner <kevinb@redhat.com>
10573
10574 From Jimi X <jimix@watson.ibm.com>:
10575 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10576 64-bit SysV ABI.
10577
27b15785
KB
105782002-04-12 Kevin Buettner <kevinb@redhat.com>
10579
10580 From Jimi X <jimix@watson.ibm.com>:
10581 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10582 bfd info.
10583
5d57ee30
KB
105842002-04-12 Kevin Buettner <kevinb@redhat.com>
10585
10586 From Jimi X <jimix@watson.ibm.com>:
10587 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10588 register sets for these processor variants.
10589
bc1e36ca
DJ
105902002-04-11 Daniel Jacobowitz <drow@mvista.com>
10591
bc1e36ca
DJ
10592 * regformats/reg-ppc.dat: Support FPSCR.
10593
e3f36dbd
KB
105942002-04-11 Kevin Buettner <kevinb@redhat.com>
10595
10596 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10597 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10598 Add fpscr as an invalid/unfetchable register.
10599 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10600 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10601 (fill_fpregset): Add support for register fpscr.
10602 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10603 (fill_gregset): Account for the fact that register ``mq'' might
10604 not exist.
10605 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10606 (registers_power): Add fpscr to register set at slot 71.
10607 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10608 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10609
943c9c25
MS
106102002-04-11 Michael Snyder <msnyder@redhat.com>
10611
10612 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10613 * configure: Regenerate.
10614 * config.in: Regenerate.
10615 * acconfig.h: Add define for _SYSCALL32.
10616 * core-sol2.c: Remove #define _SYSCALL32.
10617 * solib-legacy.c: Remove #define _SYSCALL32.
10618
d8c0a2e7
AC
106192002-04-10 Andrew Cagney <ac131313@redhat.com>
10620
10621 * stack.c (select_frame): Cleanup internal error message, do not
10622 use %p.
10623
7cc19214
AC
106242002-04-10 Andrew Cagney <ac131313@redhat.com>
10625
10626 * stack.c (select_frame): Check that selected_frame and the
10627 specified level are as expected.
10628 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10629 Update copyright.
10630 * frame.h (struct frame_info): Add field `level'. Update
10631 copyright.
10632 Work-in-progress PR gdb/464.
10633
67a2b77e
AC
106342002-04-10 Andrew Cagney <ac131313@redhat.com>
10635
10636 * maint.c (maint_print_section_info): Rename print_section_info.
10637 (print_bfd_section_info, print_objfile_section_info): Update.
10638 * inferior.h (struct gdbarch): Add opaque declaration.
10639 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10640 * gdbarch.h: Regenerate.
10641
8cfda98c
ML
106422002-04-10 Michal Ludvig <mludvig@suse.cz>
10643
10644 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10645 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10646 (kernel_u_size): Added.
10647 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10648 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10649
ca439ad2 106502002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10651
ca439ad2
JI
10652 * valarith.c (find_size_for_pointer_math): New function, either returns
10653 the size for a pointer's target, returns 1 for void *, or errors for
10654 incomplete types.
10655 (value_add, value_sub): use find_size_for_pointer_math.
10656
2f2893d9
DJ
106572002-04-09 Daniel Jacobowitz <drow@mvista.com>
10658
10659 * linux-low.c (linux_look_up_symbols): New hook.
10660 (linux_target_ops): Add linux_look_up_symbols.
10661 * remote-utils.c (decode_address): New function.
10662 (look_up_one_symbol): New function.
10663 * server.c (handle_query): Call target look_up_symbols hook.
10664 * server.h (look_up_one_symbol): Add prototype.
10665 * target.h (struct target_ops): Add look_up_symbols hook.
10666
96cb11df
AC
106672002-04-09 Andrew Cagney <ac131313@redhat.com>
10668
10669 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10670 override FP_REGNUM with frame->fp. Update copyright.
10671 * parse.c (num_std_regs, std_regs): Delete.
10672 (target_map_name_to_register): Do not search std_regs. Update
10673 function description.
10674 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10675 declarations. Update copyright.
10676 Fix PR gdb/251.
361d1df0 10677
97658e92
DJ
106782002-04-09 Daniel Jacobowitz <drow@mvista.com>
10679
10680 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10681 after the last symbol in a block.
10682
6044e3eb
PM
106832002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10684
10685 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10686 is non zero as a found symbol.
10687
0406ec40
AC
106882002-04-08 Andrew Cagney <ac131313@redhat.com>
10689
10690 * findvar.c: Include "builtin-regs.h".
10691 (value_of_register): Call value_of_builtin_reg when applicable.
10692 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10693 (target_map_name_to_register): Call
10694 builtin_reg_map_name_to_regnum.
10695 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10696 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10697 (builtin_regs_h): Define.
10698 (builtin-regs.o): New target.
10699 (findvar.o): Add $(builtin_regs_h).
10700 * builtin-regs.c, builtin-regs.h: New files.
10701 * std-regs.c: New file.
10702 Partial fix for PR gdb/251.
10703
56a6dfb9
KB
107042002-04-08 Kevin Buettner <kevinb@redhat.com>
10705
10706 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10707 it's no longer required.
10708
3a808432
AC
107092002-04-08 Andrew Cagney <ac131313@redhat.com>
10710
10711 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10712
7c40d541
KB
107132002-04-08 Kevin Buettner <kevinb@redhat.com>
10714
10715 From Jimi X <jimix@watson.ibm.com>:
10716 * rs6000-tdep.c (rs6000_software_single_step): Use
10717 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10718 and size. Use target_insert_breakpoint() and
10719 target_remove_breakpoint() to insert and remove breakpoints
10720 instead of explicit memory reads and writes.
10721
cc9836a8
KB
107222002-04-08 Kevin Buettner <kevinb@redhat.com>
10723
10724 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10725 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10726 ELF_OBJECT_FORMAT ifdef.
10727
7495d1dc
KB
107282002-04-08 Kevin Buettner <kevinb@redhat.com>
10729
10730 From Jimi X <jimix@watson.ibm.com>:
10731 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10732
4288e836
KB
107332002-04-08 Kevin Buettner <kevinb@redhat.com>
10734
10735 From Jimi X <jimix@watson.ibm.com>:
10736 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10737 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10738
a4e4e501
MK
107392002-04-07 Mark Kettenis <kettenis@gnu.org>
10740
10741 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10742 s/asprintf/xasprintf/.
10743 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10744
006defba
AC
107452002-04-07 Andrew Cagney <ac131313@redhat.com>
10746
10747 I believe Jeff Law denies responsability for this one:
10748 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10749 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10750 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10751 Work-around for PR gdb/366.
10752
7aa83cac
EZ
107532002-04-07 Elena Zannoni <ezannoni@redhat.com>
10754
10755 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10756 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10757 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10758
cf1fcca1
EZ
107592002-04-07 Elena Zannoni <ezannoni@redhat.com>
10760
10761 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10762 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10763 information.
10764
3f289e6f
AC
107652002-04-07 Andrew Cagney <ac131313@redhat.com>
10766
10767 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10768 maintainer.
10769
129188f6
AC
107702002-04-07 Andrew Cagney <ac131313@redhat.com>
10771
10772 * README (Reporting Bugs in GDB): Document the bug web page as the
10773 prefered way of submitting bugs.
10774 Fix PR gdb/402.
10775
1200cd6e
AC
107762002-04-06 Andrew Cagney <ac131313@redhat.com>
10777
10778 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10779 -1. Update comment.
10780 * gdbarch.h, gdbarch.c: Re-generate.
10781
2853c33c
AS
107822002-04-07 Andreas Schwab <schwab@suse.de>
10783
10784 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10785 buffer to regcache_collect.
10786
c2169756
AC
107872002-04-06 Andrew Cagney <ac131313@redhat.com>
10788
10789 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10790 * gdbarch.c, gdbarch.h: Re-generate.
10791
25f1b008
AC
107922002-04-06 Andrew Cagney <ac131313@redhat.com>
10793
10794 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10795 declaration. Fix -Werror.
10796
59263426
DJ
107972002-04-05 Daniel Jacobowitz <drow@mvista.com>
10798
10799 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10800 * gdbarch.c: Regenerate.
10801
f5db4da3
MS
108022002-04-05 Michael Snyder <msnyder@redhat.com>
10803
80f8a6eb
MS
10804 * breakpoint.c (clear_command): Rewrite middle section to
10805 combine two loops with identical control conditions.
10806 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10807 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10808
ad3dcc5c
L
108092002-04-05 H.J. Lu (hjl@gnu.org)
10810
10811 * solib-svr4.c (bkpt_names): Add "__start".
10812
f32e7a74
AC
108132002-04-04 Andrew Cagney <ac131313@redhat.com>
10814
10815 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10816 as test for 64 bit target.
10817
8227c0ff
AC
108182002-04-05 Andrew Cagney <ac131313@redhat.com>
10819
10820 * h8500-tdep.c (h8500_write_fp): Delete function.
10821 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10822 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10823 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10825 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10826 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10827 (s390_write_fp):
10828 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10829 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10830 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10831 (d10v_write_fp): Delete function.
10832 * inferior.h (write_fp, generic_target_write_fp): Delete
10833 declarations.
10834 * regcache.c (generic_target_write_fp): Delete function.
10835 (write_fp): Delete function.
10836 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10837 * gdbarch.h, gdbarch.c: Regenerate.
10838 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10839 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10840 (sparc64_write_fp): Delete declaration.
10841 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10842 (h8500_write_fp): Delete declaration.
10843
2757dd86
AC
108442002-04-04 Andrew Cagney <ac131313@redhat.com>
10845
10846 * sparc-tdep.c (sparc64_write_fp): Delete.
10847 (sparc_push_dummy_frame): Replace write_fp call with code to store
10848 the FP directly.
10849 (sparc_gdbarch_init): Do not initialize write_fp.
10850
c69255e1
KB
108512002-04-05 Kevin Buettner <kevinb@redhat.com>
10852
10853 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10854 clause.
10855
ae767bfb
JB
108562002-03-29 Jim Blandy <jimb@redhat.com>
10857
10858 * stack.c (get_selected_block): Add new argument `addr_in_block',
10859 used to return the exact code address we used to select the block,
10860 not just the block.
10861 * blockframe.c (get_frame_block, get_current_block): Same.
10862 * frame.h (get_frame_block, get_current_block,
10863 get_selected_block): Update declarations.
10864 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10865 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10866
84d2ac95
MS
108672002-04-05 Michael Snyder <msnyder@redhat.com>
10868
10869 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10870 warning message.
10871
596aa3bf
JB
108722002-04-05 J. Brobecker <brobecker@gnat.com>
10873
10874 * utils.c (xfullpath): New function.
10875 * defs.h (xfullpath): Add declaration.
10876 * source.c (openp): Use xfullpath in place of gdb_realpath to
10877 avoid resolving the basename part of filenames when the
10878 associated file is a symbolic link. This fixes a potential
10879 inconsistency between the filenames known to GDB and the
10880 filenames it prints in the annotations.
10881 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10882 to be able to match a filename with either the real filename, or
10883 the name of any symbolic link to this file.
10884 (lookup_partial_symtab): Ditto.
10885
c02f5703
MS
108862002-04-04 Michael Snyder <msnyder@redhat.com>
10887
10888 * breakpoint.c: Add support for hardware breakpoints in overlays.
10889 (overlay_events_enabled): New state variable.
10890 (insert_breakpoints): Use overlay_events_enabled to decide
10891 whether to attempt to set a breakpoint at the overlay load addr.
10892 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10893 (remove_breakpoint): Use overlay_events_enabled to decide
10894 whether breakpoints need to be removed from overlay load addr.
10895 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10896 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10897 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10898 disable_overlay_breakpoints): Update overlay_events_enabled.
10899
5fb290d7
DJ
109002002-04-04 Daniel Jacobowitz <drow@mvista.com>
10901
10902 * dwarf2read.c (struct function_range): New.
10903 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10904 (check_cu_functions): New.
10905 (read_file_scope): Initialize global function lists.
10906 Call dwarf_decode_line after processing children.
10907 (read_func_scope): Add to global function list.
10908 (dwarf_decode_lines): Call check_cu_functions everywhere
10909 record_line is called. Call record_line with a linenumber
10910 of 0 to mark sequence ends.
10911
7b3fabf0
ML
109122002-04-04 Michal Ludvig <mludvig@suse.cz>
10913
361d1df0 10914 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10915 change sync with glibc.
10916
bce58c09
JB
109172002-04-03 Jim Blandy <jimb@redhat.com>
10918
10919 * configure.in: Call AC_C_INLINE.
10920 * configure: Regenerated.
361d1df0 10921
2fccf04a
DJ
109222002-04-01 Daniel Jacobowitz <drow@mvista.com>
10923
10924 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10925 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10926
2d1bfe2e
MK
109272002-03-31 Mark Kettenis <kettenis@gnu.org>
10928
a5941fbf
MK
10929 * NEWS: Mention gcore support on FreeBSD/i386.
10930
a90cd31d
MK
10931 * fbsd-proc.c: New file.
10932 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10933 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10934
2d1bfe2e
MK
10935 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10936 while statement.
10937
9eb6e5a1
JB
109382002-03-29 Jim Blandy <jimb@redhat.com>
10939
10940 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10941 unescaped newlines in string literals, but newer ones don't. So
10942 escape them.
10943
f02df580
MS
109442002-03-26 Michael Snyder <msnyder@redhat.com>
10945 Andrew Cagney <cagney@redhat.com>
10946
361d1df0 10947 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10948 restore file to memory.
10949 * cli/cli-dump.h: New file.
10950 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10951 * NEWS: Mention new commands.
f02df580 10952
109f874e
MS
109532002-03-28 Michael Snyder <msnyder@redhat.com>
10954
10955 * symfile.c (symbol_file_add): Move test for null symbols to later.
10956
520f6ade
AC
109572002-03-27 Andrew Cagney <ac131313@redhat.com>
10958
10959 From veksler at il.ibm.com:
10960 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10961 the xstrduped original path.
10962 Fix PR gdb/417.
10963
d4654627
MS
109642002-03-27 Michael Snyder <msnyder@redhat.com>
10965
10966 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10967 * infcmd.c (_initialize_infcmd): Ditto.
10968 * language.c (_initialize_language): Ditto.
10969 * symfile.c (_initialize_symfile): Ditto.
10970 * top.c (_init_main): Ditto.
10971 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10972
6be8bc0c
EZ
109732002-03-27 Elena Zannoni <ezannoni@redhat.com>
10974
10975 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10976 vector registers handling.
10977 (skip_prologue): Handle new AltiVec instructions. Fill in new
10978 fields of frame data.
10979 (frame_get_saved_regs): Fill in information for AltiVec registers.
10980
12af6855
JB
109812002-03-27 Jim Blandy <jimb@redhat.com>
10982
10983 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10984 a function; leave this macro here to invoke that function.
10985 (symbol_init_mangled_name): Declaration for that function.
10986 * symtab.c (symbol_init_mangled_name): New function.
10987
dc672865
AC
109882002-03-27 Andrew Cagney <ac131313@redhat.com>
10989
10990 * valarith.c: Replace strerror with safe_strerror.
10991 * tracepoint.c: Ditto.
10992 * lin-lwp.c: Ditto.
10993 * go32-nat.c: Ditto.
10994 * inflow.c: Ditto.
10995 * gnu-nat.c: Ditto.
10996
d96429cd
AS
109972002-03-27 Andreas Schwab <schwab@suse.de>
10998
10999 * event-top.c (command_line_handler): Remove useless if.
11000
7e336ba1
AJ
110012002-03-27 Andreas Jaeger <aj@suse.de>
11002
11003 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11004 comment.
11005
de220d0f
ML
110062002-03-27 Michal Ludvig <mludvig@suse.cz>
11007
11008 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11009 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11010 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11011 (x86_64_linux_dr_get_status, supply_gregset),
11012 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11013 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11014 (x86_64_register_info_table): Add.
11015 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11016 (x86_64_register_raw_size, x86_64_register_virtual_type),
11017 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11018 general x86_64_register_info_table.
11019 (i386_gdbarch_init): gdbarch_register_bytes is now set
11020 dynamicaly during initialization.
11021 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11022 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11023
0e98d0a7
DJ
110242002-03-27 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * gdbserver/server.c (main): Call target_signal_to_host_p
11027 and target_signal_to_host on signals received from the remote.
11028 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11029 target_signal_from_host on signals sent to the remote.
11030 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11031 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11032
3130066b
DJ
110332002-03-27 Daniel Jacobowitz <drow@mvista.com>
11034
11035 * signals/signals.c: Include "server.h" in gdbserver build.
11036 (target_signal_from_name): Don't use STREQ.
11037 (_initialize_signals): Likewise. Don't include function in
11038 gdbserver build.
11039
9aedf4f4
DJ
110402002-03-27 Daniel Jacobowitz <drow@mvista.com>
11041
11042 * signals.c: Moved to...
11043 * signals/signals.c: Here.
7e336ba1 11044 * Makefile (signals.o): Update.
9aedf4f4 11045
3fa41cdb
JL
110462002-03-26 Jeff Law (law@redhat.com)
11047
11048 * somread.c (som_symtab_read): Remove some commented out code and
11049 updated related comments. Do not set the minimal symbol table to
11050 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11051 in a dynamic executable.
11052 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11053 where we are unable to find the minimal symbol for the given
11054 PC value.
11055
ee677e8d
MS
110562002-03-25 Jeff Law (law@redhat.com)
11057
11058 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11059
e76e1718
ML
110602002-03-25 Michal Ludvig <mludvig@suse.cz>
11061
11062 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11063
18a642a1
AC
110642002-03-23 Andrew Cagney <ac131313@redhat.com>
11065
11066 * command.h: Update copyright.
11067 (struct cmd_list_element): Replace definition with opaque
11068 declaration.
11069 (enum cmd_types): Document that it will eventually be moved to
11070 cli/cli-decode.h
11071 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11072 (MALLOCED_REPLACEMENT): Delete macro.
11073 * Makefile.in (cli_decode_h): Add $(command_h).
11074 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11075 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11076 * completer.c: Include "cli/cli-decode.h".
11077 * maint.c: Include "cli/cli-decode.h".
11078 * cli/cli-decode.h: Include "command.h".
11079 (enum command_class): Delete.
11080 (enum cmd_types): Comment out.
11081 (enum cmd_auto_boolean): Delete.
11082 (enum var_types): Delete.
11083
b2875cc0
AC
110842002-03-23 Andrew Cagney <ac131313@redhat.com>
11085
11086 * cli/cli-decode.c: Include "gdb_assert.h".
11087 (add_set_or_show_cmd): New static function.
11088 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11089 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11090 all fields, such as func, from the set command.
11091
3b45974e
AC
110922002-03-23 Andrew Cagney <ac131313@redhat.com>
11093
11094 * MAINTAINERS (sh-elf): Change warning flag to -w.
11095
823ca731
AC
110962002-03-23 Andrew Cagney <cagney@redhat.com>
11097
11098 * defs.h (error): Add printf format attribute.
11099 * thread-db.c (thread_from_lwp): Fix error format string.
11100 * stack.c (parse_frame_specification): Ditto.
11101 * cli/cli-decode.c (undef_cmd_error): Ditto.
11102 * scm-lang.c (scm_lookup_name): Ditto.
11103 * tracepoint.c (trace_error): Ditto.
11104 * remote-utils.c (usage): Ditto.
11105 * remote.c (compare_sections_command): Ditto.
11106 Fix PR gdb/328.
11107
0e101458
AC
111082002-03-22 Andrew Cagney <ac131313@redhat.com>
11109
11110 * gdbtypes.c (append_composite_type_field): New function.
11111 (init_composite_type): New function.
11112 * gdbtypes.h (append_composite_type_field): Declare.
11113 (init_composite_type): Ditto.
11114
8e0662df
EZ
111152002-03-22 Elena Zannoni <ezannoni@redhat.com>
11116
11117 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11118 function.
8e0662df
EZ
11119 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11120 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11121 structure returning convention for SYSV ABI case, but not
11122 for GNU/Linux, FreeBSD, or NetBSD.
11123
3121eff0
DJ
111242002-03-22 Daniel Jacobowitz <drow@mvista.com>
11125
11126 * symtab.h (lookup_block_symbol): Add mangled_name argument
11127 to prototype.
11128
11129 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11130 with new mangled_name argument.
11131 * linespec.c (decode_line_1): Likewise.
11132 * valops (value_of_this): Likewise.
11133 * symtab.c (lookup_transparent_type): Likewise.
11134 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11135 (lookup_symbol): If we are given a mangled name, pass it down
11136 to lookup_symbol_aux.
11137 (lookup_block_symbol): If we are given a mangled name to check
11138 against, only return symbols which match it.
11139
349b409f
CF
111402002-03-22 Christopher Faylor <cgf@redhat.com>
11141
11142 * win32-nat.c (child_create_inferior): Check for proper shell to use
11143 here, in case the user changes it on the fly.
11144 (_initialize_inftarg): Remove shell path considerations.
11145
2a873819
EZ
111462002-03-21 Elena Zannoni <ezannoni@redhat.com>
11147
11148 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11149 for gdbarch_max_register_raw_size and max_register_virtual_size.
11150 Adjust copyright year.
11151
a1b9830c
DJ
111522002-03-21 Daniel Jacobowitz <drow@mvista.com>
11153
11154 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11155 in a function to cover the entire beginning of the function
11156 as well if it does not already.
11157
8b5790f2
TR
111582002-03-21 Tom Rix <trix@redhat.com>
11159
11160 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11161 (rs6000_ptrace64): Renamed from ptrace64.
11162
bdbe5747
MH
111632002-03-20 Martin M. Hunt <hunt@redhat.com>
11164
11165 * gdbserver/remote-utils.c (remote_open): Don't call
11166 getprotobyname, we're all using TCP here so just use
11167 IPPROTO_TCP.
7e336ba1 11168 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11169
111702002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11171
bdbe5747
MH
11172 * regcache.c (_initialize_regcache): No need to call
11173 build_regcache() at this time; it gets called whenever
11174 the gdbarch changes.
11175
7781cd62
DB
111762002-03-20 David O'Brien <obrien@FreeBSD.org>
11177
11178 * sparc-nat.c: Include sys/param.h where possible.
11179
f65ca430
DJ
111802002-03-20 Daniel Jacobowitz <drow@mvista.com>
11181
11182 Fix PR gdb/422.
11183 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11184 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11185 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11186 complex types.
11187 * stabsread.c (rs6000_builtin_type): Likewise.
11188 (read_sun_floating_type): Likewise.
11189
0c867556
PS
111902002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11191
11192 * stabsread.c (read_member_functions): Remove skip code for duplicate
11193 constructor/destructor methods. Use standard parsing for these
11194 methods and just do not chain them to the list of methods after
11195 parsing.
11196
12b9c64f
AO
111972002-03-19 Alexandre Oliva <aoliva@redhat.com>
11198
11199 * coffread.c: Remove redundant static declarations. Replace
11200 occurrences of `PTR' with `void *'.
11201 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11202 * top.h (quit_cover): Likewise.
11203 * defs.h (catch_errors): Likewise.
11204
349c5d5f
AC
112052002-03-18 Andrew Cagney <ac131313@redhat.com>
11206
11207 * defs.h (XMALLOC): Define.
11208 * gdb-events.sh (XMALLOC): Delete macro.
11209 * gdb-events.c, gdb-events.h: Regenerate.
11210 * gdbarch.sh (XMALLOC): Delete macro.
11211 * gdbarch.c: Regenerate.
11212 * serial.c (XMALLOC): Delete macro.
11213 * ui-file.c (XMALLOC): Ditto.
11214 * ser-unix.h (XMALLOC): Ditto.
11215 * sh-tdep.c (XMALLOC): Ditto.
11216 * ui-out.c (XMALLOC): Ditto.
11217 * utils.c (XMALLOC): Ditto.
11218 * i386-tdep.c (XMALLOC): Ditto.
11219 * gdb-events.c (XMALLOC): Ditto.
11220 * d10v-tdep.c (XMALLOC): Ditto.
11221 * cli-out.c (XMALLOC): Ditto.
11222
11223 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11224 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11225 * ui-file.c, ui-out.c: Ditto.
11226
7d0766f3
AC
112272002-03-18 Andrew Cagney <ac131313@redhat.com>
11228
11229 * command.h (struct cmd_list_element): Add field context.
11230 (set_cmd_context, get_cmd_context): Declare.
11231 * cli/cli-decode.h: Ditto.
11232 * cli/cli-decode.c (get_cmd_context): New function.
11233 (set_cmd_context): New function.
11234 (add_cmd): Initialize context.
11235 Part of fixing PR gdb/145 and PR gdb/146.
11236
5913bcb0
AC
112372002-03-17 Andrew Cagney <ac131313@redhat.com>
11238
1868c04e
AC
11239 * cli/cli-decode.c (cmd_type): New function.
11240 * command.h (cmd_type): Declare.
11241 * infrun.c (set_schedlock_func): Call function cmd_type.
11242 * kod.c (kod_set_os): Call cmd_type.
11243 * cris-tdep.c (cris_version_update): Use function cmd_type.
11244 (cris_mode_update, cris_abi_update): Ditto.
11245
5913bcb0
AC
11246 * command.h: (execute_cmd_post_hook): Declare.
11247 (execute_cmd_pre_hook): Declare.
11248 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11249 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11250 functions. Execute pre/post hook while ensuring that afterwords
11251 hook_in is cleared.
11252 * top.c (execute_command): Use execute_cmd_post_hook, and
11253 execute_cmd_pre_hook to execute pre/post commands.
11254 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11255 hook_stop_stub.
11256 (hook_stop_stub): Call execute_cmd_pre_hook.
11257
b51450c9
AC
112582002-03-17 Andrew Cagney <ac131313@redhat.com>
11259
11260 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11261 set'' and this leads to a core dump. Move xstrdup of
11262 operating_system to after check that it is not NULL.
11263
f66c9f11
AC
112642002-03-17 Andrew Cagney <ac131313@redhat.com>
11265
8e694ecf
AC
11266 * kod.c (kod_set_os): Remove unnecessary check that
11267 ``command->type'' is set_cmd.
11268
f66c9f11
AC
11269 * valprint.c (set_input_radix): Use input_radix.
11270 (set_output_radix): Use output_radix.
11271 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11272 isn't reverted.
11273
9d01611c
AC
112742002-03-16 Andrew Cagney <ac131313@redhat.com>
11275
11276 * value.h (struct value): Delete field ``substring_addr''. Change
11277 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11278 force_core_addr_align and force_pointer_aligh.
11279
11280 * value.h (struct value): Fix typo in above change.
9d01611c 11281
4156bb53
PS
112822002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11283
11284 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11285 to fix internal_error from ``maintenance print architecture''.
11286
0e5e3ea6
PS
112872002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11288
11289 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11290 for gcc versions after gcc-2.8.1.
11291
9b013045
PS
112922002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11293
11294 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11295 for method resolution. Restore adjustment of ``this'' pointer after
11296 calling value_struct_elt, which was accidentally removed during the
11297 HP merge.
11298
376c9600
AC
112992002-03-15 Andrew Cagney <ac131313@redhat.com>
11300
11301 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11302 value_of_register.
11303 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11304 get_saved_register.
11305 * value.h (value_of_register): Update.
11306
a4db0f07
RH
113072002-03-14 Richard Henderson <rth@redhat.com>
11308
11309 * configure.in: Detect declaration for canonicalize_file_name.
11310 * utils.c (canonicalize_file_name): Declare, if needed.
11311 (gdb_realpath): Prefer realpath if available and usable.
11312 * config.in, configure: Rebuild.
11313
96383835
RH
113142002-03-14 Richard Henderson <rth@redhat.com>
11315
11316 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11317 a constant array bound.
11318
11319 * MAINTAINERS: Add myself to write-after-approval.
11320
75245b24
MS
113212002-03-14 Michael Snyder <msnyder@redhat.com>
11322
11323 * symfile.c (syms_from_objfile): Return immediately if no syms.
11324 (symbol_file_add): Return immediately if no syms.
11325 (find_sym_fns): Return immediately if no syms.
11326
e641a1ca
ML
113272002-03-13 Michal Ludvig <mludvig@suse.cz>
11328
11329 * gdbserver/remote-util.c (remote_open): Print remote-side's
11330 IP address when remote debugging over the network.
7e336ba1 11331
df08bfec
DB
113322002-03-12 David O'Brien <obrien@FreeBSD.org>
11333
11334 * config/sparc/fbsd.mh: Fix copyright.
11335 * config/sparc/fbsd.mt: Likewise.
11336
9a57864f
RE
113372002-03-11 Richard Earnshaw <rearnsha@arm.com>
11338
11339 * MAINTAINERS: Fix typo in name of gdb warnings option.
11340 (x86-64): Fix formating so that this can be parsed by awk.
11341
dd7bf85e
DJ
113422002-03-10 Daniel Jacobowitz <drow@mvista.com>
11343
11344 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11345 * defs.h: Include "gdb/signals.h".
11346 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11347
33a0a2ac
ML
113482002-03-10 Michal Ludvig <mludvig@suse.cz>
11349
11350 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11351 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11352 from x86-64-tdep.h
11353
dd824b04
DJ
113542002-03-10 Daniel Jacobowitz <drow@mvista.com>
11355 Don Howard <dhoward@redhat.com>
11356
11357 * mips-tdep.c (ST0_FR): Define.
11358 (mips2_fp_compat): New function, temporarily disabled.
11359 (mips_read_fp_register_single): New function.
11360 (mips_read_fp_register_double): New function.
11361 (mips_print_register): Use them.
11362 (do_fp_register_row): Likewise.
11363
6a41ff59
AC
113642002-03-09 Andrew Cagney <ac131313@redhat.com>
11365
11366 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11367 approval''.
11368
4ea09c10
PS
113692002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11370
11371 * stabsread.c (read_member_functions): Fix is_stub test for
11372 static member functions, improve comment.
11373
6ccc741d
RE
113742002-03-07 Richard Earnshaw <rearnsha@arm.com>
11375
11376 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11377 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11378 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11379 commands that set boolean values.
11380 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11381 (arm_rdi_resume): Always initialize PC.
11382 (arm_rdi_open): Don't use rslt as a boolean.
11383 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11384 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11385 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11386 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11387
438013df
AO
113882002-03-06 Alexandre Oliva <aoliva@redhat.com>
11389
11390 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11391 * configure: Rebuilt.
11392
70ed8774
SC
113932002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11394
11395 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11396 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11397
5ba2abeb
AC
113982002-03-06 Andrew Cagney <ac131313@redhat.com>
11399
11400 * cli/cli-decode.c (set_cmd_completer): New function.
11401 * command.h (set_cmd_completer): Declare.
11402 * cli/cli-decode.h (set_cmd_completer): Ditto.
11403
11404 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11405 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11406 * win32-nat.c (_initialize_inftarg): Ditto.
11407 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11408 * proc-api.c (_initialize_proc_api): Ditto.
11409 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11410 * source.c (_initialize_source): Ditto.
11411 * exec.c (_initialize_exec): Ditto.
11412 * solib.c (_initialize_solib): Ditto.
11413 * top.c (init_main): Ditto.
11414 * tracepoint.c (_initialize_tracepoint): Ditto.
11415 * symfile.c (_initialize_symfile): Ditto.
11416 * printcmd.c (_initialize_printcmd): Ditto.
11417 * infcmd.c (_initialize_infcmd): Ditto.
11418 * corefile.c (_initialize_core): Ditto.
11419
f779ca99
AC
114202002-03-05 Andrew Cagney <ac131313@redhat.com>
11421
11422 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11423
01a3934b
AC
114242002-03-05 Andrew Cagney <ac131313@redhat.com>
11425
11426 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11427
37057839
AC
114282002-03-05 Andrew Cagney <ac131313@redhat.com>
11429
11430 * NEWS: Update headings, 5.2 has branched.
11431
c6ecbae5
DJ
114322002-03-04 Daniel Jacobowitz <drow@mvista.com>
11433
11434 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11435 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11436 (register_addr, REGISTER_RAW_SIZE): Likewise.
11437 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11438 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11439
e9f30c21
ML
114402002-03-03 Michal Ludvig <mludvig@suse.cz>
11441
11442 * MAINTAINERS (x86-64): Add myself.
11443 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11444 changed value_ptr -> struct value *
11445
54394ac3
DB
114462002-03-01 David O'Brien <obrien@FreeBSD.org>
11447
11448 * configure.host (sparc64-*-freebsd): Add.
11449 * configure.tgt: Likewise.
11450 * config/sparc/fbsd.mh: New file.
11451 * config/sparc/fbsd.mt: Likewise.
11452 * config/sparc/nm-fbsd.h: Likewise.
11453 * config/sparc/tm-fbsd.h: Likewise.
11454
bfe95955
DJ
114552002-03-01 Daniel Jacobowitz <drow@mvista.com>
11456
11457 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11458 regformats/reg-s390x.dat.
11459
f33c6cbf
AC
114602002-03-01 Andrew Cagney <ac131313@redhat.com>
11461
11462 * utils.c: Add FIXME explaining true/false problem.
11463
5ecaa7dd
AC
114642002-02-28 Andrew Cagney <ac131313@redhat.com>
11465
11466 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11467
2a251cc2
MC
114682002-02-28 Michael Chastain <mec@shout.net>
11469
11470 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11471
6a8031a3 114722002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11473
11474 * gdbserver/linux-s390-low.c: New file.
11475 * regformats/reg-s390.dat: New file.
11476 * regformats/reg-s390x.dat: New file.
11477 * gdbserver/configure.srv: Add S/390.
11478 * gdbserver/Makefile.in: Add S/390.
11479 * configure.tgt: Enable gdbserver for S/390.
11480
ac469903
EZ
114812002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11482
11483 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11484 first line of the doc string for "info dos", except at the end of
11485 the sentence, since the short help stops at the first period.
11486
985cb1a3
JM
114872002-02-28 Jason Merrill <jason@redhat.com>
11488
11489 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11490
c570663e
FF
114912002-02-27 Fred Fish <fnf@redhat.com>
11492
11493 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11494 comment (dumy -> dummy).
11495
43630227
PS
114962002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11497
11498 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11499
b84911e8
RB
115002002-02-27 Rodney Brown <rbrown64@csc.com.au>
11501
11502 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11503
58caa3dc
DJ
115042002-02-27 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * gdbserver/acconfig.h: New file.
11507 * gdbserver/i387-fp.c: New file.
11508 * gdbserver/i387-fp.h: New file.
11509 * gdbserver/linux-x86-64.c: New file.
11510 * regformats/reg-x86-64.dat: New file.
11511 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11512 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11513 * gdbserver/configure.in: Add support for regsets.
11514 * gdbserver/config.in: Regenerate.
11515 * gdbserver/configure: Regenerate.
11516 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11517 * gdbserver/linux-low.h: New file.
11518 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11519 for regsets.
11520 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11521 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11522 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11523 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11524 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11525 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11526 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11527 "i387-fp.h". Add PTRACE_GETREGS and friends.
11528 * gdbserver/regcache.c (supply_register): New function.
11529 (supply_register_by_name): New function.
11530 (collect_register): New function.
11531 (collect_register_by_name): New function.
11532
93652174
DJ
115332002-02-27 Daniel Jacobowitz <drow@mvista.com>
11534
11535 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11536 (config.status): Add configure.srv dependency.
11537 (server_h): Add config.h dependency.
11538
a02e4a61
DJ
115392002-02-27 Daniel Jacobowitz <drow@mvista.com>
11540
11541 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11542 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11543 * gdbserver/configure.srv: Change i386-*-linux* to use
11544 reg-i386-linux.o.
11545
ce0eebec
AC
115462002-02-26 Andrew Cagney <ac131313@redhat.com>
11547
11548 * x86-64-tdep.c: Re-indent. Update copyright date.
11549
82dbc5f7
AC
115502002-02-26 Andrew Cagney <ac131313@redhat.com>
11551
11552 From Michal Ludvig <mludvig@suse.cz>:
11553 * x86-64-tdep.c (value.h): Delete.
11554 (gdb_assert.h): Include.
11555 (x86_64_register_convert_to_virtual,
11556 x86_64_register_convert_to_raw ): Add check which lets only
11557 floating-point values to be converted.
11558 (value_push): Delete.
11559 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11560 (i386_gdbarch_init): Number of register_bytes fixed.
11561
e4621584
AC
115622002-02-26 Andrew Cagney <ac131313@redhat.com>
11563
11564 * MAINTAINERS: Add x86-64 target.
11565
81a9a963
AC
115662002-02-26 Andrew Cagney <ac131313@redhat.com>
11567
11568 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11569 * osfsolib.c (solib_map_sections): Ditto.
11570 * irix5-nat.c (solib_map_sections): Ditto.
11571 * corelow.c (gdb_check_format): Ditto.
11572 * symfile.c (symfile_bfd_open): Ditto.
11573 * solib.c (solib_map_sections): Ditto.
11574 Fix PR gdb/354.
7e336ba1 11575
0f017ab9
AC
115762002-02-26 Andrew Cagney <ac131313@redhat.com>
11577
11578 * remote.c (_initialize_remote): By default, disable ``e'' and
11579 ``E'' step out-of-range packets.
11580
75738c29
AS
115812002-02-26 Andreas Schwab <schwab@suse.de>
11582
11583 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11584 m68k_linux_frame_saved_pc.
11585 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11586 in_sigtramp.
11587 (SIGCONTEXT_PC_OFFSET): Remove.
11588 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11589 m68k_linux_sigtramp_saved_pc): New functions.
11590 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11591 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11592 (UCONTEXT_PC_OFFSET): Define.
11593 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11594 non-RT and RT signal trampolines.
11595
7e8ed687
RE
115962002-02-26 Richard Earnshaw <rearnsha@arm.com>
11597
11598 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11599 (TARGET_NBPG, STACK_END_ADDR): Delete
11600 (VARIABLES_INSIDE_BLOCK): Delete.
11601
6972bc8b
AC
116022002-02-25 Andrew Cagney <ac131313@redhat.com>
11603
11604 * utils.c (perror_with_name): Make string parameter constant.
11605 (print_sys_errmsg): Ditto.
11606 (query): Ditto.
11607 * defs.h (perror_with_name): Update.
11608 (print_sys_errmsg): Update.
11609 (query): Update.
11610
aa32f823
DJ
116112002-02-25 Daniel Jacobowitz <drow@mvista.com>
11612
11613 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11614 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11615
19caaa45
PS
116162002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11617
11618 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11619 if it already matches the current architecture from the exec file.
11620 Include arch-utils.h for gdbarch_info_init prototype.
11621 * Makefile.in (rs6000-nat.o): Update dependencies.
11622
d951901f
EZ
116232002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11624
11625 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11626 list of exported variables.
11627
7ea81414
DJ
116282002-02-24 Daniel Jacobowitz <drow@mvista.com>
11629
11630 * gdbserver/configure.srv: New file.
11631 * gdbserver/configure.in: Use configure.srv instead
11632 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11633 from it.
11634 * gdbserver/configure: Regenerated.
11635 * gdbserver/terminal.h: New file.
11636 * gdbserver/Makefile.in: Update for configure changes. Remove
11637 more unneeded include paths.
11638
080fe24b
AC
116392002-02-24 Andrew Cagney <ac131313@redhat.com>
11640
11641 From wiz at danbala:
11642 * config/sparc/tm-sp64.h: Fix grammar and typos.
11643 Fix PR gdb/287.
11644
8605d56e
AC
116452002-02-24 Andrew Cagney <ac131313@redhat.com>
11646
11647 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11648 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11649 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11650 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11651 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11652 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11653 * s390-tdep.c: Ditto.
92362027
AC
11654 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11655 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11656 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11657 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11658 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11659 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11660 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11661 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11662 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11663 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11664 Fix PR gdb/378.
7e336ba1 11665
8ed32cc0
AC
116662002-02-23 Andrew Cagney <ac131313@redhat.com>
11667
a3007b6f
AC
11668 * lin-thread.c: Delete file.
11669 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11670 to gdb_proc_service.h.
11671 * configure: Re-generate.
11672
50a9e2f1
AC
11673 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11674 * serial.c (serial_open): Delete check for "ocd".
11675 Fix PR gdb/349.
11676
8b6e7932
AC
11677 * Makefile.in (linux-thread.o): Delete target.
11678 * linux-thread.c: Delete file.
11679
d155c46b
AC
11680 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11681 renamed SH files to be consistent.
11682
8ed32cc0
AC
11683 * symtab.c (sort_search_symbols): Use xfree.
11684
0e18d038
RE
116852002-02-23 Richard Earnshaw <rearnsha@arm.com>
11686
11687 * arm-linux-tdep.c (arm_linux_init_abi): Register
11688 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11689 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11690 definition with undef, since we don't want the sysvr4 definition.
11691 (SKIP_TRAMPOLINE_CODE): Likewise.
11692
27aac7ff
AC
116932002-02-23 Andrew Cagney <ac131313@redhat.com>
11694
11695 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11696
11697 * configure.in: (AC_CHECK_FUNCS) Added test for
11698 canonicalize_file_name Regenerated.
11699 * config.in, configure: Regenerated.
11700 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11701 defined use canonicalize_file_name.
7e336ba1 11702
65a6e0ee
MC
117032002-02-23 Michael Chastain <mec@shout.net>
11704
11705 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11706
47b95330
AC
117072002-02-23 Andrew Cagney <ac131313@redhat.com>
11708
11709 * README: Remove references to cygnus.com.
11710 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11711 dot com'' form. Remove references to cygnus.com and sourceware.
11712
696f451b
AC
117132002-02-23 Andrew Cagney <ac131313@redhat.com>
11714
11715 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11716 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11717 1003.1-2001 no longer allows "head -1".
11718 * gdb/Makefile.in (version.c): Likewise.
11719 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11720 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11721 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11722
bbaca940
AC
117232002-02-23 Andrew Cagney <ac131313@redhat.com>
11724
11725 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11726 * command.h (cmd_cfunc_eq): Declare.
11727 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11728
11729 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11730 ``struct cmd_list_element *''.
11731 * cli/cli-cmds.c (is_complete_command): Update. Use
11732 cmd_cfunc_eq.
11733 * top.c (execute_command): Pass the command to
11734 is_complete_command.
11735 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11736
b8b8b047
AC
117372002-02-23 Andrew Cagney <ac131313@redhat.com>
11738
11739 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11740 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11741 architecture defines.
11742 * s390-tdep.c (s390_gdbarch_init): Likewise.
11743
19d3fc80
RE
117442002-02-23 Richard Earnshaw <rearnsha@arm.com>
11745
11746 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11747 (arm_linux_push_arguments): Likewise.
11748 (arm_linux_init_abi): Register them. Also register linux-specific
11749 call_dummy_words.
11750 (find_minsym_and_objfile): Use strcmp, not STREQ.
11751 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11752 (arm_linux_call_dummy_words): Delete declaration.
11753 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11754 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11755 declarations.
11756 (LOWEST_PC): Delete.
11757
3ab13650
PS
117582002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11759
11760 * maint.c (print_section_info): Do not prepend `0x' to filepos
11761 output, it will be handled by local_hex_string_custom.
11762
19d3fc80 117632002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11764
11765 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11766 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11767 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11768
d85a5daf
JB
117692002-02-22 Jim Blandy <jimb@redhat.com>
11770
11771 Indicate that the bcache functions don't change the strings
11772 they're passed.
11773 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11774 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11775
eeb25b8a
PM
117762002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11777
11778 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11779
6badb179
CF
117802002-02-21 Christopher Faylor <cgf@redhat.com>
11781
11782 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11783 find the complete path to a loaded DLL.
11784
e8717518
FF
117852002-02-21 Fred Fish <fnf@redhat.com>
11786
11787 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11788 that marks the end of the range of a function, enter a line number
11789 entry that has a line number of zero and a PC offset that matches
11790 the end of the function. This starts a range of PC's for which no
11791 line number information is known.
11792 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11793 PC's for which no line number info is found (line number is zero)
11794 then we didn't find any valid line information.
11795 * symtab.h: Document use of zero line number entry.
11796
9abe5450
EZ
117972002-02-21 Elena Zannoni <ezannoni@redhat.com>
11798
11799 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11800 (have_ptrace_getvrregs): Define for run time checks.
11801 (gdb_vrregset_t): New type for Altivec register handling.
11802 (fetch_register, store_register): Fetch/store altivec register
11803 when needed.
11804 (fetch_altivec_register, store_altivec_register): New functions.
11805 (supply_vrregset, fill_vrregset): New functions.
11806 (fetch_altivec_registers, store_altivec_registers): New functions.
11807 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11808 registers as well.
11809
aaa38bb5
AJ
118102002-02-21 Jiri Smid <smid@suse.cz>
11811
11812 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11813
b34db576
RE
118142002-02-21 Richard Earnshaw <rearnsha@arm.com>
11815
11816 * Makefile.in (armnbsd-nat.o): Update dependencies.
11817 * armnbsd-nat.c (supply_gregset): New function. Common code to
11818 supply the integer register set.
11819 (supply_fparegset): New function. Similar for FPA registers.
11820 (fetch_regs, fetch_fp_regs): Use them.
11821 (fetch_core_registers): Likewise.
11822 (fetch_elfcore_registers): New function.
11823 (arm_netbsd_elfcore_fns): New core-file type specification.
11824 (_initialize_arm_netbsd_nat): Register it.
11825
3e56fc4b
RE
118262002-02-21 Richard Earnshaw <rearnsha@arm.com>
11827
11828 * armnbsd-nat.c: Include gdbcore.h.
11829 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11830 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11831 'void' to declaration, to shut up ARI.
11832 (fetch_core_registers): Make static. Rewrite using supply_register.
11833 (arm_netbsd_core_fns): New core-file type specification.
11834 (_initialize_arm_netbsd_nat): New function.
11835
097f6b0b
CF
118362002-02-21 Christopher Faylor <cgf@redhat.com>
11837
11838 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11839 value.
11840
c914e0cc
CF
118412002-02-20 Christopher Faylor <cgf@redhat.com>
11842
11843 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11844 fails.
11845
385fa495
DJ
118462002-02-20 Daniel Jacobowitz <drow@mvista.com>
11847
11848 * jv-exp.y (parse_number): Change type of implicit longs
11849 to builtin_type_uint64.
11850
e5f1222d
DJ
118512002-02-20 Daniel Jacobowitz <drow@mvista.com>
11852
11853 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11854 to be an integer instead of a `union wait'.
11855
75c9abc6
DJ
118562002-02-20 Daniel Jacobowitz <drow@mvista.com>
11857
11858 * mips-linux-nat.c: Call the operating system GNU/Linux.
11859 * mips-linux-tdep.c: Likewise.
11860 * mips-tdep.c: Likewise.
11861
551792a5
DJ
118622002-02-20 Daniel Jacobowitz <drow@mvista.com>
11863
11864 Fix PR gdb/265.
11865 * jv-exp.y (parse_number): Handle 64-bit integers.
11866
ee6e2b82
DJ
118672002-02-20 Daniel Jacobowitz <drow@mvista.com>
11868
11869 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11870 AC_STDC_HEADERS to AC_HEADER_STDC.
11871 * gdbserver/configure: Regenerated.
11872
a48442a0
RE
118732002-02-20 Richard Earnshaw <rearnsha@arm.com>
11874
11875 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11876 is defined.
11877 * sparc-tdep.c (get_longjmp_target): Likewise.
11878
fe419ffc
RE
118792002-02-20 Richard Earnshaw <rearnsha@arm.com>
11880
11881 * News: Add news about ARM and Multi-arch. Mention the new target
11882 arm*-*-netbsd*.
11883
5832ed7e
JB
118842002-02-19 Jim Blandy <jimb@redhat.com>
11885
11886 * stabsread.c (error_type_complaint): Improve error message.
11887
84563040
DJ
118882002-02-19 Daniel Jacobowitz <drow@mvista.com>
11889
11890 * gdbserver/README: Update documentation.
11891 * gdbserver/configure.in: Update configury to match documentation.
11892 * gdbserver/Makefile.in: Likewise.
11893 * gdbserver/configure: Regenerated.
11894 * gdbserver/aclocal.m4: New file, generated by aclocal.
11895 * gdbserver/config.in: New file, generated by autoheader.
11896
375fd65b
RE
118972002-02-19 Richard Earnshaw <rearnsha@arm.com>
11898
11899 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11900 armnbsd-nat.c.
11901
08216dd7
RE
119022002-02-19 Richard Earnshaw <rearnsha@arm.com>
11903
11904 * arm-tdep.h (enum arm_float_model): New enum.
11905 (struct gdbarch_tdep): Add fp_model.
11906 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11907 up floating-point conversions until we know the floating-point model
11908 in use by the inferior. Don't complain about being unable to
11909 determine the ABI of the inferior when we don't have one.
11910 (arm_extract_return_value): Support different floating-point models.
11911 (arm_store_return_value): Likewise.
aaa38bb5 11912 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11913 ARM_FLOAT_SOFT.
11914 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11915
65d6d66a
PS
119162002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11917
11918 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11919 of ``current_gdbarch''.
11920
47221191
RE
119212002-02-19 Richard Earnshaw <rearnsha@arm.com>
11922
11923 * armnbsd-nat.c : ANSIfy all function declarations.
11924 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11925 (fetch_inferior_registers): Re-implement in terms of above.
11926 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11927 (store_inferior_registers): Re-implement in terms of above.
11928
fdf39c9a
RE
119292002-02-19 Richard Earnshaw <rearnsha@arm.com>
11930
aaa38bb5 11931 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11932 kernel.
11933 * arm-linux-tdep.c: Likewise.
11934 * config/arm/tm-linux.h: Likewise.
11935
93247f88
RE
119362002-02-19 Richard Earnshaw <rearnsha@arm.com>
11937
11938 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11939 * config/arm/nbsd.mt (TM_FILE): Delete.
11940 * config/arm/tm-nbsd.h: Delete.
11941
d7b486e7
RE
119422002-02-19 Richard Earnshaw <rearnsha@arm.com>
11943
11944 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11945 Initialize CALL_DUMMY_LENGTH.
11946
41d39a95
RE
119472002-02-19 Richard Earnshaw <rearnsha@arm.com>
11948
11949 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11950 function.
11951 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11952 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11953 defines one thing and that is incorrect for this port.
11954 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11955
e1195560
PM
119562002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11957
11958 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11959
c1748f97
PM
119602002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11961
11962 * win32-nat.c (display_selector): New function. Displays information
11963 about the information returned by GetThreadSelectorEntry API function.
11964 (display_selectors): New function. Displays the infomation of
11965 the selector given as argument, or of CS, DS ans FS selectors
11966 if no argument is given.
11967 ( _initialize_inftarg): Add "w32" as info prefix command.
11968 Add "info w32 selector" as command calling display_selectors.
11969
e41e6bbf
PM
119702002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11971
11972 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11973 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11974 if not defined.
11975
0d3a9f48
RE
119762002-02-18 Richard Earnshaw <rearnsha@arm.com>
11977
11978 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11979
3fb4b924
RE
119802002-02-18 Richard Earnshaw <rearnsha@arm.com>
11981
11982 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11983 (arm_fix_call_dummy): Call it.
11984 (arm_call_dummy_breakpoint_offset): Delete.
11985 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11986 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11987
7f55af32
AC
119882002-02-18 Andrew Cagney <ac131313@redhat.com>
11989
11990 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11991 Default to func_frame_chain_valid.
11992 * gdbarch.h, gdbarch.c: Re-generate.
11993 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11994
05f13b9c
EZ
119952002-02-18 Elena Zannoni <ezannoni@redhat.com>
11996
11997 * ppc-linux-nat.c: Update copyright.
11998 (fetch_register, store_register): Add tid parameter, don't compute
11999 tid here.
12000 (fetch_ppc_registers, store_ppc_registers): Add tid
12001 parameter. Pass it along to callees.
12002 (fetch_inferior_registers, store_inferior_registers): Compute tid
12003 here, and pass it to calleed functions.
12004 (fill_gregset, supply_fpregset): Clean up formatting.
12005
d7afb4c9
RE
120062002-02-18 Richard Earnshaw <rearnsha@arm.com>
12007
12008 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12009 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12010
9df628e0
RE
120112002-02-18 Richard Earnshaw <rearnsha@arm.com>
12012
12013 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12014 * gdbarch.c gdbarch.h: Regenerate.
12015 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12016 function.
12017 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12018 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12019 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12020
12021 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12022 * arm-tdep.c (arm_get_longjmp_target): New function.
12023 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12024 this to a positive value register arm_get_longjmp_target as the
12025 longjmp handler.
12026 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12027 (arm_linux_init_abi): Set up longjmp description in tdep.
12028 * armnbsd-nat.c (get_longjmp_target): Delete.
12029 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12030 description in tdep.
12031 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12032 (get_longjmp_target): Delete declaration.
12033 (GET_LONGJMP_TARGET): Delete.
12034 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12035 (GET_LONGJMP_TARGET): Delete.
12036
57bc8964
KB
120372002-02-17 Kevin Buettner <kevinb@redhat.com>
12038
12039 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12040 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12041 of ``current_gdbarch''.
12042
83d31a92
TT
120432002-02-17 Tom Tromey <tromey@redhat.com>
12044
12045 * cli/cli-cmds.c (compare_strings): New function.
12046 (complete_command): Only print each unique item once.
12047 * completer.h (complete_line): Declare.
12048 * completer.c (complete_line): New function.
12049 (line_completion_function): Use it.
12050
17ef5d92
AC
120512002-02-16 Andrew Cagney <ac131313@redhat.com>
12052
12053 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12054 * gdbarch.h, gdbarch.c: Re-generate.
12055
491b8946
DJ
120562002-02-16 Daniel Jacobowitz <drow@mvista.com>
12057
12058 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12059
120602002-02-16 Daniel Jacobowitz <drow@mvista.com>
12061
12062 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12063 * valops.c (value_arg_coerce): Don't take the address of a reference
12064 to convert an argument to a reference.
12065
dfe7f3ac
CF
120662002-02-15 Christopher Faylor <cgf@redhat.com>
12067
12068 * win32-nat.c (get_image_name): New function.
12069 (handle_load_dll): Use get_image_name function.
12070 (get_child_debug_event): Avoid registering debug events until possibly
12071 execed process is started.
12072 (child_create_inferior): Allow invocation via shell so that command
12073 line redirection, etc. works ok.
12074 (_initialize_inftarg): Add new command: "set shell" to control whether
12075 a shell is used to start a process.
12076
1d33e73a
DJ
120772002-02-15 Daniel Jacobowitz <drow@mvista.com>
12078
12079 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12080 instead of find_register_by_number.
12081 (cannot_store_register): Likewise.
12082
48cd0caa
PM
120832002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12084
aaa38bb5 12085 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12086 fprintf_unfiltered (gdb_stderr, ...).
12087
8656e7d8
DJ
120882002-02-15 Daniel Jacobowitz <drow@mvista.com>
12089
12090 * gdbserver/gdbserver.1: Document --attach.
12091
66e810cd
RE
120922002-02-15 Richard Earnshaw <rearnsha@arm.com>
12093
12094 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12095 descriptions.
12096 * arm-tdep.c (arm_default_arm_le_breakpoint)
12097 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12098 (arm_default_thumb_be_breakpoint): New. Initialize them from
12099 traditional breakpoint defines.
12100 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12101 (arm_gdbarch_init): Initialize new breakpoint variables.
12102 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12103 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12104 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12105 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12106 code out to ...
12107 (arm_netbsd_init_abi_common): ... here; new function.
12108 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12109 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12110 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12111 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12112
97e03143
RE
121132002-02-15 Richard Earnshaw <rearnsha@arm.com>
12114
12115 * arm-tdep.h (enum arm_abi): New enum.
12116 (struct gdbarch_tdep): New structure.
12117 (LOWEST_PC): Provide a default.
12118 (arm_gdbarch_register_os_abi): Declare new function.
12119 * arm-tdep.c (arm_abi_names): New array.
12120 (process_note_abi_tag_sections): New function.
12121 (get_elfosabi): New function.
12122 (arm_gdbarch_register_os_abi): New function.
12123 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12124 support for that ABI has been built in, then call the appropriate
12125 configuration routine. Use gdbarch_num_regs() to get the number
12126 of registers.
12127 (arm_dump_tdep): New function.
12128 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12129 place-holder functions.
12130 (_initialize_arm_tdep): Register them.
12131 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12132
12133 * armnbsd-tdep.c: New file.
12134 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12135 * config/arm/nbsd.mt (TDEPFILES): Add it.
12136 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12137
12138 * armnbsd-nat.c: Include regcache.h.
12139 * Makefile.in (armnbsd-nat.o): Update dependency list.
12140
12141 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12142
ad68be46
DJ
121432002-02-14 Daniel Jacobowitz <drow@mvista.com>
12144
12145 * gdbserver/Makefile.in: Fix typos in target rules.
12146
003d6d1d
DJ
121472002-02-14 Daniel Jacobowitz <drow@mvista.com>
12148
aaa38bb5 12149 Fix part of PR gdb/267.
003d6d1d
DJ
12150 * linespec.c (find_methods): Handle constructors specially for now.
12151
6b230f1b
CV
121522002-02-14 Corinna Vinschen <vinschen@redhat.com>
12153
12154 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12155 handling.
12156 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12157 standard_coerce_float_to_double().
12158
1ea98d12
CF
121592002-02-14 Christopher Faylor <cgf@redhat.com>
12160
12161 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12162 GDBINIT_FILENAME.
12163
dd47e6fd
EZ
121642002-02-14 Elena Zannoni <ezannoni@redhat.com>
12165
12166 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12167 find_variant_by_name, because it confuses the multiarch
12168 framework. Return NULL if there isn't an architecture with the
12169 user supplied name, instead of forcing a different one without
12170 recording the change with the multiarch machinery.
12171 (find_variant_by_name): Delete.
12172
d7e39b9e
PS
121732002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12174
12175 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12176 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12177
76e42a4f
MH
121782002-02-13 Martin M. Hunt <hunt@redhat.com>
12179
aaa38bb5 12180 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12181 print_frame_info_listing_hook, set current_source_symtab.
12182
0a30fbc4
DJ
121832002-02-14 Daniel Jacobowitz <drow@mvista.com>
12184
12185 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12186 and remove unused $(INCLUDE_DIR).
12187 Add regcache.c to OBS.
12188 Add generated register protocol files to clean target.
12189 Update dependencies for new objects, obsolete old target code.
12190
12191 * gdbserver/linux-low.c: Remove all platform-specific code to
12192 new files. Remove various dead code. Update to use regcache
12193 functionality.
12194 * gdbserver/remote-utils.c (fromhex): Add return statement
12195 to quiet warning.
12196 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12197 constant.
12198 (input_interrupt): Add integer parameter to match prototype
12199 of a signal handler.
12200 (outreg): Use register_data ().
12201 (prepare_resume_reply): Use gdbserver_expedite_regs.
12202 * gdbserver/server.c (main): Dynamically allocate own_buf because
12203 PBUFSIZ is no longer constant. Use registers_to_string () and
12204 registers_from_string ().
12205 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12206 for error (), fatal (), and warning (). Update definition of
12207 PBUFSIZ to use regcache functionality. Add include guard.
12208 * gdbserver/utils.c (fatal): Add missing ``const''.
12209 (warning): New function.
12210
12211 * regformats/regdat.sh: Include "regcache.h" in generated files.
12212 Provide init_registers () function.
12213 * regformats/regdef.h: Add prototype for set_register_cache ().
12214 Add include guard.
12215
12216 * gdbserver/linux-arm-low.c: New file.
12217 * gdbserver/linux-i386-low.c: New file.
12218 * gdbserver/linux-ia64-low.c: New file.
12219 * gdbserver/linux-m68k-low.c: New file.
12220 * gdbserver/linux-mips-low.c: New file.
12221 * gdbserver/linux-ppc-low.c: New file.
12222 * gdbserver/linux-sh-low.c: New file.
12223
12224 * gdbserver/regcache.c: New file.
12225 * gdbserver/regcache.h: New file.
12226
12227 * gdbserver/low-linux.c: Removed obsolete file.
12228
4cc841d0
DJ
122292002-02-14 Daniel Jacobowitz <drow@mvista.com>
12230
12231 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12232 * config/i386/linux.mt: Likewise.
12233 * config/ia64/linux.mt: Likewise.
12234 * config/m68k/linux.mh: Likewise.
12235 * config/powerpc/linux.mh: Likewise.
12236 * config/mips/linux.mt: Likewise.
12237
12238 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12239
12240 * config/i386/i386lynx.mh: Mark gdbserver variables
12241 as (currently) obsolete for this target.
12242 * config/i386/nbsd.mt: Likewise.
12243 * config/i386/nbsdelf.mt: Likewise.
12244 * config/m32r/m32r.mt: Likewise.
12245 * config/m68k/m68klynx.mh: Likewise.
12246 * config/m68k/nbsd.mt: Likewise.
12247 * config/m68k/sun3os4.mh: Likewise.
12248 * config/mips/vr5000.mt: Likewise.
12249 * config/ns32k/nbsd.mt: Likewise.
12250 * config/pa/hppabsd.mh: Likewise.
12251 * config/pa/hppaosf.mh: Likewise.
12252 * config/powerpc/nbsd.mt: Likewise.
12253 * config/rs6000/rs6000lynx.mh: Likewise.
12254 * config/s390/s390.mt: Likewise.
12255 * config/s390/s390x.mt: Likewise.
12256 * config/sparc/sparclynx.mh: Likewise.
12257 * config/sparc/sun4os4.mh: Likewise.
12258 * config/i386/x86-64linux.mt: Likewise.
12259 * config/sparc/linux.mh: Likewise.
12260
a85f51e7
DJ
122612002-02-14 Daniel Jacobowitz <drow@mvista.com>
12262
12263 * configure.tgt: Configure gdbserver only for known working
12264 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12265 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12266 SUBDIRS if it is configured. Update comment for ${nativefile}.
12267 * configure: Regenerated.
12268
65554fef
MS
122692002-02-13 Michael Snyder <msnyder@redhat.com>
12270
670a52db
MS
12271 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12272
6dbdc4a3
MS
12273 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12274 (default_gcore_mach): Just return 0, work around a problem in bfd.
12275 (default_gcore_target): OK to return NULL if exec_bfd is null.
12276 (make_mem_sec): Use a cast, avoid a warning.
12277
12278 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12279 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12280 sizeof (host pointer) != sizeof (target pointer)).
12281 (procfs_make_note_section): Avoid overflow in psargs string.
12282
aaa38bb5 12283 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12284 implementation return an error.
12285
122862002-02-13 Rodney Brown <rbrown64@csc.com.au>
12287
12288 * procfs.c (procfs_make_note_section): Provide a default definition
12289 (for alpha-dec-osf4.0f). Fix typos.
12290
1e4d76e7
EZ
122912002-02-13 Elena Zannoni <ezannoni@redhat.com>
12292
12293 * linux-proc.c: Add include of regcache.h.
12294 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12295
b6d1a1d5
AC
122962002-02-13 Andrew Cagney <ac131313@redhat.com>
12297
12298 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12299 * memattr.c (create_mem_region): Disallow useless empty region.
12300 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12301 non-overlapping.
b6d1a1d5 12302
6c6ea35e
MC
123032002-02-13 Michael Chastain <mec@shout.net>
12304
12305 * defs.h: Kill CONST_PTR.
12306 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12307 * c-lang.c (c_builtin_types): Likewise.
12308 * ch-lang.c (ch_builtin_types): Likewise.
12309 * f-lang.c (f_builtin_types): Likewise.
12310 * language.c (unknown_builtin_types): Likewise.
12311 * m2-lang.c (m2_builtin_types): Likewise.
12312 * p-lang.c (pascal_builtin_types): Likewise.
12313 * scm-lang.c (c_builtin_types): Likewise.
12314
3e0b0f48
KS
123152002-02-13 Keith Seitz <keiths@redhat.com>
12316
12317 * arm-tdep.h (arm_get_next_pc): Add declaration.
12318
67255d04
RE
123192002-02-13 Richard Earnshaw <rearnsha@arm.com>
12320
12321 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12322 with other related struct-returning functions.
12323 (arm_extract_struct_value_address): New function.
12324 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12325 initialize float_format, double_format and long_double_format as
12326 appropriate to the endianness of the target.
12327 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12328 (arm_use_struct_convention): Delete declaration.
12329 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12330
079777f6
KS
123312002-02-13 Keith Seitz <keiths@redhat.com>
12332
12333 * defs.h (core_addr_to_string_nz): New function.
12334
34588f23
MK
123352002-02-13 Mark Kettenis <kettenis@gnu.org>
12336
12337 Apply missing bits of 2002-01-15 patch.
12338 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12339 (fill_fpregset): Use i387_fill_fsave.
12340
49b563f9
KS
123412002-02-12 Keith Seitz <keiths@redhat.com>
12342
49b563f9
KS
12343 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12344 (core_addr_to_string_nz): New function.
12345
aeb98c60
RE
123462002-02-11 Richard Earnshaw <rearnsha@arm.com>
12347
12348 * arm-linux-nat.c: Really include arm-tdep.h.
12349 * config/arm/tm-linux.h (struct type, struct value): Declare.
12350
65554fef
MS
123512002-02-11 Michael Snyder <msnyder@redhat.com>
12352
12353 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12354 (gcore section): Ifdef for Solaris and Unixware only.
12355 (procfs_do_thread_registers): Unixware needs one lwpstatus
12356 per thread (not one prstatus or pstatus).
12357 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12358 not over all gdb threads. For unixware, call elfcore_write_pstatus
12359 once before iterating over threads.
12360
34e8f22d
RE
123612002-02-11 Richard Earnshaw <rearnsha@arm.com>
12362
12363 * arm-tdep.h: New file.
12364 * arm-tdep.c: Include arm-tdep.h.
12365 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12366 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12367 (arm_print_float_info, arm_register_type, convert_to_extended)
12368 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12369 (arm_extract_return_value, arm_register_name): Make static.
12370 (arm_software_single_step): Similarly. Fix types in declaration.
12371 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12372 (arm_store_return_value, arm_store_struct_return): New functions.
12373 (arm_gdbarch_init): Register the above functions. Also register
12374 call_dummy_start_offset, sizeof_call_dummy_words,
12375 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12376 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12377 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12378 prologue_cache.saved_regs here, rather than ...
12379 (_initialize_arm_tdep): ... here.
12380 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12381 declarations.
12382 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12383 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12384 (arm_print_float_info, arm_register_type, convert_to_extended)
12385 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12386 (arm_extract_return_value, arm_register_name): Delete declarations.
12387 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12388 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12389 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12390 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12391 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12392 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12393 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12394 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12395 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12396 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12397 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12398 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12399 interface.
12400 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12401 * remote-rdi.c remote-rdp.c: Likewise.
12402 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12403 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12404 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12405 definition.
12406
12407 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12408 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12409 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12410 from non-ARM_ prefixed definitions.
12411 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12412 all uses of above.
12413 * remote-rdi.c remote-rdp.c: Likewise.
12414 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12415
148754e5
RE
124162002-02-11 Richard Earnshaw <rearnsha@arm.com>
12417
12418 * arm-tdep.c (arm_frameless_function_invocation)
12419 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12420 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12421 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12422 (arm_pop_frame, arm_get_next_pc): Make static.
12423 (arm_gdbarch_init): Register above in gdbarch structure.
12424 (arm_read_fp): Renamed from arm_target_read_fp.
12425 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12426 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12427 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12428 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12429 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12430 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12431 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12432 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12433 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12434 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12435 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12436
434d2d4f
DJ
124372002-02-10 Daniel Jacobowitz <drow@mvista.com>
12438
12439 * symtab.c (compare_search_syms): New function.
12440 (sort_search_symbols): New function.
12441 (search_symbols): Sort symbols after searching rather than
12442 before.
12443
55241689
AC
124442002-02-10 Andrew Cagney <ac131313@redhat.com>
12445
12446 * NEWS: Linux -> GNU/Linux.
12447
028c194b
AC
124482002-02-10 Andrew Cagney <ac131313@redhat.com>
12449
12450 * gdbarch.sh: For for level one methods, disallow a definition
12451 when partially multi-arched. Add comments explaining rationale.
12452 * gdbarch.h: Re-generate.
12453
6acf50cd
AC
124542002-02-10 Andrew Cagney <ac131313@redhat.com>
12455
12456 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12457 multi-arch partial.
aaa38bb5 12458
50248794
AC
124592002-02-10 Andrew Cagney <ac131313@redhat.com>
12460
12461 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12462 field. Use diff -u.
12463 * gdbarch.c: Re-generate.
12464
c30e0066
AC
124652002-02-10 Andrew Cagney <ac131313@redhat.com>
12466
9b56c5f3 12467 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12468 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12469 partial.
12470
6e6d6484
AC
124712002-02-10 Andrew Cagney <ac131313@redhat.com>
12472
12473 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12474 multi-arch partial.
12475 (PUSH_ARGUMENTS): Switch to using predefault.
12476 * gdbarch.c: Regenerate.
12477
c203844d
AC
124782002-02-10 Andrew Cagney <ac131313@redhat.com>
12479
12480 * valops.c (PUSH_ARGUMENTS): Delete definition.
12481 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12482 partial. Default to default_push_arguments.
12483 * gdbarch.h, gdbarch.c: Regenerate.
12484
b5a2688f
AC
124852002-02-09 Andrew Cagney <ac131313@redhat.com>
12486
12487 * defs.h (throw_exception): Rename return_to_top_level. Update
12488 comments.
12489 * utils.c (error_stream, internal_verror, quit): Ditto.
12490 * top.c (throw_exception, catcher): Ditto.
12491 * sparclet-rom.c (sparclet_load): Ditto.
12492 * remote.c (interrupt_query, minitelnet): Ditto.
12493 * remote-sds.c (interrupt_query): Ditto.
12494 * remote-mips.c (mips_error, mips_kill): Ditto.
12495 * ocd.c (interrupt_query): Ditto.
12496 * monitor.c (monitor_interrupt_query): Ditto.
12497 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12498 * target.h: Update comment.
aaa38bb5 12499
b5a2688f 12500 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12501
2fa5c1e0
AC
125022002-02-09 Andrew Cagney <ac131313@redhat.com>
12503
12504 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12505 default_double_format.
12506 * gdbarch.h, gdbarch.c: Re-generate.
12507 * findvar.c (floatformat_unknown): Delete variable definition.
12508 * doublest.h (floatformat_unknown): Delete variable declaration.
12509
da966255
JB
125102002-02-09 Jim Blandy <jimb@redhat.com>
12511
12512 * stabsread.c (read_type): Add code to parse Sun's syntax for
12513 prototyped function types.
12514
123a4891
AC
125152002-02-09 Andrew Cagney <ac131313@redhat.com>
12516
12517 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12518 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12519
fb39c8f3
PS
125202002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12521
12522 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12523 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12524 now _initialize_xcoffsolib gets called again and overrides the
12525 commands from solib.c in a native configuration.
12526
0b87a11d
MK
125272002-02-09 Mark Kettenis <kettenis@gnu.org>
12528
12529 * doublest.c (store_typed_floating): Don't try to return a value.
12530 Fixes PR gdb/290.
12531
bdc2fc72
JB
125322002-02-08 Jim Blandy <jimb@redhat.com>
12533
12534 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12535 is prototyped and has no arguments, print its argument list as
12536 `(void)'.
12537
da69bbcf
CD
125382002-02-08 Chris Demetriou <cgd@broadcom.com>
12539
12540 * MAINTAINERS (write-after-approval): Add myself.
12541 (paper-trail): I've escaped!
aaa38bb5 12542
b69571f5
CF
125432002-02-08 Christopher Faylor <cgf@redhat.com>
12544
12545 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12546 changes.
12547 (_initialize_check_for_gdb_ini): Ditto.
12548
f6871398
MH
125492002-02-08 Martin M. Hunt <hunt@redhat.com>
12550
12551 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12552 xaprintf -> xasprintf.
12553
4e52d31c
PM
125542002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12555
12556 * win32-nat.c: Remove use of printf and sprintf functions.
12557
39bbf761
RE
125582002-02-08 Richard Earnshaw <rearnsha@arm.com>
12559
12560 * arm-tdep.c (arm_frame_chain_valid): Make static.
12561 (arm_push_arguments): Likewise.
12562 (arm_gdbarch_init): New function.
12563 (_initialize_arm_tdep): Call it.
12564 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12565 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12566 (FRAME_CHAIN_VALID): Delete.
12567 (arm_frame_chain_valid): Delete declaration.
12568 (PUSH_ARGUMENTS): Delete.
12569 (arm_push_arguments): Delete declaration.
12570 (CALL_DUMMY_P): Delete.
12571
9c9532c9
CV
125722002-02-08 Andrew Cagney <ac131313@redhat.com>
12573 Corinna Vinschen <vinschen@redhat.com>
12574
12575 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12576 on builtin float types.
12577
4e8f7a8b
DJ
125782002-02-08 Daniel Jacobowitz <drow@mvista.com>
12579
12580 * utils.c: Include <curses.h> before "bfd.h".
12581 * tui/tui-hooks.c: Likewise.
12582 * tui/tui.c: Likewise.
12583 * tui/tuiCommand.c: Likewise.
12584 * tui/tuiData.c: Likewise.
12585 * tui/tuiDataWin.c: Likewise.
12586 * tui/tuiDisassem.c: Likewise.
12587 * tui/tuiGeneralWin.c: Likewise.
12588 * tui/tuiIO.c: Likewise.
12589 * tui/tuiLayout.c: Likewise.
12590 * tui/tuiRegs.c: Likewise.
12591 * tui/tuiSource.c: Likewise.
12592 * tui/tuiSourceWin.c: Likewise.
12593 * tui/tuiStack.c: Likewise.
12594 * tui/tuiWin.c: Likewise.
12595
cd4bffcf
EZ
125962002-02-07 Elena Zannoni <ezannoni@redhat.com>
12597
12598 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12599 to include space for pseudoregs as well. Update loops accordingly.
12600 (sh_fp_frame_init_saved_regs): Ditto.
12601 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12602
26806ce2
AC
126032002-02-07 Andrew Cagney <ac131313@redhat.com>
12604
12605 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12606 Add Richard Earnshaw to Arm maintainers.
12607
97fdab62
AC
126082002-02-07 Andrew Cagney <ac131313@redhat.com>
12609
a6b98203
AC
12610 * defs.h (warning_begin): Delete declaration.
12611
97fdab62
AC
12612 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12613 Delete macro.
12614
78b29b40
MS
126152002-02-07 Michael Snyder <msnyder@redhat.com>
12616
aaa38bb5 12617 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12618 Logic bug, remove misplaced else.
12619
d8849953
KD
126202002-02-07 Klee Dienes <klee@apple.com>
12621
12622 * fork-inferior.c (fork_inferior): Add '!' to the list of
12623 characters that need to be quoted when building a string for the
12624 shell. Quote '!' specifically with a backslash, since CSH chokes
12625 when trying to evaluate "str!str".
aaa38bb5 12626
095778a0
NC
126272002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12628
12629 * rdi-share/host.h: Only provide a typedef for bool if it is not
12630 defined.
12631
1900040c
MS
126322002-02-04 Michael Snyder <msnyder@redhat.com>
12633
12634 * breakpoint.h (enum bptype): Add new overlay event bp type.
12635 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12636
1900040c
MS
12637 * breakpoint.c (create_internal_breakpoint): New function.
12638 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12639 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12640 (create_thread_event_breakpoint): Ditto.
12641 (create_solib_event_breakpoint): Ditto.
12642 (create_overlay_event_breakpoint): New function.
12643 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12644 (update_breakpoints_after_exec): Delete and re-initialize
12645 overlay event breakpoints after an exec. Add FIXME comment
12646 about longjmp breakpoint.
12647 (print_it_typical): Ignore overlay event breakpoints.
12648 (print_one_breakpoint): Ditto.
12649 (mention): Ditto.
12650 (bpstat_what): Do not stop for overlay event breakpoints.
12651 (delete_breakpoint): Don't delete overlay event breakpoints.
12652 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12653 (breakpoint_re_set): Re-create overlay event breakpoint.
12654
12655 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12656 (overlay_manual_command): Disable overlay breakpoints.
12657 (overlay_off_command): Disable overlay breakpoints.
12658
082fc60d
RE
126592002-02-06 Richard Earnshaw <rearnsha@arm.com>
12660
12661 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12662 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12663 to here from config/tm-arm.h.
12664 (coff_sym_is_thumb): Make static.
12665 (arm_elf_make_msymbol_special): New function.
12666 (arm_coff_make_msymbol_special): New function.
12667 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12668 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12669 (coff_sym_is_thumb): Delete declaration.
12670 (arm_elf_make_msymbol_special): Declare.
12671 (arm_coff_make_msymbol_special): Declare.
12672 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12673 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12674
039c5766
RE
126752002-02-06 Richard Earnshaw <rearnsha@arm.com>
12676
12677 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12678
126792002-02-06 Richard Earnshaw <rearnsha@arm.com>
12680
12681 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12682 * gdbarch.c gdbarch.h: Regenerate.
12683 * arch-utils.c (default_print_float_info): New function.
12684 * arch-utils.h (default_print_float_info): Prototype it.
12685 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12686 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12687 (PRINT_FLOAT_INFO): Document it.
12688
12689 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12690 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12691 (PRINT_FLOAT_INFO): Define.
12692
58fa08f0
PM
126932002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12694
aaa38bb5 12695 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12696 Add typecast to sprintf argument to suppress a warning.
12697
7393af7c
PM
126982002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12699
58fa08f0 12700 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12701 to allow easier handling of pass state.
12702 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12703 that gives exception name and address.
12704 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12705 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12706 exceptions added.
aaa38bb5
AJ
12707 (child_continue): Correctly report continue_status.
12708 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12709 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12710 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12711 the exception should be passed to debuggee or not.
12712
6af4589c
MS
127132002-02-05 Michael Snyder <msnyder@redhat.com>
12714
12715 * regcache.c (fetch_register): Call target_fetch_register
12716 only if we don't call FETCH_PSEUDO_REGISTER.
12717 (store_register): Call target_store_register only if we
12718 don't call STORE_PSEUDO_REGISTER.
12719
a2cf933a
EZ
127202002-02-05 Elena Zannoni <ezannoni@redhat.com>
12721
12722 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12723 ELF_MAKE_MSYMBOL_SPECIAL.
12724 * gdbarch.c, gdbarch.h: Regenerate.
12725 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12726 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12727 * elfread.c (elf_symtab_read): Compile use of
12728 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12729 multiarched.
12730 * coffread.c (coff_symtab_read): Ditto, for
12731 COFF_MAKE_MSYMBOL_SPECIAL.
12732
6bb7be43
JB
127332002-02-05 Jim Blandy <jimb@redhat.com>
12734
12735 * solib-svr4.c (svr4_truncate_ptr): New function.
12736 (svr4_relocate_section_addresses): Do the address arithmetic with
12737 the appropriate truncation for target addresses, even when
12738 CORE_ADDR is larger than a target address.
12739
e18651ec
DJ
127402002-02-05 Daniel Jacobowitz <drow@mvista.com>
12741
12742 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12743 to (int *).
12744
6b2725be
DJ
127452002-02-05 Daniel Jacobowitz <drow@mvista.com>
12746
12747 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12748 code.
12749
fca9e603
DJ
127502002-02-05 Daniel Jacobowitz <drow@mvista.com>
12751
12752 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12753
6c537a52
DJ
127542002-02-05 Daniel Jacobowitz <drow@mvista.com>
12755
12756 * gdbserver/linux-low.c: Remove unused include files.
12757
d844cde6
DJ
127582002-02-05 Daniel Jacobowitz <drow@mvista.com>
12759
12760 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12761 (read_inferior_memory): Use it.
12762 (write_inferior_memory): Likewise.
12763
d07c63e7
DJ
127642002-02-05 Daniel Jacobowitz <drow@mvista.com>
12765
12766 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12767 grubbing through sys_errlist.
12768
da6d8c04
DJ
127692002-02-05 Daniel Jacobowitz <drow@mvista.com>
12770
12771 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12772
5b421780
PM
127732002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12774 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12775
9f60d481
AC
127762002-02-04 Andrew Cagney <ac131313@redhat.com>
12777
12778 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12779 (do_sfunc, set_cmd_sfunc): New functions.
12780
12781 * command.h (struct cmd_list_element): Add field func.
12782 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12783 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12784 * cli/cli-decode.h: Ditto.
12785
12786 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12787 (help_all, help_cmd_list): Ditto.
12788 (find_cmd, complete_on_cmdlist): Ditto.
12789 * top.c (execute_command): Ditto.
12790
12791 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12792 function.sfunc.
12793
12794 * infcmd.c (notice_args_read): Fix function signature.
12795
12796 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12797 * cli/cli-decode.c (add_set_cmd): Ditto.
12798 * utils.c (initialize_utils): Ditto.
12799 * maint.c (_initialize_maint_cmds): Ditto.
12800 * infrun.c (_initialize_infrun): Ditto.
12801 * demangle.c (_initialize_demangler): Ditto.
12802 * remote.c (add_packet_config_cmd): Ditto.
12803 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12804 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12805 * proc-api.c (_initialize_proc_api): Ditto.
12806 * kod.c (_initialize_kod): Ditto.
12807 * valprint.c (_initialize_valprint): Ditto.
12808 * top.c (init_main): Ditto.
12809 * infcmd.c (_initialize_infcmd): Ditto.
12810 * corefile.c (_initialize_core): Ditto.
12811 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12812 * arch-utils.c (initialize_current_architecture): Ditto.
12813 (_initialize_gdbarch_utils): Ditto.
12814 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12815
12816 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12817 * wince.c (_initialize_inftarg): Ditto.
12818 * symfile.c (_initialize_symfile): Ditto.
12819 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12820 * language.c (_initialize_language): Ditto.
12821 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12822
f9ba0717
MS
128232002-02-04 Michael Snyder <msnyder@redhat.com>
12824
12825 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12826
0c74b2a7
DJ
128272002-02-04 Daniel Jacobowitz <drow@mvista.com>
12828
12829 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12830 Add rules for building the register data files.
12831
c638789f
DJ
128322002-02-04 Daniel Jacobowitz <drow@mvista.com>
12833
12834 * regformats/regdat.sh: Add braces to the definition of
12835 expedite_regs_${arch}.
12836
db253027
DJ
128372002-02-04 Daniel Jacobowitz <drow@mvista.com>
12838
12839 * regformats/regdef.h (struct reg): Add comment describing the
12840 requirements for offset and size fields.
12841
206be19c
AS
128422002-02-04 Andreas Schwab <schwab@suse.de>
12843
12844 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12845 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12846
181c1381
RE
128472002-02-04 Richard Earnshaw <rearnsha@arm.com>
12848
12849 * gdbarch.sh (copyright): Update years in generated header.
12850 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12851 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12852 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12853 * dbxread.c: Likewise.
12854 * dwarfread.c: Likewise.
12855 * elfread.c: Likewise.
12856 * somread.c: Likewise.
12857
12858 * arm-tdep.c (arm_smash_text_address): New function.
12859 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12860
fa4ba8da
PM
128612002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12862
12863 Add support for hardware watchpoints on win32 native.
aaa38bb5 12864 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12865 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12866 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12867 of debug registers.
12868 (debug_registers_changed): New variable. Reflects when debug registers
12869 are changed and need to be written to inferior.
aaa38bb5 12870 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12871 was set, used when new threads are created.
12872 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12873 i386-nat code.
12874 (thread_rec): Set dr array if id is the thread of current_event .
12875 (child_continue, child_resume): Change the debug registers for all
12876 threads if debug_registers_changed.
12877 (child_add_thread): Change the debug registers if debug_registers_used.
12878 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12879 Link nm.h to new nm-cygwin.h file.
12880 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12881 of hardware registers.
12882
a73c86fb
AC
128832002-02-03 Andrew Cagney <ac131313@redhat.com>
12884
12885 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12886 Restore behavour broken by 2002-01-20 Andrew Cagney
12887 <ac131313@redhat.com> IEEE_FLOAT removal.
12888
acf5ed49
DJ
128892002-02-03 Daniel Jacobowitz <drow@mvista.com>
12890
12891 * c-valprint.c (c_val_print): Pass a proper valaddr to
12892 cp_print_class_method.
12893 * valops.c (search_struct_method): If there is only one method
12894 and args is NULL, return that method.
12895
493d28d5
DJ
128962002-02-03 Daniel Jacobowitz <drow@mvista.com>
12897
12898 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12899 accessing tag_name directly.
12900
7495dfdb
DJ
129012002-02-03 Daniel Jacobowitz <drow@mvista.com>
12902
12903 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12904 of accessing tag_name directly.
12905
dd6bda65
DJ
129062002-02-03 Daniel Jacobowitz <drow@mvista.com>
12907
12908 PR gdb/280
12909 * gdbtypes.c (replace_type): New function.
12910 * gdbtypes.h (replace_type): Add prototype.
12911 * stabsread.c (read_type): Use replace_type.
12912
88fe217c
RE
129132002-02-03 Richard Earnshaw <rearnsha@arm.com>
12914
12915 * Makefile.in (memattr.o): Add missing dependencies rule.
12916
e5d66720
PS
129172002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12918
12919 * breakpoint.c (break_at_finish_command): Really export.
12920 (break_at_finish_at_depth_command): Ditto.
12921 (tbreak_at_finish_command): Ditto.
12922 * hppa-tdep.c: Include completer.h.
12923 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12924 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12925
fffee0be
AC
129262002-02-01 Andrew Cagney <ac131313@redhat.com>
12927
12928 * utils.c (do_write): New function.
12929 (error_stream): Rewrite combining the code from error_begin and
12930 verror.
12931 (verror): Rewrite using error_stream.
12932 (error_begin): Delete function.
12933
255e7dbf
AC
129342002-02-01 Andrew Cagney <ac131313@redhat.com>
12935
12936 * utils.c (error_begin): Make static.
12937 * defs.h (error_begin): Delete declaration.
12938
12939 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12940 (decode_line_1): Use cplusplus_error instead of error_begin,
12941 cplusplus_hint and return_to_top_level.
12942 * coffread.c (coff_symfile_read): Use error instead of error_begin
12943 and return_to_top_level.
12944 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12945
ddfe3c15
AC
129462002-02-01 Andrew Cagney <ac131313@redhat.com>
12947
12948 * language.h (type_error, range_error): Make string parameter
12949 constant.
12950 * language.c (warning_pre_print): Delete extern declaration.
12951 * dwarfread.c (warning_pre_print): Ditto.
12952 * language.c (type_error, range_error): Rewrite to use verror and
12953 vwarning instead of warning_begin.
12954
03ac34d5
MS
129552002-02-01 Michael Snyder <msnyder@redhat.com>
12956
261c4ca2
MS
12957 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12958 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12959
e00d1dc8
AC
129602002-02-01 Andrew Cagney <ac131313@redhat.com>
12961
12962 * command.h (NO_FUNCTION): Delete macro.
12963 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12964 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12965 * tracepoint.c (_initialize_tracepoint): Ditto.
12966 * cli/cli-decode.c (add_set_cmd): Ditto.
12967 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12968
76b79d6e
DJ
129692002-02-01 Daniel Jacobowitz <drow@mvista.com>
12970
12971 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12972 Update ``this'' pointer when calling virtual functions.
12973
799f9e91
MS
129742002-02-01 Michael Snyder <msnyder@redhat.com>
12975
c7bd442c 12976 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12977 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12978
3cf384d4
DJ
129792002-02-01 Daniel Jacobowitz <drow@mvista.com>
12980
12981 * regformats/reg-arm.dat: New file.
12982 * regformats/reg-i386.dat: New file.
12983 * regformats/reg-ia64.dat: New file.
12984 * regformats/reg-m68k.dat: New file.
12985 * regformats/reg-mips.dat: New file.
12986 * regformats/reg-ppc.dat: New file.
12987 * regformats/reg-sh.dat: New file.
12988 * regformats/regdef.h: New file.
12989 * regformats/regdat.sh: New file.
12990
0defa245
RE
129912002-02-01 Richard Earnshaw <reanrsha@arm.com>
12992
12993 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12994 (arm_frame_args_address, arm_frame_locals_address): New functions.
12995 (arm_frame_num_args): New function.
12996 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12997 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12998 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12999
405f26e6
MS
130002002-01-31 Michael Snyder <msnyder@redhat.com>
13001
502fd408
MS
13002 * breakpoint.c (break_at_finish_command): Export.
13003 (break_at_finish_at_depth_command): Export.
13004 (tbreak_at_finish_command): Export.
d6020d45 13005 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13006 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13007 "txbreak" commands, which are HPPA specific.
502fd408 13008
7d35e135
MS
13009 * printcmd.c (disassemble_command): Remove an ancient
13010 artifact of an old merge.
13011
aaa38bb5 13012 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13013 Define enum constant values for overlay mode.
13014 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13015 (overlay_is_mapped, overlay_auto_command,
13016 overlay_manual_command): Ditto.
d874f1e2 13017
aaa38bb5
AJ
13018 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13019 breakpoint_here_p, breakpoint_inserted_here_p,
13020 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13021 describe_other_breakpoints, check_duplicates, clear_command):
13022 Coding standard fixes.
13023
8add0441 13024 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13025 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13026 code: check bfd SEC_READONLY flag for section.
13027
e351066e
AC
130282002-01-31 Andrew Cagney <ac131313@redhat.com>
13029
7d35e135 13030 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13031
8a48e967
DJ
130322002-01-30 Daniel Jacobowitz <drow@mvista.com>
13033
13034 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13035 data symbols, since we search based on textlow and texthigh.
13036 (find_pc_sect_symtab): Likewise.
13037
f5a96129
AC
130382002-01-30 Andrew Cagney <ac131313@redhat.com>
13039
13040 * defs.h (vwarning): Declare.
f5a96129
AC
13041 * utils.c (vwarning): New function.
13042 (warning): Call vwarning.
13043 (warning_begin): Delete function.
13044
13045 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13046 the warning message.
13047 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13048 warning_begin.
13049
cefd4ef5
MS
130502002-01-30 Michael Snyder <msnyder@redhat.com>
13051
1a703748
MS
13052 * NEWS: Mention "set trust-readonly-sections" command.
13053 Mention generate-core-file command.
cefd4ef5 13054
3a11626d
MS
130552002-01-15 Michael Snyder <msnyder@redhat.com>
13056
13057 * target.c: New command, "set trust-readonly-sections on".
13058 (do_xfer_memory): Honor the suggestion to trust readonly sections
13059 by reading them from the object file instead of from the target.
13060 (initialize_targets): Register command "set trust-readonly-sections".
13061
d1c7e53b
AC
130622002-01-29 Andrew Cagney <ac131313@redhat.com>
13063
13064 * parse.c (target_map_name_to_register): Simplify, search regs and
13065 pseudo-regs using a single loop.
13066
e2c9a72c
AC
130672002-01-30 Andrew Cagney <ac131313@redhat.com>
13068
13069 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13070
69824b4e
MK
130712002-01-15 Rodney Brown <rbrown64@csc.com.au>
13072
13073 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13074 * config/i386/i386v42mp.mh: Add i387-nat.o .
13075 * i386v4-nat.c: Include i387-nat.h.
13076 (supply_fpregset): Use i387_supply_fsave.
13077 (fill_fpregset): Use i387_fill_fsave.
13078
6eb69eab
RE
130792002-01-30 Richard Earnshaw <rearnsha@arm.com>
13080
13081 * arm-tdep.c (arm_call_dummy_words): Define.
13082 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13083 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13084 (CALL_DUMMY_WORDS): Define.
13085 (arm_call_dummy_words): Declare.
13086 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13087 (arm_linux_call_dummy_words): Declare.
13088
9852326a
AS
130892002-01-30 Andreas Schwab <schwab@suse.de>
13090
13091 * m68klinux-nat.c: Fix last change to use regcache_collect
13092 instead of referencing registers[] directly.
13093
977a3030
AC
130942002-01-29 Andrew Cagney <ac131313@redhat.com>
13095
13096 * parse.c (target_map_name_to_register): Delete code wrapped in
13097 #ifdef REGISTER_NAME_ALIAS_HOOK.
13098
2076c72b
MS
130992002-01-28 Michael Snyder <msnyder@redhat.com>
13100
13101 * regcache.c (legacy_read_register_gen): Need to be able to
13102 read pseudo-register as well as real register.
13103 (legacy_write_register_gen): Ditto.
13104
8fcc723b
AC
131052002-01-28 Andrew Cagney <ac131313@redhat.com>
13106
13107 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13108 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13109 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13110 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13111 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13112 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13113 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13114 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13115 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13116 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13117 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13118 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13119 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13120 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13121 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13122 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13123 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13124 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13125 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13126 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13127
afe64c1a
AC
131282002-01-28 Andrew Cagney <ac131313@redhat.com>
13129
13130 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13131 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13132 (initialize_current_architecture): Update target_byte_order using
13133 information from BFD.
aaa38bb5 13134 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13135 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13136
75bc7ddf
AC
131372002-01-28 Andrew Cagney <ac131313@redhat.com>
13138
13139 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13140 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13141
13142 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13143 #ifdef INVALID_FLOAT.
13144 * infcmd.c (do_registers_info): Ditto.
13145 * values.c (unpack_double): Ditto. Add comment.
13146
13147 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13148 already commented out.
13149
0280a90a
AS
131502002-01-26 Andreas Schwab <schwab@suse.de>
13151
13152 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13153 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13154 registers and add support for PTRACE_GETREGS.
13155
7072a954
AC
131562002-01-24 Andrew Cagney <ac131313@redhat.com>
13157
13158 GDB 5.1.1 released from 5.1 branch.
13159 * NEWS: Add 5.1.1 news.
13160 * README: Sync with 5.1 branch.
13161
86f902e0
FF
131622002-01-23 Fred Fish <fnf@redhat.com>
13163
13164 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13165 stabstring on initial malloc. Reallocing will copy it for us,
13166 if necessary.
13167
8af51c36
EZ
131682002-01-23 Elena Zannoni <ezannoni@redhat.com>
13169
aaa38bb5 13170 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13171 (HFILES_NO_SRCDIR): Remove hpread.h.
13172 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13173 (hpread.o): Update dependencies.
13174 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13175
13176 * hp-psymtab-read.c: Remove file.
13177 * hp-symtab-read.c: Remove file.
13178 * hpread.h: Remove file.
13179
13180 * hpread.c: Merge all contents of hp-psymtab-read.c,
13181 hp-symtab-read.c and hpread.h into this file, as it was prior to
13182 January 1999.
13183
13184 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13185 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13186 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13187 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13188
dc5cfeb6
EZ
131892002-01-23 Elena Zannoni <ezannoni@redhat.com>
13190
13191 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13192 fill_gregset): Call gdbarch_tdep() just once, assign result to
13193 variable and use that, instead of calling the function several
13194 times.
13195
ea87b71b
AO
131962002-01-24 Alexandre Oliva <aoliva@redhat.com>
13197
13198 * configure.host: Accept sparcv9 as alias for sparc64.
13199 * configure.tgt: Likewise.
13200
13fc0c2f
KB
132012002-01-22 Kevin Buettner <kevinb@redhat.com>
13202
13203 * solib-aix5.c (build_so_list_from_mapfile)
13204 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13205 arguments is not reversed.
13206 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13207 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13208
7bd872fe
EZ
132092002-01-22 Elena Zannoni <ezannoni@redhat.com>
13210
13211 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13212 modified version of obsolete sh_fetch_pseudo_register.
13213 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13214 (sh4_register_read): New function.
13215 (sh_pseudo_register_write): New function. Renamed and modified
13216 version of obsolete sh_store_pseudo_register.
13217 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13218 (sh4_register_write): New function.
13219 (sh_gdbarch_init): Remove setting of gdbarch function
13220 fetch_pseudo_register and store_pseudo_register. Remove setting of
13221 register_convert_to_raw, register_convert_to_virtual,
13222 register_convertible.
13223 (sh_sh4_register_convertible): Delete. No longer needed. All is
13224 taken care by architecture specific functions
13225 register_read/register_write.
13226 (sh_sh4_register_convert_to_virtual): Make static.
13227 (sh_sh4_register_convert_to_raw): Ditto.
13228
069e84fd
AC
132292002-01-22 Andrew Cagney <ac131313@redhat.com>
13230
13231 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13232 (floatformat_is_nan, floatformat_mantissa): Ditto.
13233
13234 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13235 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13236 builtin_type_ieee_double_little,
13237 builtin_type_ieee_double_littlebyte_bigword,
13238 builtin_type_m68881_ext, builtin_type_i960_ext,
13239 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13240 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13241 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13242 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13243
211a4f69
CV
132442002-01-22 Corinna Vinschen <vinschen@redhat.com>
13245
13246 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13247 parameter. Set frameless flag if it exists and depended of
13248 whether the scanned function is frameless or not.
13249 (xstormy16_skip_prologue): If function is frameless, return
13250 result of xstormy16_scan_prologue().
13251 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13252 call.
13253
f81353e4
EZ
132542002-01-21 Elena Zannoni <ezannoni@redhat.com>
13255
13256 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13257 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13258 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13259 sh_sh4_register_byte, sh_sh4_register_raw_size,
13260 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13261 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13262 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13263 sh_store_pseudo_register, sh_do_pseudo_register): Call
13264 gdbarch_tdep() just once, assign result to variable and use that,
13265 instead of calling the function several times.
13266
63c73a17
MK
132672002-01-20 Mark Kettenis <kettenis@gnu.org>
13268
13269 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13270 macros instead of LAST_FPU_CTRL_REGNUM.
13271 (store_register): Likewise.
13272
39ad761d
JB
132732002-01-21 Jim Blandy <jimb@redhat.com>
13274
13275 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13276 is up-to-date before running the program, not just when a program
13277 exits.
13278
3d74b771
FF
132792002-01-21 Fred Fish <fnf@redhat.com>
13280
13281 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13282 when we have found all instructions we are looking for.
13283
966fbf70
RE
132842002-01-21 Richard Earnshaw <rearnsha@arm.com>
13285
13286 * arm-tdep.c (arm_register_name): New function.
13287 (arm_registers_names): Make static.
13288 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13289 (arm_register_name): Declare.
13290 (REGISTER_NAME): Use it.
13291
c3b4394c
RE
132922002-01-21 Richard Earnshaw <rearnsha@arm.com>
13293 Kevin Buettner <kevinb@redhat.com>
13294
13295 Convert arm targets to new FRAME interface.
13296 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13297 (arm_frame_find_save_regs): Delete.
13298 (arm_frame_init_saved_regs): New.
13299 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13300 Allocate extra_info as required. Convert all uses of fsr.regs
13301 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13302 to use extra_info.
13303 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13304 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13305 (check_prologue_cache, save_prologue_cache): Likewise.
13306 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13307 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13308 (FRAME_FIND_SAVED_REGS): Delete.
13309 (arm_frame_find_saved_regs): Delete prototype.
13310 (arm_frame_init_saved_regs): New prototype.
13311 (FRAME_INIT_SAVED_REGS): Define.
13312
61d99182
AC
133132002-01-20 Andrew Cagney <ac131313@redhat.com>
13314
13315 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13316
6aaea291
AC
133172002-01-20 Andrew Cagney <ac131313@redhat.com>
13318
13319 From Jeff Law <law@redhat.com>:
13320 * infttrace.c: Include <sys/pstat.h>.
13321 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13322 exec file if the ttrace equivalent fails.
13323
15f698d2
AC
133242002-01-20 Andrew Cagney <ac131313@redhat.com>
13325
13326 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13327 (closeLogFile): Ditto.
13328
f86ddd7c
MC
133292002-01-20 Michael Chastain <mec@shout.net>
13330
13331 * top.c (print_gdb_version): Bump copyright year to 2002.
13332
904507ce
AC
133332002-01-20 Andrew Cagney <ac131313@redhat.com>
13334
13335 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13336 Zannoni and Eli Zaretskii.
13337
d7f0b9ce
DJ
133382002-01-20 Daniel Jacobowitz <drow@mvista.com>
13339
13340 * buildsym.c: Update copyright years.
13341 * c-typeprint.c: Likewise.
13342 * dwarf2read.c: Likewise.
13343 * f-typeprint.c: Likewise.
13344 * gdbtypes.c: Likewise.
13345 * gdbtypes.h: Likewise.
13346 * hp-symtab-read.c: Likewise.
13347 * hpread.c: Likewise.
13348 * mdebugread.c: Likewise.
13349 * p-typeprint.c: Likewise.
13350
3fd3d7d2
AC
133512002-01-20 Andrew Cagney <ac131313@redhat.com>
13352
13353 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13354 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13355 byte-order selectable.
13356 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13357 * arch-utils.c: Ditto.
13358 (set_endian): Ditto.
13359 (set_endian_from_file): Ditto.
13360 * gdbserver/low-sim.c (create_inferior): Ditto.
13361 * gdbarch.sh: Ditto.
13362 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13363 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13364 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13365 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13366 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13367 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13368 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13369 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13370 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13371 macro definition.
13372 * config/mips/tm-wince.h: Remove #undef of macro
13373 TARGET_BYTE_ORDER_SELECTABLE.
13374 * config/sh/tm-wince.h: Ditto.
13375
b02dede2
DJ
133762002-01-20 Daniel Jacobowitz <drow@mvista.com>
13377
13378 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13379 member function fields. Add accessor macro
13380 TYPE_FN_FIELD_ARTIFICIAL.
13381 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13382 * c-typeprint.c (c_type_print_base): Skip artificial member
13383 functions.
13384
c3643761
DJ
133852002-01-20 Daniel Jacobowitz <drow@mvista.com>
13386
13387 * f-typeprint.c: Delete unused function f_type_print_args.
13388 * p-typeprint.c: Delete unused function pascal_type_print_args.
13389
8176bb6d
DJ
133902002-01-20 Daniel Jacobowitz <drow@mvista.com>
13391
13392 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13393 comment. Add ``artificial'' to ``union field_location''.
13394
13395 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13396
13397 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13398 * mdebugread.c (parse_symbol): Likewise.
13399 * stabsread.c (define_symbol): Likewise.
13400 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13401 initializing TYPE_FIELD_BITPOS to n (obsolete).
13402 (hpread_doc_function_type): Likewise.
13403 * hpread.c (hpread_function_type): Likewise.
13404
7fd60527
AC
134052002-01-20 Andrew Cagney <ac131313@redhat.com>
13406
13407 * configure.in (host_makefile_frag): Only require a host makefile
13408 fragment when a native build.
13409 * configure: Re-generate.
13410
c2f05ac9
AC
134112002-01-20 Andrew Cagney <ac131313@redhat.com>
13412
13413 * doublest.h (floatformat_from_type): Declare.
13414 * doublest.c (floatformat_from_type): New function.
13415 (convert_typed_floating): Use.
13416
13417 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13418 call to function floatformat_from_type.
13419
13420 * gdbarch.sh (IEEE_FLOAT): Delete.
13421 * gdbarch.h, gdbarch.c: Re-generate.
13422 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13423 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13424 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13425 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13426 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13427 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13428 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13429 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13430 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13431 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13432 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13433 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13434
13435 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13436 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13437 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13438 * sh-tdep.c (sh_gdbarch_init): Ditto.
13439 * mips-tdep.c (mips_gdbarch_init): Ditto.
13440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13441 * cris-tdep.c (cris_gdbarch_init): Ditto.
13442
abf22e64
AJ
134432002-01-20 Jiri Smid <smid@suse.cz>
13444
13445 * configure.host, configure.tgt: Support x86-64.
13446 * NEWS: Note new target x86-64.
13447
b7c4cbf8
AJ
13448 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13449 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13450 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13451 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13452 x86-64-linux-nat.o): Fix dependencies.
13453
82600034
AC
134542002-01-19 Andrew Cagney <ac131313@redhat.com>
13455
13456 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13457 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13458 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13459 * config/sparc/xm-sun4os4.h: Delete file.
13460 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13461
bbe5c628
AC
134622002-01-19 Andrew Cagney <ac131313@redhat.com>
13463
13464 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13465 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13466 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13467 * config/i386/i386lynx.mh (XM_FILE): Delete.
13468 * config/rs6000/xm-rs6000ly.h: Delete file.
13469 * config/sparc/xm-sparclynx.h: Delete file.
13470 * config/m68k/xm-m68klynx.h: Delete file.
13471 * config/i386/xm-i386lynx.h: Delete file.
13472 * config/xm-lynx.h: Delete file.
13473 * config/djgpp/fnchange.lst: Update.
13474
f8453e34
JT
134752002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13476
13477 * alpha-tdep.c (alpha_register_byte): New function.
13478 (alpha_register_raw_size): Ditto.
13479 (alpha_register_virtual_size): Ditto.
13480 (alpha_skip_prologue_internal): Renamed from
13481 alpha_skip_prologue.
13482 (alpha_skip_prologue): New version that calls
13483 alpha_skip_prologue_internal.
13484 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13485 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13486 second argument from alpha_skip_prologue.
13487 (REGISTER_BYTE): Use alpha_register_byte.
13488 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13489 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13490 (FRAMELESS_FUNCTION_INVOCATION): Use
13491 generic_frameless_function_invocation_not.
13492 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13493 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13494
52d9e613
AC
134952002-01-19 Andrew Cagney <ac131313@redhat.com>
13496
13497 * config/mips/xm-news-mips.h: Delete file.
13498 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13499
13500 * config/m88k/xm-m88k.h: Delete file.
13501 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13502 * config/m88k/xm-delta88v4.h: Ditto.
13503 * config/m88k/xm-delta88.h: Ditto.
13504
13505 * config/alpha/xm-fbsd.h: Delete file.
13506 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13507
13508 * config/sparc/xm-sparc.h: Delete file.
13509 * Makefile.in (xm-sun4os4.h): Delete dependency.
13510 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13511 * config/sparc/xm-sun4os4.h: Ditto.
13512 * config/sparc/xm-linux.h: Ditto.
13513
13514 * config/i386/xm-windows.h: Delete file.
13515
2d1b2124
AC
135162002-01-19 Andrew Cagney <ac131313@redhat.com>
13517
13518 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13519 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13520
ee1f65f0
JT
135212002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13522
13523 * alpha-tdep.c (alpha_call_dummy_words): New.
13524 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13525 (CALL_DUMMY_P): Define.
13526 (CALL_DUMMY_WORDS): Define.
13527 (SIZEOF_CALL_DUMMY_WORDS): Define.
13528
98081e55
PB
135292002-01-19 Per Bothner <per@bothner.com>
13530
13531 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13532 isn't NULL, which can happen with some gcj-3.x-produced code.
13533
0d056799
JT
135342002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13535
13536 * alpha-tdep.c (alpha_register_virtual_type): New function.
13537 (alpha_init_frame_pc_first): Ditto.
13538 (alpha_fix_call_dummy): Ditto.
13539 (alpha_store_struct_return): Ditto.
13540 (alpha_extract_struct_value_address): Ditto.
13541 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13542 alpha_register_virtual_type.
13543 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13544 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13545 alpha_extract_struct_value_address.
13546 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13547 (INIT_FRAME_PC): Use init_frame_pc_noop.
13548 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13549
4604bcad
MK
135502002-01-19 Mark Kettenis <kettenis@gnu.org>
13551
13552 * i386gnu-nat.c: Include "i386-tdep.h".
13553 (fetch_fpregs): Simplify code dealing with uninitialized floating
13554 point states such that it doesn't require FP7_REGNUM.
13555
140f9984
JT
135562002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13557
abf22e64
AJ
13558 * alpha-tdep.c (frame_extra_info): New.
13559 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13560 frame->extra_info.
13561 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13562 (alpha_frame_saved_pc): Use frame->extra_info.
13563 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13564 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13565 (init_extra_frame_info): Rename to...
13566 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13567 (alpha_print_extra_frame_info): New function.
140f9984
JT
13568 (alpha_frame_locals_address): Ditto.
13569 (alpha_frame_args_address): Ditto.
abf22e64 13570 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13571 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13572 alpha_frame_args_address.
abf22e64 13573 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13574 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13575 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13576 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13577 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13578 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13579
d734c450
JT
135802002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13581
13582 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13583 (alpha_cannot_fetch_register): Ditto.
13584 (alpha_cannot_store_register): Ditto.
13585 (alpha_register_convertible): Ditto.
13586 (alpha_use_struct_convention): Ditto.
13587 * config/alpha/tm-alpha.h: Update copyright years.
13588 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13589 (INNER_THAN): Use core_addr_lessthan.
13590 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13591 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13592 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13593 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13594 (FRAME_CHAIN): Remove unnecessary cast.
13595
b4ceaee6
AC
135962002-01-18 Andrew Cagney <ac131313@redhat.com>
13597
13598 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13599 obsolete.
13600
0a65a603
AC
136012002-01-18 Andrew Cagney <ac131313@redhat.com>
13602
13603 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13604 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13605 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13606 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13607 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13608 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13609 * x86-64-linux-nat.c: Ditto.
13610
636a6dfc
JT
136112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13612
abf22e64 13613 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13614 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13615 (REGISTER_NAME): Define.
13616
acceddb6
JT
136172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13618
13619 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13620
ec32e4be
JT
136212002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13622
13623 * alpha-tdep.c: Update copyright years.
13624 (alpha_next_pc): New function.
13625 (alpha_software_single_step): Ditto.
13626 * config/alpha/tm-alpha.h: Add prototype for
13627 alpha_software_single_step.
13628
e771a871
JT
136292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13630
13631 * alphabsd-nat.c: Update copyright years.
13632 (fill_gregset): Use regcache_collect.
13633 (fill_fpregset): Likewise.
13634 (fetch_inferior_registers): Only fetch integer registers
13635 if requested to do so.
13636 (store_inferior_registers): Only store integer registers
13637 if requested to do so.
13638
7708fa01
AC
136392002-01-17 Andrew Cagney <ac131313@redhat.com>
13640
13641 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13642 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13643 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13644 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13645 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13646 * config/arm/linux.mh (XDEPFILES): Delete.
13647 * config/arm/nbsd.mh (XDEPFILES): Delete.
13648 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13649 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13650 * config/i386/i386m3.mh (XDEPFILES): Delete.
13651 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13652 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13653 * config/i386/fbsd.mh (XDEPFILES): Delete.
13654 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13655 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13656 * config/i386/i386v4.mh (XDEPFILES): Delete.
13657 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13658 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13659 * config/i386/i386aix.mh (XDEPFILES): Delete.
13660 * config/i386/go32.mh (XDEPFILES): Delete.
13661 * config/i386/cygwin.mh (XDEPFILES): Delete.
13662 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13663 * config/i386/i386mach.mh (XDEPFILES): Delete.
13664 * config/i386/i386v32.mh (XDEPFILES): Delete.
13665 * config/i386/linux.mh (XDEPFILES): Delete.
13666 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13667 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13668 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13669 * config/i386/i386sco.mh (XDEPFILES): Delete.
13670 * config/i386/i386v.mh (XDEPFILES): Delete.
13671 * config/i386/nbsd.mh (XDEPFILES): Delete.
13672 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13673 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13674 * config/i386/symmetry.mh (XDEPFILES): Delete.
13675 * config/i386/obsd.mh (XDEPFILES): Delete.
13676 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13677 * config/ia64/linux.mh (XDEPFILES): Delete.
13678 * config/ia64/aix.mh (XDEPFILES): Delete.
13679 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13680 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13681 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13682 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13683 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13684 * config/m68k/linux.mh (XDEPFILES): Delete.
13685 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13686 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13687 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13688 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13689 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13690 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13691 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13692 * config/m88k/delta88.mh (XDEPFILES): Delete.
13693 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13694 * config/m88k/m88k.mh (XDEPFILES): Delete.
13695 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13696 * config/mips/linux.mh (XDEPFILES): Delete.
13697 * config/mips/irix6.mh (XDEPFILES): Delete.
13698 * config/mips/irix5.mh (XDEPFILES): Delete.
13699 * config/mips/irix4.mh (XDEPFILES): Delete.
13700 * config/mips/irix3.mh (XDEPFILES): Delete.
13701 * config/mips/decstation.mh (XDEPFILES): Delete.
13702 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13703 (NATDEPFILES): Move core-aout.o to here.
13704 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13705 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13706 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13707 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13708 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13709 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13710 * config/pa/hpux11.mh (XDEPFILES): Delete.
13711 * config/powerpc/aix.mh (XDEPFILES): Delete.
13712 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13713 * config/powerpc/linux.mh (XDEPFILES): Delete.
13714 * config/romp/rtbsd.mh: Rename XDEPFILES.
13715 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13716 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13717 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13718 * config/s390/s390.mh (XDEPFILES): Delete.
13719 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13720 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13721 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13722 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13723 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13724 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13725 * config/sparc/linux.mh (XDEPFILES): Delete.
13726 * config/vax/vaxult.mh (XDEPFILES): Delete.
13727 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13728 * Makefile.in (DEPFILES): Remove XDEPFILES.
13729
375fc983
AC
137302002-01-17 Andrew Cagney <ac131313@redhat.com>
13731
13732 * utils.c (internal_verror): Fix comments, default is yes not no.
13733 Update queries to match. Default to quit and dump core.
13734
8926118c
AC
137352002-01-17 Andrew Cagney <ac131313@redhat.com>
13736
13737 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13738 copyright.
13739 * defs.h, event-top.c, gdbcmd.h: Ditto.
13740 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13741 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13742 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13743 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13744 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13745 * mi/mi-main.c:Ditto.
13746
13747 * stack.c, symfile.c: Update copyright.
13748
45b7b345
DJ
137492002-01-17 Daniel Jacobowitz <drow@mvista.com>
13750
db728ff7
DJ
13751 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13752 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13753 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13754 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13755
db728ff7
DJ
137562002-01-17 Daniel Jacobowitz <drow@mvista.com>
13757
13758 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13759 * gdbserver/low-lynx.c (myattach): Likewise.
13760 * gdbserver/low-nbsd.c (myattach): Likewise.
13761 * gdbserver/low-sim.c (myattach): Likewise.
13762 * gdbserver/low-sparc.c (myattach): Likewise.
13763 * gdbserver/low-sun3.c (myattach): Likewise.
13764
13765 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13766
db728ff7 13767 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13768 (main): Handle "--attach".
13769
8de3c354
AC
137702002-01-16 Andrew Cagney <ac131313@redhat.com>
13771
13772 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13773 maintainer.
13774
b0129042
DJ
137752002-01-15 Daniel Jacobowitz <drow@mvista.com>
13776
13777 * c-typeprint.c (is_type_conversion_operator): Add additional
13778 check for non-conversion operators.
13779
ba8679fb 137802002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13781
13782 * linux-proc.c: Add "info proc" command, a la procfs.c.
13783 (read_mapping): New function, abstract and re-use code.
13784 (linux_find_memory_regions): Use new func read_mapping.
13785 (linux_info_proc_cmd): New function, implement "info proc".
13786 (_initialize_linux_proc): Add new command "info proc".
13787
e4f9b4d5
MS
137882002-01-15 Michael Snyder <msnyder@redhat.com>
13789
13790 * symfile.c (generic_load): Use bfd_map_over_sections method
13791 instead of manipulating bfd structure members directly.
13792 (add_section_size_callback): New function, bfd sections callback
13793 used by generic_load.
13794 (load_sections_callback): New function, bfd sections callback
13795 used by generic_load.
13796
08cf96df
EZ
137972002-01-15 Elena Zannoni <ezannoni@redhat.com>
13798
abf22e64 13799 [Based on work by Jim Blandy]
08cf96df
EZ
13800 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13801 (builtin_type_vec128): Export.
13802 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13803 types.
13804 (builtin_type_vec128): New builtin type for 128 bit vector
13805 registers.
13806 (build_gdbtypes): Initialize builtin_type_v16qi and
13807 builtin_type_v8hi. Create the vec128 register builtin type
13808 structure.
13809 (build_builtin_type_vec128): New function.
abf22e64 13810 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13811 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13812 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13813 AltiVec register to new builtin type.
13814
d7242108
DJ
138152001-01-15 Daniel Jacobowitz <drow@mvista.com>
13816
13817 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13818 to make_cv_type.
13819
4ee3352d
AC
138202002-01-14 Andrew Cagney <ac131313@redhat.com>
13821
13822 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13823 CLEAN_UP_REGISTER_VALUE.
13824 * regcache.c (supply_register): Update only call.
13825
f015b2e7
AC
138262002-01-14 Andrew Cagney <ac131313@redhat.com>
13827
13828 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13829 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13830 a29k-*-vxworks* targets as obsolete.
13831
356ae49d
MS
138322002-01-14 Michael Snyder <msnyder@redhat.com>
13833
13834 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13835 until we can resolve portability issues.
13836 * gregset.h: Remove references to fpxregs.
13837 * gcore.c (gcore_command): Initialize note_sec to NULL.
13838
ade8f45e
AC
138392002-01-13 Andrew Cagney <ac131313@redhat.com>
13840
13841 * signals.c (target_signal_to_name): Rewrite. Only use
13842 signals[].name when in bounds and non-NULL.
abf22e64 13843
89c49e7a
AC
138442002-01-13 Andrew Cagney <ac131313@redhat.com>
13845
13846 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13847 * signals.c (target_signal_to_name): Verify that SIG is within the
13848 bounds of the signals array.
13849
4daa9f9f
AC
138502002-01-13 Andrew Cagney <ac131313@redhat.com>
13851
13852 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13853
ba4bbdcb
KS
138542002-01-13 Keith Seitz <keiths@redhat.com>
13855
13856 * stack.c (print_frame_info_base): Print the frame's pc
13857 only if when print_frame_info_listing_hook is not defined.
13858
575bbeb6
KS
138592002-01-13 Keith Seitz <keiths@redhat.com>
13860
13861 * varobj.c (varobj_set_value): Make sure that there were no
13862 errors evaluating the object before attempting to set its
13863 value.
13864 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13865 so this offset adjustment is no longer necessary.
13866 (create_child): Don't set the error flag if the child is
13867 a CPLUS_FAKE_CHILD.
13868 (value_of_child): If value_fetch_lazy fails, return NULL
13869 so that callers will be notified that an error occurred.
13870 (c_value_of_variable): Delay check of variable's validity
13871 until later. We actually want all structs and unions to have
13872 the value "{...}".
13873 Do not return "???" for variables which could not be evaluated.
13874 This error condition must be returned to the caller so that it
13875 can get the error condition from gdb.
13876 (cplus_name_of_child): Adjust index for vptr before figuring
13877 out the name of the child.
13878 (cplus_value_of_child): If a child's (real) parent is not valid,
13879 don't even bother trying to give a value for it. Just return
13880 an error. Change all instances in this function.
13881 (cplus_type_of_child): If our parent is one of the "fake"
13882 parents, we need to get at the type of the real parent, and
13883 derive the child's true type using this information.
13884
b76898ab
AC
138852002-01-13 Andrew Cagney <ac131313@redhat.com>
13886
13887 From 2002-01-09 John Marshall <johnm@falch.net>:
13888 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13889 sources.redhat.com, and tweak some related URLs which had
13890 suffered from linkrot.
13891
b6649e88
AC
138922002-01-13 Andrew Cagney <ac131313@redhat.com>
13893
13894 From Jeff law:
13895 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13896 structures passed in registers.
13897
82cc5033
EZ
138982002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13899
13900 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13901 white space which prevented compilation. Reported by DSK
13902 <dsk@student.unsw.edu.au>.
13903
ba5f2f8a
MS
139042002-01-11 Michael Snyder <msnyder@redhat.com>
13905
fbd35540
MS
13906 * symfile.c (build_section_addr_info_from_section_tab):
13907 Use bfd access method instead of manipulating bfd directly.
13908 (syms_from_objfile): Ditto.
13909 (simple_overlay_update_1): Ditto.
13910 (simple_overlay_update): Ditto.
13911 (generic_load): Ditto.
13912 (overlay_unmapped_address): FIXME comment, bfd access methods.
13913 (sections_overlap): FIXME comment, bfd access methods.
13914 (pc_in_mapped_range): FIXME comment, bfd access methods.
13915 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13916 (section_is_mapped): FIXME comment, bfd access methods.
13917 (section_is_overlay): FIXME comment, bfd access methods.
13918
ba5f2f8a
MS
13919 * symfile.c (generic_load): Whitespace and long line cleanups.
13920 Remove duplicate variable, change several local variables to
13921 more appropriate data types.
13922 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13923
17df2af6
AC
139242002-01-12 Andrew Cagney <ac131313@redhat.com>
13925
13926 From Peter Schauer:
13927 * language.c (longest_local_hex_string_custom): Use phex_nz to
13928 convert NUM to a hex string.
13929
ec920329
EZ
139302002-01-12 Elena Zannoni <ezannoni@redhat.com>
13931
13932 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13933 the function.
538a76d6 13934 Update Copyright year.
ec920329 13935
3abd2e01
AC
139362002-01-12 Andrew Cagney <ac131313@redhat.com>
13937
13938 * language.c (longest_raw_hex_string): Delete unused function.
13939
b21b22e0
PS
139402002-01-11 Petr Sorfa <petrs@caldera.com>
13941
13942 * MAINTAINERS (write-after-approval): Add myself.
13943 * dwarf2read.c (read_tag_string_type): Handling of
13944 DW_AT_byte_size.
13945 (read_tag_string_type): FORTRAN fix to prevent propagation of
13946 first string size.
13947 (set_cu_language): Handling of DW_LANG_Fortran95
13948
747fe712
RE
139492002-01-11 Richard Earnshaw <rearnsha@arm.com>
13950
13951 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13952 GETPID(inferior_ptid).
13953 (store_inferior_registers): Likewise.
13954
f1bea926
JM
139552002-01-10 Jason Merrill <jason@redhat.com>
13956
13957 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13958 Fix DW_OP_minus.
13959
ae940673
AC
139602002-01-10 Andrew Cagney <ac131313@redhat.com>
13961
13962 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13963 and bfd/elf32-sh-nbsd.c.
13964
00546b04
MS
139652002-01-10 Michael Snyder <msnyder@redhat.com>
13966
352ed7b4
MS
13967 * NEWS: Mention --pid and corefile/proc-id behavior change.
13968
c18be923
MS
13969 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13970 * gcore.c: Include cli/cli-decode.h instead of command.h.
13971
00546b04
MS
13972 * main.c (captured_main): Add new command line option "--pid".
13973 If the second command line argument (following the symbol-file)
13974 begins with a digit, try to attach to it before trying to open
13975 it as a corefile.
13976 (print_gdb_help): Document the "--pid" argument.
13977
db60ec62
EZ
139782002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13979
13980 * completer.c (command_completer): New function.
13981
13982 * completer.h <command_completer>: Add prototype.
13983
13984 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13985 completer for the "help" command.
13986
39c22d1a
JM
139872002-01-09 Jason Merrill <jason@redhat.com>
13988
13989 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13990
c564377f
MS
139912002-01-09 Michael Snyder <msnyder@redhat.com>
13992
975aec09
MS
13993 * i386-linux-nat.c (fill_fpxregset): Make global.
13994 (store_fpxregset): Ditto.
13995
db4a10fa
MS
13996 * gregset.h (gdb_fpxregset_t): Define.
13997 (supply_fpxregset): Prototype.
13998 (fill_fpxregset): Prototype.
13999
c564377f
MS
14000 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14001
c3d45d70
RE
140022002-01-09 Richard Earnshaw <rearnsha@arm.com>
14003
14004 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14005 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14006 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14007
fcc87af1
AC
140082002-01-09 Andrew Cagney <ac131313@redhat.com>
14009
14010 * MAINTAINERS: Update target maintainer rules so that any
14011 Maintainer can approve a tested patch for a maintenance-only
14012 target.
14013
dd96c05b
RE
140142002-01-09 Richard Earnshaw <rearnsha@arm.com>
14015
d4297db9 14016 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14017
d4297db9 14018 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14019 IN_SIGTRAMP.
14020
145fdc6e
MS
140212002-01-08 Michael Snyder <msnyder@redhat.com>
14022
14023 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14024 real name of the executable, rather than the /proc name.
14025
be4d1333
MS
140262002-01-03 Michael Snyder <msnyder@redhat.com>
14027
14028 Implement a "generate-core-file" command in gdb, save target state.
14029 * gcore.c: New file. Implement new command 'generate-core-file'.
14030 Save a corefile image of the current state of the inferior.
14031 * linux-proc.c: Add linux-specific code for saving corefiles.
14032 * target.h (struct target_ops): Add new target vectors for saving
14033 corefiles; to_find_memory_regions and to_make_corefile_notes.
14034 (target_find_memory_regions): New macro.
14035 (target_make_corefile_notes): New macro.
14036 * target.c (update_current_target): Inherit new target methods.
14037 (dummy_find_memory_regions): New place-holder method.
14038 (dummy_make_corefile_notes): New place-holder method.
14039 (init_dummy_target): Initialize new dummy target vectors.
14040 * exec.c (exec_set_find_memory_regions): New function.
14041 Allow the exec_ops vector for memory regions to be taken over.
14042 (exec_make_note_section): New function, target vector method.
14043 * defs.h (exec_set_find_memory_regions): Export prototype.
14044 * procfs.c (proc_find_memory_regions): New function, corefile method.
14045 (procfs_make_note_section): New function, corefile method.
14046 (init_procfs_ops): Set new target vector pointers.
14047 (find_memory_regions_callback): New function.
14048 (procfs_do_thread_registers): New function.
14049 (procfs_corefile_thread_callback): New function.
14050 * sol-thread.c (sol_find_memory_regions): New function.
14051 (sol_make_note_section): New function.
14052 (init_sol_thread_ops): Initialize new target vectors.
14053 * inftarg.c (inftarg_set_find_memory_regions): New function.
14054 Allow to_find_memory_regions vector to be taken over.
14055 (inftarg_set_make_corefile_notes): New function.
14056 Allow to_make_corefile_notes vector to be taken over.
14057 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14058 interface layer if not target_has_execution (may be a corefile).
14059 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14060 * config/sparc/sun4sol2.mh: Ditto.
14061 * config/alpha/alpha-linux.mh: Ditto.
14062 * config/arm/linux.mh: Ditto.
14063 * config/i386/x86-64linux.mh: Ditto.
14064 * config/ia64/linux.mh: Ditto.
14065 * config/m68k/linux.mh: Ditto.
14066 * config/mips/linux.mh: Ditto.
14067 * config/powerpc/linux.mh: Ditto.
14068 * config/sparc/linux.mh: Ditto.
14069
c6b92abd
MS
140702002-01-07 Michael Snyder <msnyder@redhat.com>
14071
14072 * arm-linux-nat.c: Remove references to regcache.c internal data
14073 (registers[] and register_valid[]).
14074
4b09dc8c
MS
140752002-01-07 Michael Snyder <msnyder@redhat.com>
14076
abf22e64
AJ
14077 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14078 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14079 symbol file and shlibs.
14080 * Makefile.in: Add rule for linux-proc.o.
14081 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14082 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14083 * config/arm/linux.mh: Ditto.
14084 * config/i386/linux.mh: Ditto.
14085 * config/i386/x86-64linux.mh: Ditto.
14086 * config/ia64/linux.mh: Ditto.
14087 * config/m68k/linux.mh: Ditto.
14088 * config/mips/linux.mh: Ditto.
14089 * config/powerpc/linux.mh: Ditto.
14090 * config/sparc/linux.mh: Ditto.
14091
c25b74ac
PM
140922002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14093
14094 * win32-nat.c: Add i386-tdep.h dependency.
14095
94cd915f
MS
140962002-01-07 Michael Snyder <msnyder@redhat.com>
14097
c7cccb76
MS
14098 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14099 instead of bfd_get_arch_size. Don't bail out just because
14100 there's no exec_bfd.
abf22e64 14101
34c0bd93
MS
14102 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14103 * p-valprint.c (pascal_object_print_value): Ditto.
14104 * somread.c (som_symtab_read): Ditto.
14105 * symfile.c (simple_free_overlay_region_table): Ditto.
14106 * valops.c (value_assign): Ditto.
14107
21c1c920
MS
14108 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14109 use tilde_expand and strerror for opening save-tracepoints file.
14110
5bbd998e
MS
14111 * thread-db.c (thread_db_new_objfile): Indendation fix.
14112
94cd915f
MS
14113 * infptrace.c (GDB_MAX_ALLOCA): New define.
14114 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14115 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14116 can be overridden with whatever value is appropriate to the host).
14117 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14118 alloca to allocate potentially large buffer.
14119 * rs6000-nat.c (child_xfer_memory): Ditto.
14120 * symm-nat.c (child_xfer_memory): Ditto.
14121 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14122
494e8a93
JSC
141232002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14124
14125 From Nick Clifton <nickc@redhat.com>
14126 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14127
d0e1d48e
MS
141282002-01-07 Michael Snyder <msnyder@redhat.com>
14129
abf22e64 14130 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14131 Don't use exec_bfd if it's NULL.
14132
290b2c7a
MK
141332002-01-06 Mark Kettenis <kettenis@gnu.org>
14134
abf22e64 14135 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14136
aef21287
AC
141372002-01-06 Andrew Cagney <ac131313@redhat.com>
14138
14139 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14140 * gnu-nat.c: Ditto.
14141
30efa627
AC
141422002-01-06 Andrew Cagney <ac131313@redhat.com>
14143
14144 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14145 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14146 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14147 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14148 z8k-coff have not been multi-arched. Update z8k-coff build
14149 status.
14150
9b4ff276
AC
141512002-01-06 Andrew Cagney <ac131313@redhat.com>
14152
14153 * MAINTAINERS: Mark a29k target as obsolete.
14154 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14155 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14156 comments.
14157 * NEWS: Note that a29k targets are obsolete.
14158 * a29k-tdep.c: Mark as obsolete.
14159 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14160 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14161 a29k-*-vxworks* targets as obsolete.
14162 * remote-adapt.c: Obsolete.
14163 * remote-eb.c: Obsolete.
14164 * remote-mm.c: Obsolete.
14165 * remote-udi.c: Obsolete.
14166 * config/a29k/a29k-udi.mt: Obsolete.
14167 * config/a29k/a29k.mt: Obsolete.
14168 * config/a29k/tm-a29k.h: Obsolete.
14169 * config/a29k/tm-vx29k.h: Obsolete.
14170 * config/a29k/vx29k.mt: Obsolete.
14171
a9011d31
AC
141722002-01-05 Andrew Cagney <ac131313@redhat.com>
14173
14174 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14175 with BFD_ENDIAN_BIG.
14176
9299404e
AC
141772002-01-05 Andrew Cagney <ac131313@redhat.com>
14178
14179 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14180 * configure, config.in: Re-generate.
14181 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14182 * defs.h: Do not include <endian.h>.
14183
7e89e357
JT
141842002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14185
14186 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14187 * config.in: Regenerate.
14188 * configure.in: Update copyright years.
14189 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14190 * configure: Regenerate.
14191 * i386bsd-nat.c: Update copyright years.
14192 (fill_gregset): Use regcache_collect.
14193 (fetch_inferior_registers): Only fetch integer registers
14194 if requested to do so. Add support for XMM registers
14195 using PT_GETXMMREGS.
14196 (store_inferior_registers): Only store integer registers
14197 if requested to do so. Add support for XMM registers
14198 using PT_SETXMMREGS.
14199 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14200 (store_inferior_registers): Remove.
14201 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14202 (fetch_elfcore_registers): New function.
14203 (i386nbsd_elfcore_fns): New.
14204 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14205 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14206 i386bsd-nat.o.
14207 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14208 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14209 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14210 * config/i386/tm-nbsd.h: Update copyright years.
14211 (HAVE_SSE_REGS): Define.
14212 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14213 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14214 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14215 (SIGCONTEXT_PC_OFFSET): Remove.
14216 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14217
a752853e
AC
142182002-01-05 Andrew Cagney <ac131313@redhat.com>
14219
14220 * configure.tgt: Remove powerpc-*-macos* target.
14221 * config/m68k/xm-mpw.h: Delete file.
14222 * config/xm-mpw.h: Delete file.
14223 * ser-mac.c: Delete file.
14224 * mpw-make.sed: Delete file.
14225 * mpw-config.in: Delete file.
14226 * mac-xdep.c: Delete file.
14227 * mac-gdb.r: Delete file.
14228 * mac-defs.h: Delete file.
14229 * mac-nat.c: Delete file.
14230 * config/powerpc/macos.mh: Delete file.
14231 * config/powerpc/macos.mt: Delete file.
14232 * config/powerpc/nm-macos.h: Delete file.
14233 * config/powerpc/tm-macos.h: Delete file.
14234 * source.c (openp, open_source_file): Remove obsolete code.
14235 * top.c (gdb_readline): Ditto.
14236 * utils.c (query): Ditto.
14237 * event-top.c (display_gdb_prompt): Ditto.
14238 * Makefile.in (ser-mac.o): Delete obsolete target.
14239 * NEWS: Update.
14240
d7449b42
AC
142412002-01-04 Andrew Cagney <ac131313@redhat.com>
14242
14243 * defs.h (BIG_ENDIAN): Delete macro definition.
14244 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14245 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14246 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14247 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14248 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14249 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14250 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14251 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14252 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14253 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14254 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14255 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14256 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14257 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14258 * gdbarch.c: Re-generate.
14259
356374e8
DJ
142602002-01-04 Daniel Jacobowitz <drow@mvista.com>
14261
14262 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14263 for core files.
14264
a2b8f8f8
JT
142652002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14266
14267 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14268
12466af9
AC
142692002-01-04 Andrew Cagney <ac131313@redhat.com>
14270
14271 * value.h (value_ptr): Delete typedef.
14272
3549ab40
JT
142732002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14274
14275 * i386nbsd-nat.c: Update copyright years.
14276 Include i386-tdep.h.
14277
fedbd091
EZ
142782002-01-04 Elena Zannoni <ezannoni@redhat.com>
14279
14280 * stabsread.c: Update copyright years.
14281
14282 From Debashis Mahata <debashis.mahata@wipro.com>:
14283 (read_struct_fields): Deal with Sun C compiler erroneous stab
14284 output for structs and unions.
fec8b34f 14285 Fix PR gdb/269.
fedbd091 14286
eb43544b
DJ
142872002-01-04 Daniel Jacobowitz <drow@mvista.com>
14288
14289 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14290 prototype.
14291
1514d34e
DJ
142922002-01-04 Daniel Jacobowitz <drow@mvista.com>
14293
14294 * cp-abi.c: Fix whitespace.
14295 (baseclass_offset): New wrapper function.
14296 * cp-abi.h (baseclass_offset): Add prototype.
14297 (struct cp_abi_ops): Add baseclass_offset pointer.
14298
14299 * valops.c (vb_match): Move to...
14300 * gnu-v2-abi.c (vb_match): here.
14301 * valops.c (baseclass_offset): Move to...
14302 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14303
14304 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14305
14306 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14307 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14308 * hpacc-abi.c (init_hpacc_ops): Likewise.
14309
7f8c9282
DJ
143102002-01-04 Daniel Jacobowitz <drow@mvista.com>
14311
14312 * valops.c (find_overload_match): Accept obj as a
14313 reference parameter. Update it before returning.
14314 * value.h (find_overload_match): Update prototype.
14315 * eval.c (evaluate_subexp_standard): Pass object to
14316 find_overload_match by reference.
14317
f23631e4
AC
143182002-01-03 Andrew Cagney <ac131313@redhat.com>
14319
14320 * valarith.c: Replace value_ptr with struct value pointer. Remove
14321 register attribute from value declarations.
14322 * valops.c: Ditto.
14323 * value.h: Ditto.
14324 * scm-lang.c (scm_lookup_name): Ditto.
14325
79e10fab 143262002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14327
79e10fab
AC
14328 Abstract the functionality of iterating over mapped memory
14329 regions into a general purpose iterator function.
abf22e64 14330 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14331 iterator for memory sections.
14332 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14333 (solib_mappings_callback): New function, callback for above.
14334 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14335 (info_mappings_callback): New function, callback for above.
14336
14337 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14338
c5ad026a
MK
143392002-01-01 Mark Kettenis <kettenis@gnu.org>
14340
d2a7c97a
MK
14341 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14342 * i386-tdep.c: Include "elf-bfd.h".
14343 (process_note_abi_tag_sections): New function.
14344 (i386_gdbarch_init): Add code to recognize various OS/ABI
14345 combinations.
14346
c5ad026a
MK
14347 * maint.c (_initialize_maint_cmds): Add missing \ in
14348 string-literal.
14349
a1a5b71e 14350For older changes see ChangeLog-2001
c906108c
SS
14351\f
14352Local Variables:
14353mode: change-log
14354left-margin: 8
14355fill-column: 74
14356version-control: never
14357End:
This page took 0.962282 seconds and 4 git commands to generate.