2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0dfdb8ba
PM
12007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2
3 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
4 Replace xasprintf by xstrprintf.
5 symfile-mem.c (add_vsyscall_page): Ditto.
6
2685572f
UW
72007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
8
9 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
10 replacing use of global current_gdbarch.
11 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
12 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
13
14 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
15 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
16 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
17 (ia64_sigtramp_frame_cache): Update caller.
18
c1874924
UW
192007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
20
21 * gdbarch.sh (deprecated_use_struct_convention): Remove.
22 (extract_return_value, store_return_value): Remove.
23 (return_value): Remove default implementation.
24 * gdbarch.c, gdbarch.h: Regenerate.
25
26 * stack.c (return_command): Remove compatibility hack.
27 * arch-utils.c (legacy_return_value): Remove.
28 * arch-utils.h (legacy_return_value): Likewise.
29
30 * arch-utils.c (always_use_struct_convention): Remove.
31 * arch-utils.h (always_use_struct_convention): Likewise.
32 * value.c (generic_use_struct_convention): Remove.
33 * defs.h (generic_use_struct_convention): Likewise.
34
4c8b6ae0
UW
352007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
36
37 * avr-tdep.c (avr_return_value): New function.
38 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
39 set_gdbarch_extract_return_value.
40
41 * fvr-tdep.c (frv_return_value): New function.
42 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
43 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
44 and set_gdbarch_deprecated_use_struct_convention.
45
46 * ia64-tdep.c (ia64_use_struct_convention): Make static.
47 Add check for structure, union, or array types.
48 (ia64_extract_return_value): Make static.
49 (ia64_store_return_value): Make static. Support multi-word values.
50 (ia64_return_value): New function.
51 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
52 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
53 and set_gdbarch_deprecated_use_struct_convention.
54
899cff7a
JB
552007-10-12 Joel Brobecker <brobecker@adacore.com>
56
57 * solib-target.c (solib_target_parse_libraries)
58 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
59
d41ebd5d
JB
602007-10-12 Jim Blandy <jimb@codesourcery.com>
61
62 * serial.h (struct serial_ops): Document read_prim to return zero
63 at EOF.
64 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
65 read_prim returns zero, not SERIAL_TIMEOUT.
66
62f6180c
UW
672007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
68
69 * alpha-mdebug-tdep.c: Include "gdb_string.h".
70 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
71 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
72 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
73
74 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
75 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
76 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
77 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
78 * config/alpha/tm-alpha.h: Remove file.
79
ee53e872
UW
802007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
81
82 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
83 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
84
85 * config/pa/tm-hppa.h: Delete file.
86 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
87 * config/pa/hppahpux.mt: Likewise.
88 * config/pa/hppa.mt: Likewise.
89 * config/pa/linux.mt: Likewise.
90 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
91
3d5e6107
UW
922007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
93
94 * config/arm/nm-nbsdaout.h: Remove file.
95 * config/nm-nbsdaout.h: Likewise.
96 * config/nm-nbsd.h: Likewise.
97
82585c72
UW
982007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
99
100 * block.h (struct block): Remove "gcc_compile_flag" member.
101 (BLOCK_GCC_COMPILED): Remove.
102 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
103 * buildsym.c (finish_block): Do not set it.
104 * symmisc.c (dump_symtab_1): Do not dump it.
105
106 * value.h (using_struct_return): Remove "gcc_p" argument.
107 * value.c (using_struct_return): Likewise.
108 * eval.c (evaluate_subexp_standard): Adapt callers.
109 * infcall.c (call_function_by_hand): Likewise.
110 * stack.c (return_command): Likewise.
111 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
112
113 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
114 * gdbarch.c, gdbarch.h: Regenerate.
115 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
116 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
117 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
118 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
119 (push_dummy_code, call_function_by_hand): Adapt callers.
120
8f536afe
UW
1212007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
122
123 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
124 (finish_command_continuation, finish_command): Adapt callers.
125
f156e33b
UW
1262007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
127
128 * infcall.c (call_function_by_hand): Remove special handling
129 for HP aCC compiled code.
130
f6e56ab3
UW
1312007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
132
133 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
134 reference. Fix endianness bugs.
135 (cris_reg_struct_has_address): Remove.
136 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
137 and set_gdbarch_deprecated_use_struct_convention calls.
138
139 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
140 * gdbarch.c, gdbarch.h: Regenerate.
141 * infcall.c (call_function_by_hand): Remove handling of
142 deprecated_reg_struct_has_addr.
143
b4c291bb
KH
1442007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
145 Kazu Hirata <kazu@codesourcery.com>
146
147 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
148 checking watchpoint resources.
149
56cf5405
KH
1502007-10-11 Kazu Hirata <kazu@codesourcery.com>
151
152 * memattr.c (inaccessible_by_default): Change the initial
153 value to 1.
154
3b016d57
DJ
1552007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
156
157 PR gdb/2280
158 * coffread.c (read_one_sym): Check for read errors.
159
e9efe249
UW
1602007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
161
162 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
163 instead of "Linux 2.6.19" in comment.
164 (linux_xfer_partial): Use "GNU/Linux target" instead of
165 "Linux target" in comment.
166 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
167 (m68k_linux_get_sigtramp_info): Likewise.
168
b33682a7
DJ
1692007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
170
171 * MAINTAINERS (language support): List Joel and Paul as
172 Ada maintainers.
173
35156bae
DJ
1742007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
175
176 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
177 checks.
178 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
179 not set DEPRECATED_TM_FILE.
180 * config/arm/tm-arm.h: Delete file.
181
3d47173c
LM
1822007-10-11 Luis Machado <luisgpm@br.ibm.com>
183
184 * MAINTAINERS (Write After Approval): Add self.
185
607ae575
DJ
1862007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
187
188 * buildsym.c (record_line): Remove empty lines followed by
189 end-of-sequence markers.
190
b8d5e0ac
KH
1912007-10-11 Kazu Hirata <kazu@codesourcery.com>
192
193 * configure.tgt: Recognize fido-*-elf.
194
86f26d2f 1952007-10-10 Joel Brobecker <brobecker@adacore.com>
196
197 GDB 6.7 released.
198
7500260a
UW
1992007-10-10 Markus Deuling <deuling@de.ibm.com>
200
201 * stack.c (print_frame_args, frame_info, return_command): Use
202 get_regcache_arch or get_frame_arch to get at the current architecture
203 by regcache or by frame, respectively.
204
8b164abb
UW
2052007-10-10 Markus Deuling <deuling@de.ibm.com>
206
207 * rs6000-nat.c (fetch_register, store_register)
208 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
209 get_regcache_arch to get at the current architecture by regcache.
210
211 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
212 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
213 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
214 current_gdbarch by gdbarch.
215 (rs6000_skip_trampoline_code, rs6000_register_to_value)
216 (rs6000_value_to_register): Use get_frame_arch to get at the current
217 architecture by frame_info.
218
e6d4f032
UW
2192007-10-10 Markus Deuling <deuling@de.ibm.com>
220
221 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
222 get_regcache_arch to get at the current architecture by regcache.
223
224 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
225 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
226 get_regcache_arch to get at the current architecture by regcache.
227
228 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
229 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
230 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
231 current architecture by regcache.
232
2eb4d78b
UW
2332007-10-10 Markus Deuling <deuling@de.ibm.com>
234
235 * remote-mips.c (mips_wait, mips_fetch_registers)
236 (mips_store_registers): Use get_regcache_arch to get at the
237 current architecture by regcache.
238
239 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
240 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
241 get at the current architecture by regcache.
242 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
243 architecture by frame_info.
244
245 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
246 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
247 the current architecture by regcache.
248
249 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
250 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
251 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
252 current architecture by frame_info.
253 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
254 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
255 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
256 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
257 get at the current architecture by regcache.
258
259 * mips-linux-nat.c (mips_linux_register_addr)
260 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
261 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
262 (mips64_linux_regsets_fetch_registers)
263 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
264 the current architecture by regcache.
265
266 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
267 get at the current architecture by frame_info.
268
72a155b4
UW
2692007-10-10 Markus Deuling <deuling@de.ibm.com>
270
271 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
272 current architecture by regcache.
273 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
274 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
275 (mips_stub_frame_cache, mips_read_fp_register_single)
276 (mips_read_fp_register_double, mips_print_fp_register)
277 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
278 at the current architecture by frame_info.
279 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
280 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
281 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
282 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
283 (mips_o32_push_dummy_call, mips_o32_return_value)
284 (mips_o64_push_dummy_call, mips_o64_return_value)
285 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
286 gdbarch.
287
6b50c0b0
UW
2882007-10-10 Markus Deuling <deuling@de.ibm.com>
289
290 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
291 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
292 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
293 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
294 (xtensa_register_write_masked, xtensa_register_read_masked)
295 (xtensa_supply_gregset, xtensa_store_return_value)
296 (xtensa_extract_return_value): Use get_regcache_arch to get at the
297 current architecture by regcache.
298 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
299 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
300 architecture by frame_info.
301
4be43953
DJ
3022007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
303
304 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
305 (thumb_analyze_prologue): Move pv_area_store_would_trash call
306 out of loop. Do not set cache->frameoffset.
307 (arm_scan_prologue): Use prologue-value mechanism. Do not set
308 frameoffset. Simplify framesize.
309 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
310 frameoffset.
311 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
312
b4b61fdb
DJ
3132007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
314
315 * target.c (update_current_target): Call setup_target_debug.
316 (push_target): Do not call it here.
317
8bb6c669
MS
3182007-10-09 Michael Snyder <msnyder@specifix.com>
319
320 * MAINTAINERS: Update my email address.
321
304fe255
UW
3222007-10-09 Markus Deuling <deuling@de.ibm.com>
323
324 * xtensa-tdep.c: Replace following current-gdbarch based macros by
325 their expression:
326 (xtensa_pseudo_register_read)
327 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
328 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
329 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
330 (xtensa_pseudo_register_read)
331 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
332 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
333 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
334 (xtensa_frame_prev_register): NUM_AREGS.
335 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
336 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
337 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
338 (xtensa_supply_gregset, xtensa_frame_cache)
339 (xtensa_frame_prev_register): WS_REGNUM.
340 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
341 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
342 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
343 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
344 (xtensa_register_reggroup_p): REGMAP.
345 (call0_track_op): LITBASE_REGNUM.
346 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
347 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
348 (xtensa_frame_prev_register, AREG_NUMBER)
349 (xtensa_register_type): AR_BASE.
350 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
351 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
352 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
353 (xtensa_frame_cache, xtensa_frame_prev_register)
354 (xtensa_extract_return_value, xtensa_store_return_value)
355 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
356 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
357 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
358 (xtensa_frame_prev_register, xtensa_push_dummy_call)
359 (call0_frame_cache): A1_REGNUM.
360 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
361 (xtensa_push_dummy_call): A4_REGNUM.
362 (ARGS_FIRST_REG): A6_REGNUM.
363 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
364 (xtensa_frame_prev_register): A15_REGNUM.
365 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
366 them in the appropriate source file:
367 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
368 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
369 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
370 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
371 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
372 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
373 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
374 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
375 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
376 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
377 A13_REGNUM, A14_REGNUM, A15_REGNUM.
378
ea78bae4
UW
3792007-10-09 Markus Deuling <deuling@de.ibm.com>
380
381 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
382 the current architecture by frame_info.
383 (h8300_frame_prev_register
384 (h8300_print_register): Replace current_gdbarch by gdbarch.
385 (h8300_print_registers_info, h8300_register_type)
386 (h8300_register_type): Likewise.
387
875f8d0e
UW
3882007-10-09 Markus Deuling <deuling@de.ibm.com>
389
390 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
391 the current architecture by regcache.
392 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
393 (i386_linux_fetch_inferior_registers)
394 (i386_linux_store_inferior_registers): Likewise.
395 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
396 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
397 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
398 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
399 (i386_extract_return_value, i386_store_return_value): Likewise.
400 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
401 the current architecture by frame_info.
402 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
403 (i386_register_to_value, i386_value_to_register): Likewise.
404
9b072297
UW
4052007-10-09 Markus Deuling <deuling@de.ibm.com>
406
407 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
408 the current architecture by regcache.
409 (monitor_store_register, monitor_store_registers): Likewise.
410
e76e7474
UW
4112007-10-09 Markus Deuling <deuling@de.ibm.com>
412
413 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
414 the current architecture by regcache.
415
d4f91178
UW
4162007-10-09 Markus Deuling <deuling@de.ibm.com>
417
418 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
419 gdbarch.
420
b1bd0044
UW
4212007-10-09 Markus Deuling <deuling@de.ibm.com>
422
423 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
424 architecture by frame.
425 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
426 (inside_main_func, frame_sp_unwind): Likewise.
427
2ec9a4f8
DJ
4282007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
429
430 * solib-svr4.c (enable_break): Add the dynamic linker also if
431 auxv succeeds.
432
7068dd53
CES
4332007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
434
435 * MAINTAINERS (Write After Approval): Add self.
436
51e9e0d4
PA
4372007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
438
439 * stabsread.c (read_huge_number): Initialize local variable to 0.
440
cd6c7346
PM
4412007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
442
443 * p-lang.h (pascal_main_name): Add declaration.
444 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
445 (GPC_MAIN_PROGRAM_NAME_2): New constants.
446 (pascal_main_name): New function.
447 * symtab.c: Include p-lang.h.
448 (find_main_name): Add call to pascal_main_name.
449 * Makefile.in (symtab.o): Add dependency on p-lang.h.
450
a2699720
PA
4512007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
452
453 * stabsread.c (read_huge_number): Fix handling of octal
454 representation when the bit width is known.
455 (read_range_type): Record unsigned integral types with their size,
456 when the type size is known.
457
e05ebff4
TJB
4582007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
459
460 * MAINTAINERS (Write After Approval): Add self.
461
0c6773c1
PM
4622007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
463
464 * breakpoint.c (print_one_breakpoint_location): ARI fix:
465 Replace asprintf by xstrprintf.
466
91c06669
PM
4672007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
468
469 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
470 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
471
3c61c145
PM
4722007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
473
474 * linux-fork.c: Move "gdb_wait.h" include back to the position of
475 <sys/wait.h> include before last commit.
476
313628cc
MR
4772007-10-08 Maciej W. Rozycki <macro@mips.com>
478
479 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
480
c7f30c7a
UW
4812007-10-08 Markus Deuling <deuling@de.ibm.com>
482
483 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
484 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
485 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
486 (store_regs_user_thread, store_regs_kernel_thread): Use
487 get_regcache_arch or get_frame_arch to get at the current architecture
488 by regcache or by frame, respectively.
489
58643501
UW
4902007-10-08 Markus Deuling <deuling@de.ibm.com>
491
492 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
493 (sh64_pseudo_register_read, sh64_pseudo_register_write)
494 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
495 (sh64_print_register, sh64_media_print_registers_info)
496 (sh64_compact_print_registers_info, sh64_unwind_sp)
497 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
498 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
499 (sh64_frame_prev_register): Use FRAME to recognize current
500 architecture.
501
b47193f7
UW
5022007-10-08 Markus Deuling <deuling@de.ibm.com>
503
504 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
505 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
506 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
507 current_gdbarch by gdbarch.
508 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
509 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
510 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
511 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
512 recognize current architecture.
513
4a22f64d
UW
5142007-10-08 Markus Deuling <deuling@de.ibm.com>
515
516 * remote.c (init_remote_state, fetch_register_using_p)
517 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
518 (store_register_using_P, store_registers_using_G)
519 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
520 get at the current architecture by regcache or by frame, respectively.
521
c984b7ff
UW
5222007-10-08 Markus Deuling <deuling@de.ibm.com>
523
524 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
525 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
526 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
527 get_regcache_arch or get_frame_arch to get at the current architecture
528 by regcache or by frame, respectively.
529 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
530 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
531 (store_register, old_store_inferior_registers, supply_gregset)
532 (supply_fpregset, fill_fpregset): Likewise.
533 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
534 Replace current_gdbarch by gdbarch.
535
d611717a
UW
5362007-10-08 Markus Deuling <deuling@de.ibm.com>
537
538 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
539 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
540 get_frame_arch to get at the current architecture by regcache or by
541 frame, respectively.
542
088568da
UW
5432007-10-08 Markus Deuling <deuling@de.ibm.com>
544
545 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
546 Replace current_gdbarch by gdbarch.
547 * ia64-tdep.c (ia64_frame_prev_register
548 (ia64_sigtramp_frame_prev_register)
549 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
550 get_frame_arch to get at the current architecture by regcache or by
551 frame, respectively.
552 * ia64-linux-nat.c (ia64_linux_fetch_register)
553 (ia64_linux_fetch_registers, ia64_linux_store_register)
554 (ia64_linux_store_registers): Likewise.
555
464963c9
UW
5562007-10-08 Markus Deuling <deuling@de.ibm.com>
557
558 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
559 current_gdbarch by gdbarch.
560 * hppa-linux-nat.c (fetch_register, store_register)
561 (hppa_linux_fetch_inferior_registers)
562 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
563 get_frame_arch to get at the current architecture by regcache or by
564 frame, respectively.
565 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
566 (hppa_hpux_unwind_adjust_stub): Likewise.
567 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
568 (hppa_hpux_fetch_inferior_registers)
569 (hppa_hpux_store_inferior_registers): Likewise.
570
7fbe2eba
UW
5712007-10-08 Markus Deuling <deuling@de.ibm.com>
572
573 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
574 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
575 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
576 or get_frame_arch to get at the current architecture by regcache or by
577 frame, respectively.
578 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
579 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
580 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
581 current_gdbarch by gdbarch.
582
2af46ca0
UW
5832007-10-08 Markus Deuling <deuling@de.ibm.com>
584
585 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
586 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
587 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
588 get at the current architecture by regcache or by·frame, respectively.
589 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
590 gdbarch.
591
2ae02b47
UW
5922007-10-08 Markus Deuling <deuling@de.ibm.com>
593
594 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
595 Use get_regcache_arch or get_frame_arch to get at the current
596 architecture by regcache or by frame, respectively.
597 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
598 * amd64-nat.c (amd64_supply_native_gregset)
599 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
600
ec7cc0e8
UW
6012007-10-08 Markus Deuling <deuling@de.ibm.com>
602
603 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
604 gdbarch.
605 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
606 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
607 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
608 get_frame_arch to get at the current architecture by regcache or by
609 frame, respectively.
610 * alpha-nat.c (fetch_osf_core_registers): Likewise.
611
ad010def
UW
6122007-10-08 Markus Deuling <deuling@de.ibm.com>
613
614 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
615 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
616 current_gdbarch by gdbarch.
617 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
618
214e098a
UW
6192007-10-08 Markus Deuling <deuling@de.ibm.com>
620
621 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
622 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
623 * regcache.c (regcache_raw_write): Use get_regcache_arch or
624 get_frame_arch to get at the current architecture by regcache or by
625 frame, respectively.
626
e9e45075
UW
6272007-10-08 Markus Deuling <deuling@de.ibm.com>
628
629 * findvar.c (value_of_register, locate_var_value): Use
630 get_regcache_arch or get_frame_arch to get at the current architecture
631 by regcache or by frame, respectively.
632 * findvar.c (default_value_from_register, value_from_register): Replace
633 current_gdbarch by gdbarch.
634
136855cd
PM
6352007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
636
637 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
638
cdf43007
PM
6392007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
640
641 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
642 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
643
9ef895d6
DJ
6442007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
645
646 * remote.c (get_offsets): Only call free_symfile_segment_data if
647 data was allocated.
648
cada2e7b
PM
6492007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
650
651 * objc-exp.y: ARI fix: remove 4 PARAMS.
652
8d5f9c6f
DJ
6532007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
654
655 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
656 news. Mention XML support for M68K in GDB 6.7.
657
1969d2ed
DJ
6582007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
659
660 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
661 bounds.
662 (init_vector_type): Use builtin_type_int32.
663
e31dcd20
UW
6642007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
665
666 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
667 size to enable bi-arch generate-core-file support.
668
b94c4f7d
UW
6692007-10-02 Markus Deuling <deuling@de.ibm.com>
670
671 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
672
9612b5ec
UW
6732007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
674
675 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
676 signal handler.
677 * tui/tui-win.c (tui_initialize_win): New function for
678 initializing tui's SIGWINCH signal handler.
679 * tui/tui-win.h (tui_initialize_win): Declare.
680
407f1a2e
UW
6812007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
682
683 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
684 pointer to uintptr_t before casting to CORE_ADDR.
685
02d3ff8c
UW
6862007-10-02 Markus Deuling <deuling@de.ibm.com>
687
688 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
689
4577549b
DJ
6902007-10-02 Mark Mitchell <mark@codesourcery.com>
691
692 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
693 * ser-mingw.c (enum select_thread_state): New type.
694 (struct ser_console_state): Add have_started and thread_state.
695 (select_thread_wait): New function.
696 (thread_fn_type): New type.
697 (create_select_thread): New function.
698 (destroy_select_thread): Likewise.
699 (start_select_thread): Likewise.
700 (stop_select_thread): Likewise.
701 (console_select_thread): Use new functions.
702 (pipe_select_thread): Likewise.
703 (file_select_thread): Likewise.
704 (ser_console_wait_handle): Likewise.
705 (ser_console_done_wait_handle): Likewise.
706 (ser_console_close): Likewise.
707 (free_pipe_state): Likewise.
708 (pipe_wait_handle): Likewise.
709 (pipe_done_wait_handle): Likewise.
710 (struct net_windows_state): Derive from ser_console_state.
711 (net_windows_select_thread): Use new functions.
712 (net_windows_wait_handle): Likewise.
713 (net_windows_done_wait_handle): Likewise.
714 (net_windows_close): Likewise.
715
b0b951d9
DJ
7162007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
717
718 * inflow.c (terminal_ours_1): Remove useless line.
719
82e91389
DJ
7202007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
721
722 * mips-tdep.c (mips_read_fp_register_double): Correct check for
723 odd FP registers.
724 (mips_print_fp_register): Correct check for even FP registers.
725 (mips_virtual_frame_pointer): New function.
726 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
727
c4a3d09a
MF
7282007-09-30 Mike Frysinger <vapier@gentoo.org>
729
730 * value.h (lookup_only_internalvar): New prototype.
731 (create_internalvar): Likewise.
732 * value.c (lookup_only_internalvar): New function.
733 (create_internalvar): Likewise.
734 (lookup_internalvar): Use new lookup_only_internalvar and
735 create_internalvar functions.
736 * parse.c (write_dollar_variable): Look up $ symbols in internal
737 table first rather than last.
738
9f0bdab8
DJ
7392007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
740
741 * linux-nat.c (linux_nat_new_thread): New variable.
742 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
743 linux_nat_switch_fork.
744 (lwp_list): Make public.
745 (add_lwp): Call linux_nat_new_thread.
746 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
747 the new thread.
748 (resume_callback): Clear lp->siginfo. Remove unused variable.
749 (linux_nat_resume): Assert that the LWP list is already initialized.
750 Clear lp->siginfo.
751 (save_siginfo): New.
752 (stop_wait_callback, linux_nat_wait): Call it.
753 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
754 * linux-nat.h (struct lwp_info): Add siginfo.
755 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
756 (ALL_LWPS): Define.
757
758 * amd64-linux-nat.c (amd64_linux_dr): New.
759 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
760 (amd64_linux_dr_set): Take a PTID argument.
761 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
762 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
763 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
764 (amd64_linux_new_thread): New.
765 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
766 * i386-linux-nat.c (i386_linux_dr): New.
767 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
768 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
769 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
770 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
771 (i386_linux_new_thread): New.
772 (i386_linux_resume): Remove unnecessary PID check.
773 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
774 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
775 (fetch_debug_register, fetch_debug_register_pair): Delete.
776 (debug_registers): New.
777 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
778 ALL_LWPS and debug_registers.
779 (ia64_linux_new_thread): New.
780 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
781 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
782 * ppc-linux-nat.c (last_stopped_data_address): Delete.
783 (saved_dabr_value): New.
784 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
785 ALL_LWPS.
786 (ppc_linux_new_thread): New.
787 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
788 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
789 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
790 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
791 after reading it.
792 (s390_fix_watch_points): Take a PTID argument.
793 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
794 (_initialize_s390_nat): Call linux_nat_set_new_thread.
795
d983da9c
DJ
7962007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
797 Jeff Johnston <jjohnstn@redhat.com>
798
799 * breakpoint.c (watchpoints_triggered): New.
800 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
801 Check watchpoint_triggered instead. Combine handling for software
802 and hardware watchpoints. Do not use target_stopped_data_address
803 here. Always check a watchpoint if its scope breakpoint triggers.
804 Do not stop for thread or overlay events. Improve check for
805 triggered watchpoints without a value change.
806 (watch_command_1): Insert the scope breakpoint first. Link the
807 scope breakpoint to the watchpoint.
808 * breakpoint.h (enum watchpoint_triggered): New.
809 (struct breakpoint): Add watchpoint_triggered.
810 (bpstat_stop_status): Update prototype.
811 (watchpoints_triggered): Declare.
812 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
813 (stepped_after_stopped_by_watchpoint): Delete.
814 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
815 local. Handle infwait_step_watch_state. Update calls to
816 bpstat_stop_status. Use watchpoints_triggered to check
817 watchpoints.
818 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
819 (remote_stopped_data_address): Do not check it.
820
7921a279
DJ
8212007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
822
823 * configure.ac: Add $LIBINTL when testing libbfd.
824 * configure: Regenerated.
825
fe6fbf8b
VP
8262007-09-28 Vladimir Prus <vladimir@codesourcery.com>
827
828 * NEW: Mention pending breakpoint changes and
829 support for breakpoints at multiple locations.
830
daddc3c1
DJ
8312007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
832
833 * arm-linux-tdep.c (arm_linux_software_single_step): New.
834 (arm_linux_init_abi): Use it.
835 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
836 condition correctly.
837 * arm-tdep.h (arm_get_next_pc): Declare.
838 * Makefile.in (arm-linux-tdep.o): Update.
839
7a4d50bf
VP
8402007-09-26 Vladimir Prus <vladimir@codesourcery.com>
841
842 * varobj.c (install_new_value): Don't
843 call value_get_print_value when a value is
844 lazy. Update the print_value member in a
845 single place.
846
d32a6982
VP
8472007-09-26 Vladimir Prus <vladimir@codesourcery.com>
848
849 * breakpoint.c (create_breakpoint): Set
850 condition on each location, not on the first
851 location of breakpoint.
852
489eaeba
JB
8532007-09-26 Jim Blandy <jimb@codesourcery.com>
854
855 * remote.c (getpkt_sane): Fix error message. No animals were
856 harmed in the making of this debugger.
857
3e9313ab
PM
8582007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
859
860 * p-typeprint.c: Fix 11 ARI reported problems.
861 (pascal_print_type): Fix 4 operator at end of line.
862 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
863 using strncmp function.
864 (pascal_type_print_base): Fix 2 operator at end of line.
865 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
866 using strncmp function.
867
868
5b8101ae
PM
8692007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
870
871 * Fix PR pascal/2231
872 dwarf2read.c (read_subroutine_type):
873 All pascal functions are prototyped.
874
c45f11da
PM
8752007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
876
877 * Fix PR pascal/2283
878 p-valprint.c (pascal_val_print): correct current language check.
879 Also print array of char as strings.
880
881
59aa1faa
MR
8822007-09-26 David Ung <davidu@mips.com>
883 Maciej W. Rozycki <macro@mips.com>
884
885 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
886
0b058123
PM
8872007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
888
889 * p-exp.y: Fix 12 ARI reported problems.
890 (name_not_typename): Fix 2 operator at end of line issues.
891 (yylex): Fix 3 operator at end of line issues.
892 Replace 7 DEPRECATED_STREQ macros using strcmp function.
893
b18bb924
MR
8942007-09-25 David Ung <davidu@mips.com>
895 Maciej W. Rozycki <macro@mips.com>
896
897 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
898 rules return composite types in registers as appropriate.
899
28c32713
JB
9002007-09-24 Jim Blandy <jimb@codesourcery.com>
901
902 * symfile.h (struct symfile_segment_data): Doc fixes.
903 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
904 Assert that we were passed some loaded segment addresses,
905 and that sections' segment numbers are valid.
906 Simplify offset calculation.
907 * remote.c (get_offsets): Clarify selection of relocate-by-segment
908 strategy, and set num_segments correctly. Delete redundant
909 assignments to do_sections.
910
32276632
DJ
9112007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
912
913 * frame.c (get_prev_frame_1): Also check for PC in the same register.
914
ed0616c6
VP
9152007-09-24 Vladimir Prus <vladimir@codesourcery.com>
916
917 * breakpoint.c (remove_sal): New.
918 (expand_line_sal_maybe): New.
919 (create_breakpoints): Call expand_line_sal_maybe.
920 (clear_command): Add comment.
921 (breakpoint_re_set_one): Call expand_line_sal_maybe.
922 * linespec.c (decode_indirect): Set explicit_pc to 1.
923 (decode_all_digits): Set explicit_line to 1.
924 (append_expanded_sal): New.
925 (expand_line_sal): New.
926 * linespec.h (expand_line_sal): Declare.
927 * symtab.c (init_sal): Initialize explicit_pc
928 and explicit_line.
929 * symtab.h (struct symtab_and_line): New fields
930 explicit_pc and explicit_line.
931
41f1b697
DJ
9322007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
933
934 * infcall.c (call_function_by_hand): Handle language-specific
935 pass and return by reference.
936
937 * cp-abi.c (cp_pass_by_reference): New.
938 * cp-abi.h (cp_pass_by_reference): Declare.
939 (struct cp_abi_ops): Add pass_by_reference.
940 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
941 (init_gnuv3_ops): Set pass_by_reference.
942
943 * language.c (language_pass_by_reference): New.
944 (default_pass_by_reference): New.
945 (unknown_language_defn, auto_language_defn, local_language_defn): Add
946 default_pass_by_reference.
947 * langauge.h (struct language_defn): Add la_pass_by_reference.
948 (language_pass_by_reference, default_pass_by_reference): Declare.
949 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
950 * c-lang.c (c_language_defn, asm_language_defn)
951 (minimal_language_defn): Likewise.
952 (cplus_language_defn): Add cp_pass_by_reference.
953 * f-lang.c (f_language_defn): Add default_pass_by_reference.
954 * jv-lang.c (java_language_defn): Likewise.
955 * m2-lang.c (m2_language_defn): Likewise.
956 * objc-lang.c (objc_language_defn): Likewise.
957 * p-lang.c (pascal_language_defn): Likewise.
958 * scm-lang.c (scm_language_defn): Likewise
959
0d381245
VP
9602007-09-23 Vladimir Prus <vladimir@codesourcery.com>
961
962 Allow a code breakpoint to have several locations
963 associated with it.
964 * breakpoint.h (enum enable_state): Remove the
965 bp_shlib_disabled enumerator.
966 (struct bp_location): New members shlib_disabled,
967 global_next, enabled and function_name.
968 Rename pending to condition_not_parsed.
969
970 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
971 (ALL_BP_LOCATIONS_SAFE): Likewise.
972 (breakpoint_enabled): Don't check for pending.
973 (condition_command): Free and update all locations of
974 a breakpoint.
975 (insert_bp_location): Adjust.
976 (software_breakpoint_inserted_here_p): Don't care
977 if breakpoint is enabled, as soon as it's inserted.
978 (print_it_typical): Print bpstat's location, not
979 bpstat's breakpoint's location.
980 (bpstat_stop_status): Iterate over all locations, not
981 all breakpoints.
982 (print_breakpoint_location): New.
983 (print_one_breakpoint): Renamed to
984 (print_one_breakpoint_location): ...this. Take
985 parameters to describe which location is being
986 printed. Modify code to properly print header
987 for several locations and individual locations.
988 (print_one_breakpoint): Print all locations.
989 (breakpoint_has_pc): New.
990 (describe_other_breakpoints): Use the above.
991 (check_duplicates): Renamed to...
992 (check_duplicates_for): .. this.
993 (check_duplicates): Use check_duplicates_for.
994 (allocate_bp_location): Adjust.
995 (set_raw_breakpoint_without_location): New,
996 extracted from set_raw_breakpoint.
997 (set_breakpoint_location_function): New.
998 (set_raw_breakpoint): Use
999 set_raw_breakpoint_without_location.
1000 (make_breakpoint_permanent): Mark all locations
1001 as inserted.
1002 (disable_breakpoints_in_shlibs): Iterate over
1003 locations.
1004 (disable_breakpoints_in_unloaded_shlib): Likewise.
1005 (re_enable_breakpoints_in_shlibs): Likewise.
1006 (mention): Say "pending" when breakpoint has
1007 zero locations. If breakpoint has more than one
1008 location, say so.
1009 (add_location_to_breakpoint): New.
1010 (create_breakpoint): Accept symtabs_and_lines, not
1011 symtab_and_line. Pass extra sals to
1012 add_location_to_breakpoint.
1013 (create_breakpoints): Pass symtabs_and_lines to
1014 create_breakpoints.
1015 (break_command_1): Make pending breakpoints
1016 have zero locations.
1017 (do_captured_breakpoint): Remove wrong allocation.
1018 (clear_command): Iterate over all locations.
1019 (unlink_locations_from_global_list): Renamed
1020 from unlink_location_from_global_list. Remove
1021 all locations.
1022 (delete_breakpoint): Remove all locations.
1023 Iterate over all locations when deciding which
1024 other location to re-enable.
1025 (all_locations_are_pending): New.
1026 (update_breakpoint_locations): Renamed from
1027 update_breakpoint_location. Try to match old
1028 and new locations using names of containing
1029 functions.
1030 (breakpoint_re_set_one): Adjust.
1031 (find_location_by_number): New.
1032 (disable_command): Allow disabling individual location.
1033 (enable_command): Allow enabling individual location.
1034 * breakpoint.c: Adjust all uses of breakpoint's
1035 enable state to for bp_shlib_disabled change.
1036
fe3f5fa8
VP
10372007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1038
1039 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1040 (resolve_pending_breakpoint): Remove.
1041 (re_enable_breakpoints_in_shlibs): Remove.
1042 (unlink_locations_from_global_list): New.
1043 (update_breakpoint_locations): New.
1044 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1045 Use parse_condition and update_breakpoint_location to
1046 reset breakpoint. Ignore 'symbol not found' error from
1047 decode_line_1.
1048 (breakpoint_re_set): Don't emit newline before the
1049 reason why breakpoint is not reset.
1050 (do_enable_breakpoint): Don't specially process pending
1051 breakpoints.
1052 (free_bp_location): New.
1053 (break_command_1): For pending breakpoints, initialize
1054 all fields of a sal with zeroes.
1055 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1056 * infcmd.c (post_create_inferior): Don't call
1057 re_enable_breakpoints_in_shlibs.
1058 * infrun.c (handle_inferior_event): Likewise.
1059 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1060 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1061 * win32-nat.c (get_win32_debug_event): Likewise.
1062
511a6cd4
VP
10632007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1064
018d34a4
VP
1065 * breakpoint.c (create_breakpoint): Split from
1066 create_breakpoints, implementing most of its logic.
1067 Take just a single sal, single address string and
1068 single condition. Do not take parsed condition at
1069 all.
1070 (create_breakpoints): Just call create_breakpoint
1071 for each sal.
1072 (find_condition_and_thread): New.
1073 (break_command_1): Use find_condition_and_thread.
1074 Do not keep parsed conditions.
1075 (do_captured_breakpoint): Don't convert
1076 condition string to struct expression.
1077
10782007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1079
511a6cd4
VP
1080 * breakpoint.h (struct breakpoint): Move the cond
1081 field to...
1082 (struct bp_location): Here.
1083 * breakpoint.c (condition_command, bpstat_stop_status)
1084 (print_one_breakpoint, allocate_bp_location)
1085 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1086 (create_exec_event_catchpoint, create_breakpoints)
1087 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1088 (create_ada_exception_breakpoint, set_breakpoint_sal)
1089 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1090 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1091
4f8d1dc6
VP
10922007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1093
1094 Associate bp_stat with bp_location, not breakpoint.
1095 * breakpoint.h (breakpoint_at): Change type
1096 to bp_location*.
1097 * breakpoint.c (bpstat_alloc): Take bp_location,
1098 not breakpoint.
1099 (bpstat_find_breakpoint): Look at bpstat's location's
1100 owner, not at bpstat->breakpoint_at.
1101 (bpstat_find_step_resume_breakpoint): Likewise.
1102 (bpstat_num): Likewise.
1103 (print_it_typical): Likewise.
1104 (print_bp_stop_message): Likewise.
1105 (watchpoint_check): Likewise.
1106 (bpstat_what): Likewise.
1107 (bpstat_get_triggered_catchpoints): Likewise.
1108 (breakpoint_auto_delete): Likewise.
1109 (delete_breakpoint): Likewise.
1110 (bpstat_stop_status): Pass location, not breakpoint,
1111 to bpstat_alloc. Look at bpstat's location's
1112 owner, not at bpstat->breakpoint_at.
1113
32623386
JB
11142007-09-21 Jim Blandy <jimb@codesourcery.com>
1115
1116 * macrotab.h (new_macro_table): Document that removing information
1117 from an obstack/bcache-managed macro table leaks memory.
1118 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1119 that data is never freed in obstack/bcache-managed macro tables,
1120 just leak the storage.
1121 (macro_undef): If we're undefining a macro at exactly the same
1122 source location that we defined it, simply remove the definition
1123 altogether.
1124
c295b2e5
JB
11252007-09-21 Joel Brobecker <brobecker@adacore.com>
1126
1127 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1128 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1129 Adjust the struct sym_fns object accordingly by setting
1130 the new field to NULL.
1131 * xcoffread.c (aix_process_linenos): Make static.
1132 (xcoff_sym_fns): Set new field to aix_process_linenos.
1133 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1134 by call to new the new sym_fns sym_read_linetable function.
1135 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1136 * config/rs6000/tm-rs6000.h: Delete.
1137
ab2e1992
MR
11382007-09-21 David Ung <davidu@mips.com>
1139 Maciej W. Rozycki <macro@mips.com>
1140
1141 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1142 rules do not treat composite types specially.
1143
97ab0fdd
MR
11442007-09-20 Maciej W. Rozycki <macro@mips.com>
1145
1146 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1147 (mips16_in_function_epilogue_p): Likewise.
1148 (mips_in_function_epilogue_p): Likewise.
1149 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1150
01fe12f6
JB
11512007-09-19 Joel Brobecker <brobecker@adacore.com>
1152
1153 * configure.ac: Add check for "etext".
1154 * configure, config.in: Regenerate.
1155 * maint.c (TEXTEND): Only define if either _etext or etext
1156 are available.
1157 Disable the profiling functionality if TEXTEND is not defined.
1158
aa6c981f
DJ
11592007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1160
1161 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1162 address register. Correct the call to frame_id_build.
1163 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1164 is invalid.
1165
39312971
JB
11662007-09-18 Joel Brobecker <brobecker@adacore.com>
1167
1168 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1169 the linetable past the function end.
1170
558dc30a
JW
11712007-09-18 James E. Wilson <wilson@specifix.com>
1172
1173 * MAINTAINERS: Update my email address.
1174
60e2c248
JG
11752007-09-18 Jerome Guitton <guitton@adacore.com>
1176
1177 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1178 (inf_ttrace_delete_dying_threads_callback): New function.
1179 (inf_ttrace_resume): After resuming the execution, iterate over
1180 the dying threads to delete them for the thread list.
1181 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1182 mark the corresponding thread as dying instead of removing it
1183 from the thread list.
1184 (inf_ttrace_thread_alive): return 0 for dying threads.
1185
f4c1edd8
JB
11862007-09-17 Joel Brobecker <brobecker@adacore.com>
1187
1188 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1189 that return_frame is not null.
1190
8d4e36ba
JB
11912007-09-17 Joel Brobecker <brobecker@adacore.com>
1192
1193 * solib-svr4.c: Add include of "auxv.h".
1194 (enable_break): Use the AT_BASE auxiliary entry if available.
1195 * Makefile.in (solib-svr4.o): Update dependencies.
1196
f9ed52be
JB
11972007-09-17 Joel Brobecker <brobecker@adacore.com>
1198
1199 * NEWS: Create a new section for the next release branch.
1200 Rename the section of the current branch, now that it has
1201 been cut.
1202
eff4f95e
JG
12032007-09-17 Jerome Guitton <guitton@adacore.com>
1204
1205 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1206 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1207
084344da
VP
12082007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1209
1210 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1211 * mi/mi-cmds.h (mi_cmd_list_features): New.
1212 * mi/mi-main.c (mi_cmd_list_features): New.
1213
50c7215d 12142007-09-11 Joel Brobecker <brobecker@adacore.com>
1215
1216 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1217 * version.in: Bump version to 6.7.50-20070911-cvs.
1218
4d8453a5
DJ
12192007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1220
1221 * thread.c (free_thread): Do not delete the step resume breakpoint
1222 right away.
1223
4eb0ad19
DJ
12242007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1225
1226 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1227 * corelow.c (core_read_description): New.
1228 (init_core_ops): Set to_read_description.
1229 * gdbarch.sh: Add gdbarch_core_read_description.
1230 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1231 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1232 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1233 (mips_register_g_packet_guesses): Use them.
1234 (_initialize_mips_tdep): Initialize them.
1235 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1236 * gdbarch.h, gdbarch.c: Regenerated.
1237
6a6b96b9
UW
12382007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1239
1240 * infrun.c (stepping_past_breakpoint): New global variable.
1241 (stepping_past_breakpoint_ptid): Likewise.
1242 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1243 Only switch threads if we need to single-step over a breakpoint hit
1244 in the previously selected thread. If stepping, remember previous
1245 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1246 switch_to_thread instead of copying its contents.
1247 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1248 prepare_to_proceed returns true.
1249 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1250 (context_switch): Call switch_to_thread.
1251 (handle_inferior_event): Switch back to previous thread if requested
1252 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1253 * gdbthread.h (switch_to_thread): Add prototype.
1254 * thread.c (switch_to_thread): Make global.
1255
0b058123 12562007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
b20a3440
PM
1257
1258 * p-valprint.c: Fix 7 ARI reported problems.
1259 (pascal_val_print): Fix one operator at end of line issue.
1260 Use paddress function to remove use of
1261 deprecated_print_address_numeric function (2 times).
1262 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1263 (pascal_value_print): Fix 3 operator at end of line issues.
1264
faa95490
DJ
12652007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1266
1267 PR gdb/2103
1268 * arm-tdep.c (arm_in_call_stub): Delete.
1269 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1270
f0027ce2
DJ
12712007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1272
1273 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1274 types.
1275
ea37ba09
DJ
12762007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1277 Jim Blandy <jimb@codesourcery.com>
1278
1279 * NEWS: Update description of string changes. Mention print/s.
1280 * c-valprint.c (textual_element_type): New.
1281 (c_val_print): Use it. Do not skip address printing for pointers
1282 with a string format.
1283 (c_value_print): Doc update.
1284 * dwarf2read.c (read_array_type): Use make_vector_type.
1285 * gdbtypes.c (make_vector_type): New.
1286 (init_vector_type): Use it.
1287 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1288 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1289 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1290 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1291 (make_vector_type): New.
1292 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1293 Call the language print routine for string format.
1294 (print_scalar_formatted): Call val_print for string format. Handle
1295 unsigned original types for char format.
1296 (validate_format): Do not reject string format.
1297 * stabsread.c (read_type): Use make_vector_type.
1298 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1299
8fb822e0
MS
13002007-09-04 Michael Snyder <msnyder@access-company.com>
1301
fcd776e5
MS
1302 * expprint.c (print_subexp_standard): Check strchr for null.
1303 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1304
7d63ec12
MS
1305 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1306
8fb822e0
MS
1307 * stabsread.c (patch_block_status): Guard against null.
1308 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1309
2025a643
DJ
13102007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1311
1312 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1313 in internal error message.
1314
de1b3c3d
PA
13152007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1316 Daniel Jacobowitz <dan@codesourcery.com>
1317
1318 * infcmd.c (post_create_inferior): Update comment.
1319 (run_command_1): Always call post_create_inferior with 0 as
1320 from_tty.
1321
1322 * i386-cygwin-tdep.h: New.
1323 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1324 (win32_xfer_shared_library): Make it extern.
1325
1326 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1327 i386-cygwin-tdep.h.
1328 (win32_so_ops): Delete.
1329 (get_relocated_section_addrs): Delete.
1330 (solib_symbols_add): Delete.
1331 (register_loaded_dll): Delete.
1332 (win32_make_so): New.
1333 (handle_load_dll): Use win32_make_so.
1334 (win32_free_so): Free the passed in so.
1335 (win32_relocate_section_addresses): Delete.
1336 (win32_solib_create_inferior_hook): Delete.
1337 (handle_unload_dll): Don't add PE offset here. Free so with
1338 win32_free_so instead of free_so.
1339 (win32_special_symbol_handling): Delete.
1340 (get_win32_debug_event): Remove unneeded calls. Set state to
1341 TARGET_WAITKIND_LOADED on a dll unload.
1342 (do_initial_win32_stuff): Clear cygwin_load_start and
1343 cygwin_load_end.
1344 (map_code_section_args): Delete.
1345 (dll_code_sections_add): Delete.
1346 (core_section_load_dll_symbols): Delete.
1347 (win32_xfer_shared_libraries): New.
1348 (win32_current_sos): Delete.
1349 (win32_xfer_partial): New.
1350 (open_symbol_file_object): Delete.
1351 (in_dynsym_resolve_code): Delete.
1352 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1353 of win32_ops. Remove win32_so_ops settings. Don't set
1354 current_target_so_ops here.
1355
1356 * Makefile.in (i386_cygwin_tdep_h): New variable.
1357 (i386-cygwin-tdep.o): Update dependencies.
1358 (win32-nat.o): Update dependencies.
1359
de584861
PA
13602007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1361 Daniel Jacobowitz <dan@codesourcery.com>
1362
1363 * gdbarch.sh (core_xfer_shared_libraries): New.
1364
1365 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1366
1367 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1368
1369 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1370 (xml_escape_text): New.
1371 * xml-support.h (xml_escape_text): Declare.
1372
1373 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1374 * config/i386/cygwin.mt (TDEPFILES): ... here.
1375
1376 * win32-nat.c: (fetch_elf_core_registers): Delete.
1377 (win32_elf_core_fn): Delete.
1378 (_initialize_core_win32): Delete.
1379
1380 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1381 "xml-support.h" and "gdbcore.h".
1382 (i386_win32_gregset_reg_offset): New.
1383 (I386_WIN32_SIZEOF_GREGSET): New.
1384 (i386_win32_regset_from_core_section): New.
1385 (win32_xfer_shared_library): New.
1386 (struct cpms_data): New.
1387 (core_process_module_section): New.
1388 (win32_core_xfer_shared_libraries): New.
1389 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1390 gregset_num_regs, sizeof_gregset members of tdep. Register
1391 regset_from_core_section and core_xfer_shared_libraries callbacks.
1392
1393 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1394 * gdbarch.h, gdbarch.c: Regenerate.
1395
7160c4c3
PA
13962007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1397
1398 * corelow.c (core_xfer_partial): Pass writebuf to
1399 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1400
6dc13412
PA
14012007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1402
1403 * arm-tdep.h (arm_skip_stub): Declare.
1404 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1405 "gdbcore.h".
1406 (arm_pe_skip_trampoline_code): New function.
1407 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1408 gdbarch_skip_trampoline_code callback.
1409 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1410
ca8385e5
DJ
14112007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1412
1413 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1414
5c39566f
DJ
14152007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1416
1417 * configure.ac: Add --with-expat.
1418 * configure: Regenerated.
1419
6a30b0a5
AS
14202007-09-03 Andreas Schwab <schwab@suse.de>
1421
1422 * configure.ac: Accept --with-system-readline.
1423 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1424 * configure: Regenerate.
1425 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1426 substituted values.
1427 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1428
edff0c0a
DJ
14292007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1430 Daniel Jacobowitz <dan@codesourcery.com>
1431
1432 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1433
0b93d57c
JK
14342007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1435
1436 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1437
b8533aec
DJ
14382007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1439
1440 * top.c (print_gdb_version): Update for GPL version 3.
1441
f5db8714
JK
14422007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1443
1444 * NEWS: Mention the build-id .debug files verification.
1445
d99148ef
JK
14462007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1447
1448 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1449
77069918
JK
14502007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1451
1452 * Makefile.in (symfile.o): Update dependencies.
1453 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1454 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1455 (struct build_id): New structure.
1456 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1457 (find_separate_debug_file): New variable BUILD_ID.
1458 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1459
202ddcaa
VP
14602007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1461
1462 * varobj.c (struct varobj): Fix comment
1463 for the type member not to lie when it can be
1464 NULL.
1465
02142340
VP
14662007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1467
1468 Implement -var-info-path-expression.
1469
1470 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1471 Declare.
1472 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1473 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1474 * varobj.c (struct varobj): New field 'path_expr'.
1475 (c_path_expr_of_child, cplus_path_expr_of_child)
1476 (java_path_expr_of_child): New.
1477 (struct language_specific): New field path_expr_of_child.
1478 (varobj_create): Initialize the path_expr field.
1479 (varobj_get_path_expr): New.
1480 (new_variable): Initialize the path_expr field.
1481 (free_variable): Free the path_expr field.
1482 (adjust_value_for_children_access): New parameter
1483 WAS_TYPE.
1484 (c_number_of_children): Adjust.
1485 (c_describe_child): New parameter CFULL_EXPRESSION.
1486 Compute full expression.
1487 (c_value_of_child, c_type_of_child): Adjust.
1488 (cplus_number_of_children): Adjust.
1489 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1490 Compute full expression.
1491 (cplus_name_of_child, cplus_value_of_child)
1492 (cplus_type_of_child): Adjust.
1493 * varobj.h (varobj_get_path_expr): Declare.
1494
bccc275a
VP
14952007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1496
1497 * mi/mi-cmd-var.c (print_varobj): If a varobj
1498 type is NULL, don't try to print it.
1499
f2db237a
AM
15002007-08-30 Alan Modra <amodra@bigpond.net.au>
1501
1502 * ppc-linux-nat.c (right_fill_reg): Delete.
1503 (supply_gregset): Use ppc_supply_gregset.
1504 (supply_fpregset): Use ppc_supply_fpregset.
1505 (fill_gregset): Use ppc_collect_gregset.
1506 (fill_fpregset): Use ppc_collect_fpregset.
1507 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1508 (right_supply_register, ppc_linux_supply_gregset): Delete.
1509 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1510 (ppc_linux_supply_fpregset): Delete.
1511 (ppc_linux_collect_gregset): New function.
1512 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1513 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1514 ppc_linux_supply_gregset, and ppc_collect_gregset.
1515 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1516 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1517 (ppc_linux_regset_from_core_section): Update.
1518 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1519 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1520 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1521 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1522 (ppcobsd_collect_gregset): Likewise.
1523 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1524 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1525 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1526 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1527 (rs6000_aix64_reg_offsets): Likewise.
1528 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1529 ppc_floating_point_unit_p.
1530 (rs6000_aix_collect_regset): Similarly.
1531 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1532 when regsize is larger than regcache register size.
1533 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1534 regcache register size.
1535 (ppc_greg_offset): New function, split out from..
1536 (ppc_supply_gregset): ..here. Separate code handling all regs from
1537 single reg case. Correct xer offset.
1538 (ppc_fpreg_offset): New function, split out from..
1539 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1540 single reg case.
1541 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1542 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1543 a fp unit, instead return if no fp.
1544
fe5aea2e
JB
15452007-08-29 Jim Blandy <jimb@codesourcery.com>
1546
1547 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1548 this code has not been compiled for two years.
1549
13ce7133
MS
15502007-08-29 Michael Snyder <msnyder@access-company.com>
1551
1552 * event-top.c (gdb_readline2): Return after EOF.
1553
fd4a0f2f
JB
15542007-08-29 Joel Brobecker <brobecker@adacore.com>
1555
1556 * symtab.c: Remove a function that has been commented out 3 years ago.
1557
d037d088
CD
15582007-08-29 Randolph Chung <tausq@debian.org>
1559
1560 * hppa-tdep.c (hppa32_cannot_fetch_register)
1561 (hppa64_cannot_fetch_register): New functions.
1562 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1563 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1564
19d378fc
MS
15652007-08-28 Michael Snyder <msnyder@access-company.com>
1566
57cdecd2
MS
1567 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1568 check for null before calling check_typedef.
1569
19d378fc
MS
1570 * NEWS: Mention Coverity bug fixes.
1571
36acd84e
UW
15722007-08-27 Markus Deuling <deuling@de.ibm.com>
1573
1574 * spu-tdep.c (spu_pointer_to_address): New function.
1575 (spu_integer_to_address): Likewise.
1576 (spu_gdbarch_init): Add spu_pointer_to_address and
1577 spu_integer_to_address to gdbarch.
1578
8ad7c2b9
PA
15792007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1580
1581 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1582
4de6a07e
JB
15832007-08-23 Joel Brobecker <brobecker@adacore.com>
1584
1585 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1586 that contains the GDB license.
1587 * copying.awk: Adjust to the GPLv3 wording.
1588 * copying.c: Regenerate.
1589
07aed0eb
JB
15902007-08-23 Joel Brobecker <brobecker@adacore.com>
1591
01d4100f 1592 * copying.awk: Protoization, and i18n markup.
07aed0eb 1593
50efebf8
JB
15942007-08-23 Joel Brobecker <brobecker@adacore.com>
1595
1596 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1597 * copyright.sh: Likewise.
1598 * gdb-events.sh: Likewise.
1599 * gdb_gcore.sh: Likewise.
1600 * gdb_mbuild.sh: Likewise.
1601 * gdbarch.sh: Likewise.
1602 * observer.sh: Likewise.
1603 * features/feature_to_c.sh: Likewise.
1604 * regformats/regdat.sh: Likewise.
1605
16062007-08-23 Joel Brobecker <brobecker@adacore.com>
a9762ec7
JB
1607
1608 Switch the license of all .c files to GPLv3.
1609 Switch the license of all .h files to GPLv3.
1610 Switch the license of all .cc files to GPLv3.
1611
5a0e3bd0
JB
16122007-08-23 Joel Brobecker <brobecker@adacore.com>
1613
1614 * configure.ac: Switch license to GPLv3.
1615
609ca2b9
DJ
16162007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1617
1618 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1619 determine the file's FPU type.
1620
8d26208a
DJ
16212007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1622
1623 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1624 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1625 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1626
65728c26
DJ
16272007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1628
1629 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1630 Fix formatting.
1631 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1632 (elf_lookup_lib_symbol): Fix formatting.
1633
a2ca50ae
MS
16342007-08-21 Michael Snyder <msnyder@access-company.com>
1635
6b2d86bd
MS
1636 * dbxread.c (read_dbx_symtab): Guard null deref.
1637 Break up long line.
1638
a2ca50ae
MS
1639 * valops.c (find_overload_match): Guard against NULL.
1640
54e116dd
DJ
16412007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1642
1643 * MAINTAINERS (Patch Champions): Remove self.
1644
f429d7d0
DJ
16452007-08-21 Chris Smith <chris.smith@st.com>
1646
1647 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1648 line.
1649
a2ca50ae 16502007-08-18 Michael Snyder <msnyder@access-company.com>
a287cea6 1651
31e9f6b6
MS
1652 * stabsread.c (dbx_lookup_type): Memory leak.
1653
32107cd5
MS
1654 * event-loop.c (delete_async_signal_handler): Move pointer null
1655 test to before pointer dereference.
1656
44db85f8
MS
1657 * ui-out.c (append_header_to_list): Possible cut and paste error.
1658
a287cea6
MS
1659 * MAINTAINERS: white space tweak.
1660
0bd9908d
MS
16612007-08-17 Michael Snyder <msnyder@access-company.com>
1662
f91162e1
MS
1663 * stack.c (print_frame): Memory leak.
1664
1e8189fb
MS
1665 * completer.c (filename_completer): Avoid memory leak.
1666 Remove unnecessary nested block.
1667
348038cd
MS
1668 * c-exp.y (parse_number): Memory leak.
1669
1f20ed91
MS
1670 * completer.c (location_completer): Must free 'fn_list', except
1671 in the one case where it is returned (as 'list').
1672
74dddad3
MS
1673 * varobj.c (value_of_root): Memory leak.
1674
0bd9908d
MS
1675 * gdbtypes.h (virtual_base_list): Remove export decl.
1676 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1677 (virtual_base_index): Memory leak.
1678 (virtual_base_index_skip_primaries): Ditto.
1679
bdb4c075
MG
16802007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1681
1682 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1683 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1684 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1685 (xtensa_read_register): New function.
1686 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1687 (xtensa_insn_kind): New types.
1688 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1689 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1690 (xtensa_verify_config, xtensa_pseudo_register_read)
1691 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1692 (xtensa_store_return_value)
1693 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1694 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1695 (xtensa_frame_this_id, xtensa_frame_prev_register)
1696 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1697 (call0_frame_cache, call0_frame_get_reg_at_entry)
1698 (call0_classify_opcode, call0_track_op)
1699 (call0_analyze_prologue, call0_frame_cache): New functions.
1700
198757a8
VP
17012007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1702
1703 * breakpoint.c (bpstat_free): New.
1704 (bpstat_clear): Use bpstat_free.
1705 (delete_breakpoint): Document why we cannot
1706 remove bpstats from stop_bpstat.
1707 * breakpoint.h (bpstat_free): Declare.
1708
dc66ab8a
MS
17092007-08-16 Michael Snyder <msnyder@access-company.com>
1710
1711 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1712
40c8aaa9
JB
17132007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1714 Joel Brobecker <brobecker@adacore.com>
1715
1716 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1717
ee90b9ab
JB
17182007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1719 Joel Brobecker <brobecker@adacore.com>
1720
1721 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1722 checkin guarding against NULL.
1723
5b6fe301
MS
17242007-08-14 Michael Snyder <msnyder@access-company.com>
1725
e5908723
MS
1726 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1727 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1728 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1729 go at beginning of new line.
1730
08ef48c5
MS
1731 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1732 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1733 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1734 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1735 tui-winsource.h, tui.c, tui.h: Function declarations and
1736 definitions, wrap long lines.
1737
ef5eab5a
MS
1738 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1739 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1740 Reformat block comments to GNU standard.
1741
1cc6d956
MS
1742 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1743 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1744 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1745 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1746 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1747 spaces after periods, etc).
1748
5b6fe301
MS
1749 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1750 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1751 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1752 tui-winsource.h: Whitespace changes, fix pointer declarations
1753 to be consistant.
1754
64a1bf19
JB
17552007-08-14 Joel Brobecker <brobecker@adacore.com>
1756 Michael Snyder <msnyder@access-company.com>
1757
1758 * ada-lang.c (field_alignment): Guard against NULL.
1759
e933291e
JB
17602007-08-14 Joel Brobecker <brobecker@adacore.com>
1761
1762 * MAINTAINERS (Global Maintainers): Add self.
1763
348144ba
MS
17642007-08-14 Michael Snyder <msnyder@access-company.com>
1765
068acb6c
MS
1766 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1767
6d307763
MS
1768 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1769
348144ba
MS
1770 * varobj.c (cplus_describe_child): Guard against null.
1771 Use "NULL" instead of "0" to initialize pointers.
1772
b8926edc
DJ
17732007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1774
1775 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1776 to match any gdbarch with matching OSABI. Set default ABI and FPU
1777 after running the OSABI handler.
1778
cdd6623c
DJ
17792007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1780
1781 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1782 * config/i386/linux.mt (TDEPFILES): ...to here.
1783
cb851954
VP
17842007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1785
cb851954
VP
1786 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1787 the 'silent' parameter and code to implement that.
1788 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1789 prototype.
1790 * win32-nat.c: Adjust.
1791 * solib.c: Adjust.
1792
e14a792b
VP
17932007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1794
e14a792b
VP
1795 * breakpoint.c (update_breakpoints_after_exec): Don't
1796 set address to zero.
1797
be8ca11b
MS
17982007-08-13 Michael Snyder <msnyder@access-company.com>
1799
ac3eeb49
MS
1800 * valops.c: Whitespace clean-up.
1801
81b7c67a
MS
1802 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1803
f5b73fbb
MS
1804 * event-top.c (command_line_handler): Memory leak.
1805
b538c234
MS
1806 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1807 No need to make copy.
1808
be8ca11b
MS
1809 * source.c (find_source_lines): Require symtab 's'.
1810
489f0516
MS
18112007-08-11 Michael Snyder <msnyder@access-company.com>
1812
1813 * completer.c: Spelling fix in comments.
1814
9c3f90bd
MS
18152007-08-10 Michael Snyder <msnyder@access-company.com>
1816
687d6395 1817 * gdbtypes.c: Coding standard cleanup.
7ba81444
MS
1818 * gdbtypes.c: Comment/whitespace cleanup.
1819
6aef78af
MS
1820 * stabsread.c (read_huge_number): Attempt to compute value before
1821 values that it depends on.
1822
46be51c4
MS
1823 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1824 (decode_objc): Use "NULL" instead of 0.
1825 (find_method): Ditto.
1826 (decode_all_digits): Ditto.
1827 (decode_dollar): Ditto.
1828
412bbd6c
MS
1829 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1830
76bd6e0b
MS
1831 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1832
518f9d3c
MS
1833 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1834 after closing bfd.
1835
9c3f90bd
MS
1836 * completer.c: Comment/whitespace cleanup.
1837
adee0206
JB
18382007-08-10 Joel Brobecker <brobecker@adacore.com>
1839
1840 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1841
18422007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
9f8e6999
MG
1843
1844 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1845 allocated file descriptors.
1846
271a27b8
JB
18472007-08-10 Joel Brobecker <brobecker@adacore.com>
1848
1849 * Makefile.in: Minor cleanup throughout; add some missing variables,
1850 add some missing rules, remove some rules that are no longer needed,
1851 and fix the dependencies in several rules.
1852
57da7796
LC
18532007-08-10 Ludovic Courtès <ludo@gnu.org>
1854
d4310edb
LC
1855 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1856 (scm_lang_h, scm_tags_h): New.
1857 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1858 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1859 * defs.h (enum language): Add `language_scm'.
1860
57da7796
LC
1861 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1862 opening.
1863
93c06293
LC
18642007-08-09 Ludovic Courtès <ludo@gnu.org>
1865
1866 * MAINTAINERS (Write After Approval): Add myself.
1867
0997b535
MS
18682007-08-09 Michael Snyder <msnyder@access-company.com>
1869
1870 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1871
4fec86cf
JB
18722007-08-09 Joel Brobecker <brobecker@adacore.com>
1873
1874 * solib-som.c (som_relocate_section_addresses): Stop saving
1875 the $CODE$ section in the so_list structure.
1876
7b871568
MG
18772007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1878
1879 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1880 (xtensa_register_group_t): Add entries for coprocessors.
1881 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1882 (xtensa_add_reggroups): Likewise.
1883 (xtensa_register_reggroup_p): Likewise.
1884 (xtensa_coprocessor_register_group): New function.
1885 (xtensa_cp): New.
1886
652aaa24
JK
18872007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1888
1889 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1890
decbce07
MS
18912007-08-08 Michael Snyder <msnyder@access-company.com>
1892
6217bf3e
MS
1893 * target.c (target_read_string): Guard against null.
1894
6225abfa
MS
1895 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1896
3e40160c 1897 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3277c0e0 1898 (tui_set_layout_for_display_command): Mem leak.
3e40160c 1899
91d2803c
MS
1900 * top.c (command_line_input): Memory leak.
1901
ea5bf0a1
MS
1902 * solib-svr4.c (open_symbol_file_object): Memory leak.
1903 (svr4_current_sos): Ditto.
1904 (enable_break): Ditto.
1905
34e2dfde
MS
1906 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1907
decbce07
MS
1908 * dwarf2read.c (add_partial_symbol): Memory leak.
1909
4cdfadb1
MS
19102007-08-06 Michael Snyder <msnyder@access-company.com>
1911
1912 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1913
b1ddacc7
JB
19142007-08-05 Jim Blandy <jimb@codesourcery.com>
1915
1916 * macroexp.c (init_buffer): Remove testing code that overrides the
1917 caller's length guess.
1918 (gather_arguments): Use a larger initial size, now that the vector
1919 growth code has been exercised.
1920
5d9643ba
PA
19212007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1922
1923 * solib-target.c (solib_target_relocate_section_addresses): Add
1924 orig_delta to addr_high.
1925
27e06d3e
MS
19262007-08-04 Michael Snyder <msnyder@access-company.com>
1927
1ed489bd
MS
1928 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1929
c1f5197e
MS
1930 * breakpoint.c (print_one_breakpoint): Off by one error.
1931
27e06d3e
MS
1932 * tracepoint.c (add_register): Off by one error.
1933 (stringify_collection_list): Free malloc buffer.
1934
03b4bca2
MS
19352007-08-03 Michael Snyder <msnyder@access-company.com>
1936
474d0d0c
MS
1937 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1938 stop memory leak, straighten out cleanups.
1939
03b4bca2
MS
1940 * jv-lang.c (java_link_class_type): Guard against NULL.
1941
423c0af8
MS
19422007-08-02 Michael Snyder <msnyder@access-company.com>
1943
f9780d5b
MS
1944 * gdbtypes.c (create_set_type): Test should only be done within
1945 the preceeding if block. Otherwise, variable is uninitialized.
1946
423c0af8
MS
1947 * gdbtypes.c (check_typedef): Guard NULL.
1948
c0645fb5
MS
19492007-08-01 Michael Snyder <msnyder@access-company.com>
1950
3cebf8d8
MS
1951 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1952 avoid dereference in lookup_cmd_1.
1953
c0645fb5
MS
1954 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1955 clean up long lines.
1956 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1957 (tui_alloc_win_info): Ditto.
1958 (tui_add_content_elements): Ditto.
1959 * tui/tui-file.c (tui_file_magic): Ditto.
1960
abe34c35
MS
19612007-07-31 Michael Snyder <msnyder@access-company.com>
1962
967af18d
MS
1963 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1964 True and false paths are mutually exclusive.
1965
40742ab6
MS
1966 * event-top.c (command_line_handler): Add pedantic return.
1967
7c6e0d48
MS
1968 * f-valprint.c (info_common_command): Bail out to prevent null
1969 pointer deref. Break up a long line.
1970
c7b1adc9
MS
1971 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1972
73780b3c
MS
1973 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1974
abe34c35
MS
1975 * printcmd.c (build_address_symbolic): Remove dead code and dead
1976 variable.
1977
e48883f7
DJ
19782007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1979
1980 * linespec.c (minsym_found): Advance to the next line if possible.
1981
57204837
PA
19822007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1983
1984 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1985 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1986 solib-svr4.o, and add solib-target.o
1987
fed8b01e
MS
19882007-07-27 Michael Snyder <msnyder@access-company.com>
1989
1990 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1991
9ceb0b4c
MR
19922007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1993
1994 * MAINTAINERS (Write After Approval): Add myself.
1995
c80a96a8
MR
19962007-07-26 Maciej W. Rozycki <macro@mips.com>
1997
1998 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1999 for include files.
2000
5b311828
MR
20012007-07-25 Maciej W. Rozycki <macro@mips.com>
2002
2003 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2004
f52df7d9 20052007-07-24 Michael Snyder <msnyder@access-company.com>
55765a25 2006
f52df7d9
MS
2007 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2008 'buffer' must cover both branches that call strcmp (Coverity).
55765a25 2009
f52df7d9 2010 * stack.c (print_frame_args): Check return value of lookup_symbol.
747f3d18
MS
2011
2012 * ax-gdb.c (find_field): Guard against null ptr.
2013
69ae91d3
UW
20142007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2015
2016 * regformats/reg-spu.dat: Fix order of npc, id registers.
2017
98646950
UW
20182007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2019
2020 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2021 sections should always go to the executable file.
2022
193774b3
MR
20232004-07-20 Chris Dearman <chris@mips.com>
2024
2025 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2026 prologue instructions.
2027
ce1f96de
MR
20282007-07-20 Maciej W. Rozycki <macro@mips.com>
2029
2030 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2031 a direct test.
2032
bcf1ea1e
MR
20332007-07-20 Chris Dearman <chris@mips.com>
2034 Maciej W. Rozycki <macro@mips.com>
2035
2036 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2037 description.
2038
255e7678
DJ
20392007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2040 Daniel Jacobowitz <dan@codesourcery.com>
2041
2042 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2043 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2044 printf.
2045 * NEWS: Mention gdbserver DLL support.
2046
a8c50c1f
DJ
20472007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2048
2049 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2050
2e024c20
L
20512007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2052
2053 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2054 warning bug.
2055
f219aedc
KB
20562007-07-13 Kevin Buettner <kevinb@redhat.com>
2057
2058 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2059 instruction case.
2060
1ba3e7a3
KB
20612007-07-12 Kevin Buettner <kevinb@redhat.com>
2062
2063 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2064 (mep_analyze_prologue): Add case for BRA instruction.
2065
f1e55806
UW
20662007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2067
2068 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2069
d9f71b56
NR
20702007-07-10 Nick Roberts <nickrob@snap.net.nz>
2071
2072 * breakpoint.c: Include "top.h".
2073 (breakpoint_1): Don't set convenience variable $_ if server prefix
2074 is used.
2075 (_initialize_breakpoint): Describe this behaviour in command help.
2076
358eb95e
PA
20772007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2078
2079 * solib-target.c (library_list_start_segment): Cast address to
2080 CORE_ADDR.
2081
a4e7b2e7
MK
20822007-07-06 Mark Kettenis <kettenis@gnu.org>
2083
2084 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2085 for terminated processes.
2086
2ed23f5f
MS
20872007-07-05 Michael Snyder <msnyder@access-company.com>
2088
2089 * event-top.c (cli_command_loop): Prompt string can (and should)
2090 be freed after call to readline (Coverity). Also move local var
2091 declarations into block where they are used.
2092
2093 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2094 should) be freed after call to readline (Coverity). Also move
2095 local var declarations into block where they are used.
2096
a25694b4
AS
20972007-07-03 Andreas Schwab <schwab@suse.de>
2098
2099 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2100 /proc/../stat.
2101
2bbe3cc1
DJ
21022007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2103 Thiago Bauermann <bauerman@br.ibm.com>
2104 Joseph S. Myers <joseph@codesourcery.com>
2105 Daniel Jacobowitz <dan@codesourcery.com>
2106
2107 * remote.c (remote_check_symbols): Use
2108 gdbarch_convert_from_func_ptr_addr.
2109 * infcall.c (find_function_addr): Handle function descriptors
2110 without debugging information.
2111 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2112 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2113 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2114 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2115 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2116 allow SEC_CODE and SEC_DATA.
2117 (enable_break): Update calls. Pass current_target to solib_add.
2118 Use gdbarch_convert_from_func_ptr_addr.
2119
9f43d28c
DJ
21202007-07-03 Ilko Iliev <iliev@ronetix.at>
2121 Daniel Jacobowitz <dan@codesourcery.com>
2122
2123 * symfile.c (print_transfer_performance): Avoid integer overflow.
2124 Use larger units.
2125
3a40aaa0
UW
21262007-07-03 Markus Deuling <deuling@de.ibm.com>
2127
2128 * cp-namespace.c (lookup_symbol_file): Add block to
2129 lookup_symbol_global call.
2130 * Makefile.in (solist_h): Add dependency on symtab header.
2131 (symtab.o): Add dependency on solist header.
2132 * solib.c (solib_global_lookup): New function.
2133 * solib-svr4.c (scan_dyntag): Likewise.
2134 (elf_locate_base): Call helper routine scan_dyntag.
2135 (elf_lookup_lib_symbol): New function.
2136 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2137 * solist.h (symtab.h): New include.
2138 (struct target_so_ops): New member lookup_lib_global_symbol.
2139 (solib_global_lookup): New prototype.
2140 * symtab.c: New include solist.h.
2141 (lookup_objfile_from_block): New function.
2142 (lookup_global_symbol_from_objfile): New function.
2143 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2144 (lookup_symbol_global): Call library-specific lookup procedure.
2145 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2146
2147 * NEWS: Document framework.
2148
c8c12293
DJ
21492007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2150
2151 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2152 to NULL.
2153
2154 * cli/cli-script.c (build_command_line): Update NULL check.
2155
7877e977
MS
21562007-07-02 Michael Snyder <msnyder@access-company.com>
2157
2158 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2159
cfa9d6d9
DJ
21602007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2161
2162 * Makefile.in (XMLFILES): Add library-list.dtd.
2163 (ALLDEPFILES): Add solib-target.o.
2164 (solib-target.o): New rule.
2165 * remote.c (PACKET_qXfer_libraries): New constant.
2166 (remote_protocol_features): Add qXfer:libraries:read.
2167 (remote_wait): Recognize library stop replies.
2168 (remote_async_wait): Likewise. Fix typo.
2169 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2170 (init_remote_async_ops): Fix typo.
2171 (_initialize_remote): Register "set remote library-info-packet".
2172 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2173 * solib-target.c: New file.
2174 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2175 of textsection.
2176 (info_sharedlibrary_command): Likewise.
2177 (solib_add_library, solib_remove_library): New.
2178 * solist.h (struct so_list): Replace textsection with addr_low and
2179 addr_high.
2180 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2181 * NEWS: Describe new qXfer:libraries:read and shared library
2182 event support.
2183 * features/library-list.dtd: New.
2184
b0f4b84b
DJ
21852007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2186
2187 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2188 (start_remote): Use STOP_QUIETLY_REMOTE.
2189 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2190 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2191 Update to match shared library event breakpoint support. Only
2192 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2193 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2194 * fork-child.c (startup_inferior): Do not set
2195 inferior_ignoring_startup_exec_events
2196 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2197 declaration.
2198 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2199
9bbf65bb
UW
22002007-07-02 Markus Deuling <deuling@de.ibm.com>
2201
2202 * breakpoint.c (insert_bp_location): Remove dead code
2203 (DISABLE_UNSETTABLE_BREAK).
2204 (disable_breakpoints_in_shlibs)
2205 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2206
a4954f26
DJ
22072007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2208
2209 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2210 Call insert_bp_location.
2211
b48516f9
L
22122007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2213
2214 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2215 alias warning bug.
2216
96225718
DJ
22172007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2218
2219 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2220 objfiles.
2221
1b05479a
DJ
22222007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2223
2224 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2225 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2226 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2227 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2228 to display_gdb_prompt.
2229
5ad3a4ca
DJ
22302007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2231
2232 PR symtab/2161
2233 * target.c (memory_xfer_partial): Do not continue past targets with
2234 all memory.
2235
4ed77933
AS
22362007-06-30 Andreas Schwab <schwab@suse.de>
2237
4713453b
AS
2238 * m68k-tdep.c (m68k_ps_type): New.
2239 (m68k_init_types): New.
2240 (m68k_register_type): Use m68k_ps_type for PS register.
2241 (_initialize_m68k_tdep): Call m68k_init_types.
2242
4ed77933
AS
2243 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2244 from the generic m68k arch.
2245
dd3526aa
MS
22462007-06-28 Michael Snyder <msnyder@access-company.com>
2247
f08312c2
MS
2248 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2249 (Coverity).
2250
a787bedf
MS
2251 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2252 gdb_assert before using return value of find_thread_pid (Coverity).
2253
77accacd
MS
2254 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2255
dd3526aa
MS
2256 * cli/cli-script.c (build_command_line): Add null pointer guard
2257 (Coverity).
2258
4105de34
DJ
22592007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2260
2261 * linux-thread-db.c (thread_db_attach): Delete.
2262 (thread_db_detach): Typo fix. Call target_mourn_inferior
2263 instead of fixing up proc_handle.
2264 (have_threads_callback, have_threads): New functions.
2265 (thread_db_wait): Remove dead proc_handle.pid check. Only
2266 translate PTIDs if we have registered threads. Check for new
2267 threads if we have none.
2268 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2269 (find_new_threads_callback): Only enable event reporting if TID == 0.
2270 (same_ptid_callback): New.
2271 (thread_db_get_thread_local_address): Check for new threads.
2272 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2273 or to_post_startup_inferior.
2274
1c0fdd0e
UW
22752007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2276
2277 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2278 is always active if SOFTWARE_SINGLE_STEP_P is true.
2279 (resume): Use gdbarch_software_single_step[_p] instead of
2280 SOFTWARE_SINGLE_STEP[_P].
2281 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2282
2283 * gdbarch.sh (software_single_step): Remove target macro.
2284 * gdbarch.h, gdbarch.c: Regenerate.
2285
e487cc15
UW
22862007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2287
2288 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2289 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2290 (struct gdbarch_swap, struct gdbarch_swap_registration,
2291 struct gdbarch_swap_registry, gdbarch_swap_registry,
2292 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2293 current_gdbarch_swap_in_hack): Remove.
2294 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2295 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2296 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2297 (deprecated_current_gdbarch_select_hack): Likewise.
2298 * gdbarch.h, gdbarch.c: Regenerate.
2299
d5c31457
UW
23002007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2301
2302 * infrun.c (clear_proceed_status): Clean up stop_registers.
2303 (normal_stop): Allocate regcache for stop_registers.
2304 (struct inferior_status): Remove stop_registers member.
2305 (save_inferior_status): Do not save stop_registers.
2306 (restore_inferior_status): Do not restore stop_registers.
2307 (discard_inferior_status): Do not discard stop_registers.
2308 (build_infrun): Remove.
2309 (_initialize_infrun): Do not swap stop_registers.
2310
911c95a5
UW
23112007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2312
2313 * remote.c (remote_address_masked): If remote_address_size is zero,
2314 default to target address size.
2315 (build_remote_gdbarch_data): Remove.
2316 (_initialize_remote): Do not swap remote_address_size.
2317
5674de60
UW
23182007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2319
2320 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2321 builtin_type_char, builtin_type_short, builtin_type_int,
2322 builtin_type_long, builtin_type_signed_char,
2323 builtin_type_unsigned_char, builtin_type_unsigned_short,
2324 builtin_type_unsigned_int, builtin_type_unsigned_long,
2325 builtin_type_float, builtin_type_double, builtin_type_long_double,
2326 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2327 builtin_type_bool, builtin_type_long_long,
2328 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2329 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2330 variable declaration with compatibility macro.
2331 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2332 builtin_type_char, builtin_type_short, builtin_type_int,
2333 builtin_type_long, builtin_type_signed_char,
2334 builtin_type_unsigned_char, builtin_type_unsigned_short,
2335 builtin_type_unsigned_int, builtin_type_unsigned_long,
2336 builtin_type_float, builtin_type_double, builtin_type_long_double,
2337 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2338 builtin_type_bool, builtin_type_long_long,
2339 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2340 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2341 (build_gdbtypes): Remove.
2342 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2343 opaque-type-resolution command here. Do not call
2344 deprecated_register_gdbarch_swap.
2345
64c50499
UW
23462007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2347
2348 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2349 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2350 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2351
2352 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2353 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2354 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2355 (build_parse): Remove.
2356 (_initialize_parse): Do not call build_parse. Do not register
2357 msym_ types for gdbarch-swapping.
2358
2359 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2360 instead of creating private type.
2361
2362 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2363 (_initialize_xcoffread): Do not initialized them.
2364 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2365
2366 * mdebugread.c (nodebug_func_symbol_type): Remove.
2367 (nodebug_var_symbol_type): Remove.
2368 (_initialize_mdebugread): Do not initialize them.
2369 (parse_symbol): Use builtin nodebug_ type instead of them.
2370 (parse_procedure): Likewise.
2371
6a2eb474
MR
23722007-06-21 Chris Dearman <chris@mips.com>
2373
2374 * printcmd.c (do_one_display): If display/i, start with an initial
2375 line feed to avoid bad layout if there is a branch delay slot.
2376
a4642986
MR
23772007-06-21 Nigel Stephens <nigel@mips.com>
2378 Maciej W. Rozycki <macro@mips.com>
2379
2380 * disasm.c (gdb_print_insn): Return the number of branch delay
2381 slot instructions too.
2382 * disasm.h (gdb_print_insn): Update prototype.
2383 * printcmd.c (branch_delay_insns): New variable to record the
2384 number of delay slot instructions after disassembling a branch.
2385 (print_formatted): Record the number of branch delay slot
2386 instructions.
2387 (do_examine): When disassembling, if the last instruction
2388 disassembled has any branch delay slots, then bump the count so
2389 that they get disassembled too.
2390 * tui/tui-disasm.c (tui_disassemble): Update the call to
2391 gdb_print_insn().
2392 * NEWS: Document the new behaviour.
2393
ade28716
AS
23942007-06-21 Andreas Schwab <schwab@suse.de>
2395
2396 * regcache.c (write_pc_pid): Restore missing else.
2397
28c38f10
UW
23982007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2399
2400 * regcache.c (regcache_print): Use get_current_regcache ()
2401 instead of current_regcache.
2402
52b57208
L
24032007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2404
2405 PR 4606
2406 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2407 instead of bfd_make_section_anyway.
2408 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2409 when clearing SEC_LOAD.
2410
8bf8793c
JM
24112007-06-19 Joseph Myers <joseph@codesourcery.com>
2412
2413 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2414 registers for big-endian.
2415
7f5c84d3
UW
24162007-06-19 Markus Deuling <deuling@de.ibm.com>
2417
2418 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2419 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2420 * gdbarch.c, gdbarch.h: Regenerate.
2421
f73e88f9
UW
24222007-06-19 Markus Deuling <deuling@de.ibm.com>
2423
2424 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2425 gdbarch_believe_pcc_promotion.
2426 * stabsread.c (define_symbol): Likewise.
2427 Remove unnecessary definition.
2428 * coffread.c (process_coff_symbol): Remove unnecessary code.
2429 * gdbarch.c, gdbarch.h: Regenerate.
2430
cab58a69
DJ
24312007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2432
2433 * configure.ac: Do not use ${objdir}.
2434 * configure: Regenerated.
2435
f0c9063c
UW
24362007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2437
2438 * gdbarch.sh (deprecated_register_size): Remove.
2439 * gdbarch.h, gdbarch.c: Regenerate.
2440
2441 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2442 by INT_REGISTER_SIZE.
2443 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2444 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2445 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2446 set_gdbarch_deprecated_register_size.
2447
064f5156
UW
24482007-06-18 Markus Deuling <deuling@de.ibm.com>
2449
2450 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2451 gdbarch_deprecated_fp_regnum.
2452 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2453 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2454 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2455 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2456 (comment).
2457 * gdbarch.c, gdbarch.h: Regenerate.
2458
24592007-06-18 Markus Deuling <deuling@de.ibm.com>
2460
2461 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2462 gdbarch_extract_return_value.
2463 * value.c (generic_use_struct_convention): Likewise (comment).
2464 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2465 * arch-utils.c (legacy_return_value): Likewise.
2466 * arch-utils.h (legacy_return_value): Likewise (comment).
2467 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2468 gdbarch_store_return_value.
2469 * stack.c (return_command): Likewise (comment).
2470 * arch-utils.h (legacy_return_value): Likewise (comment).
2471 * arch-utils.c (legacy_return_value): Likewise.
2472 * gdbarch.c, gdbarch.h: Regenerate.
2473
b187c476
UW
24742007-06-18 Markus Deuling <deuling@de.ibm.com>
2475
2476 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2477 gdbarch_deprecated_use_struct_convention.
2478 * arch-utils.c (legacy_return_value): Likewise.
2479 * gdbarch.c, gdbarch.h: Regenerate.
2480
cbf3b44a
UW
24812007-06-18 Markus Deuling <deuling@de.ibm.com>
2482
2483 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2484 gdbarch_deprecated_function_start_offset.
2485 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2486 * linespec.c (minsym_found): Likewise.
2487 * infrun.c (handle_inferior_event): Likewise.
2488 * infcall.c (find_function_addr): Likewise.
2489 * cli/cli-cmds.c (disassemble_command): Likewise.
2490 * gdbarch.c, gdbarch.h: Regenerate.
2491
bceb6e50
UW
24922007-06-18 Markus Deuling <deuling@de.ibm.com>
2493
2494 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2495 gdbarch_deprecated_reg_struct_has_addr.
2496 * infcall.c (call_function_by_hand): Likewise.
2497 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2498 * gdbarch_deprecated_reg_struct_has_addr_p.
2499 * infcall.c (call_function_by_hand): Likewise.
2500 * gdbarch.c, gdbarch.h: Regenerate.
2501
8ed6a7ba
UW
25022007-06-18 Markus Deuling <deuling@de.ibm.com>
2503
2504 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2505 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2506 (sh_gdbarch_init): Remove
2507 set_gdbarch_deprecated_extract_struct_value_address.
2508 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2509 (sh64_gdbarch_init): Remove
2510 set_gdbarch_deprecated_extract_struct_value_address.
2511 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2512 (ia64_gdbarch_init): Remove
2513 set_gdbarch_deprecated_extract_struct_value_address.
2514 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2515 (frv_gdbarch_init): Remove
2516 set_gdbarch_deprecated_extract_struct_value_address.
2517 * gdbarch.c, gdbarch.h: Regenerate.
2518
3e8c568d
UW
25192007-06-18 Markus Deuling <deuling@de.ibm.com>
2520
2521 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2522 * v850-tdep.c (v850_unwind_sp): Likewise.
2523 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2524 * stack.c (frame_info): Likewise.
2525 * stabsread.c (define_symbol): Likewise.
2526 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2527 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2528 (sh_unwind_sp): Likewise.
2529 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2530 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2531 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2532 (rs6000_frame_cache): Likewise.
2533 * rs6000-nat.c (store_register): Likewise.
2534 * remote-mips.c (mips_wait): Likewise.
2535 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2536 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2537 (ppc64_sysv_abi_push_dummy_call): Likewise.
2538 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2539 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2540 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2541 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2542 * m32r-rom.c (m32r_supply_register): Likewise.
2543 * frame.c (frame_sp_unwind): Likewise.
2544 * mips-tdep.c (mips_insn16_frame_cache)
2545 (mips_insn32_frame_cache): Likewise (comment).
2546 * m68klinux-nat.c (supply_gregset): Likewise.
2547 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2548 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2549 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2550 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2551 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2552 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2553 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2554 (cris_register_type, crisv32_register_type)
2555 (cris_dwarf2_frame_init_reg): Likewise.
2556 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2557 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2558 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2559 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2560
2561 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2562 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2563 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2564 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2565 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2566 * v850-tdep.c (v850_unwind_pc): Likewise.
2567 * stack.c (frame_info): Likewise.
2568 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2569 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2570 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2571 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2572 (sh_dsp_show_regs): Likewise.
2573 * shnbsd-tdep.c (shnbsd_supply_gregset)
2574 (shnbsd_collect_gregset): Likewise.
2575 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2576 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2577 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2578 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2579 (6000_register_reggroup_p, rs6000_unwind_pc)
2580 (rs6000_frame_cache): Likewise.
2581 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2582 (rs6000_store_inferior_registers): Likewise.
2583 * remote-mips.c (mips_wait, mips_load): Likewise.
2584 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2585 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2586 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2587 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2588 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2589 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2590 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2591 (store_ppc_registers, fill_gregset): Likewise.
2592 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2593 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2594 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2595 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2596 * m68klinux-nat.c (supply_gregset): Likewise.
2597 * irix5-nat.c (fill_gregset): Likewise.
2598 * i386-tdep.c (i386_unwind_pc): Likewise.
2599 * i386-linux-nat.c (i386_linux_resume): Likewise.
2600 * frame.c (get_prev_frame_1): Likewise.
2601 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2602 * dbug-rom.c (dbug_supply_register): Likewise.
2603 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2604 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2605 (cris_register_type, crisv32_register_type, crisv32_register_name)
2606 (cris_dwarf2_frame_init_reg, find_step_target)
2607 (cris_software_single_step, cris_supply_gregset)
2608 (cris_regnums): Likewise.
2609 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2610 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2611 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2612 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2613 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2614
2615 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2616 * dbug-rom.c (dbug_supply_register): Likewise.
2617 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2618 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2619 * win32-nat.c (win32_resume): Likewise.
2620 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2621 * m68k-tdep.c (m68k_register_type): Likewise.
2622 * m68klinux-nat.c (supply_gregset): Likewise.
2623
2624 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2625 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2626 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2627 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2628 (fv_reg_base_num, dr_reg_base_num): Likewise.
2629 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2630 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2631 (sh64_extract_return_value, sh64_store_return_value)
2632 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2633 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2634 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2635 (invalidate_cache): Likewise.
2636 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2637 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2638 (mipsnbsd_fill_fpreg): Likewise.
2639 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2640 (mipsnbsd_store_inferior_registers): Likewise.
2641 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2642 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2643 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2644 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2645 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2646 (fill_fpregset): Likewise.
2647 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2648 * i386-tdep.h (struct_return): Likewise (comment).
2649 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2650 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2651 (go32_store_registers): Likewise.
2652 * alpha-tdep.c (alpha_next_pc): Likewise.
2653 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2654 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2655 (alphabsd_store_inferior_registers): Likewise.
2656 * core-regset.c (fetch_core_registers): Likewise.
2657 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2658
2659 * gdbarch.c, gdbarch.h: Regenerate.
2660
31d99776
DJ
26612007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2662
2663 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2664 * dbxread.c (start_psymtab): Check HAVE_ELF.
2665 (aout_sym_fns): Likewise.
2666 * elfread.c (elf_symfile_segments): New.
2667 (elf_sym_fns): Add elf_symfile_segments.
2668 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2669 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2670 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2671 * somread.c (som_sym_fns): Use default_symfile_segments.
2672 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2673 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2674 (default_symfile_segments): New function.
2675 (syms_from_objfile): Update call to find_sym_fns.
2676 (symfile_get_segment_data, free_symfile_segment_data): New.
2677 (symfile_map_offsets_to_segments): New.
2678 (symfile_find_segment_sections): New.
2679 * symfile.h (struct symfile_segment_data): New.
2680 (struct sym_fns): Add sym_segments.
2681 (default_symfile_segments, symfile_get_segment_data)
2682 (free_symfile_segment_data): New prototypes.
2683 (symfile_map_offsets_to_segments): Likewise.
2684 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2685 * Makefile.in (COMMON_OBS): Remove elfread.o.
2686 (elf_internal_h): New.
2687 (elfread.o): Update.
2688 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2689 compiled.
2690 * config.in, configure: Regenerated.
2691 * NEWS: Mention qOffsets changes.
2692
5760b90a
UW
26932007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2694
2695 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2696 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2697 Replace global variable declaration with compatibility macro.
2698 (struct builtin_m2_type): New data type.
2699 (builtin_m2_type): Add prototype.
2700 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2701 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2702 Remove global variables.
2703 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2704 (build_m2_types): New function.
2705 (m2_type_data): New variable.
2706 (builtin_m2_type): New function.
2707 (_initialize_m2_language): Do not build data types. Register
2708 m2_type_data per-gdbarch data.
2709
54ef06c7
UW
27102007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2711
2712 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2713 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2714 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2715 builtin_type_f_real_s8, builtin_type_f_real_s16,
2716 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2717 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2718 variable declaration with compatibility macro.
2719 (struct builtin_f_type): New data type.
2720 (builtin_f_type): Add prototype.
2721 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2722 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2723 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2724 builtin_type_f_real_s8, builtin_type_f_real_s16,
2725 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2726 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2727 (f_language_arch_info): Use builtin_f_type instead of variables.
2728 (build_fortran_types): Build builtin_f_type structure instead of
2729 setting global type variables.
2730 (f_type_data): New variable.
2731 (builtin_f_type): New function.
2732 (_initialize_f_language): Do not call build_fortran_types. Do not
2733 swap global type variables. Register f_type_data per-gdbarch data.
2734
92e0cef4
UW
27352007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2736
2737 * f-lang.c (_initialize_f_language): Do not initialize or
2738 swap builtin_type_string.
2739
5d8140d1
UW
27402007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2741
0e7b1906
UW
2742 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2743 value_of_builtin_frame_reg): Remove.
2744 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2745 inactive call to value_of_builtin_frame_reg.
2746
27472007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2748
2749 * gdbarch.sh (bfd_vma_bit): Remove.
5d8140d1
UW
2750 * gdbarch.c, gdbarch.h: Regenerate.
2751
2752 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2753 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2754 (build_gdbtypes): Do not initialize it.
2755 (_initialize_gdbtypes): Do not swap it.
2756
794ac428
UW
27572007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2758
2759 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2760 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2761 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2762 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2763 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2764 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2765 builtin_type_vec64, builtin_type_vec128): Remove.
2766 (init_simd_type): Remove.
2767 (init_vector_type): Make global.
2768 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2769 (build_gdbtypes): Do not build vector types.
2770 (_initialize_gdbtypes): Do not swap vector types.
2771 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2772 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2773 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2774 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2775 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2776 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2777 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2778 (init_vector_type): Add prototype.
2779
2780 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2781 i386_sse_type members.
2782 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2783 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2784 (i386_init_types): Do not build vector types.
2785 (i386_mmx_type, i386_sse_type): New functions.
2786 (i386_register_type): Call them instead of using global variables.
2787 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2788 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2789 of using global variable.
2790
2791 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2792 and ppc_builtin_type_vec128 members.
2793 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2794 (rs6000_builtin_type_vec128): Likewise.
2795 (rs6000_register_type): Call them instead of using builtin_type_vec64
2796 and builtin_type_vec128.
2797 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2798
2799 * spu-tdep.c (struct gdbarch_tdep): New data type.
2800 (spu_builtin_type_vec128): Remove variable.
2801 (spu_builtin_type_vec128): New function.
2802 (spu_register_type): Call it instead of using global variable.
2803 (spu_gdbarch_init): Allocate tdep structure.
2804 (spu_init_vector_type): Remove function.
2805 (_initialize_spu_tdep): Do not call it.
2806
6707b003
UW
28072007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2808
2809 * amd64-tdep.c (struct amd64_register_info): Remove.
2810 (amd64_register_info): Remove.
2811 (amd64_register_names): New static variable.
2812 (AMD64_NUM_REGS): Use amd64_register_names instead of
2813 amd64_register_info.
2814 (amd64_register_name): Likewise.
2815 (amd64_register_type): Do not refer to amd64_register_info.
2816
2817 * s390-tdep.c (struct s390_register_info): Remove.
2818 (s390_register_info): Remove.
2819 (s390_register_name): Do not refer to s390_register_info.
2820 (s390_register_type): Likewise.
2821
2822 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2823 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2824 (sparc64_register_names, sparc64_pseudo_register_names): New.
2825 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2826 sparc64_register_names and sparc64_pseudo_register_names instead of
2827 sparc64_register_info and sparc64_pseudo_register_info.
2828 (sparc64_register_name): Likewise.
2829 (sparc64_register_type): Do not refer to sparc64_register_info
2830 and sparc64_pseudo_register_info.
2831
cad351d1
UW
28322007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2833
2834 * c-lang.c (cplus_builtin_types): Remove.
2835 (enum cplus_primitive_types): New data type.
2836 (cplus_language_arch_info): New function.
2837 (cplus_language_defn): Set la_language_arch_info member. Do not set
2838 la_builtin_type_vector and string_char_type members.
2839
2840 * f-lang.c (f_builtin_types): Remove.
2841 (enum f_primitive_types): New data type.
2842 (f_language_arch_info): New function.
2843 (f_language_de): Set la_language_arch_info member. Do not set
2844 la_builtin_type_vector and string_char_type members.
2845
2846 * m2-lang.c (m2_builtin_types): Remove.
2847 (enum m2_primitive_types): New data type.
2848 (m2_language_arch_info): New function.
2849 (m2_language_defn): Set la_language_arch_info member. Do not set
2850 la_builtin_type_vector and string_char_type members.
2851
2852 * objc-lang.c (objc_builtin_types): Remove.
2853 (objc_language): Set la_language_arch_info member. Do not set
2854 la_builtin_type_vector and string_char_type members.
2855
2856 * p-lang.c (pascal_builtin_types): Remove.
2857 (enum pascal_primitive_types): New data type.
2858 (pascal_language_arch_info): New function.
2859 (pascal_language_defn): Set la_language_arch_info member. Do not set
2860 la_builtin_type_vector and string_char_type members.
2861
594f7785
UW
28622007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2863
2864 * regcache.c (struct regcache): Add ptid_t member.
2865 (regcache_xmalloc): Initialize it.
2866 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2867 (regcache_dup): Likewise.
2868 (regcache_dup_no_passthrough): Likewise.
2869 (current_regcache): Make static.
2870 (registers_ptid): Remove variable.
2871 (get_thread_regcache): New function.
2872 (get_current_regcache): New function.
2873 (registers_changed): Implement by freeing current regcache.
2874 (regcache_raw_read): Do not refer to current_regcache. Set
2875 inferior_ptid to regcache->ptid while calling target routines.
2876 (regcache_raw_write): Likewise.
2877 (regcache_raw_supply): Do not refer to current_regcache.
2878 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2879 (write_pc_pid): Likewise.
2880 (build_regcache): Remove.
2881 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2882 or deprecated_register_gdbarch_swap. Do not initialize
2883 registers_ptid.
2884 * regcache.h (get_current_regcache): Add prototype.
2885 (get_thread_regcache): Likewise.
2886 (current_regcache): Remove declaration.
2887
2888 * corelow.c (core_open): Replace current_regcache by
2889 get_current_regcache ().
2890 * frame.c (frame_pop): Likewise.
2891 (put_frame_register): Likewise.
2892 (get_current_frame, create_new_frame): Likewise.
2893 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2894 * stack.c (return_command): Likewise.
2895 * infcall.c (call_function_by_hand): Likewise.
2896 * infrun.c (resume): Likewise.
2897 (save_inferior_status, restore_inferior_status): Likewise.
2898 * linux-fork.c (fork_load_infrun_state): Likewise.
2899 (fork_save_infrun_state): Likewise.
2900 * win32-nat.c (win32_resume): Likewise.
2901 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2902 * monitor.c (monitor_wait): Likewise.
2903 * remote.c (remote_wait): Likewise.
2904 * remote-mips.c (mips_wait): Likewise.
2905
2906 * bsd-kvm.c (bsd_kvm_open): Likewise
2907 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2908 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2909 * i386-linux-nat.c (i386_linux_resume): Likewise.
2910 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2911 (ia64_linux_stopped_data_address): Likewise.
2912
2913 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2914 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2915 * mep-tdep.c (current_me_module, current_options): Likewise.
2916 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2917
2918 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2919 regcache instead of current_regcache. Call target_fetch_registers.
2920 (linux_nat_corefile_thread_callback): Update call site.
2921 (linux_nat_do_registers): Likewise.
2922 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2923 of current_regcache.
2924 (procfs_make_note_section): Likewise.
2925 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2926 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2927 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2928 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2929
51a7a212
UW
29302007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2931
2932 * regcache.c (read_register, read_register_pid): Remove.
2933 (write_register, write_register_pid): Likewise.
2934 * regcache.h (read_register, read_register_pid): Remove prototype.
2935 (write_register, write_register_pid): Likewise.
2936
61a1198a
UW
29372007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2938
2939 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2940 (write_pc): Likewise. Remove default implementation, add predicate.
2941 * gdbarch.c, gdbarch.h: Regenerate.
2942 * regcache.c (read_pc_pid): Use current regcache instead of calling
2943 read_register_pid.
2944 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2945 case inline.
2946 (generic_target_write_pc): Remove.
2947 * inferior.h (generic_target_write_pc): Remove.
2948 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2950 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2951 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2952 * sh-tdep.c (sh_gdbarch_init): Likewise.
2953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2954
2955 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2956 argument. Use REGCACHE instead of calling read_register_pid.
2957 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2958 * hppa-tdep.c (hppa_read_pc): Likewise.
2959 * hppa-tdep.h (hppa_read_pc): Likewise.
2960 * ia64-tdep.c (ia64_read_pc): Likewise.
2961 * m32r-tdep.c (m32r_read_pc): Likewise.
2962 * mep-tdep.c (mep_read_pc): Likewise.
2963 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2964 * spu-tdep.c (spu_read_pc): Likewise.
2965
2966 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2967 argument. Use REGCACHE instead of calling write_register_pid.
2968 * avr-tdep.c (avr_write_pc): Likewise.
2969 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2970 * hppa-tdep.c (hppa_write_pc): Likewise.
2971 * hppa-tdep.h (hppa_write_pc): Likewise.
2972 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2973 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2974 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2975 * ia64-tdep.c (ia64_write_pc): Likewise.
2976 * ia64-tdep.h (ia64_write_pc): Likewise.
2977 * m32r-tdep.c (m32r_write_pc): Likewise.
2978 * m88k-tdep.c (m88k_write_pc): Likewise.
2979 * mep-tdep.c (mep_write_pc): Likewise.
2980 * mips-tdep.c (mips_write_pc): Likewise.
2981 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2982 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2983 * sparc-tdep.c (sparc_write_pc): Likewise.
2984 * spu-tdep.c (spu_write_pc): Likewise.
2985
2986 * mips-tdep.c (read_signed_register): Remove.
2987 (read_signed_register_pid): Likewise.
2988 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2989 Use REGCACHE instead of calling read_signed_register_pid.
2990
e4fd649a
UW
29912007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2992
2993 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2994 * gdbarch.c, gdbarch.h: Regenerate.
2995 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2996 (push_dummy_code): Likewise. Pass it to callee.
2997 (call_function_by_hand): Pass current regcache to push_dummy_code.
2998
2999 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3000 argument. Use it instead of current_regcache.
3001
3002 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3003 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3004
60ade65d
UW
30052007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3006
3007 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3008 * gdbarch.c, gdbarch.h: Regenerate.
3009 * infrun.c (handle_inferior_event): Pass current frame to
3010 gdbarch_get_longjmp_target.
3011
3012 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3013 Read registers from FRAME instead of using read_register.
3014 Use get_frame_arch instead of current_gdbarch.
3015 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3016 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3017 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3018 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3019 (mips64_linux_get_longjmp_target): Likewise.
3020 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3021
52f729a7
UW
30222007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3023
3024 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3025 * gdbarch.c, gdbarch.h: Regenerate.
3026 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3027 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3028 * infrun.c (handle_inferior_event): Pass current frame to
3029 gdbarch_skip_trampoline_code and skip_language_trampoline.
3030
3031 * language.c (unk_lang_trampoline): Add FRAME argument.
3032 (skip_language_trampoline): Add FRAME argument. Pass it to
3033 skip_trampoline callback.
3034 * language.h: Add forward declaration of struct frame_info.
3035 (struct language_defn): Add FRAME argument to skip_trampoline.
3036 (skip_language_trampoline): Add FRAME argument.
3037 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3038 to skip_trampoline callback.
3039 * cp-abi.h: Add forward declaration of struct frame_info.
3040 (cplus_skip_trampoline): Add FRAME argument.
3041 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3042 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3043 to gdbarch_skip_trampoline_code.
3044 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3045 to gdbarch_skip_trampoline_code.
3046
3047 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3048 * symtab.h (find_solib_trampoline_target): Likewise.
3049 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3050 find_solib_trampoline_target.
3051
3052 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3053 from FRAME instead of calling read_register.
3054
3055 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3056 argument. Read registers from FRAME instead of using read_register.
3057 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3058 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3059
3060 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3061 argument.
3062
3063 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3064
3065 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3066 registers from FRAME instead of using read_signed_register.
3067
3068 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3069 argument.
3070 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3071 instead of using read_register.
3072 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3073 ppc64_standard_linkage_target.
3074 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3075 Pass it to find_solib_trampoline_target. Read registers from FRAME
3076 instead of using read_register.
3077
3078 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3079 argument.
3080
0b1b3e42
UW
30812007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3082
3083 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3084 FRAME argument.
3085 * gdbarch.c, gdbarch.h: Regenerate.
3086 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3087
3088 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3089 registers from FRAME instead of using read_register.
3090 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3091 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3092 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3093 argument by FRAME.
3094
3095 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3096 from FRAME instead of using read_register.
3097 (thumb_get_next_pc): Likewise.
3098 (arm_get_next_pc): Likewise.
3099 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3100 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3101 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3102 argument by FRAME.
3103
3104 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3105 from FRAME instead of using read_register.
3106 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3107 to find_step_target.
3108
3109 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3110 from FRAME instead of using read_register / read_signed_register.
3111 (extended_mips16_next_pc): Likewise.
3112 (mips16_next_pc): Likewise.
3113 (mips_next_pc): Likewise.
3114 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3115 to mips_next_pc. Use get_frame_pc instead of read_pc.
3116 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3117 argument by FRAME.
3118
3119 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3120 of current frame. Read registers from FRAME.
3121 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3122 branch_dest. Use get_frame_pc instead of read_pc.
3123 (rs6000_software_single_step): Likewise.
3124 (bl_to_blrl_insn_p): Do not call branch_dest.
3125 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3126 argument by FRAME.
3127
3128 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3129 Read registers from FRAME instead of current regcache.
3130 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3131 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3132 * sparc-tdep.c (sparc_address_from_register): Remove.
3133 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3134 GDBARCH. Pass FRAME to step_trap callback.
3135 (sparc_step_trap): Add FRAME argument.
3136 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3137 to sparc_analyze_control_transfer. Read registers from FRAME instead
3138 of calling sparc_address_from_register.
3139 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3140 step_trap callback.
3141 (sparc_address_from_register): Remove prototype.
3142 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3143 (sparcnbsd_step_trap): Add FRAME argument.
3144
3145 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3146 by FRAME. Read registers from FRAME instead of REGCACHE.
3147
9c9acae0
UW
31482007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3149
3150 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3151 instead of calling read_register.
3152
3153 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3154 calling write_register.
3155
3156 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3157 calling write_register.
3158
3159 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3160 instead of calling read_register.
3161 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3162 instead of calling read_register and write_register.
3163
3164 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3165 instead of current_regcache.
3166
3167 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3168 of calling write_register.
3169 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3170 parameter instead of current_regcache.
3171
3172 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3173 instead of calling read_register.
3174 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3175 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3176 (mips_n32n64_push_dummy_call): Likewise.
3177 (mips_o32_push_dummy_call): Likewise.
3178 (mips_o64_push_dummy_call): Likewise.
3179
3180 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3181 parameter instead of current_regcache.
3182
3183 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3184 Use it instead of read_register and write_register.
3185 (xtensa_register_read_masked): Likewise.
3186 (xtensa_pseudo_register_read): Update call.
3187 (xtensa_pseudo_register_write): Likewise.
3188 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3189 instead of calling read_register.
3190 (xtensa_push_dummy_call): Update comment.
3191
d2ca4222
UW
31922007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3193
3194 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3195 by frame_unwind_register_signed calls.
3196 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3197 frame allocations when called with NULL NEXT_FRAME parameter.
3198 (read_next_frame_reg): Remove.
3199
3200 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3201 instead of reading the FPSCR register.
3202 (sh_frame_cache): Pass unwound FPSCR register value to
3203 sh_analyze_prologue.
3204 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3205
3206 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3207 instead of reading the CTBP register.
3208 (v850_frame_cache): Pass unwound CTBP register value to
3209 v850_analyze_prologue.
3210
c458d6db
UW
32112007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3212
3213 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3214 * sh-tdep.c (sh_show_regs): Likewise.
3215 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3216 (sh_generic_show_regs): Add FRAME parameter. Use register
3217 values from that frame instead of calling read_register.
3218 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3219 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3220 sh_dsp_show_regs): Likewise.
3221 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3222 sh64_show_regs): Likewise.
3223
a9614958
UW
32242007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3225
3226 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3227 current regcache instead of calling read_register.
3228
3d1a74ac
UW
32292007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3230
3231 * mep-tdep.c (current_me_module): Read from current regcache
3232 instead of calling read_register.
3233 (current_options): Likewise.
3234
1b5a9a8f
UW
32352007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3236
3237 * cris-tdep.c (cris_stopped_data_address): Read register values
3238 from current frame instead of calling read_register.
3239 * frv-tdep.c (frv_stopped_data_address): Likewise.
3240
982db460
UW
32412007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3242
3243 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3244 instead of write_register (PC_REGNUM, ...).
3245
b4397864
UW
32462007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3247
3248 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3249 explaining why the PC adjustment code is necessary.
3250
8ed86d01
VP
32512007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3252
3253 * m68k-tdep.h (enum m68k_flavour): New.
3254 (struct gdbarch_tdep): New fields
3255 float_return, flavour and fpregs_present.
3256 * m68k-tdep.c (m68k_register_type): Use
3257 fpregs_present and conditionalize floating
3258 registers type on flavour.
3259 (m68k_register_names): New.
3260 (m68k_register_name): Use the above.
3261 (m68k_convert_register_p): Consult fpregs_present.
3262 (m68k_register_to_value, m68k_value_to_register):
3263 Use register_type to obtain the type of floating
3264 point registers.
3265 (m68k_svr4_extract_return_value): Check tdep->float_return.
3266 Use register_type to get the type of floating
3267 point regiters.
3268 (m68k_svr4_store_return_value): Likewise.
3269 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3270 (m68k_analyze_register_saves): Likewise.
3271 (m68k_gdbarch_init): Extract infromation
3272 from XML description, if present. Guess coldfire by
3273 looking at the file, if present. Conditionalize
3274 setting of long double format. Set decr_pc_after_break
3275 to 2 on coldfire and fido. Enable XML-driven
3276 register description.
3277 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3278 size of tdep->fpreg_type, as opposed to hardcoded value.
3279 * Makefile.in (m68k-tdep.o): Update dependencies.
3280
83cc5c53
UW
32812007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3282
3283 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3284 qXfer:spu:write remote packet types.
3285
1780a0ed
DJ
32862007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3287
3288 * xml-tdesc.c (tdesc_start_target): New.
3289 (target_attributes): New.
3290 (tdesc_elements): Use it.
3291 * features/gdb-target.dtd: Add #FIXED version attribute for
3292 <target>.
3293
98a29c7e
DJ
32942007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3295
3296 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3297
9dcbb931
DJ
32982007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3299
3300 * fork-child.c (fork_inferior): Update comment.
3301
117ce543
DJ
33022007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3303
3304 * features/Makefile: Generate regformats for mips-linux and
3305 mips64-linux.
3306 * features/sort-regs.xsl: Correct typo.
3307 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3308 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3309 files.
3310
822b6570
DJ
33112007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3312
3313 * config/mips/linux.mh (TDEP_XML): New.
3314 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3315 * mips-linux-nat.c (mips_linux_register_addr): Handle
3316 MIPS_RESTART_REGNUM.
3317 (mips64_linux_register_addr): Likewise.
3318 (super_xfer_partial, mips_linux_xfer_partial): New.
3319 (_initialize_mips_linux_nat): Add them to the target_ops.
3320 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3321 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3322 (mips_linux_o32_sigframe_init)
3323 (mips_linux_n32n64_sigframe_init): Likewise.
3324 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3325 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3326 "org.gnu.gdb.mips.linux" feature.
3327 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3328 (mips_linux_restart_reg_p): New prototype.
3329 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3330 initialization routine.
3331 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3332
f8b73d13
DJ
33332007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3334
3335 * Makefile.in (mips-tdep.o): Update.
3336 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3337 (mips_n32_n64_aliases, mips_register_aliases): New.
3338 (mips_register_name): Call tdesc_register_name.
3339 (mips_tdesc_register_reggroup_p): New.
3340 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3341 (mips_gdbarch_init): Add target-described register support.
3342 Register aliases for register names.
3343 * target-descriptions.c (tdesc_register_name): Make global.
3344 (tdesc_register_in_reggroup_p): New function, broken out from
3345 tdesc_register_reggroup_p.
3346 (tdesc_register_reggroup_p): Use it.
3347 * target-descriptions.h (tdesc_register_name)
3348 (tdesc_register_in_reggroup_p): New prototypes.
3349 * NEWS: Correct formatting. Mention MIPS register support.
3350 * features/mips-cp0.xml, features/mips-fpu.xml,
3351 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3352 features/mips64-cpu.xml: New files.
3353
17a912b6
UW
33542007-06-13 Markus Deuling <deuling@de.ibm.com>
3355
3356 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3357 * valops.c (value_cast): Likewise.
3358 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3359 * ui-out.c (ui_out_field_core_addr): Likewise.
3360 * tracepoint.c (tracepoints_info): Likewise.
3361 * symtab.c (print_msymbol_info): Likewise.
3362 * solib-irix.c (irix_current_sos)
3363 (irix_open_symbol_file_object): Likewise.
3364 * remote.c (build_remote_gdbarch_data): Likewise.
3365 * prologue-value.c (make_pv_area): Likewise.
3366 * procfs.c (info_mappings_callback): Likewise.
3367 * printcmd.c (print_scalar_formatted)
3368 (deprecated_print_address_numeric): Likewise.
3369 * memattr.c (mem_info_command): Likewise.
3370 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3371 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3372 * exec.c (print_section_info): Likewise.
3373 * dwarf2read.c (read_subrange_type): Likewise.
3374 * dwarf2loc.c (find_location_expression): Likewise.
3375 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3376 (signed_address_type, execute_stack_op): Likewise.
3377 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3378 * gdbarch.c, gdbarch.h: Regenerate.
3379
1143fffb
UW
33802007-06-13 Markus Deuling <deuling@de.ibm.com>
3381
3382 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3383 * arch-utils.c (show_architecture): Likewise.
3384 * remote-mips.c (mips_open): Likewise
3385 * nto-tdep.c (nto_find_and_open_solib)
3386 (nto_init_solib_absolute_prefix): Likewise.
3387 * nto-procfs (procfs_open): Likewise.
3388 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3389 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3390 * gdbarch.c, gdbarch.h: Regenerate.
3391
4fe99ffb
UW
33922007-06-13 Markus Deuling <deuling@de.ibm.com>
3393
3394 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3395 * gdbtypes.c (build_flt): Likewise.
3396 * gdbarch.c, gdbarch.h: Regenerate.
3397
3b3b875c
UW
33982007-06-13 Markus Deuling <deuling@de.ibm.com>
3399
3400 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3401 gdbarch_breakpoint_from_pc.
3402 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3403 * remote.c (remote_insert_breakpoint)
3404 (remote_insert_hw_breakpoint): Likewise.
3405 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3406 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3407 * breakpoint.h (bp_target_info): Likewise (comment).
3408 * breakpoint.c (read_memory_nobpt): Likewise.
3409 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3410 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3411 * gdbarch.c, gdbarch.h: Regenerate.
3412
819844ad
UW
34132007-06-13 Markus Deuling <deuling@de.ibm.com>
3414
3415 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3416 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3417 * solib-pa64.c (read_dynamic_info): Likewise.
3418 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3419 * solib.c (info_sharedlibrary_command): Likewise.
3420 * s390-nat.c (SUBOFF): Likewise.
3421 * p-valprint.c (pascal_val_print): Likewise.
3422 * procfs.c (info_proc_mappings): Likewise.
3423 * printcmd.c (decode_format): Likewise.
3424 * nto-tdep.c (nto_truncate_ptr): Likewise.
3425 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3426 (mips64_linux_get_longjmp_target): Likewise.
3427 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3428 * jv-valprint.c (java_value_print): Likewise.
3429 * jv-lang.c (get_java_object_header_size): Likewise.
3430 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3431 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3432 (hppa_hpux_unwind_adjust_stub): Likewise.
3433 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3434 * gdbtypes.c (make_pointer_type, make_reference_type)
3435 (smash_to_memberptr_type): Likewise.
3436 * gdbarch.c, gdbarch.h: Regenerate.
3437
0cc93a06
DJ
34382007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3439
3440 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3441 (print_gp_register_row): Stop before printing a register bigger
3442 than the ABI register size.
3443 (mips_print_registers_info): Update call to mips_print_register.
3444
67f3407f
DJ
34452007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3446
3447 * expression.h (enum exp_opcode): Document a register name for
3448 OP_REGISTER.
3449 * parse.c (write_dollar_variable): Write the register name for
3450 OP_REGISTER.
3451 (operator_length_standard): Expect the register name following
3452 OP_REGISTER.
3453 * ada-lang.c (resolve_subexp): Likewise.
3454 * ax-gdb.c (gen_expr): Likewise.
3455 * eval.c (evaluate_subexp_standard): Likewise.
3456 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3457 Likewise.
3458 * tracepoint.c (encode_actions): Likewise.
3459
0caa462c
DJ
34602007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3461
3462 * utils.c (set_screen_size): Use INT_MAX for default columns.
3463
4de6483e
UW
34642007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3465
3466 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3467 qXfer:spu:write packet types.
3468
cafad45b
UW
34692007-06-12 Markus Deuling <deuling@de.ibm.com>
3470
3471 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3472 * gdbarch.c, gdbarch.h: Regenerate.
3473
055d23b8
UW
34742007-06-12 Markus Deuling <deuling@de.ibm.com>
3475
3476 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3477 gdbarch_stab_reg_to_regnum.
3478 * stabsread.c (define_symbol): Likewise.
3479 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3480 gdbarch_ecoff_reg_to_regnum.
3481 * mdebugread.c (parse_symbol): Likewise.
3482 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3483 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3484 gdbarch_dwarf_reg_to_regnum.
3485 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3486 * coffread.c (process_coff_symbol): Likewise.
3487 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3488 gdbarch_dwarf2_reg_to_regnum.
3489 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3490 (locexpr_describe_location): Likewise.
3491 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3492 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3493 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3494 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3495 * gdbarch.c, gdbarch.h: Regenerate.
3496
260edbc2
UW
34972007-06-12 Markus Deuling <deuling@de.ibm.com>
3498
3499 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3500 gdbarch_smash_text_address.
3501 * somread.c (som_symtab_read): Likewise.
3502 * elfread.c (record_minimal_symbol): Likewise.
3503 * dbxread.c (process_one_symbol): Likewise.
3504 * coffread.c (coff_symtab_read): Likewise.
3505 * gdbarch.c, gdbarch.h: Regenerate.
3506
c1afe53d
UW
35072007-06-12 Markus Deuling <deuling@de.ibm.com>
3508
3509 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3510 * findvar.c (value_from_register): Likewise.
3511 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3512 * valops.c (value_assign): Likewise.
3513 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3514 gdbarch_convert_register_p.
3515 * findvar.c (value_from_register): Likewise.
3516 * valops.c (value_assign): Likewise.
3517 * gdbarch.c, gdbarch.h: Regenerate.
3518
474c1661
UW
35192007-06-12 Markus Deuling <deuling@de.ibm.com>
3520
3521 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3522 gdbarch_register_sim_regno.
3523 * sim-regno.h (sim_regno): Likewise (comment).
3524 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3525 * gdbarch.c, gdbarch.h: Regenerate.
3526
c7bb205c
UW
35272007-06-12 Markus Deuling <deuling@de.ibm.com>
3528
3529 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3530 gdbarch_virtual_frame_pointer.
3531 * tracepoint.c (encode_actions): Likewise.
3532 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3533 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3534 * gdbarch.c, gdbarch.h: Regenerate.
3535
ea06eb3d
UW
35362007-06-12 Markus Deuling <deuling@de.ibm.com>
3537
3538 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3539 * p-lang.c (pascal_create_fundamental_type): Likewise.
3540 * objc-lang.c (objc_create_fundamental_type): Likewise.
3541 * mdebugread.c (_initialize_mdebugread): Likewise.
3542 * m2-lang.c (m2_create_fundamental_type)
3543 (_initialize_m2_language): Likewise.
3544 * gdbtypes.c (build_gdbtypes): Likewise.
3545 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3546 * doublest.c (floatformat_from_length): Likewise.
3547 * c-lang.c (c_create_fundamental_type): Likewise.
3548 * ada-lang.c (ada_create_fundamental_type)
3549 (ada_language_arch_info): Likewise.
3550 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3551 * value.c (unpack_double): Likewise (comment).
3552 * gdbtypes.c (build_gdbtypes): Likewise.
3553 * doublest.c (floatformat_from_length): Likewise.
3554 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3555 * valarith.c (value_binop): Likewise.
3556 * p-lang.c (pascal_create_fundamental_type): Likewise.
3557 * objc-lang.c (objc_create_fundamental_type): Likewise.
3558 * mdebugread.c (_initialize_mdebugread): Likewise.
3559 * m2-lang.c (m2_create_fundamental_type): Likewise.
3560 * gdbtypes.c (build_gdbtypes): Likewise.
3561 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3562 * doublest.c (floatformat_from_length): Likewise.
3563 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3564 * c-lang.c (c_create_fundamental_type): Likewise.
3565 * ada-lex.l (processReal): Likewise.
3566 * ada-lang.c (ada_create_fundamental_type)
3567 (ada_language_arch_info): Likewise.
3568 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3569 * value.c (unpack_double): Likewise (comment).
3570 * gdbtypes.c (build_gdbtypes): Likewise.
3571 * doublest.c (floatformat_from_length): Likewise.
3572 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3573 gdbarch_long_double_bit.
3574 * p-lang.c (pascal_create_fundamental_type): Likewise.
3575 * objc-lang.c (objc_create_fundamental_type): Likewise.
3576 * m2-lang.c (m2_create_fundamental_type): Likewise.
3577 * gdbtypes.c (build_gdbtypes): Likewise.
3578 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3579 * doublest.c (floatformat_from_length): Likewise.
3580 * c-lang.c (c_create_fundamental_type): Likewise.
3581 * ada-lex.l (processReal): Likewise.
3582 * ada-lang.c (ada_create_fundamental_type)
3583 (ada_language_arch_info): Likewise.
3584 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3585 gdbarch_long_double_format.
3586 * gdbtypes.c (build_gdbtypes): Likewise.
3587 * doublest.c (floatformat_from_length): Likewise.
3588 * gdbarch.c, gdbarch.h: Regenerate.
3589
9a76efb6
UW
35902007-06-12 Markus Deuling <deuling@de.ibm.com>
3591
3592 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3593 * ada-lang.c (ada_create_fundamental_type)
3594 (ada_language_arch_info): Likewise.
3595 * c-lang.c (c_create_fundamental_type): Likewise.
3596 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3597 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3598 * m2-lang.c (m2_create_fundamental_type): Likewise.
3599 * objc-lang.c (objc_create_fundamental_type): Likewise.
3600 * p-lang.c (pascal_create_fundamental_type): Likewise.
3601 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3602 * c-exp.y (parse_number): Likewise.
3603 * objc-exp.y (parse_number): Likewise.
3604 * ada-lex.l (processInt): Likewise.
3605 * f-exp.y (parse_number): Likewise.
3606 * p-exp.y (parse_number): Likewise.
3607 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3608 (gdbtypes_post_init, build_gdbtypes): Likewise.
3609 * p-lang.c (pascal_create_fundamental_type): Likewise.
3610 * parse.c (build_parse): Likewise.
3611 * xcoffread.c (_initialize_xcoffread): Likewise.
3612 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3613 (read_range_type): Likewise.
3614 * objc-lang.c (objc_create_fundamental_type): Likewise.
3615 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3616 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3617 (m2_create_fundamental_type): Likewise.
3618 * c-lang.c (c_create_fundamental_type): Likewise.
3619 * coffread.c (coff_read_enum_type): Likewise.
3620 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3621 * dwarf2read.c (new_symbol): Likewise.
3622 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3623 * c-exp.y (parse_number): Likewise.
3624 * objc-exp.y (parse_number): Likewise.
3625 * ada-lex.l (processInt): Likewise.
3626 * f-exp.y (parse_number): Likewise.
3627 * p-exp.y (parse_number): Likewise.
3628 * valarith.c (value_binop): Likewise.
3629 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3630 * ada-lang.c (ada_create_fundamental_type)
3631 (ada_language_arch_info): Likewise.
3632 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3633 * symfile.c (TARGET_LONG_BYTES): Likewise.
3634 * p-lang.c (pascal_create_fundamental_type): Likewise.
3635 * objc-lang.c (objc_create_fundamental_type): Likewise.
3636 * m2-lang.c (m2_create_fundamental_type): Likewise.
3637 * f-lang.c (f_create_fundamental_type): Likewise.
3638 * c-lang.c (c_create_fundamental_type): Likewise.
3639 * coffread.c (decode_base_type): Likewise.
3640 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3641 * c-exp.y (parse_number): Likewise.
3642 * objc-exp.y (parse_number): Likewise.
3643 * p-exp.y (parse_number): Likewise.
3644 * ada-lang.c (ada_create_fundamental_type)
3645 (ada_language_arch_info): Likewise.
3646 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3647 * stabsread.c (read_range_type): Likewise.
3648 * p-lang.c (pascal_create_fundamental_type): Likewise.
3649 * objc-lang.c (objc_create_fundamental_type): Likewise.
3650 * m2-lang.c (m2_create_fundamental_type): Likewise.
3651 * f-lang.c (f_create_fundamental_type): Likewise.
3652 * c-lang.c (c_create_fundamental_type): Likewise.
3653 * gdbarch.c, gdbarch.h: Regenerate.
3654
272dfcfd
AS
36552007-06-12 Andreas Schwab <schwab@suse.de>
3656
3657 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3658 (struct frame_unwind): Add dealloc_cache.
3659 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3660
3661 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3662 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3663 (libunwind_frame_unwind): Set dealloc_cache.
3664 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3665
0e7f50da
UW
36662007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3667 Markus Deuling <deuling@de.ibm.com>
3668
3669 * remote.c (remote_write_qxfer): New function.
3670 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3671 (remote_read_qxfer): Do not cache empty objects.
3672 (_initialize_remote): Add PACKET_qXfer_spu_read and
3673 PACKET_qXfer_spu_write.
3674
23d964e7
UW
36752007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3676
3677 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3678 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3679
3680 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3681 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3682 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3683 * spu-tdep.c (infospucmdlist): New variable.
3684 (spu_register_name): Handle additional pseudo registers.
3685 (spu_register_type): Likewise.
3686 (spu_pseudo_register_read): Likewise.
3687 (spu_pseudo_register_write): Likewise.
3688 (spu_pseudo_register_read_spu): New function.
3689 (spu_pseudo_register_write_spu): Likewise.
3690 (info_spu_event_command): New function.
3691 (info_spu_signal_command): Likewise.
3692 (info_spu_mailbox_list): Likewise.
3693 (info_spu_mailbox_command): Likewise.
3694 (spu_mfc_get_bitfield): Likewise.
3695 (info_spu_dma_cmdlist): Likewise.
3696 (info_spu_dma_command): Likewise.
3697 (info_spu_proxydma_command): Likewise.
3698 (info_spu_command): Likewise.
3699 (_initialize_spu_tdep): Install "info spu" commands.
3700
374c1d38
UW
37012007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3702
3703 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3704 accessing non-seekable spufs files.
3705
e76f05fa
UW
37062007-06-09 Markus Deuling <deuling@de.ibm.com>
3707
3708 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3709 gdbarch_skip_trampoline_code.
3710 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3711 * objc-lang.c (objc_skip_trampoline)
3712 (objc_submethod_helper_data): Likewise.
3713 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3714 * infrun.c (handle_inferior_event): Likewise.
3715 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3716 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3717 gdbarch_in_solib_return_trampoline.
3718 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3719 * infrun.c (handle_inferior_event): Likewise.
3720 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3721 * gdbarch.c, gdbarch.h: Regenerate.
3722
a433963d
UW
37232007-06-09 Markus Deuling <deuling@de.ibm.com>
3724
3725 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3726 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3727 * linespec.c (minsym_found): Likewise.
3728 * infrun.c (step_into_function): Likewise.
3729 * gdbarch.c, gdbarch.h: Regenerate.
3730
aea8766f
UW
37312007-06-09 Markus Deuling <deuling@de.ibm.com>
3732
3733 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3734 * valops.c (value_allocate_space_in_inferior): Likewise.
3735 * gdbarch.c, gdbarch.h: Regenerate.
3736
8da95a30
UW
37372007-06-09 Markus Deuling <deuling@de.ibm.com>
3738
3739 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3740 gdbarch_memory_insert_breakpoint.
3741 * mem-break.c (memory_insert_breakpoint): Likewise.
3742 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3743 gdbarch_memory_remove_breakpoint.
3744 * mem-break.c (memory_remove_breakpoint): Likewise.
3745 * gdbarch.c, gdbarch.h: Regenerate.
3746
985969a9
UW
37472007-06-09 Markus Deuling <deuling@de.ibm.com>
3748
3749 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3750 gdbarch_fetch_tls_load_module_address.
3751 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3752 gdbarch_fetch_tls_load_module_address_p.
3753 * gdbarch.c, gdbarch.h: Regenerate.
3754
b798847d
UW
37552007-06-09 Markus Deuling <deuling@de.ibm.com>
3756
3757 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3758 gdbarch_decr_pc_after_break.
3759 * tracepoint.c (trace_dump_command): Likewise.
3760 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3761 * linux-thread-db.c (check_event): Likewise.
3762 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3763 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3764 * frame.h: Likewise (comment).
3765 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3766 * aix-thread.c (aix_thread_wait): Likewise.
3767 * gdbarch.c, gdbarch.h: Regenerate.
3768
849957d9
UW
37692007-06-09 Markus Deuling <deuling@de.ibm.com>
3770
3771 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3772 gdbarch_address_class_type_flags.
3773 * dwarf2read.c (read_tag_pointer_type): Likewise.
3774 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3775 gdbarch_address_class_type_flags_p.
3776 * dwarf2read.c (read_tag_pointer_type): Likewise.
3777 * gdbarch.c, gdbarch.h: Regenerate.
3778
bf6ae464
UW
37792007-06-09 Markus Deuling <deuling@de.ibm.com>
3780
3781 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3782 * value.c (value_as_address): Likewise (comment).
3783 * remote-mips.c (common_breakpoint): Likewise.
3784 * regcache.c (read_pc_pid): Likewise.
3785 * printcmd.c (do_one_display): Likewise.
3786 * monitor.c (monitor_write_memory, monitor_read_memory)
3787 (monitor_insert_breakpoint): Likewise.
3788 * mips-tdep.c (heuristic_proc_start): Likewise.
3789 * infrun.c (insert_step_resume_breakpoint_at_frame)
3790 (insert_step_resume_breakpoint_at_caller): Likewise.
3791 * buildsym.c (record_line): Likewise.
3792 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3793 (arm_get_next_pc): Likewise.
3794 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3795 (store_regs): Likewise.
3796 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3797 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3798 * gdbarch.c, gdbarch.h: Regenerate.
3799
c9f4d572
UW
38002007-06-09 Markus Deuling <deuling@de.ibm.com>
3801
3802 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3803 * tracepoint.c (scope_info): Likewise.
3804 * target.c (debug_print_register): Likewise.
3805 * stack.c (frame_info): Likewise.
3806 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3807 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3808 (sh64_media_print_registers_info)
3809 (sh64_compact_print_registers_info): Likewise.
3810 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3811 * remote-sim.c (gdbsim_fetch_register): Likewise.
3812 * remote.c (packet_reg): Likewise (comment).
3813 * reggroups.c (default_register_reggroup_p): Likewise.
3814 * regcache.c (regcache_dump): Likewise.
3815 * printcmd.c (address_info): Likewise.
3816 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3817 * mt-dep.c (mt_registers_info): Likewise.
3818 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3819 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3820 (mips_read_fp_register_double, mips_print_fp_register)
3821 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3822 (mips_register_sim_regno): Likewise.
3823 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3824 * inf-ptrace.c (inf_ptrace_fetch_register)
3825 (inf_ptrace_store_register): Likewise.
3826 * infcmd.c (default_print_registers_info): Likewise.
3827 * ia64-linux-nat.c (ia64_linux_fetch_register)
3828 (ia64_linux_store_register): Likewise.
3829 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3830 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3831 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3832 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3833 (hppa_hpux_store_register): Likewise.
3834 * findvar.c (locate_var_value): Likewise.
3835 * dwarf2loc.c (locexpr_describe_location): Likewise.
3836 * dwarf2-frame.c (execute_cfa_program): Likewise.
3837 * arm-tdep.c (arm_push_dummy_call): Likewise.
3838 * arch-utils.c (legacy_register_sim_regno): Likewise.
3839 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3840 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3841 * mi/mi-main.c (mi_cmd_data_list_register_names)
3842 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3843 (mi_cmd_data_write_register_values): Likewise.
3844 * gdbarch.c, gdbarch.h: Regenerate.
3845
1fc01e03
DJ
38462007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3847
3848 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3849
632110b1
VP
38502007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3851
3852 * remote.c (process_g_packet): Don't check size.
3853 * gdbarch.sh: Remove register_bytes_ok.
3854 * gdbarch.c: Regenerated.
3855 * gdbarch.h: Regenerated.
3856 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3857 (m68k_register_bytes_ok): Remove.
3858 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3859
f43ae3f1
AS
38602007-06-06 Andreas Schwab <schwab@suse.de>
3861
3862 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3863 (destroy_addr_space_name): Define.
3864 (libunwind_load): Get address of destroy_addr_space function.
3865 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3866 returning unsuccessfully.
3867 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3868 returning.
3869 (libunwind_sigtramp_frame_sniffer): Likewise.
3870 (libunwind_get_reg_special): Likewise.
3871
d99344c0
UW
38722007-06-06 Markus Deuling <deuling@de.ibm.com>
3873
3874 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3875 gdbarch_fetch_pointer_argument.
3876 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3877 * gdbarch.c, gdbarch.h: Regenerate.
3878
e6cf7916
UW
38792007-06-06 Markus Deuling <deuling@de.ibm.com>
3880
3881 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3882 gdbarch_have_nonsteppable_watchpoint.
3883 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3884 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3885 gdbarch_cannot_step_breakpoint.
3886 * infrun.c (resume): Likewise.
3887 * gdbarch.c, gdbarch.h: Regenerate.
3888
bbcf301a
UW
38892007-06-06 Markus Deuling <deuling@de.ibm.com>
3890
3891 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3892 * stack.c (print_frame_args): Likewise.
3893 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3894 * stack.c (print_args_stub, frame_info): Likewise.
3895 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3896 * stack.c (print_args_stub, frame_info): Likewise.
3897 * gdbarch.c, gdbarch.h: Regenerate.
3898
95f1da47
UW
38992007-06-06 Markus Deuling <deuling@de.ibm.com>
3900
3901 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3902 gdbarch_coff_make_msymbol_special.
3903 * coffread.c (coff_symtab_read): Likewise.
3904 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3905 gdbarch_elf_make_msymbol_special.
3906 * elfread.c (elf_symtab_read): Likewise.
3907 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3908 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3909 * gdbarch.c, gdbarch.h: Regenerate.
3910
39e8369e
UW
39112007-06-06 Markus Deuling <deuling@de.ibm.com>
3912
3913 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3914 gdbarch_frame_red_zone_size.
3915 * gdbarch.c, gdbarch.h: Regenerate.
3916
4d1e7dd1
UW
39172007-06-06 Markus Deuling <deuling@de.ibm.com>
3918
3919 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3920 * infcall.c (call_function_by_hand): Likewise.
3921 * gcore.c (derive_stack_segment): Likewise.
3922 * frame.c (frame_id_inner): Likewise.
3923 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3924 * ada-lang.c (ensure_lval): Likewise.
3925 * gdbarch.c, gdbarch.h: Regenerate.
3926
76e71323
UW
39272007-06-06 Markus Deuling <deuling@de.ibm.com>
3928
3929 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3930 gdbarch_address_to_pointer.
3931 * findvar.c (store_typed_address): Likewise.
3932 * gdbtypes.c (make_pointer_type): Likewise (comment).
3933 * procfs.c (procfs_address_to_host_pointer): Likewise.
3934 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3935 (value_of_builtin_frame_fp_reg): Likewise.
3936 (value_of_builtin_frame_pc_reg): Likewise.
3937 * utils.c (paddress): Likewise (comment).
3938 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3939 gdbarch_pointer_to_address.
3940 * findvar.c (extract_typed_address): Likewise.
3941 * gdbtypes.c (make_pointer_type): Likewise (comment).
3942 * valops.c (value_cast): Likewise (comment).
3943 * gdbarch.c, gdbarch.h: Regenerate.
3944
91104499
UW
39452007-06-06 Markus Deuling <deuling@de.ibm.com>
3946
3947 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3948 * infrun.c (handle_inferior_event): Likewise.
3949 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3950 gdbarch_get_longjmp_target_p.
3951 * breakpoint.c (breakpoint_re_set): Likewise.
3952 * infrun.c (handle_inferior_event): Likewise.
3953 * gdbarch.c, gdbarch.h: Regenerate.
3954
d3e9c991
UW
39552007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3956
3957 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3958 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3959 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3960 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3961 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3962 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3963 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3964 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3965 current_ex_event, child_get_current_exception_event): Remove.
3966 (hppa_hpux_inferior_created): Remove.
3967 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3968
3969 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3970 (deprecated_exception_support_initialized): Remove.
3971 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3972 (deprecated_exception_support_initialized): Remove.
3973 (breakpoint_init_inferior): Remove handling of non-zero
3974 deprecated_exception_catchpoints_are_fragile.
3975
3976 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3977 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3978 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3979 deprecated_hp_som_som_object_present.
3980 * eval.c (evaluate_subexp_standard): Likewise.
3981 * valops.c (value_cast): Likewise.
3982
3983 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3984 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3985 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3986
5e787d22
UW
39872007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3988
3989 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3990 (struct objfile): Remove import_list, import_list_size,
3991 export_list, export_list_size members.
3992 (is_in_import_list): Remove prototype.
3993 * objfiles.c (is_in_import_list): Remove.
3994 * somread.c (init_import_symbols, init_export_symbols): Remove.
3995 (som_symfile_read): Do not call init_import_symbols. Do not
3996 set objfile->export_list and objfile->export_list_size.
3997
93e7bd98
DJ
39982007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3999
4000 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4001 Use the original objfile if necessary.
4002
e1024ff1
DJ
40032007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4004
4005 * defs.h (ldirname): New prototype.
4006 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4007 missing.
4008 * utils.c (ldirname): New function.
4009 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4010
ee82e879
UW
40112007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4012
4013 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4014
513f5903
JB
40152007-06-01 Joel Brobecker <brobecker@adacore.com>
4016
4017 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4018
52a75740
UW
40192007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4020
4021 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4022
c3fc7e62
UW
40232007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4024
4025 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4026 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4027 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4028 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4029 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4030 ppc_linux_at_sigtramp_return_path): Remove.
4031
4c6b5505
UW
40322007-05-31 Markus Deuling <deuling@de.ibm.com>
4033
4034 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4035 (xtensa_register_write_masked, xtensa_register_read_masked)
4036 (xtensa_extract_return_value, xtensa_store_return_value
4037 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4038 TARGET_BYTE_ORDER by gdbarch_byte_order.
4039 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4040 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4041 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4042 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4043 (sh64_push_dummy_call, sh64_extract_return_value)
4044 (sh64_store_return_value, sh64_register_convert_to_virtual)
4045 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4046 (sh64_pseudo_register_write, sh64_do_fp_register)
4047 (sh64_frame_prev_register): Likewise.
4048 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4049 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4050 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4051 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4052 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4053 * ppc-linux-nat.c (store_register): Likewise.
4054 * nto-tdep.c (nto_find_and_open_solib)
4055 (nto_init_solib_absolute_prefix): Likewise.
4056 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4057 (mips_convert_register_p, mips_eabi_push_dummy_call)
4058 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4059 (mips_o32_push_dummy_call, mips_o32_return_value)
4060 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4061 (mips_read_fp_register_single, mips_read_fp_register_double)
4062 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4063 (mips_breakpoint_from_pc): Likewise.
4064 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4065 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4066 (mips_linux_o32_sigframe_init): Likewise.
4067 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4068 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4069 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4070 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4071 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4072 * coffread.c (process_coff_symbol): Likewise.
4073 * arm-tdep.c (convert_from_extended, convert_to_extended)
4074 (gdb_print_insn_arm): Likewise.
4075
f57d151a
UW
40762007-05-31 Markus Deuling <deuling@de.ibm.com>
4077
4078 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4079 * i386-tdep.c (i386_dbx_reg_to_regnum)
4080 (i386_svr4_reg_to_regnum): Likewise.
4081 * inf-ptrace.c (inf_ptrace_fetch_registers)
4082 (inf_ptrace_store_registers): Likewise.
4083 * corelow.c (get_core_registers): Likewise.
4084 * i386-linux-nat.c (supply_gregset, fill_gregset)
4085 (i386_linux_fetch_inferior_registers)
4086 (i386_linux_store_inferior_registers): Likewise.
4087 * remote.c (init_remote_state,packet_reg_from_regnum)
4088 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4089 (remote_prepare_to_store,store_registers_using_G)
4090 (remote_store_registers,remote_arch_state): Likewise.
4091 * tracepoint.c (encode_actions): Likewise.
4092 * mi/mi-main.c (mi_cmd_data_list_register_names)
4093 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4094 (mi_cmd_data_write_register_values): Likewise.
4095 * tui/tui-regs.c (tui_show_register_group)
4096 (tui_show_register_group): Likewise.
4097 * xtensa-tdep.h (FP_ALIAS): Likewise.
4098 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4099 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4100 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4101 * win32-nat.c (do_win32_fetch_inferior_registers)
4102 (do_win32_store_inferior_registers,fetch_elf_core_registers
4103 * user-regs.h: Likewise (comment).
4104 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4105 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4106 * target-descriptions.h: Likewise (comment).
4107 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4108 * target.c (debug_print_register): Likewise.
4109 * stack.c (frame_info): Likewise.
4110 * stabsread.c (define_symbol): Likewise.
4111 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4112 (sh64_media_print_registers_info)
4113 (sh64_compact_print_registers_info): Likewise.
4114 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4115 * rs6000-nat.c (fetch_register,store_register): Likewise.
4116 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4117 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4118 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4119 * remote-m32r-sdi.c (m32r_fetch_registers)
4120 (m32r_store_registers): Likewise.
4121 * reggroups.c (default_register_reggroup_p): Likewise.
4122 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4123 (regcache_restore,regcache_dump): Likewise.
4124 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4125 * mips-tdep.c (mips_xfer_register,mips_register_name)
4126 (mips_register_reggroup_p,mips_pseudo_register_read)
4127 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4128 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4129 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4130 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4131 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4132 (print_gp_register_row,mips_print_registers_info)
4133 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4134 (mips_register_sim_regno): Likewise.
4135 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4136 (mips_linux_n32n64_sigframe_init): Likewise.
4137 * mips-linux-nat.c (mips_linux_register_addr)
4138 (mips64_linux_register_addr): Likewise.
4139 * findvar.c (value_of_register): Likewise.
4140 * infcmd.c (default_print_registers_info,registers_info)
4141 (print_vector_info,print_float_info): Likewise.
4142 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4143 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4144 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4145 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4146 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4147 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4148 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4149 (ia64_linux_store_registers): Likewise.
4150 * hpux-thread.c (hpux_thread_fetch_registers)
4151 (hpux_thread_store_registers): Likewise.
4152 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4153 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4154 (h8300_register_type): Likewise.
4155 * dwarf2-frame.c (dwarf2_frame_cache)
4156 (dwarf2_frame_state_alloc_regs): Likewise.
4157 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4158 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4159 (crisv32_cannot_store_register,cris_register_name): Likewise.
4160 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4161 * arch-utils.c (legacy_register_sim_regno)
4162 (legacy_virtual_frame_pointer): Likewise.
4163 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4164 * arm-tdep.h: Likewise (comment).
4165 * frv-tdep.c (frv_register_sim_regno): Likewise.
4166 * m68klinux-nat.c (old_fetch_inferior_registers)
4167 (old_store_inferior_registers): Likewise.
4168 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4169 * irix5-nat.c (fetch_core_registers): Likewise.
4170 * hppa-tdep.c (hppa_frame_cache): Likewise.
4171 * hppa-linux-nat.c (hppa_linux_register_addr)
4172 (hppa_linux_fetch_inferior_registers)
4173 (hppa_linux_store_inferior_registers): Likewise.
4174 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4175 (hppa_hpux_store_inferior_registers): Likewise.
4176 * amd64-nat.c (amd64_native_gregset_reg_offset)
4177 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4178 * dbug-rom.c (dbug_regname): Likewise.
4179 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4180 (HARD_PAGE_REGNUM (comment)): Likewise.
4181 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4182 * i386-tdep.c (i386_dbx_reg_to_regnum)
4183 (i386_svr4_reg_to_regnum): Likewise.
4184 * mi/mi-main.c (mi_cmd_data_list_register_names)
4185 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4186 (mi_cmd_data_write_register_values): Likewise.
4187 * gdbarch.c, gdbarch.h: Regenerate.
4188 * tui/tui-regs.c (tui_show_register_group): Likewise.
4189 * xtensa-tdep.h (FP_ALIAS): Likewise.
4190 * user-regs.h: Likewise (comment).
4191 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4192 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4193 * target-descriptions.h: Likewise (comment).
4194 * target.c (debug_print_register): Likewise.
4195 * stack.c (frame_info): Likewise.
4196 * stabsread.c (define_symbol): Likewise.
4197 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4198 (sh64_compact_print_registers_info): Likewise.
4199 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4200 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4201 (regcache_restore,regcache_dump): Likewise.
4202 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4203 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4204 (mips_stab_reg_to_regnum): Likewise.
4205 * findvar.c (value_of_register): Likewise.
4206 * infcmd.c (default_print_registers_info,registers_info)
4207 (print_vector_info,print_float_info): Likewise.
4208 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4209 * h8300-tdep.c (h8300_register_type): Likewise.
4210 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4211 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4212 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4213 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4214 * parse.c: Remove comment.
4215 * gdbarch.c, gdbarch.h: Regenerate
4216
8d4c1ba3
UW
42172007-05-31 Markus Deuling <deuling@de.ibm.com>
4218
4219 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4220 gdbarch_cannot_fetch_register.
4221 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4222 * hppa-linux-nat.c (fetch_register): Likewise.
4223 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4224 * m68klinux-nat.c (fetch_register): Likewise.
4225 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4226 Likewise.
4227 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4228 gdbarch_cannot_store_register.
4229 * hppa-linux-nat.c (store_register): Likewise.
4230 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4231 * regcache.c (regcache_raw_write): Likewise.
4232 * m68klinux-nat.c (store_register): Likewise.
4233 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4234 * gdbarch.c, gdbarch.h: Regenerate.
4235
3f4844da
UW
42362007-05-31 Markus Deuling <deuling@de.ibm.com>
4237
4238 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4239 * gdbarch.c, gdbarch.h: Regenerate.
4240
6c6b19fd
UW
42412007-05-31 Markus Deuling <deuling@de.ibm.com>
4242
4243 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4244 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4245 * gdbarch.c, gdbarch.h: Regenerate.
4246
0d20ae72
UW
42472007-05-31 Markus Deuling <deuling@de.ibm.com>
4248
4249 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4250 * ax-gdb.c (gen_bitfield_ref): Likewise.
4251 * mi/mi-main.c (get_register): Likewise.
4252 * findvar.c (default_value_from_register, extract_signed_integer)
4253 (extract_unsigned_integer, extract_long_unsigned_integer)
4254 (store_signed_integer, store_unsigned_integer): Likewise.
4255 * regcache.c (regcache_dump): Likewise.
4256 * value.c (lookup_internalvar, value_of_internalvar)
4257 (set_internalvar): Likewise.
4258 * defs.h: Likewise.
4259 * valprint.c (print_binary_chars, print_octal_chars)
4260 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4261 * infcmd.c (default_print_registers_info): Likewise.
4262 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4263 * stabsread.c (define_symbol): Likewise.
4264 * doublest.c (floatformat_from_length, floatformat_from_type)
4265 (extract_typed_floating, store_typed_floating): Likewise.
4266 * gdbarch.c, gdbarch.h: Regenerate.
4267
faaf634c
UW
42682007-05-31 Markus Deuling <deuling@de.ibm.com>
4269
4270 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4271 gdbarch_call_dummy_location.
4272 * infcall.c (call_function_by_hand): Likewise.
4273 * inferior.h: Change comment.
4274 * arch-utils.c: Change comment.
4275 * gdbarch.c, gdbarch.h: Regenerate.
4276
8905984d
JB
42772007-05-28 Joel Brobecker <brobecker@adacore.com>
4278
4279 * solib-aix5.c: Delete.
4280 * Makefile.in (solib-aix5.o): Delete rule.
4281
ab14ee8d
DJ
42822007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4283
4284 * breakpoint.h (enum bpstat_what_main_action): Remove
4285 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4286 * infrun.c (process_event_stop_test): Do not check for it.
4287
23776285
MR
42882007-05-22 Chris Dearman <chris@mips.com>
4289 Maciej W. Rozycki <macro@mips.com>
4290
4291 * ser-unix.c (show_serial_hwflow): New function.
4292 (hardwire_raw): Add hardware flow control support.
4293 (_initialize_ser_hardwire): Add "set/show remoteflow".
4294 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4295 * NEWS: Document the new command.
4296
eb368090
UW
42972007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4298
4299 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4300 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4301 define for i[[3456]]86-*-linux* native configurations.
4302 * config.in, configure: Regenerate.
4303
8d08c9ce
JB
43042007-05-19 Joel Brobecker <brobecker@adacore.com>
4305
4306 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4307 a core file. Add comment in the function description.
4308
42be36b3
CT
43092007-05-18 Caroline Tice <ctice@apple.com>
4310
4311 * c-valprint.c (c_value_print): If the initialized field of the
4312 value struct is 0, print out "[uninitialized]" before the value.
4313 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4314 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4315 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4316 ctx->initialized appropriately. Verify no location op follows
4317 DW_OP_GNU_uninit.
4318 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4319 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4320 set_value_initialized.
4321 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4322 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4323 * value.c (struct value): New field, initialized.
4324 (allocate_value): Initialize new field.
4325 (set_value_initialized): New function.
4326 (value_initialized): New function.
4327 * value.h (value_initialized): New extern declaration.
4328 (set_value_initialized): Likewise.
42be36b3 4329
a7c569c8
CT
43302007-05-18 Caroline Tice <ctice@apple.com>
4331
4332 * MAINTAINERS (Write After Approval): Add self.
4333
1e98b326
JB
43342007-05-17 Joel Brobecker <brobecker@adacore.com>
4335
4336 * gdbtypes.c (make_reference_type): Preserve the type chain
4337 and set the length of all the variants of the pointer type.
4338
053cb41b
JB
43392007-05-17 Joel Brobecker <brobecker@adacore.com>
4340
4341 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4342 and set the length of all the variants of the pointer type.
4343
436aafc4
MR
43442007-05-17 Maciej W. Rozycki <macro@mips.com>
4345
4346 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4347 comment.
4348 (mips_o64_push_dummy_call): Reformat a comment.
4349
98f4ab10
Q
43502007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4351
4352 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4353 (score_prologue_frame_base_address): Return fp to keep gdb print
4354 local variables correctly when debugging information is stabs.
4355
4356 (score_analyze_prologue): For software watchpoint, fetch all the
4357 instructions from range [startaddr, pc] once and identify them locally
4358 to reduce memory access.
4359 (score_malloc_and_get_memblock, score_free_memblock)
4360 (score_adjust_memblock_ptr): New functions.
4361 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4362
4363 (score_target_can_use_watch, score_stopped_by_watch)
4364 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4365 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4366 New functions for remote & local hw-watchpoint and hw-breakpoint.
4367
60dfee72
AS
43682007-05-16 Alfred M. Szmidt <ams@gnu.org>
4369
4370 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4371 declarations as well.
4372
190dce09
UW
43732007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4374
4375 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4376 * config/arm/tm-embed.h: Delete file.
4377
4378 * arm-tdep.h (arm_software_single_step): Declare.
4379 * arm-tdep.c (arm_software_single_step): Make global.
4380 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4381 from here to ...
4382 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4383 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4384 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4385 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4386
4387 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4388 allow defines to be overriden by TM file.
4389 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4390 change default to {0xbe,0xbe}.
4391 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4392 arm_obsd_thumb_be_breakpoint): New global variables.
4393 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4394 tdep->thumb_breakpoint_size.
4395 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4396 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4397 tdep->thumb_breakpoint_size.
4398
4399 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4400
1a69e1e4
DJ
44012007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4402
4403 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4404 saved-gpreg-size".
4405
4406 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4407 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4408 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4409 (mips_abi_regsize): Simplify.
4410 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4411 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4412 (mips_o32_return_value, mips_o64_push_dummy_call)
4413 (mips_o64_return_value): Propogate constant register sizes. Use the
4414 ABI register size instead of mips_stack_argsize.
4415 (mips_dump_tdep): Don't print mips_stack_argsize.
4416 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4417 settings.
4418
7d522c90
DJ
44192007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4420
4421 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4422 * config/mips/tm-linux.h: Delete.
4423 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4424 (mips_linux_in_dynsym_resolve_code): Make static. Use
4425 svr4_in_dynsym_resolve_code.
4426 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4427 set_solib_ops.
4428 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4429 global.
4430 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4431 * Makefile.in (mips-linux-tdep.o): Update.
4432 * solib.c (set_solib_ops): New.
4433 (current_target_so_ops): Update comment.
4434 * solib.h (set_solib_ops): New prototype.
4435
5d51a2db
MR
44362007-05-16 Chris Dearman <chris@mips.com>
4437
4438 * printcmd.c (do_examine): Fix typos in a comment.
4439
07abfebf
RS
44402007-05-16 Richard Sandiford <richard@codesourcery.com>
4441
4442 * configure.ac: Allow sysroots to be relocated under $prefix as
4443 well as $exec_prefix.
4444 * configure: Regenerate.
4445
f5ce4941
UW
44462007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4447
4448 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4449 (offsetof): Do not define.
4450 (find_stub_with_shl_get): Use numerical value 3 instead of
4451 symbolic value TYPE_PROCEDURE.
4452
76e1ee85
DJ
44532007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4454
4455 * gdb_proc_service.h (paddr_t): Delete typedef.
4456 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4457 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4458 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4459 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4460 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4461 * Makefile.in (proc-service.o): Update.
4462
2bd0c3d7
DJ
44632007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4464
4465 * Makefile.in (mips-tdep.o): Update.
4466 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4467 unwinder.
4468
14d06750
DJ
44692007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4470
4471 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4472 instead of store_typed_address.
4473 * value.c (pack_long): New.
4474 (value_from_longest): Use it.
4475 * value.h (pack_long): New prototype.
4476
f2fec864
DJ
44772007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4478
4479 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4480 DW_EH_PE_signed if appropriate.
4481
25e43795
DJ
44822007-05-14 Paul Brook <paul@codesourcery.com>
4483 Daniel Jacobowitz <dan@codesourcery.com>
4484
4485 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4486 function.
4487 (dwarf_decode_lines): Check for line info without a file.
4488
027c0295
DJ
44892007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4490
4491 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4492 as hexadecimal.
4493
dc5000e7
DJ
44942007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4495
4496 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4497 STRUCTOP_STRUCT.
4498 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4499 STRUCTOP_STRUCT.
4500 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4501
30244cd8
UW
45022007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4503
4504 * gdbarch.sh (read_sp): Remove.
4505 * gdbarch.c, gdbarch.h: Regenerate.
4506 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4507
4508 * avr-tdep.c (avr_read_sp): Remove.
4509 (avr_unwind_sp): New function.
4510 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4511 * mips-tdep.c (mips_read_sp): Remove.
4512 (mips_unwind_sp): New function.
4513 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4514 * score-tdep.c (score_read_unsigned_register): Remove.
4515 (score_read_sp): Remove.
4516 (score_unwind_sp): New function.
4517 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4518
84ba0adf
DJ
45192007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4520
4521 * buildsym.c (start_subfile): Handle absolute pathnames
4522 while comparing subfile names.
4523
e7b17823
UW
45242007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4525
4526 * hppa-hpux-tdep.c: Include "regcache.h".
4527 * hppa-linux-tdep.c: Likewise.
4528 * hppa-tdep.c: Include "gdb_stdint.h".
4529 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4530 it to paddr_nz.
4531 * Makefile.in: Update dependencies.
4532
7157eed4
UW
45332007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4534
4535 * blockframe.c: Remove obsolete comments.
4536 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4537 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4538 * hppa-tdep.h (enum hppa_regnum): Likewise.
4539 * mips-tdep.h: Likewise.
4540 * m68hc11-tdep.c: Likewise.
4541
fb4443d8
UW
45422007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4543
4544 * inferior.h (read_sp): Remove prototype.
4545 * regcache.c (read_sp): Remove.
4546 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4547 * infcall.c (call_function_by_hand): Likewise.
4548 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4549 of calling read_sp.
4550 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4551
7b86a1b8
UW
45522007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4553
4554 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4555 instead of read_register and read_register_pid.
4556
4557 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4558 argument instead of PTID. Use regcache functions instead of
4559 read_register_pid.
4560 (ia64_linux_insert_watchpoint): Update call.
4561 (ia64_linux_stopped_data_address): Use regcache functions
4562 instead of read_register_pid and write_register_pid.
4563
45ecac4b
UW
45642007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4565
4566 * libunwind-frame.h (struct regcache): Add forward declaration.
4567 (libunwind_get_reg_special): Add REGCACHE argument.
4568 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4569 argument. Pass it to unw_init_remote_p.
4570
4571 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4572 libunwind_get_reg_special.
4573 (ia64_access_reg): Remove "write" case.
4574 (ia64_access_fpreg): Likewise. Read from next_frame passed
4575 as callback argument instead of from current_regcache.
4576 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4577 passed as callback argument instead of from current_regcache.
4578 (ia64_access_rse_fpreg): New function.
4579 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4580
0ca420ce
UW
45812007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4582
4583 * NEWS: Mention SPU overlay support.
4584
0a44cb36
UW
45852007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4586
4587 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4588
aa67235e
UW
45892007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4590
4591 * breakpoint.c (remove_breakpoint): Do not remove software
4592 breakpoints in unmapped overlay sections.
4593
dcf52cd8
UW
45942007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4595
4596 * spu-tdep.c: Include "observer.h".
4597 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4598 (spu_overlay_data): New variable.
4599 (struct spu_overlay_table): New type.
4600 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4601 spu_overlay_new_objfile): New functions.
4602 (spu_gdbarch_init): Install spu_overlay_update.
4603 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4604 allocate spu_overlay_data objfile data.
4605
1c772458
UW
46062007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4607
4608 * gdbarch.sh (overlay_update): New gdbarch function.
4609 (struct obj_section): Add forward declaration.
4610 * gdbarch.c, gdbarch.h: Regenerate.
4611
4612 * symfile.c (simple_overlay_update): Make global.
4613 (target_overlay_update): Remove variable.
4614 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4615 target_overlay_update.
4616 (overlay_load_command): Likewise.
4617 * symfile.h (struct obj_section): Add forward declaration.
4618 (simple_overlay_update): Add prototype.
4619
4620 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4621
06d3b283
UW
46222007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4623
4624 * observer.sh: Add "struct objfile" forward declaration.
4625 * target.h (deprecated_target_new_objfile_hook): Remove.
4626 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4627 (clear_symtab_users): Call observer_notify_new_objfile.
4628 (symbol_file_add_with_addrs_or_offsets): Likewise.
4629 * rs6000-nat.c: Include "observer.h".
4630 (vmap_ldinfo): Call observer_notify_new_objfile.
4631 (xcoff_relocate_core): Likewise.
4632 * remote.c (remote_new_objfile_chain): Remove.
4633 (remote_new_objfile): Do not call remote_new_objfile_chain.
4634 (_initialize_remote): Use observer_attach_new_objfile.
4635 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4636 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4637 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4638 * aix-thread.c: Include "observer.h".
4639 (target_new_objfile_chain): Remove.
4640 (new_objfile): Do not call target_new_objfile_chain.
4641 (_initialize_aix_thread): Use observer_attach_new_objfile.
4642 * hpux-thread.c: Include "observer.h"
4643 (target_new_objfile_chain): Remove.
4644 (hpux_thread_new_objfile): Make static. Do not call
4645 target_new_objfile_chain.
4646 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4647 * linux-thread-db.c: Include "observer.h".
4648 (target_new_objfile_chain): Remove.
4649 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4650 (_initialize_thread_db): Use observer_attach_new_objfile.
4651 * sol-thread.c: Include "observer.h".
4652 (target_new_objfile_chain): Remove.
4653 (sol_thread_new_objfile): Make static. Do not call
4654 target_new_objfile_chain.
4655 (_initialize_sol_thread): Use observer_attach_new_objfile.
4656 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4657 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4658 $(observer_h).
4659
93ce7684
UW
46602007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4661
4662 * gdbarch.sh (remote_translate_xfer_address): Remove.
4663 * gdbarch.h, gdbarch.c: Regenerate.
4664 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4665 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4666 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4667 call gdbarch_remote_translate_xfer_address.
4668 * frv-tdep.c (frv_gdbarch_init): Do not call
4669 set_gdbarch_remote_translate_xfer_address.
4670 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4671 (ia64_gdbarch_init): Do not install it.
4672
a6ec25f2
BW
46732007-05-11 Bob Wilson <bob.wilson@acm.org>
4674
4675 * NEWS: Mention change in handling the -tui option.
4676
2ef52e77
DJ
46772007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4678
4679 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4680 typo.
4681
1aafd4da
UW
46822007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4683
4684 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4685 (breakpoint_inserted_here_p): Call it.
4686 (software_breakpoint_inserted_here_p): Likewise.
4687
7714d83a
UW
46882007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4689
4690 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4691 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4692 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4693 (inf_ptrace_store_register): Likewise.
4694 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4695 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4696
4697 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4698
4699 * linux-nat.c (linux_trad_target): Adapt parameter list.
4700 * linux-nat.h (linux_trad_target): Likewise.
4701
4702 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4703
4704 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4705 (mips_linux_cannot_store_register): Likewise.
4706 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4707 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4708 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4709 (mips64_linux_register_addr): Likewise.
4710 (mips_linux_register_u_offset): Adapt parameter list. Pass
4711 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4712
4713 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4714 * config/mips/nm-linux.h: Delete file.
4715
4ddda9b5
PA
47162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4717
4718 * remote.c (remote_detach): Error out if remote can't detach.
4719
24d45690
UW
47202007-05-10 Luis Machado <luisgpm@br.ibm.com>
4721
362f854e
PA
4722 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4723 instruction's opcode in the "opcode" variable and declares new
4724 variable "closing_insn".
24d45690 4725
1430be3e
MR
47262007-05-10 Chris Dearman <chris@mips.com>
4727 Maciej W. Rozycki <macro@mips.com>
4728
4729 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4730 whitespace when setting a var_filename.
4731
b0da54f1
BW
47322007-05-09 Bob Wilson <bob.wilson@acm.org>
4733
4734 * main.c (captured_main): Recognize -tui option and print an error
4735 message when the TUI is not configured.
4736
9a88e5ee
AS
47372007-05-09 Andreas Schwab <schwab@suse.de>
4738
4739 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4740 set removed members.
4741 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4742
fc0d8df4
UW
47432007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4744
4745 * gdbarch.sh (deprecated_store_struct_return): Remove.
4746 * gdbarch.c, gdbarch.h: Regenerate.
4747 * frv-tdep.c (frv_store_struct_return): Remove.
4748 (frv_gdbarch_init): Do not install it.
4749
179101d6
UW
47502007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4751
4752 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4753 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4754 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4755
b9efddcd
UW
47562007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4757
4758 * spu-linux-nat.c: Include "gdb_stdint.h".
4759 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4760 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4761 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4762 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4763 (spu_child_wait): Mark up string for translation.
4764
ce5eab59
UW
47652007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4766 Luis Machado <luisgpm@br.ibm.com>
4767
4768 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4769 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4770 BC_INSTRUCTION): Define.
4771 (deal_with_atomic_sequence): New function.
4772 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4773 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4774 gdbarch_software_single_step routine.
4775
4179a487
UW
47762007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4777
4778 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4779 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4780 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4781 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4782 spu_child_post_attach, spu_fetch_inferior_registers,
4783 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4784 memory addresses as ULONGEST, not CORE_ADDR.
4785
6d350bb5
UW
47862007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4787
4788 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4789 * gdbarch.h, gdbarch.c: Regenerate.
4790
4791 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4792 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4793 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4794
4795 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4796 Add REGCACHE argument. Use it instead of read/write_register.
4797 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4798
4799 * config/pa/tm-hppah.h: Delete file.
4800 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4801 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4802
b18be20d
DJ
48032007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4804
4805 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4806 * NEWS: Mention improved C++ thunk support.
4807 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4808 * cp-abi.c (cplus_skip_trampoline): New.
4809 * cp-abi.h (cplus_skip_trampoline): New prototype.
4810 (struct cp_abi_ops): Add skip_trampoline member.
4811 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4812 (init_gnuv3_ops): Set skip_trampoline.
4813
dda9b909
DJ
48142007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4815
4816 * rs6000-tdep.c (struct frame_extra_info): Delete.
4817
34091d9b
DJ
48182007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4819
4820 * linux-thread-db.c: Update some FIXME comments.
4821 (thread_db_xfer_partial): Delete.
4822 (init_thread_db_ops): Do not set to_xfer_partial.
4823
1da33a4a
UW
48242007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4825
4826 * inftarg.c, infptrace.c: Remove files.
4827 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4828 (inftarg.o, infptrace.o): Remove rules.
4829 * gdbcore.h (register_addr): Remove prototype.
4830 * inferior.h (kill_inferior, store_inferior_registers,
4831 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4832 call_ptrace, pre_fork_inferior): Remove prototypes.
4833 * target.h (child_xfer_memory, child_pid_to_exec_file,
4834 child_core_file_to_sym_file, child_post_attach,
4835 child_post_startup_inferior, child_acknowledge_created_inferior,
4836 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4837 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4838 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4839 child_follow_fork, child_reported_exec_events_per_exec_call,
4840 child_has_exited, child_thread_alive): Remove prototypes.
4841
6f7a27d5
UW
48422007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4843
4844 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4845 (sparc_store_inferior_registers): Likewise.
4846 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4847 (sparc_fetch_inferior_registers): ... this.
4848 (store_inferior_registers): Rename to ...
4849 (sparc_store_inferior_registers): ... this.
4850 (sparc_target): Update callback names.
4851 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4852 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4853
6d8fd2b7
UW
48542007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4855
4856 * linux-nat.c (child_post_attach): Rename to ...
4857 (linux_child_post_attach): ... this. Make static.
4858 (child_follow_fork): Rename to ...
4859 (linux_child_follow_fork): ... this. Make static.
4860 (child_insert_fork_catchpoint): Rename to ...
4861 (linux_child_insert_fork_catchpoint): ... this. Make static.
4862 (child_insert_vfork_catchpoint): Rename to ...
4863 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4864 (child_insert_exec_catchpoint): Rename to ...
4865 (linux_child_insert_exec_catchpoint): ... this. Make static.
4866 (child_pid_to_exec_file): Rename to ...
4867 (linux_child_pid_to_exec_file): ... this. Make static.
4868 Add prototype.
4869 (linux_handle_extended_wait): Update call.
4870 (linux_xfer_partial): Update callback routine names.
4871
d08950c4
UW
48722007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4873
4874 * configure.host (alpha*-*-osf[12]*): Remove support.
4875 * NEWS: Mention removed configurations.
4876
4877 * config/alpha/alpha-osf1.mh: Delete file.
4878 * config/alpha/alpha-osf2.mh: Delete file.
4879 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4880 and infptrace.o.
4881 * config/alpha/nm-osf.h: Delete file.
4882 * config/alpha/nm-osf2.h: Delete file.
4883 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4884 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4885 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4886
4887 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4888 (register_addr, kernel_u_size): Remove.
4889 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4890
9c5ea4d9
UW
48912007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4892
4893 * regcache.c (regcache_invalidate): New function.
4894 (register_cached): Remove.
4895 (set_register_cached): Remove.
4896 (deprecated_registers_fetched): Remove.
4897 (registers_changed): Use regcache_invalidate instead
4898 of set_register_cached.
4899 (regcache_raw_read): Update comment.
4900
4901 * regcache.h (regcache_invalidate): Add prototype.
4902 (register_cached): Remove.
4903 (set_register_cached): Remove.
4904 (deprecated_registers_fetched): Remove.
4905
4906 * findvar.c (value_of_register): Do not call register_cached.
4907 * frame.c (frame_register): Likewise.
4908 * tui/tui-regs.c (tui_get_register): Likewise.
4909
4910 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4911 (process_g_packet): Likewise.
4912 (remote_fetch_registers): Likewise.
4913 * remote-sim.c (gdbsim_fetch_register): Likewise.
4914 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4915 by regcache_invalidate.
4916 (mt_pseudo_register_write): Likewise.
4917 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4918
4919 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4920 call by loop over regcache_raw_supply (..., NULL).
4921
316f2060
UW
49222007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4923
4924 * target.h (struct target_ops): Add REGCACHE parameter to
4925 to_prepare_to_store.
4926 (target_prepare_to_store): Likewise.
4927 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4928 (update_current_target): Adapt prepare_to_store de_fault rule.
4929
4930 * regcache.c (regcache_raw_write): Pass regcache to
4931 target_prepare_to_store.
4932
4933 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4934 Do not call CHILD_PREPARE_TO_STORE.
4935 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4936 * procfs.c (procfs_prepare_to_store): Likewise.
4937
4938 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4939 * go32-nat.c (go32_prepare_to_store): Likewise.
4940 * monitor.c (monitor_prepare_to_store): Likewise.
4941 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4942 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4943 * remote-mips.c (mips_prepare_to_store): Likewise.
4944 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4945 * win32-nat.c (win32_prepare_to_store): Likewise.
4946
4947 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4948 Use it instead of current_regcache.
4949
4950 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4951 parameter. Pass it on to next target.
4952 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4953
56be3814
UW
49542007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4955
4956 * target.h (struct regcache): Add forward declaration.
4957 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4958 and to_store_registers target operations.
4959 (target_fetch_registers, target_store_registers): Update.
4960
4961 * regcache.c (regcache_raw_read): Replace register_cached by
4962 regcache_valid_p. Pass regcache to target_fetch_registers.
4963 (regcache_raw_write): Pass regcache to target_store_registers.
4964
4965 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4966 store_regs, store_wmmx_regs): Replace register_cached by
4967 regcache_valid_p.
4968
4969 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4970 to target_fetch_registers calls.
4971 * corelow.c (core_open): Likewise.
4972 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4973 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4974 ps_lsetfpregs): Likewise.
4975 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4976 ps_lsetfpregs): Likewise.
4977 * win32-nat.c (win32_resume): Likewise.
4978 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4979 to target_store_registers call.
4980 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4981
4982 * inferior.h (store_inferior_registers): Update prototype.
4983 (fetch_inferior_registers): Likewise.
4984 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4985 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4986 Update function pointer signatures.
4987
4988 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4989 use it instead of current_regcache, update calls.
4990 (aix_thread_store_registers): Likewise.
4991 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4992 (alphabsd_store_inferior_registers): Likewise.
4993 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4994 (amd64bsd_store_inferior_registers): Likewise.
4995 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4996 (amd64_linux_store_inferior_registers): Likewise.
4997 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4998 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4999 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5000 (arm_linux_fetch_inferior_registers): Likewise.
5001 (arm_linux_store_inferior_registers): Likewise.
5002 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5003 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5004 (store_register, store_regs, store_fp_register, store_fp_regs,
5005 armnbsd_store_registers): Likewise.
5006 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5007 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5008 (bsd_uthread_store_registers): Likewise.
5009 * corelow.c (get_core_registers): Likewise.
5010 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5011 go32_store_registers): Likewise.
5012 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5013 (hppabsd_store_registers): Likewise.
5014 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5015 (hppa_hpux_fetch_inferior_registers): Likewise.
5016 (hppa_hpux_store_register): Likewise.
5017 (hppa_hpux_store_inferior_registers): Likewise.
5018 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5019 (hppa_linux_fetch_inferior_registers): Likewise.
5020 (hppa_linux_store_inferior_registers): Likewise.
5021 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5022 (hpux_thread_store_registers): Likewise.
5023 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5024 (i386bsd_store_inferior_registers): Likewise.
5025 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5026 gnu_store_registers): Likewise.
5027 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5028 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5029 Likewise.
5030 (i386_linux_fetch_inferior_registers): Likewise.
5031 (i386_linux_store_inferior_registers): Likewise.
5032 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5033 (ia64_linux_fetch_registers): Likewise.
5034 (ia64_linux_store_register): Likewise.
5035 (ia64_linux_store_registers): Likewise.
5036 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5037 (inf_child_store_inferior_registers): Likewise.
5038 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5039 (inf_ptrace_fetch_registers): Likewise.
5040 (inf_ptrace_store_register): Likewise.
5041 (inf_ptrace_store_registers): Likewise.
5042 * infptrace.c (fetch_register, store_register): Likewise.
5043 (fetch_inferior_registers, store_inferior_registers): Likewise.
5044 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5045 (m32r_linux_fetch_inferior_registers): Likewise.
5046 (m32r_linux_store_inferior_registers): Likewise.
5047 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5048 (m68kbsd_store_inferior_registers): Likewise.
5049 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5050 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5051 fetch_fpregs, store_fpregs): Likewise.
5052 (m68k_linux_fetch_inferior_registers): Likewise.
5053 (m68k_linux_store_inferior_registers): Likewise.
5054 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5055 (m88kbsd_store_inferior_registers): Likewise.
5056 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5057 (mips64obsd_store_inferior_registers): Likewise.
5058 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5059 (mips64_linux_regsets_store_registers): Likewise.
5060 (mips64_linux_fetch_registers): Likewise.
5061 (mips64_linux_store_registers): Likewise.
5062 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5063 (mipsnbsd_store_inferior_registers): Likewise.
5064 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5065 (monitor_fetch_registers, monitor_store_registers): Likewise.
5066 * nto-procfs.c (procfs_fetch_registers): Likewise.
5067 (procfs_store_registers): Likewise.
5068 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5069 fetch_register, supply_vrregset, fetch_altivec_registers,
5070 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5071 (store_altivec_register, store_spe_register, store_register,
5072 fill_vrregset, store_altivec_registers, store_ppc_registers,
5073 ppc_linux_store_inferior_registers): Likewise.
5074 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5075 (ppcnbsd_store_inferior_registers): Likewise.
5076 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5077 (ppcobsd_store_registers): Likewise.
5078 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5079 * remote.c (fetch_register_using_p, process_g_packet,
5080 fetch_registers_using_g, remote_fetch_registers): Likewise.
5081 (store_register_using_P, store_registers_using_G,
5082 remote_store_registers): Likewise.
5083 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5084 m32r_store_register, m32r_store_register): Likewise.
5085 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5086 * remote-sim.c (gdbsim_fetch_register): Likewise.
5087 (gdbsim_store_register): Likewise.
5088 * rs6000-nat.c (fetch_register, store_register): Likewise.
5089 (rs6000_fetch_inferior_registers): Likewise.
5090 (rs6000_store_inferior_registers): Likewise.
5091 * s390-nat.c (fetch_regs, store_regs): Likewise.
5092 (fetch_fpregs, store_fpregs): Likewise.
5093 (s390_linux_fetch_inferior_registers): Likewise.
5094 (s390_linux_store_inferior_registers): Likewise.
5095 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5096 (shnbsd_store_inferior_registers): Likewise.
5097 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5098 (sol_thread_store_registers): Likewise.
5099 * sparc-nat.c (fetch_inferior_registers): Likewise.
5100 (store_inferior_registers): Likewise.
5101 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5102 (spu_store_inferior_registers): Likewise.
5103 * target.c (debug_print_register): Likewise.
5104 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5105 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5106 (vaxbsd_store_inferior_registers): Likewise.
5107 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5108 (win32_fetch_inferior_registers): Likewise.
5109 (win32_store_inferior_registers): Likewise.
5110
9eefc95f
UW
51112007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5112
5113 * gdbcore.h (struct regcache): Add forward declaration.
5114 (struct core_fns): Add REGCACHE argument to core_read_registers
5115 callback.
5116 * corelow.c (get_core_register_section): Add REGCACHE argument,
5117 use it instead of current_regcache, pass it to core_read_registers
5118 callback.
5119 (get_core_registers): Add current_regcache as parameter to
5120 get_core_register_section calls.
5121
5122 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5123 use it instead of current_regcache.
5124 * armnbsd-nat.c (fetch_core_registers): Likewise.
5125 (fetch_elfcore_registers): Likewise.
5126 * core-regset.c (fetch_core_registers): Likewise.
5127 * cris-tdep.c (fetch_core_registers): Likewise.
5128 * irix5-nat.c (fetch_core_registers): Likewise.
5129 * m68klinux-nat.c (fetch_core_registers): Likewise.
5130 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5131 * win32-nat.c (fetch_elf_core_registers): Likewise.
5132
7f7fe91e
UW
51332007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5134
5135 * gregset.h (struct regcache): Add forward declaration.
5136 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5137 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5138 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5139 (fill_gregset): Add REGCACHE parameter.
5140 (fill_fpregset): Likewise.
5141 (fill_fpxregset): Likewise.
5142
5143 Update all definitions accordingly:
5144 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5145 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5146 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5147 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5148 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5149 (supply_gregset): Add REGCACHE parameter, use it instead of
5150 current_regcache. Make GREGSETP parameter const, adapt casts.
5151 (supply_fpregset): Add REGCACHE parameter, use it instead of
5152 current_regcache. Make FPREGSETP parameter const, adapt casts.
5153 (fill_gregset): Add REGCACHE parameter, use it instead of
5154 current_regcache.
5155 (fill_fpregset): Likewise.
5156
5157 Update all callers to pass in current_regcache as the new argument:
5158 * core-regset.c: Include "regcache.h".
5159 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5160 * procfs.c: Include "regcache.h".
5161 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5162 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5163 (procfs_do_thread_registers): Likewise.
5164 (procfs_make_note_section): Likewise.
5165 * proc-service.c: Include "regcache.h".
5166 (ps_lgetregs): Update fill_gregset call.
5167 (ps_lsetregs): Update supply_gregset call.
5168 (ps_lgetfpregs): Update fill_fpregset call.
5169 (ps_lsetfpregs): Update supply_fpregset call.
5170 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5171 supply_fpregset calls.
5172 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5173 (ps_lgetregs): Update fill_gregset call.
5174 (ps_lsetregs): Update supply_gregset call.
5175 (ps_lgetfpregs): Update fill_fpregset call.
5176 (ps_lsetfpregs): Update supply_fpregset call.
5177
5178 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5179 fill_fpregset, and fill_fpxregset calls.
5180 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5181 (store_regs): Update fill_gregset call.
5182 (fetch_fpregs): Update supply_fpregset call.
5183 (store_fpregs): Update fill_fpregset call.
5184 (fetch_fpxregs): Update supply_fpxregset call.
5185 (store_fpxregs): Update fill_fpxregset call.
5186 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5187 (store_regs): Update fill_gregset call.
5188 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5189 (store_regs): Update fill_gregset call.
5190 (fetch_fpregs): Update supply_fpregset call.
5191 (store_fpregs): Update fill_fpregset call.
5192 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5193 * s390-nat.c (fetch_regs): Update supply_gregset call.
5194 (store_regs): Update fill_gregset call.
5195 (fetch_fpregs): Update supply_fpregset call.
5196 (store_fpregs): Update fill_fpregset call.
5197
5198 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5199 dependencies.
5200
c410a84c
UW
52012007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5202
5203 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5204 it instead of current_regcache.
5205 (parse_register_dump): Add REGCACHE parameter, pass it to
5206 supply_register callback.
5207 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5208 parse_register_dump.
5209 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5210 parse_register_dump and dumpregs callback.
5211 (monitor_wait): Pass current_regcache to parse_register_dump and
5212 monitor_dump_regs.
5213 (monitor_fetch_register): Pass current_regcache to
5214 monitor_supply_register.
5215 (monitor_fetch_registers): Pass current_regcache to
5216 monitor_dump_regs.
5217 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5218 supply_register and dumpregs callbacks.
5219 (monitor_supply_register, monitor_dump_reg_block): Update
5220 prototypes.
5221 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5222 it to monitor_supply_register.
5223 * dink32-rom.c (dink32_supply_register): Likewise.
5224 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5225 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5226 instead of current_regcache.
5227
468e3d51
UW
52282007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5229
5230 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5231 Add REGCACHE parameter. Use it instead of current_regcache.
5232 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5233 i386nto_supply_gregset and i386nto_supply_fpregset.
5234 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5235 of current_regcache.
5236
5237 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5238 nto_supply_ helper functions.
5239 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5240
5241 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5242
5243 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5244 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5245 and regset_fill member function pointers.
5246 (nto_dummy_supply_regset): Adapt prototype.
5247
4e3269e3
UW
52482007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5249
5250 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5251 instead of current_regcache. Make REGS const.
5252 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5253 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5254 prototypes.
5255 * shnbsd-nat.c: Include "regcache.h".
5256 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5257 shnbsd_supply_reg.
5258 (shnbsd_store_inferior_registers): Pass current_regcache to
5259 shnbsd_fill_reg.
5260 * Makefile.in (shbsd-nat.o): Update dependencies.
5261
28f5035f
UW
52622007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5263
5264 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5265 instead of current_regcache.
5266 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5267 Make GREGSETP const, remove superfluous casts.
5268 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5269 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5270 superfluous casts.
5271 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5272 (supply_64bit_reg): Likewise
5273 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5274 Make GREGSETP const, adapt casts accordingly.
5275 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5276 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5277 casts accordingly.
5278 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5279 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5280 helper routines.
5281 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5282 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5283 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5284 Adapt prototypes.
5285 * mips-linux-nat.c: Include "regcache.h".
5286 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5287 current_regcache to mips{64}_(supply|fill)_ helper routines.
5288 (mips64_linux_regsets_fetch_registers): Likewise.
5289 (mips64_linux_regsets_store_registers): Likewise.
5290
5291 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5292 REGCACHE argument; replace current_regcache. Make REGS const.
5293 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5294 replace current_regcache.
5295 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5296 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5297 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5298 mipsnbsd_store_inferior_registers): Pass current_regcache to
5299 mipsnbsd_(supply|fill)_... helper routines.
5300
5301 * Makefile.in (mips-linux-nat.o): Update dependencies.
5302
26144df5
UW
53032007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5304
5305 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5306 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5307 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5308 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5309 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5310 * i386gnu-nat.c (store_fpregs): Likewise.
5311 * i386v4-nat.c (fill_fpregset): Likewise.
5312 * go32-nat.c (store_register, go32_store_registers): Likewise.
5313
c6b4e5a2
UW
53142007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5315
5316 * cris-tdep.c (supply_gregset): Rename to ...
5317 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5318 instead of current_regcache.
5319 (fetch_core_registers): Update call. Pass current_regcache.
5320
d683e2b7
UW
53212007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5322
5323 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5324 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5325 Use it instead of current_regcache.
5326 (supply_fparegset): Rename to ...
5327 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5328 Use it instead of current_regcache.
5329 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5330 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5331
390c1522
UW
53322007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5333
5334 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5335 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5336 use it instead of current_regcache.
5337 * alpha-tdep.h (struct regcache): Add forward declaration.
5338 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5339 alpha_fill_fp_regs): Update prototypes.
5340
5341 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5342 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5343 * alpha-linux-nat.c: Include "regcache.h".
5344 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5345 current_regcache to alpha_supply/fill_ routines.
5346
5347 * alphabsd-tdep.c: Include "regcache.h".
5348 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5349 pass it to alpha_supply_ routines. Make REGS const.
5350 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5351 pass it to alpha_fill_ routines.
5352 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5353 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5354 alphabsd_fill_fpreg): Update prototypes.
5355
5356 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5357 fill_fpregset, alphabsd_fetch_inferior_registers,
5358 alphabsd_store_inferior_registers): Pass current_regcache to
5359 alphabsd_supply/fill_ routines.
5360
5361 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5362 dependencies.
5363
647478e0
UW
53642007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5365
5366 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5367 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5368 instead of current_regcache.
5369 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5370 REGCACHE parameter, pass it to supply_ routines.
5371 (aix_thread_fetch_registers): Pass current_regcache to
5372 fetch_regs_user_thread and fetch_regs_kernel_thread.
5373
5374 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5375 Add REGCACHE parameter, use it instead of current_regcache.
5376 Call regcache_valid_p instead of register_cached.
5377 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5378 Also, pass REGCACHE to fill_ routines.
5379 (aix_thread_store_registers): Pass current_regcache to
5380 store_regs_user_thread and store_regs_kernel_thread.
5381
d817e083
UW
53822007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5383
5384 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5385 pointed to by GREGSETP.
5386
6a1872e4
UW
53872007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5388
5389 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5390 of regcache_raw_read_signed.
5391 (fill_fpregset): Use regcache_raw_collect instead of
5392 regcache_raw_read.
5393
6da397e0
KB
53942007-05-03 Kevin Buettner <kevinb@redhat.com>
5395
5396 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5397 point arguments, test explicitly for use of the EABI32 ABI
5398 instead of inferring this condition from tests on register
5399 sizes.
5400
2219d63c
KB
54012007-05-03 Kevin Buettner <kevinb@redhat.com>
5402
5403 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5404 prior to allocating its location.
5405
2afd3f0a
MR
54062007-05-02 Maciej W. Rozycki <macro@mips.com>
5407
5408 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5409 based on mips_abi_regsize() whose result is known in advance.
5410 (mips_o64_push_dummy_call): Likewise.
5411
3e00823e
UW
54122007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5413
5414 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5415 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5416
5417 * mips-linux-nat.c: Include "gregset.h".
5418 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5419 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5420 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5421 fill_fpregset): Move to mips-linux-nat.c.
5422
5423 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5424
81c4a259
UW
54252007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5426
5427 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5428 (read_register): ... here.
5429 (deprecated_write_register_gen): Remove, inline ...
5430 (write_register): ... here.
5431 * regcache.h (deprecated_read_register_gen): Remove prototype.
5432 (deprecated_write_register_gen): Likewise.
5433
5434 * remote-sim.c (gdbsim_store_register): Replace call to
5435 deprecated_read_register_gen with regcache_cooked_read.
5436 * target.c (debug_print_register): Replace calls to
5437 deprecated_read_register_gen and read_register with
5438 regcache_cooked_read.
5439
8bb42077
UW
54402007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5441
5442 * hpux-thread.c (hpux_thread_store_registers): Use
5443 regcache_raw_collect, not regcache_raw_read.
5444 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5445 not regcache_raw_write.
5446
6ed7ea50
UW
54472007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5448
5449 * gdbarch.sh: Remove deprecated_register_byte.
5450 * gdbarch.c, gdbarch.h: Regenerate.
5451 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5452 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5453
5454 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5455 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5456 read-only register caches. Make REGCACHE parameter const.
5457 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5458
5459 * mi/mi-main.c (old_regs): Remove.
5460 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5461 (register_changed_p): Reimplement to compare two register caches.
5462 (mi_cmd_data_list_changed_registers): Update caller.
5463 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5464 * mi/mi-interp.c (mi_interpreter_init): Do not call
5465 mi_setup_architecture_data.
5466
efc72ef5
UW
54672007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5468
5469 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5470 inline definition at the places the macros are used.
5471 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5472
7a61a01c
UW
54732007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5474
5475 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5476 "gdb_string.h".
5477 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5478 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5479 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5480 (rs6000_aix_regset_from_core_section): New function.
5481 (rs6000_aix_init_osabi): Register it.
5482 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5483 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5484 * rs6000-nat.c (CoreRegs): Do not define type.
5485 (fetch_core_registers, rs6000_core_fns): Remove.
5486 (_initialize_core_rs6000): Do not register it. Rename to ...
5487 (_initialize_rs6000_nat): ... this.
5488 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5489
ace186d4
KB
54902007-04-27 Kevin Buettner <kevinb@redhat.com>
5491
5492 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5493 (dwarf2_read_address): Sign extend return address as required by
5494 target architecture.
5495
89a7ee67
KB
54962007-04-27 Kevin Buettner <kevinb@redhat.com>
5497
5498 * solib-frv.c (lm_base): Bail out if the main executable has
5499 not been relocated.
5500
6afb1f32
UW
55012007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5502
5503 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5504 of FPCR register in fpregset.
5505
66a0218a
MR
55062007-04-27 Maciej W. Rozycki <macro@mips.com>
5507
5508 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5509 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5510
482f7fee
UW
55112007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5512
5513 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5514 * rs6000-nat.c (rs6000_wait): New function.
5515 (_initialize_core_rs6000): Install it as to_wait target method.
5516 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5517
1f480a5e
UW
55182007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5519
5520 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5521 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5522 * rs6000-nat.c (super_create_inferior): New variable.
5523 (rs6000_create_inferior): Make static. Adapt argument list. Call
5524 original version of create_inferior via super_create_inferior.
5525 (_initialize_core_rs6000): Install to_create_inferior target method.
5526
037a727e
UW
55272007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5528
5529 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5530 (aix_thread_xfer_partial): ... this.
5531 (init_aix_thread_ops): Install to_xfer_partial instead
5532 of deprecated_xfer_memory target method.
5533
5534 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5535 and inftarg.o, add inf-ptrace.o.
5536 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5537 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5538 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5539 (fetch_inferior_registers): Rename to ...
5540 (rs6000_fetch_inferior_registers): ... this. Make static.
5541 (store_inferior_registers): Rename to ...
5542 (rs6000_store_inferior_registers): ... this. Make static.
5543 (read_word, child_xfer_memory): Remove.
5544 (rs6000_xfer_partial): New function.
5545 (kernel_u_size): Remove.
5546 (_initialize_core_rs6000): Add inf_ptrace-based target.
5547 * Makefile.in (rs6000-nat.o): Update dependencies.
5548
f7dd0ed7
UW
55492007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5550
5551 * inf-ptrace.c: Include "gdb_stdint.h".
5552 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5553 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5554 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5555 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5556 (inf_ptrace_store_register): Likewise.
5557 * Makefile.in (inf-ptrace.o): Update dependencies.
5558
d9178763
UW
55592007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5560
5561 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5562 * configure.tgt (rs6000-*-*): Likewise.
5563 * config/rs6000/aix4.mh: Delete file.
5564 * config/rs6000/aix4.mt: Delete file.
5565 * config/rs6000/rs6000.mh: Delete file.
5566 * config/rs6000/rs6000.mt: Delete file.
5567
5568 * config/powerpc/nm-aix.h: Delete file.
5569 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5570
0d16ee5d
UW
55712007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5572
5573 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5574 Remove obsolete part of comment.
5575 (store_regs_user_thread): Use uint32_t temporaries when calling
5576 fill_sprs32.
5577 (store_regs_kernel_thread): Likewise. Add assertion to verify
5578 correct size of struct ptsprs members.
5579 (aix_thread_xfer_memory): Fix type of myaddr.
5580 (aix_thread_extra_thread_info): Fix compiler warning.
5581 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5582 (fetch_register, store_register): Adapt callers.
5583
1e8877aa
UW
55842007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5585
5586 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5587
b02f9d57
UW
55882007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5589
5590 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5591 and "regcache.h".
5592 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5593 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5594 (alpha_linux_regset_from_core_section): New function.
5595 (alpha_linux_init_abi): Install it.
5596 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5597 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5598 <sys/procfs.h>, and "gregset.h".
5599 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5600 Move from config/alpha/nm-linux.h.
5601 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5602 from alpha-nat.c.
5603 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5604 * alpha-nat.c: Remove #ifdef __linux__ section.
5605 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5606 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5607 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5608 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5609 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5610 (NATDEPFILES): Remove alpha-nat.o.
5611 * config/alpha/nm-linux.h: Delete file.
5612 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5613 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5614 (alpha-linux-tdep.o): Likewise.
5615
dda0c97e
UW
56162007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5617
5618 * mips-linux-nat.c: No longer include "gdbcore.h".
5619 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5620 (mips64_linux_register_addr): Likewise.
5621 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5622 mips64_linux_register_addr instead of register_addr.
5623 * mips-linux-tdep.c (mips_linux_register_addr,
5624 mips64_linux_register_addr): Move to mips-linux-nat.c.
5625 (register_addr): Remove.
5626 (register_addr_data, init_register_addr_data): Remove.
5627 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5628 (set_mips_linux_register_addr): Remove.
5629 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5630 * Makefile.in (mips-linux-nat.o): Update dependencies.
5631
910122bf
UW
56322007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5633
5634 * linux-nat.c (linux_register_u_offset): Remove.
5635 (linux_target_install_ops): New function.
5636 (linux_target): Use it.
5637 (linux_trad_target): New function.
5638 * linux-nat.h (linux_trad_target): Declare.
5639
5640 * alpha-linux-nat.c: Include "gdbcore.h".
5641 (alpha_linux_register_u_offset): New function.
5642 (_initialize_alpha_linux_nat): Use linux_trad_target.
5643
5644 * mips-linux-nat.c: Include "gdbcore.h".
5645 (mips_linux_register_u_offset): New function.
5646 (_initialize_mips_linux_nat): Use linux_trad_target.
5647
5648 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5649 * config/arm/nm-linux.h: Delete file.
5650
5651 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5652 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5653
5654 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5655 * config/ia64/nm-linux.h: Delete file.
5656
5657 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5658 * config/m32r/nm-linux.h: Delete file.
5659
5660 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5661 * config/m68k/nm-linux.h: Delete file.
5662
5663 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5664 * config/pa/nm-linux.h: Delete file.
5665
5666 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5667 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5668 * config/powerpc/nm-linux.h: Delete file.
5669
5670 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5671 * config/s390/nm-linux.h: Delete file.
5672
5673 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5674 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5675 * config/sparc/nm-linux.h: Delete file.
5676
5677 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5678 (mips-linux-nat.o): Likewise.
5679
de732108
UW
56802007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5681
5682 * core-aout.c: Delete file.
5683 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5684 (core-aout.o): Delete rule.
5685 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5686
5687 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5688
5689 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5690 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5691 KERNEL_U_ADDR): Remove.
5692
5693 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5694 (cannot_fetch_register, cannot_store_register): Remove.
5695 (fetch_register): Inline cannot_fetch_register and register_addr.
5696 (store_register): Inline cannot_store_register and register_addr.
5697 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5698 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5699 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5700 Remove.
5701
5702 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5703 (fetch_register): Inline register_addr.
5704 (store_register): Inline register_addr.
5705 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5706 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5707 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5708
5709 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5710 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5711 REGISTER_U_ADDR): Remove.
5712
5713 * hppa-linux-nat.c (register_addr): Rename to ...
5714 (hppa_linux_register_addr): ... this. Make static.
5715 (fetch_register, store_register): Adapt callers.
5716 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5717
5718 * ppc-linux-nat.c (kernel_u_size): Remove.
5719 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5720
5721 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5722 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5723 (NAT_FILE): Remove.
5724 * config/vax/nm-vax.h: Delete file.
5725
1f90c757
MS
57262007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5727
5728 * MAINTAINERS (Write After Approval): Add myself.
5729
bf1242a5
MS
57302007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5731
5732 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5733 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5734 (m68k_linux_sigcontext_reg_offset): Fix typo.
5735 (target_is_uclinux): New.
5736 (m68k_linux_inferior_created): New.
5737 (m68k_linux_get_sigtramp_info): Check for uClinux or
5738 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5739 uClinux.
5740 (_initialize_m68k_linux_tdep): Register
5741 m68k_linux_inferior_created.
5742
96998ce7
PA
57432007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5744
5745 * win32-nat.c (win32_detach): Remove delete_command call.
5746 Resume inferior with win32_resume instead of win32_continue.
5747
7e71daaa
JG
57482007-04-19 Jerome Guitton <guitton@adacore.com>
5749
5750 * ser-mingw.c (fd_is_file): New function.
5751 (file_select_thread): New function.
5752 (ser_console_wait_handle): Add special handling for files.
5753
3d1f72c2
DP
57542007-04-18 Denis Pilat <denis.pilat@st.com>
5755
5756 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5757 when missing from DW_TAG_subrange_type. Remove the handling of null
5758 return from die_type.
5759
9ecf7166
MR
57602007-04-18 Maciej W. Rozycki <macro@mips.com>
5761
5762 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5763 change to rearrange some brackets.
5764 (mips_n32n64_push_dummy_call): Likewise.
5765 (mips_o32_push_dummy_call): Likewise.
5766 (mips_o64_push_dummy_call): Likewise.
5767
b79599ff
DP
57682007-04-18 Denis Pilat <denis.pilat@st.com>
5769
5770 * infcmd.c (post_create_inferior): Start with a call to
3d1f72c2 5771 target_terminal_ours.
b79599ff 5772
06f9a1af
MR
57732007-04-17 Maciej W. Rozycki <macro@mips.com>
5774
5775 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5776 brackets.
5777 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5778 expressions.
5779 (mips_o32_push_dummy_call): Likewise.
5780 (mips_o64_push_dummy_call): Likewise.
5781
ad018eee
MR
57822007-04-17 Maciej W. Rozycki <macro@mips.com>
5783
5784 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5785 comment.
5786
e914cb17
MR
57872007-04-17 Maciej W. Rozycki <macro@mips.com>
5788
5789 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5790 comment.
5791 (mips_o32_push_dummy_call): Likewise.
5792
91934273
AS
57932007-04-17 Andreas Schwab <schwab@suse.de>
5794
5795 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5796 sal to be bigger than the end of the function.
5797
968b5391
MR
57982007-04-17 Maciej W. Rozycki <macro@mips.com>
5799 Nigel Stephens <nigel@mips.com>
5800
5801 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5802 argument alignment requirements when calculating stack space
5803 required. When aligning an arg register to eight bytes
5804 boundary, align stack_offset too. Write floating-point
5805 arguments to the appropriate integer register if need go there.
5806 (mips_o64_push_dummy_call): Likewise.
5807
e0cd558a
UW
58082007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5809
5810 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5811 "sig" arguments, add "regcache" argument.
5812 * gdbarch.c, gdbarch.h: Regenerate.
5813
5814 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5815 (handle_inferior_event): Call remove_single_step_breakpoints directly
5816 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5817
5818 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5819 Remove handling of !insert_breakpoints_p case.
5820 * arm-tdep.c (arm_software_single_step): Likewise.
5821 * cris-tdep.c (cris_software_single_step): Likewise.
5822 * mips-tdep.c (mips_software_single_step): Likewise.
5823 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5824 * sparc-tdep.c (sparc_software_single_step): Likewise.
5825 * spu-tdep.c (spu_software_single_step): Likewise.
5826
5827 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5828 * mips-tdep.h (mips_software_single_step): Likewise.
5829 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5830 * sparc-tdep.h (sparc_software_single_step): Likewise.
5831
06a86285
UW
58322007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5833
5834 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5835 when removing single-step breakpoints.
5836
25d5ea92
VP
58372007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5838
5839 * varobj.h (varobj_set_frozen): New
5840 (varobj_get_frozen): New.
5841 (varobj_update): New parameter explicit.
5842 * varobj.c (struct varobj): New fields frozen
5843 and not_fetched.
5844 (varobj_set_frozen, varobj_get_frozen): New.
5845 (install_new_value): Don't fetch values for
5846 frozen variable object, or children thereof. Allow
5847 a frozen variable object to have non-fetched value.
5848 (varobj_update): Allow updating child variables.
5849 Don't traverse frozen children.
5850 (new_variable): Initialize the frozen field.
5851 (c_value_of_variable): Return NULL for frozen
5852 variable without any value yet.
5853 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5854 'explicit'.
5855 (mi_cmd_var_create): Output the 'frozen' field,
5856 as soon as testsuite is adjusted to expect that field.
5857 (mi_cmd_var_set_frozen): New.
5858 (mi_cmd_var_update): Pass the 'explicit' parameter to
5859 varobj_update_one.
5860 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5861 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5862
6e3bbd1a
PB
58632007-04-13 Paul Brook <paul@codesourcery.com>
5864
5865 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5866 ieee_double.
5867 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5868
ea35711c
DJ
58692007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5870
5871 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5872 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5873 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5874 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5875 * Makefile.in: Remove references to deleted files.
5876 * README: Do not mention deleted ROM monitor interfaces.
5877 * defs.h (enum language): Delete language_scm.
5878 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5879 (dump_subexp_body_standard): Likewise.
5880 * parse.c (operator_length_standard): Likewise.
5881 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5882 * remote-mips.c: Do not include remote-utils.h.
5883 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5884 throughout.
5885 * value.c: Do not include scm-lang.h.
5886 (unpack_long): Delete scm_unpack call.
5887 * config/h8300/h8300.mt, config/mips/embed.mt,
5888 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5889 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5890 deleted files.
5891 * NEWS: Mention removed files.
5892
058b9c07
DJ
58932007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5894
5895 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5896 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5897
54d61198
DJ
58982007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5899
5900 * NEWS: Mention removal of HP aCC support.
5901
e499d0f1
DJ
59022007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5903
5904 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5905 first entry for static executables.
5906 (breakpoint_addr): Delete unused variable.
5907 (elf_locate_base): Search for _r_debug in static executables.
5908 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5909 also.
5910
4d5b2cd7
DJ
59112007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5912
5913 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5914 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5915 (mention): Remove bp_through_sigtramp support.
5916 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5917
46d57086
DJ
59182007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5919
5920 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5921 shlib events.
5922
d3169d93
DJ
59232007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5924
5925 * infrun.c: Doc fixes.
5926 (handle_inferior_event): Clarify debug message.
5927 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5928
8c9e4384
UW
59292007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5930
5931 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5932
9418f048
UW
59332007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5934
5935 * config/m68k/tm-monitor.h: Delete file.
5936 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5937 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5938 call moved to ...
5939 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5940 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5941
e6590a1b
UW
59422007-04-12 Luis Machado <luisgpm@br.ibm.com>
5943
5944 * gdbarch.sh (software_single_step): Change the return type
5945 from void to int and reformatted some comments to <= 80
5946 columns.
5947 * gdbarch.c, gdbarch.h: Regenerated.
5948 * alpha-tdep.c (alpha_software_single_step): Likewise.
5949 * alpha-tdep.h (alpha_software_single_step): Likewise.
5950 * arm-tdep.c (arm_software_single_step): Likewise.
5951 * cris-tdep.c (cris_software_single_step): Likewise.
5952 * mips-tdep.c (mips_software_single_step): Likewise.
5953 * mips-tdep.h (mips_software_single_step): Likewise.
5954 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5955 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5956 * sparc-tdep.c (sparc_software_single_step): Likewise.
5957 * sparc-tdep.h (sparc_software_single_step): Likewise.
5958 * spu-tdep.c (spu_software_single_step): Likewise.
5959 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5960 and act accordingly.
5961
58b38ee2
SE
59622007-04-11 Steve Ellcey <sje@cup.hp.com>
5963
5964 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5965 * configure: Regenerate.
5966 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5967
70f575cc
JK
59682007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5969
5970 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5971
d77b6808
JK
59722007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5973
5974 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5975 macros.
5976 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5977 distinct on the TYPE_STUB_SUPPORTED debug targets.
5978 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5979
b0b92586
JB
59802007-04-11 Joel Brobecker <brobecker@adacore.com>
5981
5982 * sparc-tdep.c (X_RS2): New macro.
5983 (sparc_skip_stack_check): New function.
5984 (sparc_analyze_prologue): Adjust PC past stack probing
5985 sequence if necessary.
5986
a489f789
AS
59872007-04-10 Andreas Schwab <schwab@suse.de>
5988
5989 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5990 register.
5991
b0b13bb4
DJ
59922007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5993
5994 * breakpoint.c (gdb_breakpoint_query): Really return an
5995 enum gdb_rc.
5996 (gdb_breakpoint): Likewise.
3f11755e
DJ
5997 * thread.c (gdb_list_thread_ids): Likewise.
5998 (gdb_thread_select): Likewise.
b0b13bb4
DJ
5999 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6000 (mi_cmd_thread_list_ids): Remove bogus initialization.
6001
1a92f856
DJ
60022007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6003
6004 * Makefile.in (SFILES): Remove hpacc-abi.c.
6005 (COMMON_OBS): Remove hpacc-abi.o.
6006 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6007 (hpacc-abi.o, hpread.o): Delete rules.
6008 * somread.c: Delete extern declarations from hpread.c.
6009 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6010 (som_symfile_finish): Do not call hpread_symfile_finish.
6011 (som_symfile_init): Do not call hpread_symfile_init.
6012 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6013 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6014 * hpacc-abi.c, hpread.c: Deleted.
6015
542c95c2
DJ
60162007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6017
6018 * solib-svr4.c (enable_break): Simplify return value.
6019 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6020
cfaefc65
AS
60212007-04-10 Andreas Schwab <schwab@suse.de>
6022
6023 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6024 l_ld_size, l_next_size, l_prev_size, l_name_size.
6025
6026 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6027 to extract addresses from link map.
6028 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6029 (LM_NEXT): Likewise.
6030 (LM_NAME): Likewise.
6031 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6032 (elf_locate_base): Likewise.
6033 (open_symbol_file_object): Likewise.
6034 (svr4_fetch_objfile_link_map): Likewise.
6035 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6036 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6037 l_ld_size.
6038 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6039 (svr4_lp64_fetch_link_map_offsets): Likewise.
6040
6041 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6042 removed members. Set l_ld_offset to -1 if not present.
6043
65cc4390
VP
60442007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6045
6046 Pass stderr of program run with "target remote |"
6047 via gdb_stderr.
6048 * serial.c (serial_open): Set error_fd to -1.
6049 * serial.h (struct serial): New field error_fd.
6050 (struct serial_opts): New field avail.
6051 * ser-pipe.c (pipe_open): Create another pair
6052 of sockets. Pass stderr to gdb.
6053 * ser-mingw.c (pipe_windows_open): Pass
6054 PEX_STDERR_TO_PIPE to pex_run. Initialize
6055 sd->error_fd.
6056 (pipe_avail): New.
6057 (_initialize_ser_windows): Hook pipe_avail.
6058 * ser-base.c (generic_readchar): Check if there's
6059 anything in stderr channel and route that to gdb_stderr.
6060
e9112110
PA
60612007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6062
6063 * dbxread.c (read_ofile_symtab): Move current_objfile
6064 clearing to after end_stabs.
6065
7f68ac27
AS
60662007-04-01 Andreas Schwab <schwab@suse.de>
6067
6068 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6069 gdbarch instead of current_gdbarch.
6070
e55dccf0
VP
60712007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6072
6073 * varobj.c (varobj_create): Keep varobj value
6074 NULL when evaluating the type.
6075
7c963485
PA
60762007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6077
6078 * NEWS: Mention new Windows CE support.
6079
ad527d2e
PA
60802007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6081
6082 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6083 the obsoletion stanza.
6084 * NEWS: Mention deleted targets.
6085
6086 * config/sh/tm-wince.h: Remove.
6087 * config/sh/wince.mt: Remove.
6088 * config/mips/tm-wince.h: Remove.
6089 * config/mips/wince.mt: Remove.
6090
6091 * wince.c: Remove.
6092 * wince-stub.c: Remove.
6093 * wince-stub.h: Remove.
6094 * Makefile.in (wince.o): Remove rule.
6095 (wince-stub.o): Likewise.
6096
6097 * mips-tdep.c (mips_next_pc): Make static.
6098 * mips-tdep.h (mips_next_pc): Remove declaration.
6099 * arm-tdep.c (arm_pc_is_thumb): Make static.
6100 (thumb_get_next_pc): Likewise.
6101 (arm_get_next_pc): Likewise.
6102 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6103 (arm_pc_is_thumb): Likewise.
6104 (thumb_get_next_pc): Likewise.
6105 (arm_get_next_pc): Likewise.
6106
7ce59000
DJ
61072007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6108
6109 * MAINTAINERS: Remove d10v entry.
6110 * Makefile.in (SFILES): Remove dwarfread.c.
6111 (COMMON_OBS): Remove dwarfread.o.
6112 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6113 (remote-est.o, rom68k-rom.o): Delete.
6114 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6115 target est, target rom68k, and DWARF 1.
6116 * configure.tgt: Mark d10v as removed.
6117 * dwarf2read.c: Doc update.
6118 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6119 and lnsize.
6120 (elf_locate_sections): Do not set them.
6121 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6122 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6123 * config/m68k/monitor.mt (TDEPFILES): Prune.
6124 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6125 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6126
20389057
DJ
61272007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6128
6129 * doublest.c (convert_floatformat_to_doublest): Use
6130 floatformat_classify.
6131 (floatformat_is_nan): Rename to...
6132 (floatformat_classify): ...this. Return more information.
6133 * doublest.h (enum float_kind): New.
6134 (floatformat_is_nan): Replace prototype...
6135 (floatformat_classify): ...with this one.
6136 * valprint.c (print_floating): Use floatformat_classify. Handle
6137 infinity.
6138
30b50213
DJ
61392007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6140
6141 * README: Mention ISO C library requirement.
6142
8807d78b
DJ
61432007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6144
6145 * Makefile.in (SFILES): Remove nlmread.c.
6146 (COMMON_OBS): Remove nlmread.o.
6147 (nlmread.o): Delete rule.
6148 * README: Delete reference to remote-st.c.
6149 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6150 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6151 GDB_OSABI_LYNXOS.
6152 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6153 (_initialize_i386_tdep): Do not reference them.
6154 * nlmread.c: Delete file.
6155 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6156 * target.c: Doc update.
6157 * thread.c: Delete commented include.
6158 * config/alpha/tm-alpha.h: Doc update.
6159
ced572fe
MR
61602007-03-30 Chris Dearman <chris@mips.com>
6161
6162 * utils.c (string_to_core_addr): Comment typo.
6163
8a9fc081
MR
61642007-03-30 Chris Dearman <chris@mips.com>
6165
6166 * mips-tdep.c: Comment typo.
6167
5f402660
UW
61682007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6169
6170 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6171 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6172 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6173 * config/powerpc/nm-ppc64-linux.h: Remove file.
6174 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6175 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6176 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6177 * infptrace.c (call_ptrace): Likewise.
6178 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6179 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6180 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6181 (store_register): Likewise.
6182
bbf90c81
JB
61832007-03-29 Joel Brobecker <brobecker@adacore.com>
6184
6185 * Makefile.in (varobj.o): Add missing dependency.
6186
243c053b
MS
61872007-03-29 Michael Snyder <msnyder@access-company.com>
6188
6189 * MAINTAINERS: Update my email address.
6190
0259addd
JB
61912007-03-29 Joel Brobecker <brobecker@adacore.com>
6192
6193 Add support for exception handling with multiple versions of
6194 the Ada runtime:
6195 * ada-lang.c: Update general comments on how Ada exception catchpoints
6196 are implemented.
6197 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6198 (__gnat_raise_nodefer_with_msg): Delete.
6199 (ada_unhandled_exception_name_addr_ftype): New type.
6200 (exception_support_info): New type.
6201 (ada_unhandled_exception_name_addr): Add forward declaration.
6202 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6203 (default_exception_support_info): New constant.
6204 (exception_support_info_fallback): Likewise.
6205 (exception_info): New global variable.
6206 (ada_exception_support_info_sniffer): New function.
6207 (ada_executable_changed_observer): Likewise.
6208 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6209 ada_unhandled_exception_name_addr.
6210 (ada_unhandled_exception_name_addr): Reimplement to match the
6211 latest Ada runtime implementation.
6212 (error_breakpoint_runtime_sym_not_found): Delete.
6213 (ada_exception_sym_name): Get the exception sym name from
6214 exception_info rather than hardcoding it.
6215 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6216 Update error handling.
6217 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6218
483367ee
DJ
62192007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6220
6221 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6222 (remote-st.o, uw-thread.o): Delete.
6223 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6224 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6225 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6226 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6227 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6228 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6229 rs6000-*-lynxos* to an obsoletion stanza.
6230 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6231 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6232 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6233 i[34567]86-*-netware*.
6234 * NEWS: Mention deleted targets.
6235
6236 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6237 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6238 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6239 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6240 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6241 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6242 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6243 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6244 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6245 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6246 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6247 config/rs6000/tm-rs6000ly.h: Delete files.
6248
3adda9d8
DJ
62492007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6250
6251 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6252 * interps.c (clear_interpreter_hooks): Do not clear
6253 deprecated_registers_changed_hook.
6254 * regcache.c (registers_changed): Do not call it.
6255 * top.c (deprecated_registers_changed_hook): Do not define it.
6256 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6257 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6258 (tui_remove_hooks): Do not remove it.
6259 (tui_selected_frame_level_changed_hook): Check for negative level.
6260 Use get_selected_frame.
6261 (tui_registers_changed_hook): Deleted.
6262
bf362611
JB
62632007-03-29 Joel Brobecker <brobecker@adacore.com>
6264
6265 * stabsread.c (add_undefined_type): Add extra parameter.
6266 Now handles nameless types separately.
6267 (struct nat): New type.
6268 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6269 New static variables.
6270 (read_type): Update calls to add_undefined_type.
6271 (add_undefined_type_noname): New function.
6272 (add_undefined_type_1): Renames from add_undefined_type.
6273 (cleanup_undefined_types_noname): New function.
6274 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6275 (cleanup_undefined_types): New handles nameless types separately.
6276 (_initialize_stabsread): Initialize our new static constants.
6277
436868fb
DP
62782007-03-29 Denis Pilat <denis.pilat@st.com>
6279
6280 * configure.ac: Test for signal.h.
6281 * configure, config.in: Regenerate.
6282
aaf9e9fd
DP
62832007-03-29 Denis Pilat <denis.pilat@st.com>
6284
6285 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6286 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6287
68070c10
PA
62882007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6289
6290 * arm-wince-tdep.c: New.
6291 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6292 (MT_CFLAGS): Delete.
6293 (TM_CLIBS): Delete.
6294 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6295 solib-legacy.o, solib-svr4.o, and remove wince.o.
6296 * configure.tgt (arm*-*-mingw32ce*): Add.
6297 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6298 (do_target_signal_to_host): Silence 'not used' warning.
6299 * config/arm/tm-wince.h: Remove.
6300
74174d2e
UW
63012007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6302
6303 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6304 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6305
6306 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6307 * config/ia64/tm-linux.h: Remove file.
6308 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6309 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6310 legacy_pc_in_sigtramp.
6311 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6312 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6313 Remove func_name argument.
6314 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6315
6316 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6317 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6318 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6319 (HAVE_STEPPABLE_WATCHPOINT): Define.
6320
6321 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6322 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6323 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6324 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6325 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6326 target_insert_watchpoint, target_remove_watchpoint): Remove.
6327 (FETCH_INFERIOR_REGISTERS): Define.
6328 * ia64-linux-nat.c (ia64_register_addr): Make static.
6329 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6330 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6331 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6332 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6333 (ia64_linux_stopped_by_watchpoint): Make static.
6334 (ia64_linux_can_use_hw_breakpoint): New function.
6335 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6336 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6337 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6338
53c5240f
PA
63392007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6340
6341 * linespec.c: Include language.h.
6342 (find_methods): Add language parameter. Call
6343 lookup_symbol_in_language. Pass language down.
6344 (add_matching_methods): Likewise. Call
6345 lookup_symbol_in_language.
6346 (add_constructors): Likewise.
6347 (find_method): Pass sym_class to collect_methods.
6348 (collect_methods): Add sym_class parameter. Pass language
6349 down.
6350 * symtab.c (lookup_symbol): Rename to ...
6351 (lookup_symbol_in_language): ... this. Add language
6352 parameter. Use passed language instead of current_language.
6353 (lookup_symbol): New as wrapper around
6354 lookup_symbol_in_language.
6355 (lookup_symbol_aux): Add language parameter. Use passed
6356 language instead of current_language.
6357 (search_symbols): Indent.
6358 * symtab.h (enum language): Forward declare.
6359 (lookup_symbol_in_language): Declare.
6360 (lookup_symbol): Update description.
6361 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6362 * ada-lang.c (restore_language): Remove.
6363 (lookup_symbol_in_language): Remove.
6364
8671a17b
PA
63652007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6366
6367 * breakpoint.c (bpstat_num): Add int *num parameter.
6368 * breakpoint.h (bpstat_num): Likewise.
6369 * infcmd.c (continue_command): Adjust to new bpstat_num
6370 interface.
6371 (program_info): Likewise.
6372
214197f9
UW
63732007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6374
6375 * config/sh/tm-sh.h: Remove file.
6376 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6377 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6378 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6379 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6380
bac718a6
UW
63812007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6382
6383 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6384 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6385 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6386 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6387 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6388 sequence if target_shortname is "remote".
6389
de6a76fd
DJ
63902007-03-27 Anton Blanchard <anton@samba.org>
6391
6392 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6393 instead of wordsize when looking for the LR in a stack frame.
6394
4fc771b8
DJ
63952007-03-27 Andreas Schwab <schwab@suse.de>
6396 Daniel Jacobowitz <dan@codesourcery.com>
6397
6398 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6399 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6400 argument. Update all callers.
6401 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6402 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6403 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6404 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6405 (dwarf2_frame_set_adjust_regnum): ...this.
6406 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6407 * rs6000-tdep.c: Include "dwarf2-frame.h".
6408 (rs6000_adjust_frame_regnum): Define.
6409 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6410 Register rs6000_adjust_frame_regnum.
6411
6412 * Makefile.in (rs6000-tdep.o): Update dependencies.
6413
9453113a
DJ
64142007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6415
6416 * Makefile.in: Add support for a "pdf" target.
6417
d2449ee8
DJ
64182007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6419
6420 * amd64-tdep.c (amd64_init_frame_cache): New function.
6421 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6422
a72d8a8e
MR
64232007-03-26 Nigel Stephens <nigel@mips.com>
6424 Maciej W. Rozycki <macro@mips.com>
6425
6426 * ui-out.c (ui_out_field_core_addr): Truncate address to
6427 TARGET_ADDR_BIT size before printing.
6428
5200c3f3 64292007-03-22 Nigel Stephens <nigel@mips.com>
a72d8a8e 6430 Maciej W. Rozycki <macro@mips.com>
5200c3f3
L
6431
6432 * remote-mips.c (mips_xfer_memory): Update prototype.
6433
16708cba
JB
64342007-03-22 Joel Brobecker <brobecker@adacore.com>
6435
6436 * symfile.h: #include "symtab.h"
6437
0fe514e3
DP
64382007-03-22 Denis Pilat <denis.pilat@st.com>
6439
6440 * utils.c (pagination_on_command, pagination_off_command):
6441 Remove useless prototypes.
6442
4a52dc15
PM
64432007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6444
6445 Fix PR pascal/2232.
6446 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6447 instead of TYPE_NAME for object base class name.
6448
6449
1c86fa97
KB
64502007-03-19 Kevin Buettner <kevinb@redhat.com>
6451
6452 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6453 Specify frame type in calls to frame_func_unwind().
6454
4e463ff5
DJ
64552007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6456
6457 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6458 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6459 (refine_prologue_limit): Delete.
6460 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6461 Assume lim_pc is set. Correct check for incomplete prologues.
6462 Do not skip clobbers of the frame pointer.
6463 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6464 sal.
6465
348473d5
NF
64662007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6467
6468 * frame.c (frame_pop): Check to see whether there's a frame to
6469 which we can pop first.
6470
a2f9cf0d
NF
64712007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6472
6473 * MAINTAINERS (Write After Approval): Add myself.
6474
569631c6
UW
64752007-03-09 Markus Deuling <deuling@de.ibm.com>
6476
6477 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6478 (handle_inferior_event): Remove unnecessary braces.
6479 * breakpoint.c (bpstat_what): Remove wrong comment.
6480
fe5febed
UW
64812007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6482
6483 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6484 (spu_gdbarch_init): Install it.
6485
9dea8ca2
UW
64862007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6487
6488 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6489 object types, not 0.
6490
7b3dc0b7
UW
64912007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6492
6493 * spu-tdep.c (spu_frame_align): New function.
6494 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6495
118dfbaf
UW
64962007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6497
6498 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6499 (spu_software_single_step): Likewise.
6500 (spu_read_pc, spu_write_pc): New functions.
6501 (spu_gdbarch_init): Install them.
6502
29e4017d
UW
65032007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6504
6505 * cli/cli-dump.c (struct callback_data): load_offset needs to
6506 have signed long type.
6507
6de5b849
JB
65082007-03-07 Joel Brobecker <brobecker@adacore.com>
6509
6510 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6511 Revert the previous change that had some unexpected side-effects
6512 on mips32.
6513 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6514 function to get the address of the calling instruction.
6515
7490ba4f
DP
65162007-03-07 Denis Pilat <denis.pilat@st.com>
6517
6518 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6519 get_selected_frame by deprecated_safe_get_selected_frame.
6520
861fb77c
MK
65212007-03-02 Mark Kettenis <kettenis@gnu.org>
6522
6523 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6524 "gdb_string.h". Don't include "nbsd-tdep.h".
6525 (SIZEOF_STRUCT_REG): Remove.
6526 (SHNBSD_SIZEOF_GREGS): New.
6527 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6528 (shnbsd_regset_from_core_section): New functions.
6529 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6530 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6531 shnbsd_supply_gregset, shnbsd_collect_gregset.
6532 (shnbsd_gregset): New variable.
6533 (shnbsd_init_abi): Set regset_from_core_section.
6534 (GDB_OSABI_NETBSD_CORE): New define.
6535 (shnbsd_core_osabi_sniffer): New function.
6536 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6537 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6538 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6539 nbsd-tdep.o.
6540 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6541
787cbe14
JB
65422007-02-28 Joel Brobecker <brobecker@adacore.com>
6543
6544 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6545 length of the types referenced by the new type CV ring.
6546
35f196d9
DJ
65472007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6548
6549 * frame.c (frame_pop, frame_observer_target_changed): Call
6550 reinit_frame_cache.
6551 (flush_cached_frames): Rename to reinit_frame_cache and delete
6552 old implementation.
6553 * frame.h (flush_cached_frames): Delete prototype and update comment.
6554
6555 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6556 reinit_frame_cache instead of flush_cached_frames. Do not call
6557 select_frame after reinit_frame_cache.
6558 * corelow.c (core_open): Likewise.
6559 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6560 * infrun.c (prepare_to_proceed, context_switch)
6561 (handle_inferior_event): Likewise.
6562 * linux-fork.c (fork_load_infrun_state): Likewise.
6563 * ocd.c (ocd_start_remote): Likewise.
6564 * remote-e7000.c (e7000_start_remote): Likewise.
6565 * remote-mips.c (device): Likewise.
6566 * thread.c (switch_to_thread): Likewise.
6567 * tracepoint.c (finish_tfind_command): Likewise.
6568 * gdbarch.c: Regenerated.
6569
c26f2453
JB
65702007-02-28 Jerome Guitton <guitton@adacore.com>
6571 Joel Brobecker <brobecker@adacore.com>
6572
6573 * gdbtypes.c (check_typedef): Do not replace stub type if
6574 the resolved type is not defined in the same objfile.
6575
7d900f1a
DJ
65762007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6577
6578 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6579
76038652 65802007-02-28 Joel Brobecker <brobecker@adacore.com>
52eea4ce
JB
6581
6582 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6583 symbol for Ada units when the symbol is defined using 't' rather
6584 than 'Tt' as symbol descriptor.
6585
d74fb156 65862007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1344afe0
UW
6587
6588 * config/mips/tm-nbsd.h: Delete file.
6589 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6590 * config/sh/tm-nbsd.h: Delete file.
6591 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6592
f8d225db
JB
65932007-02-28 Joel Brobecker <brobecker@adacore.com>
6594
6595 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6596 unused WRONG_PARAM value since it was recently deleted.
6597
1bbfb19a
NR
65982007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6599
6600 * varobj.c (varobj_update): Free temporary vectors.
6601
6f7f3f0d
UW
66022007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6603
6604 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6605 * config/powerpc/tm-linux.h: Delete file.
6606 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6607 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6608 (TEXT_SEGMENT_BASE): Do not redefine.
6609 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6610 from config/rs6000/tm-rs6000.h.
6611 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6612 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6613 (TEXT_SEGMENT_BASE): Remove.
6614 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6615 (rs6000_in_solib_return_trampoline): Remove.
6616 (SKIP_TRAMPOLINE_CODE): Remove.
6617 (rs6000_skip_trampoline_code): Remove.
6618 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6619 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6620 (FP0_REGNUM): Remove.
6621 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6622 (rs6000_set_host_arch_hook): Remove.
6623 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6624 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6625 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6626 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6627 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6628 * rs6000-nat.c: Include "rs6000-tdep.h".
6629 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6630 (set_host_arch): Rename to ...
6631 (rs6000_create_inferior): ... this. Make public.
6632 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6633 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6634 (rs6000_create_inferior): Remove.
6635 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6636 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6637 set_gdbarch_in_solib_return_trampoline, and
6638 set_gdbarch_skip_trampoline_code.
6639 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6640 from config/rs6000/tm-rs6000.h.
6641
63050a44 66422007-02-27 Joel Brobecker <brobecker@adacore.com>
05279ca0
JB
6643
6644 * buildsym.c (record_producer): Do nothing if no producer is provided.
6645
63050a44 66462007-02-27 Nick Roberts <nickrob@snap.net.nz>
e0b75a46
NR
6647
6648 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6649 to check changelist is non-NULL. Call error if the frontend tries
6650 to update a non-root variable.
6651
6652 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6653
93d42b30
DJ
66542007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6655
6656 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6657 (dwarf2_frame_sniffer): Update.
6658 (dwarf2_signal_frame_this_id): New function.
6659 (dwarf2_signal_frame_unwind): Use it.
6660 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6661 * frame.c (frame_func_unwind): Add this_type argument.
6662 (get_frame_func): Update.
6663 (frame_unwind_address_in_block): Add this_type argument and check it.
6664 Fix a typo.
6665 (get_frame_address_in_block): Update.
6666 * frame.h (enum frame_type): Move higher in the file.
6667 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6668 argument.
6669
6670 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6671 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6672 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6673 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6674 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6675 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6676 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6677 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6678 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6679 frame_func_unwind and frame_unwind_address_in_block to specify
6680 the frame type. Use frame_unwind_address_in_block instead of
6681 frame_pc_unwind in sniffers.
6682
206415a3
DJ
66832007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6684
6685 * frame.c (deprecated_selected_frame): Rename to...
6686 (selected_frame): ...this. Make static.
6687 (get_selected_frame, select_frame): Update.
6688 * frame.h (deprected_select_frame): Delete.
6689 (deprecated_safe_get_selected_frame): Update comments.
6690
6691 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6692 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6693 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6694 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6695 tui/tui.c: Replace references to deprecated_selected_frame.
6696
7313566f
FF
66972007-02-27 Fred Fish <fnf@specifix.com>
6698
6699 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6700 directly decrement the stack pointer, accumulate their operand into
6701 the stack offset, and mark the function as not being frameless.
6702
b6d373df
DJ
67032007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6704
6705 * arch-utils.c (selected_byte_order): New.
6706 * arch-utils.h (selected_byte_order): New prototype.
6707 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6708
2711e456
DJ
67092007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6710
6711 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6712 (default_symfile_offsets): Check VMA here. Update section VMAs.
6713
baef701f
DJ
67142007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6715
6716 * remote.c (init_remote_state): Add special handling for placeholder
6717 registers.
6718
05a4558a
DJ
67192007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6720
6721 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6722 (filenames_h): New variable.
6723 (clean): Clean up xml-builtin.c and stamp-xml.
6724 (arm-linux-nat.o): Update.
6725 * config/arm/linux.mh (TDEP_XML): Define.
6726 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6727 (arm_linux_has_wmmx_registers): New.
6728 (GET_THREAD_ID): Fix typo.
6729 (IWMMXT_REGS_SIZE): Define.
6730 (fetch_wmmx_regs, store_wmmx_regs): New.
6731 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6732 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6733 (super_xfer_partial, arm_linux_xfer_partial): New.
6734 (_initialize_arm_linux_nat): Use them.
6735 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6736 (xml_builtin_xfer_partial): New function.
6737 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6738 * NEWS: Update mention of iWMMXt support.
6739
ff6f572f
DJ
67402007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6741
6742 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6743 if there are no FPA registers.
6744 (arm_dwarf_reg_to_regnum): New function.
6745 (arm_register_type, arm_register_name): Return minimal values for
6746 unsupported registers.
6747 (arm_register_sim_regno): Handle iWMMXt registers.
6748 (arm_gdbarch_init): Record missing FPA registers if indicated by
6749 a target description. Recognize iWMMXt registers. Only register
6750 "info float" for FPA. Use ARM_NUM_REGS. Register
6751 arm_dwarf_reg_to_regnum.
6752 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6753 constants.
6754 (struct gdbarch_tdep): Add have_fpa_registers.
6755 * features/xscale-iwmmxt.xml: Update capitalization.
6756 * regformats/arm-with-iwmmxt.dat: Regenerated.
6757
c077150c
KB
67582007-02-24 Kevin Buettner <kevinb@redhat.com>
6759
6760 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6761
01c996c1
KB
67622007-02-23 Kevin Buettner <kevinb@redhat.com>
6763
6764 * MAINTAINERS (mep): New target.
6765
aeb43123
KB
67662007-02-23 Kevin Buettner <kevinb@redhat.com>
6767
6768 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6769 Richard Sandiford:
6770 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6771 (mep-tdep.o): New rule.
6772 * configure.tgt (mep-*-*): New target.
6773 * mep-tdep.c: New file.
6774 * config/mep/mep.mt: New file.
6775
115d86cf
UW
67762007-02-22 Markus Deuling <deuling@de.ibm.com>
6777
6778 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6779 BREAKPOINT_HIT and STOP_UNKNOWN.
6780
fef862e5
UW
67812007-02-22 Markus Deuling <deuling@de.ibm.com>
6782
6783 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6784
9a7d5afb
JB
67852007-02-20 Joel Brobecker <brobecker@adacore.com>
6786
6787 * gdb_expat.h (XMLCALL): Define if not already defined.
6788
81de920d
AS
67892007-02-20 Andreas Schwab <schwab@suse.de>
6790
6791 * Makefile.in (symfile.o): Update dependencies.
6792
cb5c8c39
DJ
67932007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6794
6795 * MAINTAINERS: Disable -Werror for cris simulator. Build
6796 sparc64-solaris2.10 instead of the broken sparc-elf.
6797 * solib-frv.c: Include "solib.h".
6798 * Makefile.in (solib-frv.o): Update.
6799 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6800 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6801 (xtensa_frame_this_id, xtensa_frame_prev_register)
6802 (xtensa_push_dummy_call): Use %p.
6803
e6bb342a
DJ
68042007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6805
6806 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6807 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6808 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6809 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6810 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6811 (sparc-linux-tdep.o): Update.
6812
ff7a4c00
MG
68132007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6814
6815 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6816 (xtensa_mask_t): Change mask field to be a separate array.
6817 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6818 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6819 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6820 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6821 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6822 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6823 (mask14, mask15): Rename to
6824 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6825 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6826 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6827 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6828 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6829 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6830 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6831 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6832 (xtensa_submask14, xtensa_submask15): New.
6833 (rmap): Follow strict aliasing rules doing static initialization.
6834
d9cc5895
DJ
68352007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6836
6837 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6838 handling from here...
6839 (tdesc_register_type): ...to here.
6840 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6841 * features/arm-core.xml: Use code_ptr and data_ptr.
6842
8756216b
DP
68432007-02-13 Denis Pilat <denis.pilat@st.com>
6844
6845 * varobj.h (enum varobj_update_error): New enum.
6846 * varobj.c (struct varobj_root): Add is_valid member.
6847 (varobj_get_type): Check for invalid varobj.
6848 (varobj_get_attributes): Likewise.
6849 (variable_editable):Likewise.
6850 (varobj_update): Likewise. Use varobj_update_error.
6851 (new_root_variable): Set root varobj as valid by default.
6852 (varobj_invalidate): New function.
6853 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6854 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6855 Use varobj_update_error.
6856
fe8e67fd
PM
68572007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6858
6859 Fix PR pascal/2223.
6860 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6861 Pascal language marker.
6862 * dwarf2read.c (set_cu_language): Likewise.
6863
c44537cf
CV
68642007-02-12 Corinna Vinschen <vinschen@redhat.com>
6865
6866 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6867 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6868 instead of target_terminal_init since inferior_ptid isn't set yet.
6869
20dad8ea
PA
68702007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6871
6872 * MAINTAINERS (Write After Approval): Add myself.
6873
4ac94eda
FF
68742007-02-09 Fred Fish <fnf@specifix.com>
6875
6876 Based on work by Apple Computer, Inc.
6877 * event-top.c (async_request_quit): Call quit() whenever either
6878 quit_flag is set or immediate_quit is set.
6879
b260b6c1
GDR
68802007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6881
6882 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6883 type to a pointer to const struct block.
6884 (ada_lookup_symbol_list): Don't cast away constness when calling
6885 remove_out_of_scope_renamings.
6886
68872007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6888
6889 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6890 address of 'filename'; it is always non null.
6891
0f5d55d8
JB
68922007-02-09 Joel Brobecker <brobecker@adacore.com>
6893
6894 * exec.c (add_to_section_table): Do not discard empty sections.
6895
fb1e4ffc
DJ
68962007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6897
6898 * features/Makefile, features/arm-with-iwmmxt.xml,
6899 features/gdbserver-regs.xsl, features/number-regs.xsl,
6900 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6901 * regformats/arm-with-iwmmxt.dat: Generate.
6902 * NEWS: Mention iWMMXt.
6903
123dc839
DJ
69042007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6905
6906 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6907 (xml-tdesc.o): Update.
6908 * xml-support.c: Add a comment.
6909 (gdb_xml_enums_boolean): New variable.
6910 (gdb_xml_parse_attr_enum): Use strcasecmp.
6911 * xml-support.h (gdb_xml_enums_boolean): Declare.
6912 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6913 next_regnum, and current_union.
6914 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6915 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6916 (field_attributes, union_children, reg_attributes, union_attributes)
6917 (vector_attributes, feature_attributes, feature_children): New.
6918 (target_children): Make static. Add <feature>.
6919 (tdesc_elements): Make static.
6920 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6921 (struct tdesc_feature, tdesc_feature_p): New types.
6922 (struct target_desc): Add features member.
6923 (struct tdesc_arch_data, tdesc_data): New.
6924 (target_find_description): Clarify error message. Warn about
6925 ignored register descriptions.
6926 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6927 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6928 (tdesc_data_cleanup, tdesc_numbered_register)
6929 (tdesc_numbered_register_choices, tdesc_find_register)
6930 (tdesc_register_name, tdesc_register_type)
6931 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6932 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6933 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6934 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6935 (tdesc_create_feature, tdesc_record_type): New.
6936 (free_target_description): Free features.
6937 (_initialize_target_descriptions): Initialize tdesc_data.
6938 * arch-utils.c (default_remote_register_number): New.
6939 * arch-utils.h (default_remote_register_number): New prototype.
6940 * target-descriptions.h (set_tdesc_pseudo_register_name)
6941 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6942 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6943 (tdesc_numbered_register, tdesc_numbered_register_choices)
6944 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6945 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6946 (tdesc_create_reg): Declare.
6947 * gdbarch.sh (remote_register_number): New entry.
6948 * gdbarch.c, gdbarch.h: Regenerate.
6949 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6950 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6951
6952 * arm-tdep.c (arm_register_aliases): New.
6953 (arm_register_name_strings): Rename to...
6954 (arm_register_names): ...this. Make const. Delete the old version.
6955 (current_option, arm_register_byte): Delete.
6956 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6957 (value_of_arm_user_reg): New.
6958 (arm_gdbarch_init): Verify any described registers. Call
6959 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6960 for standard register names.
6961 (_initialize_arm_tdep): Do not adjust arm_register_names.
6962 * user-regs.c (struct user_reg): Add baton member.
6963 (append_user_reg, user_reg_add_builtin, user_regs_init)
6964 (user_reg_add, value_of_user_reg): Use a baton for user
6965 register functions.
6966 * std-regs.c: Update.
6967 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6968 (user_reg_add): Add baton argument.
6969 * NEWS: Mention target description register support.
6970 * features/arm-core.xml, features/arm-fpa.xml: New.
6971 * eval.c (evaluate_subexp_standard): Allow ptype $register
6972 when the program is not running.
6973
87604222
NR
69742007-02-09 Nick Roberts <nickrob@snap.net.nz>
6975
6976 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6977
ee4f0f76
DJ
69782007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6979
6980 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6981 info->disassembler_options to "any".
6982
7af9851d
DJ
69832007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6984
6985 * varobj.c (install_new_value): Only call value_get_print_value
6986 if changeable.
6987
8944021f
DJ
69882007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6989
6990 Reported by timeless@gmail.com:
6991 * gdb/target.c (target_flash_erase): Do not return void value.
6992 (target_flash_done): Likewise.
6993 * gdb/cli/cli-cmds.c (source_command): Likewise.
6994
69952007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 6996
4ac94eda 6997 Based on work by Apple Computer, Inc.
5f960e00
FF
6998 * event-top.c (handle_sigint): Set quit_flag.
6999 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7000 if quit_flag has already been reset.
7001
4998c1df
DJ
70022007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7003
7004 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7005 up.
7006
79da184e
FF
70072007-02-08 Fred Fish <fnf@specifix.com>
7008
7009 * defs.h (request_quit): Remove declaration.
7010 * utils.c (request_quit): Remove definition.
7011
3c77c82a
DJ
70122007-02-08 Joel Brobecker <brobecker@gnat.com>
7013 Jan Kratochvil <jan.kratochvil@redhat.com>
7014 Daniel Jacobowitz <dan@codesourcery.com>
7015
7016 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7017 (skip_prologue): Allow bl->blrl used by PIC code.
7018
c1b6e682
DJ
70192007-02-08 Mark Kettenis <kettenis@gnu.org>
7020 Daniel Jacobowitz <dan@codesourcery.com>
7021
7022 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7023 initialize tmp_obstack.
7024 * p-valprint.c (pascal_object_print_value_fields)
7025 (pascal_object_print_value): Likewise.
7026
fe5dedf4
DJ
70272007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7028
7029 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7030
3e461478
MK
70312007-02-08 Mark Kettenis <kettenis@gnu.org>
7032
7033 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7034 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7035
fc6e0168
DJ
70362007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7037
7038 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7039 (xml_cache): New.
7040 (tdesc_parse_xml): Cache expanded descriptions.
7041
108546a0
DJ
70422007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7043
7044 * Makefile.in (XMLFILES): New.
7045 (COMMON_OBS): Add xml-builtin.o.
7046 (xml-builtin.c, stamp-xml): New rules.
7047 (xml-tdesc.o): Update.
7048 * features/feature_to_c.sh: New file.
7049 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7050 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7051 (gdb_xml_start_element): Initialize scope after possibly reallocating
7052 scopes. Move cleanup later. Handle the XInclude description
7053 specially.
7054 (gdb_xml_end_element): Only parse the body if there is a current element.
7055 Call XML_DefaultCurrent if there is no element.
7056 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7057 (struct xinclude_parsing_data, xinclude_start_include)
7058 (xinclude_end_include, xml_xinclude_default)
7059 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7060 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7061 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7062 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7063 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7064 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7065 XInclude directives. Use the compiled in DTD.
7066 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7067 directory name. Do not warn here.
7068 (file_read_description_xml): Update call. Warn here instead. Pass
7069 a dirname as baton.
7070 (fetch_available_features_from_target): New.
7071 (target_read_description_xml): Use it.
7072 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7073 to handle XInclude.
7074 * features/xinclude.dtd: New file.
7075
b5057acd
DJ
70762007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7077
7078 * linux-thread-db.c (check_for_thread_db): Return early if we have
7079 no libthread_db support.
7080
6a089cf2
DJ
70812007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7082
7083 * mi/mi-parse.h: Include <sys/time.h>.
7084
9fbcbb40
NR
70852007-02-05 Nick Roberts <nickrob@snap.net.nz>
7086
7087 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7088 instead of print_variable_value to print values.
7089
b3d2152a
NR
70902007-02-03 Nick Roberts <nickrob@snap.net.nz>
7091
7092 * mi/mi-main.c: Numerous formatting changes.
7093 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7094 removed in my previous change.
7095
79f0a97a
NR
70962007-02-03 Eli Zaretskii <eliz@gnu.org>
7097
7098 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7099 Use 1000000L instead of 1000000.
7100
95a98c01 71012007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
7102
7103 Based on work by Apple Computer, Inc.
7104
7105 * configure.ac: Test for sys/resource.h and getrusage.
7106 * configure, config.in: Regenerate.
7107
7108 * mi/mi-main.c: Include <sys/resource.h> if present.
7109 (rusage): Declare if HAVE_GETRUSAGE.
7110 (current_command_ts, do_timings): New static variables.
7111 (timestamp, print_diff_now, print_diff, timeval_diff):
7112 New static timing functions.
7113 (mi_cmd_enable_timings): New function for new MI command.
7114 (captured_mi_execute_command, mi_execute_async_cli_command):
7115 Call timing functions.
7116
7117 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7118 -enable-timings.
7119
7120 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7121
7122 * mi/mi-parse.h: (mi_timestamp): New structure.
7123 (mi_parse): Add mi_timestamp* member.
7124
99b3d574
DP
71252007-02-02 Denis Pilat <denis.pilat@st.com>
7126
7127 * thread.c (make_cleanup_restore_current_thread): New function.
7128 (info_threads_command): Use of make_cleanup_restore_current_thread
7129 to restore the current thread and the selected frame.
7130 (restore_selected_frame): New function.
7131 (struct current_thread_cleanup): Add frame_id field.
7132 (do_restore_current_thread_cleanup): Add restoring of the selected
7133 frame.
7134 (make_cleanup_restore_current_thread): Likewise.
7135 (thread_apply_all_command): backup the selected frame while
7136 entering the function and restore it at exit.
7137 (thread_apply_command): Likewise.
7138
d3c598de
DP
71392007-02-02 Denis Pilat <denis.pilat@st.com>
7140
7141 * MAINTAINERS (Write After Approval): Add myself to the list.
7142
b69733ab 71432007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
7144
7145 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7146 (m32r_store_register): Ditto.
7147
b69733ab 71482007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
7149
7150 * ser-mingw.c (pipe_windows_open)
7151 (pipe_windows_read, pipe_windows_write): Declare
7152 variables at the top of the function.
7153
8da61cc4
DJ
71542007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7155
7156 * doublest.c (floatformat_from_length): Use the right element from
7157 gdbarch floatformats.
7158 (floatformat_from_type, extract_typed_floating)
7159 (store_typed_floating): Likewise.
7160 * doublest.h: Remove declarations for undefined floatformat arrays.
7161 * gdbarch.sh (float_format, double_format, long_double_format): Change
7162 to pairs.
7163 (pformat): Update for pairs.
7164 * gdbarch.c, gdbarch.h: Regenerated.
7165 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7166 (floatformats_ieee_double_littlebyte_bigword)
7167 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7168 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7169 (floatformats_vax_d): New variables.
7170 (builtin_type_ieee_single, builtin_type_ieee_double)
7171 (builtin_type_arm_ext, builtin_type_ia64_spill)
7172 (builtin_type_ia64_quad): Replace arrays with individual types.
7173 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7174 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7175 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7176 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7177 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7178 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7179 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7180 unused and endian-specific types.
7181 (recursive_dump_type): Update for floatformat pairs.
7182 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7183 (build_gdbtypes): Use build_flt.
7184 (_initialize_gdbtypes): Update set of initialized types.
7185 * gdbtypes.h: Update declarations to match gdbtypes.c.
7186 (struct main_type): Store a pointer to two floatformats.
7187 * arch-utils.c (default_float_format, default_double_format): Delete.
7188 * arch-utils.h (default_float_format, default_double_format): Delete.
7189
7190 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7191 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7192 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7193 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7194 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7195
87680a14
JB
71962007-01-29 Joel Brobecker <brobecker@adacore.com>
7197
7198 * target.c (maintenance_print_target_stack): New function.
7199 (initialize_targets): Add new "maintenance print target-stack"
7200 command.
7201
1c3d648d
MK
72022007-01-28 Mark Kettenis <kettenis@gnu.org>
7203
7204 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7205
607269ae
DJ
72062007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7207
7208 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7209 (struct dwarf2_loclist_baton): Likewise.
7210
40c03ae8
EZ
72112007-01-27 Eli Zaretskii <eliz@gnu.org>
7212
7213 * cli/cli-script.c: Include breakpoint.h.
7214 (build_command_line): Require arguments only for if and while
7215 commands.
7216 (get_command_line, execute_user_command, execute_control_command):
7217 Fix wording of warning messages.
7218 (print_command_lines): Print breakpoint commands.
7219 (execute_control_command): Call commands_from_control_command to
7220 handle the `commands' command inside a body of a flow-control
7221 command.
7222 (read_next_line): Recognize the `commands' command and build a
7223 command line structure for it.
7224 (recurse_read_control_structure, read_command_lines): Handle
7225 `commands' similarly to `if' and `while'.
7226
7227 * breakpoint.c (get_number_trailer): Document the special meaning
7228 of NULL as the first argument PP.
7229 (commands_from_control_command): New function.
7230
7231 * breakpoint.h (commands_from_control_command): Add prototype.
7232
7233 * defs.h (commands_control): New enumerated value for enum
7234 command_control_type.
7235
4b9eee8c
JB
72362007-01-26 Joel Brobecker <brobecker@adacore.com>
7237
7238 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7239 (ada_exception_sal): Update accordingly.
7240
e1f48ead
JK
72412007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7242
7243 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7244 * NEWS: Describe CHAR array vs. string identifcation rules.
7245
e150acc7
PB
72462007-01-25 Paul Brook <paul@codesourcery.com>
7247
7248 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7249
10fb19b6
JB
72502007-01-24 Jim Blandy <jimb@codesourcery.com>
7251
7252 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7253 expression is empty, bother to return the 'optimized out' value we
7254 construct. (Thanks to Carl Burch.)
7255
85d93f1d
VP
72562007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7257
7258 * varobj.c (c_value_of_root, c_value_of_child)
7259 (cplus_describe_child): Don't call release_value.
7260
fcbd8a5c
TS
72612007-01-24 Thiemo Seufer <ths@mips.com>
7262
7263 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7264 initialization.
7265
2024f65a
VP
72662007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7267
7268 Refactor getting children name, value and type access
7269 for varobjs in C++.
7270 * varobj.c (get_type_deref): Remove.
7271 (adjust_value_for_child_access): New.
7272 (c_number_of_children): Use the above.
7273 (c_describe_child): Likewise.
7274 (enum accessibility): New.
7275 (match_accessibility): New function.
7276 (cplus_describe_child): New function.
7277 (cplus_name_of_child, cplus_value_of_child)
7278 (cplus_type_of_child): Reimplement in terms
7279 of cplus_describe_child.
7280 (cplus_number_of_children): Use
7281 adjust_value_for_child_access.
7282
6e2a9270
VP
72832007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7284
7285 Fix computation of the 'editable' attribute and
7286 value changeability for for references.
7287 * varobj.c (get_value_type): New function.
7288 (c_variable_editable): Use get_value_type.
7289 (varobj_value_is_changeable): Likewise.
7290
56163ce1
JB
72912007-01-24 Joel Brobecker <brobecker@adacore.com>
7292
7293 * source.c (find_and_open_source): Try rewriting the source
7294 path inside filename if dirname is NULL.
7295
8c6860bb
JB
72962007-01-24 Joel Brobecker <brobecker@adacore.com>
7297
7298 * dwarf2read.c (add_partial_symbol): Create an extra partial
7299 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7300 (new_symbol): Likewise for symbols.
7301
6db6d2ca
NR
73022007-01-24 Nick Roberts <nickrob@snap.net.nz>
7303
7304 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7305
7d85ee02
VP
73062007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7307
7308 * value.c (value_primitive_field): Copy the full 'location'
7309 contents, instead of assuming that copying ADDRESS will
7310 bring over everything in the union. Remove obsolete comment.
7311
f79b9530
DJ
73122007-01-23 Masaki Muranaka <monaka@monami-software.com>
7313
7314 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7315 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7316 (m32c_m16c_pointer_to_address): Separate code from declarations.
7317
08d8bcd7
DJ
73182007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7319
7320 * target.c (update_current_target): Correct typo.
7321
57fdbbbe
CV
73222007-01-22 Masaki Muranaka <monaka@monami-software.com>
7323
7324 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7325 declaration.
7326
58894217
JK
73272007-01-11 Andrew Cagney <cagney@redhat.com>
7328 Daniel Jacobowitz <dan@codesourcery.com>
7329 Jan Kratochvil <jan.kratochvil@redhat.com>
7330
7331 * dwarf2-frame.c (execute_cfa_program): New support of
7332 `DW_CFA_GNU_negative_offset_extended'.
7333
9ebce043
DJ
73342007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7335
7336 * NEWS: Mention flash support for "load" and new remote packets.
7337
973d738b
DJ
73382007-01-21 Markus Deuling <deuling@de.ibm.com>
7339
7340 * breakpoint.c (delete_command): Skip redundant loop iterations.
7341
7b9ee6a8
DJ
73422007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7343
7344 * gdbarch.sh (register_type): Update comment.
7345 * gdbarch.h: Regenerated.
7346 * arch-utils.c (generic_register_size): Call register_type.
7347 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7348 * m32c-tdep.c (check_for_saved): Likewise.
7349 * mips-tdep.c (mips_print_register, print_gp_register_row)
7350 (mips_print_registers_info): Likewise.
7351 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7352 Likewise.
7353 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7354 (sh64_do_register, sh64_print_register)
7355 (sh64_media_print_registers_info): Likewise.
7356 * tui/tui-regs.c (tui_register_format): Likewise.
7357
11309657
DJ
73582007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7359
7360 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7361
7362 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7363 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7364 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7365 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7366 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7367 (make_symbol_completion_list): Likewise.
7368
cb1df416
DJ
73692007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7370 Daniel Jacobowitz <dan@codesourcery.com>
7371
7372 * buildsym.c (end_symtab): Use preallocated symtab if available.
7373 Fill in SYMBOL_SYMTAB.
7374 * buildsym.h (struct subfile): Add symtab member.
7375 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7376 (struct file_entry): Add symtab.
7377 (free_cu_line_header): New function.
7378 (read_file_scope): Use it. Save line_header in the cu. Process
7379 lines before DIEs.
7380 (add_file_name): Initialize new symtab member.
7381 (dwarf_decode_lines): Create symtabs for included files.
7382 (new_symbol): Set SYMBOL_SYMTAB.
7383 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7384 (search_symbols): Likewise.
7385 * symtab.h (struct symbol): Add symtab member.
7386 (SYMBOL_SYMTAB): Define.
7387
727da900
DJ
73882007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7389
7390 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7391
7b6b9e83
DJ
73922007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7393
7394 * arch-utils.c (show_endian): Correct reversed condition.
7395
e767400c
JK
73962007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7397
7398 * MAINTAINERS (Write After Approval): Add myself.
7399
b20d8971
VP
74002007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7401 Vladimir Prus <vladimir@codesourcery.com>
7402
7403 Fix 'selected frame' varobjs.
7404 * varobj.c (struct varobj): Remove the error field.
7405 (varobj_set_value): Don't check var->error.
7406 (install_new_value): Don't set var->error.
7407 (varobj_update): Always pass the new value
7408 of the root via install_new_value.
7409 (create_child): Don't set error field.
7410 (new_variable): Likewise.
7411 (c_value_of_root): Always reevaluate the value
7412 of selected frame varobjs in the selected frame.
7413 Don't call reinit_frame_cache.
7414
7ef2b397
JB
74152007-01-15 Joel Brobecker <brobecker@adacore.com>
7416
7417 * source.c (_initialize_source): Improve the help text of
7418 the substitute-path commands.
7419
1208538e
MK
74202007-01-14 Mark Kettenis <kettenis@gnu.org>
7421
7422 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7423 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7424 (frv_skip_prologue): Remove prototypes.
7425 (frv_adjust_breakpoint_address): Renamed from
7426 frv_gdbarch_adjust_breakpoint_address.
7427 (frv_gdbarch_init): Adjust.
7428
765f065a
MK
74292007-01-13 Mark Kettenis <kettenis@gnu.org>
7430
5e66aab2
MK
7431 * gdbarch.sh (deprecated_extract_return_value)
7432 (deprecated_store_return_value): Remove.
7433 (extract_return_value, store_return_value): Remove default values.
7434 * gdbarch.c, gdbarch.h: Regenerate.
7435 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7436 (legacy_store_return_value): Remove.
7437 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7438 Remove.
7439
56178203
MK
7440 * mi/mi-main.c: Remove obsolete comment.
7441
23303b2e
MK
7442 * regcache.c, regcache.h (deprecated_register_bytes)
7443 (deprecated_read_register_bytes)
7444 (deprecated_write_register_bytes): Remove.
7445
765f065a
MK
7446 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7447 Don't forget to move destination pointer.
7448
610acfff
MK
74492007-01-01 Mark Kettenis <kettenis@gnu.org>
7450
7451 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7452
12102450
UW
74532007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7454
7455 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7456 past entry function with recent newlib.
7457
c8b2f53c
VP
74582007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7459
7460 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7461 introduction. Specify -var-update more exactly.
7462
d57df5e4
DJ
74632007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7464
7465 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7466
03f597d5
JB
74672007-01-10 Jim Blandy <jimb@codesourcery.com>
7468
7469 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7470 the Global Maintainers' invitation to be a global maintainer.
7471
fd48f117
DJ
74722007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7473
7474 * infrun.c (singlestep_pc): New variable.
7475 (resume): Set singlestep_pc.
7476 (context_switch): Add a debugging message. Flush the frame cache.
7477 (handle_inferior_event): Add debugging messages. Handle thread
7478 hops when a software single step has completed. Let context_switch
7479 handle flushing the frame cache.
7480
23181151
DJ
74812007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7482
7483 * NEWS: Mention target descriptions, "set tdesc filename",
7484 "unset tdesc filename", "show tdesc filename", and
7485 qXfer:features:read.
7486 * arch-utils.c (choose_architecture_for_target): New function.
7487 (gdbarch_info_fill): Call it.
7488 * target-descriptions.c (struct property): Make members non-const.
7489 (struct target_desc): Add arch member.
7490 (target_description_filename): New variable.
7491 (target_find_description): Try via XML first.
7492 (tdesc_architecture): New.
7493 (free_target_description, make_cleanup_free_target_description): New.
7494 (set_tdesc_property): Call xstrdup.
7495 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7496 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7497 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7498 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7499 * target-descriptions.h (tdesc_architecture)
7500 (make_cleanup_free_target_description, set_tdesc_architecture): New
7501 prototypes.
7502 * Makefile.in (SFILES): Add xml-tdesc.c.
7503 (COMMON_OBS): Add xml-tdesc.o.
7504 (target-descriptions.o): Update.
7505 (xml-tdesc.o): New rule.
7506 * xml-tdesc.c, xml-tdesc.h: New files.
7507 * remote.c (PACKET_qXfer_features): New enum.
7508 (remote_protocol_features): Add qXfer:features:read.
7509 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7510 (_initialize_remote): Register qXfer:features:read.
7511 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7512 * features/gdb-target.dtd: New file.
7513
3e9cb5f4
DJ
75142007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7515
7516 * copyright.sh: Clarify error.
7517
818f79f6
DJ
75182007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7519
7520 * symtab.c (matching_bfd_sections): Fix VMA matching for
7521 prelinked objects.
7522
f7a6bb70
DJ
75232007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7524
7525 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7526 nested symbols.
7527
20ac0504
DJ
75282007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7529
7530 Updated copyright notices for most files.
7531
85bb0718
DJ
75322007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7533
7534 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7535
aa28a74e
DJ
75362007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7537
7538 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7539 exec_prefix.
7540 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7541 '${prefix}'.
7542 * configure, config.in: Regenerate.
7543 * defs.h (debug_file_directory): Declare.
7544 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7545 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7546 relocate it if DEBUGDIR_RELOCATABLE.
7547 * symfile.c (debug_file_directory): Make non-static.
7548 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7549 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7550 (_initialize_symfile): Don't initialize debug_file_directory here.
7551
1cfd2c3e
JB
75522007-01-09 Jim Blandy <jimb@codesourcery.com>
7553
7554 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7555 statements.
7556
5efde112
DJ
75572007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7558
7559 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7560 frame_unwind_register to recurse.
7561 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7562 (alpha_heuristic_frame_prev_register): Likewise.
7563 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7564 * m32c-tdep.c (m32c_prev_register): Likewise.
7565 * frame.c (frame_register_unwind_location): Remove FIXME.
7566
4de1f557
DJ
75672007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7568 Eli Zaretskii <eliz@gnu.org>
7569
7570 * copyright.sh: New file.
7571
ca4ca11e
DJ
75722007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7573
7574 * configure.ac: Check for XML_StopParser.
7575 * xml-support.c (gdb_xml_body_text): Check for an error.
7576 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7577 (gdb_xml_end_element_wrapper): Likewise.
7578 * config.in, configure: Regenerated.
7579
57e66780
DJ
75802007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7581
7582 * varobj.c (install_new_value): Always update print_value.
7583 (value_get_print_value): Immediately return NULL for missing
7584 values.
7585
b523a1fd
JB
75862007-01-08 Jim Blandy <jimb@codesourcery.com>
7587
7588 * configure.ac: Tighten pattern for extracting value of
7589 DEPRECATED_TM_FILE from the target makefile fragment.
7590 * configure: Regenerated.
7591
3d799a95
DJ
75922007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7593
7594 * linux-nat.c (struct simple_pid_list): Add status.
7595 (add_to_pid_list): Record the PID's status.
7596 (linux_record_stopped_pid): Likewise. Make static.
7597 (pull_pid_from_list): Return the saved status.
7598 (linux_nat_handle_extended): Deleted.
7599 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7600 Make static. Handle non-SIGSTOP for a new thread's first signal.
7601 (flush_callback): Handle unexpected pending signals.
7602 (linux_nat_wait): Update calls to changed functions.
7603 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7604 Remove prototypes for newly static functions.
7605
9acbedc0
UW
76062007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7607
7608 * gdbarch.sh (value_from_register): New gdbarch function.
7609 * gdbarch.c, gdbarch.h: Regenerate.
7610 * findvar.c (default_value_from_register): New function.
7611 (value_from_register): Use gdbarch_value_from_register.
7612 * value.h (default_value_from_register): Declare.
7613 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7614 spu_value_to_register): Remove.
7615 (spu_value_from_register): New function.
7616 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7617 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7618 Call set_gdbarch_value_from_register.
7619 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7620 s390_value_to_register): Remove.
7621 (s390_value_from_register): New function.
7622 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7623 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7624 Call set_gdbarch_value_from_register.
7625
f822c95b
DJ
76262007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7627
7628 * NEWS: Add "set sysroot" and "show sysroot".
7629 * solib.c (solib_absolute_prefix): Delete. Replace
7630 all uses with gdb_sysroot.
7631 (_initialize_solib): Add "set sysroot" and "show sysroot".
7632 Make "solib-absolute-prefix" an alias to it.
7633
00fa51f6
UW
76342007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7635
7636 * frame.c (get_frame_register_bytes): New function.
7637 (put_frame_register_bytes): Likewise.
7638 * frame.h (get_frame_register_bytes): Declare.
7639 (put_frame_register_bytes): Likewise.
7640 * findvar.c (value_from_register): Always construct lval_register
7641 values. Use get_frame_register_bytes.
7642 * valops.c (value_assign): Use get_frame_register_bytes and
7643 put_frame_register_bytes.
7644
a95c9d06
JB
76452007-01-08 Jim Blandy <jimb@codesourcery.com>
7646
7647 * MAINTAINERS: Update Stan Shebs' email address.
7648
4ed6b5be
JB
76492007-01-07 Joel Brobecker <brobecker@adacore.com>
7650
7651 * ada-lang.c (is_known_support_routine): Improve the implementation.
7652
9bbc9174
JB
76532007-01-06 Joel Brobecker <brobecker@adacore.com>
7654
7655 * ada-lang.c: Add include of source.h.
7656 (is_known_support_routine): Improve the check verifying that the file
7657 associated to this frame exists.
7658 * Makefile.in (ada-lang.o): Add dependency on source.h.
7659
44a81774
JB
76602007-01-07 Jim Blandy <jimb@codesourcery.com>
7661
7662 * ax-general.c (ax_const_l): Select proper opcode for the given
7663 value.
7664
fcd19eb1 76652007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6fe1a487
NR
7666
7667 * varobj.c (c_value_of_root): Don't select frame if variable
7668 object is out of scope.
7669
fcd19eb1 76702007-01-05 Nick Roberts <nickrob@snap.net.nz>
3fa6deb5
NR
7671
7672 * varobj.c (struct varobj): New member print_value.
7673 (install_new_value): Compare last printed value with current one
7674 instead of contents.
7675 (new_variable): Initialize var->print_value to NULL.
7676 (free_variable): Free var->print_value.
7677 (value_get_print_value): New function derived from
7678 c_value_of_variable.
7679 (c_value_of_variable): Use value_get_print_value.
7680
92a56b20
JB
76812007-01-05 Joel Brobecker <brobecker@adacore.com>
7682
7683 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7684
0e420bd8
JB
76852007-01-05 Joel Brobecker <brobecker@adacore.com>
7686
7687 * NEWS: Add entries for new catch commands.
7688
b69733ab 76892007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
7690
7691 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7692 (add_partial_symbol): Correct identification of external references.
7693 (process_structure_scope): Likewise.
7694 (read_partial_die): Handle DW_AT_byte_size attribute.
7695
76962007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
7697
7698 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7699
8e38af42
NR
77002007-01-05 Nick Roberts <nickrob@snap.net.nz>
7701
7702 * varobj.c (get_type_deref): Fix variable objects for references to
7703 pointers.
7704
d1c79ecd
DJ
77052007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7706
7707 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7708 with no symbols.
7709
e776119f
DJ
77102007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7711
7712 * memory-map.c (struct_memory_map_parsing_data): Remove most
7713 members. Make property_name an array.
7714 (free_memory_map_parsing_data, memory_map_start_element)
7715 (memory_map_end_element, memory_map_character_data): Delete.
7716 (memory_map_start_memory, memory_map_end_memory)
7717 (memory_map_start_property, memory_map_end_property): New functions.
7718 (property_attributes, memory_children, memory_type_enum)
7719 (memory_attributes, memory_map_children, memory_map_elements): New.
7720 (parse_memory_map): Rewrite.
7721 * xml-support.c (debug_xml): New.
7722 (xml_get_required_attribute, xml_get_integer_attribute)
7723 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7724 Delete.
7725 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7726 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7727 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7728 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7729 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7730 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7731 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7732 New.
7733 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7734 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7735 (enum gdb_xml_element_flag, struct gdb_xml_element)
7736 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7737 (struct gdb_xml_enum): New.
7738 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7739 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7740 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7741 (xml_get_required_attribute, xml_get_integer_attribute)
7742 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7743 * Makefile.in (xml_support_h, xml-support.o): Update.
7744
5e572bb4
DJ
77452007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7746
7747 * Makefile.in (eval.o): Update dependencies.
7748 * eval.c: Include "ui-out.h" and "exceptions.h".
7749 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7750 Use value_zero if an error occurs when avoiding side effects.
7751 * varobj.c (c_value_of_root): Initialize new_val.
7752
74a44383
DJ
77532007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7754
7755 * varobj.c (varobj_list_children): Stop if the number of children is
7756 unknown.
7757 (c_number_of_children):
7758
e8d2d628
MK
77592007-01-04 Mark Kettenis <kettenis@gnu.org>
7760
7761 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7762 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7763 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7764 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7765 sizeof, instead of hardcoded constants.
7766
c941839d
DJ
77672007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7768
7769 * CONTRIBUTE: Use sourceware.org.
7770
303b6f5d 77712007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 7772
303b6f5d
DJ
7773 * buildsym.c (start_subfile): Handle producer.
7774 (record_producer): New function.
7775 * buildsym.h (struct subfile): Include producer.
7776 (record_producer): New prototype.
7777 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7778 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7779 armcc_cfa_offsets_reversed.
7780 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7781 (dwarf2_frame_find_quirks): New function.
7782 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7783 (decode_frame_entry_1): Record the CIE version. Record the
7784 augmentation. Skip armcc augmentations.
7785 * dwarf2read.c (read_file_scope): Save the producer.
7786 * symtab.h (struct symtab): Rename unused version member to
7787 producer.
2d0720d9 7788
aa79a185
DJ
77892007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7790
7791 * configure.ac (build_warnings): Use -Wall and
7792 -Wdeclaration-after-statement.
7793 * configure: Regenerated.
7794
bbec2603
VP
77952007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7796
7797 Simplify access to variours properties of child
7798 variable objects in C.
7799 * varobj.c (value_struct_element_index): New function.
7800 (c_describe_child): New function.
7801 (c_name_of_child, c_value_of_child)
7802 (c_type_of_child): Rewrite to use c_describe_child.
7803
28335dcc
VP
78042007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7805
7806 gdb/
7807 * varobj.c: Include "vec.h".
7808 (varobj_p): New typedef, declare vector of those.
7809 (struct varobj): Use vector for the 'children' member.
7810 (child_exists): Remove.
7811 (save_child_in_parent): Remove.
7812 (remove_child_from_parent): Remove.
7813 (struct varobj_child): Remove.
7814 (struct vstack): Remove.
7815 (vpush, vpop): Remove.
7816 (varobj_list_children): Adjust to work work vector.
7817 (varobj_update): Likewise. Use vectors for
7818 working stack and result.
7819 (delete_variable_1): Likewise.
7820 * Makefile.in (varobj.o): Update dependencies.
7821
b2c2bd75
VP
78222007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7823
7824 Port from Apple's version.
7825 gdb/
7826 * varobj.c (type_changeable): Rename to...
7827 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7828 (is_root_p): New function. Use it everywhere.
7829
bdfb3870
JB
78302007-01-04 Jim Blandy <jimb@codesourcery.com>
7831
7832 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7833 then plain 'fixup'.
7834
5d15052e
JB
78352007-01-04 Joel Brobecker <brobecker@adacore.com>
7836
7837 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7838
53103997
JB
78392007-01-04 Joel Brobecker <brobecker@adacore.com>
7840
7841 * hpread.c (hpread_type_lookup): Fix compilation failure.
7842
27fd2f50
Q
78432007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7844
7845 * NEWS: New port to S+core.
7846 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7847 Add myself.
7848
7849 * Makefile.in: Add dependencies for S+core files.
7850 * configure.tgt (score*, score-*-*): Add S+core target.
7851 * config/score/embed.mt: New file.
7852 * score-tdep.c: New file.
7853 * score-tdep.h: New file.
7854
a6cfbe68
JB
78552007-01-04 Joel Brobecker <brobecker@adacore.com>
7856
7857 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7858 the appropriate type rather than a bogus void type.
7859
67cf15b7 78602007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
7861
7862 * ada-lang.h (ada_find_printable_frame): Remove.
7863 (ada_exception_catchpoint_p, ada_decode_exception_location)
7864 (ada_decode_assert_location): Add declaration.
7865 * ada-lang.c: Add include of annotate.h and valprint.h.
7866 (exception_catchpoint_kind): New enum.
7867 (function_name_from_pc, is_known_support_routine)
7868 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7869 (ada_exception_name_addr_1, ada_exception_name_addr)
7870 (print_it_exception, print_one_exception, print_mention_exception)
7871 (print_it_catch_exception, print_one_catch_exception)
7872 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7873 (print_it_catch_exception_unhandled)
7874 (print_one_catch_exception_unhandled)
7875 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7876 (print_one_catch_assert, print_mention_catch_assert)
7877 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7878 (ada_get_next_arg, catch_ada_exception_command_split)
7879 (ada_exception_sym_name, ada_exception_sym_name)
7880 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7881 (ada_parse_catchpoint_condition, ada_exception_sal)
7882 (ada_decode_exception_location)
7883 (ada_decode_assert_location): New function.
7884 (catch_exception_unhandled_breakpoint_ops): New global variable.
7885 (catch_assert_breakpoint_ops): New global variable.
7886 * breakpoint.c: Add include of ada-lang.h.
7887 (print_one_breakpoint): Do not print the condition for Ada
7888 exception catchpoints.
7889 (create_ada_exception_breakpoint): New function.
7890 (catch_ada_exception_command, catch_assert_command): New function.
7891 (catch_command_1): Add support for the new "catch exception" and
7892 "catch assert" commands.
7893 (_initialize_breakpoint): Add help description for the new catch
7894 commands.
7895 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7896 valprint.h.
7897 (breakpoint.o): Add dependency on ada-lang.h.
7898
05cfdb42
DJ
78992007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7900
7901 * coffread.c (cs_to_section): If bfd_section is found, always
7902 return its section index.
7903 (coff_symtab_read): Determine the minimal_symbol_type using the
7904 bfd_section flags.
7905
2e03ee74
DJ
79062007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7907 Daniel Jacobowitz <dan@codesourcery.com>
7908
7909 * Makefile.in (top.o): Update.
7910 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7911 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7912 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7913 New.
7914 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7915
1c63d086
MK
79162007-01-03 Mark Kettenis <kettenis@gnu.org>
7917
7918 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7919 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7920
d5d6fca5
DJ
79212007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7922
7923 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7924 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7925 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7926 greater than or equal to zero.
7927 * m2-typeprint.c (m2_array): Likewise.
7928 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7929 * gdbtypes.c (copy_type_recursive): Correct == typo.
7930 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7931 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7932 greater than zero.
7933 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7934 (default_macro_scope): Remove unused variable.
7935 * prologue-value.h (pv_area_find_reg): Don't name an argument
7936 "register".
7937 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7938 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7939 type.
7940 (cleanup_sigint_signal_handler): Remove casts.
7941 * valprint.c (val_print): Use a volatile local for the modified
7942 argument.
7943 * varobj.c (languages): Remove extra array dimension.
7944 (varobj_create): Correct access to languages array.
7945 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7946 missing braces.
7947 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7948 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7949 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7950 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7951 (mi_cmd_data_write_memory): Likewise.
7952 * signals/signals.c (target_signal_to_string): Cast to int before
7953 comparing.
7954 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7955 Update all callers.
7956
0d5de010
DJ
79572007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7958
7959 * NEWS: Mention pointer to member improvements.
7960 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7961 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7962 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7963 * c-typeprint.c (c_print_type): Update for new type codes.
7964 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7965 (c_type_print_base): Likewise.
7966 (c_type_print_args): Rewrite.
7967 * c-valprint.c (c_val_print): Update for new type codes. Remove
7968 support for references to members. Treat methods like functions.
7969 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7970 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7971 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7972 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7973 (struct cp_abi_ops): Add corresponding members.
7974 * cp-valprint.c (cp_print_class_method): Delete.
7975 (cp_find_class_member): New function.
7976 (cp_print_class_member): Use it. Simplify support for bogus
7977 member pointers.
7978 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7979 lookup_methodptr_type.
7980 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7981 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7982 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7983 pointer support.
7984 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7985 references returned by user defined operators.
7986 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7987 (f_type_print_varspec_suffix): Remove support for member pointers.
7988 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7989 and adjusted.
7990 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7991 (lookup_methodptr_type): New.
7992 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7993 (recursive_dump_type): Update for new types.
7994 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7995 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7996 (lookup_memberptr_type, lookup_methodptr_type)
7997 (smash_to_memberptr_type): New prototypes.
7998 (smash_to_method_type): Formatting fix.
7999 (lookup_member_type, smash_to_member_type): Delete prototypes.
8000 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8001 Do not rely on debug information for the vptr or the method's
8002 enclosing type. Handle function descriptors for IA64.
8003 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8004 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8005 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8006 (gnuv3_method_ptr_to_value): New.
8007 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8008 * hpread.c (hpread_type_lookup): Update for new types.
8009 * infcall.c (value_arg_coerce): Likewise.
8010 * m2-typeprint.c (m2_print_type): Remove explicit support
8011 for member pointers.
8012 * m2-valprint.c (m2_val_print): Likewise.
8013 * p-typeprint.c (pascal_type_print_varspec_prefix)
8014 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8015 * p-valprint.c (pascal_val_print): Likewise.
8016 (pascal_object_print_class_method, pascal_object_print_class_member):
8017 Delete.
8018 * p-lang.h (pascal_object_print_class_method)
8019 (pascal_object_print_class_member): Delete prototypes.
8020 * stabsread.c (read_type): Update for new types.
8021 * typeprint.c (print_type_scalar): Likewise.
8022 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8023 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8024 argument. Construct a pointer to member if the address of a
8025 function or data member is requested.
8026 (value_cast_pointers): Don't modify the input value.
8027 (value_cast): Adjust pointer to member handling for new types.
8028 Allow null pointer to member constants. Don't modify the input
8029 value.
8030 (value_ind): Remove pointer to member check. Handle function
8031 descriptors for function pointers.
8032 (value_struct_elt, value_find_oload_method_list, check_field):
8033 Remove pointer to member checks.
8034 * value.c (unpack_long): Allow pointers to data members.
8035 (value_from_longest): Allow member pointers.
8036 * value.h (value_aggregate_elt): Add want_address.
8037 * varobj.c (c_variable_editable): Remove check for members.
8038 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8039 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8040 in virtual tables.
8041 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8042 * c-lang.h (cp_print_class_method): Delete prototype.
8043 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8044 * mips-tdep.c (mips_gdbarch_init): Likewise.
8045 * gdbarch.c, gdbarch.h: Regenerated.
8046
d217aaed
MK
80472007-01-01 Mark Kettenis <kettenis@gnu.org>
8048
8049 * rs6000-tdep.c (rs6000_use_struct_convention)
8050 (rs6000_extract_return_value, rs6000_store_return_value)
8051 (rs6000_extract_struct_value_address): Remove.
8052 (rs6000_return_value): New function.
8053 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8054 store_return_value, deprecated_extract_struct_value_address and
8055 deprecated_use_struct_convention. Use rs6000_return_value
8056 instead.
8057
02296b29
NR
80582007-01-02 Nick Roberts <nickrob@snap.net.nz>
8059
8060 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8061 -display-disable, -display-enable, -display-insert and
8062 -display-list.
8063
b69733ab 80642007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
8065
8066 * breakpoint.c (remove_breakpoint): Remove dead code.
8067
80682007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
8069
8070 * varobj.c: Include block.h.
8071 (c_value_of_root): Check scope within nested statements.
8072
9f3a1602
MK
80732007-01-01 Mark Kettenis <kettenis@gnu.org>
8074
8075 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8076 regcache_cooked_write_signed instead of
8077 deprecated_write_register_bytes.
8078
12349ccd
JB
80792007-01-01 Joel Brobecker <brobecker@adacore.com>
8080
8081 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8082
8c48ebcf
JB
80832007-01-01 Joel Brobecker <brobecker@adacore.com>
8084
8085 Followed the Start of New Year Procedure:
8086 * ChangeLog-2006: New file, containing all the entries for 2006.
8087 * ChangeLog: Removed all 2006 entries, and changed the reference
8088 to the previous ChangeLog to point to ChangeLog 2006.
8089 * top.c (print_gdb_version): Update copyright year.
8090
154927ff
MK
80912007-01-01 Mark Kettenis <kettenis@gnu.org>
8092
8093 * Makefile.in (remote-sds.o): Remove.
8094 * remote-sds.c: Delete.
8095
8c48ebcf 8096For older changes see ChangeLog-2006.
c906108c
SS
8097\f
8098Local Variables:
8099mode: change-log
8100left-margin: 8
8101fill-column: 74
8102version-control: never
57da7796 8103coding: utf-8
c906108c 8104End:
This page took 1.263835 seconds and 4 git commands to generate.