2004-06-07 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1658da49
RC
12004-06-07 Randolph Chung <tausq@debian.org>
2
3 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4 unwinding after sp has been saved to the stack but before the end
5 of the prologue, and after the fp has been modified but before it has
6 been saved to the stack.
7 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
8 Remove superfluous definitions.
9 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
10
9a727a3c
RC
112004-06-07 Guy Martin <gmsoft@gentoo.org>
12
13 Committed by Randolph Chung.
14 * hppa-linux-nat.c: Include the correct version of the header file
15 depending on the kernel version.
16
9e500012
RC
172004-06-06 Randolph Chung <tausq@debian.org>
18
19 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
20 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
21
3388d7ff
RC
222004-06-06 Randolph Chung <tausq@debian.org>
23
24 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
25 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
26 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
27 * hppa-tdep.c (hppa_symbol_address): New function definition.
28 * hppa-tdep.h (hppa_symbol_address): New function declaration.
29
d49771ef
RC
302004-06-06 Randolph Chung <tausq@debian.org>
31
32 * hppa-tdep.h (struct value): Forward declaration.
33 (gdbarch_tdep): Define tdep find_global_pointer method.
34 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
35 associated with the function we are trying to call, and write it
36 to the gp register.
37 (hppa32_convert_from_funct_ptr_addr): New function.
38 (hppa_find_global_pointer): New function.
39 (hppa_gdbarch_init): Set default find_global_pointer method; set
40 convert_from_func_ptr_addr method.
41 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
42 (hppa_linux_init_abi): Set find_global_pointer method.
43 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
44
7d9b040b
RC
452004-06-06 Randolph Chung <tausq@debian.org>
46
47 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
48 to struct value *function.
49 * gdbarch.c: Regenerate.
50 * gdbarch.h: Likewise.
51 * infcall.c (call_function_by_hand): Pass entire function value
52 to push_dummy_call.
53
54 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
55 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
56 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
57 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
58 * arm-tdep.c (arm_push_dummy_call): Likewise.
59 * avr-tdep.c (avr_push_dummy_call): Likewise.
60 * cris-tdep.c (cris_push_dummy_call): Likewise.
61 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
62 * frv-tdep.c (frv_push_dummy_call): Likewise.
63 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
64 * hppa-tdep.c (hppa32_push_dummy_call)
65 (hppa64_push_dummy_call): Likewise.
66 * i386-tdep.c (i386_push_dummy_call): Likewise.
67 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
68 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
69 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
70 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
71 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
72 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
73 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
74 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
75 (ppc64_sysv_abi_push_dummy_call): Likewise.
76 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
77 (ppc64_sysv_abi_push_dummy_call): Likewise.
78 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
79 * s390-tdep.c (s390_push_dummy_call): Likewise.
80 * sh-tdep.c (sh_push_dummy_call_fpu)
81 (sh_push_dummy_call_nofpu): Likewise.
82 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
83 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
84 * vax-tdep.c (vax_push_dummy_call): Likewise.
85
4a19ea35
JB
862004-06-04 Jim Blandy <jimb@redhat.com>
87
8327ccee
JB
88 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
89 gdbarch argument to register_size.
90
a3c001ce
JB
91 * rs6000-tdep.c (rs6000_store_return_value): Use
92 regcache_cooked_write_part instead of
93 deprecated_write_register_bytes.
94 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
95 not gdbarch_deprecated_store_return_value.
96
4a19ea35
JB
97 * ppc-linux-nat.c (store_register, fetch_register): Remove
98 incorrect assertions. Simplify and generalize handling of
99 transfers whose sizes are not multiples of, or less than, sizeof
100 (PTRACE_XFER_TYPE).
101
b9b5d7ea
JJ
1022004-06-04 Jeff Johnston <jjohnstn@redhat.com>
103
104 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
105 as a new thread event.
106 * thread_db.c (thread_get_info_callback): If the thread is a
107 zombie, return TD_THR_ZOMBIE.
108 * (thread_from_lwp): If thread_get_info_callback returns
109 TD_THR_ZOMBIE, check if the thread is still on the thread list
110 and return a -1 ptid if not found.
111 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
112 change the status to TARGET_WAITKIND_SPURIOUS.
113
c8a3b559
CV
1142004-06-03 Corinna Vinschen <vinschen@redhat.com>
115
116 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
117 double values in little endian mode.
118
20605361
AC
1192004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
120
121 Committed by Andrew Cagney.
122 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
123 after last enum constant to avoid error from IBM C
124 compiler.
125
bc97b3ba
JB
1262004-06-02 Jim Blandy <jimb@redhat.com>
127
128 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
129 to 'message', and make it local to the lone block that uses it.
130
1da28ab0
JB
131 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
132
4c4b4cd2
PH
1332004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
134
135 * ada-exp.y: Synchronize with current ACT sources.
136 * ada-lang.c: Ditto.
137 * ada-lang.h: Ditto.
138 * ada-lex.l: Ditto.
139 * ada-tasks.c: Ditto.
140 * ada-typeprint.c: Ditto.
141 * ada-valprint.c: Ditto.
142
f65f91b5
JB
1432004-06-01 Jim Blandy <jimb@redhat.com>
144
145 * ppc-tdep.h: Delete unused 'regoff' member.
146 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
147
d4687fa0
MC
1482004-06-01 Michael Chastain <mec.gnu@mindspring.com>
149
150 Fix PR symtab/1661.
151 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
152 (hpread_read_struct_type): Likewise.
153
de169ec9
AC
1542004-06-01 Andrew Cagney <cagney@gnu.org>
155
c6902d46
AC
156 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
157 instead of xasprintf.
158 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
159 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
160 (mi_cmd_data_list_register_names)
161 (mi_cmd_data_list_changed_registers)
162 (mi_cmd_data_list_register_values)
163 (get_register, mi_cmd_data_write_register_values)
164 (mi_cmd_data_write_register_values)
165 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
166 (mi_cmd_target_download, mi_cmd_target_select)
167 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
168 (mi_execute_cli_command, mi_execute_async_cli_command)
169 (mi_execute_async_cli_command): Ditto.
170 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
171 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
172
6085fc2d
AC
173 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
174 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
175 error_last_message instead of mi_error_last_message.
176 * mi/mi-main.c (mi_error_last_message): Delete function.
177
de169ec9
AC
178 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
179 "invalid number of columns" error. Delete redundant "out of
180 memory" check.
181
1fc7d519
MK
1822004-05-31 Mark Kettenis <kettenis@gnu.org>
183
6cfb2041
MK
184 * i386bsd-nat.c: Don't include <sys/procfs.h>.
185 (gregset_t, fpregset_t): Remove typedefs.
186 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
187 (REG_OFFSET): Rename argument.
188 (i386bsd_r_reg_offset): Rename from reg_offset.
189 (REG_ADDR): Remove macro.
190 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
191 functions.
192 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
193 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
194 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
195 instead of supply_gregset.
196 (store_inferior_registers): Use `struct reg' and `struct fpreg'
197 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
198 instead of fill_gregset.
199 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
200
1fc7d519
MK
201 * i386bsd-nat.c: Don't include "gregset.h".
202 (supply_gregset, fill_gregset): Make static.
203 (supply_fpregset, fill_fpregset): Remove.
204 * Makefile.in (i386bsd-nat.o): Update dependencies.
205
2c34abbe
MK
2062004-05-30 Mark Kettenis <kettenis@gnu.org>
207
448724fb
MK
208 * fbsd-proc.c: Include "regcache.h", "regset.h" and
209 "gdb_assert.h". Con't include "gregset.h".
210 (fbsd_make_corefile_notes): Use regset-based core file support
211 instead off fill_gregset and fill_fpregset.
212 * Makefile.in (fbsd-proc.o): Update dependencies.
213
5ca8ca7c
MK
214 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
215 instructions.
216 (m88k_frame_prev_register): Simplify code a bit.
217
593adc23
MK
218 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
219 (amd64_collect_fpregset): New function.
220 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
221
8d1b517b
MK
222 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
223
7fdafb5a
MK
224 * i386-tdep.c (i386_supply_gregset): Adjust comment.
225 (i386_collect_gregset): New function.
226 (i386_supply_fpregset): Adjust comment.
227 (i386_collect_fpregset): New function.
228 (i386_regset_from_core_section): Use i386_collect_gregset and
229 i386_collect_fpregset.
230
8693c419
MK
231 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
232 handle VALUEP being null.
233
2c34abbe
MK
234 * regset.h (collect_regset_ftype): Unconstify fourth argument.
235
45d134d8
MK
2362004-05-29 Mark Kettenis <kettenis@gnu.org>
237
1698f4e7
MK
238 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
239
45d134d8
MK
240 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
241 assembler in OpenBSD 3.5-current.
242 (amd64obsd_sigcontext_addr): Likewise.
243
691d145a
JB
2442004-05-28 Jim Blandy <jimb@redhat.com>
245
246 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
247 register set, so our regcache isn't declared "legacy" and our E500
248 pseudoregister read and write functions aren't ignored.
249 (rs6000_register_byte, rs6000_register_raw_size,
250 rs6000_register_virtual_type, rs6000_register_convertible,
251 rs6000_register_convert_to_virtual,
252 rs6000_register_convert_to_raw): Deleted.
253 (rs6000_register_type, rs6000_convert_register_p,
254 rs6000_register_to_value, rs6000_value_to_register): New
255 functions.
256 (rs6000_gdbarch_init): Don't register
257 gdbarch_deprecated_register_size,
258 gdbarch_deprecated_register_bytes,
259 gdbarch_deprecated_register_byte,
260 gdbarch_deprecated_register_raw_size,
261 gdbarch_deprecated_register_virtual_type,
262 gdbarch_deprecated_register_convertible,
263 gdbarch_deprecated_register_convert_to_virtual, or
264 gdbarch_deprecated_register_convert_to_raw methods. Instead,
265 register gdbarch_register_type, gdbarch_convert_register_p,
266 gdbarch_register_to_value, and gdbarch_value_to_register methods.
267
18ed0c4e
JB
2682004-05-26 Jim Blandy <jimb@redhat.com>
269
270 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
271 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
272 functions, updated to match the register numberings used in GCC.
273 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
274 rs6000_dwarf2_reg_to_regnum as register number conversions
275 functions for STABS and Dwarf2.
276
779af9e3
RC
2772004-05-26 Randolph Chung <tausq@debian.org>
278
279 * infttrace.h (target_waitkind): Forward declare type instead of pulling
280 in header file.
281
c23968a2
JB
2822004-05-25 Joel Brobecker <brobecker@gnat.com>
283
284 * NEWS: Document new "start" command.
285
3a7d1c27
RC
2862004-05-25 Randolph Chung <tausq@debian.org>
287
288 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
289 hppa-linux.
290
43613416
RC
2912004-05-25 Randolph Chung <tausq@debian.org>
292
293 * hppa-hpux-tdep.c (offsetof): Define.
294 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
295 (hppa32_hpux_frame_base_before_sigtramp)
296 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
297 (hppa64_hpux_frame_saved_pc_in_sigtramp)
298 (hppa64_hpux_frame_base_before_sigtramp)
299 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
300 functions.
301 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
302 (hppa_hpux_sigtramp_frame_unwind_cache)
303 (hppa_hpux_sigtramp_frame_this_id)
304 (hppa_hpux_sigtramp_frame_prev_register)
305 (hppa_hpux_sigtramp_frame_unwind)
306 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
307 (hppa_hpux_init_abi): Register sigtramp unwinder.
308 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
309
6d1be3f1
RC
3102004-05-25 Randolph Chung <tausq@debian.org>
311
312 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
313 and multiple stack unwinds.
314 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
315
97c34f65
AC
3162004-05-25 Andrew Cagney <cagney@gnu.org>
317
318 * symfile.h (symbol_file_add_from_memory): Delete declaration.
319 * symfile-mem.h: Delete file.
320 * symfile-mem.c: Do not include "symfile-mem.h".
321 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
322 "struct bfd_section". When an error do not bother returning NULL.
323 (add_symbol_file_from_memory_command): Use "struct bfd" and
324 "struct bfd_section".
325 * Makefile.in (symfile_mem_h): Delete.
326 (symfile-mem.o): Update dependencies.
327
e23cbd82
NR
3282004-05-25 Nick Roberts <nickrob@gnu.org>
329
330 * gdb-mi.el: New file.
331
20d2ca3e
AC
3322004-05-25 Andrew Cagney <cagney@gnu.org>
333
334 * inftarg.c: Include "observer.h".
335 (child_attach, child_create_inferior): Notify inferior_created.
336 * corelow.c: Include "observer.h".
337 (core_open): Notify inferior_created.
338 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
339
c27cda74
AC
3402004-05-25 Andrew Cagney <cagney@gnu.org>
341
342 * target.h (struct target_ops): Add from_tty to
343 to_create_inferior.
344 (target_create_inferior, find_default_create_inferior): Update.
345 * infcmd.c (run_command): Update.
346 * wince.c (child_create_inferior): Update.
347 * win32-nat.c (child_create_inferior): Update.
348 * uw-thread.c (uw_thread_create_inferior): Update.
349 * thread-db.c (thread_db_create_inferior): Update.
350 * target.c (debug_to_create_inferior)
351 (find_default_create_inferior): Update.
352 (maybe_kill_then_create_inferior): Update.
353 * sol-thread.c (sol_thread_create_inferior): Update.
354 * remote.c (extended_remote_async_create_inferior)
355 (extended_remote_create_inferior): Update.
356 * remote-vx.c (vx_create_inferior): Update.
357 * remote-st.c (st2000_create_inferior): Update.
358 * remote-sim.c (gdbsim_create_inferior): Update.
359 * remote-sds.c (sds_create_inferior): Update.
360 * remote-rdp.c (remote_rdp_create_inferior): Update.
361 * remote-rdi.c (arm_rdi_create_inferior): Update.
362 * remote-m32r-sdi.c (m32r_create_inferior): Update.
363 * remote-e7000.c (e7000_create_inferior): Update.
364 * procfs.c (procfs_create_inferior): Update.
365 * ocd.c (ocd_create_inferior): Update.
366 * ocd.h (ocd_create_inferior): Update.
367 * nto-procfs.c (procfs_create_inferior): Update.
368 * monitor.c (monitor_create_inferior): Update.
369 * lin-lwp.c (lin_lwp_create_inferior): Update.
370 * inftarg.c (child_create_inferior): Update.
371 * hpux-thread.c (hpux_thread_create_inferior): Update.
372 * gnu-nat.c (gnu_create_inferior): Update.
373
1db2a798
AC
3742004-05-25 Andrew Cagney <cagney@gnu.com>
375
376 * MAINTAINERS: Update e-mail address.
377
007d08bb
RC
3782004-05-24 Randolph Chung <tausq@debian.org>
379
380 * thread.c (info_threads_command, thread_apply_all_command)
381 (thread_apply_command, thread_command, do_captured_thread_select):
382 Remove HPUXHPPA-specific code.
383
69e7b95e
RC
3842004-05-24 Randolph Chung <tausq@debian.org>
385
386 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
387 unused symbols.
388 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
389 references.
390
a4d5f2e0
JB
3912004-05-24 Joel Brobecker <brobecker@gnat.com>
392
393 * infcmd.c (kill_if_already_running): New function, extracted
394 from run_command().
395 (run_command): Replace extracted code by call to
396 kill_if_already_running().
397 (start_command): New function.
398 (_initialize_infcmd): Add "start" command.
399
bf2ca189
MK
4002004-05-24 Mark Kettenis <kettenis@gnu.org>
401
402 Add OpenBSD/m88k support.
403 * NEWS (New native configurations): Mention OpenBSD/m88k.
404 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
405 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
406 * Makefile.in (m88k_tdep_h): New variable.
407 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
408 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
409 * configure.host: Add m88*-*-openbsd*.
410 * configure.tgt: Add m88*-*-openbsd*.
411
80fadb11
JB
4122004-05-24 Jim Blandy <jimb@redhat.com>
413
414 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
415 to approve changes.
416
19e2d14b
KB
4172004-05-24 Kevin Buettner <kevinb@redhat.com>
418
419 * symtab.c (fixup_section): Search section table when lookup by
420 name fails.
421
1b07b470
RC
4222004-05-24 Randolph Chung <tausq@debian.org>
423
424 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
425 be "small_struct".
426
368702b1
MK
4272004-05-24 Mark Kettenis <kettenis@gnu.org>
428
5df97fde
MK
429 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
430 register number in regcache_raw_collect call.
431 (m68kbsd_collect_fpregset): Likewise.
432 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
433
368702b1
MK
434 * regset.h (struct regset): Add back `regset' member.
435
a770d4ec
MK
4362004-05-23 Mark Kettenis <kettenis@gnu.org>
437
70f9f479
MK
438 * configure.in: Check for td_pcb in `struct thread'.
439 * configure, config.in: Regenerated.
440
2e16d79e
MK
441 * dpx2-nat.c: Remove file.
442 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
443 (dpx2-nat.o): Remove dependencies.
444
492cf391
MK
445 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
446 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
447 (amd64obsd_supply_pcb): New function.
448 (_initialize_amd64obsd_nat): Enable libkvm interface.
449 * Makefile.in (amd64obsd-nat.o): Update dependencies.
450 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
451 (LOADLIBES): New variable.
452
a770d4ec
MK
453 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
454 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
455 (sparc32nbsd_supply_pcb): New function.
456 (_initialize_sparcnbsd_nat): Enable libkvm interface.
457 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
458 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
459 (LOADLIBES): New variable.
460
9ea75c57
MK
4612004-05-22 Mark Kettenis <kettenis@gnu.org>
462
2e0c3539
MK
463 * bsd-kvm.c, bsd-kvm.h: New files.
464 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
465 "bsd-kvm.h".
466 (i386fbsd_supply_pcb): New function.
467 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
468 (i386fbsd-nat.o): Update dependencies.
469 (bsd_kvm_h): New variable.
470 (bsd-kvm.o): New dependency.
471 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
472 (LOADLIBES): New variable.
473
9ea75c57
MK
474 * regset.c: Tweak comment.
475 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
476 macro.
477 * regset.h: Update copyright year.
478 (struct regset): Remove `descr' member, add `gdbarch' member.
479 (regset_alloc): Adjust prototype and comment.
480 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
481 (i386_supply_fpregset): Likewise.
482 (i386_regset_from_core_section): Update call to regset_alloc.
483 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
484 REGSET->arch.
485 (i386obsd_aout_regset_from_core_section): Update call to
486 regset_alloc.
487 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
488 REGSET->arch.
489 (i386nbsd_aout_regset_from_core_section): Update call to
490 regset_alloc.
491 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
492 REGSET->arch.
493 (amd64_regset_from_core_section): Update call to regset_alloc.
494 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
495 REGSET->arch.
496 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
497 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
498 &sparc32nbsd_gregset in sparc32_supply_gregset call.
499 (sparc32nbsd_init_abi): Update call to regset_alloc.
500 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
501 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
502 (sparc64obsd_init_abi): Update call to regset_alloc.
503 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
504 &sparc64nbsd_gregset in sparc64_supply_gregset call.
505 (sparc64nbsd_init_abi): Update call to regset_alloc.
506 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
507 &sparc64fbsd_gregset in sparc64_supply_gregset call.
508 (sparc64fbsd_init_abi): Update call to regset_alloc.
509
867e2dc5
JB
5102004-05-22 Jim Blandy <jimb@redhat.com>
511
512 * ppc-tdep.h (spe_register_p): New declaration.
513 (struct gdbarch_tdep): New members: ppc_acc_regnum and
514 ppc_spefscr_regnum.
515 * rs6000-tdep.c (spe_register_p): New function.
516 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
517 spefscr.
518 (rs6000_gdbarch_init): Initialize the new members of the tdep
519 structure.
520
617a4cba
JB
5212004-05-21 Jim Blandy <jimb@redhat.com>
522
0397dee1
JB
523 * ppc-linux-nat.c (fetch_register): Move code back to be next
524 to the comment that describes it. (Moved code, instead of
525 comment, for symmetry with store_register.)
526
617a4cba
JB
527 Allocate regset structures in the gdbarch's obstack, not using
528 xmalloc.
529 * regset.c (regset_alloc): Renamed from regset_xmalloc.
530 Add 'arch' argument. Allocate the regset on arch's obstack, not
531 using xmalloc.
532 * regset.h (regset_alloc): Update declaration.
533 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
534 gdbarch argument.
535 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
536 * i386-tdep.c (i386_regset_from_core_section): Same.
537 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
538 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
539 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
540 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
541 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
542 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
543
9aa3914d
JB
5442004-05-21 Joel Brobecker <brobecker@gnat.com>
545
546 * config/djgpp/fnchange.lst: Undo previous change, was useless.
547
99c87dab
JB
5482004-05-21 Jim Blandy <jimb@redhat.com>
549
550 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
551 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
552
c2b6b4aa
JB
5532004-05-20 Jim Blandy <jimb@redhat.com>
554
555 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
556
144529d0
MK
5572004-05-20 Mark Kettenis <kettenis@gnu.org>
558
559 * regset.h: Make prototype const-correct.
560 * regset.c (regset_xmalloc): Make const-correct.
561
4725b721
PH
5622004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
563
564 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
565 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
566 (symbol_search_name): Declare.
567
568 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
569 (iter_name_next_hashed): Ditto.
570 (iter_name_next_linear): Ditto.
571 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
572
573 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
574 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
575 (symbol_search_name): New function.
576
577 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
578
579 * minsyms.c (build_minimal_symbol_hash_tables): Change
580 test for adding to demangled hash table to check for difference
581 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
582
be07a590
JB
5832004-05-19 Jim Blandy <jimb@redhat.com>
584
585 Use a constructor function to create regset structures.
586 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
587 (struct regset): Use supply_regset_ftype. Add new
588 'collect_regset' member.
589 (regset_xmalloc): New declaration.
590 * regset.c: New file.
591 * am64-tdep.c (amd64_regset_from_core_section): Use
592 regset_xmalloc to construct regset structures.
593 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
594 * i386-tdep.c (i386_regset_from_core_section): Same.
595 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
596 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
597 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
598 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
599 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
600 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
601 * Makefile.in (COMMON_OBS): Add regset.o.
602 (regset.o): New rule.
603
604368f5
JB
6042004-05-19 Joel Brobecker <brobecker@gnat.com>
605
606 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
607 and pthread_cond_wait.c.
608
82d69f8b
JB
6092004-05-18 Jim Blandy <jimb@redhat.com>
610
611 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
612 before the mach-specific switch, and then let the individual cases
613 override the defaults, rather than leaving them uninitialized
614 until the switch and then setting them in each case.
615
5859efe5
RC
6162004-05-18 Randolph Chung <tausq@debian.org>
617
618 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
619 millicode functions.
620
9ca80cf8
RC
6212004-05-18 Randolph Chung <tausq@debian.org>
622
623 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
624 references to dld_flags_buffer consistent.
625
ed70ba00
RC
6262004-05-18 Randolph Chung <tausq@debian.org>
627
628 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
629 it for unwinding the stack.
630
63100632
RC
6312004-05-18 Randolph Chung <tausq@debian.org>
632
633 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
634 Undefine these so we can overide them using gdbarch.
635
090ccbb7
RC
6362004-05-18 Randolph Chung <tausq@debian.org>
637
638 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
639 handling for 64-bit HPUX (elf).
640
594706e6
DJ
6412004-05-18 Daniel Jacobowitz <dan@debian.org>
642
643 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
644 constants.
645 * amd64-tdep.c (amd64_skip_prologue): Likewise.
646 * ia64-tdep.c (examine_prologue): Likewise.
647 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
648 * v850-tdep.c (v850_fix_call_dummy): Likewise.
649
e5483145
MK
6502004-05-18 Mark Kettenis <kettenis@gnu.org>
651
652 * vax-tdep.c (vax_return_value): Implement
653 RETURN_VALUE_ABI_RETURNS_ADDRESS.
654
caed1a45
MK
6552004-05-17 Mark Kettenis <kettenis@gnu.org>
656
657 * vax-tdep.c (vax_return_value): Fix typo.
658
3c0b7db2
AC
6592004-05-17 Andrew Cagney <cagney@redhat.com>
660
5aae53e5
AC
661 * MAINTAINERS: Mark Salter was also responsible for
662 testsuite/config/
663
3c0b7db2
AC
664 * NEWS: Mention signal fixes.
665
22b0923d
RC
6662004-05-17 Randolph Chung <tausq@debian.org>
667
668 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
669 check to see if we are unwinding an export stub. Export stubs clobber
670 the %rp in the call path and stores the original rp in a stack slot.
671
22f2b2f3
JB
6722004-05-17 Jim Blandy <jimb@redhat.com>
673
674 * MAINTAINERS: Update address for J.T. Conklin.
675
cea96d64
RC
6762004-05-17 Randolph Chung <tausq@debian.org>
677
678 * hppa-tdep.c: Remove superfluous #include's.
679 * Makefile.in (hppa-tdep.o): Update dependencies.
680
f08f6a4a
RC
6812004-05-17 Randolph Chung <tausq@debian.org>
682
683 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
684 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
685 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
686 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
687 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
688 Remove static function declarations.
689
51da707a
MK
6902004-05-17 Mark Kettenis <kettenis@gnu.org>
691
caed1a45
MK
692 * alphabsd-nat.c: Update copyright year.
693 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
694
c0c2b0db
MK
695 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
696 and M68K_A2_REGNUM.
697
51da707a
MK
698 * m68k-tdep.c (m68k_svr4_return_value): Implement
699 RETURN_VALUE_ABI_RETURNS_ADDRESS.
700
8d027a04
MK
7012004-05-16 Mark Kettenis <kettenis@gnu.org>
702
703 * sol-thread.c Update copyright year. Fix various coding
704 standards violations. Tweak a few comments.
705 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
706 Delete prototypes.
707
0d99fdb9
RC
7082004-05-15 Randolph Chung <tausq@debian.org>
709
710 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
711 as pointer instead of array reference since HPUX compiler does
712 not accept unsized array arguments.
713 * somsolib.c (dld_flags_buffer): Use constant array size.
714
f7e3843a
MK
7152004-05-15 Mark Kettenis <kettenis@gnu.org>
716
0fe85704
MK
717 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
718 offset with decimal offset.
719 (amd64obsd_sigcontext_addr): Return correct address for entire
720 signal trampoline.
721
a54f9a00
MK
722 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
723 instead of get_frame_base.
724
feae6502
MK
725 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
726 (fill_gregset): Use regcache_raw_collect.
727
0382d099
MK
728 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
729 ppcobsd-tdep.c.
730
f7e3843a
MK
731 * config/sparc/tm-nbsd64.h: Remove file.
732 * config/tm-sunos.h: Remove file.
733
773df3e5
JB
7342004-05-15 Joel Brobecker <brobecker@gnat.com>
735
736 * rs6000-tdep.c (store_param_on_stack_p): New function,
737 an improved version of some code extracted from skip_prologue().
738 (skip_prologue): Use store_param_on_stack_p() to detect
739 instructions saving a parameter on the stack. Detect when r0
740 is used to save a parameter.
741 Do not mark "li rx, SIMM" instructions as part of the prologue,
742 unless the following instruction is also part of the prologue.
743
95918acb
AC
7442004-05-14 Andrew Cagney <cagney@redhat.com>
745
06f32659
AC
746 * infrun.c (handle_inferior_event): Simplify
747 STEP_OVER_UNDEBUGGABLE.
748
95918acb
AC
749 * infrun.c (handle_step_into_function): Delete function.
750 (handle_inferior_event): Inline calls to
751 handle_step_into_function.
752
42203e46
JG
7532004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
754
755 * rs6000-nat.c: Fix a comment.
756
02f60eae
JB
7572004-05-12 David Anderson <davea@sgi.com>
758
759 Committed by Jim Blandy <jimb@redhat.com>:
760 * regcache.c (struct regcache_descr): fix comment spelling.
761
552e377b
JB
7622004-05-13 J. Brobecker <brobecker@gnat.com>
763
764 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
765 Fixes a link link failure.
766
349766b2
JB
7672004-05-13 J. Brobecker <brobecker@gnat.com>
768
769 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
770 error that was causing the build to fail.
771
0d4d5484
JB
7722004-05-13 J. Brobecker <brobecker@gnat.com>
773
774 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
775 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
776
0b30808c
AC
7772004-05-13 Andrew Cagney <cagney@redhat.com>
778
779 * infrun.c (handle_inferior_event): Check for
780 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
781 calls. Update comments.
782
cdf2c5f5
JB
7832004-05-13 Jim Blandy <jimb@redhat.com>
784
063715bf
JB
785 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
786 (fetch_regs_user_thread, fetch_regs_kernel_thread)
787 (store_regs_user_thread, store_regs_kernel_thread): Use
788 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
789 * ppc-linux-nat.c (fill_gregset): Same.
790 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
791 (ppc_linux_sigtramp_cache): Same.
792 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
793 (ppcnbsd_sigtramp_cache_init): Same.
794 * rs6000-nat.c (fetch_core_registers): Same.
795 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
796 (rs6000_frame_cache): Same.
797
cdf2c5f5
JB
798 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
799 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
800 of assuming that the gprs are numbered starting with zero.
801 * ppc-linux-nat.c (fill_gregset): Same.
802 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
803 * ppcnbsd-nat.c (getregs_supplies): Same.
804 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
805 * rs6000-nat.c (fetch_core_registers): Same.
806 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
807
450bd37b
MS
8082004-05-07 Michael Snyder <msnyder@redhat.com>
809
810 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
811 LOC_COMPUTED_ARG, and LOC_INDIRECT.
812
4a72a2a6
AC
8132004-05-13 Andrew Cagney <cagney@redhat.com>
814
815 * infrun.c (handle_inferior_event): Use frame_unwind_id.
816
8edfa926
BM
8172004-05-13 Bryce McKinlay <mckinlay@redhat.com>
818
819 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
820 base_address for shared libraries.
821
723e0e3d
BM
8222004-05-13 Bryce McKinlay <mckinlay@redhat.com>
823
824 * MAINTAINERS (write after approval): Add myself.
825
00d4360e
UW
8262004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
827
828 * breakpoint.c (bpstat_stop_status): Add new argument
829 STOPPED_BY_WATCHPOINT. Use it instead of testing
830 target_stopped_data_address agaist 0 to check whether
831 or not we stopped due to a hardware watchpoint.
832 * breakpoint.h (bpstat_stop_status): Adapt prototype.
833 * infrun.c (handle_inferior_event): Call bpstat_stop_status
834 with new argument.
835
ec76baa5
JB
8362004-05-12 Jim Blandy <jimb@redhat.com>
837
838 * configure.in: When checking whether we should use the -bbigtoc
839 option, don't forget to restore the original value of LDFLAGS.
840 * configure: Regenerated.
841
f2c9ca08
AC
8422004-05-12 Andrew Cagney <cagney@redhat.com>
843
844 * thread.c (load_infrun_state): Delete step_sp.
845 * infrun.c (context_switch): Ditto.
846 * inferior.h (step_sp): Ditto.
847 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
848 * gdbthread.h (struct thread_info, save_infrun_state)
849 (restore_infrun_state): Ditto.
850
090ddb2a
UW
8512004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
852
853 * MAINTAINERS (write after approval): Add myself.
854
8aad930b
AC
8552004-05-12 Andrew Cagney <cagney@redhat.com>
856
857 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
858 eliminate reference to step_sp.
859 (struct execution_control_state, init_execution_control_state)
860 (handle_inferior_event, keep_going): Delete update_step_sp and
861 step_sp.
862 * infcmd.c (step_sp): Note that variable is unused.
863
922d5ae0
AC
8642004-05-11 Andrew Cagney <cagney@redhat.com>
865
866 * infrun.c (step_over_function): Delete function.
867 (handle_step_into_function): Use insert_step_resume_breakpoint.
868 (insert_step_resume_breakpoint): Fix assertion.
869
017c5ca5
NR
8702004-05-11 Nick Roberts <nickrob@gnu.org>
871
872 * utils.c (defaulted_query): Just use the normal query input type
873 when printing the annotations.
874
42edda50
AC
8752004-05-11 Andrew Cagney <cagney@redhat.com>
876
877 * infrun.c (handle_inferior_event): Simplify code handling
878 step-into or return-from a signal trampoline.
879
d28b44a7
AC
8802004-05-11 Andrew Cagney <cagney@redhat.com>
881
882 * ppcnbsd-tdep.c: Include "gdb_assert.h".
883 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
884
383f0f5b
JB
8852004-05-10 Jim Blandy <jimb@redhat.com>
886
d0b57c3a
JB
887 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
888 with a call to internal_error.
889
383f0f5b
JB
890 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
891 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
892 processor variant lacks those registers.
893 (ppc_floating_point_unit_p): Change description to make it clear
894 that this returns info about the ISA, not the ABI.
895 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
896 return true or false by checking tdep->ppc_fp0_regnum and
897 tdep->ppc_fpscr_regnum. The original code replicated the BFD
898 arch/mach switching done in rs6000_gdbarch_init; it's better to
899 keep that logic there, and just check the results here.
900 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
901 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
902 floating-point registers.
903 (ppc_supply_fpregset, ppc_collect_fpregset)
904 (rs6000_push_dummy_call, rs6000_extract_return_value)
905 (rs6000_store_return_value): Assert that we have floating-point
906 registers.
907 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
908 (rs6000_frame_cache): Don't note the locations at which
909 floating-point registers were saved if we have no fprs.
910 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
911 registers.
912 (fetch_regs_user_thread, fetch_regs_kernel_thread)
913 (store_regs_user_thread, store_regs_kernel_thread): Only call
914 supply_fprs / fill_fprs if we actually have floating-point
915 registers.
916 (special_register_p): Check ppc_fpscr_regnum before matching
917 against it.
918 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
919 supply / collect fpscr if we don't have it.
920 * ppc-bdm.c: #include "gdb_assert.h".
921 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
922 have floating-point registers, since I can't test this code on
923 FP-free systems to adapt it.
924 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
925 fpscr and floating point register numbers if they don't exist.
926 (fetch_register): Assert that we have floating-point registers
927 before we reach the code that handles them.
928 (store_register): Same. And use tdep instead of calling
929 gdbarch_tdep again.
930 (fill_fpregset): Don't try to collect FP registers and fpscr if we
931 don't have them.
932 (ppc_linux_sigtramp_cache): Don't record the saved locations of
933 fprs and fpscr if we don't have them.
934 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
935 don't have them.
936 * ppcnbsd-nat.c: #include "gdb_assert.h".
937 (getfpregs_supplies): Assert that we have floating-point registers.
938 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
939 * ppcobsd-tdep.c: #include "gdb_assert.h".
940 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
941 have floating-point registers.
942 * rs6000-nat.c (regmap): Don't match against the fpscr and
943 floating point register numbers if they don't exist.
944 (fetch_inferior_registers, store_inferior_registers,
945 fetch_core_registers): Only fetch / store / supply the
946 floating-point registers and the fpscr if we have them.
947 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
948 (ppcobsd-tdep.o): Update dependencies.
949
15960608
AC
9502004-05-10 Andrew Cagney <cagney@redhat.com>
951
952 * infrun.c (through_sigtramp_breakpoint): Delete variable.
953 (context_switch): Do not switch through_sigtramp_breakpoint.
954 * gdbthread.h (save_infrun_state, load_infrun_state)
955 (struct thread_info): Delete through_sigtramp_breakpoint parameter
956 and structure member.
957 * thread.c (load_infrun_state, save_infrun_state): Update.
958
5ab5aa0f
MK
9592004-05-10 Mark Kettenis <kettenis@gnu.org>
960
961 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
962
da78b0e7
DJ
9632004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
964
965 * acinclude.m4: Quote macro names being defined by AC_DEFUN
966 throughout.
967 * aclocal.m4: Regenerate.
968
cca0d3b0
NW
9692004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
970
971 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
972
d303a6c7
AC
9732004-05-10 Andrew Cagney <cagney@redhat.com>
974
975 * infrun.c (check_sigtramp2): Delete function.
976 (handle_inferior_event): When single stepping, and taking a
977 signal, set a breakpoint at the signal return address. Delete
978 redundant calls to check_sigtramp2.
979 (insert_step_resume_breakpoint): New function.
980 (through_sigtramp_breakpoint, handle_inferior_event)
981 (follow_exec, wait_for_inferior, fetch_inferior_event)
982 (currently_stepping, keep_going): Delete most uses of
983 through_sigtramp_breakpoint, not that it should be deleted.
984 (delete_breakpoint_current_contents): Delete function.
985
03f4cc20
RC
9862004-05-10 Randolph Chung <tausq@debian.org>
987
988 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
989 target.
990 * config/pa/tm-linux.h: New file.
991
37fc812e
DJ
9922004-05-10 Daniel Jacobowitz <drow@mvista.com>
993
994 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
995 of prefixes. Don't print the prefix twice in the CLI.
996
26c0b942
JB
9972004-05-10 Jim Blandy <jimb@redhat.com>
998
2e56e9c1
JB
999 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1000 collect all the gprs.
1001
26c0b942
JB
1002 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1003 loop collecting gprs.
1004
dc497459
AC
10052004-05-09 Andrew Cagney <cagney@redhat.com>
1006
1007 * remote-vx.c (net_step): Delete step-range code.
1008 * remote.c (remote_resume, init_all_packet_configs)
1009 (set_remote_protocol_E_packet_cmd)
1010 (show_remote_protocol_E_packet_cmd)
1011 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1012 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1013 (show_remote_protocol_e_packet_cmd): Ditto.
1014
0543f387
MK
10152004-05-09 Mark Kettenis <kettenis@gnu.org>
1016
c481d1ca
MK
1017 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1018
f626a069
MK
1019 * hppa-tdep.h: Update copyright year.
1020 (struct trad_frame_saved_reg): Add opaque declaration.
1021
6fa57a7d
MK
1022 * amd64-tdep.c (amd64_return_value): Implement
1023 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1024
e47577ab
MK
1025 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1026 (m68k_value_to_register): New functions.
1027 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1028 value_to_register.
1029
31db7b6c
MK
1030 * defs.h (enum return_value_convention): Add
1031 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1032 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1033 * infcmd.c (legacy_return_value): New function.
1034 (print_return_value): Rwerite to implement
1035 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1036 * values.c (using_struct_return): Check for inequality to
1037 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1038 RETURN_VALUE_STRUCT_CONVENTION.
1039 * i386-tdep.c (i386_return_value): Implement
1040 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1041
0543f387
MK
1042 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1043 include "symtab.h", "opcode/vax.h" and "inferior.h".
1044 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1045 to read_memory_unsigned_integer.
1046 (vax_gdbarch_init): Reorder.
1047 (_initialize_vax_tdep): Spell out prototype.
1048 * Makefile.in (vax-tdep.o): Update dependencies.
1049
0c93b7b6
AC
10502004-05-08 Andrew Cagney <cagney@redhat.com>
1051
e6b55ae2
AC
1052 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1053 * target.c (target_detach, target_disconnect): Ditto.
1054
1ac839b8
AC
1055 * infcall.c (call_function_by_hand): When no
1056 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1057 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1058 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1059 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1060 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1061
28954179
AC
1062 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1063 * gdbarch.h, gdbarch.c: Re-generate.
1064 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1065 deprecated_fix_call_dummy.
1066 * v850-tdep.c (v850_gdbarch_init): Ditto.
1067 * infcall.c (call_function_by_hand): Do not call
1068 DEPRECATED_FIX_CALL_DUMMY.
1069
434b87dd
AC
1070 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1071 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1072 * gdbarch.h, gdbarch.c: Re-generate.
1073 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1074 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1075 deprecated_sizeof_call_dummy_words.
1076 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1078 * v850-tdep.c (v850_gdbarch_init): Ditto.
1079 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1080 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1081 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1082 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1083 * arch-utils.h (legacy_call_dummy_words)
1084 (legacy_sizeof_call_dummy_words): Delete declarations.
1085 * arch-utils.c (legacy_call_dummy_words)
1086 (legacy_sizeof_call_dummy_words): Delete variables.
1087
58d28df8
AC
1088 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1089 * gdbarch.h, gdbarch.c: Re-generate.
1090 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1091 * infcall.c (call_function_by_hand): Eliminate call to
1092 DEPRECATED_PUSH_DUMMY_FRAME.
1093 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1094 push_dummy_frame.
1095 (ns32k_push_dummy_frame): Delete function.
1096
e4a2df64
AC
1097 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1098 deprecated_call_dummy_breakpoint_offset or
1099 deprecated_call_dummy_start_offset.
1100 * dummy-frame.c, arm-tdep.c: Update comments.
1101 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1102 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1103 * gdbarch.h, gdbarch.c: Re-generate.
1104
d3712828
AC
1105 * infcall.c (legacy_push_dummy_code): Delete function.
1106 (push_dummy_code): Delete call.
1107
7a882905
AC
1108 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1109 * gdbarch.h, gdbarch.c: Re-generate.
1110 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1111 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1112 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1113 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1114
0ec5872b
AC
1115 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1116 (struct frame_info): Delete opaque declaration.
1117 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1118 * frame.c (get_frame_type): Delete call.
1119
0c93b7b6
AC
1120 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1121 pc_in_call_dummy.
1122 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1123 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1124
75536971
MK
11252004-05-08 Mark Kettenis <kettenis@gnu.org>
1126
527ca6bb
MK
1127 * alphanbsd-tdep.c: Include "gdb_string.h".
1128 * armnbsd-tdep.c: Update copyright year.
1129 Include "gdb_string.h".
1130 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1131 dependencies.
1132
d39fdc61
MK
1133 * delta68-nat.c: Remove file.
1134 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1135 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1136 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1137 (delta68-nat.o): Remove dependency.
1138
75536971
MK
1139 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1140 function.
1141 (m68k_gdbarch_init): Don't set
1142 deprecated_frameless_function_invocation.
1143
f4ca1d1f
RC
11442004-05-07 Randolph Chung <tausq@debian.org>
1145
1146 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1147 read_memory_nobpt for code reading when doing frame unwinding.
1148 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1149
2f0e8c7a
RC
11502004-05-07 Randolph Chung <tausq@debian.org>
1151
1152 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1153 instead of sp, handle sigaltstack case.
1154 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1155 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1156 signal handler and not that of the caller.
1157 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1158 hppa_linux_sigtramp_find_sigcontext.
1159
959464ff
RC
11602004-05-07 Randolph Chung <tausq@debian.org>
1161
1162 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1163 hppa-linux-nat.c.
1164 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1165 * hppa-linux-nat.c (fetch_register, store_register): Define.
1166 (fetch_inferior_registers, store_inferior_registers): Define.
1167 (supply_gregset): Add comment and clean up some unneeded code.
1168 (fill_gregset): Add comment and fix so that it saves registers in
1169 the right place in the gregset.
1170 (fill_fpregset): Fix buffer overrun problem.
1171 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1172
0da28f8a
RC
11732004-05-07 Randolph Chung <tausq@debian.org>
1174
1175 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1176 do common handling of the pcoqt register.
1177 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1178 to use helper function.
1179 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1180 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1181 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1182 generic fallback unwinder when all else fails.
1183 (hppa_gdbarch_init): Add fallback sniffer.
1184 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1185 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1186 to use helper function.
1187
b9ec757a
JB
11882004-05-08 Joel Brobecker <brobecker@gnat.com>
1189
1190 * config/djgpp/fnchange.lst: Add translation rules for
1191 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1192
756e95f1
MK
11932004-05-08 Mark Kettenis <kettenis@gnu.org>
1194
1195 * frame.c (get_prev_frame_1): Work around GCC bug.
1196 * frame.h: Add comment about GCC bug.
1197
2b4855ab
AC
11982004-05-07 Andrew Cagney <cagney@redhat.com>
1199
1200 * observer.c: Include "commands.h" and "gdbcmd.h".
1201 (observer_debug, _initialize_observer): Add the
1202 command "set/show debug observer".
1203 * observer.sh: When observer debugging, log notify calls.
1204 * Makefile.in (observer.o): Update dependencies.
1205
ba3e8e46
JM
12062004-05-07 Jason Molenda (jmolenda@apple.com)
1207
1208 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1209
16796152
JB
12102004-05-07 Jim Blandy <jimb@redhat.com>
1211
daf6dc85
JB
1212 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
1213 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
1214 to recognize gpr regnums, instead of assuming that
1215 tdep->ppc_fp0_regnum marks the end of the general-purpose
1216 registers.
1217
16796152
JB
1218 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
1219 the given architecture has floating-point registers.
1220
c69b8bfc
AC
12212004-05-07 Andrew Cagney <cagney@redhat.com>
1222
1223 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
1224 macro defined to 1.
1225 * gdbarch.h, gdbarch.c: Re-generate.
1226 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1227 deprecated_use_generic_dummy_frames.
1228
7243600a
BF
12292004-05-07 Brian Ford <ford@vss.fsi.com>
1230
1231 * NEWS: Mention Cygwin DWARF 2 support.
1232
73c1e0a1
AC
12332004-05-07 Andrew Cagney <cagney@redhat.com>
1234
1235 * objfiles.h (struct entry_info): Delete unused fields
1236 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
1237 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
1238 * mipsread.c (mipscoff_symfile_read): Update.
1239 * mdebugread.c (parse_partial_symbols): Update.
1240 * dwarfread.c (read_file_scope): Update.
1241 * dwarf2read.c (read_file_scope): Update.
1242 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
1243 * coffread.c (complete_symtab): Update.
1244
1d3056ac
MK
12452004-05-07 Mark Kettenis <kettenis@gnu.org>
1246
1247 * infcall.c (_initialize_infcall): Fix typo.
1248
15170568
AC
12492004-05-07 Andrew Cagney <cagney@redhat.com>
1250
1251 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
1252 * command.h (add_setshow_zinteger_cmd): Declare.
1253
34f75cc1
RC
12542004-05-06 Randolph Chung <tausq@debian.org>
1255
1256 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
1257 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
1258 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
1259 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
1260 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
1261 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
1262 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
1263 definitions ...
1264 * hppa-tdep.h: ... to here, with HPPA_ prefix.
1265 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
1266 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
1267 (hppa64_hpux_frame_find_saved_regs_in_sig)
1268 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
1269 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
1270 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
1271 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
1272 (hppa_linux_sigtramp_frame_prev_register): Likewise.
1273 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
1274 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
1275 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1276 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1277 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1278 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1279 (hppa32_register_type, hppa_cannot_store_register)
1280 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1281 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1282 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1283 * pa64solib.c (pa64_solib_have_load_event)
1284 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1285 (pa64_solib_unloaded_library_pathname): Likewise.
1286 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1287 (som_solib_library_pathname): Likewise.
1288
0a5e7efe
JI
12892004-05-05 Jim Ingham <jingham@apple.com>
1290
1291 * breakpoint.c (create_breakpoints): Copy the ignore count and
1292 thread id over from the pended breakpoint to the actual
1293 breakpoint.
1294
10a4b113
AC
12952004-05-05 Andrew Cagney <cagney@redhat.com>
1296
1297 * gdbarch.sh (PARM_BOUNDARY): Delete.
1298 gdbarch.h, gdbarch.c: Re-generate.
1299 * valops.c (PARM_BOUNDARY): Delete macro.
1300 (value_push): Delete PARM_BOUNDARY code.
1301 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1302
366f009f
JB
13032004-05-04 Jim Blandy <jimb@redhat.com>
1304
32b99774
JB
1305 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1306 Don't assume that the gprs, fprs, and UISA sprs are
1307 contiguous, start at register number zero, and end with fpscr.
1308 Instead, use the numbers from the tdep structure.
1309
366f009f
JB
1310 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1311 should no longer be used in code specific to the RS6000 and its
1312 derivatives.
1313 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1314 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1315 tdep->ppc_fp0_regnum.
1316 (ppc_supply_fpregset, ppc_collect_fpregset)
1317 (rs6000_push_dummy_call, rs6000_extract_return_value)
1318 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1319 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1320 FP0_REGNUM.
1321 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1322 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1323 Same.
1324 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1325 bdm_ppc_store_registers): Same.
1326 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1327 (store_register, fill_fpregset): Same.
1328 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1329 (ppc_linux_supply_fpregset): Same.
1330 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1331 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1332 Same.
1333 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1334 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1335 ppc64_sysv_abi_return_value): Same.
1336 * rs6000-nat.c (regmap, fetch_inferior_registers)
1337 (store_inferior_registers, fetch_core_registers): Same.
1338
827f338d
MK
13392004-05-01 Mark Kettenis <kettenis@gnu.org>
1340
1341 * m68knbsd-nat.c: Remove file.
1342 * m68knbsd-tdep.c: Remove file.
1343 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1344 dependencies.
1345 * configure.host: Add m68k-*-netbsdelf*.
1346 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1347 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1348 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1349 (XM_FILE): Remove.
1350 * config/m68k/nbsdelf.mh: New file.
1351 * config/m68k/nbsd.mt: New file.
1352 * config/m68k/nbsdaout.mt: Remove file.
1353 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
1354 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
1355 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
1356 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
1357 (use_struct_convention): Remove prototype.
1358 (USE_STRUCT_CONVENTION): Remove define.
1359 * config/m68k/xm-nbsd.h: Remove file.
1360
66894781
MS
13612004-05-04 Michael Snyder <msnyder@redhat.com>
1362
1363 * m68k-tdep.c (m68k_gdbarch_init): Default to using
1364 reg_struct_return method (as gcc usually does for cross targets).
1365
f0f63663
AC
13662004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1367
1368 Committed by Andrew Cagney.
1369 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
1370 alignment padding when accessing ucontext struct members.
1371
edf61169
JB
13722004-05-04 Jim Blandy <jimb@redhat.com>
1373
8bf659e8
JB
1374 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
1375 'ppc_gplast_regnum' member.
1376 (ppc_num_gprs): New enum constant.
1377 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
1378 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
1379 * rs6000-nat.c (regmap, fetch_inferior_registers,
1380 store_inferior_registers): Same.
1381 * rs6000-tdep.c (e500_pseudo_register_read)
1382 (e500_pseudo_register_write): Same.
1383 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
1384
b967e06f
JB
1385 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
1386 * ppc-tdep.h (ppc_num_fprs): New enum constant.
1387 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
1388 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
1389 FPLAST_REGNUM.
1390 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1391 Same.
1392 * ppc-linux-nat.c (ppc_register_u_addr): Same.
1393 * rs6000-nat.c (regmap, fetch_inferior_registers)
1394 (store_inferior_registers): Same.
1395
edf61169
JB
1396 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
1397 with FPLAST_REGNUM.
1398
58a9656e
JB
13992004-05-03 Joel Brobecker <brobecker@gnat.com>
1400
1401 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
1402 failure detected by recent versions of GCC.
1403 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
1404 to be consistent with the usage in dwarf2_create_include_psymtab.
1405
dc305454
MS
14062004-05-03 Michael Snyder <msnyder@redhat.com>
1407
1408 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
1409 (heuristic_proc_start): Whitespace cleanup.
1410
29972665
MK
14112004-05-04 Mark Kettenis <kettenis@gnu.org>
1412
6b57680d
MK
1413 * sun3-nat.c: Remove file.
1414 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
1415 dependencies.
1416 (ALLDEPFILES): Remove sun3-nat.c.
1417 (sun3-nat.o): Remove dependencies.
1418
29972665
MK
1419 * i386-interix-nat.c, i386-interix-tdep.c,
1420 config/i386/nm-interix.h, config/i386/interix.mh,
1421 config/i386/interix.mt: Remove files.
1422 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
1423 dependencies.
1424
f595cb19
MK
14252004-05-03 Mark Kettenis <kettenis@gnu.org>
1426
1427 * m68k-tdep.h (struct gdbarch_tdep): Add member
1428 struct_value_regnum.
1429 (m68k_svr4_init_abi): New prototype.
1430 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
1431 different calling conventions.
1432 (m68k_extract_return_value): Remove code dealing with single-field
1433 structs.
1434 (m68k_store_return_value): Remove code dealing with single-field
1435 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
1436 (m68k_extract_struct_value_address): Remove function.
1437 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
1438 (m68k_reg_struct_return_p, m68k_return_value)
1439 (m68k_svr4_return_value): New functions.
1440 (m68k_use_struct_convention): Remove function.
1441 (m68k_push_dummy_call): Use new struct_value_regnum member of
1442 `struct gdbarch_tdep' instead of hardcoded register number to
1443 store STRUCT_ADDR.
1444 (m68k_svr4_init_abi): New function.
1445 (m68k_gdbarch_init): Don't set extract_return_value,
1446 store_return_values, deprecated_extract_struct_value_address and
1447 use_struct_convention. Set return_value instead. Initialize new
1448 struct_value_regnum member of `struct gdbarch_tdep'.
1449 * m68klinux-tdep.c: Update copyright year.
1450 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
1451 (m68k_linux_extract_struct_value_address): Remove function.
1452 (m68k_linux_init_abi): Don't set extract_return_value,
1453 store_return_values, deprecated_extract_struct_value_address and
1454 use_struct_convention. Call m68k_svr4_init_abi but override the
1455 new struct_value_regnum member of `struct gdbarch_tdep'.
1456 * Makefile.in (m68k-tdep.o): Update dependencies.
1457
aaa75496
JB
14582004-05-03 J. Brobecker <brobecker@gnat.com>
1459
1460 * dwarf2read.c (line_header): Add new included_p field in
1461 field file_names.
1462 (partial_die_info): New field has_stmt_list. New field line_offset.
1463 (dwarf2_create_include_psymtab): New function.
1464 (dwarf2_build_include_psymtabs): New function.
1465 (add_file_name): Add forward declaration. Initialize new field.
1466 (dwarf_decode_lines): Add new parameter. Enhance this procedure
1467 to be able to determine the list of files included by the
1468 given unit, and build their associated psymtabs.
1469 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
1470 files as well.
1471 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
1472 (read_file_scope): Update call to dwarf_decode_lines.
1473 (read_partial_die): Handle DW_AT_stmt_list attributes.
1474
c848556f
MC
14752004-05-02 Michael Chastain <mec.gnu@mindspring.com>
1476
1477 Unfix PR gdb/1626.
1478 * configure.in: Revert special case for osf5.*.
1479 * configure: Regenerate.
1480
eb4556d7
JB
14812004-05-02 Jim Blandy <jimb@redhat.com>
1482
1483 Move the symbol-file-from-memory functions into their own file.
1484 * symfile-mem.c, symfile-mem.h: New files.
1485 * symfile.c (symbol_file_add_from_bfd): New function.
1486 (symbol_file_add): Call symbol_file_add_from_bfd.
1487 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
1488 Moved to symfile-mem.c.
1489 (_initialize_symfile): Move definition of
1490 add-symbol-file-from-memory command to symfile-mem.c.
1491 * symfile.h (symbol_file_add_from_bfd): New declaration.
1492 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
1493 * config/powerpc/linux.mt (TDEPFILES): Same.
1494 * Makefile.in (SFILES): Add symfile-mem.c.
1495 (symfile_mem_h): New variable.
1496 (HFILES_NO_SRCDIR): Add symfile-mem.h.
1497 (symfile-mem.o): New rule.
1498
80bb239e
AC
14992004-05-01 Andrew Cagney <cagney@redhat.com>
1500
7789d0fa
AC
1501 * breakpoint.c (insert_bp_location): Use get_frame_id, and
1502 frame_find_by_id instead of frame_relative_level.
1503 (do_enable_breakpoint): Ditto.
1504 * thread.c: Update copyright.
1505 (info_threads_command): Ditto, simplify.
1506
80bb239e
AC
1507 * frame.c (deprecated_generic_get_saved_register): Delete
1508 function, moved to "xstormy16-tdep.c".
1509 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
1510 deprecated_generic_get_saved_register from "frame.c".
1511 (xstormy16_frame_saved_register): Call
1512 xstormy16_get_saved_register.
1513 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
1514 static.
1515 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
1516 * frame.h (deprecated_generic_get_saved_register): Delete.
1517
b2a871dd
MC
15182004-05-01 Michael Chastain <mec.gnu@mindspring.com>
1519
1520 * dwarfread.c: Update documentation on the state of dwarf-1.
1521
0e100dab
AC
15222004-05-01 Andrew Cagney <cagney@redhat.com>
1523
acd8056e
AC
1524 * stack.c (select_frame_command): Delete call to
1525 frame_relative_level.
1526 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
1527 Delete #if0 code.
1528 (frame_info): Do not print FRAMELESS.
1529 (print_block_frame_labels): Replace DEPRECATED_STREQ.
1530 (catch_info): Delete #if0 code.
1531
0e100dab
AC
1532 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
1533 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
1534 of frame_relative_level.
1535 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
1536 to SENTINEL_FRAME.
1537 * frame.h (enum frame_type): Add SENTINEL_FRAME.
1538 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
1539 frame_relative_level.
1540
55699d59
AC
1541 * frame.h (deprecated_set_frame_type): Delete declaration.
1542 * frame.c (deprecated_set_frame_type): Delete function, update
1543 comments.
1544
fcf70625
AC
1545 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
1546 * gdbarch.h, gdbarch.c: Re-generate.
1547 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
1548 (shnbsd_pc_in_sigtramp): Delete.
1549 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
1550 pc_in_sigtramp.
1551 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
1552 pc_in_sigtramp.
1553 * frame.h: Update comments.
1554 * ppc-linux-tdep.c: Update comments.
1555 * breakpoint.c (bpstat_what): Update comments.
1556
ac5eccb7
AC
1557 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
1558 m68klinux-tdep.o's dependencies, were previously added to
1559 m68klinux-nat.o.
1560
f2524b93
AC
1561 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
1562 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
1563 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1564 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1565 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1566
17e20bce
AC
1567 * Makefile.in (m68klinux-nat.o): Update dependencies.
1568 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1569 (m68k_linux_sigtramp_frame_cache)
1570 (m68k_linux_sigtramp_frame_this_id)
1571 (m68k_linux_sigtramp_frame_prev_register)
1572 (m68k_linux_sigtramp_frame_unwind)
1573 (m68k_linux_sigtramp_frame_sniffer)
1574 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
1575 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
1576 names, use trad-frame.h.
1577 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
1578 (struct m68k_sigtramp_info): Delete.
1579 * m68k-tdep.c (m68k_sigtramp_frame_cache)
1580 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
1581 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
1582 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
1583 "m68klinux-tdep.c".
1584
c8864fa2
AC
1585 * infrun.c (check_sigtramp2): Delete check for
1586 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
1587
511dd2cd
MK
15882004-05-01 Mark Kettenis <kettenis@gnu.org>
1589
1590 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
1591
8c6b0e06
AC
15922004-05-01 Andrew Cagney <cagney@redhat.com>
1593
9df0bb3f
AC
1594 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1595 (frv_linux_sigtramp_frame_cache)
1596 (frv_linux_sigtramp_frame_this_id)
1597 (frv_linux_sigtramp_frame_prev_register)
1598 (frv_linux_sigtramp_frame_unwind)
1599 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
1600 include "linux" in function and variable names, directly call
1601 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
1602 the latest trad-frame code.
1603 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
1604 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
1605 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1606 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
1607 * frv-tdep.c (frv_sigtramp_frame_cache)
1608 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1609 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
1610 frv-linux-tdep.c.
1611 (frv_gdbarch_init): Do not append a sigtramp sniffer.
1612 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
1613 (frv_set_sigcontext_reg_addr): Delete function.
1614
8c6b0e06
AC
1615 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
1616 (DEPRECATED_SIGTRAMP_END): Delete.
1617 * gdbarch.h, gdbarch.c: Re-generate.
1618 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
1619 * config/vax/tm-vaxbsd.h: Update copyright.
1620 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1621 (DEPRECATED_IN_SIGTRAMP): Define.
1622 * config/m68k/tm-nbsd.h: Update copyright.
1623 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1624 (DEPRECATED_IN_SIGTRAMP): Define.
1625
50ea7769
MK
16262004-05-01 Mark Kettenis <kettenis@gnu.org>
1627
03ac2a74
MK
1628 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
1629 encondings. Fixes PR gdb/1628.
1630
50ea7769
MK
1631 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
1632 DW_CFA_restore state without a matching DW_CFA_remember_state
1633 instead of aborting. Fixes PR backtrace/1589.
1634
9a5d7be1
JB
16352004-04-30 Joel Brobecker <brobecker@gnat.com>
1636
1637 * MAINTAINERS: Add self as AIX maintainer.
1638 Update my e-mail address in write-after-approval section.
1639
2593d1cd
AC
16402004-04-30 Andrew Cagney <cagney@redhat.com>
1641
ce12bbf9
AC
1642 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
1643 (legacy_get_prev_frame): Ditto.
1644
36710c63
AC
1645 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
1646 (mips_gdbarch_init): Do not set pc_in_sigtramp.
1647 * mipsread.c (sigtramp_address): Delete extern variable.
1648 (mipscoff_new_init): Delete reference.
1649 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
1650 (fixup_sigtramp): Delete function.
1651 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
1652 (fixup_sigtramp): Delete declarations.
1653
2593d1cd
AC
1654 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
1655 deprecated_pc_in_sigtramp.
1656 (ppcnbsd_pc_in_sigtramp): Delete function.
1657
2a25f91c
MK
16582004-05-01 Mark Kettenis <kettenis@gnu.org>
1659
1660 * config/m68k/nm-nbsd.h: Tweak comments.
1661 * config/m68k/nm-nbsdaout.h: Likewise.
1662
0b281939
AC
16632004-04-30 Andrew Cagney <cagney@redhat.com>
1664
1665 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
1666 legacy_pc_in_sigtramp.
1667 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
1668
8f2d3ea0
MK
16692004-05-01 Mark Kettenis <kettenis@gnu.org>
1670
1671 Add OpenBSD/m68k support.
1672 * NEWS (New native configurations): Mention OpenBSD/m68k.
1673 * m68kbsd-tdep.c: New file.
1674 * m68kbsd-nat.c: New file.
1675 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
1676 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
1677 * configure.host: Add m68k-*-openbsd.
1678 * configure.tgt: Add m68k-*-openbsd.
1679 * config/m68k/tm-obsd.h: New file.
1680 * config/m68k/obsd.mt: New file.
1681 * config/m68k/obsd.mh: New file.
1682 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
1683 m68kbsd-tdep.c.
1684
c40f49a4
AC
16852004-04-30 Andrew Cagney <cagney@redhat.com>
1686
1687 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
1688 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
1689
e81554cd
MK
16902004-04-30 Mark Kettenis <kettenis@gnu.org>
1691
1692 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
1693 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
1694
d4dc1a91
BF
16952004-04-30 Brian Ford <ford@vss.fsi.com>
1696
1697 Revert 2004-04-16 change.
1698 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
1699 (i386_coff_init_abi): Remove.
1700 * i386-tdep.h (i386_coff_init_abi): Remove.
1701 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
1702
2f72f850
AC
17032004-04-30 Andrew Cagney <cagney@redhat.com>
1704
e492f9d6
AC
1705 * blockframe.c (find_pc_partial_function): Delete use of
1706 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
1707 DEPRECATED_SIGTRAMP_END.
1708
7b7adad0
AC
1709 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
1710 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
1711 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
1712 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
1713 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
1714
2f72f850
AC
1715 * defs.h (deprecated_inside_entry_file): Delete declaration.
1716 * blockframe.c (deprecated_inside_entry_file): Delete function.
1717 (legacy_frame_chain_valid): Delete call.
1718 * sh64-tdep.c (sh64_frame_chain): Delete call.
1719 * objfiles.h: Update comments.
1720 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
1721 call.
1722 * frame.c (get_prev_frame): Delete call, update comments.
1723
283f90a7
BF
17242004-04-30 Brian Ford <ford@vss.fsi.com>
1725
1726 * MAINTAINERS (Write After Approval): Add myself.
1727
8ee56bcf
AC
17282004-04-30 Andrew Cagney <cagney@redhat.com>
1729
1730 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
1731 * gdbarch.h, gdbarch.c: Re-generate.
1732 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
1733 code.
1734
ee27e1b6
AC
17352004-04-30 Andrew Cagney <cagney@redhat.com>
1736
1737 * gdb-events.sh (selected_thread_changed)
1738 (selected_frame_level_changed, target_changed): Delete.
1739 * gdb-events.h, gdb-events.c: Re-generate.
1740 * valops.c (value_assign): Update.
1741 * stack.c (select_frame_command, up_silently_base)
1742 (down_silently_base): Update.
1743
d5ac5a39
AC
17442004-04-29 Andrew Cagney <cagney@redhat.com>
1745
1746 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
1747 registers correctly.
1748 (print_gp_register_row, mips32_heuristic_proc_desc)
1749 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1750 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
1751 references to mips_isa_regsize.
1752
ceae6e75
AC
17532004-04-29 Andrew Cagney <cagney@redhat.com>
1754
1755 * mips-tdep.c (struct gdbarch_tdep): Delete
1756 mips_fp_register_double.
1757 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
1758 mips_abi_regsize.
1759 (mips_gdbarch_init): Do not set mips_fp_register_double.
1760 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
1761
a587af0b
AC
17622004-04-29 Joel Brobecker <brobecker@gnat.com>
1763
1764 Committed by Andrew Cagney.
1765 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
1766 function calls.
1767
13326b4e
AC
17682004-04-29 Andrew Cagney <cagney@redhat.com>
1769
1770 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
1771 gdbarch, use mips_abi, update callers.
1772 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
1773 mips_abi_regsize, update callers.
1774 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
1775 mips_default_abi_regsize.
1776 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
1777 mips_default_abi_regsize.
1778
711cc5cd
AC
17792004-04-29 Andrew Cagney <cagney@redhat.com>
1780
1b13c4f6
AC
1781 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
1782 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
1783 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
1784 mips_default_abi_regsize.
1785 (mips_isa_regsize): Rename mips_regisze.
1786 * mipsnbsd-tdep.c: Update.
1787 * mips-linux-tdep.c: Update.
1788 * irix5-nat.c: Update.
1789 * mips-tdep.h (mips_isa_regsize): Update.
1790
711cc5cd
AC
1791 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
1792 Delete all disabled code.
1793 * gdb-events.h, gdb-events.c: Re-generate.
1794
e63bbc88
MK
17952004-04-19 Jerome Guitton <guitton@gnat.com>
1796 Mark Kettenis <kettenis@gnu.org>
1797
1798 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
1799 the function begins with a branch instruction.
1800
fd35795f
MK
18012004-04-29 Mark Kettenis <kettenis@gnu.org>
1802
1803 * i386-tdep.c: Fix spelling mistakes.
1804
c960c18f
AC
18052004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1806 Andrew Cagney <cagney@redhat.com>
1807
1808 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
1809 <sys/proc.h>.
1810 * acconfig.h: Provide default _KMEMUSER value.
1811 * config.in, configure: Re-generate.
1812 * NEWS: Mention fix.
1813
50306a9d
RC
18142004-04-24 Randolph Chung <tausq@debian.org>
1815
1816 * configure.host (hppa*-*-linux*): New target.
1817 * configure.tgt (hppa*-*-linux*): Likewise.
1818 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
1819 gdbarch_init_osabi() call earlier so that osabi-specific frame
1820 unwinders can be registered first.
1821 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
1822 hppa-linux-nat.c.
1823 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
1824 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
1825 * config/pa/linux.mh: New file.
1826 * config/pa/linux.mt: New file.
1827 * config/pa/nm-linux.h: New file.
1828 * config/pa/xm-linux.h: New file.
1829 * hppa-linux-nat.c: New file.
1830 * hppa-linux-tdep.c: New file.
1831
2a6228ef
RC
18322004-04-28 Randolph Chung <tausq@debian.org>
1833
1834 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
1835 return values.
1836 (hppa32_push_dummy_call): Fix small struct and floating point argument
1837 passing, and make sure the stack frame is properly aligned.
1838
82c10df6
AC
18392004-04-28 Andrew Cagney <cagney@redhat.com>
1840
d762c46a
AC
1841 * stack.c (print_stack_frame): Fix description.
1842
82c10df6
AC
1843 * NEWS: Mention gdb/gdbserver/configure execute permission
1844 changed. PR server/519.
1845
0faf0076
AC
18462004-04-28 Andrew Cagney <cagney@redhat.com>
1847
1848 * stack.c (print_stack_frame_stub): Delete declaration.
1849 (struct print_stack_frame_args, print_stack_frame)
1850 (print_frame_info, print_frame): Replace "source" with print what.
1851 Replace "print" with "print_level". Replace "args" with
1852 "print_args".
1853 * frame.h (show_and_print_stack_frame, print_stack_frame)
1854 (print_frame_info): Update declarations.
1855 * stack.c (select_and_print_frame, frame_command)
1856 (current_frame_command, up_command, down_command): Update calls -
1857 use get_selected_frame, pass "enum print_what" for source, do not
1858 call frame_relative_level.
1859 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
1860 * remote-rdp.c (remote_rdp_open): Ditto.
1861 * remote-mips.c (common_open): Ditto.
1862 * remote-e7000.c (e7000_start_remote): Ditto.
1863 * ocd.c (ocd_start_remote): Ditto.
1864 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
1865 * infrun.c (normal_stop): Ditto.
1866 * inflow.c (kill_command): Ditto.
1867 * infcmd.c (finish_command): Ditto.
1868 * corelow.c (core_open): Ditto.
1869 * tracepoint.c (finish_tfind_command): Ditto.
1870 * thread.c (info_threads_command, info_threads_command)
1871 (restore_current_thread, do_captured_thread_select): Ditto.
1872 * ada-tasks.c (task_command): Ditto.
1873
f4c5303c
OF
18742004-04-26 Orjan Friberg <orjanf@axis.com>
1875
1876 * frame.c: Include "observer.h".
1877 (frame_observer_target_changed): New function.
1878 (_initialize_frame): Attach target_changed observer.
1879 * regcache.c: Include "observer.h".
1880 (regcache_observer_target_changed): New function.
1881 (_initialize_regcache): Attach target_changed observer.
1882 * valops.c: Include "observer.h".
1883 (value_assign): Notify target_changed event when modifying register.
1884 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
1885
7270d8f2
OF
18862004-04-26 Orjan Friberg <orjanf@axis.com>
1887
1888 From Paul Koning <pkoning@equallogic.com>:
1889 * breakpoint.c (free_valchain): New function.
1890 (insert_bp_location, delete_breakpoint): Use free_valchain.
1891 (remove_breakpoint): Do not remove the valchain.
1892 (bpstat_stop_status): If not stopped by watchpoint, skip
1893 watchpoints when generating stop status list.
1894 * infrun.c (handle_inferior_event): Make
1895 stepped_after_stopped_by_watchpoint a global variable.
1896 * remote.c (remote_stopped_data_address): Return watch data
1897 address rather than zero if stepped_after_stopped_by_watchpoint is
1898 set.
1899
02d62932
MC
19002004-04-25 Michael Chastain <mec.gnu@mindspring.com>
1901
1902 Fix PR gdb/1626.
1903 * configure.in: Check for curses after termcap.
1904 On osf5.*, do not check for ncurses.
1905 * configure: Regenerate.
1906
3e9a183c
MK
19072004-04-25 Mark Kettenis <kettenis@gnu.org>
1908
c79ac407
MK
1909 * ppcobsd-nat.c: Include "ppc-tdep.h".
1910 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1911
3e9a183c
MK
1912 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
1913 Fixes PR tdep/1623 and PR tdep/1624.
1914
38cc9c28
MC
19152004-04-24 Michael Chastain <mec.gnu@mindspring.com>
1916
1917 * xmodem.h, xmodem.c: Remove files.
1918 * Makefile.in: Remove references to xmodem.h, xmodem.c.
1919
7f07c5b6
RC
19202004-04-23 Randolph Chung <tausq@debian.org>
1921
1922 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
1923 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
1924 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
1925 for handling stackless frames.
1926 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
1927
9f7194c3
RC
19282004-04-23 Randolph Chung <tausq@debian.org>
1929
1930 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
1931 starts at a pc before the frame is created.
1932
dcff6009
JB
19332004-04-23 Joel Brobecker <brobecker@gnat.com>
1934
1935 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
1936
65951cd9
JG
19372004-04-23 Jerome Guitton <guitton@gnat.fr>
1938
1939 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
1940 use convert_typed_floating to get the appropriate format.
1941
abc485a1
RC
19422004-04-22 Randolph Chung <tausq@debian.org>
1943
1944 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
1945 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
1946 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
1947 (hppa_sign_extend): Add prototype.
1948 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
1949 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
1950 (sign_extend): Rename with hppa_ prefix and make non-static. Other
1951 hppa targets will also use these functions.
1952 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
1953 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
1954 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
1955 (hppa_gdbarch_init): Remove gdbarch setting of
1956 skip_trampoline_code, in_solib_call_trampoline and
1957 in_solib_return_trampoline.
1958 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1959 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
1960 hppa_in_solib_call_trampoline.
1961 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
1962 Moved from hppa-tdep.c.
1963 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
1964 in_solib_call_trampoline and in_solib_return_trampoline.
1965
369aa520
RC
19662004-04-22 Randolph Chung <tausq@debian.org>
1967
1968 * hppa-tdep.c (hppa_debug): New variable.
1969 (find_unwind_entry, hppa_frame_cache): Add debug output.
1970 (_initialize_hppa_tdep): Add command to set debug flag.
1971
476be15e
AC
19722004-04-22 Andrew Cagney <cagney@redhat.com>
1973
1974 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
1975 "trad-frame.h".
1976 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
1977 signal trampoline unwinder.
1978 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
1979
d195bc9f
MK
19802004-04-22 Mark Kettenis <kettenis@gnu.org>
1981
1982 Add OpenBSD/powerpc support.
1983 * NEWS (New native configurations): Mention OpenBSD/powerpc.
1984 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
1985 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
1986 (ppc_collect_fpregset): New prototypes.
1987 * ppcobsd-nat.c: New file.
1988 * ppcobsd-tdep.c: New file.
1989 * ppcobsd-tdep.h: New file.
1990 * rs6000-tdep.c: Include "regset.h".
1991 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
1992 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
1993 New functions.
1994 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
1995 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
1996 (rs6000-tdep.o): Update dependencies.
1997 * configure.host: Add powerpc-*-openbsd.
1998 * configure.tgt: Add powerpc-*-openbsd.
1999 * config/powerpc/obsd.mh: New file.
2000 * config/powerpc/nm-obsd.h: New file.
2001 * config/powerpc/obsd.mt: New file.
2002
6f14cc33
AC
20032004-04-22 Andrew Cagney <cagney@redhat.com>
2004
fcf29e5f
AC
2005 * frame.h (show_frame_info): Delete declaration.
2006
6f14cc33
AC
2007 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2008 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2009 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2010 * frv-tdep.c (frv_frame_this_id): Ditto.
2011 * avr-tdep.c (avr_frame_this_id): Ditto.
2012
e5786a5c
EZ
20132004-04-22 Elena Zannoni <ezannoni@redhat.com>
2014
2015 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2016
26e75e5c
JB
20172004-04-22 Jim Blandy <jimb@redhat.com>
2018
2019 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2020 register number zero.
2021
d8d65dd3
MS
20222004-04-21 Michael Snyder <msnyder@redhat.com>
2023
2024 * mips-tdep.c (heuristic_proc_start):
2025 Warning() already prefixes "Warning: ".
2026
9a4105ab
AC
20272004-04-21 Andrew Cagney <cagney@redhat.com>
2028
2029 * annotate.h (deprecated_annotate_starting_hook)
2030 (deprecated_annotate_stopped_hook)
2031 (deprecated_annotate_exited_hook)
2032 (deprecated_annotate_signal_hook)
2033 (deprecated_annotate_signalled_hook): Deprecate.
2034 * tracepoint.h (deprecated_create_tracepoint_hook)
2035 (deprecated_delete_tracepoint_hook)
2036 (deprecated_modify_tracepoint_hook)
2037 (deprecated_trace_find_hook)
2038 (deprecated_trace_start_stop_hook): Deprecate.
2039 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2040 * remote.h (deprecated_target_resume_hook)
2041 (deprecated_target_wait_loop_hook): Deprecate.
2042 * gdbcore.h (deprecated_exec_file_display_hook)
2043 (deprecated_file_changed_hook): Deprecate.
2044 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2045 * defs.h (deprecated_modify_breakpoint_hook)
2046 (deprecated_command_loop_hook, deprecated_show_load_progress)
2047 (deprecated_print_frame_info_listing_hook)
2048 (deprecated_query_hook, deprecated_warning_hook)
2049 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2050 (deprecated_delete_breakpoint_hook)
2051 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2052 (deprecated_readline_begin_hook, deprecated_readline_hook)
2053 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2054 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2055 (deprecated_context_hook, deprecated_target_wait_hook)
2056 (deprecated_attach_hook, deprecated_detach_hook)
2057 (deprecated_call_command_hook, deprecated_set_hook)
2058 (deprecated_error_hook, deprecated_error_begin_hook)
2059 (deprecated_ui_load_progress_hook): Deprecate.
2060 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2061 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2062 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2063 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2064 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2065 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2066 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2067 * annotate.c, aix-thread.c: Update.
2068
62cf13cc
AC
20692004-04-21 Andrew Cagney <cagney@redhat.com>
2070
b2e31a62
AC
2071 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2072 * vaxnbsd-tdep.c: Include "gdb_string.h".
2073
62cf13cc
AC
2074 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2075 (add_symbol_file_from_memory_command): #if 0 function body, call
2076 error instead.
2077
00e32a35
AC
20782004-04-21 Andrew Cagney <cagney@redhat.com>
2079
2080 * gdbcore.h: Update copyright.
2081 (deprecated_add_core_fns): Rename add_core_fns.
2082 * win32-nat.c (_initialize_core_win32): Update.
2083 * sun3-nat.c (_initialize_core_sun3): Update.
2084 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2085 * rs6000-nat.c (_initialize_core_rs6000): Update.
2086 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2087 * nto-tdep.c (_initialize_nto_tdep): Update.
2088 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2089 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2090 * mips-nat.c (_initialize_core_mips): Update.
2091 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2092 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2093 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2094 * lynx-nat.c (_initialize_core_lynx): Update.
2095 * irix5-nat.c (_initialize_core_irix5): Update.
2096 * i386-interix-nat.c (_initialize_core_interix): Update.
2097 * cris-tdep.c (_initialize_cris_tdep): Update.
2098 * corelow.c (deprecated_add_core_fns): Update.
2099 * core-regset.c (_initialize_core_regset): Update.
2100 * core-aout.c (_initialize_core_aout): Update.
2101 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2102 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2103 * alpha-nat.c (_initialize_core_alpha): Update.
2104
13c7b1ca
JB
21052004-04-21 Jim Blandy <jimb@redhat.com>
2106
2107 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2108
7b5a2f43
DJ
21092004-04-19 Daniel Jacobowitz <drow@mvista.com>
2110
2111 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2112 Delete.
2113 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2114 (read_attribute_value): Update calls to dwarf_alloc_block.
2115 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2116 dwarf2_tmp_obstack.
2117 (psymtab_to_symtab_1): Likewise. Clean up using
2118 free_stack_comp_unit.
2119 (add_to_cu_func_list): Use the comp_unit_obstack.
2120
05cf31d1
JB
21212004-04-19 Joel Brobecker <brobecker@gnat.com>
2122
2123 * dwarf2read.c (dwarf2_flag_true_p): New function.
2124 (die_is_declaration): Use the function above. Add some comments.
2125
adf93a2f
MK
21262004-04-19 Mark Kettenis <kettenis@gnu.org>
2127
2128 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2129 architecture when registering sparcnbsd_core_osabi_sniffer.
2130 Adjust comment.
2131
748894bf
MK
21322004-04-18 Mark Kettenis <kettenis@gnu.org>
2133
f622ad42
MK
2134 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2135 return value.
2136
c4fc7f1b
MK
2137 Based on a patch from Brian Ford <ford@vss.fsi.com>:
2138 * i386-tdep.c: Correct register numbering scheme comments
2139 throughout.
2140 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2141 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2142 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2143 (i386_gdb_arch_init): Likewise.
2144
b4ead1bd
MK
2145 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2146 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2147 ppcnbsd-tdep.o.
2148
748894bf
MK
2149 * m68k-tdep.h: Tweak comments.
2150 * m68k-tdep.c: Tweak comment.
2151
fdd72f95
RC
21522004-04-17 Randolph Chung <tausq@debian.org>
2153
2154 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2155 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2156 (hppa_hpux_som_init_abi): Set is_elf to 0.
2157 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2158 * hppa-tdep.c (low_text_segment_address): Remove global.
2159 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2160 section offset to calculate segment address.
2161 (internalize_unwinds): Define low_text_segment_address as local and
2162 pass to record_text_segment_lowaddr for ELF targets.
2163 (hppa_gdbarch_init): Zero fill tdep structure.
2164 (hppa_dump_tdep): Print tdep structure.
2165 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2166
0f8d9d59
RC
21672004-04-17 Randolph Chung <tausq@debian.org>
2168
2169 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2170 (hppa_gdbarch_init): Set pseudo_register_read.
2171 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2172 * regcache.c (supply_register): Remove check for
2173 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2174
7c46b9fb
RC
21752004-04-17 Randolph Chung <tausq@debian.org>
2176
2177 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2178 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2179 (hpread_adjust_stack_address): Move to hpread.c.
2180 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2181 obj_private_struct): Move from tm-hppa.h.
2182 * hpread.c (hppa-tdep.h): Include.
2183 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2184 (hpread_read_function_type, hpread_read_doc_function_type)
2185 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2186 directly.
2187 * pa64solib.c (hppa-tdep.h): Include.
2188 * somsolib.c (hppa-tdep.h): Include.
2189 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2190 inferior_status): Remove unused forward declarations.
2191 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2192 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2193 obj_private_struct): Move to hppa-tdep.h.
2194 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2195
8d153463
RC
21962004-04-17 Randolph Chung <tausq@debian.org>
2197
2198 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2199 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2200 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2201 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2202 Remove forward declaration and make static.
2203 (hppa_reg_struct_has_addr): Remove.
2204
350c2e5b
JB
22052004-04-16 Joel Brobecker <brobecker@gnat.com>
2206
2207 * observer.sh: Move comments in sed command to first column.
2208
bbde78fa
JM
22092004-04-16 Jason Molenda (jmolenda@apple.com)
2210
2211 * frame.c: Minor typeo corrections in comments.
2212
e0270fd9
JB
22132004-04-16 Joel Brobecker <brobecker@gnat.com>
2214
2215 * observer.c (observer_test_first_notification_function): Update
2216 function profile.
2217 (observer_test_second_notification_function): Likewise.
2218 (observer_test_third_notification_function): Likewise.
2219
3d049254
MK
22202004-04-16 Mark Kettenis <kettenis@gnu.org>
2221
2222 From Brian Ford <ford@vss.fsi.com>:
2223 * i386-tdep.c (i386_coff_init_abi): New function.
2224 * i386-tdep.h (i386_coff_init_abi): New prototype.
2225 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
2226 register number translation functions for DWARF and DWARF 2.
2227
7867684d
JB
22282004-04-16 Joel Brobecker <brobecker@gnat.com>
2229
2230 * dwarf2read.c: Back out my previous change, it was incorrect.
2231
72bf9492
DJ
22322004-04-16 Daniel Jacobowitz <drow@mvista.com>
2233
2234 * dwarf2read.c: Include "hashtab.h".
2235 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
2236 has_namespace_info.
2237 (struct partial_die_info): Add comments. Use bitfields to reduce
2238 memory footprint. Add scope, scope_set, has_specification,
2239 spec_offset, die_parent, die_child, and die_sibling.
2240 (peek_die_abbrev): Add prototype.
2241 (partial_read_comp_unit_head): New function, broken out from
2242 dwarf2_build_psymtabs_hard.
2243 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
2244 Use partial_read_comp_unit_head. Initialize the CU and
2245 comp_unit_obstack. Update calls to read_partial_die and
2246 scan_partial_symbols. Use free_stack_comp_unit and
2247 load_partial_dies.
2248 (scan_partial_symbols): Change PDI to a pointer. Use the child and
2249 sibling pointers to walk partial DIEs. Call fixup_partial_die.
2250 Update calls to helper functions. Remove NAMESPACE argument.
2251 Update comments.
2252 (partial_die_parent_scope, partial_die_full_name): New functions.
2253 (add_partial_symbol): Remove namespace argument. Update call to
2254 pdi_needs_namespace. Use partial_die_full_name. Handle
2255 DW_TAG_namespace. Check has_namespace_info flag.
2256 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
2257 tag. Handle namespaces.
2258 (add_partial_namespace, add_partial_enumeration): Simplify.
2259 (guess_structure_name): New function, derived from
2260 add_partial_structure.
2261 (add_partial_structure): Remove.
2262 (determine_class_name): Update comment.
2263 (dwarf2_read_abbrevs): Set has_namespace_info flag.
2264 (is_type_tag_for_partial, load_partial_dies): New functions.
2265 (read_partial_die): Pass abbrev and abbrev_len as arguments.
2266 Record specifications instead of following them immediately.
2267 (find_partial_die_in_comp_unit, find_partial_die)
2268 (fixup_partial_die, free_stack_comp_unit)
2269 (hashtab_obstack_allocate, dummy_obstack_deallocate)
2270 (partial_die_hash, partial_die_eq): New functions.
2271 * Makefile.in (hashtab_h): Define.
2272 (dwarf2read.o): Update dependencies.
2273 (observer_inc, observer_h): Move to the correct section.
2274
fdc860a3
JB
22752004-04-15 Joel Brobecker <brobecker@gnat.com>
2276
2277 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2278 (die_is_declaration): Use the function above. Add comment.
2279
dc718098
JB
22802004-04-15 Joel Brobecker <brobecker@gnat.com>
2281
2282 * dwarf2read.c (read_structure_scope): Identify stub types
2283 using die_is_declaration() only.
2284
8718a420
RM
22852004-04-15 Roland McGrath <roland@redhat.com>
2286
2287 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2288 argument instead of NAME.
2289 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2290 in call to symbol_file_add_with_addrs_or_offsets.
2291 (build_addr_info): New function, helper for ...
2292 (symbol_file_add_from_memory): New function.
2293 (add_symbol_file_from_memory_command): New function using that.
2294 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2295 (pre_add_symbol_hook): Add const to argument type.
2296 * symfile.h (symbol_file_add_from_memory): Declare it.
2297
8b910bab
MK
22982004-04-15 Mark Kettenis <kettenis@gnu.org>
2299
9f076e7a
MK
2300 * NEWS (New native configurations): Mention OpenBSD/vax.
2301 * configure.host: Add vax-*-openbsd*.
2302 * config/vax/obsd.mh: New file.
2303 * config/vax/nm-obsd.h: New file.
2304
8b910bab
MK
2305 * vax-tdep.c: Include "regset.h".
2306 (vax_supply_gregset): New function.
2307 (vax_gregset): New variable.
2308 (vax_regset_from_core_section): New function.
2309 (vax_gdbarch_init): Set regset_from_core_section.
2310 * Makefile.in (vax-tdep.o): Update dependencies.
2311
7a464420
AC
23122004-04-15 Andrew Cagney <cagney@redhat.com>
2313
2314 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2315 (observer_normal_stop_notification_stub)
2316 (observer_attach_normal_stop, observer_detach_normal_stop):
2317 Delete, replaced by #include "observer.inc".
2318 * infrun.c (normal_stop): Pass "stop_bpstat" to
2319 observer_notify_normal_stop.
2320 * Makefile.in (observer_inc): Define.
2321 (observer.o): Update dependencies.
2322 (observer.h, observer.inc): New rules.
2323 * observer.h: Delete file.
2324 * observer.sh: New file.
2325
e36ad527
MK
23262004-04-15 Mark Kettenis <kettenis@gnu.org>
2327
2328 * vax-tdep.c (vax_frame_cache): Fix typo.
2329
67b441e1
MK
23302004-04-14 Mark Kettenis <kettenis@gnu.org>
2331
6f606e1c
MK
2332 * NEWS (New native configurations): Mention NetBSD/vax.
2333 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2334 * config/vax/nbsdelf.mh: New file.
2335 * config/vax/nbsdaout.mh: New file.
2336 * config/vax/nm-nbsd.h: New file.
2337 * config/vax/nm-nbsdaout.h: New file.
2338
9c5519a5
MK
2339 * vaxnbsd-tdep.c: New file.
2340 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2341 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2342 * config/vax/nbsd.mt: New file.
2343 * config/vax/tm-nbsd.h: New file.
2344
4844a614
MK
2345 * Makefile.in (vaxbsd-nat.o): New dependency.
2346
67b441e1
MK
2347 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2348 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2349 struct_addr arguments. Don't push return value address.
2350 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2351 arguments to vax_store_arguments. Store return value address in
2352 R1.
2353 (vax_store_struct_return, vax_extract_return_value)
2354 (vax_store_return_value): Remove functions.
2355 (vax_return_value): New function.
2356 (vax_gdbarch_init): Set return value. Don't set
2357 deprecated_store_struct_return, deprecated_extract_struct_return
2358 and deprecated_store_return_value.
2359
6672f2ae
AS
23602004-04-14 Andreas Schwab <schwab@suse.de>
2361
2362 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
2363 value buffer.
2364 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
2365
7346c184
MK
23662004-04-14 Mark Kettenis <kettenis@gnu.org>
2367
2368 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
2369 (vax_unwind_dummy_id): New functions.
2370 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
2371 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
2372 variables.
2373 (vax_fix_call_dummy): Remove function.
2374 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
2375 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
2376 call_dummy_location, deprecated_call_dummy_words,
2377 deprecated_sizeof_call_dummy_words,
2378 deprecated_call_dummy_breakpoint_offset,
2379 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
2380 and deprecated_dummy_write_sp.
2381
58e23df4
DC
23822004-04-13 David Carlton <carlton@kealia.com>
2383
2384 * MAINTAINERS: Move myself to "paper trail" section.
2385
5e6b39ff
MK
23862004-04-12 Mark Kettenis <kettenis@gnu.org>
2387
7def7fef
MK
2388 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
2389 "trad-frame.h".
2390 (vax_frame_init_saved_regs): Remove function.
2391 (vax_sigtramp_saved_pc): Remove function.
2392 (vax_frame_saved_pc): Remove function.
2393 (vax_frame_args_address): Remove function.
2394 (vax_frame_num_args): Rewrite.
2395 (vax_frame_chain): Remove function.
2396 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
2397 VAX_FP_REGNUM.
2398 (vax_pop_frame): Likewise.
2399 (vax_saved_pc_after_call): Remove function.
2400 (struct vax_frame_cache): New structure.
2401 (vax_frame_cache): New function.
2402 (vax_frame_this_id): New function.
2403 (vax_frame_prev_register): New function.
2404 (vax_frame_unwind): New variable.
2405 (vax_frame_sniffer): New function.
2406 (vax_frame_base_address): New function.
2407 (vax_frame_args_address): New function.
2408 (vax_frame_base): New variable.
2409 (vax_unwind_pc): New function.
2410 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
2411 deprecated_fp_regnum, deprecated_saved_pc_after_call,
2412 deprecated_frame_chain, deprecated_frame_saved_pc,
2413 deprecated_frame_args_address and
2414 deprecated_frame_init_saved_regs.
2415 * Makefile.in (vax-tdep.o): Update dependencies.
2416
53284fc1
MK
2417 * vaxbsd-nat.c: New file.
2418
5e6b39ff
MK
2419 * vax-tdep.h: Update copyright year. Adjust comments.
2420 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
2421 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
2422 (vax_regnum): New enum. Replacing...
2423 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
2424 (VAX_PS_REGNUM): ... these removed macros.
2425 * vax-tdep.c (vax_register_name): Remove prototype.
2426 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
2427 (vax_register_byte, vax_register_raw_size,
2428 vax_register_virtual_size, vax_register_virtual_type): Remove
2429 functions.
2430 (vax_register_type): New function.
2431 (vax_breakpoint_from_pc): Reorganize.
2432 (vax_gdbarch_init): Set register_type. Don't set
2433 deprecated_register_size, deprecated_register_bytes,
2434 deprecated_register_byte, deprecated_register_raw_size,
2435 deprecated_max_register_raw_size,
2436 deprecated_register_virtual_size,
2437 deprecated_max_register_virtual_size and
2438 deprecated_register_virtual_type. Add comment on stack direction.
2439
e9c71e9f
MK
24402004-04-11 Mark Kettenis <kettenis@gnu.org>
2441
2442 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
2443 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 2444 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 2445
d46f1176 24462004-04-10 Randolph Chung <tausq@debian.org>
8718a420 2447
d46f1176
RC
2448 * MAINTAINERS (write after approval): Add myself.
2449
a2a84a72
RC
24502004-04-07 Randolph Chung <tausq@debian.org>
2451
2452 * hppa-tdep.c (hppa_inner_than): Remove.
2453 (is_pa_2): Remove unused static variable.
8718a420 2454 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 2455
e85c3284
PH
24562004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
2457
2458 * language.h (language_defn): Add new la_post_parser field.
2459 * parser-defs.h (null_post_parser): New declaration (default for
2460 la_post_parser).
8718a420 2461
e85c3284
PH
2462 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
2463 insert call to that function.
2464 (parse_exp_in_context): New function, including code formerly in
8718a420 2465 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
2466 prefixification.
2467 (parse_expression_in_context): New exported function.
2468 (null_post_parser): New definition.
2469 * expression.h (parse_expression_in_context): Add declaration.
8718a420 2470
e85c3284
PH
2471 * p-lang.c (pascal_language_defn): Add trivial post-parser.
2472 * c-lang.c (c_language_defn): Ditto.
2473 (cplus_language_defn): Ditto.
2474 (asm_language_defn): Ditto.
2475 (minimal_language_defn): Ditto.
2476 * f-lang.c (f_language_defn): Ditto.
2477 * jv-lang.c (java_language_defn): Ditto.
2478 * language.c (unknown_language_defn): Ditto.
2479 (auto_language_defn): Ditto.
2480 (local_language_defn): Ditto.
2481 * m2-lang.c (m2_language_defn): Ditto.
2482 * scm-lang.c (scm_language_defn): Ditto.
2483 * obj-lang.c (objc_language_defn): Ditto.
8718a420 2484
d9f8c85b
MK
24852004-04-10 Mark Kettenis <kettenis@gnu.org>
2486
fa34704a
MK
2487 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
2488 (amd64nbsd_mcontext_addr): New function.
2489 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
2490 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
2491 with amd64nbsd_r_reg_offset, instead of building it on the fly.
2492
403e1656
MK
2493 * corelow.c (core_xfer_partial): Fix coding standards violation.
2494 Add support for TARGET_OBJECT_WCOOKIE.
2495
a57e5a95
MK
2496 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
2497 deprecated_pc_in_sigtramp.
2498 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2499 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2500 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
2501 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
2502 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
2503 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
2504 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
2505
377d9ebd
MK
2506 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
2507 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
2508 Fix typo.
2509
f0ef85a5
MK
2510 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
2511 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
2512 (amd64_collect_fxsave): Likewise.
2513
d9f8c85b
MK
2514 * i386-sol2-tdep.c: Include "gdb_string.h".
2515 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
2516 name.
2517 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2518
75f501b5
MK
25192004-04-10 Mark Kettenis <kettenis@gnu.org>
2520
2521 * i386-sol2-tdep.c: Include "solib-svr4.h".
2522 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2523 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2524 * config/i386/tm-i386sol2.h: Include :solib.h".
2525 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
2526 solib-svr4.o and solib-legacy.o.
2527 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
2528 solib-svr4.o.
2529
b31bc724
MK
25302004-04-09 Mark Kettenis <kettenis@gnu.org>
2531
18bbbd9e
MK
2532 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
2533 whether a register is supplied by PTRACE_GETFPREGS.
2534 (store_inferior_registers): Likewise.
2535 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
2536 whether a register is supplied by PT_GETFPREGS.
2537 (store_inferior_registers): Likewise.
2538
3c30bf1b
MK
2539 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
2540 * config/i386/linux64.mt (TDEPFILES): Likewise.
2541
a4194092
MK
2542 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
2543
911bc6ee
MK
2544 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
2545 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2546 the program counter is in the range specified by `struct
2547 gdbarch_tdep'.
2548 * amd64-linux-tdep.c: Include "symtab.h".
2549 (amd64_linux_pc_in_sigtramp): Remove function.
2550 (amd64_linux_sigtramp_p): New function.
2551 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2552 deprecated_pc_in_sigtramp.
2553 * amd64nbsd-tdep.c: Include "symtab.h".
2554 (amd64nbsd_sigtramp_p): New function.
2555 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2556 deprecated_pc_in_sigtramp.
2557 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
2558 few comments.
2559 (amd64obsd_pc_in_sigtramp): Remove function.
2560 (amd64obsd_sigtramp_p): New function.
2561 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2562 deprecated_pc_in_sigtramp.
2563 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
2564 (i386bsd_pc_ins_sigtramp): Remove prototype.
2565 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
2566 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
2567 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2568 the program counter is in the range specified by `struct
2569 gdbarch_tdep'.
2570 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
2571 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
2572 (i386_go32_pc_in_sigtramp): Remove function.
2573 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
2574 Initialize TDEP->sigtramp_p.
2575 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
2576 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
2577 deprecated_pc_in_sigtramp.
2578 * i386-linux-tdep.c: Adjust comments.
2579 (i386_linux_pc_in_sigtramp): Remove function.
2580 (i386_linux_sigtramp_p): New function.
2581 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2582 deprecated_pc_in_sigtramp.
2583 * i386-nto-tdep.c: Update copyright year.
2584 (i386nto_pc_in_sigtramp): Remove function.
2585 (i386nto_sigtramp_p): New function.
2586 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
2587 SP_REGNUM.
2588 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
2589 deprecated_pc_in_sigtramp.
2590 * i386-sol2-tdep.c: Update copyright year.
2591 (i386_sol2_pc_in_sigtramp): Remove function.
2592 (i386_sol2_sigtramp_p): New function.
2593 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
2594 deprecated_pc_in_sigtramp.
2595 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
2596 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
2597 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2598 deprecated_sigtramp_start and deprecated_sigtramp_end.
2599 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
2600 (i386nbsd_pc_in_sigtramp): Remove function.
2601 (i386nbsd_sigtramp_p): New function.
2602 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2603 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2604 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
2605 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
2606 (i386obsd_pc_in_sigtramp): Remove function.
2607 (i386obsd_sigtramp_p): New function.
2608 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
2609 functions.
2610 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2611 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2612 TDEP->sigtramp_p.
2613 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
2614 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
2615 dependencies.
2616
e083e6ec
MK
2617 * config/i386/i386aout.mt: Remove file.
2618
bd153b94
MK
2619 * configure.tgt: Remove i[34567]86-*-go32*,
2620 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
2621 and i[34567]86-*-isc*. Set gdb_target to i386 for
2622 i[34567]86-*-netware* and i[34567]86-*-*.
2623 * config/i386/i386.mt: New file.
2624 * config/i386/embed.mt: Remove file.
2625 * config/i386/go32.mt: Remove file.
2626 * config/i386/i386nw.mt: Remove file.
2627 * config/i386/i386v.mt: Remove file.
2628 * config/i386/tm-go32.h: Remove file.
2629
4a1bcc8c
MK
2630 * tui/tui-hooks.c: Include "readline/readline.h" after
2631 "gdb_curses.h" instead of before.
2632 * tui/tui-io.c: Likewise.
2633
f9a79064
MK
2634 * tui/tui.c: Fix typo in comment.
2635
b31bc724
MK
2636 * sparc64-tdep.c (sparc_address_from_register): Remove function.
2637
f83f82bc
AC
26382004-04-08 Andrew Cagney <cagney@redhat.com>
2639
2640 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
2641 (deprecated_exception_support_initialized): Declare.
8718a420 2642 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
2643 (initialize_hp_cxx_exception_support)
2644 (child_enable_exception_callback): Update.
2645 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
2646 (deprecated_exception_support_initialized): Rename
2647 deprecated_exception_catchpoints_are_fragile and
2648 deprecated_exception_support_initialized.
2649 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
2650
2651 * symtab.c (deprecated_hp_som_som_object_present): Rename
2652 hp_som_som_object_present.
2653 * symtab.h (deprecated_hp_som_som_object_present): Declare.
2654 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
2655 Update. Delete extern declaration.
2656 * valops.c (hp_som_som_object_present): Ditto.
8718a420 2657 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
2658 (parse_nested_classes_for_hpacc): Ditto.
2659 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 2660 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
2661 (initialize_hp_cxx_exception_support): Ditto.
2662 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 2663 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 2664 (cp_print_class_method): Ditto.
8718a420 2665 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
2666 (c_type_print_base): Ditto.
2667 * c-exp.y (hp_som_som_object_present): Ditto.
2668
fb2be677
AC
26692004-04-08 Andrew Cagney <cagney@redhat.com>
2670
2671 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
2672 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
2673 (frame_unwind_find_by_frame): Re-implement the unwind code so
2674 that it can both prepend and append sniffers. Replace
2675 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
2676 * tramp-frame.c (tramp_frame_append): Use
2677 frame_unwind_prepend_unwinder.
2678 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
2679 frame_unwind_register_unwinder.
2680 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
2681 tramp_frame_append.
2682 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 2683 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
2684 (mips_linux_init_abi): Update.
2685
67faf007
KB
26862004-04-08 Kevin Buettner <kevinb@redhat.com>
2687
2688 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
2689 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
2690 file support.
2691
8973ff21
KB
26922004-04-07 Kevin Buettner <kevinb@redhat.com>
2693
2694 * ia64-tdep.c (elf.h): Don't include.
2695 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
2696
4a0e2f88
JM
26972004-04-07 Jason Molenda (jmolenda@apple.com)
2698
2699 * frame.h: Typeo corrections in comments.
2700
9872ad24
JB
27012004-04-07 Jim Blandy <jimb@redhat.com>
2702
2703 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
2704 %esp and %ebp
2705
70b216c8
MK
27062004-04-07 Mark Kettenis <kettenis@gnu.org>
2707
11d5789c
MK
2708 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
2709 * config/sparc/linux64.mt (TDEPFILES): Likewise.
2710 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2711 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2712 and solib-legacy.o.
2713 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
2714 solib-svr4.o.
2715 * config/sparc/tm-sol2.h: Update copyright year. Include
2716 "solib.h".
2717
70b216c8
MK
2718 * sparc-sol2-tdep.c: Update copyright year. Include
2719 "solib-svr4.h".
2720 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2721 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
2722 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 2723 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
2724 dependencies.
2725
6339dc9e
AC
27262004-04-06 Andrew Cagney <cagney@redhat.com>
2727
2728 * infttrace.c: Include "infttrace.h".
2729 * infttrace.h: Include "target.h".
2730 * Makefile.in (infttrace_h): Update.
2731 (infttrace.o): Update.
8718a420 2732
93449403
AC
27332004-04-06 Andrew Cagney <cagney@redhat.com>
2734
6d518969
AC
2735 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
2736 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
2737 move extern declarations from here ...
2738 * infttrace.h: ... to here.
2739 * Makefile.in (hppah-nat.o): Update dependencies.
2740
85f4f2d8
AC
2741 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
2742 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 2743 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
2744 (hppa_breakpoint_from_pc): Delete.
2745
93449403
AC
2746 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
2747
71456ec6
AC
27482004-04-05 Andrew Cagney <cagney@redhat.com>
2749
2750 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
2751 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
2752 <sys/file.h>.
8718a420 2753
4c02c60c
AC
27542004-04-06 Randolph Chung <tausq@debian.org>
2755
2756 Committed by Andrew Cagney (mechanical change).
2757 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
2758 exception_catchpoints_are_fragile, find_stub_with_shl_get,
2759 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
2760 child_enable_exception_callback, current_ex_event,
2761 null_symtab_and_line, child_get_current_exception_event,
2762 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
2763 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
2764 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
2765 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
2766 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
2767 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
2768 Move hpux-specific definitions ...
2769 * hppa-hpux-tdep.c: ... to here.
2770
3a515653
AC
27712004-04-05 Andrew Cagney <cagney@redhat.com>
2772
2773 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
2774 skip_prologue_using_sal.
2775
c1730d02
AC
27762004-04-05 Andrew Cagney <cagney@redhat.com>
2777
2778 * config/i386/tm-i386.h: Delete file.
2779 * config/i386/tm-vxworks.h: Update copyright, do not include
2780 "tm-i386.h".
2781 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
2782 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
2783 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
2784 * config/i386/ncr3000.mt (TM_FILE): Delete.
2785 * config/i386/interix.mt (TM_FILE): Delete.
2786 * config/i386/i386v.mt (TM_FILE): Delete.
2787 * config/i386/i386nw.mt (TM_FILE): Delete.
2788 * config/i386/i386gnu.mt (TM_FILE): Delete.
2789 * config/i386/i386aout.mt (TM_FILE): Delete.
2790 * config/i386/embed.mt (TM_FILE): Delete.
2791
8b67aa36
KB
27922004-04-05 Kevin Buettner <kevinb@redhat.com>
2793
2794 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
2795 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
2796 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
2797 (accg7_regnum): New constants.
2798 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
2799 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
2800 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
2801 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
2802 for accg registers.
2803 (frv_register_sim_regno): Update spr_map[].
2804
3c7012f5
AC
28052004-04-04 Andrew Cagney <cagney@redhat.com>
2806
2807 * config/mips/xm-riscos.h: Delete.
2808 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
2809 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
2810 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
2811 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
2812 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
2813 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
2814 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
2815 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
2816 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
2817 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
2818 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
2819 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
2820 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
2821 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
2822 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
2823 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
2824 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
2825 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
2826 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
2827 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
2828 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
2829 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
2830 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
2831 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
2832 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
2833 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 2834
3c7012f5
AC
2835 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
2836 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
2837 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
2838 * configure.host: Remove m680[01]0-sun-sunos3*,
2839 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
2840 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
2841 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
2842 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
2843 mips-*-riscos*.
2844 * NEWS: Mention removed systems.
2845
99d16a21
AC
28462004-04-04 Andrew Cagney <cagney@redhat.com>
2847
2848 GDB 6.1 release created from 6.1 branch.
2849
6cdf9d98
AC
28502004-04-04 Andrew Cagney <cagney@redhat.com>
2851
98d346c3
AC
2852 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
2853 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2854 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
2855
6cdf9d98
AC
2856 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
2857 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
2858 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
2859
859a326d
JB
28602004-04-03 Jim Blandy <jimb@redhat.com>
2861
2862 * MAINTAINERS: Chris Faylor has changed employers; add him to
2863 "paper trail" section, and update his E-mail address.
2864
b87178c3
AC
28652004-04-03 Andrew Cagney <cagney@redhat.com>
2866
4ea2acf0
AC
2867 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
2868 generic dummy frames.
2869 * dummy-frame.c: Update copyright.
2870 (dummy_frame_sniffer): Delete check for generic dummy frames.
2871
d0bd2d18 2872 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 2873 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
2874 (REG_PARM_STACK_SPACE): Delete.
2875 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
2876 Inline reference to REG_PARM_STACK_SPACE.
2877
b87178c3
AC
2878 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
2879 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2880 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2881 (FRAME_BASE_BEFORE_SIGTRAMP)
2882 (hppa32_hpux_frame_base_before_sigtramp)
2883 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
2884 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
2885 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
2886 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2887 (FRAME_BASE_BEFORE_SIGTRAMP)
2888 (hppa64_hpux_frame_base_before_sigtramp)
2889 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
2890
43e2e1a0
AC
28912004-04-03 Andrew Cagney <cagney@redhat.com>
2892
2893 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
2894
ddc135a4
AC
28952004-04-02 Andrew Cagney <cagney@redhat.com>
2896
2897 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
2898 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
2899 * dummy-frame.h: Delete out-of-date comments.
2900 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
2901 * gdbarch.h, gdbarch.c: Re-generate.
2902
d15bfd3a 29032004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 2904
d15bfd3a
AC
2905 Committed by Andrew Cagney <cagney@redhat.com>.
2906 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
2907 into account an instruction saving a register if we have already
2908 seen an earlier instruction saving that same register.
2909
f04ceafa
AC
29102004-04-02 Andrew Cagney <cagney@redhat.com>
2911
08be3abd
AC
2912 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
2913 * gdbarch.h, gdbarch.c: Re-generate.
2914 * frame.c (legacy_get_prev_frame): Delete references to
2915 DEPRECATED_INIT_FRAME_PC_FIRST.
2916
f04ceafa
AC
2917 * infrun.c (pc_in_sigtramp): Delete function.
2918 (check_sigtramp2): Inline call to pc_in_sigtramp, use
2919 get_frame_type.
2920
08e69816
AC
29212004-04-02 Andrew Cagney <cagney@redhat.com>
2922
2923 * infrun.c (handle_step_into_function): Delete code conditional on
2924 legacy_frame_p.
2925 (handle_inferior_event, step_over_function): Ditto.
2926
adb54772
AC
29272004-04-02 Andrew Cagney <cagney@redhat.com>
2928
2929 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
2930 "previous frame inner to this frame" test.
2931
304396fb
AC
29322004-04-02 Andrew Cagney <cagney@redhat.com>
2933
2934 * frame.c (safe_frame_unwind_memory): New function.
2935 * frame.h (safe_frame_unwind_memory): Declare. Update description
2936 of /safe_/ methods.
2937 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
2938 "next_frame". Use safe_frame_unwind_memory.
2939 (tramp_frame_sniffer): Update call to tramp_frame_start.
2940
6502dd73
DJ
29412004-04-01 Daniel Jacobowitz <drow@mvista.com>
2942
2943 * dwarf2read.c (dwarf2_objfile_data_key): New.
2944 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
2945 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
2946 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
2947 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
2948 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
2949 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
2950 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
2951 Remove variables.
2952 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
2953 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
2954 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
2955 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
2956 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
2957 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
2958 Remove macros.
2959 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
2960 data.
2961 (dwarf2_locate_sections, dwarf2_build_psymtabs)
2962 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
2963 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
2964 (read_partial_die, read_full_die, read_indirect_string)
2965 (dwarf_decode_line_header, dwarf_decode_macros)
2966 (dwarf2_symbol_mark_computed): Remove use of removed macros.
2967 Update uses of removed variables.
2968 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
2969 of removed macros.
2970 (_initialize_dwarf2_read): New function.
2971 * symfile.h (dwarf2_has_info): Update prototype.
2972 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
2973 * elfread.c (elf_symfile_read): Likewise.
2974
408752b0
JB
29752004-04-01 Jim Blandy <jimb@redhat.com>
2976
9f744501
JB
2977 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
2978 function for register numbers on all the rs6000-derived targets.
2979 (rs6000_gdbarch_init): Don't register a separate
2980 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
2981 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
2982 variants.
2983
408752b0
JB
2984 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
2985 numbering.
2986
2de41bce
PH
29872004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2988
2989 * valarith.c: Update copyright notice.
2990 (value_add): Handle range types.
2991 (value_sub): Ditto.
2992 (value_equal): Ditto.
2993 (value_less): Ditto.
2994 (value_neg): Ditto.
2995 (value_complement): Ditto.
8718a420 2996 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 2997 eliminiating unnecessary COERCE_ENUMs.
8718a420 2998
5613d8d3
AC
29992004-03-31 Andrew Cagney <cagney@redhat.com>
3000
3001 * frame.h (frame_unwind_id): Declare.
3002 * frame.c (frame_unwind_id): New function.
3003 (get_prev_frame_1): New function.
3004 (frame_debug_got_null_frame): New function.
3005 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3006 code proper to prev_frame, update description.
3007 * infrun.c (step_over_function): Use frame_unwind_id.
3008
c4557624
JB
30092004-04-31 J. Brobecker <brobecker@gnat.com>
3010
3011 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3012 (hppa64_push_dummy_call): Likewise.
3013
3e6bb910
JB
30142004-03-30 Jim Blandy <jimb@redhat.com>
3015
3016 From Ulrich Weigand:
3017 * utils.c (query): Do not use a va_list variable multiple times.
3018
a2f23071
DJ
30192004-03-29 Daniel Jacobowitz <drow@mvista.com>
3020
3021 * Makefile.in (linux_nat_h): Update dependencies.
3022 * configure.in: Check for <gnu/libc-version.h>.
3023 * configure: Regenerate.
3024 * config.in: Regenerate.
3025 * linux-nat.h: Include "target.h". Add waitstatus field to
3026 struct lwp_info.
3027 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3028 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3029 to.
3030 (lin_lwp_handle_extended): New function. Handle clone events.
3031 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3032 thread exit events.
3033 (child_wait): Handle clone events.
3034 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3035 * linux-nat.c (linux_enable_event_reporting): Turn on
3036 PTRACE_O_TRACECLONE.
3037 (linux_handle_extended_wait): Handle clone events.
3038 * thread-db.c: Include <gnu/libc-version.h>.
3039 (struct private_thread_info): Add dying flag.
3040 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3041 higher.
3042 (attach_thread): Update comments. Handle dying threads.
3043 (detach_thread): Set the dying flag.
3044 (check_event): Always call attach_thread.
3045
8d5f9dcb
DJ
30462004-03-29 Daniel Jacobowitz <drow@mvista.com>
3047
3048 * mips-tdep.c (mips_pdr_data): New.
3049 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3050 (_initialize_mips_tdep): Initialize mips_pdr_data.
3051
66337bb1
CV
30522004-03-29 Corinna Vinschen <vinschen@redhat.com>
3053
3054 * minsyms.c (install_minimal_symbols): Move dropping leading
3055 char from linkage name from here...
3056 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3057 test for "__gnu_compiled*" symbols.
3058
e802b915
JB
30592004-03-28 Jim Blandy <jimb@redhat.com>
3060
3061 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3062 registers to temp register r0 and byte stores as prologue
3063 instructions.
3064
72b56458
AC
30652004-03-28 Andrew Cagney <cagney@redhat.com>
3066
3067 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3068 arm*-*-*.
3069
0bfbda3b
SC
30702004-03-28 Stephane Carrez <stcarrez@nerim.fr>
3071
3072 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3073 and switch the layout to force a display of register window.
3074
5a7225ed
JB
30752004-02-26 J. Brobecker <brobecker@gnat.com>
3076
3077 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3078 of the INTEGER class.
3079
81a07a45
JB
30802004-03-26 Jim Blandy <jimb@redhat.com>
3081
3082 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3083 bytes long on PPC GNU/Linux.
3084
8c691c7a
DC
30852004-03-26 David Carlton <carlton@kealia.com>
3086
3087 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3088
103a0089
AC
30892004-03-25 Andrew Cagney <cagney@redhat.com>
3090
3091 * PROBLEMS: Add general section titles, remove references to
3092 specific releases.
3093
7a5ea0d4
DJ
30942004-03-25 Daniel Jacobowitz <drow@mvista.com>
3095
3096 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3097 INT_REGISTER_SIZE.
3098 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3099 FP_REGISTER_VIRTUAL_SIZE.
3100 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3101 of DEPRECATED_REGISTER_RAW_SIZE.
3102 (arm_register_type): Add gdbarch argument.
3103 (arm_register_raw_size, arm_register_virtual_size): Delete.
3104 (arm_register_byte, arm_extract_return_value)
3105 (arm_store_return_value, arm_get_longjmp_target): Update references
3106 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3107 (arm_gdbarch_init): Likewise. Don't set
3108 deprecated_register_raw_size, deprecated_register_virtual_size,
3109 deprecated_max_register_raw_size,
3110 deprecated_max_register_virtual_size, or
3111 deprecated_max_register_virtual_type. Do set register_type.
3112 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3113 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3114 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3115 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3116 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3117 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3118 INT_REGISTER_SIZE.
3119 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3120 (remote_rdp_store_register): Likewise.
3121
5792a79b
DJ
31222004-03-24 Daniel Jacobowitz <drow@mvista.com>
3123
3124 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3125 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3126 to after osabi initialization.
3127 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3128 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3129 functions.
3130 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3131 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3132 variables.
3133 (mips_linux_init_abi): Append signal trampoline unwinders.
3134
1196bfda
AC
31352004-03-24 Andrew Cagney <cagney@redhat.com>
3136
3137 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3138 * tramp-frame.c: Include "gdb_assert.h".
3139 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3140 correct sizeof.
3141 (tramp_frame_append): Validate the tramp frame's instructions.
3142 * Makefile.in (tramp-frame.o): Update dependencies.
3143
4be282b4
AC
31442004-03-23 Andrew Cagney <cagney@redhat.com>
3145
3146 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3147
69aec09b
AC
31482004-03-23 Andrew Cagney <cagney@redhat.com>
3149
3150 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3151 Nasser as past testsuite/lib/ (and other) maintainers.
3152
63ed89b4
DJ
31532004-03-23 Daniel Jacobowitz <drow@mvista.com>
3154
3155 * infcmd.c (attach_command): Reread symbols if we already have
3156 an exec file.
3157
f3b36427
AC
31582004-03-23 Andrew Cagney <cagney@redhat.com>
3159
3160 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3161
aa2a3f87
AC
31622004-03-23 Andrew Cagney <cagney@redhat.com>
3163
3164 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3165 * gdbarch.h, gdbarch.c: Re-generate.
3166 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3167 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3168 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 3169 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 3170 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 3171 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
3172 (DEPRECATED_SIGTRAMP_START): Update.
3173 * blockframe.c (find_pc_sect_partial_function): Update.
3174 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3175
00cac895
DJ
31762004-03-23 Daniel Jacobowitz <drow@mvista.com>
3177
3178 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3179 if necessary.
3180
f561f026
AC
31812004-03-23 Andrew Cagney <cagney@redhat.com>
3182
3183 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3184 predicate, deprecate.
3185 * gdbarch.h, gdbarch.c: Re-generate.
3186 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3187 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3188 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3189 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3190 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3191 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3192 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3193 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3194 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3195 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3196 * blockframe.c (find_pc_partial_function): Update.
3197 * breakpoint.c (bpstat_what): Update.
3198 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3199 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3200 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3201 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3202 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3203 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3204 * i386-nto-tdep.c (i386nto_init_abi): Update.
3205 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3206 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3207 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3208 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3209 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3210 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3211 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
3212 * infrun.c (pc_in_sigtramp): Update.
3213 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
3214 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3215 * mips-tdep.c (mips_gdbarch_init): Update.
3216 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
3217 * ppc-linux-tdep.c: Update comment.
3218 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
3219 * shnbsd-tdep.c (shnbsd_init_abi): Update.
3220 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
3221 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
3222 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
3223 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
3224 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
3225 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
3226 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
3227 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 3228
8050c72f
AC
32292004-03-23 Andrew Cagney <cagney@redhat.com>
3230
d2259dd3
AC
3231 * tramp-frame.h, tramp-frame.h: New files.
3232 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
3233 Update rules to include "tramp-frame.h" and "tramp-frame.c".
3234
8050c72f
AC
3235 * Makefile.in: Update all dependencies.
3236
0db9b4b7
AC
32372004-03-23 Andrew Cagney <cagney@redhat.com>
3238
3239 * Makefile.in (trad_frame_h): Add $(frame_h).
3240 * trad-frame.h: Update copyright. Include "frame.h".
3241 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
3242 (trad_frame_set_id, trad_frame_get_id): Declare.
3243 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
3244 * trad-frame.c: Update copyright.
3245 (struct trad_frame_cache): Define.
3246 (trad_frame_cache_zalloc): New function.
3247 (trad_frame_set_id, trad_frame_get_id): New functions.
3248 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 3249
8e645ae7
AC
32502004-03-22 Andrew Cagney <cagney@redhat.com>
3251
3252 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
3253 s390_pltstub_unwind_cache.
3254 (s390_stub_frame_unwind_cache): Rename
3255 s390_pltstub_frame_unwind_cache.
3256 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
3257 (s390_stub_frame_prev_register): Rename
3258 s390_pltstub_frame_prev_register.
3259 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
3260 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
3261
3262 From Ulrich Weigand:
3263 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
3264 pointer calls like PLT calls.
3265
34fcf120
DJ
32662004-03-22 Daniel Jacobowitz <drow@mvista.com>
3267
3268 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
3269 PC rather than the partial function start address. Use the start
3270 address to sanity check the found PDR.
3271
5b917078
DJ
32722004-03-22 Daniel Jacobowitz <drow@mvista.com>
3273
3274 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
3275 linux_handle_extended_wait.
3276
8adf9e78
AC
32772004-03-22 Andrew Cagney <cagney@redhat.com>
3278
c3122434
AC
3279 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3280 function.
3281
8adf9e78
AC
3282 * frame.h (generic_pop_current_frame): Delete declaration.
3283 (deprecate_pop_dummy_frame): Deprecate
3284 generic_pop_dummy_frame.
3285 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3286 (generic_pop_current_frame): Delete function.
3287 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3288 generic_pop_current_frame.
3289 * v850-tdep.c (v850_pop_frame): Update.
3290 * mcore-tdep.c (mcore_pop_frame): Update.
3291 * sh64-tdep.c (sh64_pop_frame): Update.
3292 * h8300-tdep.c (h8300_pop_frame): Update.
3293
90ba813f
AC
32942004-03-22 Andrew Cagney <cagney@redhat.com>
3295
3296 * frame.h (deprecated_pc_in_call_dummy): Rename
3297 generic_pc_in_call_dummy.
3298 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3299 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3300 generic_pc_in_call_dummy.
3301 (pc_in_dummy_frame): Make static.
3302 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3303 * gdbarch.h, gdbarch.c: Re-generate.
3304 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3305 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3306 (legacy_get_prev_frame): Ditto.
3307 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3308 comment.
8718a420 3309
ca4bb888
AC
33102004-03-21 Andrew Cagney <cagney@redhat.com>
3311
244675f9
AC
3312 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3313 declaration and out-of-date comment.
3314 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3315 Delete function.
3316 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3317 deprecated_pc_in_call_dummy.
3318
ca4bb888
AC
3319 * infrun.c (handle_inferior_event): For non legacy frames, use the
3320 frame ID and frame type to identify a signal trampoline. Update
3321 comments.
3322
1777c7b4
NW
33232004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
3324
3325 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3326 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3327
82417da5
AC
33282004-03-21 Andrew Cagney <cagney@redhat.com>
3329
3330 * frame-unwind.h: Update copyright.
3331 (struct frame_data): Add opaque declaration.
3332 (frame_sniffer_ftype): Declare.
3333 (struct frame_unwind): Add "unwind_data" and "sniffer".
3334 (frame_unwind_register_unwinder): Declare.
3335 (frame_unwind_find_by_frame): Add parameter "this_cache".
3336 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3337 (legacy_get_prev_frame, legacy_get_prev_frame)
3338 (get_frame_type): Pass the prologue_cache to
3339 frame_unwind_find_by_frame.
3340 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3341 "unwinder".
3342 (frame_unwind_register_unwinder): New function.
3343 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3344
b2ba182e
PH
33452004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
3346
3347 * bcache.c (print_percentage): Use floating point to avoid
3348 incorrect results when portion*100 overflows.
3349
81332287
KB
33502004-03-19 Kevin Buettner <kevinb@redhat.com>
3351
3352 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3353 (ppc_linux_init_extra_frame_info)
3354 (ppc_linux_frameless_function_invocation)
3355 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
3356 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
3357 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
3358 (rs6000_frame_chain): Delete declarations.
3359 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
3360 (ppc_linux_init_extra_frame_info)
3361 (ppc_linux_frameless_function_invocation)
3362 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
3363 (ppc_linux_init_abi): Remove registration of above deleted functions.
3364 * rs6000-tdep.c (rs6000_init_extra_frame_info)
3365 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
3366 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
3367 (rs6000_pop_frame, rs6000_frameless_function_invocation)
3368 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
3369 (rs6000_gdbarch_init): Remove registration of above deleted functions.
3370 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
3371 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
3372 frame management for all OSABIs.
3373
61a65099
KB
33742004-03-19 Andrew Cagney <cagney@redhat.com>
3375
3376 Committed by Kevin Buettner <kevinb@redhat.com>.
3377
3378 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
3379 Update copyright.
3380 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
3381 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3382 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3383 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
3384 unwinders. #ifdef legacy frame code.
3385 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3386 "frame-base.h".
3387 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
3388 (struct rs6000_frame_cache, rs6000_frame_cache)
3389 (rs6000_frame_this_id, rs6000_frame_prev_register)
3390 (rs6000_frame_sniffer, rs6000_frame_unwind)
3391 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
3392 (rs6000_frame_base): Implement a traditional frame unwinder.
3393 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
3394 frame unwinder.
3395
88f7da05
KB
33962004-03-19 Kevin Buettner <kevinb@redhat.com>
3397
3398 * breakpoint.c (adjust_breakpoint_address): Don't adjust
3399 breakpoint address for watchpoints or the catch eventpoints.
3400 Add new paramter ``bptype''. Adjust all callers.
3401
f826dce1
AC
34022004-03-19 Andrew Cagney <cagney@redhat.com>
3403
33cb8b0f
AC
3404 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
3405
f826dce1
AC
3406 * PROBLEMS: Delete note that ARM does not use frame code, problem
3407 fixed.
3408
43b1ab88
AC
34092004-03-18 Andrew Cagney <cagney@redhat.com>
3410
292ab034
AC
3411 * stack.c (return_command): Delete code wrapped in #ifdef
3412 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
3413
43b1ab88
AC
3414 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
3415
dbfe4626
AC
34162004-03-18 Andrew Cagney <cagney@redhat.com>
3417
3418 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
3419 DEPRECATED_IN_SIGTRAMP.
3420 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3421 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
3422 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3423 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3424 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3425 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3426 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3427 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3428 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
3429 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
3430
0cad6aec
AC
34312004-03-18 Andrew Cagney <cagney@redhat.com>
3432
3433 * frame-base.c: Update copyright. Include "gdb_obstack.h".
3434 (struct frame_base_table_entry): Define.
3435 (struct frame_base_table): Re-implement as a linked list.
3436 (frame_base_init): Re-implement.
3437 (frame_base_table): Delete function.
3438 (append_predicate): Delete function.
3439 (frame_base_append_sniffer): Update.
3440 (frame_base_set_default): Update.
3441 (frame_base_find_by_frame): Update.
3442 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
3443 * Makefile.in (frame-base.o): Update dependencies.
3444
9982c2e7
AC
34452004-03-17 Andrew Cagney <cagney@redhat.com>
3446
3447 * frame.c (legacy_get_prev_frame): Pass correct frame to
3448 frame_unwind_find_by_frame.
3449
8dfe8985
DC
34502004-03-17 David Carlton <carlton@kealia.com>
3451
3452 * NEWS: Mention C++ nested types and namespaces
3453
ed47347a
MC
34542004-03-16 Michael Chastain <mec.gnu@mindspring.com>
3455
3456 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
3457 and "Regressions since gdb 5.3.". Add known regressions since
3458 gdb 6.0.
3459
90aeadfc
DC
34602004-03-16 David Carlton <carlton@kealia.com>
3461
3462 * dwarf2read.c (process_structure_scope): Process children even
3463 when we're a declaration.
3464
73912b9b
AC
34652004-03-16 Andrew Cagney <cagney@redhat.com>
3466
3467 * symtab.h (find_pc_sect_partial_function): Delete declaration.
3468 * blockframe.c (find_pc_partial_function)
3469 (find_pc_sect_partial_function): Merge into a single
3470 find_pc_partial_function.
3471
283accbc
MK
34722004-03-16 Mark Kettenis <kettenis@gnu.org>
3473
3474 * i386bsd-nat.c: s/regno/regnum/g.
3475 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
3476 FP0_REGNUM.
3477 (store_inferior_registers): Likewise.
3478
f5b1afdf
MK
34792004-03-16 Mark Kettenis <kettenis@gnu.org>
3480
3481 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
3482 of i387_fill_fsave.
3483 (store_inferior_registers): Call i387_collect_fsave and
3484 i387_collect_fxsave instead of i387_fill_fsave and
3485 i387_fill_fxsave.
3486
41fe5eb3
AC
34872004-03-15 Andrew Cagney <cagney@redhat.com>
3488
3489 * Makefile.in (frame-unwind.o): Update dependencies.
3490 * frame-unwind.c: Include "gdb_obstack.h".
3491 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
3492 parameter.
3493 (append_predicate): Delete function.
3494 (struct frame_unwind_table_entry): New structure.
3495 (struct frame_unwind_table): Replace "sniffer" with "head" and
3496 "tail".
3497 (frame_unwind_append_sniffer): Update.
3498 (frame_unwind_find_by_frame): Update.
3499 (_initialize_frame_unwind): Registe frame_unwind_init using
3500 gdbarch_data_register_pre_init.
3501
3f63813d
MK
35022004-03-15 Mark Kettenis <kettenis@gnu.org>
3503
3504 * i386bsd-nat.c: Update copyright year.
3505 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
3506 define unconditionally.
3507
3248c325 35082004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
3509
3510 * i387-tdep.h (i387_collect_fsave): New prototype.
3511 * i387-tdep.c (i387_collect_fsave): New function containing most
3512 of the code from i387_fill_fsave.
3248c325 3513 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 3514
871fbe6a
MK
35152004-03-15 Mark Kettenis <kettenis@gnu.org>
3516
3517 * i386-linux-tdep.c: Update copyright year.
3518 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
3519 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
3520 svr4_ilp32_link_map_offsets instead of
3521 i386_linux_svr4_fetch_link_map_offsets.
3522
8176b9b8
DC
35232004-03-15 David Carlton <carlton@kealia.com>
3524
3525 Fix for PR c++/1553:
3526 * dwarf2read.c (read_structure_type): Determine type name by
3527 calling determine_class_name.
3528 (determine_class_name): New.
3529 (determine_prefix): Look at TYPE_TAG_NAME and call
3530 determine_class_name when appropriate.
3531 (determine_prefix_aux, class_name): Delete.
9d58e29d 3532 (read_namespace): Set die->type.
8176b9b8 3533
fe8bf7d7
KB
35342004-03-15 Kevin Buettner <kevinb@redhat.com>
3535
3536 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
3537 unused macro definition. The definition in target.h (or perhaps
3538 elsewhere) takes precedence.
3539
ed6edd9b
AC
35402004-03-15 Andrew Cagney <cagney@redhat.com>
3541
f9be684a
AC
3542 * ppc-tdep.h: Update copyright.
3543 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
3544 function signatures to match "regsets.h".
3545 * ppc-linux-tdep.c: Include "regset.h".
3546 (ELF_GREGSET_SIZE): Delete.
3547 (right_supply_register): New function.
3548 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
3549 using right_supply_register.
3550 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
3551 functions.
3552 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
3553 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
3554 (_initialize_ppc_linux_tdep): Do not register
3555 ppc_linux_regset_core_fns.
3556 (ppc_linux_regset_from_core_section): Replace
3557 fetch_core_registers.
3558 (ppc_linux_regset_core_fns): Delete.
3559 * ppc-linux-nat.c: (right_fill_reg): New function.
3560 (supply_gregset): Update call to ppc_linux_supply_gregset.
3561 (fill_gregset): Clear the register set, use right_fill_reg.
3562 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
3563 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
3564
ed6edd9b
AC
3565 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
3566 unsigned.
3567
030f20e1
AC
35682004-03-15 Andrew Cagney <cagney@redhat.com>
3569
3570 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
3571 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
3572 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
3573 and register_gdbarch_data.
3574 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
3575 (struct gdbarch_data): Replace "init" by "pre_init" and
3576 "post_init".
3577 * gdbarch.h, gdbarch.c: Re-generate.
3578 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
3579 with"obstack", use OBSTACK_ZALLOC.
3580 (dwarf2_frame_ops): Delete.
3581 (dwarf2_frame_set_init_reg): Use gdbarch_data.
3582 (dwarf2_frame_init_reg): Use gdbarch_data.
3583 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 3584 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
3585 (_initialize_svr4_solib): Update.
3586 * user-regs.c (_initialize_user_regs): Update.
3587 * reggroups.c (_initialize_reggroup): Update.
3588 * regcache.c (_initialize_regcache): Update.
3589 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3590 * libunwind-frame.c (_initialize_libunwind_frame): Update.
3591 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3592 * frame-unwind.c (_initialize_frame_unwind): Update.
3593 * frame-base.c (_initialize_frame_base): Update.
3594 * user-regs.c (user_reg_add): Update.
3595 * reggroups.c (reggroup_add): Update.
3596 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
3597 * libunwind-frame.c (libunwind_frame_set_descr): Update.
3598 * frame-unwind.c (frame_unwind_append_sniffer): Update.
3599 * frame-base.c (frame_base_table): Update.
3600 * remote.c (_initialize_remote): Update.
3601 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 3602
3111a3fc
AC
36032004-03-15 Andrew Cagney <cagney@redhat.com>
3604
3605 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
3606
5ecb7103
KB
36072004-03-15 Kevin Buettner <kevinb@redhat.com>
3608
3609 * Makefile.in (frv-linux-tdep.o): Add dependencies.
3610 * frv-linux-tdep.c: New file.
3611 * frv-tdep.c (struct gdbarch_tdep): Add new field
3612 ``sigcontext_reg_addr''.
3613 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
3614 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3615 (frv_sigramp_frame_sniffer): New functions.
3616 (frv_sigtramp_frame_unwind): New static global.
3617 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
3618 sniffers.
3619 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
3620 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
3621
1ccda5e9
KB
36222004-03-15 Kevin Buettner <kevinb@redhat.com>
3623
3624 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
3625 but not via a call to error(), when unable to read memory.
3626
b375a0a5
KB
36272004-03-15 Kevin Buettner <kevinb@redhat.com>
3628
3629 * frv-tdep.c (frv_call_dummy_words): Delete.
3630 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
3631
4fdf6121
AC
36322004-03-15 Andrew Cagney <cagney@redhat.com>
3633
3634 * infrun.c (handle_step_into_function, step_over_function): Only
3635 update and use STEP_FRAME_ID when the system is using legacy
3636 frames. Update comments.
3637
34021503
MK
36382004-03-14 Mark Kettenis <kettenis@gnu.org>
3639
187e21d1
MK
3640 * amd64-linux-tdep.h: Remove file.
3641 * amd64-linux-tdep.c: Don't include "inferior.h" and
3642 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
3643 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
3644 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
3645 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
3646 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
3647 macros.
3648 (user_to_gdb_regmap): Remove variable.
3649 (amd64_linux_gregset_reg_offset): New variable.
3650 (amd64_core_fns): Remove variable.
3651 (fetch_core_registers): Remove function.
3652 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
3653 functions.
3654 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
3655 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
3656 * Makefile.in (amd64_linux_tdep_h): Remove.
3657 (amd64-linux-nat.o): Update dependencies.
3658 (amd64-linux-tdep.o): Update dependencies.
3659
99679982
MK
3660 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3661 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
3662 functions.
3663 (fetch_inferior_registers, store_inferior_registers): Rewrite.
3664
34021503
MK
3665 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
3666 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
3667
134d01f1
DJ
36682004-03-14 Daniel Jacobowitz <drow@mvista.com>
3669
3670 * dwarf2read.c (read_structure_type): Rename from
8718a420 3671 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
3672 Return immediately if die->type is set. Call read_type_die before
3673 dwarf2_add_member_fn.
3674 (process_structure_scope): New function.
3675 (read_enumeration_type, process_enumeration_scope): New functions,
3676 broken out from read_enumeration. Don't create the enumeration
3677 type if it has already been created.
3678 (read_enumeration): Removed.
3679 (process_die): Call read_structure_type, process_structure_scope,
3680 read_enumeration_type, and process_enumeration_scope. Just call
3681 new_symbol for base and subrange types. Add a comment about other
3682 type dies.
3683 (read_type_die): Call read_enumeration_type.
3684 (add_partial_structure, new_symbol): Update comments.
3685
65760afb
SC
36862004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3687
3688 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
3689
10f59415
SC
36902004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3691
3692 * tui/tui-win.h (tui_get_cmd_list): Declare.
3693 * tui/tui-win.c (tui_command): New function.
3694 (tui_get_cmd_list): New function.
3695 (_initialize_tui_win): Moved initialization of tui command in
3696 tui_get_cmd_list.
3697
3698 * tui/tui-data.c (init_content_element): Setup new data members.
3699 (init_win_info): Likewise.
3700 (free_content_elements): Free it.
3701 * tui/tui-data.h (struct tui_data_element): Store the register
3702 content to print.
3703 (struct tui_data_info): Keep the current register group.
3704
3705 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
3706
3707 * tui/tui-regs.h (tui_show_registers): Update prototype.
3708 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
3709 (tui_resize_all): No need to calculate anything for register window.
3710 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
3711 (tui_set_register_element, tui_set_general_regs_content): Remove.
3712 (tui_set_special_regs_content): Remove.
3713 (tui_set_general_and_special_regs_content): Remove.
3714 (tui_set_float_regs_content): Remove.
3715 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
3716 (tui_set_regs_content): Remove.
3717 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
3718 (tui_v_show_registers_command_support): Remove.
3719 (tui_show_registers): Use a reggroup to specify the registers to show.
3720 (tui_show_register_group): New function.
3721 (tui_display_registers_from): Compute the layout of register window
3722 and refresh with new API; be sure to delete old register windows.
3723 (tui_check_register_values): Update to use tui_get_register and
3724 tui_display_data.
3725 (tui_display_register): Just refresh the register window part.
3726 (tui_register_format): Format registers and save in tui_data_element.
3727 (tui_get_register): New to combine tui_reg_value_has_changed and
3728 tui_get_register_raw_value; fix to use the new gdb API.
3729 (tui_show_float_command): Renamed tui_reg_float_command.
3730 (tui_show_general_command): Renamed tui_reg_general_command.
3731 (tui_show_special_command): Renamed tui_reg_system_command.
3732 (_initialize_tui_regs): Remove unused commands.
3733
c3364ea4
MK
37342004-03-13 Mark Kettenis <kettenis@gnu.org>
3735
27d1e716
MK
3736 * NEWS (New native configurations): Mention OpenBSD/amd64.
3737
c3364ea4
MK
3738 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
3739 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
3740 Remove defines.
3741 * config/i386/nm-fbsd64.h: Likewise.
3742 * config/i386/nm-obsd.h: Likewise.
3743 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
3744 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
3745
b2d6d697
KB
37462004-03-12 Kevin Buettner <kevinb@redhat.com>
3747
3748 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
3749 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
3750 New constants.
3751
76e43199
KB
3752 From Richard Sandiford <rsandifo@redhat.com>:
3753 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
3754
34ce532e
KB
37552004-03-12 Kevin Buettner <kevinb@redhat.com>
3756
3757 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
3758 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
3759 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
3760 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
3761 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
3762 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
3763 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
3764 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
3765 definitions from frv-tdep.c to frv-tdep.h.
3766
c4d10515
KB
37672004-03-12 Kevin Buettner <kevinb@redhat.com>
3768
3769 Add shared library support for FR-V FDPIC ABI:
3770 * Makefile.in (solib-frv.o): Add dependencies.
3771 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
3772 New functions.
3773 (frv_push_dummy_call): Add support for FDPIC ABI.
3774 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
3775 for FDPIC ABI.
3776 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
3777 (frv_fdpic_find_canonical_descriptor): Declare.
3778 * solib-frv.c: New file.
3779 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
3780 * config/frv/tm-frv.h (solib.h): Include.
3781
ed1bd989
KB
37822004-03-12 Kevin Buettner <kevinb@redhat.com>
3783
3784 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
3785 (frv-tdep.o): Update dependencies.
3786 * frv-tdep.h: New file.
3787 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
3788 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
3789 constants.
3790 (struct gdbarch_tdep): Add new member ``frv_abi''.
3791 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
3792 functions.
3793 (new_variant): Set ``frv_abi'' field.
3794 (gdb_arch_init): Detect FDPIC executables.
3795
82b38f72
MK
37962004-03-12 Mark Kettenis <kettenis@gnu.org>
3797
3798 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
3799 wrapper.
3800
db1ea9ba
AC
38012004-03-11 Andrew Cagney <cagney@redhat.com>
3802
3803 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
3804
f8766ec1
KB
38052004-03-11 Kevin Buettner <kevinb@redhat.com>
3806
3807 * solist.h (master_so_list): New function.
3808 * solib.c (master_so_list): Likewise.
3809 * solib-svr4.c (enable_break): Iterate over so_list entries
3810 obtained from master list instead of entries obtained directly
3811 via svr4_current_sos().
3812
523f6a27
BE
38132004-03-10 Ben Elliston <bje@gnu.org>
3814
3815 * MAINTAINERS: Update my mail address.
3816
37814c18
KI
38172004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
3818
3819 * remote-m32r-sdi.c: Support hardware watchpoint.
3820
8b9740d8
DJ
38212004-03-09 Daniel Jacobowitz <drow@mvista.com>
3822
3823 * user-regs.c: Update copyright years.
3824 (struct user_regs): Rename to gdb_user_regs.
3825 (append_user_reg, builtin_user_regs, user_regs_init)
3826 (user_reg_add, user_reg_map_name_to_regnum)
3827 (usernum_to_user_reg): Update.
3828
4bb7a0a7
DJ
38292004-03-09 Daniel Jacobowitz <drow@mvista.com>
3830
3831 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
3832 (skip_children): New functions.
3833 (locate_pdi_sibling): Call skip_children.
3834
44e1a9eb
DJ
38352004-03-09 Daniel Jacobowitz <drow@mvista.com>
3836
3837 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
3838 * gdbtypes.c (check_typedef): Update comments.
3839
f3dd6933
DJ
38402004-03-09 Daniel Jacobowitz <drow@mvista.com>
3841
3842 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
3843 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
3844 pointer. Update comment about comp_unit_head.
3845 (struct abbrev_info): Shorten two int flags.
3846 (dwarf_alloc_abbrev): Take a CU argument.
3847 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
3848 each time through the loop. Update cleanup argument.
3849 (psymtab_to_symtab_1): Update cleanup call.
3850 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
3851 abbrev_obstack.
3852 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
3853 Just call obstack_free and clear the pointer.
3854
b40c7d58
DJ
38552004-03-09 Daniel Jacobowitz <drow@mvista.com>
3856
3857 * infrun.c (handle_inferior_event): Remove short-circuit code for
3858 events in a different thread.
3859
333dabeb
DJ
38602004-03-09 Daniel Jacobowitz <drow@mvista.com>
3861
3862 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
3863 print the whole transfer.
3864 (initialize_targets): Update description of "set debug target".
3865
aa17d93e
DJ
38662004-03-09 Daniel Jacobowitz <drow@mvista.com>
3867
3868 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
3869
0b71f08f
NW
38702004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
3871
3872 * MAINTAINERS (write after approval): Add myself.
3873
3930f270
CV
38742004-03-08 Corinna Vinschen <vinschen@redhat.com>
3875
3876 * sh-tdep.c (sh_print_registers_info): Use for loop.
3877 Don't skip multiple registers when a float register is encountered.
3878
a2b4a96c
CV
38792004-03-08 Corinna Vinschen <vinschen@redhat.com>
3880
3881 Fix PR tdep/1291.
3882 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
3883 to official SH documentation.
3884
f15a4bc0
AC
38852004-03-07 Andrew Cagney <cagney@redhat.com>
3886
3887 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
3888 unused function.
3889
9498281f
DJ
38902004-03-07 Daniel Jacobowitz <drow@mvista.com>
3891
3892 * arm-tdep.c (thumb_get_next_pc): Handle BX.
3893 (arm_get_next_pc): Handle BX and BLX.
3894
449e1137
AC
38952004-03-07 Andrew Cagney <cagney@redhat.com>
3896
eded0a31
AC
3897 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
3898 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
3899 HPPA_SP_REGNUM.
3900 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
3901 (hppa_target_read_fp): Delete.
3902 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
3903 register_virtual_size, max_register_raw_size,
3904 max_register_virtual_size, register_byte, register_size,
3905 target_read_fp, fp_regnum, and register_bytes. Set register_type
3906 instead of register_virtual_type.
3907 (hppa32_register_type, hppa64_register_type): Replace
3908 hppa32_register_virtual_type and hppa64_register_virtual_type.
3909 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
3910 (HPPA_FP_REGNUM): Define.
3911
f5f907e2
AC
3912 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
3913
69b4bbe4
AC
3914 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
3915 (pa_do_registers_info): Delete.
3916 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 3917 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 3918 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 3919
78161e48
AC
3920 * infcall.c (legacy_push_dummy_code): Delete #ifdef
3921 GDB_TARGET_IS_HPPA code.
3922 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 3923 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
3924 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
3925 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
3926 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
3927 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
3928 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 3929 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
3930 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
3931 (hppa_frameless_function_invocation, hppa64_store_return_value)
3932 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 3933 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 3934 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 3935 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
3936 (find_proc_framesize, deposit_21, restore_pc_queue)
3937 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 3938 (rp_saved, pc_in_linker_stub): Delete.
78161e48 3939
782eae8b
AC
3940 Unconditionally enable 64-bit frame and ABI code.
3941 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
3942 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
3943 push_dummy_frame, fix_call_dummy, push_arguments,
3944 call_dummy_location, extract_return_value, use_struct_convention,
3945 store_return_value, store_struct_return, saved_pc_after_call,
3946 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
3947 frame_chain, frame_chain_valid, frameless_function_invocation,
3948 frame_saved_pc, and pop_frame.
78161e48 3949
449e1137
AC
3950 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
3951 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
3952 (hppa_gdbarch_init): Do not set PC_REGNUM.
3953
12507572
MK
39542004-03-06 Mark Kettenis <kettenis@gnu.org>
3955
3956 * config/alpha/tm-fbsd.h: Remove file.
3957 * config/alpha/fbsd.mt: Tweak comment.
3958 (TM_FILE): Set to tm-alpha.h.
3959
c107cc1b
AC
39602004-03-05 Andrew Cagney <cagney@redhat.com>
3961
3962 * infrun.c (step_over_function): When non-legacy code, and no
3963 step_frame_id, use the unwinder to get the caller's frame ID.
3964
f2e7c15d
MK
39652004-03-05 Mark Kettenis <kettenis@gnu.org>
3966
8b0c3633
MK
3967 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
3968 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
3969 bfd_arch_unknown. Adjust comment.
3970
f2e7c15d
MK
3971 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
3972 * i386obsd-tdep.c: Correct spelling in comment.
3973 * i386nbsd-tdep.c: Correct spelling in comment.
3974 * sparc-tdep.c: Correct spelling in comments.
3975
1198ecbe
DC
39762004-03-05 David Carlton <carlton@kealia.com>
3977
3978 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
3979 bug.
3980
9eb42ed1
MK
39812004-03-05 Mark Kettenis <kettenis@gnu.org>
3982
3983 * sparc-tdep.c: Fix typo in comment.
3984
52b5e991
JB
39852004-03-04 J. Brobecker <brobecker@gnat.com>
3986
3987 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
3988
d8151005
DJ
39892004-03-04 Daniel Jacobowitz <drow@mvista.com>
3990
3991 * dwarf2read.c: Add comment describing memory lifetimes.
3992 (struct dwarf2_pinfo): Update comment.
3993 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
3994 (read_enumeration, new_symbol): Don't use obsavestring.
3995
cbeae229
MK
39962004-03-04 Mark Kettenis <kettenis@gnu.org>
3997
722d18c2
MK
3998 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
3999 instead of amd64_fill_fxsave.
4000 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4001 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4002
cbeae229
MK
4003 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4004 Reorganize code a bit.
4005
b4206d25
OF
40062004-03-04 Orjan Friberg <orjanf@axis.com>
4007
4008 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
4009 when the frame pointer is pushed. Don't set the frame pointer's
4010 address on the stack unless it's actually located there.
b4206d25
OF
4011 Set the SRP's address on the stack correctly when the PC is still in
4012 the prologue.
4013 (cris_return_value): New function.
4014 (cris_gdbarch_init): Clear deprecated store_return_value,
4015 extract_return_value.
4016
49b0b195
JB
40172004-03-02 Jim Blandy <jimb@redhat.com>
4018
4019 * stabsread.c (reg_value_complaint): The maximum register number
4020 is one less than the number of registers.
4021
e9ff708b
AC
40222004-03-02 Andrew Cagney <cagney@redhat.com>
4023
4024 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4025 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4026 trailing comma and redundant assignment of I386_ST0_REGNUM.
4027 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4028 32-bit segment registers.
4029
d4715e41
AC
40302004-03-01 Andrew Cagney <cagney@redhat.com>
4031
4032 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4033 use frame_relative_level and get_next_frame.
4034
3ce2bf18
AC
40352004-02-29 Andrew Cagney <cagney@redhat.com>
4036
4037 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4038 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4039 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4040 Delete macro.
4041
2da6aac3
DJ
40422004-02-29 Daniel Jacobowitz <drow@mvista.com>
4043
4044 * inflow.c (terminal_inferior): Don't give up the terminal if we
4045 previously couldn't get the inferior's terminal state.
4046
6ba34a8d
DJ
40472004-02-29 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4050 PC_REGNUM.
4051
faae5abe
AC
40522004-02-28 Andrew Cagney <cagney@redhat.com>
4053
4054 * NEWS: Refer to GDB 6.1.
4055 * README: Refer to GDB 6.1.
4056 * PROBLEMS: Refer to GDB 6.1.
4057
2227a3c5
DJ
40582004-02-28 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * thread-db.c (disable_thread_signals): Remove unused function.
4061
80571bff
MK
40622004-02-28 Mark Kettenis <kettenis@gnu.org>
4063
041bd74b
MK
4064 * amd64-nat.c: Include "gdb_string.h".
4065 (amd64_collect_native_gregset): Zero-extend the 32-bit
4066 general-purpose registers and %eip.
4067
3c017e40
MK
4068 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4069 * amd64-tdep.c (amd64_collect_fxsave): New function.
4070 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4071
80571bff
MK
4072 * i387-tdep.h: Update copyright year.
4073 (i387_collect_fxsave): New prototype.
4074 * i387-tdep.c: Update copyright year.
4075 (i387_collect_fxsave): New function containing most of the code
4076 from i387_fill_fxsave.
4077 (i387_fill_fxsave): Call i387_collect_fxsave.
4078
50d71875
AC
40792004-02-28 Andrew Cagney <cagney@redhat.com>
4080
4081 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4082 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4083
4a28816e
MK
40842004-02-28 Mark Kettenis <kettenis@gnu.org>
4085
4086 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4087
dbda9972
AC
40882004-02-28 Andrew Cagney <cagney@redhat.com>
4089
4090 * utils.c: Use "", instead of <>, to include readline.
4091 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4092 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4093 * source.c, solib.c, exec.c, event-top.c: Ditto.
4094 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4095 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4096 * Makefile.in: Update all dependencies.
4097 (readline_tilde_h, readline_history_h): Define.
4098 (readline_headers): Delete.
4099
83277a99
MK
41002004-02-28 Mark Kettenis <kettenis@gnu.org>
4101
91ae4303
MK
4102 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4103 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4104 "config/i386/tm-lx64.h".
4105
83277a99
MK
4106 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4107 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4108 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4109
6e1d7d6c
AC
41102004-02-28 Andrew Cagney <cagney@redhat.com>
4111
ecc9ac84
AC
4112 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4113
6e1d7d6c
AC
4114 * breakpoint.c (_initialize_breakpoint): Use
4115 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4116 Add help to show command.
4117
9671aeef
MK
41182004-02-28 Mark Kettenis <kettenis@gnu.org>
4119
7fa2737c
MK
4120 * i386-nat.c: Reformat to be closer to coding standards.
4121 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4122 `retval'. Make variables `align' and `size' local to while-loop.
4123 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4124 (_initialize_i386_nat): New prototype.
4125
9671aeef
MK
4126 * tui/tui.c: Include <readline/readline.h> instead of
4127 "readline/readline.h". Include it after <term.h> and
4128 "gdb_curses.h".
4129
fca7aa43
AC
41302004-02-27 Andrew Cagney <cagney@redhat.com>
4131
412275d5
AC
4132 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4133 the new frame unwind code.
4134 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4135 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4136 PCOQ_HEAD_REGNUM.
4137
fca7aa43
AC
4138 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4139 "return_value" and "push_dummy_call".
4140 (hppa32_use_struct_convention): Delete unused function.
4141 (hppa32_store_return_value): Delete unused function.
4142 (hppa32_extract_return_value): Delete unused function.
4143 (hppa32_stack_align): Delete function.
4144
e6a8a7d2
EZ
41452004-02-27 Eli Zaretskii <eliz@elta.co.il>
4146
4147 * coffread.c (enter_linenos): Don't let rawptr reference memory
4148 outside linetab[]'s limits.
4149
1797a8f6
AC
41502004-02-27 Andrew Cagney <cagney@redhat.com>
4151
4152 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4153 inferior stack space - the stack needs to grow upwards.
4154 (hppa32_frame_align): New function.
4155 (hppa64_frame_align): Replace hppa_frame_align.
4156 (hppa_gdbarch_init): Update.
4157
2e4b5889
OF
41582004-02-26 Orjan Friberg <orjanf@axis.com>
4159
4160 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4161 (dwarf2-frame.h): Include.
4162 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4163 Remove static variables related to ABI setting.
4164 (struct gdbarch_tdep): Remove cris_abi member.
4165 (struct frame_extra_info): Remove.
4166 (cris_unwind_cache, stack_item): New structs.
4167 (cris_frame_unwind, cris_frame_base): New variables.
4168 (push_stack_item, pop_stack_item)
4169 (cris_frame_unwind_cache, cris_frame_this_id)
4170 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4171 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4172 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4173 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4174 (cris_reg_struct_has_addr): New functions.
4175 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 4176 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
4177 (cris_store_struct_return, cris_frameless_function_invocation)
4178 (cris_pop_frame, cris_skip_prologue_main)
4179 (cris_abi_original_store_return_value)
4180 (cris_abi_v2_store_return_value)
4181 (cris_abi_original_extract_return_value)
4182 (cris_abi_v2_extract_return_value)
4183 (cris_abi_original_reg_struct_has_addr)
4184 (cris_abi_v2_reg_struct_has_addr)
4185 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4186 (cris_push_return_address, cris_abi_update): Remove.
4187 (_initialize_cris_tdep): Remove ABI command.
4188 (cris_dump_tdep): Ditto.
8718a420 4189 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
4190 Set store_return_value, extract_return_value, push_dummy_code,
4191 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4192 frame_unwind_append_sniffer, frame_base_set_default.
4193 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4194 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4195 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 4196 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
4197 init_extra_frame_info, frameless_function_invocation, frame_chain,
4198 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4199 dummy_write_sp.
8718a420 4200
6b9acc27
JJ
42012004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4202
4203 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4204 * valprint.c (print_hex_chars): Change from static to external.
4205 (print_char_chars): New function.
4206 * printcmd.c (print_scalar_formatted): For integer and enum types
4207 that are longer than LONGEST, perform processing via appropriate
4208 print_*_chars routines.
4209
a431654a
AC
42102004-02-26 Andrew Cagney <cagney@redhat.com>
4211
4212 * Makefile.in: Update dependencies.
4213 Changes from Ulrich Weigand,
4214 * s390-tdep.c: Include "dwarf2-frame.h".
4215 (s390_dwarf2_frame_init_reg): New function.
4216 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
4217 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
4218
fa8d40ab
JJ
42192004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4220
4221 * breakpoint.c (pending_break_support): New setting variable.
4222 (break_command_1): Account for pending_break_support setting
4223 when creating pending breakpoints.
4224 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
4225 (_initialize_breakpoint): Add "set breakpoint pending" and
4226 "show breakpoint pending" commands.
4227
0dcd613f
AC
42282004-02-26 Andrew Cagney <cagney@redhat.com>
4229
4230 Fix PR i18n/1570.
4231 * charset.c (backslashable, backslashed, represented): Remove 'e'
4232 from list of escaped characters, not part of ISO-C.
4233
479272a3
JB
42342004-02-25 J. Brobecker <brobecker@gnat.com>
4235
4236 From Peter Schauer <schauer@pdf.de>:
4237 * tui/tui.c: Move system header includes after local includes.
4238 Fixes a build failure on solaris systems.
4239
7613d933
JB
42402004-02-25 J. Brobecker <brobecker@gnat.com>
4241
4242 * configure.in: Refine the previous change.
4243 * configure: Regenerate.
4244
9c1488cb
MK
42452004-02-25 Mark Kettenis <kettenis@gnu.org>
4246
4247 * amd64-tdep.h: Renamed from x86-64-tdep.h.
4248 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
4249 "amd64-tdep.h" instead of "x86-64-tdep.h".
4250 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4251 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
4252 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
4253 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4254 and "x86-64-tdep.c".
4255 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
4256 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4257 and "x86-64-tdep.c".
4258 * amd64bsd-nat.c: Update copyright year.
4259 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4260 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
4261 "x86-64-tdep.h".
4262 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
4263 "x86-64-tdep.h".
4264 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
4265 "x86-64-tdep.h".
4266 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
4267 "x86-64-tdep.h".
4268 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
4269 "x86-64-tdep.h".
4270 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
4271 "x86-64-tdep.h".
8718a420 4272 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
4273 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
4274 * Makefile.in (amd64_linux_tdep_h): Renamed from
4275 x86_64_linux_tdep_h.
4276 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4277 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4278 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4279 (amd64obsd-tdep.o): Update dependencies.
4280 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4281 dependencies.
4282 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4283 dependencies.
4284 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4285 amd64-linux-nat.c amd64-linux-tdep.c.
4286 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4287 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4288 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4289 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4290 amd64-tdep.o and amd64-linux-tdep.o.
4291 (TM_FILE): Set to tm-linux64.h.
4292 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4293 (NAT_FILE): Set to nm-linux64.h.
4294 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4295 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4296 amd64-tdep.o.
4297 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4298 amd64-tdep.o.
4299 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4300 amd64-tdep.o.
4301
4b8dad4a
RM
43022004-02-25 Roland McGrath <roland@redhat.com>
4303
4304 * remote.c (remote_protocol_qPart_auxv): New variable.
4305 (init_all_packet_configs): Initialize it.
4306 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4307 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4308 (show_remote_cmd): Call it.
4309 (_initialize_remote): Initialize commands.
4310 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4311 service TARGET_OBJECT_AUXV requests.
4312
66745969
JB
43132004-02-25 J. Brobecker <brobecker@gnat.com>
4314
4315 * configure.in: Make sure that the wborder function is available.
4316 Otherwise, search for it in the cur_colr library.
4317 * configure: Regenerate.
4318
79508e1e
AC
43192004-02-25 Andrew Cagney <cagney@redhat.com>
4320
4321 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4322
571ee600
MK
43232004-02-25 Mark Kettenis <kettenis@gnu.org>
4324
4325 * config/i386/tm-x86-64linux.h: Tweak comments.
4326
2b1b322f 43272004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
4328
4329 * MAINTAINERS: Add self to write-after-approval list.
4330
4d2acc65
AC
43312004-02-25 Andrew Cagney <cagney@redhat.com>
4332
4b8dad4a 4333 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
4334 * cli/cli-script.c (execute_control_command): Unconditionally
4335 install a cleanup. Default "ret" to "invalid_control". Use
4336 "break" instead of "return" to escape from the switch.
4337
4cfcaf21
JB
43382004-02-24 J. Brobecker <brobecker@gnat.com>
4339
4340 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4341 with the lines macro defined in term.h on AiX.
4342 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4343 a collision with the label_width macro defined in term.h on AiX.
4344
54a5c8d8
KB
43452004-02-23 David Mosberger <davidm@hpl.hp.com>
4346
4347 Committed by Kevin Buettner <kevinb@redhat.com>.
4348
4349 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4350 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4351 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4352 instead of ia64_write_pc().
4353 * ia64-linux-tdep.c (regcache.h): Include.
4354 (ia64_linux_write_pc): New function.
4b8dad4a 4355
8a1dac83
RM
43562004-02-23 Roland McGrath <roland@redhat.com>
4357
4358 * auxv.c (info_auxv_command): Fix typos in error messages.
4359
90f90721
MK
43602004-02-23 Mark Kettenis <kettenis@gnu.org>
4361
8a1dac83 4362 * x86-64-tdep.h: Tweak comment.
90f90721
MK
4363 (enum amd64_regnum): New.
4364 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
4365 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
4366 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
4367 (X86_64_XMM1_REGNUM): Removed.
4368 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
4369 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
4370 prototypes for renamed functions.
4371 * x86-64-tdep.c: Fix typo.
4372 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
4373 register numbers.
4374 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
4375 Use constants from `enum amd64_regnum' for register numbers.
4376 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
4377 (amd64_analyze_prologue, amd64_frame_cache,
4378 amd64_sigtramp_frame_cache): Use constants from `enum
4379 amd64_regnum' for register numbers.
4380 (amd64_supply_fpregset): Adjust for renamed functions.
4381 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
4382 `enum amd64_regnum' for register numbers.
4383 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
4384 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
4385 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
4386 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
4387 (amd64_linux_fill_gregset): Adjust for renamed macros.
4388 (fetch_core_registers): Adjust for renamed functions.
4389 (amd64_linux_init_abi): Adjust for renamed functions.
4390 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
4391 renamed functions.
4392 * amd64-nat.c: Adjust for renamed macros.
4393 * amd64bsd-nat.c (fetch_inferior_registers)
4394 (store_inferior_registers): Use constants from `enum amd64_regnum'
4395 for register numbers. Adjust for renamed variables.
4396 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
4397 renamed variables.
4398 (_initialize_amd64fbsd_nat): Use constants from `enum
4399 amd64_regnum' for register numbers.
4400 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
4401 `enum amd64_regnum' for register numbers.
4402 (amd64fbsd_init_abi): Adjust for renamed functions.
4403 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
4404 `enum amd64_regnum' for register numbers.
4405 (amd64nbsd_init_abi): Adjust for renamed functions.
4406 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
4407 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
4408 `enum amd64_regnum' for register numbers.
4409 (amd64obsd_init_abi): Adjust for renamed functions.
4410 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
4411
d5479188
JJ
44122004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4413
4414 * breakpoint.c (print_one_breakpoint): Do not output spaces
4415 after printing <PENDING> for a pending breakpoint.
4416
81cb7cc9
JJ
44172004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4418
4419 * printcmd.c (print_scalar_formatted): Initialize val_long
4420 to remove compiler warning message.
4421
cbdeadca
JJ
44222004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4423
4424 * defs.h (nquery, yquery): New prototypes.
4425 * breakpoint.c (break_command_1): Use new nquery interface.
4426 * utils.c (defaulted_query, nquery, yquery): New functions.
4427
da6bab63
AC
44282004-02-23 Andrew Cagney <cagney@redhat.com>
4429
2f690297
AC
4430 * hppa-tdep.c (hppa_frame_align): New function.
4431 (hppa32_push_dummy_call): New function.
4432 (hppa64_push_dummy_call): New function.
4433 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
4434 disabled.
8a1dac83 4435
da6bab63
AC
4436 * infcall.c (legacy_push_dummy_code): Don't call deprecated
4437 FIX_CALL_DUMMY when push_dummy_call is available.
4438 (call_function_by_hand, push_dummy_code): Ditto.
4439
abf9b42d
AC
44402004-02-22 Andrew Cagney <cagney@redhat.com>
4441
4442 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
4443 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
4444 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
4445 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
4446 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
4447 call_dummy_location to ON_STACK.
4448
10fc94a4
MK
44492004-02-22 Mark Kettenis <kettenis@gnu.org>
4450
51433e4b
MK
4451 * x86-64-linux-tdep.c: Tweak comment.
4452 (amd64_linux_supply_gregset): Renamed from
4453 x86_64_linux_supply_gresget.
4454 (amd64_linux_fill_gregset): Renamed from
4455 x86_64_linux_fill_gregset.
4456 (fetch_core_registers): Adjust for renamed functions.
4457 (amd64_core_fns): Renamed from x86_64_core_fns.
4458 (amd64_linux_sigtramp_start): Renamed from
4459 x86_64_linux_sigtramp_start.
4460 (amd64_linux_pc_in_sigtramp): Renamed from
4461 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
4462 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
4463 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
4464 (amd64_linux_sigcontext_addr): Renamed from
4465 x86_64_linux_sigcontext_addr.
4466 (amd64_linux_sc_reg_offset): Renamed from
4467 x86_64_linux_sc_reg_offset.
4468 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
4469 Adjust for renamed functions and variables.
4470 (_initialize_amd64_linux_tdep): Renamed from
4471 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
4472 variables.
4473 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
4474 Adjust for renamed functions.
4475
430eaf2e
MK
4476 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
4477 from x86_64_linux_gregset64_reg_offset.
4478 (amd64_linux_gregset32_reg_offset): Rename from
4479 x86_64_linux_gregset64_reg_offset.
4480 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
4481 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
4482 (amd64_linux_dr_set_control): Renamed from
4483 x86_64_linux_dr_set_control. Adjust for renamed functions.
4484 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
4485 Adjust for renamed functions.
4486 (amd64_linux_dr_reset_addr): Renamed from
4487 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
4488 (amd64_linux_dr_get_status): Renamed from
4489 x86_64_linux_dr_get_status. Adjust for renamed functions.
4490 (_initialize_amd64_linux_nat): Renamed from
4491 _initialize_x86_64_linux_nat. Adjust for renamed variables and
4492 functions.
4493 * config/i386/nm-x86-64linux.h: Update copyright year.
4494 Adjust for renamed functions.
4495
10fc94a4
MK
4496 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
4497 amd64fbsd_sigtramp_start.
4498 (amd64fbsd_sigtramp_end_addr): Renamed from
4499 amd64fbsd_sigtramp_end.
4500 (amd64fbsd_init_abi): Adjust for renamed variables.
4501 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
4502 variables.
4503 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
4504 amd64fbsd_sigtramp_start.
4505 (amd64fbsd_sigtramp_end_addr): Renamed from
4506 amd64fbsd_sigtramp_end.
4507
343af405
AC
45082004-02-22 Andrew Cagney <cagney@redhat.com>
4509
537987fc
AC
4510 * hppa-tdep.c (hppa32_return_value): New function.
4511 (hppa64_return_value): New function.
4512 (hppa_gdbarch_init): Set return_value; keep disabled.
4513
fad850b2
AC
4514 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
4515 struct-return and inferior function call methods.
4516
26d08f08
AC
4517 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4518 "frame-base.h".
4519 (struct hppa_frame_cache): Define.
4520 (hppa_frame_cache, hppa_frame_this_id): New functions.
4521 (hppa_frame_prev_register): New function.
4522 (hppa_frame_unwind, hppa_frame_base): New variables.
4523 (hppa_frame_unwind_sniffer): New function.
4524 (hppa_frame_base_address, hppa_unwind_pc): New function.
4525 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
4526 sniffer, and frame base sniffer; keep disabled.
4527 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
4528 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
4529
e7d7bd65
AC
4530 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
4531 to predicates for "seriously old code".
4532
e963316f
AC
4533 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
4534 runtime if(0).
4535
56132691
AC
4536 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
4537 unsigned.
4538 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 4539
343af405
AC
4540 * config/pa/tm-hppa.h: Update copyright.
4541 (DEPRECATED_INIT_FRAME_PC): Delete macro.
4542 (deprecated_init_frame_pc_default): Delete declaration.
4543 (hppa_frame_init_saved_regs): Delete declaration.
4544 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4545 * hppa-tdep.c: Include "arch-utils.h".
4546 (hppa_gdbarch_init): Set deprecated init_frame_pc
4547 and deprecated frame_init_saved_regs.
4548 (hppa_frame_init_saved_regs): Make static.
4549
f5859b4d
MK
45502004-02-22 Mark Kettenis <kettenis@gnu.org>
4551
86f6f8e7 4552 Remove old 386BSD support.
cf7c5c23 4553 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
4554 * configure.host: Remove i[34567]86-*-bsd*.
4555 * configure.tgt: Remove i[34567]86-*-bsd*.
4556 * i386b-nat.c: Removed.
4557 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
4558 (i386b-nat.o): Remove dependencies.
4559
86f6f8e7
MK
4560 * config/i386/i386bsd.mh: Removed.
4561 * config/i386/i386bsd.mt: Removed.
4562 * config/i386/nm-i386bsd.h: Removed.
4563 * config/i386/tm-i386bsd.h: Removed.
4564 * config/i386/xm-i386bsd.h: Removed.
4565
971218cd
MK
4566 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
4567
7e654c37
MK
4568 * amd64fbsd-tdep.c: Include "solib-svr4.h".
4569 (amd64fbsd_init_abi): Set link map offsets.
4570 * amd64nbsd-tdep.c: Include "slib-svr4.h".
4571 (amd64nbsd_init_abi): Set link map offsets.
4572 * amd64obsd-tdep.c: Include "solib-svr4.h".
4573 (amd64obsd_init_abi): Set link map offsets.
4574 * i386fbsd-tdep.c: Include "solib-svr4.h".
4575 (i386fbsd_init_abi): Set link map offsets.
4576 * i386nbsd-tdep.c: Include "solib-svr4.h".
4577 (i386nbsdelf_init_abi): Set link map offsets.
4578 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
4579 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
4580 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
4581 solib-legacy.o and core-aout.o. Reformat.
4582 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
4583 solib-svr4.o, solib-legacy.o. Reformat.
4584 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
4585 * config/i386/nbsdelf.mh: Reformat.
4586 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
4587 solib-svr4.o, solib-legacy.o and corelow.o.
4588 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
4589 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
4590 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
4591 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4592 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4593 (TM_FILE): Set to tm-fbsd.h.
4594 * config/i386/nbsd.mt (TDEPFILES): Reformat.
4595 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
4596 solib-svr4.o.
4597 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
4598 solib-svr4.o.
4599 (TM_FILE): Set to nm-nbsd.h.
4600 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
4601 Simplify shared library support. Don't include "elf/common.h".
4602 (SVR4_SHARED_LIBS): Don't define.
4603 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
4604 "solib.h".
4605 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
4606 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
4607 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
4608 Don't include "i386/tm-i386.h". Include "solib.h".
4609 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
4610 Don't include "i386/tm-i386.h".
4611 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
4612 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
4613 Include "i386/xm-i386.h".
4614 (HOST_LONG_DOUBLE_FORMAT): Remove.
4615
5d93ae8c
MK
4616 Fix OpenBSD/i386 sigtramp recognition.
4617 * i386-tdep.h: Update copyright year.
4618 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
4619 (i386bsd_sigtramp_end): New prototypes.
4620 (i386fbsd_sigtramp_start_addr): Renamed from
4621 i386fbsd_sigtramp_start.
4622 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4623 (i386obsd_sigtramp_start_addr): Renamed from
4624 i386obsd_sigtramp_start.
4625 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4626 * i386bsd-tdep.c: Update copyright year.
4627 (i386bsd_pc_in_sigtramp): Make public.
4628 * i386fbsd-nat.c: Update copyright year.
4629 (_initialize_i386fbsd_nat): Adjust for renamed variables.
4630 * i386fbsd-tdep.c: Update copyright year.
4631 (i386fbsd_sigtramp_start_addr): Renamed from
4632 i386fbsd_sigtramp_start.
4633 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4634 (i386fbsdaout_init_abi): Adjust for renamed variables.
4635 * i386obsd-nat.c: Update copyright year.
4636 (_initialize_i386obsd_nat): Adjust for renamed variables.
4637 * i386obsd-tdep.c: Include "target.h".
4638 (i386obsd_page_size): New variable.
4639 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
4640 (i386obsd_sigtramp_end): New functions.
4641 (i386obsd_sigtramp_start_addr): Renamed from
4642 i386obsd_sigtramp_start.
4643 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4644 (i386obsd_init_abi): Adjust for renamed variables. Set
4645 pc_in_sigtramp, sigtramp_start and sigtramp_end.
4646 * Makefile.in (i386obsd-tdep.o): Update dependencies.
4647
84d04465
MK
4648 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
4649 trampoline change in OpenBSD kernel.
4650
b053aceb
MK
4651 * amd64-nat.c: Update copyright year.
4652 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
4653 architecture from REGCACHE.
4654
f5859b4d
MK
4655 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
4656 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
4657
e4bbbda8
MK
46582004-02-21 Mark Kettenis <kettenis@gnu.org>
4659
ba361932
MK
4660 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
4661 i[34567]86-*-openbsd3.[0-3].
4662 * config/i386/obsdaout.mh: New file.
4663
d3e48264
MK
4664 * config/i386/obsd.mh (MH_FLAGS): Remove.
4665
60a6eeb6
MK
4666 Fix PR build/1549.
4667 * i386obsd-tdep.c: Update copyright years. Include
4668 "solib-svr4.h".
4669 (i386obsd_init_abi): Don't set regset_from_core_section here.
4670 (i386obsd_aout_init_abi): New function. Set
4671 regset_from_core_section here.
4672 (i386obsd_elf_init_abi): New function.
4673 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
4674 * Makefile.in (i386obsd-tdep.o): Update dependecies.
4675 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4676 (TM_FILE): Set to tm-nbsd.h.
4677
4678 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
4679 solib-sunos.o.
4680
e4bbbda8
MK
4681 * solib-svr4.h: Update copyright year.
4682 (svr4_ilp32_fetch_link_map_offsets)
4683 (svr4_lp64_fetch_link_map_offsets): New prototype.
4684 * solib-svr4.c: Update copyright year.
4685 (svr4_ilp32_fetch_link_map_offsets)
4686 (svr4_lp64_fetch_link_map_offsets): New function.
4687
f6fe98ef
DJ
46882004-02-20 Daniel Jacobowitz <drow@mvista.com>
4689
4690 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
4691 to the partial symbol table.
4692
589ca796
JB
46932004-02-20 J. brobecker <brobecker@gnat.com>
4694
4695 * PROBLEMS: Add description of problem documented under gdb/1560.
4696
2031c21a
MK
46972004-02-20 Mark Kettenis <kettenis@gnu.org>
4698
30b344b1
MK
4699 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
4700 comments.
4701 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
4702 functions.
4703 (amd64obsd_init_abi): Reorder initializations. Use
4704 amd64obsd_r_reg_offset to initialize the general-purpose register
4705 set details. Set regset_from_core_section.
4706 (_initialize_amd64obsd_tdep): Rename from
4707 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
4708 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
4709 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
4710
2031c21a
MK
4711 * NEWS (New native configurations): Mention OpenBSD/alpha.
4712 * configure.tgt: Add alpha*-*-openbsd*.
4713 * configure.host: Add alpha*-*-openbsd*.
4714 * alphanbsd-tdep.c: Update copyright year.
4715 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
4716
42471775
AC
47172004-02-20 Andrew Cagney <cagney@redhat.com>
4718
4719 Fix PR tdep/1372.
4720 * configure.tgt: Delete target "none-*-*".
4721 * configure.host: Delete host "none-*-*".
4722 * config/none/none.mh: Delete file.
4723 * config/none/none.mt: Delete file.
4724 * config/none/xm-none.h: Delete file.
4725 * config/none/tm-none.h: Delete file.
4726 * config/none/nm-none.h: Delete file.
4727
960ccd7d
FF
47282004-02-19 Fred Fish <fnf@redhat.com>
4729
4730 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
4731 cache->uses_fp prior to setting it.
4732
5f883edd
FF
47332004-02-19 Fred Fish <fnf@redhat.com>
4734
4735 Fix for PR breakpoint/1558.
4736 * sh-tdep.c (IS_JSR): New macro.
4737 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
4738
f98c22d5
JB
47392004-02-19 Jim Blandy <jimb@redhat.com>
4740
4741 * findvar.c (value_from_register): Doc fix.
4742
95051d27
JJ
47432004-02-19 Jeff Johnston <jjohnstn@redhat.com>
4744
4745 * printcmd.c (print_scalar_formatted): Do not check for sizeof
4746 type being greater than sizeof of host's LONGEST. Always use
4747 unpack_long() unless format 'f' chosen.
4748
ccefbec3
EZ
47492004-02-19 Joel Brobecker <brobecker@gnat.com>
4750
4751 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 4752
ccefbec3
EZ
4753 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
4754 contains a symbol wich is the best, non-exact match for the given
4755 pc. Update comments.
4756
47572004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 4758
2ede629f
EZ
4759 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
4760 macro, which was part of the now removed Mach 3 port.
4761 * utils.c (request_quit): Ditto.
4762
567ee972
MK
47632004-02-18 Mark Kettenis <kettenis@gnu.org>
4764
4765 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
4766 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
4767
50cca7bb
MK
47682004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4769
4770 Committed by Mark Kettenis <kettenis@gnu.org>.
4771
4772 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4773 Define.
4774
226361c4
AC
47752004-02-18 Andrew Cagney <cagney@redhat.com>
4776
4777 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
4778 CONFIG_INSTALL and CONFIG_UNINSTALL.
4779 * configure: Re-generate.
4780 * interps.h (INTERP_TUI): Define.
4781 * Makefile.in: Update dependencies.
4782 (TUI): New macro.
4783 (tui-main.o): Specify dependencies.
4784 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
4785 * tui/tui-main.c: New file.
4786
49cfa46f
MK
47872004-02-18 Mark Kettenis <kettenis@gnu.org>
4788
e2879ccb
MK
4789 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
4790 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
4791 dependencies.
4792 * configure.host: Add x86_64-*-openbsd*.
4793 * configure.tgt: Add x86_64-*-openbsd*.
4794 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
4795
c43f4bec
MK
4796 * tui/tui.c: Don't include <malloc.h>.
4797
09ae75b6
MK
4798 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
4799 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
4800 amd64nbsd-tdep.c.
4801
49cfa46f 4802 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 4803 static. Remove extraneous whitespace.
49cfa46f
MK
4804 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
4805 static.
4806
05957fdb
JB
48072004-02-17 Jim Blandy <jimb@redhat.com>
4808
4809 * findvar.c (value_from_register): Doc fix.
4810
d0f54f9d
JB
48112004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4812
4813 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 4814
8a1dac83 4815 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
4816 CORE_ADDR as type for selectors. Correct types for GNU run time
4817 message lookup function to use double indirection.
4818 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
4819 * objc-lang.h (lookup_child_selector): Adapt prototype.
4820
9cbd5950
JB
4821 * s390-nat.c (SUBOFF): New macro.
4822 (supply_gregset, fill_gregset): Use it to handle debugging
4823 of 32-bit exectuables running under a 64-bit kernel.
4824 * s390-tdep.c: Include "solib-svr4.h".
4825 (s390_svr4_fetch_link_map_offset): New function.
4826 (s390x_svr_fetch_link_map_offset): Likewise.
4827 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
4828 * Makefile.in (s390-tdep.o): Update dependencies.
4829
a8c99f38
JB
4830 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
4831 "frame-unwind.h".
4832 (s390_readinstruction): Reformat. Use read_memory_nobpt.
4833 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
4834 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
4835 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
4836 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
4837 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 4838 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
4839 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
4840 (struct frame_extra_info): Remove.
4841 (s390_memset_extra_info): Remove.
f73b1eff
JB
4842 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
4843 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
4844 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
4845 (is_rse): Renamed to ...
4846 (is_rsy): ... this. Support long displacements.
4847 (is_rxe): Renamed to ...
4848 (is_rxy): ... this. Support long displacements.
4849 (compute_x_addr): Support long displacements.
4850 (struct s390_prologue_data): New data type.
4851 (s390_on_stack): Change API to use struct s390_prologue_data.
4852 (s390_store): Reimplement.
4853 (s390_load): New function.
4854 (s390_get_signal_frame_info): Remove.
4855 (s390_get_frame_info): Remove, replace by ...
4856 (s390_analyze_prolog): ... this new function.
4857 (s390_check_function_end): Remove.
4858 (s390_function_start): Remove.
4859 (s390_frameless_function_invokation): Remove.
4860 (s390_is_sigreturn): Remove.
4861 (s390_init_frame_pc_first): Remove.
4862 (s390_init_frame_extra_info): Remove.
4863 (s390_frame_init_saved_regs): Remove.
4864 (s390_frame_saved_pc_nofix): Remove.
4865 (s390_frame_saved_pc): Remove.
4866 (s390_frame_chain): Remove.
4867 (s390_fp_regnum, s390_read_fp): Remove.
4868 (s390_pop_frame_regular, s390_pop_frame): Remove.
4869 (s390_saved_pc_after_call): Remove.
4870 (s390_skip_prologue): Reimplement.
4871 (s390_in_function_epilogue_p): Support long displacements.
4872 (struct s390_unwind_cache): New data structure.
4873 (s390_frame_unwind_cache): New function.
4874 (s390_prologue_frame_unwind_cache): Likewise.
4875 (s390_backchain_frame_unwind_cache): Likewise.
4876 (s390_frame_this_id, s390_frame_prev_register): Likewise.
4877 (s390_frame_unwind): Define.
4878 (s390_frame_sniffer): New function.
4879 (struct s390_pltstub_unwind_cache): New data structure.
4880 (s390_pltstub_frame_unwind_cache): New function.
4881 (s390_pltstub_frame_this_id): Likewise.
4882 (s390_pltstub_frame_prev_register): Likewise.
4883 (s390_pltstub_frame_unwind): Define.
4884 (s390_pltstub_frame_sniffer): New function.
4885 (struct s390_sigtramp_unwind_cache): New data structure.
4886 (s390_sigtramp_frame_unwind_cache): New function.
4887 (s390_sigtramp_frame_this_id): Likewise.
4888 (s390_sigtramp_frame_prev_register): Likewise.
4889 (s390_sigtramp_frame_unwind): Define.
4890 (s390_sigtramp_frame_sniffer): New function.
4891 (s390_frame_base_address, s390_local_base_address): New functions.
4892 (s390_frame_base): Define.
4893 (s390_unwind_pc, s390_unwind_sp): New function.
4894 (s390_push_dummy_call): Use new frame base location.
4895 (s390_unwind_dummy_id): Likewise.
4896 (s390_gdbarch_init): Remove calls to:
4897 set_gdbarch_frameless_function_invocation,
4898 set_gdbarch_deprecated_init_frame_pc,
4899 set_gdbarch_deprecated_frame_chain,
4900 set_gdbarch_deprecated_frame_init_saved_regs,
4901 set_gdbarch_deprecated_pop_frame,
4902 set_gdbarch_deprecated_init_extra_frame_info,
4903 set_gdbarch_deprecated_init_frame_pc_first,
4904 set_gdbarch_deprecated_target_read_fp,
4905 set_gdbarch_deprecated_frame_saved_pc,
4906 set_gdbarch_deprecated_saved_pc_after_call,
4907 set_gdbarch_deprecated_fp_regnum.
4908 Add calls to:
4909 set_gdbarch_in_solib_call_trampoline,
4910 frame_unwind_append_sniffer,
4911 frame_base_set_default,
4912 set_gdbarch_unwind_pc,
4913 set_gdbarch_unwind_sp.
4914 * Makefile.in (s390-tdep.o): Update dependencies.
4915
b0cf273e
JB
4916 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
4917 (S390_STACK_FRAME_OVERHEAD): Remove.
4918 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
4919 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
4920 (s390_promote_integer_argument): Remove.
4921 (s390_cannot_extract_struct_value_address): Remove.
4922 (s390_use_struct_convention, s390_store_struct_return): Remove.
4923 (s390_extract_return_value, s390_store_return_value): Remove.
4924 (s390_return_value_convention, s390_return_value): New functions.
4925 (is_float_singleton): Handle typedefs.
8a1dac83 4926 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
4927 Remove, replace by ...
4928 (s390_function_arg_pass_by_reference, s390_function_arg_float,
4929 s390_function_arg_integer): ... these new functions.
4930 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
4931 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
4932 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
4933 Fill in tdep->abi.
4934 Remove calls to:
4935 set_gdbarch_deprecated_store_struct_return,
4936 set_gdbarch_deprecated_extract_return_value,
4937 set_gdbarch_deprecated_store_return_value,
4938 set_gdbarch_use_struct_convention,
4939 set_gdbarch_extract_struct_value_address,
4940 set_gdbarch_deprecated_pc_in_call_dummy,
4941 set_gdbarch_deprecated_push_arguments,
4942 set_gdbarch_deprecated_save_dummy_frame_tos,
4943 set_gdbarch_deprecated_push_return_address,
4944 set_gdbarch_deprecated_sizeof_call_dummy_words,
4945 set_gdbarch_deprecated_call_dummy_words,
4946 set_gdbarch_deprecated_dummy_write_sp.
4947 Add calls to:
4948 set_gdbarch_push_dummy_call,
4949 set_gdbarch_unwind_dummy_id,
4950 set_gdbarch_return_value.
8a1dac83 4951
e1457d83
JB
4952 * config/s390/nm-linux.h: Update comments.
4953 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
4954 (STOPPED_BY_WATCHPOINT): Redefine.
4955 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
4956 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
4957 (s390_stopped_by_watchpoint): Likewise.
4958 (watch_area_cnt): Remove.
4959 * s390-nat.c: Update comments.
4960 (watch_area): Remove typedef.
4961 Global replace watch_area by struct watch_area.
4962 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 4963 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
4964 use s390_inferior_tid. Add short-cut for the no watchpoint case.
4965 (s390_fix_watch_points): Remove pid argument,
4966 use s390_inferior_tid. Recompute area spanned by watchpoints.
4967 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
4968 argument. Reimplement.
4969
d0f54f9d
JB
4970 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
4971 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
4972 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 4973 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
4974 core-regset.o.
4975 * config/s390/s390x.mt: Remove.
4976 * config/s390/tm-s390.h: Remove.
4977 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
4978 (TARGET_ELF64): Remove.
4979 (SKIP_TRAMPOLINE_CODE): Do not undefine.
4980 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
4981 s390*-*-* case; always set gdb_target to s390.
4982 * regformats/reg-s390.dat: Remove control registers.
4983 * regformats/reg-s390x.dat: Likewise.
4984 * s390-tdep.h: New file.
8a1dac83 4985 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
4986 Include "inferior.h" and "s390-tdep.h".
4987 Remove private definition of offsetof.
4988 (s390_register_u_addr): Remove.
4989 (regmap_gregset, regmap_fpregset): Define.
4990 (supply_gregset, fill_gregset): Reimplement.
4991 (supply_fpregset, fill_fpregset): Likewise.
4992 (s390_inferior_tid): New function.
4993 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
4994 (fetch_inferior_registers, store_inferior_registers): Likewise.
4995 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
4996 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
4997 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
4998 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
4999 (struct gdbarch_tdep): Define.
5000 (struct s390_register_info): Define.
5001 (s390_register_info): New variable.
5002 (s390_register_name): Reimplement.
5003 (s390_register_type): New function.
5004 (s390_register_raw_size, s390x_register_raw_size): Remove.
5005 (s390_cannot_fetch_register): Remove.
5006 (s390_register_byte): Remove.
5007 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5008 (s390_dwarf_regmap): New variable.
5009 (s390_dwarf_reg_to_regnum): New function.
5010 (s390_stab_reg_to_regnum): Remove.
5011 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5012 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5013 (s390_convert_register_p): Likewise.
5014 (s390_register_to_value, s390_value_to_register): Likewise.
5015 (s390_register_reggroup_p): Likewise.
5016 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5017 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5018 (s390_supply_regset, s390_regset_from_core_section): New functions.
5019 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5020 (S390_FPR_SIZE): Likewise.
5021 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5022 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5023 (S390_NUM_GPRS): Move here from tm-s390.h.
5024 (S390_NUM_FPRS): Likewise.
5025 (s390_in_function_epilogue_p): New function.
5026 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5027 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5028 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5029 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5030 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5031 Remove calls to:
5032 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
5033 set_gdbarch_deprecated_max_register_virtual_size,
5034 set_gdbarch_deprecated_register_byte,
d0f54f9d 5035 set_gdbarch_cannot_fetch_register,
8a1dac83 5036 set_gdbarch_cannot_store_register,
d0f54f9d
JB
5037 set_gdbarch_deprecated_register_size,
5038 set_gdbarch_deprecated_register_raw_size,
5039 set_gdbarch_deprecated_register_virtual_size,
5040 set_gdbarch_deprecated_register_virtual_type,
5041 set_gdbarch_deprecated_register_bytes.
5042 Add calls to:
5043 set_gdbarch_num_pseudo_regs,
5044 set_gdbarch_register_type,
5045 set_gdbarch_convert_register_p,
5046 set_gdbarch_register_to_value,
5047 set_gdbarch_value_to_register,
5048 set_gdbarch_register_reggroup_p,
5049 set_gdbarch_regset_from_core_section,
5050 set_gdbarch_pseudo_register_read,
5051 set_gdbarch_pseudo_register_write,
5052 set_gdbarch_in_function_epilogue_p.
5053 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5054 (s390_tdep_h): New variable.
5055
8cfe231d
JB
50562004-02-17 Jim Blandy <jimb@redhat.com>
5057
4589a601
JB
5058 * findvar.c (value_from_register): If the type has no length, just
5059 return an acceptable value --- don't report an internal error.
5060
8cfe231d
JB
5061 * stabsread.c (read_type): If we find any type numbers that are
5062 forward references, complain if the references aren't resolved by
5063 the time we're finished reading.
5064 (cleanup_undefined_types): Make error message more appropriate for
5065 a complaint.
5066
5bf0017e
EZ
50672004-02-17 Elena Zannoni <ezannoni@redhat.com>
5068
9d62932d
EZ
5069 * Makefile.in (defs_h): Remove dependency on progress_h.
5070 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5071 progress.h.
5072 * main.c (captured_main): Delete use of START_PROGRESS and
5073 END_PROGRESS.
5074
50752004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 5076
5bf0017e
EZ
5077 * objfiles.c (terminate_minimal_symbol_table): Add back
5078 initialization of MSYMBOL_TYPE.
5079
9fc9f5e2
AC
50802004-02-17 David Mosberger <davidm@hpl.hp.com>
5081
5082 Committed by Andrew Cagney.
5083 * Makefile.in (ia64_tdep_h): New macro.
5084 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5085 (ia64-tdep.o): Likewise.
5086 * ia64-tdep.h: New file.
5087 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5088 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5089 (ia64_aix_sigcontext_register_address): Likewise.
5090 (ia64_linux_getunwind_table): Delete declaration.
5091 * ia64-linux-tdep.c: Likewise.
5092
76cd2bd9
CV
50932004-02-17 Corinna Vinschen <vinschen@redhat.com>
5094
5095 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5096 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5097 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5098
634aa483
AC
50992004-02-17 Andrew Cagney <cagney@redhat.com>
5100
5101 * symtab.c (skip_prologue_using_sal): New function.
5102 * symtab.h (skip_prologue_using_sal): Declare.
5103 * frv-tdep.c: Include "symtab.h".
5104 (skip_prologue_using_sal): Delete function.
5105 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5106 * rs6000-tdep.c (refine_prologue_limit): Mention
5107 skip_prologue_using_sal.
5108 * ia64-tdep.c (refine_prologue_limit): Ditto.
5109 * Makefile.in: Update dependencies.
5110
51112004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 5112
39ce7b3f
AC
5113 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5114 START_INFERIOR_TRAPS_EXPECTED.
5115 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5116 START_INFERIOR_TRAPS_EXPECTED.
5117 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5118 Delete macro.
5119 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5120 macro, moved to "nm-osf.h". Update copyright.
5121 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5122 update copyright.
5123
19772a2c
AC
5124 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5125 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5126 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5127 frameless_look_for_prologue.
5128 * frame.h (legacy_frameless_look_for_prologue): Rename
5129 frameless_look_for_prologue.
5130 * gdbarch.h, gdbarch.c: Re-generate.
5131 * sh64-tdep.c (sh64_gdbarch_init): Update.
5132 * sh-tdep.c (sh_gdbarch_init): Update.
5133 * s390-tdep.c (s390_gdbarch_init): Update.
5134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5135 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5136 * m68k-tdep.c (m68k_gdbarch_init): Update.
5137 (delta68_frame_args_address): Update.
5138 * m32r-tdep.c (m32r_gdbarch_init): Update.
5139 * hppa-tdep.c (hppa_gdbarch_init): Update.
5140 * h8300-tdep.c (h8300_gdbarch_init): Update.
5141 * frv-tdep.c (frv_gdbarch_init): Update.
5142 (frv_frameless_function_invocation): Update.
5143 * cris-tdep.c (cris_gdbarch_init): Update.
5144 (cris_frameless_function_invocation): Update.
5145 * avr-tdep.c (avr_gdbarch_init): Update.
5146 * arm-tdep.c (arm_gdbarch_init): Update.
5147 * stack.c (frame_info): Update, call predicate.
5148 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5149 * frame.c (legacy_get_prev_frame): Update, call predicate..
5150 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5151 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5152 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5153 invocation.
5154 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5155 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5156 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
5157
5158 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5159 function.
5160
7dcaac91
DJ
51612004-02-16 Daniel Jacobowitz <drow@mvista.com>
5162
5163 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5164 initializations.
5165
88289b6e
AC
51662004-02-16 Andrew Cagney <cagney@redhat.com>
5167
5168 * tui/tui-windata.c: Include "gdb_string.h".
5169 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5170 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5171 * Makefile.in: Update dependencies.
5172
9f976b41
DJ
51732004-02-16 Daniel Jacobowitz <drow@mvista.com>
5174
5175 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5176 * infrun.c: Include "gdb_assert.h".
5177 (singlestep_ptid, saved_singlestep_ptid)
5178 (stepping_past_singlestep_breakpoint): New variables.
5179 (resume): Set singlestep_ptid. Check for singlestep thread
5180 hop.
5181 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5182 (handle_inferior_event): Handle singlestep thread hop.
5183
c324d747
AC
51842004-02-16 Andrew Cagney <cagney@redhat.com>
5185
f090b9b1
AC
5186 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5187 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5188 (dwarf2_frame_init_reg): Ditto.
5189
fd33e6cb
AC
5190 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5191 suggested by Joshua Neuheisel
5192
c324d747
AC
5193 * configure.in: Always check for curses, including pdcurses.
5194 Warn, instead of error, when no curses are found. Enable TUI when
5195 curses is available.
5196 * configure: Re-generate.
5197
b66ba949
CV
51982004-02-16 Corinna Vinschen <vinschen@redhat.com>
5199
5200 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5201 sh_sh4_register_convert_to_virtual.
5202 (sh_register_convert_to_raw): Rename from
5203 sh_sh4_register_convert_to_raw.
5204 (sh_pseudo_register_read): Accomodate above name change.
5205 (sh_pseudo_register_write): Ditto.
5206
b58cbbf2
CV
52072004-02-16 Corinna Vinschen <vinschen@redhat.com>
5208
5209 * sh-tdep.c (sh_generic_register_name): Remove.
5210 (sh_gdbarch_init): Use sh_sh_register_name in default case.
5211
5929a910
AC
52122004-02-15 Andrew Cagney <cagney@redhat.com>
5213
4566dfcf
AC
5214 * configure.in (build_warnings): Add -Wunused-function.
5215 * configure: Re-generate.
5216
db11ed55
AC
5217 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
5218 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
5219
46ac7a5d
AC
5220 * procfs.c (procfs_init_inferior): Assume that
5221 START_INFERIOR_TRAPS_EXPECTED is defined.
5222 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
5223 * config/ns32k/tm-nbsd.h: Delete file,
5224 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
5225
ba801595
AC
5226 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
5227 * config/vax/tm-vax.h: Delete file.
5228
5929a910
AC
5229 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5230 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5231 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5232 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5233 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
5234 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5235 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
5236
8f22cb90
MK
52372004-02-15 Mark Kettenis <kettenis@gnu.org>
5238
5239 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
5240 * dwarf2-frame.c (dwarf2_frame_data): New variable.
5241 (struct dwarf2_frame_ops): New.
5242 (dwarf2_frame_default_init_reg): New function, based on
5243 dwarf2_frame_init_reg.
5244 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
5245 (dwarf2_frame_init_reg): Call architecture-specific function.
5246 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
5247 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
5248 instead of dwarf2_frame_data.
5249 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
5250 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
5251
8132723e
AC
52522004-02-15 Andrew Cagney <cagney@redhat.com>
5253
046a4708
AC
5254 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
5255 register_gdbarch_swap.
5256 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
5257 * f-lang.c (_initialize_f_language): Update, use
5258 DEPRECATED_REGISTER_GDBARCH_SWAP.
5259 * remote.c (_initialize_remote): Ditto.
5260 * regcache.c (_initialize_regcache): Ditto.
5261 * parse.c (_initialize_parse): Ditto.
5262 * infrun.c (_initialize_infrun): Ditto.
5263 * mi/mi-main.c (_initialize_mi_main): Ditto.
5264 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 5265
549c1eea
AC
5266 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
5267 poking .cacheable directly.
5268 * symfile.c (symfile_bfd_open): Ditto.
5269
0c0b39de
AC
5270 * Makefile.in: Update all dependencies.
5271
8132723e
AC
5272 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
5273 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
5274 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
5275 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5276 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 5277
b9d26eb9
AC
52782004-02-14 Andrew Cagney <cagney@redhat.com>
5279
8e1f669a
AC
5280 * arch-utils.c (legacy_convert_register_p): Check
5281 DEPRECATED_REGISTER_CONVERTIBLE_P.
5282 * findvar.c (value_of_register): Ditto.
5283
cd0bfa36
AC
5284 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5285 * gdbarch.h, gdbarch.c: Re-generate.
5286 * arch-utils.c (deprecated_register_convertible_not): Delete.
5287 * arch-utils.h (deprecated_register_convertible_not): Delete.
5288 * mi/mi-main.c (get_register): Update. Update copyright.
5289 * infcmd.c (default_print_registers_info): Update.
5290
b9d26eb9
AC
5291 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5292 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5293 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 5294 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
5295 * frame.c (deprecated_get_next_frame_hack): Delete function.
5296 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5297 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5298 Update.
5299 * infcall.c (call_function_by_hand): Update.
5300
9ab9195f
EZ
53012004-02-14 Elena Zannoni <ezannoni@redhat.com>
5302
5303 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 5304 from here...
9ab9195f
EZ
5305 * objfiles.c (init_entry_point_info, entry_point_address):..to
5306 here.
5307 * symfile.h (init_entry_point_info, entry_point_address): Remove
5308 prototypes.
5309 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 5310 prototypes.
9ab9195f
EZ
5311 * cris-tdep.c: Remove include of symfile.h. Add include of
5312 objfiles.h.
5313 * infcall.c: Ditto.
5314 * mcore-tdep.c: Ditto.
5315 * mn10300-tdep.c: Ditto.
5316 * sh64-tdep.c: Ditto.
5317 * v850-tdep.c: Ditto.
5318 * arm-tdep.c: Remove include of symfile.h.
5319 * blockframe.c: Ditto.
5320 * coffread.c: Ditto.
5321 * dbxread.c: Ditto.
5322 * dwarf2read.c: Ditto.
5323 * dwarfread.c: Ditto.
8a1dac83 5324 * frv-tdep.c: Ditto.
9ab9195f
EZ
5325 * ia64-tdep.c: Ditto.
5326 * mdebugread.c: Ditto.
5327 * mipsread.c: Ditto.
8a1dac83 5328 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
5329 * s390-tdep.c: Ditto.
5330 * sh-tdep.c: Ditto.
8a1dac83 5331 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
5332 * gdbarch.sh: Remove include of symfile.h.
5333 * gdbarch.c: Regenerate.
5334 * solib-irix.c (enable_break): Use entry_point_address().
5335 Add comment about include file.
5336 * xcoffread.c: Add comment about include file.
8a1dac83
RM
5337 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5338 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5339 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5340 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
5341 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5342
c4c5b7ba
AC
53432004-02-13 Andrew Cagney <cagney@redhat.com>
5344
5345 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5346 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5347 copyright.
5348 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5349
3e7879de
FF
53502004-02-12 Fred Fish <fnf@redhat.com>
5351
5352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5353 set_gdbarch_store_return_value.
5354
6a7760b6
AC
53552004-02-12 Andrew Cagney <cagney@redhat.com>
5356
5357 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
5358 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5359 (interrupt_query): Ditto.
5360 (ofunc): Delete unused variable.
5361 * cris-tdep.c (cris_abi): Delete unused function.
5362 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
5363 (cris_get_wide_opcode, cris_get_short_size): Ditto.
5364 (cris_get_asr_quick_shift_steps): Ditto.
5365 (cris_skip_prologue_frameless_p): Ditto.
5366 * arm-tdep.c (arm_push_return_address): Delete unused function.
5367 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
5368 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
5369 * s390-tdep.c (s390_function_start): Delete unused function.
5370
31687c3c
AC
53712004-02-12 Andrew Cagney <cagney@redhat.com>
5372
5373 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
5374 gdbarch.h, gdbarch.c: Re-generate.
5375 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
5376 to generic_prologue_frameless_p.
5377 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
5378 * arch-utils.c (generic_prologue_frameless_p): Delete function.
5379
6de918a6
DJ
53802004-02-11 Daniel Jacobowitz <drow@mvista.com>
5381
5382 * mips-linux-tdep.c: Include "frame.h".
5383 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
5384 (mips_linux_skip_resolver): New functions.
5385 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
5386 and set_gdbarch_in_solib_call_trampoline.
5387 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
5388 to after set_gdbarch_in_solib_return_trampoline. Only set the
5389 solib hooks to mips16 functions if the OS ABI is unknown.
5390 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
5391 including "config/tm-linux.h".
5392 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
5393 * Makefile.in (mips-linux-tdep.o): Update.
5394
87b3ede8
DC
53952004-02-11 David Carlton <carlton@kealia.com>
5396
5397 * linespec.c (decode_compound): Only look for a class symbol when
5398 considering all but the rightmost component.
5399
5979bc46
AC
54002004-02-11 Andrew Cagney <cagney@redhat.com>
5401
5402 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
5403 abi code are are separatly grouped.
5404
5867a2fb
AC
54052004-02-11 Andrew Cagney <cagney@redhat.com>
5406
5407 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
5408 * gdbarch.h, gdbarch.c: Re-generate.
5409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5410 * v850-tdep.c (v850_gdbarch_init): Update.
5411 * sh64-tdep.c (sh64_gdbarch_init): Update.
5412 * sh-tdep.c (sh_gdbarch_init): Update.
5413 * s390-tdep.c (s390_gdbarch_init): Update.
5414 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5415 * mips-tdep.c (mips_gdbarch_init): Update.
5416 * mcore-tdep.c (mcore_gdbarch_init): Update.
5417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5418 * m32r-tdep.c (m32r_gdbarch_init): Update.
5419 * ia64-tdep.c (ia64_gdbarch_init): Update.
5420 * hppa-tdep.c (hppa_gdbarch_init): Update.
5421 * h8300-tdep.c (h8300_gdbarch_init): Update.
5422 * frv-tdep.c (frv_gdbarch_init): Update.
5423 * d10v-tdep.c (d10v_gdbarch_init): Update.
5424 * cris-tdep.c (cris_gdbarch_init): Update.
5425 * avr-tdep.c (avr_gdbarch_init): Update.
5426 * arm-tdep.c (arm_gdbarch_init): Update.
5427 * alpha-tdep.c (alpha_gdbarch_init): Update.
5428
026a72f8
CV
54292004-02-11 Corinna Vinschen <vinschen@redhat.com>
5430
5431 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
5432 comma.
5433 (sh_sh4al_dsp_register_name): Ditto.
5434
3903d437
AC
54352004-02-10 Andrew Cagney <cagney@redhat.com>
5436
5437 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
5438 (mips_init_frame_pc_first): Delete function.
5439 (mips_frame_saved_pc): Delete function.
5440 (mips_frame_chain): Delete function.
5441 (mips_init_extra_frame_info): Delete function.
5442 (mips_xfer_register): Delete unused variable "reg".
5443 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
5444 (mips_n32n64_return_value): Delete unused variable "reg".
5445 (mips_n32n64_return_value): Delete unused variable "pos".
5446 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
5447 (mips_o32_return_value): Delete unused variable "pos".
5448 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
5449 (mips_print_fp_register): Delete unused variable "namelen"
5450 (mips_print_fp_register): Delete unused variable "flt2"
5451 (get_frame_pointer): Delete function.
5452 (cached_proc_desc): Delete static variable.
5453 (mips_pop_frame): Delete function.
5454 (mips_find_saved_regs): Delete function.
5455 (mips_get_saved_register): Delete function.
5456 (mips_saved_pc_after_call): Delete function.
5457 (SIGFRAME_BASE): Delete macro.
5458 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
5459 (SIGFRAME_PC_OFF): Delete macro.
5460 (SIGFRAME_REGSAVE_OFF): Delete macro.
5461 (mips_dump_tdep): Do not print deleted macro definitions.
5462
b9fb98bd
AC
54632004-02-10 Andrew Cagney <cagney@redhat.com>
5464
5465 * Makefile.in (SFILES): Remove explictly listed tui files.
5466 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
5467
78ced177 54682004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 5469
78ced177
JJ
5470 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
5471 to use paddr functions to format ia64 addresses and long values.
5472 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
5473 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
5474 (get_kernel_table, ia64_find_proc_info_x): Ditto.
5475 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
5476 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
5477
6a83354a
AC
54782004-02-10 Andrew Cagney <cagney@redhat.com>
5479
5480 * defs.h: Do not include "tui.h".
5481 * gdb_curses.h: New file.
5482 * tui/tui-hooks.h: New file.
5483 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
5484 (tui_install_hooks, tui_remove_hooks): Delete declarations.
5485 (tui_initialize_io): Delete declaration.
5486 (tui_initialize_readline: Delete redundant declaration.
5487 (struct tui_point): Delete definition.
5488 * tui/tui-data.h (struct tui_point): Define.
5489 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
5490 * utils.c: Include "tui/tui.h".
5491 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
5492 * printcmd.c [TUI]: Include "tui/tui.h".
5493 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
5494 * tui/tui-command.c: Include "gdb_curses.h".
5495 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
5496 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
5497 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
5498 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
5499 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
5500 * Makefile.in: Update all dependencies.
5501 (tui_hooks_h, gdb_curses_h): Define.
5502 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
5503
997470ef
EZ
55042004-02-10 Elena Zannoni <ezannoni@redhat.com>
5505
5506 * objfiles.h (struct objfile): Remove unused fields auxf1 and
5507 auxf2. Add comments about some other rarely used fields.
5508
4ff2cc4d
AC
55092004-02-10 Andrew Cagney <cagney@redhat.com>
5510
5511 * Makefile.in (init.c): Fix script removing duplicates. Problem
5512 reported by Peter Schauer.
5513
1ab21617
EZ
55142004-02-09 Elena Zannoni <ezannoni@redhat.com>
5515
5516 * bcache.c (bcache_xmalloc): Use obstack_init instead of
5517 obstack_specify_allocation.
5518 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 5519 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
5520 (allocate_rt_common_objfile): Ditto.
5521 * symfile.c (reread_symbols): Ditto.
5522 * gdb_obstack.h: Add comment.
5523
17763fd9
EZ
55242004-02-09 Elena Zannoni <ezannoni@redhat.com>
5525
5526 * linespec.c (decode_line_1, locate_first_half)
5527 (decode_compound, lookup_prefix_sym): Update comments. Delete old
5528 commented out code.
5529
ec5cdd75
DJ
55302004-02-09 Daniel Jacobowitz <drow@mvista.com>
5531
5532 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
5533 obstack_free.
5534
43b54b88
AC
55352004-02-09 Andrew Cagney <cagney@redhat.com>
5536
5537 * blockframe.c (find_pc_partial_function): If find_pc_overlay
5538 fails, try find_pc_section. Fix PR c++/1267.
5539 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
5540 instead of find_pc_mapped_section.
5541 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
5542 not default to the section containing PC. Fix PR symtab/1519.
5543
edfae063
AC
55442004-02-09 Andrew Cagney <cagney@redhat.com>
5545
5546 * Makefile.in (mips-tdep.o): Update dependencies.
5547 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
5548 "trad-frame.h".
5549 (mips_unwind_pc): Return the pseudo PC register.
5550 (mips_unwind_dummy_id): New function.
5551 (mips16_fetch_instruction): New function.
5552 (mips32_fetch_instruction): New function.
5553 (struct mips_frame_cache): Define.
5554 (mips_mdebug_frame_cache): New function.
5555 (mips_mdebug_frame_this_id): New function.
5556 (mips_mdebug_frame_prev_register): New function.
5557 (mips_mdebug_frame_unwind): Define.
5558 (mips_mdebug_frame_sniffer): New function.
5559 (mips_mdebug_frame_base_address): New function.
5560 (mips_mdebug_frame_base): Define.
5561 (mips_mdebug_frame_base_sniffer): New function.
5562 (mips_gdbarch_init): Append unwind and base sniffers. Set
5563 unwind_dummy_id.
5564
defc864c
AC
55652004-02-08 Andrew Cagney <cagney@redhat.com>
5566
6764ddad
AC
5567 * frame.c: Print both the register number and name.
5568
defc864c
AC
5569 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
5570 and a sed into a single sed. Make .c and .o patterns more robust.
5571 (OBS): Delete.
5572 (INIT_FILES): Replace OBS with COMMON_OBS.
5573 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
5574
645d6d10
MK
55752004-02-08 Mark Kettenis <kettenis@gnu.org>
5576
5577 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
5578 the PT_WCOOKIE request.
5579
23e3c3fc
AC
55802004-02-08 Andrew Cagney <cagney@redhat.com>
5581
58dfe9ff
AC
5582 * mips-tdep.c (mips_unwind_pc): New function.
5583 (mips_gdbarch_init): Set mips_unwind_pc.
5584
1152e35e
AC
5585 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
5586 (get_frame_id): Allow the UNKNOWN_FRAME.
5587 (frame_register_unwind, get_frame_type): Ditto.
5588
31b75dbf
AC
5589 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
5590 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
5591 unwind_dummy_id indicates a legacy frame.
5592
3483b318
AC
5593 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
5594 * configure: Re-generate.
5595
23e3c3fc
AC
5596 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
5597 methods.
5598
33f8ca73
AC
55992004-02-08 Andrew Cagney <cagney@redhat.com>
5600
5601 * configure.in (CONFIG_ALL): Set to Makefile target, and not
5602 makefile macro.
5603 * configure: Re-generate.
5604 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
5605 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
5606 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
5607 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
5608 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
5609 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
5610 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
5611 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
5612 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
5613 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
5614
6ba8e26f 56152004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 5616
20d286a5
AC
5617 * Makefile.in: Update all dependencies.
5618
d836ee13
AC
5619 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
5620 * configure: Re-generate.
5621 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
5622 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
5623 (COMMON_OBS): Add "main.o" and "annotate.o".
5624 (ANNOTATE_OBS): Delete.
5625 (OBS): Remove ANNOTATE_OBS.
5626 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
5627 CONFIG_INITS.
5628 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
5629 against CONFIG_OBS and "main.o".
5630 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
5631 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
5632
d02c80cd
AC
5633 * tui/tui-command.c: Include "gdb_string.h", delete register
5634 attribute, use ISO-C function signatures.
5635 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
5636 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5637 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
5638 * tui/tui.c: Ditto.
6ba8e26f
AC
5639
5640 * tui/tui-command.c: Change variable and function names to lower
5641 case.
5642 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
5643 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
5644 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5645 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5646 * tui/tui-winsource.c, tui/tui.c: Ditto.
5647
4a146b47
EZ
56482004-02-07 Elena Zannoni <ezannoni@redhat.com>
5649
5650 * buildsym.c (free_pending_blocks, finish_block)
5651 (record_pending_block, make_blockvector, end_symtab): Replace
5652 symbol_obstack with objfile_obstack.
8a1dac83 5653 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 5654 (coff_read_enum_type): Ditto.
8a1dac83 5655 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 5656 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 5657 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
5658 (dwarf2_symbol_mark_computed): Ditto.
5659 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
5660 * elfread.c (elf_symtab_read): Ditto.
5661 * hpread.c (hpread_symfile_init, hpread_symfile_init)
5662 (hpread_read_enum_type, hpread_read_function_type)
5663 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
5664 Ditto.
8a1dac83 5665 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 5666 (java_link_class_type): Ditto.
8a1dac83 5667 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
5668 (new_symbol): Ditto.
5669 * minsyms.c (install_minimal_symbols): Ditto.
5670 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
5671 (terminate_minimal_symbol_table): Replace symbol_obstack with
5672 objfile_obstack.
5673 (free_objfile): Remove freeing of symbol_obstack.
5674 * objfiles.h: Remove symbol_obstack field.
5675 * pa64solib.c (add_to_solist): Replace symbol_obstack with
5676 objfile_obstack.
5677 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5678 symbol_obstack.
5679 (solib_add_common_symbols): Replace symbol_obstack with
5680 objfile_obstack.
5681 * somsolib.c (som_solib_add): Ditto.
5682 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5683 (common_block_start, common_block_end): Ditto.
5684 * symfile.c (reread_symbols): Remove freeing and init of
5685 symbol_obstack.
5686 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
5687 * symfile.h: Update comment.
5688 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
5689 stats printing.
5690 * symtab.c (symbol_set_names): Replace symbol_obstack with
5691 objfile_obstack.
5692 * symtab.h (struct general_symbol_info, struct minimal_symbol):
5693 Update comments.
5694 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
5695 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
5696 objfile_obstack.
5697
6d012f14
AC
56982004-02-07 Andrew Cagney <cagney@redhat.com>
5699
5700 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
5701 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
5702 fields and variables.
5703 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
5704 (m_beInvisible): Delete macro.
5705 * tui/tui-data.h: Fix case case fields and variables.
5706 (m_genWinPtrIsNull): Delete macro.
5707 (tui_win_list): Rename winList.
5708 (TUI_SRC_WIN): Rename srcWin.
5709 (TUI_DISASM_WIN): Rename disassemWin.
5710 (TUI_DATA_WIN): Rename dataWin.
5711 (TUI_CMD_WIN): Rename cmdWin.
5712 (m_genWinPtrNotNull): Delete macro.
5713 (m_winPtrIsNull): Delete macro.
5714 (m_winPtrNotNull): Delete macro.
5715 (tui_win_is_source_type): Replace m_winIsSourceType
5716 (tui_win_is_auxillary): Replace m_winIsAuzillary.
5717 (tui_win_has_locator): Replace m_hasLocator.
5718 (tui_set_win_highlight): Replace m_setWinHighlightOn and
5719 m_setWinHighlightOff.
5720 * tui/tui-data.c: Update references.
5721 (tui_win_is_source_type, tui_set_win_highlight): New functions.
5722 (tui_win_has_locator, tui_win_is_auxillary): New functions.
5723 * tui/tui-command.c, tui/tui-disasm.c: Update references.
5724 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
5725 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
5726 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5727 * tui/tui-winsource.c, tui/tui.c: Ditto.
5728
7d34766b
MK
57292004-02-07 Mark Kettenis <kettenis@gnu.org>
5730
1c800673
MK
5731 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
5732 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
5733 StackGhost.
5734
7d34766b
MK
5735 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
5736 variable `i6' to `i7'.
5737 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5738
22940a24
AC
57392004-02-07 Andrew Cagney <cagney@redhat.com>
5740
5741 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
5742 (TuiPoint, TuiPointPtr): Ditto.
5743 (TuiStatus, TuiStatusPtr): Ditto.
5744 (TuiWinType, TuiWinTypePtr): Ditto.
5745 (struct tui_point): Rename _TuiPoint.
5746 (tui_get_low_disassembly_address): Rename
5747 tuiGetLowDisassemblyAddress.
5748 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
5749 (tuiFree): Delete declaration.
5750 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
5751 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
5752 * tui/tui.c (tuiFree): Delete function.
5753 * cli/cli-cmds.c (disassemble_command): Update references.
5754 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
5755 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5756 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
5757 * tui/tui-winsource.c: Ditto.
5758
8b92e4d5
EZ
57592004-02-07 Elena Zannoni <ezannoni@redhat.com>
5760
5761 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
5762 coffstab_build_psymtabs, elfstab_build_psymtabs)
5763 (stabsect_build_psymtabs): Replace psymbol_obstack with
5764 objfile_obstack.
5765 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
5766 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
5767 Ditto.
5768 * dwarfread.c (scan_compilation_units): Ditto.
5769 * elfread.c (elfstab_offset_sections): Ditto.
5770 * hppa-tdep.c (read_unwind_info): Ditto.
5771 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
5772 (hpread_end_psymtab): Ditto.
5773 * mdebugread.c (mdebug_build_psymtabs, add_pending)
5774 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
5775 Ditto.
5776 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 5777 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
5778 (build_objfile_section_table): Ditto.
5779 (allocate_objfile): Remove init of psymbol_obstack.
5780 (free_objfile): Remove freeing of psymbol_obstack.
5781 * objfiles.h (struct objfile): Remove field
5782 psymbol_obstack. Update comments.
5783 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
5784 psymbol_obstack with objfile_obstack.
5785 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5786 psymbol_obstack.
5787 * somread.c (som_symfile_offsets, init_import_symbols)
5788 (init_export_symbols): Replace psymbol_obstack with
5789 objfile_obstack.
5790 * somsolib.c (som_solib_add_solib_objfile): Ditto.
5791 * symfile.c (default_symfile_offsets, syms_from_objfile)
5792 (reread_symbols): Remove freeing and init of psymbol_obstack.
5793 (cashier_psymtab): Update comment.
5794 * symmisc.c (print_objfile_statistics): Don't report stats for
5795 psymbol obstack.
5796 * symtab.h (struct general_symbol_info, struct partial_symtab):
5797 Update comments.
5798 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
5799 (xcoff_symfile_offsets): Replace psymbol_obstack with
5800 objfile_obstack.
5801
b99607ea
EZ
58022004-02-07 Elena Zannoni <ezannoni@redhat.com>
5803
5804 * objfiles.h (struct objfile): Add objfile_obstack field.
5805 Remove type_obstack field.
5806
5807 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
5808 read_structure_scope read_enumeration, new_symbol): Replace
5809 type_obstack with objfile_obstack.
5810 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 5811 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
5812 (lookup_fundamental_type): Ditto.
5813 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
5814 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
5815 (hpread_read_doc_function_type, hpread_read_struct_type)
5816 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 5817 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 5818 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
5819 (java_link_class_type): Ditto.
5820 * mdebugread.c (parse_type): Ditto.
5821 * objfiles.c (allocate_objfile, free_objfile): Ditto.
5822 * solib-sunos.c (solib_add_common_symbols): Ditto.
5823 * stabsread.c (define_symbol, read_type, read_member_functions,
5824 read_cpp_abbrev, read_one_struct_field): Ditto.
5825 * symfile.c (reread_symbols): Ditto.
5826 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 5827
2a8854a7
AC
58282004-02-07 Andrew Cagney <cagney@redhat.com>
5829
5830 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
5831 (tui_exec_info_content): Rename TuiExecInfoContent.
5832 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
5833 (TuiWinInfo, TuiWinInfoPtr): Ditto.
5834 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
5835 (TuiList, TuiListPtr): Ditto.
5836 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
5837 (TuiDataType, TuiDataTypePtr): Ditto.
5838 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
5839 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
5840 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
5841 (TuiSourceElement, TuiSourceElementPtr): Ditto.
5842 (TuiDataElement, TuiDataElementPtr): Ditto.
5843 (TuiWinElement, TuiWinElementPtr): Ditto.
5844 (TuiDataInfo, TuiDataInfoPtr): Ditto.
5845 (TuiCommandElement, TuiCommandElementPtr): Ditto.
5846 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
5847 (TuiWhichElement, TuiWhichElementPtr): Ditto.
5848 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
5849 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
5850 * tui/tui-command.c, tui/tui-data.c: Update references.
5851 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
5852 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5853 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5854 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 5855
05cbe71a
MK
58562004-02-07 Mark Kettenis <kettenis@gnu.org>
5857
5858 * dwarf2-frame.h: Update copyright.
5859 (enum dwarf2_frame_reg_rule): New.
5860 (struct dwarf2_frame_state_reg): New.
5861 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
5862 * dwarf2-frame.c: Update copyright.
5863 (enum dwarf2_reg_rule): Remove.
5864 (struct dwarf2_frame_state): Remove defenition of `struct
5865 dwarf2_frame_state_reg'.
5866 (read_reg): Call get_frame_arch to get the architecture instead of
5867 using CURRENT_GDBARCH.
5868 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
5869 DWARF2_FRAME_.
5870 (dwarf2_frame_init_reg): New function.
5871 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
5872 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
5873 initialize the register state. Prefix old `enum dwarf2_reg_rule'
5874 tags with DWARF2_FRAME_.
5875 (dwarf2_frame_prev_register): Call get_frame_arch to get the
5876 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
5877 dwarf2_reg_rule' tags with DWARF2_FRAME_.
5878
ec7d9e56
AC
58792004-02-06 Andrew Cagney <cagney@redhat.com>
5880
dd1abb8c
AC
5881 * tui/tui-data.h (struct tui_list): Rename _TuiList.
5882 (enum tui_data_type): Rename _TuiDataType.
5883 (struct tui_layout_def): Rename _TuiLayoutDef.
5884 (struct tui_source_element): Rename _TuiSourceElement.
5885 (struct tui_data_element): Rename _TuiDataElement.
5886 (struct tui_command_element): Rename _TuiCommandElement.
5887 (struct tui_locator_element): Rename _TuiLocatorElement.
5888 (union tui_which_element): Define.
5889 (struct tui_win_element): Rename _TuiWinElement.
5890 (struct tui_data_info): Rename _TuiDataInfo.
5891 (struct tui_source_info): Rename _TuiSourceInfo.
5892 (struct tui_command_info): Rename _TuiCommandInfo.
5893 (tui_initialize_static_data): Rename initializeStaticData.
5894 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
5895 (tui_alloc_win_info): Rename allocWinInfo.
5896 (tui_init_generic_part): Rename initGenericPart.
5897 (tui_init_win_info): Rename initWinInfo.
5898 (tui_alloc_content): Rename allocContent.
5899 (tui_add_content_elements): Rename addContentElements.
5900 (tui_init_content_element): Rename initContentElement.
5901 (tui_free_window): Rename freeWindow.
5902 (tui_free_win_content): Rename freeWinContent.
5903 (tui_free_data_content): Rename freeDataContent.
5904 (tui_free_all_source_wins_content): Rename
5905 freeAllSourceWinsContent.
5906 (tui_del_window): Rename tuiDelWindow.
5907 (tui_del_data_windows): Rename tuiDelDataWindows.
5908 (tui_partial_win_by_name): Rename partialWinByName.
5909 (tui_win_name): Rename winName.
5910 (tui_current_layout): Rename currentLayout.
5911 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
5912 (tui_term_height): Rename termHeight.
5913 (tui_set_term_height_to): Rename setTermHeightTo.
5914 (tui_term_width): Rename termWidth.
5915 (tui_set_term_width_to): Rename setTermWidthTo.
5916 (tui_set_gen_win_origin): Rename setGenWinOrigin.
5917 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
5918 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
5919 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
5920 (tui_source_windows): Rename sourceWindows.
5921 (tui_clear_source_windows): Rename clearSourceWindows.
5922 (tui_clear_source_windows_detail): Rename
5923 clearSourceWindowsDetail.
5924 (tui_clear_win_detail): Rename clearWinDetail.
5925 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
5926 (tui_default_tab_len): Rename tuiDefaultTabLen.
5927 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
5928 (tui_win_with_focus): Rename tuiWinWithFocus.
5929 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
5930 (tui_layout_def): Rename tuiLayoutDef.
5931 (tui_win_resized): Rename tuiWinResized.
5932 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
5933 (tui_next_win): Rename tuiNextWin.
5934 (tui_prev_win): Rename tuiPrevWin.
5935 (tui_add_to_source_windows): Rename addToSourceWindows.
5936 * tui/tui-winsource.c, tui/tui-win.c: Update references.
5937 * tui/tui-layout.c, tui/tui-source.c: Ditto.
5938 * tui/tui-stack.c, tui/tui-io.c: Ditto.
5939 * tui/tui.c, tui/tui-data.c: Ditto.
5940 * tui/tui-interp.c, tui/tui-data.c: Ditto.
5941 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
5942
a358af15
AC
5943 * tui/tui-source.h: Update copyright. Include "tui-data.h".
5944 (struct symtab): Declare.
5945 (tui_set_source_content): Rename tuiSetSourceContent.
5946 (tui_show_symtab_source): Rename tuiShowSource.
5947 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
5948 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
5949 * tui/tui-source.c: Update copyright. Update references.
5950 * tui/tui-win.c, tui/tui-winsource.c: Update references.
5951 * tui/tui-stack.c: Update references.
5952
a21fcd8f
AC
5953 * tui/tui-win.h: Update copyright. Include "tui-data.h".
5954 (struct tui_win_info): Declare.
5955 (tui_scroll_forward): Rename tuiScrollForward.
5956 (tui_scroll_backward): Rename tuiScrollBackward.
5957 (tui_scroll_left): Rename tuiScrollLeft.
5958 (tui_scroll_right): Rename tuiScrollRight.
5959 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
5960 (tui_resize_all): Rename tuiResizeAll.
5961 (tui_refresh_all_win): Rename tuiRefreshAll.
5962 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
5963 * tui/tui-layout.c, * tui/tui-io.c: Update references.
5964 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
5965 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
5966
edae1ccf
AC
5967 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
5968 (tui_erase_data_content): Rename tuiEraseDataContent.
5969 (tui_display_all_data): Rename tuiDisplayAllData.
5970 (tui_check_data_values): Rename tuiCheckDataValues.
5971 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
5972 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
5973 (tui_first_data_element_no_in_line): Rename
5974 tuiFirstDataElementNoInLine.
5975 (tui_delete_data_content_windows): Rename
5976 tuiDeleteDataContentWindows.
5977 (tui_refresh_data_win): Rename tuiRefreshDataWin.
5978 (tui_display_data_from): Rename tuiDisplayDataFrom.
5979 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
5980 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
5981 * tui/tui-win.c, tui/tui-regs.c: Update references.
5982 * tui/tui-layout.c, tui/tui.c: Update references.
5983
ec7d9e56
AC
5984 * tui/tui-wingeneral.h: Update copyright.
5985 (m_allBeVisible): Delete macro.
8a1dac83 5986 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
5987 (struct tui_gen_win_info): Declare.
5988 (struct tui_win_info): Declare.
5989 (tui_unhighlight_win): Rename unhighlightWin.
5990 (tui_make_visible, tui_make_invisible): Replace makeVisible.
5991 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
5992 (tui_make_window): Rename makeWindow.
5993 (tui_copy_win): Rename copyWin.
5994 (tui_box_win): Rename boxWin.
5995 (tui_highlight_win): Rename highlightWin.
5996 (tui_check_and_display_highlight_if_needed): Rename
5997 checkAndDisplayHighlightIfNeeded.
5998 (tui_refresh_all): Rename refreshAll.
5999 (tui_delete_win): Rename tuiDelwin.
6000 (tui_refresh_win): Rename tuiRefreshWin.
6001 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6002 (tui_make_visible, tui_make_invisible): New functions.
6003 (tui_make_all_visible, tui_make_all_invisible): New functions.
6004 (make_all_visible): Rename makeAllVisible.
6005 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6006 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6007 * tui/tui-windata.c, tui/tui-win.c: Update references.
6008 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6009 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6010
1e52e2eb
MK
60112004-02-06 Mark Kettenis <kettenis@gnu.org>
6012
6013 * proc-api.c (write_with_trace): Initialize local variable to
6014 silence compiler warning.
6015
f80bda8e
AC
60162004-02-06 Andrew Cagney <cagney@redhat.com>
6017
6018 * tui/tui-source.h: Do not include "defs.h".
6019 (struct tui_win_info): Declare.
6020 (tui_set_source_content_nil): Declare.
6021 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6022 (union tui_line_or_address): Rename _TuiLineOrAddress.
6023 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6024 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6025 (tui_update_source_window_as_is): Rename
6026 tuiUpdateSourceWindowAsIs.
6027 (tui_update_source_windows_with_addr): Rename
6028 tuiUpdateSourceWindowsWithAddr.
6029 (tui_update_source_windows_with_line): Rename
6030 tuiUpdateSourceWindowsWithLine.
6031 (tui_clear_source_content): Rename tuiClearSourceContent.
6032 (tui_erase_source_content): Rename tuiEraseSourceContent.
6033 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6034 (tui_show_source_content): Rename tuiShowSourceContent.
6035 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6036 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6037 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6038 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6039 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6040 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6041 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6042 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6043 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6044 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6045 (struct tui_win_info): Declare.
6046 * tui/tui-stack.c: Update references.
6047 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6048 * tui/tui-win.c, tui/tui-source.c: Ditto.
6049 * tui/tui.c, tui/tui-disasm.c: Ditto.
6050
9fbfb822
MK
60512004-02-06 Mark Kettenis <kettenis@gnu.org>
6052
6053 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6054 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6055
03cebad2
MK
60562004-02-05 Mark Kettenis <kettenis@gnu.org>
6057
6058 * infrun.c (handle_inferior_event): Allow for breakpoint
6059 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6060 and SIGEMT. Update comments.
6061 * NEWS (Revised SPARC target): Mention support for non-executable
6062 stack.
6063
290281b1
MK
60642004-02-04 Mark Kettenis <kettenis@gnu.org>
6065
6066 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6067 * inftarg.c: Update copyright year.
6068 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6069 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6070 (sparc_xfer_wcookie): New function.
6071 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6072 * Makefile.in (sparc-nat.o): Update dependencies.
6073 * config/sparc/nm-nbsd.h: Include "target.h".
6074 (NATIVE_XFER_WCOOKIE): New define.
6075 (sparc_xfer_wcookie): New prototype.
6076
212161df
AC
60772004-02-04 Andrew Cagney <cagney@redhat.com>
6078
6079 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6080 SYSCALL_TRAP function.
6081 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6082
6e4c6c91
DJ
60832004-02-04 Andrew Cagney <cagney@redhat.com>
6084 Daniel Jacobowitz <drow@mvista.com>
6085
6086 * objfiles.h: Delete comments refering to inside_entry_func and
6087 DEPRECATED_FRAME_CHAIN_VALID.
6088 * defs.h (inside_entry_func): Update prototype..
6089 * blockframe.c (inside_entry_func): Rename to
6090 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6091 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6092
cae688ec
JJ
60932004-02-03 Jeff Johnston <jjohnstn@redhat.com>
6094
6095 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6096 outside of #ifdef SOLIB_ADD region.
6097 (do_restore_lang_radix_cleanup): Ditto.
6098 (resolve_pending_breakpoint): Ditto.
6099
19217676
AC
61002004-02-03 Andrew Cagney <cagney@redhat.com>
6101
6102 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6103 (process_note_abi_tag_sections): Delete unused function.
6104 (ia64_read_fp): Delete unused function.
6105 (gdbarch_extract_struct_value_address): Delete declaration.
6106
876753be
AC
61072004-02-02 Andrew Cagney <cagney@redhat.com>
6108
6109 * vax-tdep.c (vax_frame_chain): Delete call to
6110 deprecated_inside_entry_file.
6111 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6112
d4f10bf2
MK
61132004-02-02 Mark Kettenis <kettenis@gnu.org>
6114
6115 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6116 column that's "empty" or "same value" when eliminating REG_RA
6117 rules.
6118
cae688ec
JJ
61192004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6120
6121 * NEWS: Add information about new pending breakpoint support.
6122
0101ce28
JJ
61232004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6124
6125 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6126 and pending fields for pending breakpoint support.
6127 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6128 (condition_command): Only parse condition if not a pending
6129 breakpoint.
6130 (print_one_breakpoint): Add support for pending breakpoints.
6131 (describe_other_breakpoints): Add checks to verify we are not
6132 dealing with pending breakpoints.
6133 (check_duplicates): Don't check pending breakpoints.
6134 (set_raw_breakpoint): Initialize pending flag.
6135 (do_restore_lang_radix_cleanup): New cleanup routine.
6136 (resolve_pending_breakpoint): New function.
6137 (re_enable_breakpoints_in_shlibs): Try and resolve any
6138 pending breakpoints via resolve_pending_breakpoint.
6139 (mention): Add pending breakpoint support.
6140 (parse_breakpoint_sals): Add new parameter to pass to
6141 decode_line_1 to indicate silent errors when files or functions
6142 are not found. Change all callers.
6143 (do_captured_parse_breakpoint): New function.
6144 (break_command_1): Change prototype to return an rc value and to
6145 take an optional pending breakpoint pointer. Support creating
6146 a pending breakpoint if a "not found" form of error occurs when
6147 parsing the breakpoint. Also support resolving an existing pending
6148 breakpoint and be silent if the resolution fails.
6149 (create_breakpoints): Change prototype to take pending breakpoint
6150 pointer. When resolving a pending breakpoint, use the new pointer
6151 to provide a conditional or commands added by the end-user.
6152 (delete_breakpoint): Add appropriate check for pending.
6153 (breakpoint_re_set_one): Ditto.
6154 (do_enable_breakpoint): Ditto.
6155
8d577d32
DC
61562004-02-02 David Carlton <carlton@kealia.com>
6157
6158 * valops.c (enum oload_classification): New.
6159 (find_overload_match): Break implementation into separate
6160 functions; delete #if 0'd code; look for symbols within
6161 namespaces.
6162 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6163 (find_oload_champ,oload_method_static,classify_oload_match): New.
6164 * cp-support.h: Add declaration for cp_func_name; update
6165 declaration for make_symbol_overload_list.
6166 * cp-support.c (cp_func_name): New.
6167 (overload_list_add_symbol): Fix comment, use
6168 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6169 (make_symbol_overload_list): Take a function name and a namespace
6170 instead of a symbol; change implementation.
6171 (make_symbol_overload_list_using): New.
6172 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6173
22e8e3c7
FF
61742004-02-02 Fred Fish <fnf@redhat.com>
6175
6176 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 6177 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
6178 * remote-sim.c (gdb_os_write_stderr): Write output to
6179 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6180 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 6181 gdb_stderr stream and update copyright years.
22e8e3c7 6182
6b753f60
DJ
61832004-02-01 Daniel Jacobowitz <drow@mvista.com>
6184
6185 * Makefile.in (mips-linux-nat.o): Update dependencies.
6186 * mips-linux-nat.c: Include mips-tdep.h.
6187
61882004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
6189
6190 * sol-thread.c (sol_thread_xfer_partial): New function.
6191 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6192 (init_sol_core_ops): Likewise.
6193
6194 * procfs.c (procfs_xfer_partial): New function.
6195 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6196 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6197
6198 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6199 procfs_xfer_auxv function.
6200
6201 * procfs.c (procfs_make_note_section): If we can read
6202 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6203 * linux-proc.c (linux_make_note_section): Likewise.
6204
6205 * auxv.h: New file.
6206 * auxv.c: New file.
6207 * Makefile.in (auxv_h): New variable.
6208 (COMMON_OBS): Add auxv.o here.
6209 (auxv.o): New target.
6210
6211 * corelow.c (core_xfer_partial): New function.
6212 (init_core_ops): Use it for core_ops.to_xfer_partial.
6213
6214 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
6215 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
6216 macro if that is defined.
6217
fa5281d0
DJ
62182004-02-01 Daniel Jacobowitz <drow@mvista.com>
6219
6220 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
6221 and check the specified thread for each breakpoint.
6222 * breakpoint.h (bpstat_stop_status): Update prototype.
6223 * infrun.c (handle_inferior_event): Update calls to
6224 bpstat_stop_status.
6225
26ee262d
DJ
62262004-02-01 Daniel Jacobowitz <drow@mvista.com>
6227
6228 * Makefile.in (cli-cmds.o): Add $(readline_h).
6229
d9b52655
DJ
62302004-02-01 Daniel Jacobowitz <drow@mvista.com>
6231
6232 * cli/cli-cmds.c: Include readline.h.
6233 (complete_command): Pass the start of the last word to
6234 complete_line.
6235
9709f61c
DJ
62362004-01-31 Daniel Jacobowitz <drow@mvista.com>
6237
6238 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
6239 argument, and change first argument to a CORE_ADDR.
6240 * breakpoint.h (bpstat_stop_status): Update prototype.
6241 * infrun.c (adjust_pc_after_break): Add a new comment.
6242 (handle_inferior_event): Update calls to bpstat_stop_status.
6243
4f1280bb
DJ
62442004-01-31 Daniel Jacobowitz <drow@mvista.com>
6245
6246 * breakpoint.h: Update copyright years.
6247
4fa8626c
DJ
62482004-01-31 Daniel Jacobowitz <drow@mvista.com>
6249
6250 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
6251 (bpstat_stop_status): Don't decrement PC.
6252 * breakpoint.h (software_breakpoint_inserted_here_p): Add
6253 prototype.
6254 * infrun.c (adjust_pc_after_break): New function.
6255 (handle_inferior_event): Call it, early. Remove later references
6256 to DECR_PC_AFTER_BREAK.
6257 (normal_stop): Add commentary.
6258
fad0733a
DJ
62592004-01-31 Daniel Jacobowitz <drow@mvista.com>
6260
6261 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
6262 2004-01-27 double-free fix.
6263
42cdca6c
MK
62642004-01-31 Mark Kettenis <kettenis@gnu.org>
6265
6266 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6267 (sparc32_frame_prev_register): Handle StackGhost.
6268 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6269
932d5416
RM
62702004-01-29 Roland McGrath <roland@redhat.com>
6271
6272 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
6273 * configure: Regenerated.
6274
6275 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6276 * Makefile.in (procfs.o): Add dep.
6277
47d3492a
AC
62782004-01-28 Andrew Cagney <cagney@redhat.com>
6279
6280 * tui/tui-stack.h: Update copyright.
6281 (struct frame_info): Add opaque declaration.
6282 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6283 (tui_show_locator_content): Rename tuiShowLocatorContent.
6284 (tui_show_frame_info): Rename tuiShowFrameInfo.
6285 * tui/tui-stack.c: Update copyright. Update references.
6286 * tui/tui-winsource.c: Update references.
6287 * tui/tui-win.c: Update references.
6288 * tui/tui-layout.c: Update references.
6289 * tui/tui-hooks.c: Update copyright, update references.
6290 * tui/tui.c: Update copyright, update references.
6291 * tui/tui-disasm.c: Update references.
6292
5d51ca54
DC
62932004-01-28 David Carlton <carlton@kealia.com>
6294
6295 * dwarf2read.c (add_partial_structure): Use demangled name if
6296 namespace equals "".
6297
086ed43d
JB
62982004-01-27 Jim Blandy <jimb@redhat.com>
6299
6300 Clean up misapplied patch:
6301 * dwarf2read.c (determine_prefix): Change one of the two forward
6302 declarations for 'determine_prefix_aux' to a declaration for this.
6303 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6304 argument to 'die_specification'.
6305
2a35147e
JB
6306 * dwarf2read.c (read_func_scope): Re-indent comment.
6307
a355c7de 63082004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 6309
a355c7de
AC
6310 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6311 b->exp to NULL after freeing so that error during re-parsing or
6312 evaluation of expressions associated with breakpoint don't
6313 eventually lead to re-freeing of storage.
6314 Committed by Andrew Cagney.
6315
63ff5125
AC
63162004-01-27 Andrew Cagney <cagney@redhat.com>
6317
6318 * source.c (ambiguous_line_spec): Delete undefined declaration.
6319 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6320 (m32r_set_server_address, m32r_set_download_path): Ditto.
6321 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6322
e142c38c
DJ
63232004-01-27 Daniel Jacobowitz <drow@mvista.com>
6324
6325 * dwarf2read.c: Update calls to changed and renamed functions, and
6326 references to moved variables.
6327
6328 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6329 language, language_defn, list_in_scope, and ftypes members.
6330 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6331 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6332 (baseaddr): Remove globals.
6333
6334 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6335 (set_cu_language, die_is_declaration, die_specification)
6336 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6337 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6338 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6339 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6340
6341 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6342 cu.list_in_scope. Don't initialize cu_header_offset.
6343 (add_partial_symbol): Add local baseaddr.
6344 (psymtab_to_symtab_1): Add local baseaddr. Use
6345 objfile->section_offsets for consistency. Don't initialize
6346 cu_header_offset; do initialize cu.header.offset and
6347 cu.list_in_scope.
6348 (read_file_scope, read_func_scope, read_lexical_block_scope)
6349 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6350
c6e06ede
MC
63512004-01-27 Michael Chastain <mec.gnu@mindspring.com>
6352
fb328ecc 6353 * PROBLEMS: Add gdb/1516.
c6e06ede 6354
48184fd4
AC
63552003-12-29 Robert Millan <robertmh@gnu.org>
6356
6357 Patch committed by Andrw Cagney.
6358 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
6359 * configure.tgt: Match knetbsd*-gnu.
6360
c1321b30
AC
63612004-01-26 Andrew Cagney <cagney@redhat.com>
6362
f3699be3
AC
6363 * breakpoint.c (catch_command_1): Delete #ifdef code.
6364 (catch_fork_command_1): Delete #ifdef wrapper.
6365 (catch_exec_command_1): Ditto.
6366 (catch_load_command_1): Ditto.
6367 (catch_unload_command_1): Ditto.
6368
c1321b30
AC
6369 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
6370 (catch_breakpoint): Delete #if0ed function.
6371 (disable_catch_breakpoint): Ditto.
6372 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
6373 (disable_catch, enable_catch, delete_catch): Ditto.
6374
b4501125
AC
63752004-01-26 Andrew Cagney <cagney@redhat.com>
6376
6377 * remote.c (echo_check, quit_flag): Delete variables.
6378 (cisco_kernel_mode): Delete variable.
6379 (minitelnet_return, tty_input, escape_count): Delete variables.
6380 (remote_cisco_mode): Delete variable.
6381 (remote_cisco_open, remote_cisco_close): Delete function.
6382 (remote_cisco_mourn, remote_cisco_wait): Delete function.
6383 (init_remote_cisco_ops): Delete function.
6384 (_initialize_remote): Do not install "remote cisco" code.
6385 (read_frame): Delete cisco specific code.
6386 (remote_info_process): Delete function.
6387 (remote_wait): Delete cisco specific code.
6388 (remote_cisco_section_offsets): Delete function.
6389 (remote_cisco_objfile_relocate): Delete function.
6390 (remote_async_wait): Delete cisco specific code.
6391 (minitelnet, readtty, readsocket): Delete function.
6392
74055713
AC
63932004-01-26 Andrew Cagney <cagney@redhat.com>
6394
6395 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
6396 comments mentioning extract_returned_value_address.
6397 * infcmd.c (print_return_value): Update. Add comments on
6398 extract_returned_value_address.
6399 * stack.c (return_command): Add comments on
6400 extract_returned_value_address.
6401 * values.c: Update comment.
6402 * m32r-tdep.c: Update comment.
6403 * sparc-tdep.c: Update comment.
6404 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
6405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6406 * sh64-tdep.c (sh64_gdbarch_init): Update.
6407 * sh-tdep.c (sh_gdbarch_init): Update.
6408 * s390-tdep.c (s390_gdbarch_init): Update.
6409 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6410 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6411 * m68k-tdep.c (m68k_gdbarch_init): Update.
6412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6413 * m32r-tdep.c (m32r_gdbarch_init): Update.
6414 * ia64-tdep.c (ia64_gdbarch_init): Update.
6415 * h8300-tdep.c (h8300_gdbarch_init): Update.
6416 * frv-tdep.c (frv_gdbarch_init): Update.
6417 * arm-tdep.c (arm_gdbarch_init): Update.
6418 * alpha-tdep.c (alpha_gdbarch_init): Update.
6419
a67af2b9
AC
64202004-01-26 Andrew Cagney <cagney@redhat.com>
6421
6422 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
6423 SYMBOL_LOCATION_FUNCS
6424 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
6425 "struct symbol_ops".
6426 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
6427 type to "struct symbol_ops".
6428 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
6429 (struct symbol): Replace ".aux_value.loc.funcs" and
6430 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
6431 (SYMBOL_OBJFILE): Delete macro.
6432 (SYMBOL_LOCATION_FUNCS): Delete macro.
6433 (SYMBOL_LOCATION_BATON): Update.
6434 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
6435 intead of SYMBOL_LOCATION_FUNCS.
6436 * ax-gdb.c (gen_var_ref): Ditto.
6437 * printcmd.c (address_info): Ditto.
6438 * findvar.c (read_var_value): Ditto.
6439 (symbol_read_needs_frame): Ditto.
6440
c034e007
AC
64412004-01-26 Andrew Cagney <cagney@redhat.com>
6442
6443 * dwarf2read.c (read_func_scope): Document frame-base hack.
6444
bb472c1e
MK
64452004-01-25 Mark Kettenis <kettenis@gnu.org>
6446
6447 * infcmd.c (print_return_value): Plug memory leak; delete
6448 ui_stream object. Rename argument `structure_return' to
6449 `struct_return'.
6450
c8e737d5
MK
64512004-01-25 Mark Kettenis <kettenis@gnu.org>
6452
f941662f
MK
6453 * infcmd.c (print_return_value): Wrap long lines.
6454 (finish_command_continuation, finish_command): Remove unused
6455 variable `funcaddr'. Fix some coding-standards problems.
6456
c558d81a 6457 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 6458 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
6459 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
6460 TDEP->fpregset to zero.
6461
bf1e5861 6462 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
6463 floating-point registers for traditional NetBSD core files.
6464 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
6465 TDEP->sizeof_fpregset here.
6466
4c72d57a
MK
64672004-01-25 Mark Kettenis <kettenis@gnu.org>
6468
566626fa
MK
6469 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
6470 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
6471 function with code split out from
6472 sparc32nbsd_sigcontext_frame_cache.
6473 (sparc32nbsd_sigcontext_frame_cache): Use
6474 sparc32nbsd_sigcontext_saved_regs.
6475 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
6476 OpenBSD.
6477 * sparcobsd-tdep.c: New file.
6478 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
6479 (sparcobsd-tdep.o): New dependency.
6480 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
6481 * config/sparc/obsd.mt: New file.
6482
4c72d57a
MK
6483 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
6484 TDEP->fpregset to be initialized to enable core file register
6485 sets.
6486
7e5e9f88
MK
64872004-01-24 Mark Kettenis <kettenis@gnu.org>
6488
f0f207fd 6489 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
6490 Add opaque declarations.
6491 (sparc64nbsd_sigcontext_saved_regs): New prototype.
6492 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
6493 function with code split out from
6494 sparc64nbsd_sigcontext_frame_cache.
6495 (sparc64nbsd_sigcontext_frame_cache): Use
6496 sparc64nbsd_sigcontext_saved_regs.
6497 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
6498 OpenBSD.
6499 * sparc64obsd-tdep.c: New file.
6500 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
6501 (sparc64obsd-tdep.o): New dependency.
6502 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
6503 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
6504 * config/sparc/obsd64.mt: New file.
6505
690668cc
MK
6506 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
6507 read the instruction at PC.
6508
7e5e9f88
MK
6509 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
6510 value of GDB_OSABI_DEFAULT.
6511 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
6512 instead of GDB_OSABI_NETBSD_AOUT.
6513
68b6dce9
NR
65142004-01-24 Nick Roberts <nick@nick.uklinux.net>
6515
6516 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
6517 copyright.
6518
080ce8c0
AC
65192004-01-23 Andrew Cagney <cagney@redhat.com>
6520
6521 * printcmd.c (display_command): Replace tui_set_display call with
6522 tui_set_layout_for_display_command.
6523 * tui/tui.h (enum tui_win_type): Define.
6524 (tui_set_layout): Delete declaration.
6525 (tui_set_layout_for_display_command): Rename set_tui_layout.
6526 * tui/tui-data.h (enum tui_layout_type): Define.
6527 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
6528 "tui.h".
6529 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
6530 (tui_default_win_height): Rename tuiDefaultWinHeight.
6531 (tui_default_win_viewport_height): Rename
6532 tuiDefaultWinViewportHeight.
6533 (tui_set_layout): RenametuiSetLayout.
6534 * tui/tui-layout.c: Update references.
6535 * tui/tui.c: Update references.
6536 * tui/tui-disasm.c: Update references.
6537
b368761e
DC
65382004-01-23 David Carlton <carlton@kealia.com>
6539
6540 Partial workaround for PR c++/1511:
6541 * cp-namespace.c: Include frame.h.
6542 (cp_lookup_transparent_type): New
6543 (cp_lookup_transparent_type_loop): New.
6544 * cp-support.h: Declare cp_lookup_transparent_type.
6545 * symtab.c (basic_lookup_transparent_type): Renamed from
6546 lookup_transparent_type.
6547 (lookup_transparent_type): Replace old body by a call to
6548 current_language->la_lookup_transparent_type.
6549 * symtab.h: Update copyright. Declare
6550 basic_lookup_transparent_type.
6551 * language.h: Update copyright.
6552 (struct language_defn): Add la_lookup_transparent_type.
6553 * language.c: Update copyright.
6554 (unknown_language_defn): Add basic_lookup_transparent_type.
6555 (auto_language_defn): Add basic_lookup_transparent_type.
6556 (local_language_defn): Add basic_lookup_transparent_type.
6557 * ada-lang.c: Update copyright.
6558 (ada_language_defn): Add basic_lookup_transparent_type.
6559 * c-lang.c: Update copyright.
6560 (c_language_defn): Add basic_lookup_transparent_type.
6561 (cplus_language_defn): Add basic_lookup_transparent_type.
6562 (asm_language_defn): Add basic_lookup_transparent_type.
6563 (minimal_language_defn): Add basic_lookup_transparent_type.
6564 * f-lang.c: Update copyright.
6565 (f_language_defn): Add basic_lookup_transparent_type.
6566 * jv-lang.c: Update copyright.
6567 (java_language_defn): Add basic_lookup_transparent_type.
6568 * m2-lang.c: Update copyright.
6569 (m2_language_defn): Add basic_lookup_transparent_type.
6570 * objc-lang.c: Update copyright.
6571 (objc_language_defn): Add basic_lookup_transparent_type.
6572 * p-lang.c: Update copyright.
6573 (p_language_defn): Add basic_lookup_transparent_type.
6574 * scm-lang.c: Update copyright.
6575 (scm_language_defn): Add basic_lookup_transparent_type.
6576 * Makefile.in (cp-namespace.o): Depend on frame.h.
6577
fdde2d81
DC
65782004-01-23 David Carlton <carlton@kealia.com>
6579
6580 Patch for PR c++/1520:
6581 * dwarf2read.c (read_func_scope): Set processing_current_prefix
6582 properly if we have a specification die.
6583 (determine_prefix_aux): Rename from determine_prefix.
6584 (determine_prefix): Like the old determine_prefix, but never
6585 returns NULL.
6586
5b828b6b
TR
65872004-01-23 Theodore A. Roth <troth@openavr.org>
6588
6589 * avr-tdep.c: Update copyright.
6590 (avr_iaddr_p): Delete unused function.
6591 (avr_saddr_p): Delete unused function.
6592
a1b8c067
DC
65932004-01-23 David Carlton <carlton@kealia.com>
6594
6595 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
6596 Fix for PR symtab/1534.
6597
f2cab569
MK
65982004-01-23 Mark Kettenis <kettenis@gnu.org>
6599
6600 * NEWS (New native configurations): Mention OpenBSD/sparc and
6601 OpenBSD/sparc64.
6602 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
6603 * configure.host: Likewise.
6604 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
6605 handler for OpenBSD.
6606 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
6607
642d8300
MK
66082004-01-22 Mark Kettenis <kettenis@gnu.org>
6609
89aac506
MK
6610 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
6611 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
6612
36662fde
MK
6613 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
6614 * cli/cli-cmds.c (shell_escape): Likewise.
6615
642d8300
MK
6616 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
6617 OpenBSD .note.openbsd.ident sections.
6618
fae299cd
DC
66192004-01-22 David Carlton <carlton@kealia.com>
6620
6621 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
6622 get_scope_pc_bounds.
6623 (read_file_scope): Ditto.
6624 (get_scope_pc_bounds): New function, produced by extracting code
6625 from the above two functions, consolidating it, and adding support
6626 for DW_TAG_namespace.
6627
a49d618c
MK
66282004-01-22 Mark Kettenis <kettenis@gnu.org>
6629
6630 * osabi.c (MAX_NOTESZ): New define.
6631 (check_note): New function.
6632 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
6633 check_note.
6634
fe61caab
RM
66352004-01-21 Roland McGrath <roland@redhat.com>
6636
6637 * MAINTAINERS (write after approval): Add myself.
6638
ec145965
EZ
66392004-01-21 Eli Zaretskii <eliz@gnu.org>
6640
6641 * utils.c (init_page_info): Move declarations of `rows' and
6642 `cols' before the __GO32__-specific code. Move the closing brace
6643 outside the #ifdef __GO32__..#endif block.
6644 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
6645
877522db
PB
66462004-01-21 Paul Brook <paul@codesourcery.com>
6647
6648 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
6649 BPSTAT_WHAT_CHECK_SHLIBS.
6650
dbf5be1c
PB
66512004-01-21 Paul Brook <paul@codesourcery.com>
6652
6653 * MAINTAINERS: Add myself to write-after-approval.
6654
81f08b92
AC
66552004-01-20 Andrew Cagney <cagney@redhat.com>
6656
5a1efed7
AC
6657 * ax-gdb.c (print_axs_value): Delete unused function.
6658 * jv-lang.c (java_lookup_type): Delete unused function.
6659 * cli/cli-dump.c (dump_filetype): Delete unused function.
6660 * remote-mips.c (remote_mips_insert_hw_breakpoint)
6661 (remote_mips_remove_hw_breakpoint): Delete unused functions.
6662 (mips_getstring): Delete unused function.
6663 (pmon_insert_breakpoint): Delete #if0ed function.
6664 (PMON_MAX_BP): Delete #if0ed MACRO.
6665 (mips_pmon_bp_info): Delete #if0ed variable.
6666 (pmon_remove_breakpoint): Delete #if0ed function.
6667 * monitor.c (monitor_write_even_block): Delete unused function.
6668 (monitor_write_memory_block): Delete #if0ed code.
6669 * dink32-rom.c (dink32_load): Delete unused function.
6670 (_initialize_dink32_rom): Delete #if0ed code.
6671 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
6672
b0a30fce
AC
6673 * tui/tui-command.c: Update references.
6674 * tui/tui-io.c: Update references.
6675 * tui/tui-command.h: Update copyright.
6676 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
6677
81f08b92
AC
6678 * source.c (ambiguous_line_spec): Delete never-defined function.
6679 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
6680 * gdbtypes.c (add_name, add_mangled_type): Ditto.
6681 * cli/cli-cmds.c (validate_comname): Ditto.
6682
65f05602
AC
6683 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
6684 "tui-data.h".
6685 (tui_set_disassem_content): Rename tuiSetDisassemContent.
6686 (tui_show_disassem): Rename tuiShowDisassem.
6687 (tui_show_disassem_and_update_source): Rename
6688 tuiVerticalDisassemScroll.
6689 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
6690 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
6691 * tui/tui.h: Update copyright.
6692 (enum tui_status): Define.
6693 * tui/tui-data.h (enum tui_scroll_direction): Define.
6694 * tui/tui-disasm.c: Update copyright. Update references.
6695 * tui/tui-winsource.c: Update copyright. Update references.
6696 * tui/tui-win.c: Update references.
6697 * tui/tui-layout.c: Update references.
6698
6bb0384f
AC
66992004-01-20 Andrew Cagney <cagney@redhat.com>
6700
6701 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
6702 sym2 to start of block.
6703
9175c9a3
MC
67042004-01-19 Michael Chastain <mec.gnu@mindspring.com>
6705
6706 * MAINTAINERS: Delete mmalloc.
6707 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
6708 * NEWS: Mention removal of --with-malloc.
6709 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
6710 * config.in: Regenerate.
6711 * configure: Regenerate.
6bb0384f
AC
6712 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
6713 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
6714 * gdbinit.in: Remove mmalloc.
6715 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
6716 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
6717 * config/i386/go32.mh: Likewise.
6718 * config/i386/interix.mh: Likewise.
6719 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
6720
4fcef00a
JJ
67212004-01-19 Jeff Johnston <jjohnstn@redhat.com>
6722
6723 * linespec.c (decode_variable, symtab_from_filename): Call
6724 error_silent with error message instead of throwing an exception
6725 directly.
6726 * defs.h (error_silent, error_output_message): Add prototypes.
6727 (catch_exceptions_with_msg): Ditto.
6728 * utils.c (error_silent, error_output_message): New functions.
6729 * top.c (catch_exceptions_with_msg): New function.
6730
8e94b928
NR
67312004-01-20 Nick Roberts <nick@nick.uklinux.net>
6732
6733 * mi/mi-cmds.h (enum print_values): Add definition.
6734
6735 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
6736 type and value for simple data types and just the name and type
6737 for complex ones, if required.
6738
6739 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
6740 children, if required.
6741
a02d6af8
KB
67422004-01-19 Kevin Buettner <kevinb@redhat.com>
6743
6744 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
6745 unused declarations.
6746
78a4a9b9
AC
67472004-01-19 Andrew Cagney <cagney@redhat.com>
6748
6749 * top.h (mapped_symbol_files): Delete declaration.
6750 * main.c (captured_main): Delete option "m" and "mapped".
6751 * objfiles.c (mapped_symbol_files): Delete variable.
6752 * symfile.c (symbol_file_command): Delete mmap code.
6753 (symbol_file_add_with_addrs_or_offsets): Ditto.
6754 (add_symbol_file_command, reread_separate_symbols): Ditto.
6755 * objfiles.h (OBJF_MAPPED): Delete.
6756 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
6757 (free_objfile) [USE_MMALLOC]: Ditto.
6758 (open_existing_mapped_file): Delete function.
6759 (open_mapped_file): Delete function.
6760 (map_to_file): Delete function.
6761
2dbd5e30
KB
67622004-01-19 Kevin Buettner <kevinb@redhat.com>
6763
6764 * infrun.c (step_into_function): Account for possible breakpoint
6765 adjustment when computing ``stop_func_start''.
6766
437b434f
KB
67672004-01-19 Kevin Buettner <kevinb@redhat.com>
6768
6769 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
6770 the region size against the size of a pointer, not the size of
6771 a register as given by DEPRECATED_REGISTER_SIZE.
6772
55fb0713
AC
67732004-01-19 Andrew Cagney <cagney@redhat.com>
6774
6775 * tui/tui-regs.h: Include "tui-data.h".
6776 (tuiFirstRegElementNoInLine): Delete declaration.
6777 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
6778 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
6779 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
6780 (tui_calculate_regs_column_count): Rename
6781 tuiCalculateRegsColumnCount.
6782 (tui_check_register_values): Rename tuiCheckRegisterValues.
6783 (tui_show_registers): Rename tuiShowRegisters.
6784 (tui_display_registers_from_line): Rename
6785 tuiDisplayRegistersFromLine.
6786 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
6787 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
6788 (tui_first_reg_element_no_inline): Rename
6789 tuiFirstRegElementNoInLine.
6790 * tui/tui-data.h: Update copyright.
6791 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
6792 * tui/tui-windata.c: Update copyright, update references.
6793 * tui/tui-regs.c: Update copyright, update references.
6794 * tui/tui-win.c: Update copyright, update references.
6795 * tui/tui-layout.c: Update copyright, update references.
fe61caab 6796
cebe9500
AC
67972004-01-18 Andrew Cagney <cagney@redhat.com>
6798
bcdf1568
AC
6799 * tui/tui-io.c: Update copyright.
6800 (key_is_end_sequence, key_is_backspace): New functions.
6801 (key_is_command_char, key_is_start_sequence): New function.
6802 (tui_getc): Update references.
6803 * tui/tui-io.h: Update copyright.
6804 (m_tuiStartNewLine): Delete macro.
6805 (m_isBackspace, m_isDeleteChar): Delete macros.
6806 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
6807 (m_isNextPage, m_isPrevPage): Delete macros.
6808 (m_isLeftArrow, m_isRightArrow): Delete macros.
6809 (m_isXdbStyleCommandChar): Delete macro.
6810 (key_is_start_sequence): Declare, replace m_isStartSequence.
6811 (key_is_end_sequence): Declare, replace m_isEndSequence.
6812 (key_is_backspace): Declare ,replace m_isBackspace.
6813 (key_is_command_char): Declare, replace m_isCommandChar.
6814 * tui/tui-command.c: Update copyright.
6815 (tuiDispatchCtrlChar): Update references.
6816
130d87e6
AC
6817 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
6818 tuiSourceWin.h.
6819
d7b2e967
AC
6820 * tui/tui-command.c: Rename tui/tuiCommand.c.
6821 * tui/tui-command.h: Rename tui/tuiCommand.h.
6822 * tui/tui-data.c: Rename tui/tuiData.c.
6823 * tui/tui-data.h: Rename tui/tuiData.h.
6824 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
6825 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
6826 * tui/tui-io.c: Rename tui/tuiIO.c.
6827 * tui/tui-io.h: Rename tui/tuiIO.h.
6828 * tui/tui-layout.c: Rename tui/tuiLayout.c.
6829 * tui/tui-layout.h: Rename tui/tuiLayout.h.
6830 * tui/tui-regs.c: Rename tui/tuiRegs.c.
6831 * tui/tui-regs.h: Rename tui/tuiRegs.h.
6832 * tui/tui-source.c: Rename tui/tuiSource.c.
6833 * tui/tui-source.h: Rename tui/tuiSource.h.
6834 * tui/tui-stack.c: Rename tui/tuiStack.c.
6835 * tui/tui-stack.h: Rename tui/tuiStack.h.
6836 * tui/tui-win.c: Rename tui/tuiWin.c.
6837 * tui/tui-win.h: Rename tui/tuiWin.h.
6838 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
6839 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
6840 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
6841 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
6842 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
6843 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
6844 * tui/tui-file.c: Update includes.
6845 * tui/tui-hooks.c: Update includes.
6846 * tui/tui-interp.c: Update includes.
6847 * tui/tui.c: Update includes.
6848 * Makefile.in: Update all tui/ dependencies.
6849 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
6850
b2100910
AC
6851 * Makefile.in: Update copyright. Update dependencies.
6852
cebe9500
AC
6853 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
6854 problem.
6855
c6f0559b
AC
68562004-01-18 Andrew Cagney <cagney@redhat.com>
6857
43e9390b
AC
6858 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
6859 instead of register_gdbarch_init.
6860
c6f0559b
AC
6861 * remote-sds.c (tohex): Delete unused function. Update copyright.
6862 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
6863 * v850-tdep.c (v850_register_virtual_size): Ditto.
6864 * target.c (normal_target_post_startup_inferior): Ditto.
6865 * source.c (ambiguous_line_spec): Ditto.
6866 * remote.c (adapt_remote_get_threadinfo): Ditto.
6867 * mi/mi-out.c (out_field_fmt): Ditto.
6868 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
6869 (output_control_change_notification): Ditto.
6870 * m68k-tdep.c (m68k_register_byte): Ditto.
6871 (m68k_remote_breakpoint_from_pc): Ditto.
6872 * ui-out.c (init_ui_out_state): Delete unused declaration.
6873 * stabsread.c (search_value): Ditto.
6874 * mi/mi-cmd-env.c (env_cli_command): Ditto.
6875 * maint.c (print_section_table): Ditto.
6876 * infrun.c (set_follow_fork_mode_command): Ditto.
6877
a8504492
MK
68782004-01-18 Mark Kettenis <kettenis@gnu.org>
6879
6880 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
6881 DW_CFA_def_cfa_exporession. Add support for
6882 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
6883 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
6884
0bd8997e
AC
68852004-01-18 Andrew Cagney <cagney@redhat.com>
6886
6887 * ocd.c: Update copyright.
6888 (bdm_read_register_command): Delete unused function.
6889 (_initialize_remote_ocd): Delete commented out reference.
6890 (get_quoted_char, reset_packet): Delete #if0ed function.
6891 (output_packet, put_quoted_char): Delete #if0ed function.
6892 (stu_put_packet, stu_get_packet): Delete #if0ed function.
6893 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
6894 (BDM_BREAKPOINT): Delete #if0ed macro.
6895 (remote_timeout): Delete #if0ed variable.
6896
31bb40e4
MK
68972004-01-18 Mark Kettenis <kettenis@gnu.org>
6898
6899 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
6900 (core-sol2.o): Remove dependency.
6901 * core-sol2.c: Remove file.
6902
887432a5
AC
69032004-01-17 Andrew Cagney <cagney@redhat.com>
6904
6905 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
6906 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
6907 enums.
6908
29182b13
DJ
69092004-01-17 Daniel Jacobowitz <drow@mvista.com>
6910
6911 * remote.c: Update copyright years.
6912
2963ee1d
DJ
69132004-01-17 Daniel Jacobowitz <drow@mvista.com>
6914
6915 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
6916
79d45cd4
AC
69172004-01-17 Andrew Cagney <cagney@redhat.com>
6918
ee300cd4
AC
6919 * mdebugread.c: Update copyright.
6920 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
6921 (parse_type, parse_procedure): Ditto.
6922 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
6923
fcacc9c2
AC
6924 * cris-tdep.c (cris_store_struct_return): Put back accidently
6925 deleted function.
6926
79d45cd4
AC
6927 * gdbarch.sh: Update copyright year.
6928 * gdbarch.h, gdbarch.c: Re-generate.
6929
b263358a
DJ
69302004-01-17 Daniel Jacobowitz <drow@mvista.com>
6931
6932 Suggested by George Anzinger.
6933 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
6934 correct stack offset. Include unknown opcode numbers in the error
6935 message.
6936
931aecf5
AC
69372004-01-17 Andrew Cagney <cagney@redhat.com>
6938
6939 * x86-64-tdep.c (x86_64_init_abi): No need to clear
6940 extract_struct_value_address, i386 does not set it.
6941 * sparc64-tdep.c (sparc64_init_abi): Do not set
6942 extract_struct_value_address, never called.
6943 (sparc64_extract_struct_value_address): Delete function.
6944 * m68hc11-tdep.c: Update copyright.
6945 (m68hc11_gdbarch_init): Delete redundant assignment of
6946 extract_struct_value_address.
6947 * i386-tdep.c: Update copyright.
6948 (i386_gdbarch_init): Do not set extract_struct_value_address,
6949 never called.
6950 (i386_extract_struct_value_address): Delete function.
6951 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
6952 extract_struct_value_address, never called.
6953 (sparc32_extract_struct_value_address): #if 0 function. Add
6954 comments explaining its future.
6955
756fe439
DJ
69562004-01-17 Daniel Jacobowitz <drow@mvista.com>
6957
6958 * arm-tdep.c (arm_write_pc): New function.
6959 (arm_gdbarch_init): Call set_gdbarch_write_pc.
6960
e74f0f02
DJ
69612004-01-17 Daniel Jacobowitz <drow@mvista.com>
6962
6963 * breakpoint.c (must_shift_inst_regs): Delete.
6964 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
6965 and SHIFT_INST_REGS.
6966 * infcmd.c (step_1, step_1_continuation): Delete references to
6967 SHIFT_INST_REGS.
6968 * infrun.c (keep_going): Likewise.
6969 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
6970 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
6971
b6cb9035
AC
69722004-01-17 Andrew Cagney <cagney@redhat.com>
6973
444a1e2e
AC
6974 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6975 * gdbarch.h, gdbarch.c: Re-generate.
6976 * infcmd.c (print_return_value): Delete reference to
6977 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6978
def7e6ed
AC
6979 * cris-tdep.c (cris_gdbarch_init): Do not set
6980 deprecated_extract_struct_value_address.
6981
07be497a
AC
6982 * xstormy16-tdep.c: Update copyright.
6983 (xstormy16_extract_struct_value_address): Update to current
6984 extract struct value address interface.
6985 (xstormy16_gdbarch_init): Set extract_struct_value_address.
6986 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
6987 current extract struct value address interface.
6988 (sh64_gdbarch_init): Set extract_struct_value_address.
6989
6b4d5c91
AC
6990 * cris-tdep.c: Update copyright.
6991 (cris_extract_struct_value_address): Delete function.
6992 (struct_return_address): Delete variable.
6993 (cris_store_struct_return): Do not set struct_return_address.
6994
464e0365
AC
6995 * mcore-tdep.c: Update copyright.
6996 (mcore_extract_struct_value_address): Delete function. Update
6997 comments.
6998 (mcore_gdbarch_init): Update.
6999 * mn10300-tdep.c: Update copyright.
7000 (mn10300_extract_struct_value_address): Delete function.
7001 (mn10300_gdbarch_init): Update.
7002 * v850-tdep.c: Update copyright.
7003 (v850_extract_struct_value_address): Delete.
7004 (v850_gdbarch_init): Update.
7005 * ns32k-tdep.c: Update copyright.
7006 (ns32k_extract_struct_value_address): Delete.
7007 (ns32k_gdbarch_init): Update.
7008 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7009 (hppa_gdbarch_init): Update.
7010 * vax-tdep.c: Update copyright.
7011 (vax_extract_struct_value_address): Delete.
7012 (vax_gdbarch_init): Update.
7013
afb18d0f
AC
7014 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7015 * gdbarch.h, gdbarch.c: Re-generate.
7016 * procfs.c (procfs_fetch_registers): Delete reference to
7017 DEPRECATED_NPC_REGNUM.
7018 (procfs_store_registers): Ditto.
7019 * regcache.c (generic_target_write_pc): Simplify.
7020 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7021
a698f53e
AC
7022 * core-sol2.c (fetch_core_registers): Replace
7023 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7024
adc11376
AC
7025 * hppa-tdep.c: Update copyright year.
7026 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7027 NPC_REGNUM.
7028 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7029
b6cb9035
AC
7030 * mips-tdep.c (mips_write_pc): New function.
7031 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7032 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7033 (mips_find_saved_regs, mips_software_single_step: Ditto.
7034 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7035 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7036
6d82d43b
AC
70372004-01-17 Andrew Cagney <cagney@redhat.com>
7038
7039 * mips-tdep.c: Re-indent. Group functions by ABI.
7040
71bd6bd4
AC
70412004-01-17 Andrew Cagney <cagney@redhat.com>
7042
7043 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7044 * gdbarch.c: Re-generate.
7045 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7046 DECR_PC_AFTER_BREAK to zero.
7047 * vax-tdep.c (vax_gdbarch_init): Ditto.
7048 * v850-tdep.c (v850_gdbarch_init): Ditto.
7049 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7050 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7051 * sh-tdep.c (sh_gdbarch_init): Ditto.
7052 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7053 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7054 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7055 * mips-tdep.c (mips_gdbarch_init): Ditto.
7056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7058 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7059 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7060 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7061 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7062 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7063 * frv-tdep.c (frv_gdbarch_init): Ditto.
7064 * cris-tdep.c (cris_gdbarch_init): Ditto.
7065 * avr-tdep.c (avr_gdbarch_init): Ditto.
7066 * arm-tdep.c (arm_gdbarch_init): Ditto.
7067 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7068
a02abb62
JB
70692004-01-17 J. Brobecker <brobecker@gnat.com>
7070
7071 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7072 Delete, no longer used.
7073 (read_subrange_type): New function, mostly extracted from
7074 read_array_type().
7075 (read_array_type): Replace extracted code by call to
7076 read_subrange_type().
7077 (dwarf2_get_attr_constant_value): New function.
7078 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7079 (add_partial_symbol): Likewise.
7080 (process_die): Likewise.
7081 (new_symbol): Likewise.
7082 (read_type_die): Likewise.
7083
cf5b2f1b
AC
70842004-01-16 Andrew Cagney <cagney@redhat.com>
7085
7086 * symfile.c: Update copyright year.
7087 (compare_symbols): Delete unused function.
7088 * stabsread.c: Update copyright year.
7089 (lrs_general_complaint): Delete unused function.
7090 (ref_search_value): Ditto.
7091 (get_substring): Delete declaration.
7092 * sh64-tdep.c: Update copyright year.
7093 (sh64_get_gdb_regnum): Delete unused function.
7094 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7095 Delete unused function.
7096
d33b9831
MK
70972004-01-17 Mark Kettenis <kettenis@gnu.org>
7098
7099 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7100 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7101
7aea86e6
AC
71022004-01-16 Andrew Cagney <cagney@redhat.com>
7103
7104 Changes from Peter Schauer.
7105 * rs6000-tdep.c: Update copyright year.
7106 (rs6000_push_dummy_call): Update the stack pointer before
7107 accessing the corresponding stack region.
7108 * rs6000-nat.c: Update copyright year.
7109 (set_host_arch): Set "info.abfd" to "exec_bfd".
7110
26b0da32
MK
71112004-01-15 Mark Kettenis <kettenis@gnu.org>
7112
7113 * blockframe.c: Update copyright year.
7114 (inside_entry_func): Don't treat a zero PC specially.
7115
86fbe6cc
EZ
71162004-01-14 Elena Zannoni <ezannoni@redhat.com>
7117
7118 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7119 variable.
7120 (gcore_create_callback): Ditto. Skip any memory segment that has
7121 no permissions set.
7122
63d06c5c
DC
71232004-01-14 David Carlton <carlton@kealia.com>
7124
7125 Change symbols for C++ nested types to contain the fully qualified
7126 name, if possible. (At least in the DWARF-2 case.) Partial fix
7127 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7128 c++/895.
7129 * c-exp.y (qualified_type): Handle types nested within classes.
7130 * cp-namespace.c: Update comments.
7131 (cp_set_block_scope): Delete #if 0.
7132 (cp_lookup_nested_type): Handle types nested within classes.
7133 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7134 when appropriate.
7135 (add_partial_symbol): Add the name of the enclosing namespace to
7136 types.
7137 (pdi_needs_namespace): New.
7138 (add_partial_namespace): Tweak comment.
7139 (add_partial_structure): New.
7140 (psymtab_to_symtab_1): Initialize processing_current_prefix
7141 here...
7142 (process_die): instead of here.
7143 (read_structure_scope): Try to figure out the name of the class or
7144 namespace that the structure might be defined within.
7145 (read_enumeration): Generate fully-qualified names, if possible.
7146 (read_namespace): Don't set name to NULL.
7147 (die_specification): New.
7148 (new_symbol): Generate fully-qualified names for types.
7149 (read_type_die): Determine appropriate prefix.
7150 (determine_prefix): New.
7151 (typename_concat): New.
7152 (class_name): New.
7153 * valops.c (value_aggregate_elt): Pass NOSIDE to
7154 value_struct_elt_for_reference.
7155 (value_struct_elt_for_reference): Make static, add NOSIDE
7156 parameter, call value_maybe_namespace_elt as a last resort.
7157 (value_namespace_elt): Break out code into
7158 value_maybe_namespace_elt.
7159 (value_maybe_namespace_elt): New.
7160
87783b8b
AC
71612004-01-12 Andrew Cagney <cagney@redhat.com>
7162
7163 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7164 cooked floating-point registers.
7165 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7166 and value_to_register.
7167
6503b91e
AC
71682004-01-13 Andrew Cagney <cagney@redhat.com>
7169
7170 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7171 * gdbarch.c: Re-generate.
7172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7173 FUNCTION_START_OFFSET.
7174 * v850-tdep.c (v850_gdbarch_init): Ditto.
7175 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7176 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7177 * sh-tdep.c (sh_gdbarch_init): Ditto.
7178 * s390-tdep.c (s390_gdbarch_init): Ditto.
7179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7180 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7182 * mips-tdep.c (mips_gdbarch_init): Ditto.
7183 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7184 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7186 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7187 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7188 * i386-tdep.c (i386_gdbarch_init): Ditto.
7189 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7190 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7191 * frv-tdep.c (frv_gdbarch_init): Ditto.
7192 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7193 * cris-tdep.c (cris_gdbarch_init): Ditto.
7194 * avr-tdep.c (avr_gdbarch_init): Ditto.
7195 * arm-tdep.c (arm_gdbarch_init): Ditto.
7196 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7197
ea1dd7bc
DJ
71982004-01-13 Daniel Jacobowitz <drow@mvista.com>
7199
7200 * infrun.c (follow_fork_mode_ask): Remove.
7201 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7202 (follow_fork): Simplify and remove internal error for
7203 follow_fork_mode_ask.
7204 (_initialize_infrun): Update "set follow-fork-mode" help text.
7205
0f0cffd2
AC
72062004-01-13 Andrew Cagney <cagney@redhat.com>
7207
7208 * configure.in: Update copyright year.
7209 (build_warnings): Add -Wunused-label.
7210 * configure: Re-generate.
7211
de38af99
AC
72122004-01-12 Andrew Cagney <cagney@redhat.com>
7213
954a7fba
AC
7214 * exec.h (exec_ops): Make "extern".
7215
de38af99
AC
7216 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
7217 the function is void.
7218 (mips_pseudo_register_write): Ditto.
7219
1a111ce3
AC
72202004-01-12 Andrew Cagney <cagney@redhat.com>
7221
7222 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
7223 call. Never defined.
7224 * sparc-tdep.h (struct frame_info): Add opaque declaration.
7225 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
7226 (struct sparc_gregset, struct regcache): Ditto.
7227 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
7228
48efe704
AC
72292004-01-12 Andrew Cagney <cagney@redhat.com>
7230
7231 * mi/ChangeLog: Delete file. Renamed to ...
7232 * mi/ChangeLog-1999-2003: New file.
7233 * tui/ChangeLog: Delete file. Renamed to ...
7234 * tui/ChangeLog-1998-2003: New file.
fe61caab 7235
a54124c5
MK
72362004-01-11 Mark Kettenis <kettenis@gnu.org>
7237
2ca62865
MK
7238 * sparc64nbsd-tdep.c: Include "regset.h".
7239 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
7240 Remove variables.
7241 (fetch_core_registers): Remove function.
7242 (sparc64nbsd_core_fns): Remove variable.
7243 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
7244 functions.
7245 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
7246 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7247 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
7248
ca9d58e9
MK
7249 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
7250 sparc_extract_struct_value_address.
7251 (sparc32_gdbarch_init): Set extract_struct_value_address.
7252 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
7253 function.
7254 (sparc64_init_abi): Set extract_struct_value_address. Don't set
7255 return_value_on_stack.
7256
3cc87ec0
MK
7257 * NEWS: Mention that %cs and %ss have been added to the AMD64
7258 configurations
7259
5bf00f29
MK
7260 * frame.c: Update copyright year.
7261 (get_prev_frame): Improve comment.
7262
4f7ec84e
MK
7263 * sparc64fbsd-tdep.c: Include "regset.h".
7264 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7265 Remove variables.
7266 (fetch_core_registers): Remove function.
7267 (sparc64fbsd_core_fns): Remove variable.
7268 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
7269 functions.
7270 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
7271 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 7272 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 7273
4e7b0cd3
MK
7274 * sparcnbsd-tdep.c: Include "regset.h".
7275 (fetch_core_registers): Remove function.
7276 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7277 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7278 functions.
7279 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7280 TDEP->fpregset.
46b58ce9 7281 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 7282
a54124c5
MK
7283 * sparc-tdep.h (struct regset): Provide opaque declaration.
7284 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7285 fpregset and sizeof_fpregset members.
7286 * sparc-tdep.c (struct regset): Provide opaque declaration.
7287 (sparc_regset_from_core_section): New function.
7288 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7289 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7290 Set regset_from_core_section when appropriate.
7291
29ff87c5
MK
72922004-01-10 Mark Kettenis <kettenis@gnu.org>
7293
79b1ab3d
MK
7294 * x86-64-tdep.c (amd64_non_pod_p): New function.
7295 (amd64_classify_aggregate): Return class memory for non-POD
7296 C++ structure types.
7297
6470d250
MK
7298 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7299 argument. Use it to reserve a register if necessary.
7300 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7301 amd64_push_arguments.
7302
562c50c2
MK
7303 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7304
af233647
MK
7305 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7306 register numbers in comments.
7307 * x86-64-tdep.h: Update copyright year.
7308 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7309 Adjust for addition of %cs and %ss.
7310 * amd64fbsd-nat.c: Update copyright year.
7311 (reg_offset): Add register offsets for %cs and %ss.
7312 * amd64fbsd-tdep.c: Update copyright year.
7313 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7314 (amd64fbsd_sc_reg_offset): Likewise.
7315 * x86-64-linux-nat.c: Update copyright year.
7316 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7317 and %ss.
7318 * amd64nbsd-nat.c: Update copyright year.
7319 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7320 * amd64nbsd-tdep.c: Update copyright year.
7321 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7322 * x86-64-linux-tdep.c: Update copyright year.
7323 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7324 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7325 * regformats/reg-x86-64.dat: Add %cs and %ss.
7326
29ff87c5
MK
7327 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7328 variables to prevent long lines. Update comments to reflect
7329 reality.
7330
38d518c9
EZ
73312004-01-09 David Carlton <carlton@kealia.com>
7332
7333 Checked in by Elena Zannoni <ezannoni@redhat.com>.
7334 * dwarf2read.c (read_namespace): Pull out name-generating code
7335 into namespace_name. Rename previous_namespace to previous_prefix
7336 and processing_current_namespace to processing_current_prefix..
7337 (namespace_name): New function.
7338 (add_partial_symbol): Substitute uses of pdi->name with
7339 actual_name.
7340 * cp-support.h: Rename processing_current_namespace to
7341 processing_current_prefix.
7342 Update copyright year.
7343 * cp-namespace.c: Rename processing_current_namespace to
7344 processing_current_prefix.
7345 Update copyright year.
fe61caab 7346
1e4728e7
AC
73472004-01-09 Andrew Cagney <cagney@redhat.com>
7348
7349 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7350
c77c642a
MK
73512004-01-09 Mark Kettenis <kettenis@gnu.org>
7352
7353 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
7354 complaining.
7355 (process_one_symbol): Deal with N_PATCH stabs.
7356
b44e9041
EZ
73572004-01-09 Elena Zannoni <ezannoni@redhat.com>
7358
7359 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
7360 ifdeffed code.
7361 Update copyright year.
38d518c9 7362
eccfb640
MC
73632004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7364
7365 * config/pa/tm-hppa.h: Update extern declarations for
7366 hppa32_hpux_frame_saved_pc_in_sigtramp,
7367 hppa32_hpux_frame_base_before_sigtramp, and
7368 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
7369
848c5feb
MC
73702004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7371
7372 * config/pa/tm-hppah.h: Update copyright years.
7373
3cc5d663
AC
73742004-01-08 Andrew Cagney <cagney@redhat.com>
7375
7376 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
7377 (mips_o32_reg_struct_has_addr): Delete function.
7378 (mips_gdbarch_init): Update.
7379 (mips_extract_struct_value_address): Delete function.
7380
bfec0b41
JJ
73812004-01-08 David Mosberger <davidm@hpl.hp.com>
7382
7383 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
7384 reality.
7385
16e109ca
AC
73862004-01-07 Andrew Cagney <cagney@redhat.com>
7387
6214a8a1
AC
7388 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
7389 architecture's elf flags (when available).
7390
8d5838b5
AC
7391 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
7392 FPU to the start, check the MIPS FPU when looking for an old
7393 architecture.
7394 (set_mipsfpu_single_command): Update the architecture.
7395 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
7396
480d3dd2
AC
7397 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
7398 (mips_mask_address_p): Add "tdep" parameter.
7399 (show_mask_address, mips_addr_bits_remove): Update.
7400 (mips_dump_tdep): Update.
7401 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
7402 (MIPS_STACK_ARGSIZE): Delete macro.
7403 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
7404 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
7405 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
7406 (mips_dump_tdep): Update.
7407 (MIPS_SAVED_REGSIZE): Delete macro.
7408 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
7409 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
7410 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
7411 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
7412 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
7413 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
7414 (mips_pop_frame, return_value_location): Update.
7415 (mips_n32n64_return_value, mips_dump_tdep): Update.
7416
ec03c1ac
AC
7417 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
7418 MIPS ABI.
7419
16e109ca
AC
7420 * mips-tdep.c: Update copyright.
7421 (mips_gdbarch_init): Merge two code blocks handling the register
7422 name and number layout.
7423
15255275
MS
74242004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
7425
7426 * tracepoint.c (validate_actionline): Fix segv at EOF
7427
9f9057da
MC
74282004-01-07 Michael Chastain <mec.gnu@mindspring.com>
7429
7430 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
7431 properly for static fields.
7432
0127c0d3 74332004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 7434 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
7435
7436 * disasm.c: Update copyright to include 2004.
7437 (do_mixed_source_and_assembly): For uiout asm list
7438 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 7439 NULL and do so prior to loop. Only reset when we close off
0127c0d3 7440 the tuple/list. Move check for whether to close off the
fe61caab 7441 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
7442 on each loop iteration.
7443
5269965e
AC
74442004-01-05 Andrew Cagney <cagney@redhat.com>
7445
54f1137d
AC
7446 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
7447 should be a switch case and not a label.
7448 * mips-tdep.c (mips32_next_pc): Delete unused labels
7449 "greater_equal_branch" and "less_zero_branch".
7450 * jv-valprint.c (java_print_value_fields): Delete unused label
7451 "flush_it".
7452
5269965e
AC
7453 * target.c (unpush_target): Only close a target that is in the
7454 target stack.
7455
dbc22fa1
MK
74562004-01-05 Mark Kettenis <kettenis@gnu.org>
7457
9515395e
MK
7458 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
7459 address from [sp + 64] instead of %o2.
7460
dbc22fa1
MK
7461 * frame.c (get_prev_frame): Don't try to unwind the PC. This
7462 fixes PR backtrace/1476.
7463
5439edaa
AC
74642004-01-05 Andrew Cagney <cagney@redhat.com>
7465
7466 * libunwind-frame.h (struct frame_id): Add opaque declaration,
7467 move to start of file.
7468 * i386-tdep.h (struct regcache): Add opaque declaration.
7469 * config/ia64/nm-linux.h (struct target_ops): Add opaque
7470 declaration.
7471 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
7472 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
7473 * win32-nat.c (fake_create_process): Use ISO C style definition.
7474 * stabsread.c (define_symbol): Delete #ifndef
7475 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
7476 stabs_argument_has_addr call, macro never defined.
7477
19061abe
MC
74782004-01-04 Michael Chastain <mec.gnu@mindspring.com>
7479
7480 * op50-rom.c: Delete.
7481 * w89k-rom.c: Delete.
7482 * Makefile.in: Remove references.
7483
e53bef9f
MK
74842004-01-04 Mark Kettenis <kettenis@gnu.org>
7485
7486 * x86-64-tdep.c: Update copyright year.
7487 (struct amd64_register_info): Rename from x86_64_register_info.
7488 (amd64_register_info): Rename from x86_64_register_info.
7489 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
7490 (amd64_register_name): Rename from x86_64_register_name.
7491 (amd64_register_type): Rename from x86_64_register_type.
7492 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
7493 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
7494 (amd64_dwarf_reg_to_regnum): Rename from
7495 x86_64_dwarf_reg_to_regnum.
7496 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
7497 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
7498 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
7499 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
7500 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
7501 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
7502 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
7503 (amd64_frame_cache): Rename from x86_64_frame_cache.
7504 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
7505 (amd64_frame_prev_register): Rename from
7506 x86_64_frame_prev_register.
7507 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
7508 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
7509 (amd64_sigtramp_frame_cache): Rename from
7510 x86_64_sigtramp_frame_cache.
7511 (amd64_sigtramp_frame_prev_register): Rename from
7512 x86_64_sigtramp_frame_prev_register.
7513 (amd64_sigtramp_frame_unwind): Rename from
7514 x86_64_sigtramp_frame_unwind.
7515 (amd64_sigtramp_frame_sniffer): Rename from
7516 x86_64_sigtramp_frame_sniffer.
7517 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
7518 (amd64_frame_base): Rename from x86_64_frame_base.
7519 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
7520 (amd64_frame_align): Rename from x86_64_frame_align.
7521 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
7522 (amd64_regset_from_core_section): Rename from
7523 x86_64_regset_from_core_section.
7524 (x86_64_init_abi): Update comments.
7525
fca6aa58
NR
75262004-01-04 Nick Roberts <nick@nick.uklinux.net>
7527
7528 * MAINTAINERS (write after approval): Add myself.
7529
8ada74e3
MK
75302004-01-04 Mark Kettenis <kettenis@gnu.org>
7531
7532 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7533 `float' arguments.
7534
5154b0cd
MK
75352004-01-04 Mark Kettenis <kettenis@gnu.org>
7536
7537 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
7538 such that it mentions a specific version of GCC that exhibits this
7539 bug.
7540
fb316966
MK
75412004-01-03 Mark Kettenis <kettenis@gnu.org>
7542
200cc553
MK
7543 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
7544 structure that has a single `float' member, store it in %f1 in
7545 addition to %f0.
7546
e226a4a0
MK
7547 * sparc-sol2-nat.c: Add missing '\'.
7548
b9d4c5ed
MK
7549 * sparc-tdep.c (sparc32_return_value): New function.
7550 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
7551 Remove functions.
7552 (sparc32_gdbarch_init): Set return_value, don't set
7553 extract_return_value, store_return_value, use_struct_convention
7554 and return_value_on_stack.
7555
fb316966
MK
7556 * sparc-sol2-nat.c: Add missing ')'.
7557
1af510a8
JB
75582004-01-03 J. Brobecker <brobecker@gnat.com>
7559
7560 * infrun.c (handle_step_into_function): New function.
7561 (handle_inferior_event): Extract out some code into the new
7562 function above.
7563
5cf4d23a
JB
75642004-01-03 J. Brobecker <brobecker@gnat.com>
7565
7566 * infrun.c (handle_inferior_event): Move the declaration of
7567 real_stop_pc inside the if blocks where it is used.
7568
60af1db2
MK
75692004-01-03 Mark Kettenis <kettenis@gnu.org>
7570
7571 * sparc64-tdep.c (sparc64_16_byte_align_p)
7572 (sparc64_store_floating_fields, sparc64_store_floating_fields):
7573 Use check_typedef to get subtypes of structures and unions.
7574 (sparc64_store_return_value): Fix calculation of the appropriate
7575 offset into VALBUF when storing a structure or union.
7576 (sparc64_return_value): New function.
7577 (sparc64_use_struct_convention): Remove function.
7578 (sparc64_init_abi): Set return_value, don't set
7579 extract_return_value, store_return_value and
7580 use_struct_convention.
7581
1a901d3f
EZ
75822004-01-03 Eli Zaretskii <eliz@elta.co.il>
7583
7584 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
7585 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
7586 gdb/config/alpha/xm-alphaosf.h,
7587 gdb/config/powerpc/tm-ppcle-eabi.h,
7588 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
7589 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
7590 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
7591 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
7592 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
7593 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
7594 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
7595 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
7596 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
7597 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
7598 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
7599 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
7600 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
7601 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
7602 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
7603 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
7604 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
7605 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
7606 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
7607 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
7608 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
7609 Remove lines for .cvsignore files.
7610
ef52e463
JB
76112004-01-03 J. Brobecker <brobecker@gnat.com>
7612
7613 * infrun.c: Back out the previous change.
7614
cb1bf9dc
MK
76152004-01-03 Mark Kettenis <kettenis@gnu.org>
7616
f0424ef6
MK
7617 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
7618 sparc-*-sunos4* to the list of REMOVED configurations.
7619
cb1bf9dc
MK
7620 * configure.tgt: Add back sparc-*-vxworks*.
7621 * remote-vxsparc.c: Remove all includes except for "defs.h",
7622 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
7623 Include "sparc-tdep.h".
7624 (SPARC_R_G1): New define.
7625 (vxsparc_gregset): New variable.
7626 (ext_format_sparc): Remove extern declaration.
7627 (vx_read_register): Rewrite to use sparc32_supply_gregset and
7628 sparc32_supply_fpregset.
7629 (vx_write_register): Rewrite to use sparc32_collect_gregset,
7630 sparc_collect_rwindow and sparc32_collect_fpregset.
7631 * config/sparc/tm-vxworks.h: New file, based on recently removed
7632 tm-vxsparc.h.
7633 * config/sparc/vxworks.mt: New file, based on recently removed
7634 vxworks.mt.
fe61caab 7635
5e938f9f
JB
76362004-01-03 J. Brobecker <brobecker@gnat.com>
7637
7638 * infrun.c (handle_step_into_function): New function.
7639 (handle_inferior_event): Extract out some code into the new
7640 function above.
7641
386c036b
MK
76422004-01-02 Mark Kettenis <kettenis@gnu.org>
7643
7644 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
7645 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
7646 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
7647 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
7648 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
7649 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
7650 (sparc_nat_h): New variable.
7651 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
7652 (tm-sun4os4.h): Remove dependency.
7653 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
7654 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
7655 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
7656 sparc-tdep.o): Update dependencies.
7657 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
7658 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
7659 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
7660 dependencies.
7661 * configure.host: Remove existing sparc-*-lynxos*,
7662 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
7663 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
7664 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
7665 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
7666 triplets.
7667 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
7668 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
7669 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
7670 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
7671 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
7672 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
7673 sparc64-*-solaris2* and sparc64-*-* triplets.
7674 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
7675 "symtab.h" and "objfiles.h".
7676 (BIAS): Remove define.
7677 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
7678 (X_DISP19): Remove macros.
7679 (sparc_fetch_instruction): Remove function.
7680 (struct gdbarch_tdep): Remove definition.
7681 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
7682 (sparc_breakpoint_from_pc): Remove function.
7683 (struct sparc64_frame_cache): Remove definition.
7684 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
7685 sparc64_unwind_pc): Remove functions.
7686 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
7687 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
7688 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
7689 (sparc64_frame_cache): Change return type to `struct
7690 sparc_frame_cache *'. Simply call sparc_frame_cache.
7691 (sparc64_frame_this_id, sparc64_frame_prev_register,
7692 sparc64_frame_base_address): Use `struct sparc_frame_cache'
7693 instead of `struct sparc64_frame_cache.
7694 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
7695 sparc_analyze_control_transfer, sparc_software_single_step,
7696 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
7697 _initialize_sparc64_tdep): Remove functions.
7698 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
7699 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
7700 macros.
7701 (sparc64_supply_gregset, sparc64_collect_gregset,
7702 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
7703 (sparc64_init_abi): New function.
7704 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
7705 inclusion guard. Include "sparc-tdep.h".
7706 (BIAS): Define.
7707 (r_tstate_offset, r_fprs_offset): New defines.
7708 (enum sparc_regnum): Remove defenition.
7709 (enum sparc64_regnum): Reformat.
7710 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
7711 (sparc64_init_abi, sparc64_supply_gregset,
7712 sparc64_collect_gregset, sparc64_supply_fpregset,
7713 sparc64_collect_fpregset): New prototypes.
7714 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
7715 Add extern declarations.
7716 (sparc64_sol2_init_abi): New prototype.
7717 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7718 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7719 prototypes.
7720 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
7721 "sparnbsd-nat.h".
7722 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
7723 functions.
7724 (_initialize_sparc64fbsd_nat): Remove initialization of
7725 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
7726 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 7727 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
7728 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
7729 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
7730 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
7731 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
7732 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
7733 (sparc64fbsd_r_y_offset): Remove variables.
7734 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7735 Make static and const.
7736 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7737 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7738 functions.
7739 (sparc64fbsd_gregset): New variable.
7740 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
7741 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
7742 and sparc64_supply_fpregset.
7743 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
7744 (sparc64fbsd_sigtramp_frame_this_id)
7745 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
7746 (sparc64fbsd_sigtramp_frame_unwind): New variable.
7747 (sparc64fbsd_sigtramp_frame_sniffer): New function.
7748 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
7749 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
7750 * sparcnbsd-tdep.c: Update copyright year. Include
7751 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
7752 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
7753 "value.h" and "sparcnbsd-tdep.h".
7754 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
7755 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
7756 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
7757 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
7758 defines.
7759 (sparcnbsd_gregset): New variable.
7760 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
7761 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
7762 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
7763 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
7764 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
7765 variables.
7766 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
7767 (sparc32nbsd_sigcontext_frame_this_id)
7768 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
7769 (sparc32nbsd_sigcontext_frame_unwind): New variable.
7770 (sparc32nbsd_sigtramp_frame_sniffer): New function.
7771 (sparcnbsd_get_longjmp_target_32,
7772 sparcnbsd_get_longjmp_target_64): Remove functions.
7773 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
7774 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
7775 sparcnbsd_init_elf): Remove.
7776 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
7777 (sparcnbsd_elf_init_abi): New functions.
7778 (_initialize_sparcnbsd_tdep): New prototype.
7779 (_initialize_sparnbsd_tdep): Update.
7780 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
7781 corelow.o. Add sparc64-nat.o and sparc-nat.o.
7782 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
7783 * config/sparc/linux.mh: Update comment.
7784 (XM_FILE, HOST_IPC): Remove variables.
7785 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
7786 sparc-linux-nat.o.
7787 * config/sparc/linux.mt: Update comment.
7788 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
7789 * config/sparc/nbsd.mt: Reformat.
7790 * config/sparc/nbsd64.mh: Update comment.
7791 (NATDEPFILES): Add sparc-nat.o.
7792 * config/sparc/nbsd64.mt: Update comment.
7793 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
7794 (TM_FILE): Set to tm-nbsd.h.
7795 * config/sparc/nbsdelf.mh: Update comment.
7796 (NATDEPFILES): Add sparc-nat.o.
7797 (XM_FILE): Delete.
7798 * config/sparc/nbsdaout.mh: Update comment.
7799 (NATDEPFILES): Add sparc-nat.o
7800 (XM_FILE): Delete.
7801 * config/sparc/nm-linux.h: Update copyright year. Don't include
7802 "config/nm-svr4.h" and "solib.h". Add protection against multiple
7803 inclusion.
7804 (KERNEL_U_SIZE): Remove define.
7805 (kernel_u_size): Remove prototype.
7806 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
7807 * config/sparc/nm-nbsd.h: Update copyright. Don't include
7808 "regcache.h".
7809 (CHILD_PREPARE_TO_STORE): Remove define.
7810 * config/sparc/nm-nbsdaout.h: Tweak some comments.
7811 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
7812 sparcnbsd-nat.c: Rewrite files.
7813 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
7814 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
7815 sparcnbsd-tdep.h: Remove files.
7816 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
7817 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
7818 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
7819 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
7820 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
7821 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
7822 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
7823 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
7824 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7825 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7826 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
7827 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
7828 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
7829 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
7830 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
7831 * config/sparc/linux64.mh, config/sparc/linux64.mt,
7832 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
7833 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
7834 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
7835
ee84457a
AC
78362004-01-02 Andrew Cagney <cagney@redhat.com>
7837
7838 From 2003-12-18 Kazuhiro Inaoka:
7839 * configure.host: Add m32r-linux target.
7840
0bc2134e
MC
78412004-01-02 Michael Chastain <mec.gnu@mindspring.com>
7842
7843 * top.c (print_gdb_version): Update year to 2004.
7844
89a72f9c
MM
78452004-01-02 Mark Mitchell <mark@codesourcery.com>
7846
7847 * MAINTAINERS: Add myself to the write-after-approval category.
7848
86b013ed
DJ
78492004-01-02 Daniel Jacobowitz <drow@mvista.com>
7850
7851 From Bernardo Innocenti <bernie@develer.com>:
7852 * configure.tgt: Add uClinux target.
7853
e42c9534
AC
78542004-01-02 Andrew Cagney <cagney@redhat.com>
7855
7856 * utils.c (do_my_cleanups): Make static, add forward declaration.
7857 * defs.h (do_my_cleanups): Delete declaration.
7858
162467d3
EZ
78592004-01-02 Eli Zaretskii <eliz@elta.co.il>
7860
7861 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
7862 bfd/ChangeLog-0203.
7863
78434e59
MK
78642004-01-02 Mark Kettenis <kettenis@gnu.org>
7865
7866 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
7867 in <machine/reg.h>.
7868 * configure, config.in: Regenerate.
7869
48efe704
AC
7870For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
7871tui/ChangeLog-1998-2003.
c906108c
SS
7872\f
7873Local Variables:
7874mode: change-log
7875left-margin: 8
7876fill-column: 74
7877version-control: never
7878End:
This page took 0.909081 seconds and 4 git commands to generate.