* cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
4 to construct error message if no argument was supplied.
5
6 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
7
8 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
9 (i386nbsd_aout_regset_from_core_section): Likewise.
10 (i386nbsd_aout_init_abi): Likewise.
11 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
12
13 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
14 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
15
16 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
17
18 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
19 (amd64fbsd_sigtramp_end_addr): Likewise.
20
21 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
22 (iq2000_address_to_pointer): Likewise.
23 (iq2000_frame_prev_register): Likewise.
24 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
25 instead of regcache_cooked_read into CORE_ADDR variable.
26 (iq2000_return_value): Fix argument types.
27
28 * m32r-rom.c (m32r_load_section): Fix printf argument type.
29 (m32r_load): Likewise.
30
31 * m68kbsd-tdep.c: Include "gdbtypes.h".
32 * Makefile.in: Update dependencies.
33
34 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
35
36 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
37 lmo->l_addr_size element.
38
39 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
40 (m32r_insert_breakpoint): Likewise.
41 (m32r_remove_breakpoint): Likewise.
42 (m32r_insert_watchpoint): Likewise.
43 (m32r_remove_watchpoint): Likewise.
44 (m32r_load): Fix printf argument type.
45
46 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
47 argument type.
48 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
49 (xtensa_frame_prev_register): Likewise.
50 (xtensa_push_dummy_call): Likewise.
51
52 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
53
54 * config/alpha/alpha-linux.mt: Remove file.
55 * config/alpha/alpha.mt: Remove file.
56 * config/alpha/alpha-osf1.mt: Remove file.
57 * config/alpha/fbsd.mt: Remove file.
58 * config/alpha/nbsd.mt: Remove file.
59 * config/alpha/obsd.mt: Remove file.
60 * config/arm/embed.mt: Remove file.
61 * config/arm/linux.mt: Remove file.
62 * config/arm/nbsd.mt: Remove file.
63 * config/arm/obsd.mt: Remove file.
64 * config/arm/wince.mt: Remove file.
65 * config/avr/avr.mt: Remove file.
66 * config/cris/cris.mt: Remove file.
67 * config/frv/frv.mt: Remove file.
68 * config/h8300/h8300.mt: Remove file.
69 * config/i386/cygwin.mt: Remove file.
70 * config/i386/fbsd64.mt: Remove file.
71 * config/i386/fbsd.mt: Remove file.
72 * config/i386/i386gnu.mt: Remove file.
73 * config/i386/i386.mt: Remove file.
74 * config/i386/i386sol2.mt: Remove file.
75 * config/i386/linux64.mt: Remove file.
76 * config/i386/linux.mt: Remove file.
77 * config/i386/mingw.mt: Remove file.
78 * config/i386/nbsd64.mt: Remove file.
79 * config/i386/nbsd.mt: Remove file.
80 * config/i386/nto.mt: Remove file.
81 * config/i386/obsd64.mt: Remove file.
82 * config/i386/obsd.mt: Remove file.
83 * config/i386/sol2-64.mt: Remove file.
84 * config/ia64/ia64.mt: Remove file.
85 * config/ia64/linux.mt: Remove file.
86 * config/iq2000/iq2000.mt: Remove file.
87 * config/m32c/m32c.mt: Remove file.
88 * config/m32r/linux.mt: Remove file.
89 * config/m32r/m32r.mt: Remove file.
90 * config/m68hc11/m68hc11.mt: Remove file.
91 * config/m68k/linux.mt: Remove file.
92 * config/m68k/monitor.mt: Remove file.
93 * config/m68k/nbsd.mt: Remove file.
94 * config/m68k/obsd.mt: Remove file.
95 * config/m88k/obsd.mt: Remove file.
96 * config/mep/mep.mt: Remove file.
97 * config/mips/embed.mt: Remove file.
98 * config/mips/irix5.mt: Remove file.
99 * config/mips/irix6.mt: Remove file.
100 * config/mips/linux.mt: Remove file.
101 * config/mips/nbsd.mt: Remove file.
102 * config/mips/obsd64.mt: Remove file.
103 * config/mn10300/linux.mt: Remove file.
104 * config/mn10300/mn10300.mt: Remove file.
105 * config/mt/mt.mt: Remove file.
106 * config/pa/hppahpux.mt: Remove file.
107 * config/pa/hppa.mt: Remove file.
108 * config/pa/linux.mt: Remove file.
109 * config/pa/obsd.mt: Remove file.
110 * config/powerpc/aix.mt: Remove file.
111 * config/powerpc/linux.mt: Remove file.
112 * config/powerpc/nbsd.mt: Remove file.
113 * config/powerpc/obsd.mt: Remove file.
114 * config/powerpc/ppc-eabi.mt: Remove file.
115 * config/s390/s390.mt: Remove file.
116 * config/score/embed.mt: Remove file.
117 * config/sh/embed.mt: Remove file.
118 * config/sh/linux.mt: Remove file.
119 * config/sh/nbsd.mt: Remove file.
120 * config/sh/obsd.mt: Remove file.
121 * config/sh/sh64.mt: Remove file.
122 * config/sparc/embed.mt: Remove file.
123 * config/sparc/fbsd.mt: Remove file.
124 * config/sparc/linux64.mt: Remove file.
125 * config/sparc/linux.mt: Remove file.
126 * config/sparc/nbsd64.mt: Remove file.
127 * config/sparc/nbsd.mt: Remove file.
128 * config/sparc/obsd64.mt: Remove file.
129 * config/sparc/obsd.mt: Remove file.
130 * config/sparc/sol2-64.mt: Remove file.
131 * config/sparc/sol2.mt: Remove file.
132 * config/sparc/sparc64.mt: Remove file.
133 * config/sparc/sparc.mt: Remove file.
134 * config/spu/spu.mt: Remove file.
135 * config/v850/v850.mt: Remove file.
136 * config/vax/nbsd.mt: Remove file.
137 * config/vax/obsd.mt: Remove file.
138 * config/vax/vax.mt: Remove file.
139 * config/xstormy16/xstormy16.mt: Remove file.
140 * config/xtensa/xtensa.mt: Remove file.
141
142 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
143 (gdb_target): Likewise.
144 (gdb_target_obs): Document. Set for every target to contents
145 of TDEPFILES in former .mt makefile fragment.
146
147 * configure.ac (TARGET_OBS): Define.
148 (target_makefile_frag, gdb_target_cpu): Do not define.
149 * configure: Regenerate.
150
151 * Makefile.in (MT_FLAGS): Remove.
152 (GLOBAL_CFLAGS): Update.
153 (TARGET_OBS): Substitute from configure.
154 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
155 (@target_makefile_frag@): Remove.
156
157 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
158
159 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
160 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
161 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
162 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
163 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
164 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
165 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
166 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
167 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
168 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
169 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
170 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
171 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
172 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
173 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
174 * config/powerpc/ppc-sim.mt: Remove file.
175 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
176 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
177 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
178 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
179 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
180 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
181 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
182
183 * configure.tgt (gdb_sim): Document variable.
184 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
185 (avr-*-*): Likewise.
186 (frv-*-*): Likewise.
187 (h8300-*-*): Likewise.
188 (iq2000-*-*): Likewise.
189 (m32c-*-*): Likewise.
190 (m32r*-*-linux*): Likewise.
191 (m32r*-*-*): Likewise.
192 (m68hc11*-*-*|m6811*-*-*): Likewise.
193 (mips*-*-*): Likewise.
194 (mips*-*-linux*): Likewise.
195 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
196 (mn10300-*-*): Likewise.
197 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
198 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
199 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
200 (sh*): Set gdb_sim.
201 (sh-*-linux*): Likewise.
202 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
203 (sh64-*-elf*): Likewise.
204 (sparc-*-rtems*): Likewise.
205 (v850*-*-elf): Likewise.
206 (xstormy16-*-*): Likewise.
207
208 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
209 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
210 * configure: Regenerate.
211 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
212 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
213
214 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
215
216 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
217 (arm*-*-*): Do not set obsolete build_rdi_share variable.
218
219 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
220 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
221 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
222 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
223 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
224
225 (xscale-*-*): Merge into arm*-*-* case.
226 (fido-*-elf*): Merge into m68*-*-elf* case.
227 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
228 m68*-*-uclinux*): Merge cases.
229 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
230 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
231
232 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
233
234 * configure.tgt: Reformat main case statement.
235
236 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
237
238 * configure.ac (hostfile, targetfile): Remove.
239 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
240 (xm_h, tm_h): Likewise.
241 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
242 * configure, config.in: Regenerate.
243
244 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
245 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
246 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
247 * defs.h: Do not include "xm.h" or "tm.h".
248
249 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
250 * gdbarch.c: Regenerate.
251
252 * config/score/embed.mt: Remove obsolete comment.
253
254 2007-11-16 Markus Deuling <deuling@de.ibm.com>
255
256 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
257 as parameter.
258 * gdbarch.{c,h}: Regenerate.
259
260 * alpha-tdep.c (alpha_cannot_fetch_register)
261 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
262 current_gdbarch by gdbarch.
263 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
264 (crisv32_cannot_fetch_register)
265 (crisv32_cannot_store_register): Likewise.
266 * arch-utils.c (cannot_register_not): Likewise.
267 * arch-utils.h (cannot_register_not): Likewise.
268 * hppa-tdep.c (hppa32_cannot_store_register)
269 (hppa32_cannot_store_register, hppa64_cannot_store_register)
270 (hppa64_cannot_fetch_register): Likewise.
271 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
272 (mipsnbsd_cannot_store_register): Likewise.
273
274 2007-11-16 Markus Deuling <deuling@de.ibm.com>
275
276 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
277 the current architecture by regcache.
278 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
279 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
280 (fetch_register, supply_vrregset, fetch_ppc_registers)
281 (store_altivec_register, store_spe_register, store_register)
282 (fill_vrregset, store_ppc_registers): Likewise.
283 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
284 * win32-nat.c (do_win32_fetch_inferior_registers)
285 (do_win32_store_inferior_registers): Likewise.
286 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
287 * remote-m32r-sdi.c (m32r_fetch_registers)
288 (m32r_store_registers): Likewise.
289 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
290
291 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
292 gdbarch.
293 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
294 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
295 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
296 (ppc64_sysv_abi_return_value): Likewise.
297 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
298 * m2-lang.c (build_m2_types): Likewise.
299 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
300 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
301 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
302 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
303
304 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
305 get at the current architecture by frame_info.
306 * gcore.c (derive_stack_segment): Likewise.
307
308 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
309 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
310 gdbarch to GETREGS_SUPPLIES call.
311
312 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
313
314 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
315 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
316 ELF-private symbol data when processing synthetic symbols. Use
317 udata.p to get at size of ppc64 synthetic 'dot' symbols.
318 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
319
320 2007-11-15 Doug Evans <dje@google.com>
321
322 * buildsym.h (subfiles): Move ...
323 * buildsym.c (subfiles): ... to here and make static.
324
325 * symmisc.c (maintenance_info_symtabs): Print linetable info.
326
327 2007-11-15 Markus Deuling <deuling@de.ibm.com>
328
329 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
330
331 2007-11-15 Markus Deuling <deuling@de.ibm.com>
332
333 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
334 expression and use get_frame_arch to replace current_gdbarch by frame's
335 architecture.
336 * arm-tdep.h (LOWEST_PC): Remove
337
338 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
339
340 Apply const qualifier to some users of bp_location.
341 * breakpoint.h (struct bpstats): Make
342 the breakpoint_at field point at const bp_location.
343 * breakpoint.c (bpstat_alloc): Accept const
344 bp_location.
345 (breakpoint_here_p, breakpoint_inserted_here_p)
346 (software_breakpoint_inserted_here_p)
347 (breakpoint_thread_match, bpstat_stop_status)
348 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
349 const bp_location for iteration.
350 (print_it_typical, print_bp_stop_message): Use
351 const bp_location variable.
352
353 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
354
355 Make mark_breakpoints_out static.
356 * breakpoint.h (mark_breakpoints_out): Remove
357 declaration.
358 * breakpoint.c (mark_breakpoints_out): Make static.
359
360 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
361
362 Prevent clear_command from directly modifying breakpoint list.
363 * Makefile.in (breakpoint_h): Update dependency.
364 * breakpoint.c (clear_command): Do not remove
365 breakpoints from breakpoint_chain. Collect breakpoints
366 to delete in a vector.
367 * breakpoint.h (breakpoint_p): New typedef for pointer to
368 breakpoint. Register vector of breakpoint_p.
369
370 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
371
372 Remove 'run_cleanup'.
373 * defs.h (do_run_cleanups, make_run_cleanup): Remove
374 declarations.
375 * infcmd.c (run_command_1): Call clear_solib instead
376 of do_run_cleanups.
377 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
378 any use.
379 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
380 (update_solib_lib): Don't setup run cleanup.
381 (no_shared_libraries): Call clear_solib, not do_clear_solib.
382 * utils.c (run_cleanup_chain, make_run_cleanup)
383 (do_run_cleanups): Remove.
384
385 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
386
387 Remove CLEAR_SOLIB use.
388 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
389 * infcmd.c (attach_command): Likewise.
390
391 2007-11-14 Doug Evans <dje@google.com>
392
393 * buildsym.c (start_subfile,start_symtab): Doc fixes.
394
395 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
396
397 * tui/tui-data.c (tui_prev_win): Guard against NULL.
398
399 2007-11-12 Markus Deuling <deuling@de.ibm.com>
400
401 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
402 obsolete comment.
403 (verify_gdbarch, gdbarch_dump): Likewise.
404 (do_read): Update comment.
405 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
406 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
407 * gdbarch.{c,h}: Regenerate.
408
409 2007-11-12 Markus Deuling <deuling@de.ibm.com>
410
411 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
412 (ARGS_FIRST_REG): Remove.
413 (areg_numer): New function.
414 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
415 (xtensa_extract_return_value, xtensa_store_return_value)
416 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
417 (AREG_NUMBER): Remove.
418 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
419 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
420 (xtensa_push_dummy_call): Update use of ARG_NOF.
421 (extract_call_winsize): Add gdbarch as parameter. Replace
422 current_gdbarch by gdbarch.
423 (xtensa_extract_return_value, xtensa_store_return_value): Update call
424 of extract_call_winsize.
425
426 2007-11-10 Joel Brobecker <brobecker@adacore.com>
427
428 * NEWS: Add entry for new set/show print frame-args command.
429
430 2007-11-09 Kevin Buettner <kevinb@redhat.com>
431
432 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
433 register number to map. Adjust warning check and error/warning
434 return value code to match expectations of this function's callers.
435
436 2007-11-09 Joel Brobecker <brobecker@adacore.com>
437
438 * stack.c (print_this_frame_argument_p): Handle arguments passed
439 by reference properly.
440
441 2007-11-09 Joel Brobecker <brobecker@adacore.com>
442
443 * stack.c (print_frame_arguments_choices): New static global.
444 (print_frame_arguments): Likewise.
445 (print_this_frame_argument_p): New function.
446 (print_frame_args): Print the argument value only when appropriate.
447 (_initialize_task): Add new "set/show print frame-arguments" command.
448
449 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
450
451 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
452 saved_dabr_value assignment to the correct position.
453
454 2007-11-09 Markus Deuling <deuling@de.ibm.com>
455
456 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
457 * arch-utils.h (generic_convert_register_p): Likewise.
458
459 2007-11-09 Markus Deuling <deuling@de.ibm.com>
460
461 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
462 * ia64-tdep.c (ia64_convert_register_p): Likewise.
463 * i387-tdep.c (i387_convert_register_p): Likewise.
464 * i387-tdep.h (i387_convert_register_p): Likewise.
465 * alpha-tdep.c (alpha_convert_register_p): Likewise.
466 * gdbarch.{c,h}: Regenerate.
467
468 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
469 Replace current_gdbarch by gdbarch.
470 * mips-tdep.c (mips_convert_register_p): Likewise.
471 * m68k-tdep.c (m68k_convert_register_p): Likewise.
472 * i386-tdep.c (i386_convert_register_p): Likewise.
473
474 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
475
476 * gdb_string.h: Include <strings.h>.
477
478 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
479
480 * breakpoint.c (break_command_1): Remove
481 pending_bp parameter.
482 (create_breakpoint): Likewise.
483 (create_breakpoints): Likewise. Adjust call to
484 create_breakpoint.
485 (break_command_1): Likewise. Adjust call to
486 create_breakpoints.
487 (do_captured_breakpoint): Adjust call to
488 create_breakpoints.
489 (break_command, tbreak_command, hbreak_command)
490 (stopin_command, stopat_command): Adjust call
491 to break_command_1.
492
493 2007-11-07 Joseph Myers <joseph@codesourcery.com>
494 Daniel Jacobowitz <dan@codesourcery.com>
495
496 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
497 struct values smaller than one doubleword; left-align those
498 larger. Pass structs containing a single floating-point value in
499 registers.
500
501 2007-11-07 Joseph Myers <joseph@codesourcery.com>
502 Daniel Jacobowitz <dan@codesourcery.com>
503
504 * gdbtypes.c (floatformats_ibm_long_double): New.
505 * gdbtypes.h (floatformats_ibm_long_double): Declare.
506 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
507 split_half field.
508 * mips-tdep.c (n32n64_floatformat_always_valid,
509 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
510 Remove.
511 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
512 floatformats_n32n64_long.
513 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
514 double.
515 * doublest.c (convert_floatformat_to_doublest,
516 convert_doublest_to_floatformat): Handle split floating-point
517 formats.
518 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
519 double arguments.
520 (ppc64_sysv_abi_push_dummy_call): Likewise.
521 (do_ppc_sysv_return_value): Handle IBM long double return.
522
523 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
524
525 Fix crash when a variable object being deleted
526 has any of its children deleted previously.
527
528 * varobj.c (delete_variable_1): Don't recurse
529 into deleted children.
530
531 2007-11-07 Markus Deuling <deuling@de.ibm.com>
532
533 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
534 * gdbarch.{c,h}: Regenerate.
535 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
536 Replace current_gdbarch by gdbarch.
537 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
538 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
539 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
540
541 2007-11-07 Markus Deuling <deuling@de.ibm.com>
542
543 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
544 get_regcache_arch to get at the current architecture by regcache.
545 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
546 to get at the current architecture by frame_info.
547 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
548 at the current architecture by regcache.
549 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
550 the current architecture by frame_info.
551 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
552 * aix-thread.c (special_register_p): Add gdbarch as parameter.
553 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
554 caller of special_register_p.
555
556 2007-11-07 Markus Deuling <deuling@de.ibm.com>
557
558 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
559 current architecture by frame_info.
560
561 2007-11-07 Markus Deuling <deuling@de.ibm.com>
562
563 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
564
565 2007-11-07 Markus Deuling <deuling@de.ibm.com>
566
567 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
568 get at the current architecture by regcache.
569 (SUBOFF): Add gdbarch to macro definition.
570
571 2007-11-07 Markus Deuling <deuling@de.ibm.com>
572
573 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
574 * gdbarch.{c,h}: Regenerate.
575
576 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
577 Replace current_gdbarch by gdbarch.
578 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
579 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
580 * score-tdep.c (score_breakpoint_from_pc): Likewise.
581 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
582 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
583 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
584 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
585
586 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
587 parameter.
588 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
589 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
590 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
591 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
592 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
593 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
594 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
595 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
596 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
597 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
598 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
599 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
600 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
601 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
602 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
603 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
604 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
605 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
606 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
607 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
608
609 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
610 Replace current_gdbarch by gdbarch.
611 (rs6000_software_single_step): Use get_frame_arch to get at the
612 current architecture by frame_info. Add gdbarch to
613 rs6000_breakpoint_from_pc call.
614
615 2007-11-07 Markus Deuling <deuling@de.ibm.com>
616
617 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
618 macro CURRENT_VARIANT by its expression.
619 (CURRENT_VARIANT): Remove.
620 (frv_check_watch_resources): Add gdbarch parameter.
621
622 2007-11-07 Markus Deuling <deuling@de.ibm.com>
623
624 * MAINTAINERS (Write After Approval): Add self.
625
626 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
627
628 * features/rs6000/power-core.xml: Use uint32 as register type.
629 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
630 * features/rs6000/powerpc-32.c: Regenerate.
631 * features/rs6000/powerpc-403.c: Regenerate.
632 * features/rs6000/powerpc-403gc.c: Regenerate.
633 * features/rs6000/powerpc-505.c: Regenerate.
634 * features/rs6000/powerpc-602.c: Regenerate.
635 * features/rs6000/powerpc-603.c: Regenerate.
636 * features/rs6000/powerpc-604.c: Regenerate.
637 * features/rs6000/powerpc-64.c: Regenerate.
638 * features/rs6000/powerpc-7400.c: Regenerate.
639 * features/rs6000/powerpc-750.c: Regenerate.
640 * features/rs6000/powerpc-860.c: Regenerate.
641 * features/rs6000/powerpc-e500.c: Regenerate.
642
643 2007-11-05 Joel Brobecker <brobecker@adacore.com>
644
645 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
646
647 2007-11-05 Joel Brobecker <brobecker@adacore.com>
648
649 * breakpoint.h (create_solib_load_event_breakpoint)
650 (create_solib_unload_event_breakpoint)
651 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
652 (create_exec_event_catchpoint): Delete declaration.
653 * breakpoint.c (create_solib_load_event_breakpoint)
654 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
655 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
656 (create_exec_event_catchpoint): Make static.
657
658 2007-11-05 Joel Brobecker <brobecker@adacore.com>
659
660 * breakpoint.h (set_breakpoint_sal): Remove declaration.
661 * breakpoint.c (set_breakpoint_sal): Delete.
662
663 2007-11-05 Joel Brobecker <brobecker@adacore.com>
664
665 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
666 (make_blockvector): Likewise. Remove FIXME comment.
667
668 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
669
670 * printcmd.c: (printf_command): Add support for new DFP
671 modifiers %H, %D and %DD.
672 * configure.ac: Add check for DECFLOAT printf support.
673 * configure: Regenerated.
674
675 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
676
677 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
678 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
679 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
680 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
681 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
682 (has_vtable, primary_base_class, virtual_base_list_length,
683 virtual_base_list_length_skip_primaries, virtual_base_index,
684 virtual_base_index_skip_primaries, class_index_in_primary_list,
685 count_virtual_fns): Remove prototypes.
686 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
687 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
688 virtual_base_list_length_skip_primaries, virtual_base_index,
689 virtual_base_index_skip_primaries, class_index_in_primary_list,
690 count_virtual_fns): Remove.
691
692 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
693 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
694 (cp_print_value_fields): Remove support for HP aCC vtables.
695 (cp_print_value): Likewise.
696 * c-typeprint.c (c_type_print_base): Likewise.
697
698 * value.h (find_rt_vbase_offset): Remove prototype.
699 * valops.c (find_rt_vbase_offset): Remove.
700 (search_struct_method): Remove support for HP aCC vtables.
701 (find_method_list): Likewise.
702
703 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
704
705 * language.h (struct language_defn): Remove la_builtin_type_vector
706 and string_char_type members.
707 * language.c (language_string_char_type): No longer consult
708 la->string_char_type.
709 (language_lookup_primitive_type_by_name): No longer consult
710 current_language->la_builtin_type_vector.
711
712 * language.c (unknown_language_defn, auto_language_defn,
713 local_language_defn): Adapt initializer.
714 * ada-lang.c (ada_language_defn): Likewise.
715 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
716 minimal_language_defn): Likewise.
717 * f-lang.c (f_language_defn): Likewise.
718 * jv-lang.c (java_language_defn): Likewise.
719 * m2-lang.c (m2_language_defn): Likewise.
720 * objc-lang.c (objc_language_defn): Likewise.
721 * p-lang.c (pascal_language_defn): Likewise.
722 * scm-lang.c (scm_language_defn): Likewise.
723
724 2007-11-02 Markus Deuling <deuling@de.ibm.com>
725
726 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
727 current_gdbarch by gdbarch.
728 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
729 current architecture by frame_info.
730 * frame.h (frame_id_inner): Add gdbarch parameter.
731 * stack.c (return_command): Use get_frame_arch to get at the current
732 architecture by frame_info. Update call of frame_id_inner.
733 * infrun.c (handle_inferior_event): Likewise.
734 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
735 current architecture by regcache. Update call of frame_id_inner.
736
737 2007-11-02 Markus Deuling <deuling@de.ibm.com>
738
739 * gdbarch.sh (register_name): Add gdbarch parameter.
740 * gdbarch.{c,h}: Regenerate.
741
742 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
743 (tdesc_register_name): Replace current_gdbarch by gdbarch.
744 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
745
746 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
747 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
748 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
749 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
750 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
751 (mt_registers_info): Replace current_gdbarch by gdbarch.
752 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
753 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
754 current_gdbarch by gdbarch.
755 (mips_register_name): Add gdbarch to tdesc_register_name call.
756 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
757 current_gdbarch by gdbarch.
758 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
759 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
760 current_gdbarch by gdbarch.
761 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
762 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
763 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
764 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
765 architecture by frame_info.
766 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
767 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
768 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
769 parameter.
770 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
771 (h8300sx_register_name): Add gdbarch parameter.
772 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
773 gdbarch parameter. Replace current_gdbarch by gdbarch.
774 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
775 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
776 * arm-tdep.c (arm_register_name): Add gdbarch paramete
777 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
778 caller.
779 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
780 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
781 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
782 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
783 of alpha_register_name.
784 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
785 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
786 current_gdbarch by gdbarch.
787 (i386_register_type): Replace ?current_gdbarch by gdbarch.
788 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
789 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
790
791 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
792 (m68hc11_register_reggroup_p): Add gdbarch to call of
793 m68hc11_register_name.
794 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
795 (am33_2_register_name): Add gdbarch parameter.
796 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
797 architecture by frame_info.
798 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
799 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
800 current_gdbarch by gdbarch.
801 * score-tdep.c (score_register_name): Add gdbarch parameter.
802 (score_return_value, score_push_dummy_call): Replace current_gdbarch
803 by gdbarch.
804 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
805 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
806 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
807 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
808 and update caller. Replace current_gdbarch by gdbarch.
809 (sh64_extract_return_value, sh64_store_return_value): Use
810 get_regcache_arch to get at the current architecture by regcache.
811 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
812 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
813 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
814 (sh_sh3_dsp_register_name, sh_sh4_register_name)
815 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
816 parameter.
817 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
818 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
819 current_gdbarch by gdbarch.
820 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
821 get_regcache_arch to get at the current architecture by regcache.
822 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
823 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
824 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
825 parameter.
826 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
827 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
828 current_gdbarch by gdbarch.
829 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
830 (xtensa_frame_prev_register): Add gdbarch parameter to
831 xtensa_register_name call.
832
833 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
834
835 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
836 find_solib_trampoline_target if PC is not in .plt section.
837
838 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
839
840 * elfread.c (elf_symtab_read): When constructing a solib trampoline
841 minimal symbol from an undefined dynamic symbol, use proper section.
842
843 2007-10-31 Markus Deuling <deuling@de.ibm.com>
844
845 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
846 to get at the current architecture by regcache.
847
848 2007-10-30 Markus Deuling <deuling@de.ibm.com>
849
850 * libunwind-frame.c (libunwind_frame_sniffer)
851 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
852 (libunwind_frame_cache): Use get_frame_arch to get at the current
853 architecture by frame_info.
854 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
855
856 2007-10-30 Markus Deuling <deuling@de.ibm.com>
857
858 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
859 at the current architecture by frame_info.
860
861 2007-10-30 Markus Deuling <deuling@de.ibm.com>
862
863 * inf-child.c (inf_child_fetch_inferior_registers): Use
864 get_regcache_arch to get at the current architecture by regcache.
865
866 2007-10-30 Markus Deuling <deuling@de.ibm.com>
867
868 * inf-ptrace.c (inf_ptrace_fetch_registers)
869 (inf_ptrace_fetch_register, inf_ptrace_store_register)
870 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
871 current architecture by regcache.
872
873 2007-10-30 Markus Deuling <deuling@de.ibm.com>
874
875 * hpux-thread.c (hpux_thread_fetch_registers)
876 (hpux_thread_store_registers): Use get_regcache_arch to get at the
877 current architecture by regcache.
878
879 2007-10-30 Markus Deuling <deuling@de.ibm.com>
880
881 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
882 current architecture by frame_info.
883
884 2007-10-30 Markus Deuling <deuling@de.ibm.com>
885
886 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
887 (go32_store_registers): Use get_regcache_arch to get at the current
888 architecture by regcache.
889
890 2007-10-30 Markus Deuling <deuling@de.ibm.com>
891
892 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
893
894 2007-10-30 Markus Deuling <deuling@de.ibm.com>
895
896 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
897 to get at the current architecture by frame_info.
898
899 2007-10-30 Markus Deuling <deuling@de.ibm.com>
900
901 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
902
903 2007-10-30 Markus Deuling <deuling@de.ibm.com>
904
905 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
906 the current architecture by regcache.
907
908 2007-10-30 Markus Deuling <deuling@de.ibm.com>
909
910 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
911 current architecture by regcache.
912
913 2007-10-30 Markus Deuling <deuling@de.ibm.com>
914
915 * bsd-uthread.c (bsd_uthread_fetch_registers)
916 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
917 current architecture by regcache.
918
919 2007-10-30 Markus Deuling <deuling@de.ibm.com>
920
921 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
922 get_frame_arch to get at the current architecture by frame_info.
923
924 2007-10-30 Markus Deuling <deuling@de.ibm.com>
925
926 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
927
928 2007-10-30 Markus Deuling <deuling@de.ibm.com>
929
930 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
931 (store_regs): Use get_regcache_arch to get at the current architecture
932 by regcache.
933
934 2007-10-30 Markus Deuling <deuling@de.ibm.com>
935
936 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
937 to get at the current architecture by regcache.
938
939 2007-10-30 Markus Deuling <deuling@de.ibm.com>
940
941 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
942 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
943 the current architecture by regcache.
944
945 2007-10-30 Markus Deuling <deuling@de.ibm.com>
946
947 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
948 gdbarch.
949
950 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
951
952 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
953 soft float and vector ABIs. Support the generic vector ABI for
954 AltiVec types.
955 (do_ppc_sysv_return_value): Likewise. Correct argument types and
956 casts.
957 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
958 supported.
959 * ppc-tdep.h (enum powerpc_vector_abi): New.
960 (struct gdbarch_tdep): Add soft_float and vector_abi.
961 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
962 (powerpc_soft_float_global, powerpc_vector_strings)
963 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
964 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
965 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
966 (powerpc_set_vector_abi): New.
967 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
968 commands.
969 * Makefile.in (elf_ppc_h): New.
970 (rs6000-tdep.o): Update.
971
972 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
973
974 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
975 swapped offsets and VRSAVE offset.
976 (ppc64_linux_reg_offsets): Corrected swapped offsets.
977 (ppc32_linux_vrregset): Added.
978 (ppc_linux_regset_from_core_section): Added support for
979 .reg-ppc-vmx section.
980 * ppc-tdep.h (ppc_altivec_support_p): Declare.
981 (ppc_supply_vrregset): Declare.
982 (ppc_collect_vrregset): Declare.
983 * rs6000-tdep.c (ppc_altivec_support_p): Added.
984 (ppc_supply_vrregset): Added.
985 (ppc_collect_vrregset): Added.
986 * corelow.c (get_core_registers): Added support for
987 .reg-ppc-vmx section.
988
989 2007-10-29 Joel Brobecker <brobecker@adacore.com>
990
991 GDB 6.7.1 released.
992
993 2007-10-26 Jim Blandy <jimb@codesourcery.com>
994
995 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
996 deleted function.
997
998 * tracepoint.c (tracepoint_operation): Report the deletion event
999 after we have unlinked the tracepoint from the list, and use the
1000 proper tracepoint number.
1001
1002 * ax-gdb.c (expr_to_agent): Delete unused function.
1003 (expr_to_address_and_size): Delete #if 0'd function.
1004 * ax-gdb.h (expr_to_agent): Delete declaration.
1005
1006 * ax-gdb.c (gen_cast): Remove redundant assignment to
1007 value->type. Doc fix.
1008
1009 * ax-general.c (gen_traced_pop, gen_int_literal)
1010 (gen_usual_arithmetic): Check for typedefs.
1011
1012 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1013
1014 * parse.c (prefixify_expression): Minor reformatting.
1015
1016 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1017
1018 * version.in: Use dot instead of dash.
1019
1020 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1021
1022 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1023
1024 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1025
1026 * memory-map.c (parse_memory_map): Don't use an empty struct
1027 initializer.
1028
1029 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1030
1031 * signals/signals.c (signals): Update pointer to enum
1032 target_signal declaration.
1033
1034 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1035 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1036 Jim Blandy <jimb@codesourcery.com>
1037
1038 * dwarf2read.c (read_partial_die): check the value
1039 of DW_AT_calling_convention in Fortran programs.
1040
1041 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1042 Thiago Jung Bauermann <bauerman@br.ibm.com>
1043
1044 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1045 floating point in YYSTYPE union.
1046 (DECFLOAT) Add token and expression element handling code.
1047 (parse_number): Parse DFP constants, which end with suffix 'df',
1048 'dd' or 'dl'. Return DECFLOAT.
1049 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1050 handle OP_DECFLOAT.
1051 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1052 for DFP constants.
1053 (union exp_element): Add decfloatconst to represent DFP
1054 elements, which is 16 bytes by default.
1055 * parse.c (write_exp_elt_decfloatcst): New function to write a
1056 decimal float const into the expression.
1057 (operator_length_standard): Set operator length for OP_DECFLOAT
1058 to 4.
1059 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1060 * valarith.c (value_neg): Add code to handle the negation
1061 operation of DFP values.
1062 * value.c (value_from_decfloat): New function to get the value
1063 from a decimal floating point.
1064 * value.h (value_from_decfloat): Prototype.
1065
1066 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1067 Thiago Jung Bauermann <bauerman@br.ibm.com>
1068
1069 * c-lang.c (c_create_fundamental_type): Create fundamental
1070 types for DFP.
1071 * c-typeprint.c (c_type_print_varspec_prefix): Add
1072 TYPE_CODE_DECFLOAT to no prefix needed case.
1073 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1074 suffix needed case.
1075 * c-valprint.c (c_val_print): Call print_decimal_floating to
1076 print DFP values.
1077 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1078 attribute code and return TYPE_CODE_DECFLOAT.
1079 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1080 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1081 builtin_decdouble and builtin_declong.
1082 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1083 type code for DFP.
1084 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1085 types, for decimal floating point.
1086 (FT_NUM_MEMBERS): Increment, new types added.
1087 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1088 and builtin_declong.
1089 * valprint.c (print_decimal_floating): New function to print DFP
1090 values.
1091 * value.h (print_decimal_floating): Prototype.
1092
1093 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1094 Thiago Jung Bauermann <bauerman@br.ibm.com>
1095
1096 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1097 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1098 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1099 (INSTALLED_LIBS): Add -ldecnumber in.
1100 (CLIBS): Add LIBDECNUMBER in.
1101 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1102 headers.
1103 (dfp_h): New macros for decimal floating point.
1104 (dfp.o): New target.
1105 (COMMON_OBS): Add dfp.o in.
1106 (c-exp.o): Add dfp_h as dependency.
1107 (valprint.o): Add dfp_h as dependency.
1108 (value.o): Add dfp_h as dependency.
1109 * dfp.h: New header file for decimal floating point support in
1110 GDB.
1111 * dfp.c: New source file for decimal floating point support in
1112 GDB. Implement decimal_from_string and decimal_to_string based
1113 on libdecnumber API.
1114 * configure.ac: Add AC_C_BIGENDIAN test.
1115 * config.in, configure: Regenerate.
1116
1117 2007-10-25 David Ung <davidu@mips.com>
1118 Maciej W. Rozycki <macro@mips.com>
1119
1120 PR exp/1926
1121 * infcmd.c (registers_info): Check for a user register before
1122 calling target's gdbarch_print_registers_info(). If found to be
1123 so, extract the implicit value of user register and call
1124 print_scalar_formatted().
1125 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1126
1127 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1128
1129 * NEWS: Document status of hppa64-hpux support.
1130
1131 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1132
1133 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1134 set_solib_ops to install SVR4 operations.
1135 (_initialize_svr4_solib): Do not set current_target_so_ops.
1136
1137 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1138 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1139
1140 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1141
1142 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1143 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1144 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1145 * solib-legacy.c: Remove file.
1146
1147 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1148 * config/arm/linux.mt (TDEPFILES): Likewise.
1149 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1150 * config/ia64/linux.mt (TDEPFILES): Likewise.
1151 * config/m32r/linux.mt (TDEPFILES): Likewise.
1152 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1153 * config/s390/s390.mt (TDEPFILES): Likewise.
1154
1155 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1156 set_solib_svr4_fetch_link_map_offsets.
1157 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1158 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1159
1160 * i386gnu-tdep.c: Include "solib-svr4.h".
1161 * Makefile.in: Update dependencies.
1162
1163 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1164
1165 * i386-nto-tdep.c: Include "solib.h".
1166 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1167 current_target_so_ops members.
1168 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1169 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1170 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1171 * Makefile.in: Update dependencies.
1172
1173 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1174
1175 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1176 (arm_wince_init_abi): Call set_solib_ops.
1177 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1178 (i386_cygwin_init_abi): Call set_solib_ops.
1179 * solib-target.c: Include "solib-target.h".
1180 (solib_target_so_ops): Make global.
1181 (_initialize_solib_target): Do not set current_target_so_ops.
1182 * solib-target.h: New file.
1183 * Makefile.in: Update dependencies.
1184
1185 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1186
1187 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1188 (mips_irix_init_abi): Call set_solib_ops.
1189 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1190 (irix_so_ops): Make global.
1191 (_initialize_irix_solib): Do not set current_target_so_ops.
1192 * solib-irix.h: New file.
1193 * Makefile.in: Update dependencies.
1194
1195 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1196
1197 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1198 * config/pa/hppa64.mt: Delete file.
1199 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1200 (TDEPFILES): Move somread.o to ...
1201 * config/pa/hpux.mh (NATDEPFILES): ... here.
1202
1203 * configure.ac: Add check for elf_hp.h header.
1204 Search libdl and libxpdl for dlgetmodinfo.
1205 * config.in, configure: Regenerate.
1206 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1207 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1208 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1209 set_solib_ops instead of modifying current_target_so_ops.
1210 * solib-pa64.h (pa64_solib_select): Update prototype.
1211 * solib-som.c: Remove include of "som.h". Include "solib.h".
1212 (som_solib_select): Take gdbarch instead of tdep argument. Call
1213 set_solib_ops instead of modifying current_target_so_ops.
1214 * solib-som.h (som_solib_select): Update prototype.
1215 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1216 of tdep to som_solib_select call.
1217 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1218 pa64_solib_select call.
1219 * Makefile.in: Update dependencies.
1220
1221 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1222
1223 * frv-tdep.c: Include "solib.h".
1224 (frv_gdbarch_init): Call set_solib_ops.
1225 * frv-tdep.h (struct target_so_ops): Add forward reference.
1226 (frv_so_ops): Add extern declaration.
1227 * solib-frv.c (frv_so_ops): Make global.
1228 (_initialize_frv_solib): Do not set current_target_so_ops.
1229 * Makefile.in: Update dependencies.
1230
1231 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1232
1233 * solib.c (solib_global_lookup): Use solib_ops instead of global
1234 current_target_so_ops.
1235
1236 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1237
1238 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1239 * config/frv-tm-frv.h: Delete file.
1240
1241 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1242
1243 * NEWS: Mention gdbserver support for non-libthread_db operation.
1244
1245 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1246
1247 * amd64-tdep.c (amd64_convert_register_p): Delete.
1248 (amd64_init_abi): Use i387_convert_register_p.
1249 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1250 eight byte types.
1251 (alpha_register_to_value, alpha_value_to_register): Do not handle
1252 eight byte types.
1253 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1254 * i387-tdep.c (i387_convert_register_p): New.
1255 (i387_register_to_value, i387_value_to_register): Update comments.
1256 * i387-tdep.h (i387_convert_register_p): Declare.
1257 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1258 builtin_type_ia64_ext.
1259 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1260 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1261 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1262 builtin_type_m68881_ext.
1263 (m68k_register_to_value, m68k_value_to_register): Update comments.
1264
1265 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1266
1267 * target-memory.c (claim_memory): Propagate baton for split memory
1268 requests.
1269
1270 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1271
1272 PR gdb/2341
1273 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1274 alias warning bug.
1275
1276 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1277
1278 * symtab.c (find_line_symtab): scan through psymtabs
1279 when exact_match is zero.
1280
1281 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1282
1283 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1284 (deal_with_atomic_sequence): New.
1285 (mips_software_single_step): Use it.
1286
1287 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1288
1289 PR gdb/2336
1290 * configure.ac: Modify $LIBINTL before the BFD check.
1291 * configure: Regenerated.
1292
1293 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1294
1295 * buildsym.c (free_pending_blocks): Remove commented-out code.
1296 (make_blockvector): Likewise. Re-use free_pending_blocks.
1297 (end_symtab): Remove commented-out code.
1298
1299 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1300
1301 * top.c (command_loop): Fix output for shrinkage.
1302
1303 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1304
1305 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1306 (exp): Remove and document function-like casts.
1307
1308 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1309
1310 * cp-support.c: Include "safe-ctype.h".
1311 (cp_already_canonical): New function.
1312 (cp_canonicalize_string): Use it. Return NULL for already canonical
1313 strings.
1314 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1315 (cp_func_name, remove_params): Likewise.
1316 (cp_find_first_component_aux): Use ISSPACE.
1317 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1318 MEMORY_P argument.
1319 * cp-name-parser.y (ALLOC_CHUNK): Define.
1320 (struct demangle_info): Add PREV and NEXT. Increase the size of
1321 COMPS.
1322 (d_grab): Convert to a function.
1323 (allocate_info): Rewrite.
1324 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1325 strlen. Update call to allocate_info. Do not free it on failure.
1326 (main): Update calls to cp_demangled_name_to_comp.
1327 * Makefile.in (cp-support.o): Update.
1328
1329 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1330
1331 * std-regs.c (value_of_builtin_frame_fp_reg)
1332 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1333 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1334 current architecture by frame_info.
1335
1336 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1337
1338 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1339 by gdbarch.
1340
1341 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1342
1343 * infcmd.c (default_print_registers_info, print_return_value)
1344 (print_vector_info, print_float_info): Replace current_gdbarch by
1345 gdbarch.
1346 (registers_info): Use get_frame_arch to get at the current
1347 architecture by frame_info.
1348
1349 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1350
1351 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1352 get_regcache_arch to get at the current architecture by regcache.
1353
1354 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1355
1356 * target.c (debug_print_register): Use get_regcache_arch to get at the
1357 current architecture by regcache.
1358
1359 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1360
1361 * dwarf2read.c (read_file_scope): Add a comment.
1362 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1363 (read_enumeration_type, process_enumeration_scope, read_array_type)
1364 (read_typedef, read_base_type, read_subrange_type)
1365 (read_unspecified_type): Use dwarf2_name.
1366
1367 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1368
1369 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1370 * dwarf2read.c (dwarf2_free_objfile): New.
1371 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1372 * symfile.h (dwarf2_free_objfile): Declare.
1373
1374 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1375
1376 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1377
1378 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1379
1380 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1381 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1382 default dwarf2_frame_set_init_reg function.
1383
1384 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1385
1386 * NEWS: Mention native MinGW configuration.
1387
1388 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1389
1390 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1391 of "macro" column throughout the file. Remove (empty) "macro" entry
1392 of all gdbarch functions.
1393
1394 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1395
1396 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1397 * gdbarch.c, gdbarch.h: Regenerate.
1398 * dbxread.c (find_stab_function_addr): Define unconditionally.
1399 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1400 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1401 (end_psymtab): Likewise.
1402 (process_one_symbol): Likewise.
1403 * mdebugread.c (parse_partial_symbols): Likewise.
1404
1405 * symtab.h (struct minimal_symbol): Always define "filename" member.
1406 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1407 * minsyms.c (lookup_minimal_symbol): Likewise.
1408 * symmisc.c (dump_msymbols): Likewise.
1409
1410 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1411 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1412 * config/i386/tm-i386sol2.h: Remove file.
1413 * config/i386/tm-linux.h: Remove file.
1414 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1415 set_gdbarch_sofun_address_maybe_missing.
1416 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1417
1418 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1419 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1420 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1421 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1422 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1423 * config/powerpc/tm-ppc-eabi.h: Remove file.
1424 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1425 set_gdbarch_sofun_address_maybe_missing.
1426
1427 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1428 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1429 * config/sparc/tm-sol2.h: Remove file.
1430 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1431 set_gdbarch_sofun_address_maybe_missing.
1432 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1433
1434 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1435
1436 * gdbarch.sh (static_transform_name): New gdbarch callback.
1437 * gdbarch.c, gdbarch.h: Regenerate.
1438 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1439 instead of STATIC_TRANSFORM_NAME.
1440 * mdebugread.c (parse_partial_symbols): Likewise.
1441 * stabsread.c (define_symbol): Likewise.
1442 * xcoffread.c (scan_xcoff_symtab): Likewise.
1443
1444 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1445 (IS_STATIC_TRANSFORM_NAME): Remove.
1446 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1447 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1448 (i386_sol2_init_abi): Install it.
1449
1450 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1451 (IS_STATIC_TRANSFORM_NAME): Remove.
1452 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1453 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1454 (sparc32_sol2_init_abi): Install it.
1455 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1456 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1457
1458 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1459
1460 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1461 (mips_n32n64_return_value, mips_o32_return_value)
1462 (mips_o64_return_value): Update calls to mips_xfer_register.
1463
1464 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1465
1466 * frame.c (frame_unwind_unsigned_register): Delete.
1467 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1468 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1469
1470 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1471 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1472 mt-tdep.c: Replace frame_unwind_unsigned_register with
1473 frame_unwind_register_unsigned.
1474
1475 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1476
1477 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1478 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1479 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1480 include procfs.h.
1481 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1482 if not building on Cygwin.
1483 (win32_make_so, handle_output_debug_string, handle_exception)
1484 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1485 (win32_attach): Only fallback to Cygwin pids if building on
1486 Cygwin.
1487 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1488 building on Cygwin.
1489 (win32_create_inferior): Disable starting the inferior through a
1490 shell, environment var processing and tty handling if not building
1491 on Cygwin.
1492 (cygwin_pid_to_str): Rename to ...
1493 (win32_pid_to_str): ... this.
1494 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1495 and "cygwin-exceptions" commands if not building on Cygwin.
1496
1497 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1498
1499 * doc/gdb.texinfo: Add TSIZE definition, removed
1500 statement about unbounded arrays being unimplemented.
1501 * m2-valprint.c (m2_print_array_contents): New function.
1502 (m2_print_unbounded_array): New function.
1503 (m2_print_array_contents): New function.
1504 * m2-typeprint.c (m2_unbounded_array): New function.
1505 (m2_is_unbounded_array): New function.
1506 (m2_print_type): Test for unbounded array when walking
1507 across structs.
1508 * m2-lang.h: Added extern m2_is_unbounded_array.
1509 * m2-lang.c (evaluate_subexp_modula2): New function.
1510 (exp_descriptor_modula2): New structure.
1511 (m2_language_defn): Use exp_descriptor_modula2.
1512 * m2-exp.y: Added TSIZE and binary subscript.
1513
1514 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1515
1516 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1517 after freeing it.
1518
1519 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1520
1521 * m32r-tdep.c (decode_prologue): Sign extend offset for
1522 "addi sp, xx" case.
1523 (m32r_frame_unwind_cache): Likewise.
1524
1525 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1526
1527 * rs6000-tdep.c (skip_prologue): Restore comment with
1528 function description to its proper place.
1529
1530 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1531
1532 * NEWS: Mention gdbserver PowerPC improvements.
1533
1534 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1535
1536 * features/Makefile (WHICH): Add PowerPC register definitions.
1537 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1538 (rs6000/powerpc-64-expedite): New macros.
1539 ($(outdir)/%.dat): Handle subdirectories.
1540 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1541 regformats/rs6000/powerpc-e500.dat: New generated files.
1542
1543 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1544
1545 * ppc-linux-nat.c (ppc_linux_read_description): New.
1546 (_initialize_ppc_linux_nat): Set to_read_description.
1547 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1548
1549 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1550
1551 * NEWS: Document target described register support for PowerPC.
1552 * ppc-tdep.h: Remove ppc_spr constants.
1553 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1554 ppc_builtin_type_vec128 members.
1555 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1556 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1557 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1558 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1559 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1560 * rs6000-tdep.c: Include preparsed descriptions.
1561 (init_sim_regno_table): Do not iterate over pseudo registers.
1562 Look up segment registers by name. Use sim_spr_register_name
1563 for SPRs.
1564 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1565 (rs6000_builtin_type_vec128): Delete.
1566 (rs6000_register_name): Only handle SPE pseudo registers and upper
1567 halves. Call tdesc_register_name for everything else.
1568 (rs6000_register_type): Delete. Replace with...
1569 (rs6000_pseudo_register_type): ...this new function. Only handle
1570 SPE pseudo registers.
1571 (rs6000_register_reggroup_p): Delete. Replace with...
1572 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1573 handle SPE pseudo registers.
1574 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1575 "struct reg".
1576 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1577 of reg->fpr.
1578 (e500_register_reggroup_p): Delete.
1579 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1580 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1581 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1582 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1583 (registers_powerpc, registers_403, registers_403GC, registers_505)
1584 (registers_860, registers_601, registers_602, registers_603)
1585 (registers_604, registers_750, registers_7400, registers_e500): Delete
1586 variables.
1587 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1588 tdesc.
1589 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1590 (variants): Delete outdated comment. Use standard target descriptions
1591 instead of "struct reg" arrays.
1592 (init_variants): Delete.
1593 (rs6000_gdbarch_init): Do not guess word size from the BFD
1594 architecture if we have a target description. Select a variant
1595 before creating a new architecture. Use the variant's target
1596 description if the target did not define a register layout.
1597 Validate target-supplied registers. Reject mismatches. Use
1598 fixed register numbers and new constants instead of magic
1599 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1600 (_initialize_rs6000_tdep): Initialize the preparsed target
1601 descriptions.
1602 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1603 uint128.
1604 (tdesc_find_register_early): New function.
1605 (tdesc_numbered_register): Use it.
1606 (tdesc_register_size): New function.
1607 (tdesc_use_registers): Take a target_desc argument. Do not use
1608 gdbarch_target_desc.
1609 * target-descriptions.h (tdesc_use_registers): Update prototype
1610 and comment.
1611 (tdesc_register_size): New prototype.
1612 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1613 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1614 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1615 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1616 (rs6000-tdep.o): Update.
1617 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1618 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1619 * mips-tdep.c (mips_gdbarch_init): Likewise.
1620
1621 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1622
1623 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1624 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1625 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1626 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1627 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1628 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1629 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1630 generated files.
1631
1632 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1633
1634 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1635 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1636 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1637 feature descriptions for standard PowerPC register sets.
1638
1639 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1640 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1641 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1642 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1643 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1644 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1645 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1646 target descriptions for PowerPC processors.
1647
1648 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1649
1650 * target-descriptions.c (tdesc_predefined_types): New.
1651 (tdesc_named_type): Use it.
1652 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1653 (_intialize_target_descriptions): Register "maint print c-tdesc".
1654 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1655 (cfiles, %.c): New rules.
1656 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1657 features/mips64-linux.c: New generated files.
1658
1659 * arm-linux-nat.c: Include preparsed description instead of
1660 "xml-support.h".
1661 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1662 (arm_linux_read_description): New function.
1663 (_initialize_arm_linux_nat): Set to_read_description instead of
1664 to_xfer_partial. Initialize preparsed description.
1665 * config/arm/linux.mh (TDEP_XML): Delete.
1666 * mips-linux-nat.c: Include preparsed descriptions instead of
1667 "xml-support.h".
1668 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1669 (mips_linux_read_description): New function.
1670 (_initialize_mips_linux_nat): Set to_read_description instead of
1671 to_xfer_partial. Initialize preparsed description.
1672 * config/mips/linux.mh (TDEP_XML): Delete.
1673 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1674 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1675 (mips64_linux_c): New macros.
1676 (arm-linux-nat.o, mips-linux-nat.o): Update.
1677
1678 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1679
1680 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1681 Replace xasprintf by xstrprintf.
1682 symfile-mem.c (add_vsyscall_page): Ditto.
1683
1684 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1685
1686 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1687 replacing use of global current_gdbarch.
1688 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1689 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1690
1691 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1692 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1693 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1694 (ia64_sigtramp_frame_cache): Update caller.
1695
1696 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1697
1698 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1699 (extract_return_value, store_return_value): Remove.
1700 (return_value): Remove default implementation.
1701 * gdbarch.c, gdbarch.h: Regenerate.
1702
1703 * stack.c (return_command): Remove compatibility hack.
1704 * arch-utils.c (legacy_return_value): Remove.
1705 * arch-utils.h (legacy_return_value): Likewise.
1706
1707 * arch-utils.c (always_use_struct_convention): Remove.
1708 * arch-utils.h (always_use_struct_convention): Likewise.
1709 * value.c (generic_use_struct_convention): Remove.
1710 * defs.h (generic_use_struct_convention): Likewise.
1711
1712 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1713
1714 * avr-tdep.c (avr_return_value): New function.
1715 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1716 set_gdbarch_extract_return_value.
1717
1718 * fvr-tdep.c (frv_return_value): New function.
1719 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1720 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1721 and set_gdbarch_deprecated_use_struct_convention.
1722
1723 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1724 Add check for structure, union, or array types.
1725 (ia64_extract_return_value): Make static.
1726 (ia64_store_return_value): Make static. Support multi-word values.
1727 (ia64_return_value): New function.
1728 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1729 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1730 and set_gdbarch_deprecated_use_struct_convention.
1731
1732 2007-10-12 Joel Brobecker <brobecker@adacore.com>
1733
1734 * solib-target.c (solib_target_parse_libraries)
1735 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1736
1737 2007-10-12 Jim Blandy <jimb@codesourcery.com>
1738
1739 * serial.h (struct serial_ops): Document read_prim to return zero
1740 at EOF.
1741 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1742 read_prim returns zero, not SERIAL_TIMEOUT.
1743
1744 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1745
1746 * alpha-mdebug-tdep.c: Include "gdb_string.h".
1747 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1748 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1749 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1750
1751 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
1752 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
1753 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
1754 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1755 * config/alpha/tm-alpha.h: Remove file.
1756
1757 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1758
1759 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
1760 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
1761
1762 * config/pa/tm-hppa.h: Delete file.
1763 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
1764 * config/pa/hppahpux.mt: Likewise.
1765 * config/pa/hppa.mt: Likewise.
1766 * config/pa/linux.mt: Likewise.
1767 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
1768
1769 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1770
1771 * config/arm/nm-nbsdaout.h: Remove file.
1772 * config/nm-nbsdaout.h: Likewise.
1773 * config/nm-nbsd.h: Likewise.
1774
1775 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1776
1777 * block.h (struct block): Remove "gcc_compile_flag" member.
1778 (BLOCK_GCC_COMPILED): Remove.
1779 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
1780 * buildsym.c (finish_block): Do not set it.
1781 * symmisc.c (dump_symtab_1): Do not dump it.
1782
1783 * value.h (using_struct_return): Remove "gcc_p" argument.
1784 * value.c (using_struct_return): Likewise.
1785 * eval.c (evaluate_subexp_standard): Adapt callers.
1786 * infcall.c (call_function_by_hand): Likewise.
1787 * stack.c (return_command): Likewise.
1788 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1789
1790 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
1791 * gdbarch.c, gdbarch.h: Regenerate.
1792 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
1793 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
1794 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1795 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
1796 (push_dummy_code, call_function_by_hand): Adapt callers.
1797
1798 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1799
1800 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
1801 (finish_command_continuation, finish_command): Adapt callers.
1802
1803 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1804
1805 * infcall.c (call_function_by_hand): Remove special handling
1806 for HP aCC compiled code.
1807
1808 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1809
1810 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
1811 reference. Fix endianness bugs.
1812 (cris_reg_struct_has_address): Remove.
1813 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
1814 and set_gdbarch_deprecated_use_struct_convention calls.
1815
1816 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
1817 * gdbarch.c, gdbarch.h: Regenerate.
1818 * infcall.c (call_function_by_hand): Remove handling of
1819 deprecated_reg_struct_has_addr.
1820
1821 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1822 Kazu Hirata <kazu@codesourcery.com>
1823
1824 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
1825 checking watchpoint resources.
1826
1827 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1828
1829 * memattr.c (inaccessible_by_default): Change the initial
1830 value to 1.
1831
1832 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1833
1834 PR gdb/2280
1835 * coffread.c (read_one_sym): Check for read errors.
1836
1837 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
1838
1839 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
1840 instead of "Linux 2.6.19" in comment.
1841 (linux_xfer_partial): Use "GNU/Linux target" instead of
1842 "Linux target" in comment.
1843 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
1844 (m68k_linux_get_sigtramp_info): Likewise.
1845
1846 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1847
1848 * MAINTAINERS (language support): List Joel and Paul as
1849 Ada maintainers.
1850
1851 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1852
1853 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
1854 checks.
1855 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
1856 not set DEPRECATED_TM_FILE.
1857 * config/arm/tm-arm.h: Delete file.
1858
1859 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
1860
1861 * MAINTAINERS (Write After Approval): Add self.
1862
1863 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1864
1865 * buildsym.c (record_line): Remove empty lines followed by
1866 end-of-sequence markers.
1867
1868 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1869
1870 * configure.tgt: Recognize fido-*-elf.
1871
1872 2007-10-10 Joel Brobecker <brobecker@adacore.com>
1873
1874 GDB 6.7 released.
1875
1876 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1877
1878 * stack.c (print_frame_args, frame_info, return_command): Use
1879 get_regcache_arch or get_frame_arch to get at the current architecture
1880 by regcache or by frame, respectively.
1881
1882 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1883
1884 * rs6000-nat.c (fetch_register, store_register)
1885 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
1886 get_regcache_arch to get at the current architecture by regcache.
1887
1888 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
1889 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
1890 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
1891 current_gdbarch by gdbarch.
1892 (rs6000_skip_trampoline_code, rs6000_register_to_value)
1893 (rs6000_value_to_register): Use get_frame_arch to get at the current
1894 architecture by frame_info.
1895
1896 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1897
1898 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
1899 get_regcache_arch to get at the current architecture by regcache.
1900
1901 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1902 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
1903 get_regcache_arch to get at the current architecture by regcache.
1904
1905 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
1906 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1907 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
1908 current architecture by regcache.
1909
1910 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1911
1912 * remote-mips.c (mips_wait, mips_fetch_registers)
1913 (mips_store_registers): Use get_regcache_arch to get at the
1914 current architecture by regcache.
1915
1916 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
1917 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
1918 get at the current architecture by regcache.
1919 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
1920 architecture by frame_info.
1921
1922 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1923 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1924 the current architecture by regcache.
1925
1926 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1927 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
1928 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
1929 current architecture by frame_info.
1930 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
1931 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
1932 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
1933 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
1934 get at the current architecture by regcache.
1935
1936 * mips-linux-nat.c (mips_linux_register_addr)
1937 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
1938 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
1939 (mips64_linux_regsets_fetch_registers)
1940 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
1941 the current architecture by regcache.
1942
1943 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
1944 get at the current architecture by frame_info.
1945
1946 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1947
1948 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
1949 current architecture by regcache.
1950 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
1951 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
1952 (mips_stub_frame_cache, mips_read_fp_register_single)
1953 (mips_read_fp_register_double, mips_print_fp_register)
1954 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
1955 at the current architecture by frame_info.
1956 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
1957 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
1958 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
1959 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1960 (mips_o32_push_dummy_call, mips_o32_return_value)
1961 (mips_o64_push_dummy_call, mips_o64_return_value)
1962 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
1963 gdbarch.
1964
1965 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1966
1967 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
1968 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
1969 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1970 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
1971 (xtensa_register_write_masked, xtensa_register_read_masked)
1972 (xtensa_supply_gregset, xtensa_store_return_value)
1973 (xtensa_extract_return_value): Use get_regcache_arch to get at the
1974 current architecture by regcache.
1975 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
1976 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
1977 architecture by frame_info.
1978
1979 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
1980
1981 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
1982 (thumb_analyze_prologue): Move pv_area_store_would_trash call
1983 out of loop. Do not set cache->frameoffset.
1984 (arm_scan_prologue): Use prologue-value mechanism. Do not set
1985 frameoffset. Simplify framesize.
1986 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
1987 frameoffset.
1988 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
1989
1990 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
1991
1992 * target.c (update_current_target): Call setup_target_debug.
1993 (push_target): Do not call it here.
1994
1995 2007-10-09 Michael Snyder <msnyder@specifix.com>
1996
1997 * MAINTAINERS: Update my email address.
1998
1999 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2000
2001 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2002 their expression:
2003 (xtensa_pseudo_register_read)
2004 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2005 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2006 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2007 (xtensa_pseudo_register_read)
2008 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2009 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2010 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2011 (xtensa_frame_prev_register): NUM_AREGS.
2012 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2013 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2014 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2015 (xtensa_supply_gregset, xtensa_frame_cache)
2016 (xtensa_frame_prev_register): WS_REGNUM.
2017 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2018 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2019 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2020 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2021 (xtensa_register_reggroup_p): REGMAP.
2022 (call0_track_op): LITBASE_REGNUM.
2023 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2024 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2025 (xtensa_frame_prev_register, AREG_NUMBER)
2026 (xtensa_register_type): AR_BASE.
2027 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2028 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2029 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2030 (xtensa_frame_cache, xtensa_frame_prev_register)
2031 (xtensa_extract_return_value, xtensa_store_return_value)
2032 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2033 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2034 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2035 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2036 (call0_frame_cache): A1_REGNUM.
2037 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2038 (xtensa_push_dummy_call): A4_REGNUM.
2039 (ARGS_FIRST_REG): A6_REGNUM.
2040 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2041 (xtensa_frame_prev_register): A15_REGNUM.
2042 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2043 them in the appropriate source file:
2044 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2045 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2046 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2047 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2048 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2049 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2050 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2051 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2052 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2053 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2054 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2055
2056 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2057
2058 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2059 the current architecture by frame_info.
2060 (h8300_frame_prev_register
2061 (h8300_print_register): Replace current_gdbarch by gdbarch.
2062 (h8300_print_registers_info, h8300_register_type)
2063 (h8300_register_type): Likewise.
2064
2065 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2066
2067 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2068 the current architecture by regcache.
2069 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2070 (i386_linux_fetch_inferior_registers)
2071 (i386_linux_store_inferior_registers): Likewise.
2072 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2073 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2074 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2075 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2076 (i386_extract_return_value, i386_store_return_value): Likewise.
2077 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2078 the current architecture by frame_info.
2079 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2080 (i386_register_to_value, i386_value_to_register): Likewise.
2081
2082 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2083
2084 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2085 the current architecture by regcache.
2086 (monitor_store_register, monitor_store_registers): Likewise.
2087
2088 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2089
2090 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2091 the current architecture by regcache.
2092
2093 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2094
2095 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2096 gdbarch.
2097
2098 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2099
2100 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2101 architecture by frame.
2102 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2103 (inside_main_func, frame_sp_unwind): Likewise.
2104
2105 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2106
2107 * solib-svr4.c (enable_break): Add the dynamic linker also if
2108 auxv succeeds.
2109
2110 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2111
2112 * MAINTAINERS (Write After Approval): Add self.
2113
2114 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2115
2116 * stabsread.c (read_huge_number): Initialize local variable to 0.
2117
2118 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2119
2120 * p-lang.h (pascal_main_name): Add declaration.
2121 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2122 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2123 (pascal_main_name): New function.
2124 * symtab.c: Include p-lang.h.
2125 (find_main_name): Add call to pascal_main_name.
2126 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2127
2128 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2129
2130 * stabsread.c (read_huge_number): Fix handling of octal
2131 representation when the bit width is known.
2132 (read_range_type): Record unsigned integral types with their size,
2133 when the type size is known.
2134
2135 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2136
2137 * MAINTAINERS (Write After Approval): Add self.
2138
2139 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2140
2141 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2142 Replace asprintf by xstrprintf.
2143
2144 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2145
2146 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2147 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2148
2149 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2150
2151 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2152 <sys/wait.h> include before last commit.
2153
2154 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2155
2156 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2157
2158 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2159
2160 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2161 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2162 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2163 (store_regs_user_thread, store_regs_kernel_thread): Use
2164 get_regcache_arch or get_frame_arch to get at the current architecture
2165 by regcache or by frame, respectively.
2166
2167 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2168
2169 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2170 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2171 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2172 (sh64_print_register, sh64_media_print_registers_info)
2173 (sh64_compact_print_registers_info, sh64_unwind_sp)
2174 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2175 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2176 (sh64_frame_prev_register): Use FRAME to recognize current
2177 architecture.
2178
2179 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2180
2181 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2182 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2183 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2184 current_gdbarch by gdbarch.
2185 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2186 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2187 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2188 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2189 recognize current architecture.
2190
2191 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2192
2193 * remote.c (init_remote_state, fetch_register_using_p)
2194 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2195 (store_register_using_P, store_registers_using_G)
2196 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2197 get at the current architecture by regcache or by frame, respectively.
2198
2199 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2200
2201 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2202 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2203 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2204 get_regcache_arch or get_frame_arch to get at the current architecture
2205 by regcache or by frame, respectively.
2206 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2207 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2208 (store_register, old_store_inferior_registers, supply_gregset)
2209 (supply_fpregset, fill_fpregset): Likewise.
2210 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2211 Replace current_gdbarch by gdbarch.
2212
2213 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2214
2215 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2216 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2217 get_frame_arch to get at the current architecture by regcache or by
2218 frame, respectively.
2219
2220 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2221
2222 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2223 Replace current_gdbarch by gdbarch.
2224 * ia64-tdep.c (ia64_frame_prev_register
2225 (ia64_sigtramp_frame_prev_register)
2226 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2227 get_frame_arch to get at the current architecture by regcache or by
2228 frame, respectively.
2229 * ia64-linux-nat.c (ia64_linux_fetch_register)
2230 (ia64_linux_fetch_registers, ia64_linux_store_register)
2231 (ia64_linux_store_registers): Likewise.
2232
2233 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2234
2235 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2236 current_gdbarch by gdbarch.
2237 * hppa-linux-nat.c (fetch_register, store_register)
2238 (hppa_linux_fetch_inferior_registers)
2239 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2240 get_frame_arch to get at the current architecture by regcache or by
2241 frame, respectively.
2242 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2243 (hppa_hpux_unwind_adjust_stub): Likewise.
2244 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2245 (hppa_hpux_fetch_inferior_registers)
2246 (hppa_hpux_store_inferior_registers): Likewise.
2247
2248 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2249
2250 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2251 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2252 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2253 or get_frame_arch to get at the current architecture by regcache or by
2254 frame, respectively.
2255 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2256 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2257 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2258 current_gdbarch by gdbarch.
2259
2260 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2261
2262 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2263 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2264 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2265 get at the current architecture by regcache or by·frame, respectively.
2266 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2267 gdbarch.
2268
2269 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2270
2271 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2272 Use get_regcache_arch or get_frame_arch to get at the current
2273 architecture by regcache or by frame, respectively.
2274 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2275 * amd64-nat.c (amd64_supply_native_gregset)
2276 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2277
2278 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2279
2280 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2281 gdbarch.
2282 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2283 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2284 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2285 get_frame_arch to get at the current architecture by regcache or by
2286 frame, respectively.
2287 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2288
2289 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2290
2291 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2292 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2293 current_gdbarch by gdbarch.
2294 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2295
2296 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2297
2298 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2299 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2300 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2301 get_frame_arch to get at the current architecture by regcache or by
2302 frame, respectively.
2303
2304 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2305
2306 * findvar.c (value_of_register, locate_var_value): Use
2307 get_regcache_arch or get_frame_arch to get at the current architecture
2308 by regcache or by frame, respectively.
2309 * findvar.c (default_value_from_register, value_from_register): Replace
2310 current_gdbarch by gdbarch.
2311
2312 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2313
2314 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2315
2316 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2317
2318 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2319 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2320
2321 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2322
2323 * remote.c (get_offsets): Only call free_symfile_segment_data if
2324 data was allocated.
2325
2326 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2327
2328 * objc-exp.y: ARI fix: remove 4 PARAMS.
2329
2330 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2331
2332 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2333 news. Mention XML support for M68K in GDB 6.7.
2334
2335 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2336
2337 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2338 bounds.
2339 (init_vector_type): Use builtin_type_int32.
2340
2341 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2342
2343 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2344 size to enable bi-arch generate-core-file support.
2345
2346 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2347
2348 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2349
2350 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2351
2352 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2353 signal handler.
2354 * tui/tui-win.c (tui_initialize_win): New function for
2355 initializing tui's SIGWINCH signal handler.
2356 * tui/tui-win.h (tui_initialize_win): Declare.
2357
2358 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2359
2360 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2361 pointer to uintptr_t before casting to CORE_ADDR.
2362
2363 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2364
2365 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2366
2367 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2368
2369 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2370 * ser-mingw.c (enum select_thread_state): New type.
2371 (struct ser_console_state): Add have_started and thread_state.
2372 (select_thread_wait): New function.
2373 (thread_fn_type): New type.
2374 (create_select_thread): New function.
2375 (destroy_select_thread): Likewise.
2376 (start_select_thread): Likewise.
2377 (stop_select_thread): Likewise.
2378 (console_select_thread): Use new functions.
2379 (pipe_select_thread): Likewise.
2380 (file_select_thread): Likewise.
2381 (ser_console_wait_handle): Likewise.
2382 (ser_console_done_wait_handle): Likewise.
2383 (ser_console_close): Likewise.
2384 (free_pipe_state): Likewise.
2385 (pipe_wait_handle): Likewise.
2386 (pipe_done_wait_handle): Likewise.
2387 (struct net_windows_state): Derive from ser_console_state.
2388 (net_windows_select_thread): Use new functions.
2389 (net_windows_wait_handle): Likewise.
2390 (net_windows_done_wait_handle): Likewise.
2391 (net_windows_close): Likewise.
2392
2393 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2394
2395 * inflow.c (terminal_ours_1): Remove useless line.
2396
2397 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2398
2399 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2400 odd FP registers.
2401 (mips_print_fp_register): Correct check for even FP registers.
2402 (mips_virtual_frame_pointer): New function.
2403 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2404
2405 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2406
2407 * value.h (lookup_only_internalvar): New prototype.
2408 (create_internalvar): Likewise.
2409 * value.c (lookup_only_internalvar): New function.
2410 (create_internalvar): Likewise.
2411 (lookup_internalvar): Use new lookup_only_internalvar and
2412 create_internalvar functions.
2413 * parse.c (write_dollar_variable): Look up $ symbols in internal
2414 table first rather than last.
2415
2416 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2417
2418 * linux-nat.c (linux_nat_new_thread): New variable.
2419 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2420 linux_nat_switch_fork.
2421 (lwp_list): Make public.
2422 (add_lwp): Call linux_nat_new_thread.
2423 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2424 the new thread.
2425 (resume_callback): Clear lp->siginfo. Remove unused variable.
2426 (linux_nat_resume): Assert that the LWP list is already initialized.
2427 Clear lp->siginfo.
2428 (save_siginfo): New.
2429 (stop_wait_callback, linux_nat_wait): Call it.
2430 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2431 * linux-nat.h (struct lwp_info): Add siginfo.
2432 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2433 (ALL_LWPS): Define.
2434
2435 * amd64-linux-nat.c (amd64_linux_dr): New.
2436 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2437 (amd64_linux_dr_set): Take a PTID argument.
2438 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2439 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2440 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2441 (amd64_linux_new_thread): New.
2442 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2443 * i386-linux-nat.c (i386_linux_dr): New.
2444 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2445 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2446 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2447 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2448 (i386_linux_new_thread): New.
2449 (i386_linux_resume): Remove unnecessary PID check.
2450 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2451 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2452 (fetch_debug_register, fetch_debug_register_pair): Delete.
2453 (debug_registers): New.
2454 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2455 ALL_LWPS and debug_registers.
2456 (ia64_linux_new_thread): New.
2457 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2458 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2459 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2460 (saved_dabr_value): New.
2461 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2462 ALL_LWPS.
2463 (ppc_linux_new_thread): New.
2464 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2465 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2466 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2467 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2468 after reading it.
2469 (s390_fix_watch_points): Take a PTID argument.
2470 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2471 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2472
2473 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2474 Jeff Johnston <jjohnstn@redhat.com>
2475
2476 * breakpoint.c (watchpoints_triggered): New.
2477 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2478 Check watchpoint_triggered instead. Combine handling for software
2479 and hardware watchpoints. Do not use target_stopped_data_address
2480 here. Always check a watchpoint if its scope breakpoint triggers.
2481 Do not stop for thread or overlay events. Improve check for
2482 triggered watchpoints without a value change.
2483 (watch_command_1): Insert the scope breakpoint first. Link the
2484 scope breakpoint to the watchpoint.
2485 * breakpoint.h (enum watchpoint_triggered): New.
2486 (struct breakpoint): Add watchpoint_triggered.
2487 (bpstat_stop_status): Update prototype.
2488 (watchpoints_triggered): Declare.
2489 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2490 (stepped_after_stopped_by_watchpoint): Delete.
2491 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2492 local. Handle infwait_step_watch_state. Update calls to
2493 bpstat_stop_status. Use watchpoints_triggered to check
2494 watchpoints.
2495 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2496 (remote_stopped_data_address): Do not check it.
2497
2498 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2499
2500 * configure.ac: Add $LIBINTL when testing libbfd.
2501 * configure: Regenerated.
2502
2503 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2504
2505 * NEW: Mention pending breakpoint changes and
2506 support for breakpoints at multiple locations.
2507
2508 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2509
2510 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2511 (arm_linux_init_abi): Use it.
2512 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2513 condition correctly.
2514 * arm-tdep.h (arm_get_next_pc): Declare.
2515 * Makefile.in (arm-linux-tdep.o): Update.
2516
2517 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2518
2519 * varobj.c (install_new_value): Don't
2520 call value_get_print_value when a value is
2521 lazy. Update the print_value member in a
2522 single place.
2523
2524 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2525
2526 * breakpoint.c (create_breakpoint): Set
2527 condition on each location, not on the first
2528 location of breakpoint.
2529
2530 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2531
2532 * remote.c (getpkt_sane): Fix error message. No animals were
2533 harmed in the making of this debugger.
2534
2535 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2536
2537 * p-typeprint.c: Fix 11 ARI reported problems.
2538 (pascal_print_type): Fix 4 operator at end of line.
2539 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2540 using strncmp function.
2541 (pascal_type_print_base): Fix 2 operator at end of line.
2542 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2543 using strncmp function.
2544
2545
2546 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2547
2548 * Fix PR pascal/2231
2549 dwarf2read.c (read_subroutine_type):
2550 All pascal functions are prototyped.
2551
2552 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2553
2554 * Fix PR pascal/2283
2555 p-valprint.c (pascal_val_print): correct current language check.
2556 Also print array of char as strings.
2557
2558
2559 2007-09-26 David Ung <davidu@mips.com>
2560 Maciej W. Rozycki <macro@mips.com>
2561
2562 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2563
2564 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2565
2566 * p-exp.y: Fix 12 ARI reported problems.
2567 (name_not_typename): Fix 2 operator at end of line issues.
2568 (yylex): Fix 3 operator at end of line issues.
2569 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2570
2571 2007-09-25 David Ung <davidu@mips.com>
2572 Maciej W. Rozycki <macro@mips.com>
2573
2574 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2575 rules return composite types in registers as appropriate.
2576
2577 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2578
2579 * symfile.h (struct symfile_segment_data): Doc fixes.
2580 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2581 Assert that we were passed some loaded segment addresses,
2582 and that sections' segment numbers are valid.
2583 Simplify offset calculation.
2584 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2585 strategy, and set num_segments correctly. Delete redundant
2586 assignments to do_sections.
2587
2588 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2589
2590 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2591
2592 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2593
2594 * breakpoint.c (remove_sal): New.
2595 (expand_line_sal_maybe): New.
2596 (create_breakpoints): Call expand_line_sal_maybe.
2597 (clear_command): Add comment.
2598 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2599 * linespec.c (decode_indirect): Set explicit_pc to 1.
2600 (decode_all_digits): Set explicit_line to 1.
2601 (append_expanded_sal): New.
2602 (expand_line_sal): New.
2603 * linespec.h (expand_line_sal): Declare.
2604 * symtab.c (init_sal): Initialize explicit_pc
2605 and explicit_line.
2606 * symtab.h (struct symtab_and_line): New fields
2607 explicit_pc and explicit_line.
2608
2609 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2610
2611 * infcall.c (call_function_by_hand): Handle language-specific
2612 pass and return by reference.
2613
2614 * cp-abi.c (cp_pass_by_reference): New.
2615 * cp-abi.h (cp_pass_by_reference): Declare.
2616 (struct cp_abi_ops): Add pass_by_reference.
2617 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2618 (init_gnuv3_ops): Set pass_by_reference.
2619
2620 * language.c (language_pass_by_reference): New.
2621 (default_pass_by_reference): New.
2622 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2623 default_pass_by_reference.
2624 * langauge.h (struct language_defn): Add la_pass_by_reference.
2625 (language_pass_by_reference, default_pass_by_reference): Declare.
2626 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2627 * c-lang.c (c_language_defn, asm_language_defn)
2628 (minimal_language_defn): Likewise.
2629 (cplus_language_defn): Add cp_pass_by_reference.
2630 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2631 * jv-lang.c (java_language_defn): Likewise.
2632 * m2-lang.c (m2_language_defn): Likewise.
2633 * objc-lang.c (objc_language_defn): Likewise.
2634 * p-lang.c (pascal_language_defn): Likewise.
2635 * scm-lang.c (scm_language_defn): Likewise
2636
2637 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2638
2639 Allow a code breakpoint to have several locations
2640 associated with it.
2641 * breakpoint.h (enum enable_state): Remove the
2642 bp_shlib_disabled enumerator.
2643 (struct bp_location): New members shlib_disabled,
2644 global_next, enabled and function_name.
2645 Rename pending to condition_not_parsed.
2646
2647 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2648 (ALL_BP_LOCATIONS_SAFE): Likewise.
2649 (breakpoint_enabled): Don't check for pending.
2650 (condition_command): Free and update all locations of
2651 a breakpoint.
2652 (insert_bp_location): Adjust.
2653 (software_breakpoint_inserted_here_p): Don't care
2654 if breakpoint is enabled, as soon as it's inserted.
2655 (print_it_typical): Print bpstat's location, not
2656 bpstat's breakpoint's location.
2657 (bpstat_stop_status): Iterate over all locations, not
2658 all breakpoints.
2659 (print_breakpoint_location): New.
2660 (print_one_breakpoint): Renamed to
2661 (print_one_breakpoint_location): ...this. Take
2662 parameters to describe which location is being
2663 printed. Modify code to properly print header
2664 for several locations and individual locations.
2665 (print_one_breakpoint): Print all locations.
2666 (breakpoint_has_pc): New.
2667 (describe_other_breakpoints): Use the above.
2668 (check_duplicates): Renamed to...
2669 (check_duplicates_for): .. this.
2670 (check_duplicates): Use check_duplicates_for.
2671 (allocate_bp_location): Adjust.
2672 (set_raw_breakpoint_without_location): New,
2673 extracted from set_raw_breakpoint.
2674 (set_breakpoint_location_function): New.
2675 (set_raw_breakpoint): Use
2676 set_raw_breakpoint_without_location.
2677 (make_breakpoint_permanent): Mark all locations
2678 as inserted.
2679 (disable_breakpoints_in_shlibs): Iterate over
2680 locations.
2681 (disable_breakpoints_in_unloaded_shlib): Likewise.
2682 (re_enable_breakpoints_in_shlibs): Likewise.
2683 (mention): Say "pending" when breakpoint has
2684 zero locations. If breakpoint has more than one
2685 location, say so.
2686 (add_location_to_breakpoint): New.
2687 (create_breakpoint): Accept symtabs_and_lines, not
2688 symtab_and_line. Pass extra sals to
2689 add_location_to_breakpoint.
2690 (create_breakpoints): Pass symtabs_and_lines to
2691 create_breakpoints.
2692 (break_command_1): Make pending breakpoints
2693 have zero locations.
2694 (do_captured_breakpoint): Remove wrong allocation.
2695 (clear_command): Iterate over all locations.
2696 (unlink_locations_from_global_list): Renamed
2697 from unlink_location_from_global_list. Remove
2698 all locations.
2699 (delete_breakpoint): Remove all locations.
2700 Iterate over all locations when deciding which
2701 other location to re-enable.
2702 (all_locations_are_pending): New.
2703 (update_breakpoint_locations): Renamed from
2704 update_breakpoint_location. Try to match old
2705 and new locations using names of containing
2706 functions.
2707 (breakpoint_re_set_one): Adjust.
2708 (find_location_by_number): New.
2709 (disable_command): Allow disabling individual location.
2710 (enable_command): Allow enabling individual location.
2711 * breakpoint.c: Adjust all uses of breakpoint's
2712 enable state to for bp_shlib_disabled change.
2713
2714 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2715
2716 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2717 (resolve_pending_breakpoint): Remove.
2718 (re_enable_breakpoints_in_shlibs): Remove.
2719 (unlink_locations_from_global_list): New.
2720 (update_breakpoint_locations): New.
2721 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2722 Use parse_condition and update_breakpoint_location to
2723 reset breakpoint. Ignore 'symbol not found' error from
2724 decode_line_1.
2725 (breakpoint_re_set): Don't emit newline before the
2726 reason why breakpoint is not reset.
2727 (do_enable_breakpoint): Don't specially process pending
2728 breakpoints.
2729 (free_bp_location): New.
2730 (break_command_1): For pending breakpoints, initialize
2731 all fields of a sal with zeroes.
2732 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2733 * infcmd.c (post_create_inferior): Don't call
2734 re_enable_breakpoints_in_shlibs.
2735 * infrun.c (handle_inferior_event): Likewise.
2736 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2737 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2738 * win32-nat.c (get_win32_debug_event): Likewise.
2739
2740 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2741
2742 * breakpoint.c (create_breakpoint): Split from
2743 create_breakpoints, implementing most of its logic.
2744 Take just a single sal, single address string and
2745 single condition. Do not take parsed condition at
2746 all.
2747 (create_breakpoints): Just call create_breakpoint
2748 for each sal.
2749 (find_condition_and_thread): New.
2750 (break_command_1): Use find_condition_and_thread.
2751 Do not keep parsed conditions.
2752 (do_captured_breakpoint): Don't convert
2753 condition string to struct expression.
2754
2755 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2756
2757 * breakpoint.h (struct breakpoint): Move the cond
2758 field to...
2759 (struct bp_location): Here.
2760 * breakpoint.c (condition_command, bpstat_stop_status)
2761 (print_one_breakpoint, allocate_bp_location)
2762 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
2763 (create_exec_event_catchpoint, create_breakpoints)
2764 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
2765 (create_ada_exception_breakpoint, set_breakpoint_sal)
2766 (delete_breakpoint, breakpoint_re_set_one): Adjust.
2767 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2768
2769 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2770
2771 Associate bp_stat with bp_location, not breakpoint.
2772 * breakpoint.h (breakpoint_at): Change type
2773 to bp_location*.
2774 * breakpoint.c (bpstat_alloc): Take bp_location,
2775 not breakpoint.
2776 (bpstat_find_breakpoint): Look at bpstat's location's
2777 owner, not at bpstat->breakpoint_at.
2778 (bpstat_find_step_resume_breakpoint): Likewise.
2779 (bpstat_num): Likewise.
2780 (print_it_typical): Likewise.
2781 (print_bp_stop_message): Likewise.
2782 (watchpoint_check): Likewise.
2783 (bpstat_what): Likewise.
2784 (bpstat_get_triggered_catchpoints): Likewise.
2785 (breakpoint_auto_delete): Likewise.
2786 (delete_breakpoint): Likewise.
2787 (bpstat_stop_status): Pass location, not breakpoint,
2788 to bpstat_alloc. Look at bpstat's location's
2789 owner, not at bpstat->breakpoint_at.
2790
2791 2007-09-21 Jim Blandy <jimb@codesourcery.com>
2792
2793 * macrotab.h (new_macro_table): Document that removing information
2794 from an obstack/bcache-managed macro table leaks memory.
2795 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
2796 that data is never freed in obstack/bcache-managed macro tables,
2797 just leak the storage.
2798 (macro_undef): If we're undefining a macro at exactly the same
2799 source location that we defined it, simply remove the definition
2800 altogether.
2801
2802 2007-09-21 Joel Brobecker <brobecker@adacore.com>
2803
2804 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
2805 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
2806 Adjust the struct sym_fns object accordingly by setting
2807 the new field to NULL.
2808 * xcoffread.c (aix_process_linenos): Make static.
2809 (xcoff_sym_fns): Set new field to aix_process_linenos.
2810 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
2811 by call to new the new sym_fns sym_read_linetable function.
2812 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
2813 * config/rs6000/tm-rs6000.h: Delete.
2814
2815 2007-09-21 David Ung <davidu@mips.com>
2816 Maciej W. Rozycki <macro@mips.com>
2817
2818 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
2819 rules do not treat composite types specially.
2820
2821 2007-09-20 Maciej W. Rozycki <macro@mips.com>
2822
2823 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
2824 (mips16_in_function_epilogue_p): Likewise.
2825 (mips_in_function_epilogue_p): Likewise.
2826 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
2827
2828 2007-09-19 Joel Brobecker <brobecker@adacore.com>
2829
2830 * configure.ac: Add check for "etext".
2831 * configure, config.in: Regenerate.
2832 * maint.c (TEXTEND): Only define if either _etext or etext
2833 are available.
2834 Disable the profiling functionality if TEXTEND is not defined.
2835
2836 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
2837
2838 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
2839 address register. Correct the call to frame_id_build.
2840 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
2841 is invalid.
2842
2843 2007-09-18 Joel Brobecker <brobecker@adacore.com>
2844
2845 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
2846 the linetable past the function end.
2847
2848 2007-09-18 James E. Wilson <wilson@specifix.com>
2849
2850 * MAINTAINERS: Update my email address.
2851
2852 2007-09-18 Jerome Guitton <guitton@adacore.com>
2853
2854 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
2855 (inf_ttrace_delete_dying_threads_callback): New function.
2856 (inf_ttrace_resume): After resuming the execution, iterate over
2857 the dying threads to delete them for the thread list.
2858 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
2859 mark the corresponding thread as dying instead of removing it
2860 from the thread list.
2861 (inf_ttrace_thread_alive): return 0 for dying threads.
2862
2863 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2864
2865 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
2866 that return_frame is not null.
2867
2868 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2869
2870 * solib-svr4.c: Add include of "auxv.h".
2871 (enable_break): Use the AT_BASE auxiliary entry if available.
2872 * Makefile.in (solib-svr4.o): Update dependencies.
2873
2874 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2875
2876 * NEWS: Create a new section for the next release branch.
2877 Rename the section of the current branch, now that it has
2878 been cut.
2879
2880 2007-09-17 Jerome Guitton <guitton@adacore.com>
2881
2882 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
2883 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
2884
2885 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
2886
2887 * mi/mi-cmds.c (mi_cmds): Register -list-features.
2888 * mi/mi-cmds.h (mi_cmd_list_features): New.
2889 * mi/mi-main.c (mi_cmd_list_features): New.
2890
2891 2007-09-11 Joel Brobecker <brobecker@adacore.com>
2892
2893 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
2894 * version.in: Bump version to 6.7.50-20070911-cvs.
2895
2896 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2897
2898 * thread.c (free_thread): Do not delete the step resume breakpoint
2899 right away.
2900
2901 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2902
2903 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
2904 * corelow.c (core_read_description): New.
2905 (init_core_ops): Set to_read_description.
2906 * gdbarch.sh: Add gdbarch_core_read_description.
2907 * mips-linux-tdep.c (mips_linux_core_read_description): New.
2908 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
2909 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
2910 (mips_register_g_packet_guesses): Use them.
2911 (_initialize_mips_tdep): Initialize them.
2912 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
2913 * gdbarch.h, gdbarch.c: Regenerated.
2914
2915 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2916
2917 * infrun.c (stepping_past_breakpoint): New global variable.
2918 (stepping_past_breakpoint_ptid): Likewise.
2919 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
2920 Only switch threads if we need to single-step over a breakpoint hit
2921 in the previously selected thread. If stepping, remember previous
2922 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
2923 switch_to_thread instead of copying its contents.
2924 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
2925 prepare_to_proceed returns true.
2926 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
2927 (context_switch): Call switch_to_thread.
2928 (handle_inferior_event): Switch back to previous thread if requested
2929 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
2930 * gdbthread.h (switch_to_thread): Add prototype.
2931 * thread.c (switch_to_thread): Make global.
2932
2933 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
2934
2935 * p-valprint.c: Fix 7 ARI reported problems.
2936 (pascal_val_print): Fix one operator at end of line issue.
2937 Use paddress function to remove use of
2938 deprecated_print_address_numeric function (2 times).
2939 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
2940 (pascal_value_print): Fix 3 operator at end of line issues.
2941
2942 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
2943
2944 PR gdb/2103
2945 * arm-tdep.c (arm_in_call_stub): Delete.
2946 (arm_skip_stub): Handle from_arm and from_thumb stubs.
2947
2948 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
2949
2950 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
2951 types.
2952
2953 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2954 Jim Blandy <jimb@codesourcery.com>
2955
2956 * NEWS: Update description of string changes. Mention print/s.
2957 * c-valprint.c (textual_element_type): New.
2958 (c_val_print): Use it. Do not skip address printing for pointers
2959 with a string format.
2960 (c_value_print): Doc update.
2961 * dwarf2read.c (read_array_type): Use make_vector_type.
2962 * gdbtypes.c (make_vector_type): New.
2963 (init_vector_type): Use it.
2964 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
2965 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
2966 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
2967 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
2968 (make_vector_type): New.
2969 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
2970 Call the language print routine for string format.
2971 (print_scalar_formatted): Call val_print for string format. Handle
2972 unsigned original types for char format.
2973 (validate_format): Do not reject string format.
2974 * stabsread.c (read_type): Use make_vector_type.
2975 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
2976
2977 2007-09-04 Michael Snyder <msnyder@access-company.com>
2978
2979 * expprint.c (print_subexp_standard): Check strchr for null.
2980 * Makefile.in (expprint.o): Depend on gdb_assert.h.
2981
2982 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
2983
2984 * stabsread.c (patch_block_status): Guard against null.
2985 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
2986
2987 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2988
2989 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
2990 in internal error message.
2991
2992 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
2993 Daniel Jacobowitz <dan@codesourcery.com>
2994
2995 * infcmd.c (post_create_inferior): Update comment.
2996 (run_command_1): Always call post_create_inferior with 0 as
2997 from_tty.
2998
2999 * i386-cygwin-tdep.h: New.
3000 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3001 (win32_xfer_shared_library): Make it extern.
3002
3003 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3004 i386-cygwin-tdep.h.
3005 (win32_so_ops): Delete.
3006 (get_relocated_section_addrs): Delete.
3007 (solib_symbols_add): Delete.
3008 (register_loaded_dll): Delete.
3009 (win32_make_so): New.
3010 (handle_load_dll): Use win32_make_so.
3011 (win32_free_so): Free the passed in so.
3012 (win32_relocate_section_addresses): Delete.
3013 (win32_solib_create_inferior_hook): Delete.
3014 (handle_unload_dll): Don't add PE offset here. Free so with
3015 win32_free_so instead of free_so.
3016 (win32_special_symbol_handling): Delete.
3017 (get_win32_debug_event): Remove unneeded calls. Set state to
3018 TARGET_WAITKIND_LOADED on a dll unload.
3019 (do_initial_win32_stuff): Clear cygwin_load_start and
3020 cygwin_load_end.
3021 (map_code_section_args): Delete.
3022 (dll_code_sections_add): Delete.
3023 (core_section_load_dll_symbols): Delete.
3024 (win32_xfer_shared_libraries): New.
3025 (win32_current_sos): Delete.
3026 (win32_xfer_partial): New.
3027 (open_symbol_file_object): Delete.
3028 (in_dynsym_resolve_code): Delete.
3029 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3030 of win32_ops. Remove win32_so_ops settings. Don't set
3031 current_target_so_ops here.
3032
3033 * Makefile.in (i386_cygwin_tdep_h): New variable.
3034 (i386-cygwin-tdep.o): Update dependencies.
3035 (win32-nat.o): Update dependencies.
3036
3037 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3038 Daniel Jacobowitz <dan@codesourcery.com>
3039
3040 * gdbarch.sh (core_xfer_shared_libraries): New.
3041
3042 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3043
3044 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3045
3046 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3047 (xml_escape_text): New.
3048 * xml-support.h (xml_escape_text): Declare.
3049
3050 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3051 * config/i386/cygwin.mt (TDEPFILES): ... here.
3052
3053 * win32-nat.c: (fetch_elf_core_registers): Delete.
3054 (win32_elf_core_fn): Delete.
3055 (_initialize_core_win32): Delete.
3056
3057 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3058 "xml-support.h" and "gdbcore.h".
3059 (i386_win32_gregset_reg_offset): New.
3060 (I386_WIN32_SIZEOF_GREGSET): New.
3061 (i386_win32_regset_from_core_section): New.
3062 (win32_xfer_shared_library): New.
3063 (struct cpms_data): New.
3064 (core_process_module_section): New.
3065 (win32_core_xfer_shared_libraries): New.
3066 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3067 gregset_num_regs, sizeof_gregset members of tdep. Register
3068 regset_from_core_section and core_xfer_shared_libraries callbacks.
3069
3070 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3071 * gdbarch.h, gdbarch.c: Regenerate.
3072
3073 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3074
3075 * corelow.c (core_xfer_partial): Pass writebuf to
3076 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3077
3078 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3079
3080 * arm-tdep.h (arm_skip_stub): Declare.
3081 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3082 "gdbcore.h".
3083 (arm_pe_skip_trampoline_code): New function.
3084 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3085 gdbarch_skip_trampoline_code callback.
3086 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3087
3088 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3089
3090 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3091
3092 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3093
3094 * configure.ac: Add --with-expat.
3095 * configure: Regenerated.
3096
3097 2007-09-03 Andreas Schwab <schwab@suse.de>
3098
3099 * configure.ac: Accept --with-system-readline.
3100 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3101 * configure: Regenerate.
3102 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3103 substituted values.
3104 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3105
3106 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3107 Daniel Jacobowitz <dan@codesourcery.com>
3108
3109 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3110
3111 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3112
3113 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3114
3115 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3116
3117 * top.c (print_gdb_version): Update for GPL version 3.
3118
3119 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 * NEWS: Mention the build-id .debug files verification.
3122
3123 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3124
3125 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3126
3127 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3128
3129 * Makefile.in (symfile.o): Update dependencies.
3130 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3131 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3132 (struct build_id): New structure.
3133 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3134 (find_separate_debug_file): New variable BUILD_ID.
3135 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3136
3137 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3138
3139 * varobj.c (struct varobj): Fix comment
3140 for the type member not to lie when it can be
3141 NULL.
3142
3143 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3144
3145 Implement -var-info-path-expression.
3146
3147 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3148 Declare.
3149 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3150 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3151 * varobj.c (struct varobj): New field 'path_expr'.
3152 (c_path_expr_of_child, cplus_path_expr_of_child)
3153 (java_path_expr_of_child): New.
3154 (struct language_specific): New field path_expr_of_child.
3155 (varobj_create): Initialize the path_expr field.
3156 (varobj_get_path_expr): New.
3157 (new_variable): Initialize the path_expr field.
3158 (free_variable): Free the path_expr field.
3159 (adjust_value_for_children_access): New parameter
3160 WAS_TYPE.
3161 (c_number_of_children): Adjust.
3162 (c_describe_child): New parameter CFULL_EXPRESSION.
3163 Compute full expression.
3164 (c_value_of_child, c_type_of_child): Adjust.
3165 (cplus_number_of_children): Adjust.
3166 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3167 Compute full expression.
3168 (cplus_name_of_child, cplus_value_of_child)
3169 (cplus_type_of_child): Adjust.
3170 * varobj.h (varobj_get_path_expr): Declare.
3171
3172 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3173
3174 * mi/mi-cmd-var.c (print_varobj): If a varobj
3175 type is NULL, don't try to print it.
3176
3177 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3178
3179 * ppc-linux-nat.c (right_fill_reg): Delete.
3180 (supply_gregset): Use ppc_supply_gregset.
3181 (supply_fpregset): Use ppc_supply_fpregset.
3182 (fill_gregset): Use ppc_collect_gregset.
3183 (fill_fpregset): Use ppc_collect_fpregset.
3184 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3185 (right_supply_register, ppc_linux_supply_gregset): Delete.
3186 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3187 (ppc_linux_supply_fpregset): Delete.
3188 (ppc_linux_collect_gregset): New function.
3189 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3190 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3191 ppc_linux_supply_gregset, and ppc_collect_gregset.
3192 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3193 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3194 (ppc_linux_regset_from_core_section): Update.
3195 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3196 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3197 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3198 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3199 (ppcobsd_collect_gregset): Likewise.
3200 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3201 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3202 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3203 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3204 (rs6000_aix64_reg_offsets): Likewise.
3205 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3206 ppc_floating_point_unit_p.
3207 (rs6000_aix_collect_regset): Similarly.
3208 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3209 when regsize is larger than regcache register size.
3210 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3211 regcache register size.
3212 (ppc_greg_offset): New function, split out from..
3213 (ppc_supply_gregset): ..here. Separate code handling all regs from
3214 single reg case. Correct xer offset.
3215 (ppc_fpreg_offset): New function, split out from..
3216 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3217 single reg case.
3218 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3219 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3220 a fp unit, instead return if no fp.
3221
3222 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3223
3224 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3225 this code has not been compiled for two years.
3226
3227 2007-08-29 Michael Snyder <msnyder@access-company.com>
3228
3229 * event-top.c (gdb_readline2): Return after EOF.
3230
3231 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3232
3233 * symtab.c: Remove a function that has been commented out 3 years ago.
3234
3235 2007-08-29 Randolph Chung <tausq@debian.org>
3236
3237 * hppa-tdep.c (hppa32_cannot_fetch_register)
3238 (hppa64_cannot_fetch_register): New functions.
3239 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3240 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3241
3242 2007-08-28 Michael Snyder <msnyder@access-company.com>
3243
3244 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3245 check for null before calling check_typedef.
3246
3247 * NEWS: Mention Coverity bug fixes.
3248
3249 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3250
3251 * spu-tdep.c (spu_pointer_to_address): New function.
3252 (spu_integer_to_address): Likewise.
3253 (spu_gdbarch_init): Add spu_pointer_to_address and
3254 spu_integer_to_address to gdbarch.
3255
3256 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3257
3258 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3259
3260 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3261
3262 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3263 that contains the GDB license.
3264 * copying.awk: Adjust to the GPLv3 wording.
3265 * copying.c: Regenerate.
3266
3267 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3268
3269 * copying.awk: Protoization, and i18n markup.
3270
3271 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3272
3273 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3274 * copyright.sh: Likewise.
3275 * gdb-events.sh: Likewise.
3276 * gdb_gcore.sh: Likewise.
3277 * gdb_mbuild.sh: Likewise.
3278 * gdbarch.sh: Likewise.
3279 * observer.sh: Likewise.
3280 * features/feature_to_c.sh: Likewise.
3281 * regformats/regdat.sh: Likewise.
3282
3283 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3284
3285 Switch the license of all .c files to GPLv3.
3286 Switch the license of all .h files to GPLv3.
3287 Switch the license of all .cc files to GPLv3.
3288
3289 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3290
3291 * configure.ac: Switch license to GPLv3.
3292
3293 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3294
3295 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3296 determine the file's FPU type.
3297
3298 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3299
3300 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3301 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3302 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3303
3304 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3305
3306 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3307 Fix formatting.
3308 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3309 (elf_lookup_lib_symbol): Fix formatting.
3310
3311 2007-08-21 Michael Snyder <msnyder@access-company.com>
3312
3313 * dbxread.c (read_dbx_symtab): Guard null deref.
3314 Break up long line.
3315
3316 * valops.c (find_overload_match): Guard against NULL.
3317
3318 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3319
3320 * MAINTAINERS (Patch Champions): Remove self.
3321
3322 2007-08-21 Chris Smith <chris.smith@st.com>
3323
3324 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3325 line.
3326
3327 2007-08-18 Michael Snyder <msnyder@access-company.com>
3328
3329 * stabsread.c (dbx_lookup_type): Memory leak.
3330
3331 * event-loop.c (delete_async_signal_handler): Move pointer null
3332 test to before pointer dereference.
3333
3334 * ui-out.c (append_header_to_list): Possible cut and paste error.
3335
3336 * MAINTAINERS: white space tweak.
3337
3338 2007-08-17 Michael Snyder <msnyder@access-company.com>
3339
3340 * stack.c (print_frame): Memory leak.
3341
3342 * completer.c (filename_completer): Avoid memory leak.
3343 Remove unnecessary nested block.
3344
3345 * c-exp.y (parse_number): Memory leak.
3346
3347 * completer.c (location_completer): Must free 'fn_list', except
3348 in the one case where it is returned (as 'list').
3349
3350 * varobj.c (value_of_root): Memory leak.
3351
3352 * gdbtypes.h (virtual_base_list): Remove export decl.
3353 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3354 (virtual_base_index): Memory leak.
3355 (virtual_base_index_skip_primaries): Ditto.
3356
3357 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3358
3359 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3360 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3361 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3362 (xtensa_read_register): New function.
3363 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3364 (xtensa_insn_kind): New types.
3365 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3366 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3367 (xtensa_verify_config, xtensa_pseudo_register_read)
3368 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3369 (xtensa_store_return_value)
3370 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3371 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3372 (xtensa_frame_this_id, xtensa_frame_prev_register)
3373 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3374 (call0_frame_cache, call0_frame_get_reg_at_entry)
3375 (call0_classify_opcode, call0_track_op)
3376 (call0_analyze_prologue, call0_frame_cache): New functions.
3377
3378 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3379
3380 * breakpoint.c (bpstat_free): New.
3381 (bpstat_clear): Use bpstat_free.
3382 (delete_breakpoint): Document why we cannot
3383 remove bpstats from stop_bpstat.
3384 * breakpoint.h (bpstat_free): Declare.
3385
3386 2007-08-16 Michael Snyder <msnyder@access-company.com>
3387
3388 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3389
3390 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3391 Joel Brobecker <brobecker@adacore.com>
3392
3393 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3394
3395 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3396 Joel Brobecker <brobecker@adacore.com>
3397
3398 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3399 checkin guarding against NULL.
3400
3401 2007-08-14 Michael Snyder <msnyder@access-company.com>
3402
3403 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3404 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3405 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3406 go at beginning of new line.
3407
3408 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3409 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3410 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3411 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3412 tui-winsource.h, tui.c, tui.h: Function declarations and
3413 definitions, wrap long lines.
3414
3415 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3416 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3417 Reformat block comments to GNU standard.
3418
3419 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3420 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3421 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3422 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3423 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3424 spaces after periods, etc).
3425
3426 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3427 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3428 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3429 tui-winsource.h: Whitespace changes, fix pointer declarations
3430 to be consistant.
3431
3432 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3433 Michael Snyder <msnyder@access-company.com>
3434
3435 * ada-lang.c (field_alignment): Guard against NULL.
3436
3437 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3438
3439 * MAINTAINERS (Global Maintainers): Add self.
3440
3441 2007-08-14 Michael Snyder <msnyder@access-company.com>
3442
3443 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3444
3445 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3446
3447 * varobj.c (cplus_describe_child): Guard against null.
3448 Use "NULL" instead of "0" to initialize pointers.
3449
3450 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3451
3452 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3453 to match any gdbarch with matching OSABI. Set default ABI and FPU
3454 after running the OSABI handler.
3455
3456 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3457
3458 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3459 * config/i386/linux.mt (TDEPFILES): ...to here.
3460
3461 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3462
3463 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3464 the 'silent' parameter and code to implement that.
3465 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3466 prototype.
3467 * win32-nat.c: Adjust.
3468 * solib.c: Adjust.
3469
3470 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3471
3472 * breakpoint.c (update_breakpoints_after_exec): Don't
3473 set address to zero.
3474
3475 2007-08-13 Michael Snyder <msnyder@access-company.com>
3476
3477 * valops.c: Whitespace clean-up.
3478
3479 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3480
3481 * event-top.c (command_line_handler): Memory leak.
3482
3483 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3484 No need to make copy.
3485
3486 * source.c (find_source_lines): Require symtab 's'.
3487
3488 2007-08-11 Michael Snyder <msnyder@access-company.com>
3489
3490 * completer.c: Spelling fix in comments.
3491
3492 2007-08-10 Michael Snyder <msnyder@access-company.com>
3493
3494 * gdbtypes.c: Coding standard cleanup.
3495 * gdbtypes.c: Comment/whitespace cleanup.
3496
3497 * stabsread.c (read_huge_number): Attempt to compute value before
3498 values that it depends on.
3499
3500 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3501 (decode_objc): Use "NULL" instead of 0.
3502 (find_method): Ditto.
3503 (decode_all_digits): Ditto.
3504 (decode_dollar): Ditto.
3505
3506 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3507
3508 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3509
3510 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3511 after closing bfd.
3512
3513 * completer.c: Comment/whitespace cleanup.
3514
3515 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3516
3517 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3518
3519 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3520
3521 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3522 allocated file descriptors.
3523
3524 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3525
3526 * Makefile.in: Minor cleanup throughout; add some missing variables,
3527 add some missing rules, remove some rules that are no longer needed,
3528 and fix the dependencies in several rules.
3529
3530 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3531
3532 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3533 (scm_lang_h, scm_tags_h): New.
3534 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3535 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3536 * defs.h (enum language): Add `language_scm'.
3537
3538 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3539 opening.
3540
3541 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3542
3543 * MAINTAINERS (Write After Approval): Add myself.
3544
3545 2007-08-09 Michael Snyder <msnyder@access-company.com>
3546
3547 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3548
3549 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3550
3551 * solib-som.c (som_relocate_section_addresses): Stop saving
3552 the $CODE$ section in the so_list structure.
3553
3554 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3555
3556 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3557 (xtensa_register_group_t): Add entries for coprocessors.
3558 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3559 (xtensa_add_reggroups): Likewise.
3560 (xtensa_register_reggroup_p): Likewise.
3561 (xtensa_coprocessor_register_group): New function.
3562 (xtensa_cp): New.
3563
3564 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3565
3566 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3567
3568 2007-08-08 Michael Snyder <msnyder@access-company.com>
3569
3570 * target.c (target_read_string): Guard against null.
3571
3572 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3573
3574 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3575 (tui_set_layout_for_display_command): Mem leak.
3576
3577 * top.c (command_line_input): Memory leak.
3578
3579 * solib-svr4.c (open_symbol_file_object): Memory leak.
3580 (svr4_current_sos): Ditto.
3581 (enable_break): Ditto.
3582
3583 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3584
3585 * dwarf2read.c (add_partial_symbol): Memory leak.
3586
3587 2007-08-06 Michael Snyder <msnyder@access-company.com>
3588
3589 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3590
3591 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3592
3593 * macroexp.c (init_buffer): Remove testing code that overrides the
3594 caller's length guess.
3595 (gather_arguments): Use a larger initial size, now that the vector
3596 growth code has been exercised.
3597
3598 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3599
3600 * solib-target.c (solib_target_relocate_section_addresses): Add
3601 orig_delta to addr_high.
3602
3603 2007-08-04 Michael Snyder <msnyder@access-company.com>
3604
3605 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3606
3607 * breakpoint.c (print_one_breakpoint): Off by one error.
3608
3609 * tracepoint.c (add_register): Off by one error.
3610 (stringify_collection_list): Free malloc buffer.
3611
3612 2007-08-03 Michael Snyder <msnyder@access-company.com>
3613
3614 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3615 stop memory leak, straighten out cleanups.
3616
3617 * jv-lang.c (java_link_class_type): Guard against NULL.
3618
3619 2007-08-02 Michael Snyder <msnyder@access-company.com>
3620
3621 * gdbtypes.c (create_set_type): Test should only be done within
3622 the preceeding if block. Otherwise, variable is uninitialized.
3623
3624 * gdbtypes.c (check_typedef): Guard NULL.
3625
3626 2007-08-01 Michael Snyder <msnyder@access-company.com>
3627
3628 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3629 avoid dereference in lookup_cmd_1.
3630
3631 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3632 clean up long lines.
3633 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3634 (tui_alloc_win_info): Ditto.
3635 (tui_add_content_elements): Ditto.
3636 * tui/tui-file.c (tui_file_magic): Ditto.
3637
3638 2007-07-31 Michael Snyder <msnyder@access-company.com>
3639
3640 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3641 True and false paths are mutually exclusive.
3642
3643 * event-top.c (command_line_handler): Add pedantic return.
3644
3645 * f-valprint.c (info_common_command): Bail out to prevent null
3646 pointer deref. Break up a long line.
3647
3648 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3649
3650 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3651
3652 * printcmd.c (build_address_symbolic): Remove dead code and dead
3653 variable.
3654
3655 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3656
3657 * linespec.c (minsym_found): Advance to the next line if possible.
3658
3659 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3660
3661 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3662 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3663 solib-svr4.o, and add solib-target.o
3664
3665 2007-07-27 Michael Snyder <msnyder@access-company.com>
3666
3667 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3668
3669 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3670
3671 * MAINTAINERS (Write After Approval): Add myself.
3672
3673 2007-07-26 Maciej W. Rozycki <macro@mips.com>
3674
3675 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3676 for include files.
3677
3678 2007-07-25 Maciej W. Rozycki <macro@mips.com>
3679
3680 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3681
3682 2007-07-24 Michael Snyder <msnyder@access-company.com>
3683
3684 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3685 'buffer' must cover both branches that call strcmp (Coverity).
3686
3687 * stack.c (print_frame_args): Check return value of lookup_symbol.
3688
3689 * ax-gdb.c (find_field): Guard against null ptr.
3690
3691 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3692
3693 * regformats/reg-spu.dat: Fix order of npc, id registers.
3694
3695 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3696
3697 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3698 sections should always go to the executable file.
3699
3700 2004-07-20 Chris Dearman <chris@mips.com>
3701
3702 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3703 prologue instructions.
3704
3705 2007-07-20 Maciej W. Rozycki <macro@mips.com>
3706
3707 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3708 a direct test.
3709
3710 2007-07-20 Chris Dearman <chris@mips.com>
3711 Maciej W. Rozycki <macro@mips.com>
3712
3713 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3714 description.
3715
3716 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3717 Daniel Jacobowitz <dan@codesourcery.com>
3718
3719 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3720 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3721 printf.
3722 * NEWS: Mention gdbserver DLL support.
3723
3724 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3725
3726 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3727
3728 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3729
3730 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3731 warning bug.
3732
3733 2007-07-13 Kevin Buettner <kevinb@redhat.com>
3734
3735 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3736 instruction case.
3737
3738 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3739
3740 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3741 (mep_analyze_prologue): Add case for BRA instruction.
3742
3743 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3744
3745 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3746
3747 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
3748
3749 * breakpoint.c: Include "top.h".
3750 (breakpoint_1): Don't set convenience variable $_ if server prefix
3751 is used.
3752 (_initialize_breakpoint): Describe this behaviour in command help.
3753
3754 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
3755
3756 * solib-target.c (library_list_start_segment): Cast address to
3757 CORE_ADDR.
3758
3759 2007-07-06 Mark Kettenis <kettenis@gnu.org>
3760
3761 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
3762 for terminated processes.
3763
3764 2007-07-05 Michael Snyder <msnyder@access-company.com>
3765
3766 * event-top.c (cli_command_loop): Prompt string can (and should)
3767 be freed after call to readline (Coverity). Also move local var
3768 declarations into block where they are used.
3769
3770 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
3771 should) be freed after call to readline (Coverity). Also move
3772 local var declarations into block where they are used.
3773
3774 2007-07-03 Andreas Schwab <schwab@suse.de>
3775
3776 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
3777 /proc/../stat.
3778
3779 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
3780 Thiago Bauermann <bauerman@br.ibm.com>
3781 Joseph S. Myers <joseph@codesourcery.com>
3782 Daniel Jacobowitz <dan@codesourcery.com>
3783
3784 * remote.c (remote_check_symbols): Use
3785 gdbarch_convert_from_func_ptr_addr.
3786 * infcall.c (find_function_addr): Handle function descriptors
3787 without debugging information.
3788 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
3789 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
3790 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
3791 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
3792 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
3793 allow SEC_CODE and SEC_DATA.
3794 (enable_break): Update calls. Pass current_target to solib_add.
3795 Use gdbarch_convert_from_func_ptr_addr.
3796
3797 2007-07-03 Ilko Iliev <iliev@ronetix.at>
3798 Daniel Jacobowitz <dan@codesourcery.com>
3799
3800 * symfile.c (print_transfer_performance): Avoid integer overflow.
3801 Use larger units.
3802
3803 2007-07-03 Markus Deuling <deuling@de.ibm.com>
3804
3805 * cp-namespace.c (lookup_symbol_file): Add block to
3806 lookup_symbol_global call.
3807 * Makefile.in (solist_h): Add dependency on symtab header.
3808 (symtab.o): Add dependency on solist header.
3809 * solib.c (solib_global_lookup): New function.
3810 * solib-svr4.c (scan_dyntag): Likewise.
3811 (elf_locate_base): Call helper routine scan_dyntag.
3812 (elf_lookup_lib_symbol): New function.
3813 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
3814 * solist.h (symtab.h): New include.
3815 (struct target_so_ops): New member lookup_lib_global_symbol.
3816 (solib_global_lookup): New prototype.
3817 * symtab.c: New include solist.h.
3818 (lookup_objfile_from_block): New function.
3819 (lookup_global_symbol_from_objfile): New function.
3820 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
3821 (lookup_symbol_global): Call library-specific lookup procedure.
3822 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
3823
3824 * NEWS: Document framework.
3825
3826 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3827
3828 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
3829 to NULL.
3830
3831 * cli/cli-script.c (build_command_line): Update NULL check.
3832
3833 2007-07-02 Michael Snyder <msnyder@access-company.com>
3834
3835 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
3836
3837 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3838
3839 * Makefile.in (XMLFILES): Add library-list.dtd.
3840 (ALLDEPFILES): Add solib-target.o.
3841 (solib-target.o): New rule.
3842 * remote.c (PACKET_qXfer_libraries): New constant.
3843 (remote_protocol_features): Add qXfer:libraries:read.
3844 (remote_wait): Recognize library stop replies.
3845 (remote_async_wait): Likewise. Fix typo.
3846 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3847 (init_remote_async_ops): Fix typo.
3848 (_initialize_remote): Register "set remote library-info-packet".
3849 * solib-som.c (som_current_sos): Set addr_low and addr_high.
3850 * solib-target.c: New file.
3851 * solib.c (solib_map_sections): Use addr_low and addr_high instead
3852 of textsection.
3853 (info_sharedlibrary_command): Likewise.
3854 (solib_add_library, solib_remove_library): New.
3855 * solist.h (struct so_list): Replace textsection with addr_low and
3856 addr_high.
3857 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
3858 * NEWS: Describe new qXfer:libraries:read and shared library
3859 event support.
3860 * features/library-list.dtd: New.
3861
3862 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3863
3864 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
3865 (start_remote): Use STOP_QUIETLY_REMOTE.
3866 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
3867 support on a SOLIB_ADD definition. Update breakpoints_inserted.
3868 Update to match shared library event breakpoint support. Only
3869 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
3870 (normal_stop): Handle TARGET_WAITKIND_LOADED.
3871 * fork-child.c (startup_inferior): Do not set
3872 inferior_ignoring_startup_exec_events
3873 * inferior.h (inferior_ignoring_startup_exec_events): Delete
3874 declaration.
3875 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
3876
3877 2007-07-02 Markus Deuling <deuling@de.ibm.com>
3878
3879 * breakpoint.c (insert_bp_location): Remove dead code
3880 (DISABLE_UNSETTABLE_BREAK).
3881 (disable_breakpoints_in_shlibs)
3882 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
3883
3884 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3885
3886 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
3887 Call insert_bp_location.
3888
3889 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
3890
3891 * core-regset.c (fetch_core_registers): Work around gcc 3.4
3892 alias warning bug.
3893
3894 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3895
3896 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
3897 objfiles.
3898
3899 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3900
3901 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
3902 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
3903 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
3904 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
3905 to display_gdb_prompt.
3906
3907 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3908
3909 PR symtab/2161
3910 * target.c (memory_xfer_partial): Do not continue past targets with
3911 all memory.
3912
3913 2007-06-30 Andreas Schwab <schwab@suse.de>
3914
3915 * m68k-tdep.c (m68k_ps_type): New.
3916 (m68k_init_types): New.
3917 (m68k_register_type): Use m68k_ps_type for PS register.
3918 (_initialize_m68k_tdep): Call m68k_init_types.
3919
3920 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
3921 from the generic m68k arch.
3922
3923 2007-06-28 Michael Snyder <msnyder@access-company.com>
3924
3925 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
3926 (Coverity).
3927
3928 * linux-thread-db.c (thread_db_get_thread_local_address): Add
3929 gdb_assert before using return value of find_thread_pid (Coverity).
3930
3931 * source.c (unset_substitute_path_command): Plug leak (Coverity).
3932
3933 * cli/cli-script.c (build_command_line): Add null pointer guard
3934 (Coverity).
3935
3936 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
3937
3938 * linux-thread-db.c (thread_db_attach): Delete.
3939 (thread_db_detach): Typo fix. Call target_mourn_inferior
3940 instead of fixing up proc_handle.
3941 (have_threads_callback, have_threads): New functions.
3942 (thread_db_wait): Remove dead proc_handle.pid check. Only
3943 translate PTIDs if we have registered threads. Check for new
3944 threads if we have none.
3945 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
3946 (find_new_threads_callback): Only enable event reporting if TID == 0.
3947 (same_ptid_callback): New.
3948 (thread_db_get_thread_local_address): Check for new threads.
3949 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
3950 or to_post_startup_inferior.
3951
3952 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3953
3954 * infrun.c (adjust_pc_after_break): Do not assume software single-step
3955 is always active if SOFTWARE_SINGLE_STEP_P is true.
3956 (resume): Use gdbarch_software_single_step[_p] instead of
3957 SOFTWARE_SINGLE_STEP[_P].
3958 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
3959
3960 * gdbarch.sh (software_single_step): Remove target macro.
3961 * gdbarch.h, gdbarch.c: Regenerate.
3962
3963 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3964
3965 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
3966 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
3967 (struct gdbarch_swap, struct gdbarch_swap_registration,
3968 struct gdbarch_swap_registry, gdbarch_swap_registry,
3969 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
3970 current_gdbarch_swap_in_hack): Remove.
3971 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
3972 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
3973 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
3974 (deprecated_current_gdbarch_select_hack): Likewise.
3975 * gdbarch.h, gdbarch.c: Regenerate.
3976
3977 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3978
3979 * infrun.c (clear_proceed_status): Clean up stop_registers.
3980 (normal_stop): Allocate regcache for stop_registers.
3981 (struct inferior_status): Remove stop_registers member.
3982 (save_inferior_status): Do not save stop_registers.
3983 (restore_inferior_status): Do not restore stop_registers.
3984 (discard_inferior_status): Do not discard stop_registers.
3985 (build_infrun): Remove.
3986 (_initialize_infrun): Do not swap stop_registers.
3987
3988 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3989
3990 * remote.c (remote_address_masked): If remote_address_size is zero,
3991 default to target address size.
3992 (build_remote_gdbarch_data): Remove.
3993 (_initialize_remote): Do not swap remote_address_size.
3994
3995 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3996
3997 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
3998 builtin_type_char, builtin_type_short, builtin_type_int,
3999 builtin_type_long, builtin_type_signed_char,
4000 builtin_type_unsigned_char, builtin_type_unsigned_short,
4001 builtin_type_unsigned_int, builtin_type_unsigned_long,
4002 builtin_type_float, builtin_type_double, builtin_type_long_double,
4003 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4004 builtin_type_bool, builtin_type_long_long,
4005 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4006 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4007 variable declaration with compatibility macro.
4008 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4009 builtin_type_char, builtin_type_short, builtin_type_int,
4010 builtin_type_long, builtin_type_signed_char,
4011 builtin_type_unsigned_char, builtin_type_unsigned_short,
4012 builtin_type_unsigned_int, builtin_type_unsigned_long,
4013 builtin_type_float, builtin_type_double, builtin_type_long_double,
4014 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4015 builtin_type_bool, builtin_type_long_long,
4016 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4017 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4018 (build_gdbtypes): Remove.
4019 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4020 opaque-type-resolution command here. Do not call
4021 deprecated_register_gdbarch_swap.
4022
4023 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4024
4025 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4026 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4027 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4028
4029 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4030 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4031 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4032 (build_parse): Remove.
4033 (_initialize_parse): Do not call build_parse. Do not register
4034 msym_ types for gdbarch-swapping.
4035
4036 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4037 instead of creating private type.
4038
4039 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4040 (_initialize_xcoffread): Do not initialized them.
4041 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4042
4043 * mdebugread.c (nodebug_func_symbol_type): Remove.
4044 (nodebug_var_symbol_type): Remove.
4045 (_initialize_mdebugread): Do not initialize them.
4046 (parse_symbol): Use builtin nodebug_ type instead of them.
4047 (parse_procedure): Likewise.
4048
4049 2007-06-21 Chris Dearman <chris@mips.com>
4050
4051 * printcmd.c (do_one_display): If display/i, start with an initial
4052 line feed to avoid bad layout if there is a branch delay slot.
4053
4054 2007-06-21 Nigel Stephens <nigel@mips.com>
4055 Maciej W. Rozycki <macro@mips.com>
4056
4057 * disasm.c (gdb_print_insn): Return the number of branch delay
4058 slot instructions too.
4059 * disasm.h (gdb_print_insn): Update prototype.
4060 * printcmd.c (branch_delay_insns): New variable to record the
4061 number of delay slot instructions after disassembling a branch.
4062 (print_formatted): Record the number of branch delay slot
4063 instructions.
4064 (do_examine): When disassembling, if the last instruction
4065 disassembled has any branch delay slots, then bump the count so
4066 that they get disassembled too.
4067 * tui/tui-disasm.c (tui_disassemble): Update the call to
4068 gdb_print_insn().
4069 * NEWS: Document the new behaviour.
4070
4071 2007-06-21 Andreas Schwab <schwab@suse.de>
4072
4073 * regcache.c (write_pc_pid): Restore missing else.
4074
4075 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4076
4077 * regcache.c (regcache_print): Use get_current_regcache ()
4078 instead of current_regcache.
4079
4080 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4081
4082 PR 4606
4083 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4084 instead of bfd_make_section_anyway.
4085 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4086 when clearing SEC_LOAD.
4087
4088 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4089
4090 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4091 registers for big-endian.
4092
4093 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4094
4095 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4096 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4097 * gdbarch.c, gdbarch.h: Regenerate.
4098
4099 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4100
4101 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4102 gdbarch_believe_pcc_promotion.
4103 * stabsread.c (define_symbol): Likewise.
4104 Remove unnecessary definition.
4105 * coffread.c (process_coff_symbol): Remove unnecessary code.
4106 * gdbarch.c, gdbarch.h: Regenerate.
4107
4108 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4109
4110 * configure.ac: Do not use ${objdir}.
4111 * configure: Regenerated.
4112
4113 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4114
4115 * gdbarch.sh (deprecated_register_size): Remove.
4116 * gdbarch.h, gdbarch.c: Regenerate.
4117
4118 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4119 by INT_REGISTER_SIZE.
4120 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4121 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4122 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4123 set_gdbarch_deprecated_register_size.
4124
4125 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4126
4127 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4128 gdbarch_deprecated_fp_regnum.
4129 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4130 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4131 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4132 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4133 (comment).
4134 * gdbarch.c, gdbarch.h: Regenerate.
4135
4136 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4137
4138 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4139 gdbarch_extract_return_value.
4140 * value.c (generic_use_struct_convention): Likewise (comment).
4141 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4142 * arch-utils.c (legacy_return_value): Likewise.
4143 * arch-utils.h (legacy_return_value): Likewise (comment).
4144 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4145 gdbarch_store_return_value.
4146 * stack.c (return_command): Likewise (comment).
4147 * arch-utils.h (legacy_return_value): Likewise (comment).
4148 * arch-utils.c (legacy_return_value): Likewise.
4149 * gdbarch.c, gdbarch.h: Regenerate.
4150
4151 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4152
4153 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4154 gdbarch_deprecated_use_struct_convention.
4155 * arch-utils.c (legacy_return_value): Likewise.
4156 * gdbarch.c, gdbarch.h: Regenerate.
4157
4158 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4159
4160 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4161 gdbarch_deprecated_function_start_offset.
4162 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4163 * linespec.c (minsym_found): Likewise.
4164 * infrun.c (handle_inferior_event): Likewise.
4165 * infcall.c (find_function_addr): Likewise.
4166 * cli/cli-cmds.c (disassemble_command): Likewise.
4167 * gdbarch.c, gdbarch.h: Regenerate.
4168
4169 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4170
4171 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4172 gdbarch_deprecated_reg_struct_has_addr.
4173 * infcall.c (call_function_by_hand): Likewise.
4174 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4175 * gdbarch_deprecated_reg_struct_has_addr_p.
4176 * infcall.c (call_function_by_hand): Likewise.
4177 * gdbarch.c, gdbarch.h: Regenerate.
4178
4179 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4180
4181 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4182 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4183 (sh_gdbarch_init): Remove
4184 set_gdbarch_deprecated_extract_struct_value_address.
4185 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4186 (sh64_gdbarch_init): Remove
4187 set_gdbarch_deprecated_extract_struct_value_address.
4188 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4189 (ia64_gdbarch_init): Remove
4190 set_gdbarch_deprecated_extract_struct_value_address.
4191 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4192 (frv_gdbarch_init): Remove
4193 set_gdbarch_deprecated_extract_struct_value_address.
4194 * gdbarch.c, gdbarch.h: Regenerate.
4195
4196 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4197
4198 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4199 * v850-tdep.c (v850_unwind_sp): Likewise.
4200 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4201 * stack.c (frame_info): Likewise.
4202 * stabsread.c (define_symbol): Likewise.
4203 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4204 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4205 (sh_unwind_sp): Likewise.
4206 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4207 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4208 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4209 (rs6000_frame_cache): Likewise.
4210 * rs6000-nat.c (store_register): Likewise.
4211 * remote-mips.c (mips_wait): Likewise.
4212 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4213 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4214 (ppc64_sysv_abi_push_dummy_call): Likewise.
4215 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4216 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4217 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4218 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4219 * m32r-rom.c (m32r_supply_register): Likewise.
4220 * frame.c (frame_sp_unwind): Likewise.
4221 * mips-tdep.c (mips_insn16_frame_cache)
4222 (mips_insn32_frame_cache): Likewise (comment).
4223 * m68klinux-nat.c (supply_gregset): Likewise.
4224 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4225 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4226 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4227 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4228 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4229 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4230 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4231 (cris_register_type, crisv32_register_type)
4232 (cris_dwarf2_frame_init_reg): Likewise.
4233 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4234 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4235 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4236 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4237
4238 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4239 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4240 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4241 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4242 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4243 * v850-tdep.c (v850_unwind_pc): Likewise.
4244 * stack.c (frame_info): Likewise.
4245 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4246 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4247 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4248 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4249 (sh_dsp_show_regs): Likewise.
4250 * shnbsd-tdep.c (shnbsd_supply_gregset)
4251 (shnbsd_collect_gregset): Likewise.
4252 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4253 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4254 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4255 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4256 (6000_register_reggroup_p, rs6000_unwind_pc)
4257 (rs6000_frame_cache): Likewise.
4258 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4259 (rs6000_store_inferior_registers): Likewise.
4260 * remote-mips.c (mips_wait, mips_load): Likewise.
4261 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4262 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4263 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4264 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4265 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4266 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4267 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4268 (store_ppc_registers, fill_gregset): Likewise.
4269 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4270 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4271 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4272 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4273 * m68klinux-nat.c (supply_gregset): Likewise.
4274 * irix5-nat.c (fill_gregset): Likewise.
4275 * i386-tdep.c (i386_unwind_pc): Likewise.
4276 * i386-linux-nat.c (i386_linux_resume): Likewise.
4277 * frame.c (get_prev_frame_1): Likewise.
4278 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4279 * dbug-rom.c (dbug_supply_register): Likewise.
4280 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4281 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4282 (cris_register_type, crisv32_register_type, crisv32_register_name)
4283 (cris_dwarf2_frame_init_reg, find_step_target)
4284 (cris_software_single_step, cris_supply_gregset)
4285 (cris_regnums): Likewise.
4286 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4287 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4288 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4289 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4290 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4291
4292 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4293 * dbug-rom.c (dbug_supply_register): Likewise.
4294 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4295 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4296 * win32-nat.c (win32_resume): Likewise.
4297 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4298 * m68k-tdep.c (m68k_register_type): Likewise.
4299 * m68klinux-nat.c (supply_gregset): Likewise.
4300
4301 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4302 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4303 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4304 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4305 (fv_reg_base_num, dr_reg_base_num): Likewise.
4306 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4307 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4308 (sh64_extract_return_value, sh64_store_return_value)
4309 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4310 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4311 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4312 (invalidate_cache): Likewise.
4313 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4314 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4315 (mipsnbsd_fill_fpreg): Likewise.
4316 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4317 (mipsnbsd_store_inferior_registers): Likewise.
4318 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4319 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4320 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4321 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4322 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4323 (fill_fpregset): Likewise.
4324 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4325 * i386-tdep.h (struct_return): Likewise (comment).
4326 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4327 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4328 (go32_store_registers): Likewise.
4329 * alpha-tdep.c (alpha_next_pc): Likewise.
4330 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4331 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4332 (alphabsd_store_inferior_registers): Likewise.
4333 * core-regset.c (fetch_core_registers): Likewise.
4334 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4335
4336 * gdbarch.c, gdbarch.h: Regenerate.
4337
4338 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4339
4340 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4341 * dbxread.c (start_psymtab): Check HAVE_ELF.
4342 (aout_sym_fns): Likewise.
4343 * elfread.c (elf_symfile_segments): New.
4344 (elf_sym_fns): Add elf_symfile_segments.
4345 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4346 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4347 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4348 * somread.c (som_sym_fns): Use default_symfile_segments.
4349 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4350 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4351 (default_symfile_segments): New function.
4352 (syms_from_objfile): Update call to find_sym_fns.
4353 (symfile_get_segment_data, free_symfile_segment_data): New.
4354 (symfile_map_offsets_to_segments): New.
4355 (symfile_find_segment_sections): New.
4356 * symfile.h (struct symfile_segment_data): New.
4357 (struct sym_fns): Add sym_segments.
4358 (default_symfile_segments, symfile_get_segment_data)
4359 (free_symfile_segment_data): New prototypes.
4360 (symfile_map_offsets_to_segments): Likewise.
4361 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4362 * Makefile.in (COMMON_OBS): Remove elfread.o.
4363 (elf_internal_h): New.
4364 (elfread.o): Update.
4365 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4366 compiled.
4367 * config.in, configure: Regenerated.
4368 * NEWS: Mention qOffsets changes.
4369
4370 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4371
4372 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4373 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4374 Replace global variable declaration with compatibility macro.
4375 (struct builtin_m2_type): New data type.
4376 (builtin_m2_type): Add prototype.
4377 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4378 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4379 Remove global variables.
4380 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4381 (build_m2_types): New function.
4382 (m2_type_data): New variable.
4383 (builtin_m2_type): New function.
4384 (_initialize_m2_language): Do not build data types. Register
4385 m2_type_data per-gdbarch data.
4386
4387 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4388
4389 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4390 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4391 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4392 builtin_type_f_real_s8, builtin_type_f_real_s16,
4393 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4394 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4395 variable declaration with compatibility macro.
4396 (struct builtin_f_type): New data type.
4397 (builtin_f_type): Add prototype.
4398 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4399 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4400 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4401 builtin_type_f_real_s8, builtin_type_f_real_s16,
4402 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4403 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4404 (f_language_arch_info): Use builtin_f_type instead of variables.
4405 (build_fortran_types): Build builtin_f_type structure instead of
4406 setting global type variables.
4407 (f_type_data): New variable.
4408 (builtin_f_type): New function.
4409 (_initialize_f_language): Do not call build_fortran_types. Do not
4410 swap global type variables. Register f_type_data per-gdbarch data.
4411
4412 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4413
4414 * f-lang.c (_initialize_f_language): Do not initialize or
4415 swap builtin_type_string.
4416
4417 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4418
4419 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4420 value_of_builtin_frame_reg): Remove.
4421 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4422 inactive call to value_of_builtin_frame_reg.
4423
4424 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4425
4426 * gdbarch.sh (bfd_vma_bit): Remove.
4427 * gdbarch.c, gdbarch.h: Regenerate.
4428
4429 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4430 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4431 (build_gdbtypes): Do not initialize it.
4432 (_initialize_gdbtypes): Do not swap it.
4433
4434 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4435
4436 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4437 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4438 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4439 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4440 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4441 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4442 builtin_type_vec64, builtin_type_vec128): Remove.
4443 (init_simd_type): Remove.
4444 (init_vector_type): Make global.
4445 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4446 (build_gdbtypes): Do not build vector types.
4447 (_initialize_gdbtypes): Do not swap vector types.
4448 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4449 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4450 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4451 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4452 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4453 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4454 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4455 (init_vector_type): Add prototype.
4456
4457 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4458 i386_sse_type members.
4459 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4460 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4461 (i386_init_types): Do not build vector types.
4462 (i386_mmx_type, i386_sse_type): New functions.
4463 (i386_register_type): Call them instead of using global variables.
4464 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4465 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4466 of using global variable.
4467
4468 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4469 and ppc_builtin_type_vec128 members.
4470 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4471 (rs6000_builtin_type_vec128): Likewise.
4472 (rs6000_register_type): Call them instead of using builtin_type_vec64
4473 and builtin_type_vec128.
4474 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4475
4476 * spu-tdep.c (struct gdbarch_tdep): New data type.
4477 (spu_builtin_type_vec128): Remove variable.
4478 (spu_builtin_type_vec128): New function.
4479 (spu_register_type): Call it instead of using global variable.
4480 (spu_gdbarch_init): Allocate tdep structure.
4481 (spu_init_vector_type): Remove function.
4482 (_initialize_spu_tdep): Do not call it.
4483
4484 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4485
4486 * amd64-tdep.c (struct amd64_register_info): Remove.
4487 (amd64_register_info): Remove.
4488 (amd64_register_names): New static variable.
4489 (AMD64_NUM_REGS): Use amd64_register_names instead of
4490 amd64_register_info.
4491 (amd64_register_name): Likewise.
4492 (amd64_register_type): Do not refer to amd64_register_info.
4493
4494 * s390-tdep.c (struct s390_register_info): Remove.
4495 (s390_register_info): Remove.
4496 (s390_register_name): Do not refer to s390_register_info.
4497 (s390_register_type): Likewise.
4498
4499 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4500 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4501 (sparc64_register_names, sparc64_pseudo_register_names): New.
4502 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4503 sparc64_register_names and sparc64_pseudo_register_names instead of
4504 sparc64_register_info and sparc64_pseudo_register_info.
4505 (sparc64_register_name): Likewise.
4506 (sparc64_register_type): Do not refer to sparc64_register_info
4507 and sparc64_pseudo_register_info.
4508
4509 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4510
4511 * c-lang.c (cplus_builtin_types): Remove.
4512 (enum cplus_primitive_types): New data type.
4513 (cplus_language_arch_info): New function.
4514 (cplus_language_defn): Set la_language_arch_info member. Do not set
4515 la_builtin_type_vector and string_char_type members.
4516
4517 * f-lang.c (f_builtin_types): Remove.
4518 (enum f_primitive_types): New data type.
4519 (f_language_arch_info): New function.
4520 (f_language_de): Set la_language_arch_info member. Do not set
4521 la_builtin_type_vector and string_char_type members.
4522
4523 * m2-lang.c (m2_builtin_types): Remove.
4524 (enum m2_primitive_types): New data type.
4525 (m2_language_arch_info): New function.
4526 (m2_language_defn): Set la_language_arch_info member. Do not set
4527 la_builtin_type_vector and string_char_type members.
4528
4529 * objc-lang.c (objc_builtin_types): Remove.
4530 (objc_language): Set la_language_arch_info member. Do not set
4531 la_builtin_type_vector and string_char_type members.
4532
4533 * p-lang.c (pascal_builtin_types): Remove.
4534 (enum pascal_primitive_types): New data type.
4535 (pascal_language_arch_info): New function.
4536 (pascal_language_defn): Set la_language_arch_info member. Do not set
4537 la_builtin_type_vector and string_char_type members.
4538
4539 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4540
4541 * regcache.c (struct regcache): Add ptid_t member.
4542 (regcache_xmalloc): Initialize it.
4543 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4544 (regcache_dup): Likewise.
4545 (regcache_dup_no_passthrough): Likewise.
4546 (current_regcache): Make static.
4547 (registers_ptid): Remove variable.
4548 (get_thread_regcache): New function.
4549 (get_current_regcache): New function.
4550 (registers_changed): Implement by freeing current regcache.
4551 (regcache_raw_read): Do not refer to current_regcache. Set
4552 inferior_ptid to regcache->ptid while calling target routines.
4553 (regcache_raw_write): Likewise.
4554 (regcache_raw_supply): Do not refer to current_regcache.
4555 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4556 (write_pc_pid): Likewise.
4557 (build_regcache): Remove.
4558 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4559 or deprecated_register_gdbarch_swap. Do not initialize
4560 registers_ptid.
4561 * regcache.h (get_current_regcache): Add prototype.
4562 (get_thread_regcache): Likewise.
4563 (current_regcache): Remove declaration.
4564
4565 * corelow.c (core_open): Replace current_regcache by
4566 get_current_regcache ().
4567 * frame.c (frame_pop): Likewise.
4568 (put_frame_register): Likewise.
4569 (get_current_frame, create_new_frame): Likewise.
4570 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4571 * stack.c (return_command): Likewise.
4572 * infcall.c (call_function_by_hand): Likewise.
4573 * infrun.c (resume): Likewise.
4574 (save_inferior_status, restore_inferior_status): Likewise.
4575 * linux-fork.c (fork_load_infrun_state): Likewise.
4576 (fork_save_infrun_state): Likewise.
4577 * win32-nat.c (win32_resume): Likewise.
4578 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4579 * monitor.c (monitor_wait): Likewise.
4580 * remote.c (remote_wait): Likewise.
4581 * remote-mips.c (mips_wait): Likewise.
4582
4583 * bsd-kvm.c (bsd_kvm_open): Likewise
4584 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4585 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4586 * i386-linux-nat.c (i386_linux_resume): Likewise.
4587 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4588 (ia64_linux_stopped_data_address): Likewise.
4589
4590 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4591 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4592 * mep-tdep.c (current_me_module, current_options): Likewise.
4593 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4594
4595 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4596 regcache instead of current_regcache. Call target_fetch_registers.
4597 (linux_nat_corefile_thread_callback): Update call site.
4598 (linux_nat_do_registers): Likewise.
4599 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4600 of current_regcache.
4601 (procfs_make_note_section): Likewise.
4602 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4603 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4604 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4605 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4606
4607 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4608
4609 * regcache.c (read_register, read_register_pid): Remove.
4610 (write_register, write_register_pid): Likewise.
4611 * regcache.h (read_register, read_register_pid): Remove prototype.
4612 (write_register, write_register_pid): Likewise.
4613
4614 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4615
4616 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4617 (write_pc): Likewise. Remove default implementation, add predicate.
4618 * gdbarch.c, gdbarch.h: Regenerate.
4619 * regcache.c (read_pc_pid): Use current regcache instead of calling
4620 read_register_pid.
4621 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4622 case inline.
4623 (generic_target_write_pc): Remove.
4624 * inferior.h (generic_target_write_pc): Remove.
4625 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4626 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4627 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4628 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4629 * sh-tdep.c (sh_gdbarch_init): Likewise.
4630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4631
4632 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4633 argument. Use REGCACHE instead of calling read_register_pid.
4634 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4635 * hppa-tdep.c (hppa_read_pc): Likewise.
4636 * hppa-tdep.h (hppa_read_pc): Likewise.
4637 * ia64-tdep.c (ia64_read_pc): Likewise.
4638 * m32r-tdep.c (m32r_read_pc): Likewise.
4639 * mep-tdep.c (mep_read_pc): Likewise.
4640 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4641 * spu-tdep.c (spu_read_pc): Likewise.
4642
4643 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4644 argument. Use REGCACHE instead of calling write_register_pid.
4645 * avr-tdep.c (avr_write_pc): Likewise.
4646 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4647 * hppa-tdep.c (hppa_write_pc): Likewise.
4648 * hppa-tdep.h (hppa_write_pc): Likewise.
4649 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4650 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4651 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4652 * ia64-tdep.c (ia64_write_pc): Likewise.
4653 * ia64-tdep.h (ia64_write_pc): Likewise.
4654 * m32r-tdep.c (m32r_write_pc): Likewise.
4655 * m88k-tdep.c (m88k_write_pc): Likewise.
4656 * mep-tdep.c (mep_write_pc): Likewise.
4657 * mips-tdep.c (mips_write_pc): Likewise.
4658 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4659 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4660 * sparc-tdep.c (sparc_write_pc): Likewise.
4661 * spu-tdep.c (spu_write_pc): Likewise.
4662
4663 * mips-tdep.c (read_signed_register): Remove.
4664 (read_signed_register_pid): Likewise.
4665 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4666 Use REGCACHE instead of calling read_signed_register_pid.
4667
4668 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4669
4670 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4671 * gdbarch.c, gdbarch.h: Regenerate.
4672 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4673 (push_dummy_code): Likewise. Pass it to callee.
4674 (call_function_by_hand): Pass current regcache to push_dummy_code.
4675
4676 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4677 argument. Use it instead of current_regcache.
4678
4679 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4680 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4681
4682 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4683
4684 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4685 * gdbarch.c, gdbarch.h: Regenerate.
4686 * infrun.c (handle_inferior_event): Pass current frame to
4687 gdbarch_get_longjmp_target.
4688
4689 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4690 Read registers from FRAME instead of using read_register.
4691 Use get_frame_arch instead of current_gdbarch.
4692 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4693 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4694 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4695 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4696 (mips64_linux_get_longjmp_target): Likewise.
4697 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4698
4699 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4700
4701 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4702 * gdbarch.c, gdbarch.h: Regenerate.
4703 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4704 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4705 * infrun.c (handle_inferior_event): Pass current frame to
4706 gdbarch_skip_trampoline_code and skip_language_trampoline.
4707
4708 * language.c (unk_lang_trampoline): Add FRAME argument.
4709 (skip_language_trampoline): Add FRAME argument. Pass it to
4710 skip_trampoline callback.
4711 * language.h: Add forward declaration of struct frame_info.
4712 (struct language_defn): Add FRAME argument to skip_trampoline.
4713 (skip_language_trampoline): Add FRAME argument.
4714 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4715 to skip_trampoline callback.
4716 * cp-abi.h: Add forward declaration of struct frame_info.
4717 (cplus_skip_trampoline): Add FRAME argument.
4718 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4719 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4720 to gdbarch_skip_trampoline_code.
4721 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4722 to gdbarch_skip_trampoline_code.
4723
4724 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4725 * symtab.h (find_solib_trampoline_target): Likewise.
4726 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4727 find_solib_trampoline_target.
4728
4729 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4730 from FRAME instead of calling read_register.
4731
4732 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4733 argument. Read registers from FRAME instead of using read_register.
4734 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4735 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4736
4737 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4738 argument.
4739
4740 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4741
4742 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
4743 registers from FRAME instead of using read_signed_register.
4744
4745 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4746 argument.
4747 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
4748 instead of using read_register.
4749 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
4750 ppc64_standard_linkage_target.
4751 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
4752 Pass it to find_solib_trampoline_target. Read registers from FRAME
4753 instead of using read_register.
4754
4755 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
4756 argument.
4757
4758 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4759
4760 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
4761 FRAME argument.
4762 * gdbarch.c, gdbarch.h: Regenerate.
4763 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
4764
4765 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
4766 registers from FRAME instead of using read_register.
4767 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4768 to alpha_next_pc. Use get_frame_pc instead of read_pc.
4769 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
4770 argument by FRAME.
4771
4772 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
4773 from FRAME instead of using read_register.
4774 (thumb_get_next_pc): Likewise.
4775 (arm_get_next_pc): Likewise.
4776 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4777 to arm_get_next_pc. Use get_frame_pc instead of read_register.
4778 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
4779 argument by FRAME.
4780
4781 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
4782 from FRAME instead of using read_register.
4783 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4784 to find_step_target.
4785
4786 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
4787 from FRAME instead of using read_register / read_signed_register.
4788 (extended_mips16_next_pc): Likewise.
4789 (mips16_next_pc): Likewise.
4790 (mips_next_pc): Likewise.
4791 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4792 to mips_next_pc. Use get_frame_pc instead of read_pc.
4793 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
4794 argument by FRAME.
4795
4796 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
4797 of current frame. Read registers from FRAME.
4798 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
4799 branch_dest. Use get_frame_pc instead of read_pc.
4800 (rs6000_software_single_step): Likewise.
4801 (bl_to_blrl_insn_p): Do not call branch_dest.
4802 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
4803 argument by FRAME.
4804
4805 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
4806 Read registers from FRAME instead of current regcache.
4807 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
4808 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
4809 * sparc-tdep.c (sparc_address_from_register): Remove.
4810 (sparc_analyze_control_transfer): Pass FRAME argument instead of
4811 GDBARCH. Pass FRAME to step_trap callback.
4812 (sparc_step_trap): Add FRAME argument.
4813 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4814 to sparc_analyze_control_transfer. Read registers from FRAME instead
4815 of calling sparc_address_from_register.
4816 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
4817 step_trap callback.
4818 (sparc_address_from_register): Remove prototype.
4819 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
4820 (sparcnbsd_step_trap): Add FRAME argument.
4821
4822 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
4823 by FRAME. Read registers from FRAME instead of REGCACHE.
4824
4825 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4826
4827 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
4828 instead of calling read_register.
4829
4830 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
4831 calling write_register.
4832
4833 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
4834 calling write_register.
4835
4836 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
4837 instead of calling read_register.
4838 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
4839 instead of calling read_register and write_register.
4840
4841 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
4842 instead of current_regcache.
4843
4844 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
4845 of calling write_register.
4846 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
4847 parameter instead of current_regcache.
4848
4849 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
4850 instead of calling read_register.
4851 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
4852 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
4853 (mips_n32n64_push_dummy_call): Likewise.
4854 (mips_o32_push_dummy_call): Likewise.
4855 (mips_o64_push_dummy_call): Likewise.
4856
4857 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
4858 parameter instead of current_regcache.
4859
4860 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
4861 Use it instead of read_register and write_register.
4862 (xtensa_register_read_masked): Likewise.
4863 (xtensa_pseudo_register_read): Update call.
4864 (xtensa_pseudo_register_write): Likewise.
4865 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
4866 instead of calling read_register.
4867 (xtensa_push_dummy_call): Update comment.
4868
4869 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4870
4871 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
4872 by frame_unwind_register_signed calls.
4873 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
4874 frame allocations when called with NULL NEXT_FRAME parameter.
4875 (read_next_frame_reg): Remove.
4876
4877 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
4878 instead of reading the FPSCR register.
4879 (sh_frame_cache): Pass unwound FPSCR register value to
4880 sh_analyze_prologue.
4881 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
4882
4883 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
4884 instead of reading the CTBP register.
4885 (v850_frame_cache): Pass unwound CTBP register value to
4886 v850_analyze_prologue.
4887
4888 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4889
4890 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
4891 * sh-tdep.c (sh_show_regs): Likewise.
4892 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
4893 (sh_generic_show_regs): Add FRAME parameter. Use register
4894 values from that frame instead of calling read_register.
4895 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
4896 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
4897 sh_dsp_show_regs): Likewise.
4898 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
4899 sh64_show_regs): Likewise.
4900
4901 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4902
4903 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
4904 current regcache instead of calling read_register.
4905
4906 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4907
4908 * mep-tdep.c (current_me_module): Read from current regcache
4909 instead of calling read_register.
4910 (current_options): Likewise.
4911
4912 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4913
4914 * cris-tdep.c (cris_stopped_data_address): Read register values
4915 from current frame instead of calling read_register.
4916 * frv-tdep.c (frv_stopped_data_address): Likewise.
4917
4918 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4919
4920 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
4921 instead of write_register (PC_REGNUM, ...).
4922
4923 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4924
4925 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
4926 explaining why the PC adjustment code is necessary.
4927
4928 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
4929
4930 * m68k-tdep.h (enum m68k_flavour): New.
4931 (struct gdbarch_tdep): New fields
4932 float_return, flavour and fpregs_present.
4933 * m68k-tdep.c (m68k_register_type): Use
4934 fpregs_present and conditionalize floating
4935 registers type on flavour.
4936 (m68k_register_names): New.
4937 (m68k_register_name): Use the above.
4938 (m68k_convert_register_p): Consult fpregs_present.
4939 (m68k_register_to_value, m68k_value_to_register):
4940 Use register_type to obtain the type of floating
4941 point registers.
4942 (m68k_svr4_extract_return_value): Check tdep->float_return.
4943 Use register_type to get the type of floating
4944 point regiters.
4945 (m68k_svr4_store_return_value): Likewise.
4946 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
4947 (m68k_analyze_register_saves): Likewise.
4948 (m68k_gdbarch_init): Extract infromation
4949 from XML description, if present. Guess coldfire by
4950 looking at the file, if present. Conditionalize
4951 setting of long double format. Set decr_pc_after_break
4952 to 2 on coldfire and fido. Enable XML-driven
4953 register description.
4954 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
4955 size of tdep->fpreg_type, as opposed to hardcoded value.
4956 * Makefile.in (m68k-tdep.o): Update dependencies.
4957
4958 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4959
4960 * NEWS: Mention "info spu" commands and qXfer:spu:read and
4961 qXfer:spu:write remote packet types.
4962
4963 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4964
4965 * xml-tdesc.c (tdesc_start_target): New.
4966 (target_attributes): New.
4967 (tdesc_elements): Use it.
4968 * features/gdb-target.dtd: Add #FIXED version attribute for
4969 <target>.
4970
4971 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
4972
4973 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
4974
4975 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
4976
4977 * fork-child.c (fork_inferior): Update comment.
4978
4979 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4980
4981 * features/Makefile: Generate regformats for mips-linux and
4982 mips64-linux.
4983 * features/sort-regs.xsl: Correct typo.
4984 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
4985 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
4986 files.
4987
4988 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4989
4990 * config/mips/linux.mh (TDEP_XML): New.
4991 * features/mips-linux.xml, features/mips64-linux.xml: New files.
4992 * mips-linux-nat.c (mips_linux_register_addr): Handle
4993 MIPS_RESTART_REGNUM.
4994 (mips64_linux_register_addr): Likewise.
4995 (super_xfer_partial, mips_linux_xfer_partial): New.
4996 (_initialize_mips_linux_nat): Add them to the target_ops.
4997 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
4998 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
4999 (mips_linux_o32_sigframe_init)
5000 (mips_linux_n32n64_sigframe_init): Likewise.
5001 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5002 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5003 "org.gnu.gdb.mips.linux" feature.
5004 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5005 (mips_linux_restart_reg_p): New prototype.
5006 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5007 initialization routine.
5008 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5009
5010 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5011
5012 * Makefile.in (mips-tdep.o): Update.
5013 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5014 (mips_n32_n64_aliases, mips_register_aliases): New.
5015 (mips_register_name): Call tdesc_register_name.
5016 (mips_tdesc_register_reggroup_p): New.
5017 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5018 (mips_gdbarch_init): Add target-described register support.
5019 Register aliases for register names.
5020 * target-descriptions.c (tdesc_register_name): Make global.
5021 (tdesc_register_in_reggroup_p): New function, broken out from
5022 tdesc_register_reggroup_p.
5023 (tdesc_register_reggroup_p): Use it.
5024 * target-descriptions.h (tdesc_register_name)
5025 (tdesc_register_in_reggroup_p): New prototypes.
5026 * NEWS: Correct formatting. Mention MIPS register support.
5027 * features/mips-cp0.xml, features/mips-fpu.xml,
5028 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5029 features/mips64-cpu.xml: New files.
5030
5031 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5032
5033 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5034 * valops.c (value_cast): Likewise.
5035 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5036 * ui-out.c (ui_out_field_core_addr): Likewise.
5037 * tracepoint.c (tracepoints_info): Likewise.
5038 * symtab.c (print_msymbol_info): Likewise.
5039 * solib-irix.c (irix_current_sos)
5040 (irix_open_symbol_file_object): Likewise.
5041 * remote.c (build_remote_gdbarch_data): Likewise.
5042 * prologue-value.c (make_pv_area): Likewise.
5043 * procfs.c (info_mappings_callback): Likewise.
5044 * printcmd.c (print_scalar_formatted)
5045 (deprecated_print_address_numeric): Likewise.
5046 * memattr.c (mem_info_command): Likewise.
5047 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5048 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5049 * exec.c (print_section_info): Likewise.
5050 * dwarf2read.c (read_subrange_type): Likewise.
5051 * dwarf2loc.c (find_location_expression): Likewise.
5052 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5053 (signed_address_type, execute_stack_op): Likewise.
5054 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5055 * gdbarch.c, gdbarch.h: Regenerate.
5056
5057 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5058
5059 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5060 * arch-utils.c (show_architecture): Likewise.
5061 * remote-mips.c (mips_open): Likewise
5062 * nto-tdep.c (nto_find_and_open_solib)
5063 (nto_init_solib_absolute_prefix): Likewise.
5064 * nto-procfs (procfs_open): Likewise.
5065 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5066 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5067 * gdbarch.c, gdbarch.h: Regenerate.
5068
5069 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5070
5071 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5072 * gdbtypes.c (build_flt): Likewise.
5073 * gdbarch.c, gdbarch.h: Regenerate.
5074
5075 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5076
5077 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5078 gdbarch_breakpoint_from_pc.
5079 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5080 * remote.c (remote_insert_breakpoint)
5081 (remote_insert_hw_breakpoint): Likewise.
5082 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5083 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5084 * breakpoint.h (bp_target_info): Likewise (comment).
5085 * breakpoint.c (read_memory_nobpt): Likewise.
5086 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5087 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5088 * gdbarch.c, gdbarch.h: Regenerate.
5089
5090 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5091
5092 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5093 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5094 * solib-pa64.c (read_dynamic_info): Likewise.
5095 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5096 * solib.c (info_sharedlibrary_command): Likewise.
5097 * s390-nat.c (SUBOFF): Likewise.
5098 * p-valprint.c (pascal_val_print): Likewise.
5099 * procfs.c (info_proc_mappings): Likewise.
5100 * printcmd.c (decode_format): Likewise.
5101 * nto-tdep.c (nto_truncate_ptr): Likewise.
5102 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5103 (mips64_linux_get_longjmp_target): Likewise.
5104 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5105 * jv-valprint.c (java_value_print): Likewise.
5106 * jv-lang.c (get_java_object_header_size): Likewise.
5107 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5108 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5109 (hppa_hpux_unwind_adjust_stub): Likewise.
5110 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5111 * gdbtypes.c (make_pointer_type, make_reference_type)
5112 (smash_to_memberptr_type): Likewise.
5113 * gdbarch.c, gdbarch.h: Regenerate.
5114
5115 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5116
5117 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5118 (print_gp_register_row): Stop before printing a register bigger
5119 than the ABI register size.
5120 (mips_print_registers_info): Update call to mips_print_register.
5121
5122 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5123
5124 * expression.h (enum exp_opcode): Document a register name for
5125 OP_REGISTER.
5126 * parse.c (write_dollar_variable): Write the register name for
5127 OP_REGISTER.
5128 (operator_length_standard): Expect the register name following
5129 OP_REGISTER.
5130 * ada-lang.c (resolve_subexp): Likewise.
5131 * ax-gdb.c (gen_expr): Likewise.
5132 * eval.c (evaluate_subexp_standard): Likewise.
5133 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5134 Likewise.
5135 * tracepoint.c (encode_actions): Likewise.
5136
5137 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5138
5139 * utils.c (set_screen_size): Use INT_MAX for default columns.
5140
5141 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5142
5143 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5144 qXfer:spu:write packet types.
5145
5146 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5147
5148 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5149 * gdbarch.c, gdbarch.h: Regenerate.
5150
5151 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5152
5153 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5154 gdbarch_stab_reg_to_regnum.
5155 * stabsread.c (define_symbol): Likewise.
5156 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5157 gdbarch_ecoff_reg_to_regnum.
5158 * mdebugread.c (parse_symbol): Likewise.
5159 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5160 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5161 gdbarch_dwarf_reg_to_regnum.
5162 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5163 * coffread.c (process_coff_symbol): Likewise.
5164 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5165 gdbarch_dwarf2_reg_to_regnum.
5166 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5167 (locexpr_describe_location): Likewise.
5168 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5169 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5170 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5171 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5172 * gdbarch.c, gdbarch.h: Regenerate.
5173
5174 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5175
5176 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5177 gdbarch_smash_text_address.
5178 * somread.c (som_symtab_read): Likewise.
5179 * elfread.c (record_minimal_symbol): Likewise.
5180 * dbxread.c (process_one_symbol): Likewise.
5181 * coffread.c (coff_symtab_read): Likewise.
5182 * gdbarch.c, gdbarch.h: Regenerate.
5183
5184 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5185
5186 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5187 * findvar.c (value_from_register): Likewise.
5188 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5189 * valops.c (value_assign): Likewise.
5190 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5191 gdbarch_convert_register_p.
5192 * findvar.c (value_from_register): Likewise.
5193 * valops.c (value_assign): Likewise.
5194 * gdbarch.c, gdbarch.h: Regenerate.
5195
5196 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5197
5198 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5199 gdbarch_register_sim_regno.
5200 * sim-regno.h (sim_regno): Likewise (comment).
5201 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5202 * gdbarch.c, gdbarch.h: Regenerate.
5203
5204 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5205
5206 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5207 gdbarch_virtual_frame_pointer.
5208 * tracepoint.c (encode_actions): Likewise.
5209 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5210 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5211 * gdbarch.c, gdbarch.h: Regenerate.
5212
5213 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5214
5215 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5216 * p-lang.c (pascal_create_fundamental_type): Likewise.
5217 * objc-lang.c (objc_create_fundamental_type): Likewise.
5218 * mdebugread.c (_initialize_mdebugread): Likewise.
5219 * m2-lang.c (m2_create_fundamental_type)
5220 (_initialize_m2_language): Likewise.
5221 * gdbtypes.c (build_gdbtypes): Likewise.
5222 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5223 * doublest.c (floatformat_from_length): Likewise.
5224 * c-lang.c (c_create_fundamental_type): Likewise.
5225 * ada-lang.c (ada_create_fundamental_type)
5226 (ada_language_arch_info): Likewise.
5227 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5228 * value.c (unpack_double): Likewise (comment).
5229 * gdbtypes.c (build_gdbtypes): Likewise.
5230 * doublest.c (floatformat_from_length): Likewise.
5231 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5232 * valarith.c (value_binop): Likewise.
5233 * p-lang.c (pascal_create_fundamental_type): Likewise.
5234 * objc-lang.c (objc_create_fundamental_type): Likewise.
5235 * mdebugread.c (_initialize_mdebugread): Likewise.
5236 * m2-lang.c (m2_create_fundamental_type): Likewise.
5237 * gdbtypes.c (build_gdbtypes): Likewise.
5238 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5239 * doublest.c (floatformat_from_length): Likewise.
5240 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5241 * c-lang.c (c_create_fundamental_type): Likewise.
5242 * ada-lex.l (processReal): Likewise.
5243 * ada-lang.c (ada_create_fundamental_type)
5244 (ada_language_arch_info): Likewise.
5245 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5246 * value.c (unpack_double): Likewise (comment).
5247 * gdbtypes.c (build_gdbtypes): Likewise.
5248 * doublest.c (floatformat_from_length): Likewise.
5249 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5250 gdbarch_long_double_bit.
5251 * p-lang.c (pascal_create_fundamental_type): Likewise.
5252 * objc-lang.c (objc_create_fundamental_type): Likewise.
5253 * m2-lang.c (m2_create_fundamental_type): Likewise.
5254 * gdbtypes.c (build_gdbtypes): Likewise.
5255 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5256 * doublest.c (floatformat_from_length): Likewise.
5257 * c-lang.c (c_create_fundamental_type): Likewise.
5258 * ada-lex.l (processReal): Likewise.
5259 * ada-lang.c (ada_create_fundamental_type)
5260 (ada_language_arch_info): Likewise.
5261 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5262 gdbarch_long_double_format.
5263 * gdbtypes.c (build_gdbtypes): Likewise.
5264 * doublest.c (floatformat_from_length): Likewise.
5265 * gdbarch.c, gdbarch.h: Regenerate.
5266
5267 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5268
5269 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5270 * ada-lang.c (ada_create_fundamental_type)
5271 (ada_language_arch_info): Likewise.
5272 * c-lang.c (c_create_fundamental_type): Likewise.
5273 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5274 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5275 * m2-lang.c (m2_create_fundamental_type): Likewise.
5276 * objc-lang.c (objc_create_fundamental_type): Likewise.
5277 * p-lang.c (pascal_create_fundamental_type): Likewise.
5278 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5279 * c-exp.y (parse_number): Likewise.
5280 * objc-exp.y (parse_number): Likewise.
5281 * ada-lex.l (processInt): Likewise.
5282 * f-exp.y (parse_number): Likewise.
5283 * p-exp.y (parse_number): Likewise.
5284 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5285 (gdbtypes_post_init, build_gdbtypes): Likewise.
5286 * p-lang.c (pascal_create_fundamental_type): Likewise.
5287 * parse.c (build_parse): Likewise.
5288 * xcoffread.c (_initialize_xcoffread): Likewise.
5289 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5290 (read_range_type): Likewise.
5291 * objc-lang.c (objc_create_fundamental_type): Likewise.
5292 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5293 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5294 (m2_create_fundamental_type): Likewise.
5295 * c-lang.c (c_create_fundamental_type): Likewise.
5296 * coffread.c (coff_read_enum_type): Likewise.
5297 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5298 * dwarf2read.c (new_symbol): Likewise.
5299 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5300 * c-exp.y (parse_number): Likewise.
5301 * objc-exp.y (parse_number): Likewise.
5302 * ada-lex.l (processInt): Likewise.
5303 * f-exp.y (parse_number): Likewise.
5304 * p-exp.y (parse_number): Likewise.
5305 * valarith.c (value_binop): Likewise.
5306 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5307 * ada-lang.c (ada_create_fundamental_type)
5308 (ada_language_arch_info): Likewise.
5309 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5310 * symfile.c (TARGET_LONG_BYTES): Likewise.
5311 * p-lang.c (pascal_create_fundamental_type): Likewise.
5312 * objc-lang.c (objc_create_fundamental_type): Likewise.
5313 * m2-lang.c (m2_create_fundamental_type): Likewise.
5314 * f-lang.c (f_create_fundamental_type): Likewise.
5315 * c-lang.c (c_create_fundamental_type): Likewise.
5316 * coffread.c (decode_base_type): Likewise.
5317 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5318 * c-exp.y (parse_number): Likewise.
5319 * objc-exp.y (parse_number): Likewise.
5320 * p-exp.y (parse_number): Likewise.
5321 * ada-lang.c (ada_create_fundamental_type)
5322 (ada_language_arch_info): Likewise.
5323 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5324 * stabsread.c (read_range_type): Likewise.
5325 * p-lang.c (pascal_create_fundamental_type): Likewise.
5326 * objc-lang.c (objc_create_fundamental_type): Likewise.
5327 * m2-lang.c (m2_create_fundamental_type): Likewise.
5328 * f-lang.c (f_create_fundamental_type): Likewise.
5329 * c-lang.c (c_create_fundamental_type): Likewise.
5330 * gdbarch.c, gdbarch.h: Regenerate.
5331
5332 2007-06-12 Andreas Schwab <schwab@suse.de>
5333
5334 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5335 (struct frame_unwind): Add dealloc_cache.
5336 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5337
5338 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5339 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5340 (libunwind_frame_unwind): Set dealloc_cache.
5341 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5342
5343 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5344 Markus Deuling <deuling@de.ibm.com>
5345
5346 * remote.c (remote_write_qxfer): New function.
5347 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5348 (remote_read_qxfer): Do not cache empty objects.
5349 (_initialize_remote): Add PACKET_qXfer_spu_read and
5350 PACKET_qXfer_spu_write.
5351
5352 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5353
5354 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5355 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5356
5357 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5358 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5359 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5360 * spu-tdep.c (infospucmdlist): New variable.
5361 (spu_register_name): Handle additional pseudo registers.
5362 (spu_register_type): Likewise.
5363 (spu_pseudo_register_read): Likewise.
5364 (spu_pseudo_register_write): Likewise.
5365 (spu_pseudo_register_read_spu): New function.
5366 (spu_pseudo_register_write_spu): Likewise.
5367 (info_spu_event_command): New function.
5368 (info_spu_signal_command): Likewise.
5369 (info_spu_mailbox_list): Likewise.
5370 (info_spu_mailbox_command): Likewise.
5371 (spu_mfc_get_bitfield): Likewise.
5372 (info_spu_dma_cmdlist): Likewise.
5373 (info_spu_dma_command): Likewise.
5374 (info_spu_proxydma_command): Likewise.
5375 (info_spu_command): Likewise.
5376 (_initialize_spu_tdep): Install "info spu" commands.
5377
5378 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5379
5380 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5381 accessing non-seekable spufs files.
5382
5383 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5384
5385 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5386 gdbarch_skip_trampoline_code.
5387 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5388 * objc-lang.c (objc_skip_trampoline)
5389 (objc_submethod_helper_data): Likewise.
5390 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5391 * infrun.c (handle_inferior_event): Likewise.
5392 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5393 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5394 gdbarch_in_solib_return_trampoline.
5395 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5396 * infrun.c (handle_inferior_event): Likewise.
5397 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5398 * gdbarch.c, gdbarch.h: Regenerate.
5399
5400 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5401
5402 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5403 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5404 * linespec.c (minsym_found): Likewise.
5405 * infrun.c (step_into_function): Likewise.
5406 * gdbarch.c, gdbarch.h: Regenerate.
5407
5408 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5409
5410 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5411 * valops.c (value_allocate_space_in_inferior): Likewise.
5412 * gdbarch.c, gdbarch.h: Regenerate.
5413
5414 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5415
5416 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5417 gdbarch_memory_insert_breakpoint.
5418 * mem-break.c (memory_insert_breakpoint): Likewise.
5419 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5420 gdbarch_memory_remove_breakpoint.
5421 * mem-break.c (memory_remove_breakpoint): Likewise.
5422 * gdbarch.c, gdbarch.h: Regenerate.
5423
5424 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5425
5426 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5427 gdbarch_fetch_tls_load_module_address.
5428 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5429 gdbarch_fetch_tls_load_module_address_p.
5430 * gdbarch.c, gdbarch.h: Regenerate.
5431
5432 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5433
5434 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5435 gdbarch_decr_pc_after_break.
5436 * tracepoint.c (trace_dump_command): Likewise.
5437 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5438 * linux-thread-db.c (check_event): Likewise.
5439 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5440 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5441 * frame.h: Likewise (comment).
5442 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5443 * aix-thread.c (aix_thread_wait): Likewise.
5444 * gdbarch.c, gdbarch.h: Regenerate.
5445
5446 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5447
5448 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5449 gdbarch_address_class_type_flags.
5450 * dwarf2read.c (read_tag_pointer_type): Likewise.
5451 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5452 gdbarch_address_class_type_flags_p.
5453 * dwarf2read.c (read_tag_pointer_type): Likewise.
5454 * gdbarch.c, gdbarch.h: Regenerate.
5455
5456 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5457
5458 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5459 * value.c (value_as_address): Likewise (comment).
5460 * remote-mips.c (common_breakpoint): Likewise.
5461 * regcache.c (read_pc_pid): Likewise.
5462 * printcmd.c (do_one_display): Likewise.
5463 * monitor.c (monitor_write_memory, monitor_read_memory)
5464 (monitor_insert_breakpoint): Likewise.
5465 * mips-tdep.c (heuristic_proc_start): Likewise.
5466 * infrun.c (insert_step_resume_breakpoint_at_frame)
5467 (insert_step_resume_breakpoint_at_caller): Likewise.
5468 * buildsym.c (record_line): Likewise.
5469 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5470 (arm_get_next_pc): Likewise.
5471 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5472 (store_regs): Likewise.
5473 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5474 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5475 * gdbarch.c, gdbarch.h: Regenerate.
5476
5477 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5478
5479 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5480 * tracepoint.c (scope_info): Likewise.
5481 * target.c (debug_print_register): Likewise.
5482 * stack.c (frame_info): Likewise.
5483 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5484 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5485 (sh64_media_print_registers_info)
5486 (sh64_compact_print_registers_info): Likewise.
5487 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5488 * remote-sim.c (gdbsim_fetch_register): Likewise.
5489 * remote.c (packet_reg): Likewise (comment).
5490 * reggroups.c (default_register_reggroup_p): Likewise.
5491 * regcache.c (regcache_dump): Likewise.
5492 * printcmd.c (address_info): Likewise.
5493 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5494 * mt-dep.c (mt_registers_info): Likewise.
5495 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5496 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5497 (mips_read_fp_register_double, mips_print_fp_register)
5498 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5499 (mips_register_sim_regno): Likewise.
5500 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5501 * inf-ptrace.c (inf_ptrace_fetch_register)
5502 (inf_ptrace_store_register): Likewise.
5503 * infcmd.c (default_print_registers_info): Likewise.
5504 * ia64-linux-nat.c (ia64_linux_fetch_register)
5505 (ia64_linux_store_register): Likewise.
5506 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5507 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5508 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5509 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5510 (hppa_hpux_store_register): Likewise.
5511 * findvar.c (locate_var_value): Likewise.
5512 * dwarf2loc.c (locexpr_describe_location): Likewise.
5513 * dwarf2-frame.c (execute_cfa_program): Likewise.
5514 * arm-tdep.c (arm_push_dummy_call): Likewise.
5515 * arch-utils.c (legacy_register_sim_regno): Likewise.
5516 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5517 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5518 * mi/mi-main.c (mi_cmd_data_list_register_names)
5519 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5520 (mi_cmd_data_write_register_values): Likewise.
5521 * gdbarch.c, gdbarch.h: Regenerate.
5522
5523 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5524
5525 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5526
5527 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5528
5529 * remote.c (process_g_packet): Don't check size.
5530 * gdbarch.sh: Remove register_bytes_ok.
5531 * gdbarch.c: Regenerated.
5532 * gdbarch.h: Regenerated.
5533 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5534 (m68k_register_bytes_ok): Remove.
5535 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5536
5537 2007-06-06 Andreas Schwab <schwab@suse.de>
5538
5539 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5540 (destroy_addr_space_name): Define.
5541 (libunwind_load): Get address of destroy_addr_space function.
5542 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5543 returning unsuccessfully.
5544 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5545 returning.
5546 (libunwind_sigtramp_frame_sniffer): Likewise.
5547 (libunwind_get_reg_special): Likewise.
5548
5549 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5550
5551 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5552 gdbarch_fetch_pointer_argument.
5553 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5554 * gdbarch.c, gdbarch.h: Regenerate.
5555
5556 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5557
5558 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5559 gdbarch_have_nonsteppable_watchpoint.
5560 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5561 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5562 gdbarch_cannot_step_breakpoint.
5563 * infrun.c (resume): Likewise.
5564 * gdbarch.c, gdbarch.h: Regenerate.
5565
5566 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5567
5568 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5569 * stack.c (print_frame_args): Likewise.
5570 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5571 * stack.c (print_args_stub, frame_info): Likewise.
5572 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5573 * stack.c (print_args_stub, frame_info): Likewise.
5574 * gdbarch.c, gdbarch.h: Regenerate.
5575
5576 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5577
5578 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5579 gdbarch_coff_make_msymbol_special.
5580 * coffread.c (coff_symtab_read): Likewise.
5581 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5582 gdbarch_elf_make_msymbol_special.
5583 * elfread.c (elf_symtab_read): Likewise.
5584 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5585 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5586 * gdbarch.c, gdbarch.h: Regenerate.
5587
5588 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5589
5590 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5591 gdbarch_frame_red_zone_size.
5592 * gdbarch.c, gdbarch.h: Regenerate.
5593
5594 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5595
5596 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5597 * infcall.c (call_function_by_hand): Likewise.
5598 * gcore.c (derive_stack_segment): Likewise.
5599 * frame.c (frame_id_inner): Likewise.
5600 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5601 * ada-lang.c (ensure_lval): Likewise.
5602 * gdbarch.c, gdbarch.h: Regenerate.
5603
5604 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5605
5606 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5607 gdbarch_address_to_pointer.
5608 * findvar.c (store_typed_address): Likewise.
5609 * gdbtypes.c (make_pointer_type): Likewise (comment).
5610 * procfs.c (procfs_address_to_host_pointer): Likewise.
5611 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5612 (value_of_builtin_frame_fp_reg): Likewise.
5613 (value_of_builtin_frame_pc_reg): Likewise.
5614 * utils.c (paddress): Likewise (comment).
5615 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5616 gdbarch_pointer_to_address.
5617 * findvar.c (extract_typed_address): Likewise.
5618 * gdbtypes.c (make_pointer_type): Likewise (comment).
5619 * valops.c (value_cast): Likewise (comment).
5620 * gdbarch.c, gdbarch.h: Regenerate.
5621
5622 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5623
5624 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5625 * infrun.c (handle_inferior_event): Likewise.
5626 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5627 gdbarch_get_longjmp_target_p.
5628 * breakpoint.c (breakpoint_re_set): Likewise.
5629 * infrun.c (handle_inferior_event): Likewise.
5630 * gdbarch.c, gdbarch.h: Regenerate.
5631
5632 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5633
5634 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5635 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5636 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5637 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5638 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5639 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5640 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5641 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5642 current_ex_event, child_get_current_exception_event): Remove.
5643 (hppa_hpux_inferior_created): Remove.
5644 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5645
5646 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5647 (deprecated_exception_support_initialized): Remove.
5648 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5649 (deprecated_exception_support_initialized): Remove.
5650 (breakpoint_init_inferior): Remove handling of non-zero
5651 deprecated_exception_catchpoints_are_fragile.
5652
5653 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5654 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5655 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5656 deprecated_hp_som_som_object_present.
5657 * eval.c (evaluate_subexp_standard): Likewise.
5658 * valops.c (value_cast): Likewise.
5659
5660 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5661 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5662 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5663
5664 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5665
5666 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5667 (struct objfile): Remove import_list, import_list_size,
5668 export_list, export_list_size members.
5669 (is_in_import_list): Remove prototype.
5670 * objfiles.c (is_in_import_list): Remove.
5671 * somread.c (init_import_symbols, init_export_symbols): Remove.
5672 (som_symfile_read): Do not call init_import_symbols. Do not
5673 set objfile->export_list and objfile->export_list_size.
5674
5675 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5676
5677 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5678 Use the original objfile if necessary.
5679
5680 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5681
5682 * defs.h (ldirname): New prototype.
5683 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5684 missing.
5685 * utils.c (ldirname): New function.
5686 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5687
5688 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5689
5690 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5691
5692 2007-06-01 Joel Brobecker <brobecker@adacore.com>
5693
5694 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5695
5696 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5697
5698 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5699
5700 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5701
5702 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5703 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5704 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5705 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5706 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5707 ppc_linux_at_sigtramp_return_path): Remove.
5708
5709 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5710
5711 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5712 (xtensa_register_write_masked, xtensa_register_read_masked)
5713 (xtensa_extract_return_value, xtensa_store_return_value
5714 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5715 TARGET_BYTE_ORDER by gdbarch_byte_order.
5716 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5717 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5718 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5719 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5720 (sh64_push_dummy_call, sh64_extract_return_value)
5721 (sh64_store_return_value, sh64_register_convert_to_virtual)
5722 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5723 (sh64_pseudo_register_write, sh64_do_fp_register)
5724 (sh64_frame_prev_register): Likewise.
5725 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5726 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5727 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5728 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5729 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5730 * ppc-linux-nat.c (store_register): Likewise.
5731 * nto-tdep.c (nto_find_and_open_solib)
5732 (nto_init_solib_absolute_prefix): Likewise.
5733 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5734 (mips_convert_register_p, mips_eabi_push_dummy_call)
5735 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5736 (mips_o32_push_dummy_call, mips_o32_return_value)
5737 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5738 (mips_read_fp_register_single, mips_read_fp_register_double)
5739 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5740 (mips_breakpoint_from_pc): Likewise.
5741 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5742 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5743 (mips_linux_o32_sigframe_init): Likewise.
5744 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5745 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5746 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5747 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5748 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5749 * coffread.c (process_coff_symbol): Likewise.
5750 * arm-tdep.c (convert_from_extended, convert_to_extended)
5751 (gdb_print_insn_arm): Likewise.
5752
5753 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5754
5755 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
5756 * i386-tdep.c (i386_dbx_reg_to_regnum)
5757 (i386_svr4_reg_to_regnum): Likewise.
5758 * inf-ptrace.c (inf_ptrace_fetch_registers)
5759 (inf_ptrace_store_registers): Likewise.
5760 * corelow.c (get_core_registers): Likewise.
5761 * i386-linux-nat.c (supply_gregset, fill_gregset)
5762 (i386_linux_fetch_inferior_registers)
5763 (i386_linux_store_inferior_registers): Likewise.
5764 * remote.c (init_remote_state,packet_reg_from_regnum)
5765 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
5766 (remote_prepare_to_store,store_registers_using_G)
5767 (remote_store_registers,remote_arch_state): Likewise.
5768 * tracepoint.c (encode_actions): Likewise.
5769 * mi/mi-main.c (mi_cmd_data_list_register_names)
5770 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5771 (mi_cmd_data_write_register_values): Likewise.
5772 * tui/tui-regs.c (tui_show_register_group)
5773 (tui_show_register_group): Likewise.
5774 * xtensa-tdep.h (FP_ALIAS): Likewise.
5775 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
5776 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
5777 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
5778 * win32-nat.c (do_win32_fetch_inferior_registers)
5779 (do_win32_store_inferior_registers,fetch_elf_core_registers
5780 * user-regs.h: Likewise (comment).
5781 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5782 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5783 * target-descriptions.h: Likewise (comment).
5784 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
5785 * target.c (debug_print_register): Likewise.
5786 * stack.c (frame_info): Likewise.
5787 * stabsread.c (define_symbol): Likewise.
5788 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
5789 (sh64_media_print_registers_info)
5790 (sh64_compact_print_registers_info): Likewise.
5791 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5792 * rs6000-nat.c (fetch_register,store_register): Likewise.
5793 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
5794 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
5795 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
5796 * remote-m32r-sdi.c (m32r_fetch_registers)
5797 (m32r_store_registers): Likewise.
5798 * reggroups.c (default_register_reggroup_p): Likewise.
5799 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
5800 (regcache_restore,regcache_dump): Likewise.
5801 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
5802 * mips-tdep.c (mips_xfer_register,mips_register_name)
5803 (mips_register_reggroup_p,mips_pseudo_register_read)
5804 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
5805 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
5806 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
5807 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
5808 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
5809 (print_gp_register_row,mips_print_registers_info)
5810 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5811 (mips_register_sim_regno): Likewise.
5812 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
5813 (mips_linux_n32n64_sigframe_init): Likewise.
5814 * mips-linux-nat.c (mips_linux_register_addr)
5815 (mips64_linux_register_addr): Likewise.
5816 * findvar.c (value_of_register): Likewise.
5817 * infcmd.c (default_print_registers_info,registers_info)
5818 (print_vector_info,print_float_info): Likewise.
5819 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
5820 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5821 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5822 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
5823 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5824 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
5825 (ia64_cannot_store_register,ia64_linux_fetch_registers)
5826 (ia64_linux_store_registers): Likewise.
5827 * hpux-thread.c (hpux_thread_fetch_registers)
5828 (hpux_thread_store_registers): Likewise.
5829 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
5830 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
5831 (h8300_register_type): Likewise.
5832 * dwarf2-frame.c (dwarf2_frame_cache)
5833 (dwarf2_frame_state_alloc_regs): Likewise.
5834 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
5835 (cris_cannot_store_register,crisv32_cannot_fetch_register)
5836 (crisv32_cannot_store_register,cris_register_name): Likewise.
5837 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
5838 * arch-utils.c (legacy_register_sim_regno)
5839 (legacy_virtual_frame_pointer): Likewise.
5840 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
5841 * arm-tdep.h: Likewise (comment).
5842 * frv-tdep.c (frv_register_sim_regno): Likewise.
5843 * m68klinux-nat.c (old_fetch_inferior_registers)
5844 (old_store_inferior_registers): Likewise.
5845 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5846 * irix5-nat.c (fetch_core_registers): Likewise.
5847 * hppa-tdep.c (hppa_frame_cache): Likewise.
5848 * hppa-linux-nat.c (hppa_linux_register_addr)
5849 (hppa_linux_fetch_inferior_registers)
5850 (hppa_linux_store_inferior_registers): Likewise.
5851 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
5852 (hppa_hpux_store_inferior_registers): Likewise.
5853 * amd64-nat.c (amd64_native_gregset_reg_offset)
5854 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
5855 * dbug-rom.c (dbug_regname): Likewise.
5856 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
5857 (HARD_PAGE_REGNUM (comment)): Likewise.
5858 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
5859 * i386-tdep.c (i386_dbx_reg_to_regnum)
5860 (i386_svr4_reg_to_regnum): Likewise.
5861 * mi/mi-main.c (mi_cmd_data_list_register_names)
5862 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5863 (mi_cmd_data_write_register_values): Likewise.
5864 * gdbarch.c, gdbarch.h: Regenerate.
5865 * tui/tui-regs.c (tui_show_register_group): Likewise.
5866 * xtensa-tdep.h (FP_ALIAS): Likewise.
5867 * user-regs.h: Likewise (comment).
5868 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5869 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5870 * target-descriptions.h: Likewise (comment).
5871 * target.c (debug_print_register): Likewise.
5872 * stack.c (frame_info): Likewise.
5873 * stabsread.c (define_symbol): Likewise.
5874 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
5875 (sh64_compact_print_registers_info): Likewise.
5876 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5877 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
5878 (regcache_restore,regcache_dump): Likewise.
5879 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
5880 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5881 (mips_stab_reg_to_regnum): Likewise.
5882 * findvar.c (value_of_register): Likewise.
5883 * infcmd.c (default_print_registers_info,registers_info)
5884 (print_vector_info,print_float_info): Likewise.
5885 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5886 * h8300-tdep.c (h8300_register_type): Likewise.
5887 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5888 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
5889 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
5890 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
5891 * parse.c: Remove comment.
5892 * gdbarch.c, gdbarch.h: Regenerate
5893
5894 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5895
5896 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
5897 gdbarch_cannot_fetch_register.
5898 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5899 * hppa-linux-nat.c (fetch_register): Likewise.
5900 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5901 * m68klinux-nat.c (fetch_register): Likewise.
5902 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
5903 Likewise.
5904 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
5905 gdbarch_cannot_store_register.
5906 * hppa-linux-nat.c (store_register): Likewise.
5907 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
5908 * regcache.c (regcache_raw_write): Likewise.
5909 * m68klinux-nat.c (store_register): Likewise.
5910 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
5911 * gdbarch.c, gdbarch.h: Regenerate.
5912
5913 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5914
5915 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
5916 * gdbarch.c, gdbarch.h: Regenerate.
5917
5918 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5919
5920 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
5921 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5922 * gdbarch.c, gdbarch.h: Regenerate.
5923
5924 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5925
5926 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
5927 * ax-gdb.c (gen_bitfield_ref): Likewise.
5928 * mi/mi-main.c (get_register): Likewise.
5929 * findvar.c (default_value_from_register, extract_signed_integer)
5930 (extract_unsigned_integer, extract_long_unsigned_integer)
5931 (store_signed_integer, store_unsigned_integer): Likewise.
5932 * regcache.c (regcache_dump): Likewise.
5933 * value.c (lookup_internalvar, value_of_internalvar)
5934 (set_internalvar): Likewise.
5935 * defs.h: Likewise.
5936 * valprint.c (print_binary_chars, print_octal_chars)
5937 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
5938 * infcmd.c (default_print_registers_info): Likewise.
5939 * arch-utils.c (selected_byte_order, show_endian): Likewise.
5940 * stabsread.c (define_symbol): Likewise.
5941 * doublest.c (floatformat_from_length, floatformat_from_type)
5942 (extract_typed_floating, store_typed_floating): Likewise.
5943 * gdbarch.c, gdbarch.h: Regenerate.
5944
5945 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5946
5947 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
5948 gdbarch_call_dummy_location.
5949 * infcall.c (call_function_by_hand): Likewise.
5950 * inferior.h: Change comment.
5951 * arch-utils.c: Change comment.
5952 * gdbarch.c, gdbarch.h: Regenerate.
5953
5954 2007-05-28 Joel Brobecker <brobecker@adacore.com>
5955
5956 * solib-aix5.c: Delete.
5957 * Makefile.in (solib-aix5.o): Delete rule.
5958
5959 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
5960
5961 * breakpoint.h (enum bpstat_what_main_action): Remove
5962 BPSTAT_WHAT_THROUGH_SIGTRAMP.
5963 * infrun.c (process_event_stop_test): Do not check for it.
5964
5965 2007-05-22 Chris Dearman <chris@mips.com>
5966 Maciej W. Rozycki <macro@mips.com>
5967
5968 * ser-unix.c (show_serial_hwflow): New function.
5969 (hardwire_raw): Add hardware flow control support.
5970 (_initialize_ser_hardwire): Add "set/show remoteflow".
5971 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
5972 * NEWS: Document the new command.
5973
5974 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5975
5976 * config/i386/tm-linux.h (sys_quotactl): Do not define.
5977 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
5978 define for i[[3456]]86-*-linux* native configurations.
5979 * config.in, configure: Regenerate.
5980
5981 2007-05-19 Joel Brobecker <brobecker@adacore.com>
5982
5983 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
5984 a core file. Add comment in the function description.
5985
5986 2007-05-18 Caroline Tice <ctice@apple.com>
5987
5988 * c-valprint.c (c_value_print): If the initialized field of the
5989 value struct is 0, print out "[uninitialized]" before the value.
5990 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
5991 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
5992 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
5993 ctx->initialized appropriately. Verify no location op follows
5994 DW_OP_GNU_uninit.
5995 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
5996 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
5997 set_value_initialized.
5998 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
5999 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6000 * value.c (struct value): New field, initialized.
6001 (allocate_value): Initialize new field.
6002 (set_value_initialized): New function.
6003 (value_initialized): New function.
6004 * value.h (value_initialized): New extern declaration.
6005 (set_value_initialized): Likewise.
6006
6007 2007-05-18 Caroline Tice <ctice@apple.com>
6008
6009 * MAINTAINERS (Write After Approval): Add self.
6010
6011 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6012
6013 * gdbtypes.c (make_reference_type): Preserve the type chain
6014 and set the length of all the variants of the pointer type.
6015
6016 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6017
6018 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6019 and set the length of all the variants of the pointer type.
6020
6021 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6022
6023 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6024 comment.
6025 (mips_o64_push_dummy_call): Reformat a comment.
6026
6027 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6028
6029 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6030 (score_prologue_frame_base_address): Return fp to keep gdb print
6031 local variables correctly when debugging information is stabs.
6032
6033 (score_analyze_prologue): For software watchpoint, fetch all the
6034 instructions from range [startaddr, pc] once and identify them locally
6035 to reduce memory access.
6036 (score_malloc_and_get_memblock, score_free_memblock)
6037 (score_adjust_memblock_ptr): New functions.
6038 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6039
6040 (score_target_can_use_watch, score_stopped_by_watch)
6041 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6042 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6043 New functions for remote & local hw-watchpoint and hw-breakpoint.
6044
6045 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6046
6047 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6048 declarations as well.
6049
6050 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6051
6052 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6053 * config/arm/tm-embed.h: Delete file.
6054
6055 * arm-tdep.h (arm_software_single_step): Declare.
6056 * arm-tdep.c (arm_software_single_step): Make global.
6057 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6058 from here to ...
6059 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6060 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6061 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6062 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6063
6064 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6065 allow defines to be overriden by TM file.
6066 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6067 change default to {0xbe,0xbe}.
6068 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6069 arm_obsd_thumb_be_breakpoint): New global variables.
6070 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6071 tdep->thumb_breakpoint_size.
6072 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6073 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6074 tdep->thumb_breakpoint_size.
6075
6076 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6077
6078 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6079
6080 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6081 saved-gpreg-size".
6082
6083 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6084 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6085 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6086 (mips_abi_regsize): Simplify.
6087 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6088 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6089 (mips_o32_return_value, mips_o64_push_dummy_call)
6090 (mips_o64_return_value): Propogate constant register sizes. Use the
6091 ABI register size instead of mips_stack_argsize.
6092 (mips_dump_tdep): Don't print mips_stack_argsize.
6093 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6094 settings.
6095
6096 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6097
6098 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6099 * config/mips/tm-linux.h: Delete.
6100 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6101 (mips_linux_in_dynsym_resolve_code): Make static. Use
6102 svr4_in_dynsym_resolve_code.
6103 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6104 set_solib_ops.
6105 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6106 global.
6107 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6108 * Makefile.in (mips-linux-tdep.o): Update.
6109 * solib.c (set_solib_ops): New.
6110 (current_target_so_ops): Update comment.
6111 * solib.h (set_solib_ops): New prototype.
6112
6113 2007-05-16 Chris Dearman <chris@mips.com>
6114
6115 * printcmd.c (do_examine): Fix typos in a comment.
6116
6117 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6118
6119 * configure.ac: Allow sysroots to be relocated under $prefix as
6120 well as $exec_prefix.
6121 * configure: Regenerate.
6122
6123 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6124
6125 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6126 (offsetof): Do not define.
6127 (find_stub_with_shl_get): Use numerical value 3 instead of
6128 symbolic value TYPE_PROCEDURE.
6129
6130 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6131
6132 * gdb_proc_service.h (paddr_t): Delete typedef.
6133 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6134 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6135 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6136 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6137 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6138 * Makefile.in (proc-service.o): Update.
6139
6140 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6141
6142 * Makefile.in (mips-tdep.o): Update.
6143 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6144 unwinder.
6145
6146 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6147
6148 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6149 instead of store_typed_address.
6150 * value.c (pack_long): New.
6151 (value_from_longest): Use it.
6152 * value.h (pack_long): New prototype.
6153
6154 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6155
6156 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6157 DW_EH_PE_signed if appropriate.
6158
6159 2007-05-14 Paul Brook <paul@codesourcery.com>
6160 Daniel Jacobowitz <dan@codesourcery.com>
6161
6162 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6163 function.
6164 (dwarf_decode_lines): Check for line info without a file.
6165
6166 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6167
6168 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6169 as hexadecimal.
6170
6171 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6172
6173 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6174 STRUCTOP_STRUCT.
6175 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6176 STRUCTOP_STRUCT.
6177 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6178
6179 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6180
6181 * gdbarch.sh (read_sp): Remove.
6182 * gdbarch.c, gdbarch.h: Regenerate.
6183 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6184
6185 * avr-tdep.c (avr_read_sp): Remove.
6186 (avr_unwind_sp): New function.
6187 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6188 * mips-tdep.c (mips_read_sp): Remove.
6189 (mips_unwind_sp): New function.
6190 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6191 * score-tdep.c (score_read_unsigned_register): Remove.
6192 (score_read_sp): Remove.
6193 (score_unwind_sp): New function.
6194 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6195
6196 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6197
6198 * buildsym.c (start_subfile): Handle absolute pathnames
6199 while comparing subfile names.
6200
6201 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6202
6203 * hppa-hpux-tdep.c: Include "regcache.h".
6204 * hppa-linux-tdep.c: Likewise.
6205 * hppa-tdep.c: Include "gdb_stdint.h".
6206 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6207 it to paddr_nz.
6208 * Makefile.in: Update dependencies.
6209
6210 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6211
6212 * blockframe.c: Remove obsolete comments.
6213 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6214 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6215 * hppa-tdep.h (enum hppa_regnum): Likewise.
6216 * mips-tdep.h: Likewise.
6217 * m68hc11-tdep.c: Likewise.
6218
6219 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6220
6221 * inferior.h (read_sp): Remove prototype.
6222 * regcache.c (read_sp): Remove.
6223 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6224 * infcall.c (call_function_by_hand): Likewise.
6225 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6226 of calling read_sp.
6227 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6228
6229 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6230
6231 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6232 instead of read_register and read_register_pid.
6233
6234 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6235 argument instead of PTID. Use regcache functions instead of
6236 read_register_pid.
6237 (ia64_linux_insert_watchpoint): Update call.
6238 (ia64_linux_stopped_data_address): Use regcache functions
6239 instead of read_register_pid and write_register_pid.
6240
6241 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6242
6243 * libunwind-frame.h (struct regcache): Add forward declaration.
6244 (libunwind_get_reg_special): Add REGCACHE argument.
6245 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6246 argument. Pass it to unw_init_remote_p.
6247
6248 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6249 libunwind_get_reg_special.
6250 (ia64_access_reg): Remove "write" case.
6251 (ia64_access_fpreg): Likewise. Read from next_frame passed
6252 as callback argument instead of from current_regcache.
6253 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6254 passed as callback argument instead of from current_regcache.
6255 (ia64_access_rse_fpreg): New function.
6256 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6257
6258 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6259
6260 * NEWS: Mention SPU overlay support.
6261
6262 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6263
6264 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6265
6266 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6267
6268 * breakpoint.c (remove_breakpoint): Do not remove software
6269 breakpoints in unmapped overlay sections.
6270
6271 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6272
6273 * spu-tdep.c: Include "observer.h".
6274 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6275 (spu_overlay_data): New variable.
6276 (struct spu_overlay_table): New type.
6277 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6278 spu_overlay_new_objfile): New functions.
6279 (spu_gdbarch_init): Install spu_overlay_update.
6280 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6281 allocate spu_overlay_data objfile data.
6282
6283 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6284
6285 * gdbarch.sh (overlay_update): New gdbarch function.
6286 (struct obj_section): Add forward declaration.
6287 * gdbarch.c, gdbarch.h: Regenerate.
6288
6289 * symfile.c (simple_overlay_update): Make global.
6290 (target_overlay_update): Remove variable.
6291 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6292 target_overlay_update.
6293 (overlay_load_command): Likewise.
6294 * symfile.h (struct obj_section): Add forward declaration.
6295 (simple_overlay_update): Add prototype.
6296
6297 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6298
6299 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6300
6301 * observer.sh: Add "struct objfile" forward declaration.
6302 * target.h (deprecated_target_new_objfile_hook): Remove.
6303 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6304 (clear_symtab_users): Call observer_notify_new_objfile.
6305 (symbol_file_add_with_addrs_or_offsets): Likewise.
6306 * rs6000-nat.c: Include "observer.h".
6307 (vmap_ldinfo): Call observer_notify_new_objfile.
6308 (xcoff_relocate_core): Likewise.
6309 * remote.c (remote_new_objfile_chain): Remove.
6310 (remote_new_objfile): Do not call remote_new_objfile_chain.
6311 (_initialize_remote): Use observer_attach_new_objfile.
6312 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6313 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6314 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6315 * aix-thread.c: Include "observer.h".
6316 (target_new_objfile_chain): Remove.
6317 (new_objfile): Do not call target_new_objfile_chain.
6318 (_initialize_aix_thread): Use observer_attach_new_objfile.
6319 * hpux-thread.c: Include "observer.h"
6320 (target_new_objfile_chain): Remove.
6321 (hpux_thread_new_objfile): Make static. Do not call
6322 target_new_objfile_chain.
6323 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6324 * linux-thread-db.c: Include "observer.h".
6325 (target_new_objfile_chain): Remove.
6326 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6327 (_initialize_thread_db): Use observer_attach_new_objfile.
6328 * sol-thread.c: Include "observer.h".
6329 (target_new_objfile_chain): Remove.
6330 (sol_thread_new_objfile): Make static. Do not call
6331 target_new_objfile_chain.
6332 (_initialize_sol_thread): Use observer_attach_new_objfile.
6333 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6334 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6335 $(observer_h).
6336
6337 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6338
6339 * gdbarch.sh (remote_translate_xfer_address): Remove.
6340 * gdbarch.h, gdbarch.c: Regenerate.
6341 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6342 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6343 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6344 call gdbarch_remote_translate_xfer_address.
6345 * frv-tdep.c (frv_gdbarch_init): Do not call
6346 set_gdbarch_remote_translate_xfer_address.
6347 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6348 (ia64_gdbarch_init): Do not install it.
6349
6350 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6351
6352 * NEWS: Mention change in handling the -tui option.
6353
6354 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6355
6356 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6357 typo.
6358
6359 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6360
6361 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6362 (breakpoint_inserted_here_p): Call it.
6363 (software_breakpoint_inserted_here_p): Likewise.
6364
6365 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6366
6367 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6368 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6369 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6370 (inf_ptrace_store_register): Likewise.
6371 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6372 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6373
6374 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6375
6376 * linux-nat.c (linux_trad_target): Adapt parameter list.
6377 * linux-nat.h (linux_trad_target): Likewise.
6378
6379 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6380
6381 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6382 (mips_linux_cannot_store_register): Likewise.
6383 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6384 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6385 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6386 (mips64_linux_register_addr): Likewise.
6387 (mips_linux_register_u_offset): Adapt parameter list. Pass
6388 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6389
6390 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6391 * config/mips/nm-linux.h: Delete file.
6392
6393 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6394
6395 * remote.c (remote_detach): Error out if remote can't detach.
6396
6397 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6398
6399 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6400 instruction's opcode in the "opcode" variable and declares new
6401 variable "closing_insn".
6402
6403 2007-05-10 Chris Dearman <chris@mips.com>
6404 Maciej W. Rozycki <macro@mips.com>
6405
6406 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6407 whitespace when setting a var_filename.
6408
6409 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6410
6411 * main.c (captured_main): Recognize -tui option and print an error
6412 message when the TUI is not configured.
6413
6414 2007-05-09 Andreas Schwab <schwab@suse.de>
6415
6416 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6417 set removed members.
6418 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6419
6420 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6421
6422 * gdbarch.sh (deprecated_store_struct_return): Remove.
6423 * gdbarch.c, gdbarch.h: Regenerate.
6424 * frv-tdep.c (frv_store_struct_return): Remove.
6425 (frv_gdbarch_init): Do not install it.
6426
6427 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6428
6429 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6430 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6431 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6432
6433 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6434
6435 * spu-linux-nat.c: Include "gdb_stdint.h".
6436 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6437 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6438 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6439 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6440 (spu_child_wait): Mark up string for translation.
6441
6442 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6443 Luis Machado <luisgpm@br.ibm.com>
6444
6445 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6446 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6447 BC_INSTRUCTION): Define.
6448 (deal_with_atomic_sequence): New function.
6449 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6450 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6451 gdbarch_software_single_step routine.
6452
6453 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6454
6455 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6456 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6457 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6458 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6459 spu_child_post_attach, spu_fetch_inferior_registers,
6460 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6461 memory addresses as ULONGEST, not CORE_ADDR.
6462
6463 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6464
6465 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6466 * gdbarch.h, gdbarch.c: Regenerate.
6467
6468 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6469 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6470 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6471
6472 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6473 Add REGCACHE argument. Use it instead of read/write_register.
6474 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6475
6476 * config/pa/tm-hppah.h: Delete file.
6477 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6478 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6479
6480 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6481
6482 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6483 * NEWS: Mention improved C++ thunk support.
6484 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6485 * cp-abi.c (cplus_skip_trampoline): New.
6486 * cp-abi.h (cplus_skip_trampoline): New prototype.
6487 (struct cp_abi_ops): Add skip_trampoline member.
6488 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6489 (init_gnuv3_ops): Set skip_trampoline.
6490
6491 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6492
6493 * rs6000-tdep.c (struct frame_extra_info): Delete.
6494
6495 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6496
6497 * linux-thread-db.c: Update some FIXME comments.
6498 (thread_db_xfer_partial): Delete.
6499 (init_thread_db_ops): Do not set to_xfer_partial.
6500
6501 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6502
6503 * inftarg.c, infptrace.c: Remove files.
6504 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6505 (inftarg.o, infptrace.o): Remove rules.
6506 * gdbcore.h (register_addr): Remove prototype.
6507 * inferior.h (kill_inferior, store_inferior_registers,
6508 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6509 call_ptrace, pre_fork_inferior): Remove prototypes.
6510 * target.h (child_xfer_memory, child_pid_to_exec_file,
6511 child_core_file_to_sym_file, child_post_attach,
6512 child_post_startup_inferior, child_acknowledge_created_inferior,
6513 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6514 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6515 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6516 child_follow_fork, child_reported_exec_events_per_exec_call,
6517 child_has_exited, child_thread_alive): Remove prototypes.
6518
6519 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6520
6521 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6522 (sparc_store_inferior_registers): Likewise.
6523 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6524 (sparc_fetch_inferior_registers): ... this.
6525 (store_inferior_registers): Rename to ...
6526 (sparc_store_inferior_registers): ... this.
6527 (sparc_target): Update callback names.
6528 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6529 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6530
6531 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6532
6533 * linux-nat.c (child_post_attach): Rename to ...
6534 (linux_child_post_attach): ... this. Make static.
6535 (child_follow_fork): Rename to ...
6536 (linux_child_follow_fork): ... this. Make static.
6537 (child_insert_fork_catchpoint): Rename to ...
6538 (linux_child_insert_fork_catchpoint): ... this. Make static.
6539 (child_insert_vfork_catchpoint): Rename to ...
6540 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6541 (child_insert_exec_catchpoint): Rename to ...
6542 (linux_child_insert_exec_catchpoint): ... this. Make static.
6543 (child_pid_to_exec_file): Rename to ...
6544 (linux_child_pid_to_exec_file): ... this. Make static.
6545 Add prototype.
6546 (linux_handle_extended_wait): Update call.
6547 (linux_xfer_partial): Update callback routine names.
6548
6549 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6550
6551 * configure.host (alpha*-*-osf[12]*): Remove support.
6552 * NEWS: Mention removed configurations.
6553
6554 * config/alpha/alpha-osf1.mh: Delete file.
6555 * config/alpha/alpha-osf2.mh: Delete file.
6556 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6557 and infptrace.o.
6558 * config/alpha/nm-osf.h: Delete file.
6559 * config/alpha/nm-osf2.h: Delete file.
6560 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6561 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6562 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6563
6564 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6565 (register_addr, kernel_u_size): Remove.
6566 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6567
6568 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6569
6570 * regcache.c (regcache_invalidate): New function.
6571 (register_cached): Remove.
6572 (set_register_cached): Remove.
6573 (deprecated_registers_fetched): Remove.
6574 (registers_changed): Use regcache_invalidate instead
6575 of set_register_cached.
6576 (regcache_raw_read): Update comment.
6577
6578 * regcache.h (regcache_invalidate): Add prototype.
6579 (register_cached): Remove.
6580 (set_register_cached): Remove.
6581 (deprecated_registers_fetched): Remove.
6582
6583 * findvar.c (value_of_register): Do not call register_cached.
6584 * frame.c (frame_register): Likewise.
6585 * tui/tui-regs.c (tui_get_register): Likewise.
6586
6587 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6588 (process_g_packet): Likewise.
6589 (remote_fetch_registers): Likewise.
6590 * remote-sim.c (gdbsim_fetch_register): Likewise.
6591 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6592 by regcache_invalidate.
6593 (mt_pseudo_register_write): Likewise.
6594 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6595
6596 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6597 call by loop over regcache_raw_supply (..., NULL).
6598
6599 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6600
6601 * target.h (struct target_ops): Add REGCACHE parameter to
6602 to_prepare_to_store.
6603 (target_prepare_to_store): Likewise.
6604 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6605 (update_current_target): Adapt prepare_to_store de_fault rule.
6606
6607 * regcache.c (regcache_raw_write): Pass regcache to
6608 target_prepare_to_store.
6609
6610 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6611 Do not call CHILD_PREPARE_TO_STORE.
6612 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6613 * procfs.c (procfs_prepare_to_store): Likewise.
6614
6615 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6616 * go32-nat.c (go32_prepare_to_store): Likewise.
6617 * monitor.c (monitor_prepare_to_store): Likewise.
6618 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6619 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6620 * remote-mips.c (mips_prepare_to_store): Likewise.
6621 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6622 * win32-nat.c (win32_prepare_to_store): Likewise.
6623
6624 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6625 Use it instead of current_regcache.
6626
6627 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6628 parameter. Pass it on to next target.
6629 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6630
6631 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6632
6633 * target.h (struct regcache): Add forward declaration.
6634 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6635 and to_store_registers target operations.
6636 (target_fetch_registers, target_store_registers): Update.
6637
6638 * regcache.c (regcache_raw_read): Replace register_cached by
6639 regcache_valid_p. Pass regcache to target_fetch_registers.
6640 (regcache_raw_write): Pass regcache to target_store_registers.
6641
6642 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6643 store_regs, store_wmmx_regs): Replace register_cached by
6644 regcache_valid_p.
6645
6646 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6647 to target_fetch_registers calls.
6648 * corelow.c (core_open): Likewise.
6649 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6650 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6651 ps_lsetfpregs): Likewise.
6652 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6653 ps_lsetfpregs): Likewise.
6654 * win32-nat.c (win32_resume): Likewise.
6655 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6656 to target_store_registers call.
6657 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6658
6659 * inferior.h (store_inferior_registers): Update prototype.
6660 (fetch_inferior_registers): Likewise.
6661 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6662 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6663 Update function pointer signatures.
6664
6665 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6666 use it instead of current_regcache, update calls.
6667 (aix_thread_store_registers): Likewise.
6668 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6669 (alphabsd_store_inferior_registers): Likewise.
6670 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6671 (amd64bsd_store_inferior_registers): Likewise.
6672 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6673 (amd64_linux_store_inferior_registers): Likewise.
6674 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6675 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6676 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6677 (arm_linux_fetch_inferior_registers): Likewise.
6678 (arm_linux_store_inferior_registers): Likewise.
6679 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6680 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6681 (store_register, store_regs, store_fp_register, store_fp_regs,
6682 armnbsd_store_registers): Likewise.
6683 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6684 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6685 (bsd_uthread_store_registers): Likewise.
6686 * corelow.c (get_core_registers): Likewise.
6687 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6688 go32_store_registers): Likewise.
6689 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6690 (hppabsd_store_registers): Likewise.
6691 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6692 (hppa_hpux_fetch_inferior_registers): Likewise.
6693 (hppa_hpux_store_register): Likewise.
6694 (hppa_hpux_store_inferior_registers): Likewise.
6695 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6696 (hppa_linux_fetch_inferior_registers): Likewise.
6697 (hppa_linux_store_inferior_registers): Likewise.
6698 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6699 (hpux_thread_store_registers): Likewise.
6700 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6701 (i386bsd_store_inferior_registers): Likewise.
6702 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6703 gnu_store_registers): Likewise.
6704 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6705 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6706 Likewise.
6707 (i386_linux_fetch_inferior_registers): Likewise.
6708 (i386_linux_store_inferior_registers): Likewise.
6709 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6710 (ia64_linux_fetch_registers): Likewise.
6711 (ia64_linux_store_register): Likewise.
6712 (ia64_linux_store_registers): Likewise.
6713 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6714 (inf_child_store_inferior_registers): Likewise.
6715 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6716 (inf_ptrace_fetch_registers): Likewise.
6717 (inf_ptrace_store_register): Likewise.
6718 (inf_ptrace_store_registers): Likewise.
6719 * infptrace.c (fetch_register, store_register): Likewise.
6720 (fetch_inferior_registers, store_inferior_registers): Likewise.
6721 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6722 (m32r_linux_fetch_inferior_registers): Likewise.
6723 (m32r_linux_store_inferior_registers): Likewise.
6724 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6725 (m68kbsd_store_inferior_registers): Likewise.
6726 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6727 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6728 fetch_fpregs, store_fpregs): Likewise.
6729 (m68k_linux_fetch_inferior_registers): Likewise.
6730 (m68k_linux_store_inferior_registers): Likewise.
6731 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6732 (m88kbsd_store_inferior_registers): Likewise.
6733 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6734 (mips64obsd_store_inferior_registers): Likewise.
6735 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6736 (mips64_linux_regsets_store_registers): Likewise.
6737 (mips64_linux_fetch_registers): Likewise.
6738 (mips64_linux_store_registers): Likewise.
6739 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6740 (mipsnbsd_store_inferior_registers): Likewise.
6741 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6742 (monitor_fetch_registers, monitor_store_registers): Likewise.
6743 * nto-procfs.c (procfs_fetch_registers): Likewise.
6744 (procfs_store_registers): Likewise.
6745 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6746 fetch_register, supply_vrregset, fetch_altivec_registers,
6747 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6748 (store_altivec_register, store_spe_register, store_register,
6749 fill_vrregset, store_altivec_registers, store_ppc_registers,
6750 ppc_linux_store_inferior_registers): Likewise.
6751 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
6752 (ppcnbsd_store_inferior_registers): Likewise.
6753 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
6754 (ppcobsd_store_registers): Likewise.
6755 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
6756 * remote.c (fetch_register_using_p, process_g_packet,
6757 fetch_registers_using_g, remote_fetch_registers): Likewise.
6758 (store_register_using_P, store_registers_using_G,
6759 remote_store_registers): Likewise.
6760 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
6761 m32r_store_register, m32r_store_register): Likewise.
6762 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
6763 * remote-sim.c (gdbsim_fetch_register): Likewise.
6764 (gdbsim_store_register): Likewise.
6765 * rs6000-nat.c (fetch_register, store_register): Likewise.
6766 (rs6000_fetch_inferior_registers): Likewise.
6767 (rs6000_store_inferior_registers): Likewise.
6768 * s390-nat.c (fetch_regs, store_regs): Likewise.
6769 (fetch_fpregs, store_fpregs): Likewise.
6770 (s390_linux_fetch_inferior_registers): Likewise.
6771 (s390_linux_store_inferior_registers): Likewise.
6772 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
6773 (shnbsd_store_inferior_registers): Likewise.
6774 * sol-thread.c (sol_thread_fetch_registers): Likewise.
6775 (sol_thread_store_registers): Likewise.
6776 * sparc-nat.c (fetch_inferior_registers): Likewise.
6777 (store_inferior_registers): Likewise.
6778 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6779 (spu_store_inferior_registers): Likewise.
6780 * target.c (debug_print_register): Likewise.
6781 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
6782 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
6783 (vaxbsd_store_inferior_registers): Likewise.
6784 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
6785 (win32_fetch_inferior_registers): Likewise.
6786 (win32_store_inferior_registers): Likewise.
6787
6788 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6789
6790 * gdbcore.h (struct regcache): Add forward declaration.
6791 (struct core_fns): Add REGCACHE argument to core_read_registers
6792 callback.
6793 * corelow.c (get_core_register_section): Add REGCACHE argument,
6794 use it instead of current_regcache, pass it to core_read_registers
6795 callback.
6796 (get_core_registers): Add current_regcache as parameter to
6797 get_core_register_section calls.
6798
6799 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
6800 use it instead of current_regcache.
6801 * armnbsd-nat.c (fetch_core_registers): Likewise.
6802 (fetch_elfcore_registers): Likewise.
6803 * core-regset.c (fetch_core_registers): Likewise.
6804 * cris-tdep.c (fetch_core_registers): Likewise.
6805 * irix5-nat.c (fetch_core_registers): Likewise.
6806 * m68klinux-nat.c (fetch_core_registers): Likewise.
6807 * mips-linux-tdep.c (fetch_core_registers): Likewise.
6808 * win32-nat.c (fetch_elf_core_registers): Likewise.
6809
6810 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6811
6812 * gregset.h (struct regcache): Add forward declaration.
6813 (supply_gregset): Add REGCACHE parameter, make GREGS const.
6814 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
6815 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
6816 (fill_gregset): Add REGCACHE parameter.
6817 (fill_fpregset): Likewise.
6818 (fill_fpxregset): Likewise.
6819
6820 Update all definitions accordingly:
6821 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
6822 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
6823 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
6824 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
6825 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
6826 (supply_gregset): Add REGCACHE parameter, use it instead of
6827 current_regcache. Make GREGSETP parameter const, adapt casts.
6828 (supply_fpregset): Add REGCACHE parameter, use it instead of
6829 current_regcache. Make FPREGSETP parameter const, adapt casts.
6830 (fill_gregset): Add REGCACHE parameter, use it instead of
6831 current_regcache.
6832 (fill_fpregset): Likewise.
6833
6834 Update all callers to pass in current_regcache as the new argument:
6835 * core-regset.c: Include "regcache.h".
6836 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
6837 * procfs.c: Include "regcache.h".
6838 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
6839 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
6840 (procfs_do_thread_registers): Likewise.
6841 (procfs_make_note_section): Likewise.
6842 * proc-service.c: Include "regcache.h".
6843 (ps_lgetregs): Update fill_gregset call.
6844 (ps_lsetregs): Update supply_gregset call.
6845 (ps_lgetfpregs): Update fill_fpregset call.
6846 (ps_lsetfpregs): Update supply_fpregset call.
6847 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
6848 supply_fpregset calls.
6849 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
6850 (ps_lgetregs): Update fill_gregset call.
6851 (ps_lsetregs): Update supply_gregset call.
6852 (ps_lgetfpregs): Update fill_fpregset call.
6853 (ps_lsetfpregs): Update supply_fpregset call.
6854
6855 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
6856 fill_fpregset, and fill_fpxregset calls.
6857 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
6858 (store_regs): Update fill_gregset call.
6859 (fetch_fpregs): Update supply_fpregset call.
6860 (store_fpregs): Update fill_fpregset call.
6861 (fetch_fpxregs): Update supply_fpxregset call.
6862 (store_fpxregs): Update fill_fpxregset call.
6863 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
6864 (store_regs): Update fill_gregset call.
6865 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
6866 (store_regs): Update fill_gregset call.
6867 (fetch_fpregs): Update supply_fpregset call.
6868 (store_fpregs): Update fill_fpregset call.
6869 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
6870 * s390-nat.c (fetch_regs): Update supply_gregset call.
6871 (store_regs): Update fill_gregset call.
6872 (fetch_fpregs): Update supply_fpregset call.
6873 (store_fpregs): Update fill_fpregset call.
6874
6875 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
6876 dependencies.
6877
6878 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6879
6880 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
6881 it instead of current_regcache.
6882 (parse_register_dump): Add REGCACHE parameter, pass it to
6883 supply_register callback.
6884 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
6885 parse_register_dump.
6886 (monitor_dump_regs): Add REGCACHE parameter, pass it to
6887 parse_register_dump and dumpregs callback.
6888 (monitor_wait): Pass current_regcache to parse_register_dump and
6889 monitor_dump_regs.
6890 (monitor_fetch_register): Pass current_regcache to
6891 monitor_supply_register.
6892 (monitor_fetch_registers): Pass current_regcache to
6893 monitor_dump_regs.
6894 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
6895 supply_register and dumpregs callbacks.
6896 (monitor_supply_register, monitor_dump_reg_block): Update
6897 prototypes.
6898 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
6899 it to monitor_supply_register.
6900 * dink32-rom.c (dink32_supply_register): Likewise.
6901 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
6902 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
6903 instead of current_regcache.
6904
6905 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6906
6907 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
6908 Add REGCACHE parameter. Use it instead of current_regcache.
6909 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
6910 i386nto_supply_gregset and i386nto_supply_fpregset.
6911 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
6912 of current_regcache.
6913
6914 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
6915 nto_supply_ helper functions.
6916 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
6917
6918 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
6919
6920 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
6921 supply_greget, supply_fpregset, supply_altregset, supply_regset,
6922 and regset_fill member function pointers.
6923 (nto_dummy_supply_regset): Adapt prototype.
6924
6925 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6926
6927 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
6928 instead of current_regcache. Make REGS const.
6929 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
6930 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
6931 prototypes.
6932 * shnbsd-nat.c: Include "regcache.h".
6933 (shnbsd_fetch_inferior_registers): Pass current_regcache to
6934 shnbsd_supply_reg.
6935 (shnbsd_store_inferior_registers): Pass current_regcache to
6936 shnbsd_fill_reg.
6937 * Makefile.in (shbsd-nat.o): Update dependencies.
6938
6939 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6940
6941 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
6942 instead of current_regcache.
6943 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
6944 Make GREGSETP const, remove superfluous casts.
6945 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6946 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
6947 superfluous casts.
6948 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6949 (supply_64bit_reg): Likewise
6950 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
6951 Make GREGSETP const, adapt casts accordingly.
6952 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6953 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
6954 casts accordingly.
6955 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6956 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
6957 helper routines.
6958 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
6959 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
6960 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
6961 Adapt prototypes.
6962 * mips-linux-nat.c: Include "regcache.h".
6963 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
6964 current_regcache to mips{64}_(supply|fill)_ helper routines.
6965 (mips64_linux_regsets_fetch_registers): Likewise.
6966 (mips64_linux_regsets_store_registers): Likewise.
6967
6968 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
6969 REGCACHE argument; replace current_regcache. Make REGS const.
6970 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
6971 replace current_regcache.
6972 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
6973 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
6974 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
6975 mipsnbsd_store_inferior_registers): Pass current_regcache to
6976 mipsnbsd_(supply|fill)_... helper routines.
6977
6978 * Makefile.in (mips-linux-nat.o): Update dependencies.
6979
6980 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6981
6982 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
6983 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
6984 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
6985 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
6986 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
6987 * i386gnu-nat.c (store_fpregs): Likewise.
6988 * i386v4-nat.c (fill_fpregset): Likewise.
6989 * go32-nat.c (store_register, go32_store_registers): Likewise.
6990
6991 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6992
6993 * cris-tdep.c (supply_gregset): Rename to ...
6994 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
6995 instead of current_regcache.
6996 (fetch_core_registers): Update call. Pass current_regcache.
6997
6998 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6999
7000 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7001 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7002 Use it instead of current_regcache.
7003 (supply_fparegset): Rename to ...
7004 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7005 Use it instead of current_regcache.
7006 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7007 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7008
7009 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7010
7011 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7012 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7013 use it instead of current_regcache.
7014 * alpha-tdep.h (struct regcache): Add forward declaration.
7015 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7016 alpha_fill_fp_regs): Update prototypes.
7017
7018 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7019 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7020 * alpha-linux-nat.c: Include "regcache.h".
7021 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7022 current_regcache to alpha_supply/fill_ routines.
7023
7024 * alphabsd-tdep.c: Include "regcache.h".
7025 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7026 pass it to alpha_supply_ routines. Make REGS const.
7027 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7028 pass it to alpha_fill_ routines.
7029 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7030 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7031 alphabsd_fill_fpreg): Update prototypes.
7032
7033 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7034 fill_fpregset, alphabsd_fetch_inferior_registers,
7035 alphabsd_store_inferior_registers): Pass current_regcache to
7036 alphabsd_supply/fill_ routines.
7037
7038 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7039 dependencies.
7040
7041 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7042
7043 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7044 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7045 instead of current_regcache.
7046 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7047 REGCACHE parameter, pass it to supply_ routines.
7048 (aix_thread_fetch_registers): Pass current_regcache to
7049 fetch_regs_user_thread and fetch_regs_kernel_thread.
7050
7051 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7052 Add REGCACHE parameter, use it instead of current_regcache.
7053 Call regcache_valid_p instead of register_cached.
7054 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7055 Also, pass REGCACHE to fill_ routines.
7056 (aix_thread_store_registers): Pass current_regcache to
7057 store_regs_user_thread and store_regs_kernel_thread.
7058
7059 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7060
7061 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7062 pointed to by GREGSETP.
7063
7064 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7065
7066 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7067 of regcache_raw_read_signed.
7068 (fill_fpregset): Use regcache_raw_collect instead of
7069 regcache_raw_read.
7070
7071 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7072
7073 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7074 point arguments, test explicitly for use of the EABI32 ABI
7075 instead of inferring this condition from tests on register
7076 sizes.
7077
7078 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7079
7080 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7081 prior to allocating its location.
7082
7083 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7084
7085 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7086 based on mips_abi_regsize() whose result is known in advance.
7087 (mips_o64_push_dummy_call): Likewise.
7088
7089 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7090
7091 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7092 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7093
7094 * mips-linux-nat.c: Include "gregset.h".
7095 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7096 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7097 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7098 fill_fpregset): Move to mips-linux-nat.c.
7099
7100 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7101
7102 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7103
7104 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7105 (read_register): ... here.
7106 (deprecated_write_register_gen): Remove, inline ...
7107 (write_register): ... here.
7108 * regcache.h (deprecated_read_register_gen): Remove prototype.
7109 (deprecated_write_register_gen): Likewise.
7110
7111 * remote-sim.c (gdbsim_store_register): Replace call to
7112 deprecated_read_register_gen with regcache_cooked_read.
7113 * target.c (debug_print_register): Replace calls to
7114 deprecated_read_register_gen and read_register with
7115 regcache_cooked_read.
7116
7117 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7118
7119 * hpux-thread.c (hpux_thread_store_registers): Use
7120 regcache_raw_collect, not regcache_raw_read.
7121 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7122 not regcache_raw_write.
7123
7124 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7125
7126 * gdbarch.sh: Remove deprecated_register_byte.
7127 * gdbarch.c, gdbarch.h: Regenerate.
7128 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7129 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7130
7131 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7132 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7133 read-only register caches. Make REGCACHE parameter const.
7134 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7135
7136 * mi/mi-main.c (old_regs): Remove.
7137 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7138 (register_changed_p): Reimplement to compare two register caches.
7139 (mi_cmd_data_list_changed_registers): Update caller.
7140 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7141 * mi/mi-interp.c (mi_interpreter_init): Do not call
7142 mi_setup_architecture_data.
7143
7144 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7145
7146 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7147 inline definition at the places the macros are used.
7148 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7149
7150 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7151
7152 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7153 "gdb_string.h".
7154 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7155 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7156 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7157 (rs6000_aix_regset_from_core_section): New function.
7158 (rs6000_aix_init_osabi): Register it.
7159 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7160 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7161 * rs6000-nat.c (CoreRegs): Do not define type.
7162 (fetch_core_registers, rs6000_core_fns): Remove.
7163 (_initialize_core_rs6000): Do not register it. Rename to ...
7164 (_initialize_rs6000_nat): ... this.
7165 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7166
7167 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7168
7169 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7170 (dwarf2_read_address): Sign extend return address as required by
7171 target architecture.
7172
7173 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7174
7175 * solib-frv.c (lm_base): Bail out if the main executable has
7176 not been relocated.
7177
7178 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7179
7180 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7181 of FPCR register in fpregset.
7182
7183 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7184
7185 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7186 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7187
7188 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7189
7190 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7191 * rs6000-nat.c (rs6000_wait): New function.
7192 (_initialize_core_rs6000): Install it as to_wait target method.
7193 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7194
7195 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7196
7197 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7198 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7199 * rs6000-nat.c (super_create_inferior): New variable.
7200 (rs6000_create_inferior): Make static. Adapt argument list. Call
7201 original version of create_inferior via super_create_inferior.
7202 (_initialize_core_rs6000): Install to_create_inferior target method.
7203
7204 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7205
7206 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7207 (aix_thread_xfer_partial): ... this.
7208 (init_aix_thread_ops): Install to_xfer_partial instead
7209 of deprecated_xfer_memory target method.
7210
7211 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7212 and inftarg.o, add inf-ptrace.o.
7213 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7214 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7215 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7216 (fetch_inferior_registers): Rename to ...
7217 (rs6000_fetch_inferior_registers): ... this. Make static.
7218 (store_inferior_registers): Rename to ...
7219 (rs6000_store_inferior_registers): ... this. Make static.
7220 (read_word, child_xfer_memory): Remove.
7221 (rs6000_xfer_partial): New function.
7222 (kernel_u_size): Remove.
7223 (_initialize_core_rs6000): Add inf_ptrace-based target.
7224 * Makefile.in (rs6000-nat.o): Update dependencies.
7225
7226 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7227
7228 * inf-ptrace.c: Include "gdb_stdint.h".
7229 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7230 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7231 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7232 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7233 (inf_ptrace_store_register): Likewise.
7234 * Makefile.in (inf-ptrace.o): Update dependencies.
7235
7236 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7237
7238 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7239 * configure.tgt (rs6000-*-*): Likewise.
7240 * config/rs6000/aix4.mh: Delete file.
7241 * config/rs6000/aix4.mt: Delete file.
7242 * config/rs6000/rs6000.mh: Delete file.
7243 * config/rs6000/rs6000.mt: Delete file.
7244
7245 * config/powerpc/nm-aix.h: Delete file.
7246 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7247
7248 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7249
7250 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7251 Remove obsolete part of comment.
7252 (store_regs_user_thread): Use uint32_t temporaries when calling
7253 fill_sprs32.
7254 (store_regs_kernel_thread): Likewise. Add assertion to verify
7255 correct size of struct ptsprs members.
7256 (aix_thread_xfer_memory): Fix type of myaddr.
7257 (aix_thread_extra_thread_info): Fix compiler warning.
7258 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7259 (fetch_register, store_register): Adapt callers.
7260
7261 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7262
7263 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7264
7265 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7266
7267 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7268 and "regcache.h".
7269 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7270 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7271 (alpha_linux_regset_from_core_section): New function.
7272 (alpha_linux_init_abi): Install it.
7273 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7274 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7275 <sys/procfs.h>, and "gregset.h".
7276 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7277 Move from config/alpha/nm-linux.h.
7278 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7279 from alpha-nat.c.
7280 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7281 * alpha-nat.c: Remove #ifdef __linux__ section.
7282 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7283 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7284 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7285 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7286 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7287 (NATDEPFILES): Remove alpha-nat.o.
7288 * config/alpha/nm-linux.h: Delete file.
7289 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7290 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7291 (alpha-linux-tdep.o): Likewise.
7292
7293 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7294
7295 * mips-linux-nat.c: No longer include "gdbcore.h".
7296 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7297 (mips64_linux_register_addr): Likewise.
7298 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7299 mips64_linux_register_addr instead of register_addr.
7300 * mips-linux-tdep.c (mips_linux_register_addr,
7301 mips64_linux_register_addr): Move to mips-linux-nat.c.
7302 (register_addr): Remove.
7303 (register_addr_data, init_register_addr_data): Remove.
7304 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7305 (set_mips_linux_register_addr): Remove.
7306 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7307 * Makefile.in (mips-linux-nat.o): Update dependencies.
7308
7309 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7310
7311 * linux-nat.c (linux_register_u_offset): Remove.
7312 (linux_target_install_ops): New function.
7313 (linux_target): Use it.
7314 (linux_trad_target): New function.
7315 * linux-nat.h (linux_trad_target): Declare.
7316
7317 * alpha-linux-nat.c: Include "gdbcore.h".
7318 (alpha_linux_register_u_offset): New function.
7319 (_initialize_alpha_linux_nat): Use linux_trad_target.
7320
7321 * mips-linux-nat.c: Include "gdbcore.h".
7322 (mips_linux_register_u_offset): New function.
7323 (_initialize_mips_linux_nat): Use linux_trad_target.
7324
7325 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7326 * config/arm/nm-linux.h: Delete file.
7327
7328 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7329 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7330
7331 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7332 * config/ia64/nm-linux.h: Delete file.
7333
7334 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7335 * config/m32r/nm-linux.h: Delete file.
7336
7337 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7338 * config/m68k/nm-linux.h: Delete file.
7339
7340 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7341 * config/pa/nm-linux.h: Delete file.
7342
7343 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7344 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7345 * config/powerpc/nm-linux.h: Delete file.
7346
7347 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7348 * config/s390/nm-linux.h: Delete file.
7349
7350 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7351 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7352 * config/sparc/nm-linux.h: Delete file.
7353
7354 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7355 (mips-linux-nat.o): Likewise.
7356
7357 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7358
7359 * core-aout.c: Delete file.
7360 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7361 (core-aout.o): Delete rule.
7362 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7363
7364 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7365
7366 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7367 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7368 KERNEL_U_ADDR): Remove.
7369
7370 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7371 (cannot_fetch_register, cannot_store_register): Remove.
7372 (fetch_register): Inline cannot_fetch_register and register_addr.
7373 (store_register): Inline cannot_store_register and register_addr.
7374 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7375 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7376 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7377 Remove.
7378
7379 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7380 (fetch_register): Inline register_addr.
7381 (store_register): Inline register_addr.
7382 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7383 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7384 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7385
7386 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7387 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7388 REGISTER_U_ADDR): Remove.
7389
7390 * hppa-linux-nat.c (register_addr): Rename to ...
7391 (hppa_linux_register_addr): ... this. Make static.
7392 (fetch_register, store_register): Adapt callers.
7393 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7394
7395 * ppc-linux-nat.c (kernel_u_size): Remove.
7396 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7397
7398 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7399 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7400 (NAT_FILE): Remove.
7401 * config/vax/nm-vax.h: Delete file.
7402
7403 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7404
7405 * MAINTAINERS (Write After Approval): Add myself.
7406
7407 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7408
7409 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7410 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7411 (m68k_linux_sigcontext_reg_offset): Fix typo.
7412 (target_is_uclinux): New.
7413 (m68k_linux_inferior_created): New.
7414 (m68k_linux_get_sigtramp_info): Check for uClinux or
7415 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7416 uClinux.
7417 (_initialize_m68k_linux_tdep): Register
7418 m68k_linux_inferior_created.
7419
7420 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7421
7422 * win32-nat.c (win32_detach): Remove delete_command call.
7423 Resume inferior with win32_resume instead of win32_continue.
7424
7425 2007-04-19 Jerome Guitton <guitton@adacore.com>
7426
7427 * ser-mingw.c (fd_is_file): New function.
7428 (file_select_thread): New function.
7429 (ser_console_wait_handle): Add special handling for files.
7430
7431 2007-04-18 Denis Pilat <denis.pilat@st.com>
7432
7433 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7434 when missing from DW_TAG_subrange_type. Remove the handling of null
7435 return from die_type.
7436
7437 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7438
7439 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7440 change to rearrange some brackets.
7441 (mips_n32n64_push_dummy_call): Likewise.
7442 (mips_o32_push_dummy_call): Likewise.
7443 (mips_o64_push_dummy_call): Likewise.
7444
7445 2007-04-18 Denis Pilat <denis.pilat@st.com>
7446
7447 * infcmd.c (post_create_inferior): Start with a call to
7448 target_terminal_ours.
7449
7450 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7451
7452 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7453 brackets.
7454 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7455 expressions.
7456 (mips_o32_push_dummy_call): Likewise.
7457 (mips_o64_push_dummy_call): Likewise.
7458
7459 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7460
7461 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7462 comment.
7463
7464 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7465
7466 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7467 comment.
7468 (mips_o32_push_dummy_call): Likewise.
7469
7470 2007-04-17 Andreas Schwab <schwab@suse.de>
7471
7472 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7473 sal to be bigger than the end of the function.
7474
7475 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7476 Nigel Stephens <nigel@mips.com>
7477
7478 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7479 argument alignment requirements when calculating stack space
7480 required. When aligning an arg register to eight bytes
7481 boundary, align stack_offset too. Write floating-point
7482 arguments to the appropriate integer register if need go there.
7483 (mips_o64_push_dummy_call): Likewise.
7484
7485 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7486
7487 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7488 "sig" arguments, add "regcache" argument.
7489 * gdbarch.c, gdbarch.h: Regenerate.
7490
7491 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7492 (handle_inferior_event): Call remove_single_step_breakpoints directly
7493 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7494
7495 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7496 Remove handling of !insert_breakpoints_p case.
7497 * arm-tdep.c (arm_software_single_step): Likewise.
7498 * cris-tdep.c (cris_software_single_step): Likewise.
7499 * mips-tdep.c (mips_software_single_step): Likewise.
7500 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7501 * sparc-tdep.c (sparc_software_single_step): Likewise.
7502 * spu-tdep.c (spu_software_single_step): Likewise.
7503
7504 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7505 * mips-tdep.h (mips_software_single_step): Likewise.
7506 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7507 * sparc-tdep.h (sparc_software_single_step): Likewise.
7508
7509 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7510
7511 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7512 when removing single-step breakpoints.
7513
7514 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7515
7516 * varobj.h (varobj_set_frozen): New
7517 (varobj_get_frozen): New.
7518 (varobj_update): New parameter explicit.
7519 * varobj.c (struct varobj): New fields frozen
7520 and not_fetched.
7521 (varobj_set_frozen, varobj_get_frozen): New.
7522 (install_new_value): Don't fetch values for
7523 frozen variable object, or children thereof. Allow
7524 a frozen variable object to have non-fetched value.
7525 (varobj_update): Allow updating child variables.
7526 Don't traverse frozen children.
7527 (new_variable): Initialize the frozen field.
7528 (c_value_of_variable): Return NULL for frozen
7529 variable without any value yet.
7530 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7531 'explicit'.
7532 (mi_cmd_var_create): Output the 'frozen' field,
7533 as soon as testsuite is adjusted to expect that field.
7534 (mi_cmd_var_set_frozen): New.
7535 (mi_cmd_var_update): Pass the 'explicit' parameter to
7536 varobj_update_one.
7537 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7538 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7539
7540 2007-04-13 Paul Brook <paul@codesourcery.com>
7541
7542 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7543 ieee_double.
7544 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7545
7546 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7547
7548 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7549 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7550 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7551 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7552 * Makefile.in: Remove references to deleted files.
7553 * README: Do not mention deleted ROM monitor interfaces.
7554 * defs.h (enum language): Delete language_scm.
7555 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7556 (dump_subexp_body_standard): Likewise.
7557 * parse.c (operator_length_standard): Likewise.
7558 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7559 * remote-mips.c: Do not include remote-utils.h.
7560 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7561 throughout.
7562 * value.c: Do not include scm-lang.h.
7563 (unpack_long): Delete scm_unpack call.
7564 * config/h8300/h8300.mt, config/mips/embed.mt,
7565 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7566 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7567 deleted files.
7568 * NEWS: Mention removed files.
7569
7570 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7571
7572 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7573 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7574
7575 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7576
7577 * NEWS: Mention removal of HP aCC support.
7578
7579 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7580
7581 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7582 first entry for static executables.
7583 (breakpoint_addr): Delete unused variable.
7584 (elf_locate_base): Search for _r_debug in static executables.
7585 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7586 also.
7587
7588 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7589
7590 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7591 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7592 (mention): Remove bp_through_sigtramp support.
7593 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7594
7595 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7596
7597 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7598 shlib events.
7599
7600 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7601
7602 * infrun.c: Doc fixes.
7603 (handle_inferior_event): Clarify debug message.
7604 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7605
7606 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7607
7608 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7609
7610 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7611
7612 * config/m68k/tm-monitor.h: Delete file.
7613 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7614 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7615 call moved to ...
7616 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7617 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7618
7619 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7620
7621 * gdbarch.sh (software_single_step): Change the return type
7622 from void to int and reformatted some comments to <= 80
7623 columns.
7624 * gdbarch.c, gdbarch.h: Regenerated.
7625 * alpha-tdep.c (alpha_software_single_step): Likewise.
7626 * alpha-tdep.h (alpha_software_single_step): Likewise.
7627 * arm-tdep.c (arm_software_single_step): Likewise.
7628 * cris-tdep.c (cris_software_single_step): Likewise.
7629 * mips-tdep.c (mips_software_single_step): Likewise.
7630 * mips-tdep.h (mips_software_single_step): Likewise.
7631 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7632 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7633 * sparc-tdep.c (sparc_software_single_step): Likewise.
7634 * sparc-tdep.h (sparc_software_single_step): Likewise.
7635 * spu-tdep.c (spu_software_single_step): Likewise.
7636 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7637 and act accordingly.
7638
7639 2007-04-11 Steve Ellcey <sje@cup.hp.com>
7640
7641 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7642 * configure: Regenerate.
7643 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7644
7645 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7646
7647 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7648
7649 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7650
7651 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7652 macros.
7653 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7654 distinct on the TYPE_STUB_SUPPORTED debug targets.
7655 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7656
7657 2007-04-11 Joel Brobecker <brobecker@adacore.com>
7658
7659 * sparc-tdep.c (X_RS2): New macro.
7660 (sparc_skip_stack_check): New function.
7661 (sparc_analyze_prologue): Adjust PC past stack probing
7662 sequence if necessary.
7663
7664 2007-04-10 Andreas Schwab <schwab@suse.de>
7665
7666 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7667 register.
7668
7669 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7670
7671 * breakpoint.c (gdb_breakpoint_query): Really return an
7672 enum gdb_rc.
7673 (gdb_breakpoint): Likewise.
7674 * thread.c (gdb_list_thread_ids): Likewise.
7675 (gdb_thread_select): Likewise.
7676 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7677 (mi_cmd_thread_list_ids): Remove bogus initialization.
7678
7679 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7680
7681 * Makefile.in (SFILES): Remove hpacc-abi.c.
7682 (COMMON_OBS): Remove hpacc-abi.o.
7683 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7684 (hpacc-abi.o, hpread.o): Delete rules.
7685 * somread.c: Delete extern declarations from hpread.c.
7686 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7687 (som_symfile_finish): Do not call hpread_symfile_finish.
7688 (som_symfile_init): Do not call hpread_symfile_init.
7689 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7690 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7691 * hpacc-abi.c, hpread.c: Deleted.
7692
7693 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7694
7695 * solib-svr4.c (enable_break): Simplify return value.
7696 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7697
7698 2007-04-10 Andreas Schwab <schwab@suse.de>
7699
7700 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7701 l_ld_size, l_next_size, l_prev_size, l_name_size.
7702
7703 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7704 to extract addresses from link map.
7705 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7706 (LM_NEXT): Likewise.
7707 (LM_NAME): Likewise.
7708 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7709 (elf_locate_base): Likewise.
7710 (open_symbol_file_object): Likewise.
7711 (svr4_fetch_objfile_link_map): Likewise.
7712 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7713 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7714 l_ld_size.
7715 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7716 (svr4_lp64_fetch_link_map_offsets): Likewise.
7717
7718 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7719 removed members. Set l_ld_offset to -1 if not present.
7720
7721 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7722
7723 Pass stderr of program run with "target remote |"
7724 via gdb_stderr.
7725 * serial.c (serial_open): Set error_fd to -1.
7726 * serial.h (struct serial): New field error_fd.
7727 (struct serial_opts): New field avail.
7728 * ser-pipe.c (pipe_open): Create another pair
7729 of sockets. Pass stderr to gdb.
7730 * ser-mingw.c (pipe_windows_open): Pass
7731 PEX_STDERR_TO_PIPE to pex_run. Initialize
7732 sd->error_fd.
7733 (pipe_avail): New.
7734 (_initialize_ser_windows): Hook pipe_avail.
7735 * ser-base.c (generic_readchar): Check if there's
7736 anything in stderr channel and route that to gdb_stderr.
7737
7738 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7739
7740 * dbxread.c (read_ofile_symtab): Move current_objfile
7741 clearing to after end_stabs.
7742
7743 2007-04-01 Andreas Schwab <schwab@suse.de>
7744
7745 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7746 gdbarch instead of current_gdbarch.
7747
7748 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
7749
7750 * varobj.c (varobj_create): Keep varobj value
7751 NULL when evaluating the type.
7752
7753 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
7754
7755 * NEWS: Mention new Windows CE support.
7756
7757 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
7758
7759 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
7760 the obsoletion stanza.
7761 * NEWS: Mention deleted targets.
7762
7763 * config/sh/tm-wince.h: Remove.
7764 * config/sh/wince.mt: Remove.
7765 * config/mips/tm-wince.h: Remove.
7766 * config/mips/wince.mt: Remove.
7767
7768 * wince.c: Remove.
7769 * wince-stub.c: Remove.
7770 * wince-stub.h: Remove.
7771 * Makefile.in (wince.o): Remove rule.
7772 (wince-stub.o): Likewise.
7773
7774 * mips-tdep.c (mips_next_pc): Make static.
7775 * mips-tdep.h (mips_next_pc): Remove declaration.
7776 * arm-tdep.c (arm_pc_is_thumb): Make static.
7777 (thumb_get_next_pc): Likewise.
7778 (arm_get_next_pc): Likewise.
7779 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
7780 (arm_pc_is_thumb): Likewise.
7781 (thumb_get_next_pc): Likewise.
7782 (arm_get_next_pc): Likewise.
7783
7784 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7785
7786 * MAINTAINERS: Remove d10v entry.
7787 * Makefile.in (SFILES): Remove dwarfread.c.
7788 (COMMON_OBS): Remove dwarfread.o.
7789 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
7790 (remote-est.o, rom68k-rom.o): Delete.
7791 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
7792 target est, target rom68k, and DWARF 1.
7793 * configure.tgt: Mark d10v as removed.
7794 * dwarf2read.c: Doc update.
7795 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
7796 and lnsize.
7797 (elf_locate_sections): Do not set them.
7798 (elf_symfile_read): Do not call dwarf_build_psymtabs.
7799 * symfile.h (dwarf_build_psymtabs): Delete prototype.
7800 * config/m68k/monitor.mt (TDEPFILES): Prune.
7801 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
7802 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
7803
7804 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7805
7806 * doublest.c (convert_floatformat_to_doublest): Use
7807 floatformat_classify.
7808 (floatformat_is_nan): Rename to...
7809 (floatformat_classify): ...this. Return more information.
7810 * doublest.h (enum float_kind): New.
7811 (floatformat_is_nan): Replace prototype...
7812 (floatformat_classify): ...with this one.
7813 * valprint.c (print_floating): Use floatformat_classify. Handle
7814 infinity.
7815
7816 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7817
7818 * README: Mention ISO C library requirement.
7819
7820 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7821
7822 * Makefile.in (SFILES): Remove nlmread.c.
7823 (COMMON_OBS): Remove nlmread.o.
7824 (nlmread.o): Delete rule.
7825 * README: Delete reference to remote-st.c.
7826 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
7827 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
7828 GDB_OSABI_LYNXOS.
7829 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
7830 (_initialize_i386_tdep): Do not reference them.
7831 * nlmread.c: Delete file.
7832 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
7833 * target.c: Doc update.
7834 * thread.c: Delete commented include.
7835 * config/alpha/tm-alpha.h: Doc update.
7836
7837 2007-03-30 Chris Dearman <chris@mips.com>
7838
7839 * utils.c (string_to_core_addr): Comment typo.
7840
7841 2007-03-30 Chris Dearman <chris@mips.com>
7842
7843 * mips-tdep.c: Comment typo.
7844
7845 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
7846
7847 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
7848 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7849 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7850 * config/powerpc/nm-ppc64-linux.h: Remove file.
7851 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
7852 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
7853 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
7854 * infptrace.c (call_ptrace): Likewise.
7855 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
7856 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
7857 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
7858 (store_register): Likewise.
7859
7860 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7861
7862 * Makefile.in (varobj.o): Add missing dependency.
7863
7864 2007-03-29 Michael Snyder <msnyder@access-company.com>
7865
7866 * MAINTAINERS: Update my email address.
7867
7868 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7869
7870 Add support for exception handling with multiple versions of
7871 the Ada runtime:
7872 * ada-lang.c: Update general comments on how Ada exception catchpoints
7873 are implemented.
7874 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
7875 (__gnat_raise_nodefer_with_msg): Delete.
7876 (ada_unhandled_exception_name_addr_ftype): New type.
7877 (exception_support_info): New type.
7878 (ada_unhandled_exception_name_addr): Add forward declaration.
7879 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7880 (default_exception_support_info): New constant.
7881 (exception_support_info_fallback): Likewise.
7882 (exception_info): New global variable.
7883 (ada_exception_support_info_sniffer): New function.
7884 (ada_executable_changed_observer): Likewise.
7885 (ada_unhandled_exception_name_addr_from_raise): Renamed from
7886 ada_unhandled_exception_name_addr.
7887 (ada_unhandled_exception_name_addr): Reimplement to match the
7888 latest Ada runtime implementation.
7889 (error_breakpoint_runtime_sym_not_found): Delete.
7890 (ada_exception_sym_name): Get the exception sym name from
7891 exception_info rather than hardcoding it.
7892 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
7893 Update error handling.
7894 * Makefile.in (ada-lang.o): Add dependency on observer.h.
7895
7896 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7897
7898 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
7899 (remote-st.o, uw-thread.o): Delete.
7900 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
7901 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7902 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
7903 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
7904 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
7905 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
7906 rs6000-*-lynxos* to an obsoletion stanza.
7907 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7908 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
7909 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
7910 i[34567]86-*-netware*.
7911 * NEWS: Mention deleted targets.
7912
7913 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
7914 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
7915 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
7916 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
7917 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
7918 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
7919 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
7920 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
7921 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
7922 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
7923 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
7924 config/rs6000/tm-rs6000ly.h: Delete files.
7925
7926 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7927
7928 * defs.h (deprecated_registers_changed_hook): Delete declaration.
7929 * interps.c (clear_interpreter_hooks): Do not clear
7930 deprecated_registers_changed_hook.
7931 * regcache.c (registers_changed): Do not call it.
7932 * top.c (deprecated_registers_changed_hook): Do not define it.
7933 * mi/mi-interp.c (mi_command_loop): Do not clear it.
7934 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
7935 (tui_remove_hooks): Do not remove it.
7936 (tui_selected_frame_level_changed_hook): Check for negative level.
7937 Use get_selected_frame.
7938 (tui_registers_changed_hook): Deleted.
7939
7940 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7941
7942 * stabsread.c (add_undefined_type): Add extra parameter.
7943 Now handles nameless types separately.
7944 (struct nat): New type.
7945 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
7946 New static variables.
7947 (read_type): Update calls to add_undefined_type.
7948 (add_undefined_type_noname): New function.
7949 (add_undefined_type_1): Renames from add_undefined_type.
7950 (cleanup_undefined_types_noname): New function.
7951 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
7952 (cleanup_undefined_types): New handles nameless types separately.
7953 (_initialize_stabsread): Initialize our new static constants.
7954
7955 2007-03-29 Denis Pilat <denis.pilat@st.com>
7956
7957 * configure.ac: Test for signal.h.
7958 * configure, config.in: Regenerate.
7959
7960 2007-03-29 Denis Pilat <denis.pilat@st.com>
7961
7962 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
7963 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
7964
7965 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
7966
7967 * arm-wince-tdep.c: New.
7968 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
7969 (MT_CFLAGS): Delete.
7970 (TM_CLIBS): Delete.
7971 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
7972 solib-legacy.o, solib-svr4.o, and remove wince.o.
7973 * configure.tgt (arm*-*-mingw32ce*): Add.
7974 * signals/signals.c [HAVE_SIGNAL_H]: Check.
7975 (do_target_signal_to_host): Silence 'not used' warning.
7976 * config/arm/tm-wince.h: Remove.
7977
7978 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
7979
7980 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
7981 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
7982
7983 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
7984 * config/ia64/tm-linux.h: Remove file.
7985 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
7986 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
7987 legacy_pc_in_sigtramp.
7988 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
7989 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
7990 Remove func_name argument.
7991 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
7992
7993 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
7994 * target.c (update_current_target): Add to_have_steppable_watchpoint.
7995 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
7996 (HAVE_STEPPABLE_WATCHPOINT): Define.
7997
7998 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
7999 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8000 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8001 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8002 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8003 target_insert_watchpoint, target_remove_watchpoint): Remove.
8004 (FETCH_INFERIOR_REGISTERS): Define.
8005 * ia64-linux-nat.c (ia64_register_addr): Make static.
8006 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8007 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8008 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8009 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8010 (ia64_linux_stopped_by_watchpoint): Make static.
8011 (ia64_linux_can_use_hw_breakpoint): New function.
8012 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8013 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8014 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8015
8016 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8017
8018 * linespec.c: Include language.h.
8019 (find_methods): Add language parameter. Call
8020 lookup_symbol_in_language. Pass language down.
8021 (add_matching_methods): Likewise. Call
8022 lookup_symbol_in_language.
8023 (add_constructors): Likewise.
8024 (find_method): Pass sym_class to collect_methods.
8025 (collect_methods): Add sym_class parameter. Pass language
8026 down.
8027 * symtab.c (lookup_symbol): Rename to ...
8028 (lookup_symbol_in_language): ... this. Add language
8029 parameter. Use passed language instead of current_language.
8030 (lookup_symbol): New as wrapper around
8031 lookup_symbol_in_language.
8032 (lookup_symbol_aux): Add language parameter. Use passed
8033 language instead of current_language.
8034 (search_symbols): Indent.
8035 * symtab.h (enum language): Forward declare.
8036 (lookup_symbol_in_language): Declare.
8037 (lookup_symbol): Update description.
8038 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8039 * ada-lang.c (restore_language): Remove.
8040 (lookup_symbol_in_language): Remove.
8041
8042 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8043
8044 * breakpoint.c (bpstat_num): Add int *num parameter.
8045 * breakpoint.h (bpstat_num): Likewise.
8046 * infcmd.c (continue_command): Adjust to new bpstat_num
8047 interface.
8048 (program_info): Likewise.
8049
8050 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8051
8052 * config/sh/tm-sh.h: Remove file.
8053 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8054 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8055 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8056 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8057
8058 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8059
8060 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8061 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8062 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8063 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8064 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8065 sequence if target_shortname is "remote".
8066
8067 2007-03-27 Anton Blanchard <anton@samba.org>
8068
8069 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8070 instead of wordsize when looking for the LR in a stack frame.
8071
8072 2007-03-27 Andreas Schwab <schwab@suse.de>
8073 Daniel Jacobowitz <dan@codesourcery.com>
8074
8075 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8076 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8077 argument. Update all callers.
8078 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8079 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8080 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8081 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8082 (dwarf2_frame_set_adjust_regnum): ...this.
8083 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8084 * rs6000-tdep.c: Include "dwarf2-frame.h".
8085 (rs6000_adjust_frame_regnum): Define.
8086 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8087 Register rs6000_adjust_frame_regnum.
8088
8089 * Makefile.in (rs6000-tdep.o): Update dependencies.
8090
8091 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8092
8093 * Makefile.in: Add support for a "pdf" target.
8094
8095 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8096
8097 * amd64-tdep.c (amd64_init_frame_cache): New function.
8098 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8099
8100 2007-03-26 Nigel Stephens <nigel@mips.com>
8101 Maciej W. Rozycki <macro@mips.com>
8102
8103 * ui-out.c (ui_out_field_core_addr): Truncate address to
8104 TARGET_ADDR_BIT size before printing.
8105
8106 2007-03-22 Nigel Stephens <nigel@mips.com>
8107 Maciej W. Rozycki <macro@mips.com>
8108
8109 * remote-mips.c (mips_xfer_memory): Update prototype.
8110
8111 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8112
8113 * symfile.h: #include "symtab.h"
8114
8115 2007-03-22 Denis Pilat <denis.pilat@st.com>
8116
8117 * utils.c (pagination_on_command, pagination_off_command):
8118 Remove useless prototypes.
8119
8120 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8121
8122 Fix PR pascal/2232.
8123 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8124 instead of TYPE_NAME for object base class name.
8125
8126
8127 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8128
8129 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8130 Specify frame type in calls to frame_func_unwind().
8131
8132 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8133
8134 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8135 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8136 (refine_prologue_limit): Delete.
8137 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8138 Assume lim_pc is set. Correct check for incomplete prologues.
8139 Do not skip clobbers of the frame pointer.
8140 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8141 sal.
8142
8143 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8144
8145 * frame.c (frame_pop): Check to see whether there's a frame to
8146 which we can pop first.
8147
8148 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8149
8150 * MAINTAINERS (Write After Approval): Add myself.
8151
8152 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8153
8154 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8155 (handle_inferior_event): Remove unnecessary braces.
8156 * breakpoint.c (bpstat_what): Remove wrong comment.
8157
8158 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8159
8160 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8161 (spu_gdbarch_init): Install it.
8162
8163 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8164
8165 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8166 object types, not 0.
8167
8168 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8169
8170 * spu-tdep.c (spu_frame_align): New function.
8171 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8172
8173 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8174
8175 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8176 (spu_software_single_step): Likewise.
8177 (spu_read_pc, spu_write_pc): New functions.
8178 (spu_gdbarch_init): Install them.
8179
8180 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8181
8182 * cli/cli-dump.c (struct callback_data): load_offset needs to
8183 have signed long type.
8184
8185 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8186
8187 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8188 Revert the previous change that had some unexpected side-effects
8189 on mips32.
8190 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8191 function to get the address of the calling instruction.
8192
8193 2007-03-07 Denis Pilat <denis.pilat@st.com>
8194
8195 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8196 get_selected_frame by deprecated_safe_get_selected_frame.
8197
8198 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8199
8200 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8201 "gdb_string.h". Don't include "nbsd-tdep.h".
8202 (SIZEOF_STRUCT_REG): Remove.
8203 (SHNBSD_SIZEOF_GREGS): New.
8204 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8205 (shnbsd_regset_from_core_section): New functions.
8206 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8207 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8208 shnbsd_supply_gregset, shnbsd_collect_gregset.
8209 (shnbsd_gregset): New variable.
8210 (shnbsd_init_abi): Set regset_from_core_section.
8211 (GDB_OSABI_NETBSD_CORE): New define.
8212 (shnbsd_core_osabi_sniffer): New function.
8213 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8214 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8215 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8216 nbsd-tdep.o.
8217 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8218
8219 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8220
8221 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8222 length of the types referenced by the new type CV ring.
8223
8224 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8225
8226 * frame.c (frame_pop, frame_observer_target_changed): Call
8227 reinit_frame_cache.
8228 (flush_cached_frames): Rename to reinit_frame_cache and delete
8229 old implementation.
8230 * frame.h (flush_cached_frames): Delete prototype and update comment.
8231
8232 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8233 reinit_frame_cache instead of flush_cached_frames. Do not call
8234 select_frame after reinit_frame_cache.
8235 * corelow.c (core_open): Likewise.
8236 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8237 * infrun.c (prepare_to_proceed, context_switch)
8238 (handle_inferior_event): Likewise.
8239 * linux-fork.c (fork_load_infrun_state): Likewise.
8240 * ocd.c (ocd_start_remote): Likewise.
8241 * remote-e7000.c (e7000_start_remote): Likewise.
8242 * remote-mips.c (device): Likewise.
8243 * thread.c (switch_to_thread): Likewise.
8244 * tracepoint.c (finish_tfind_command): Likewise.
8245 * gdbarch.c: Regenerated.
8246
8247 2007-02-28 Jerome Guitton <guitton@adacore.com>
8248 Joel Brobecker <brobecker@adacore.com>
8249
8250 * gdbtypes.c (check_typedef): Do not replace stub type if
8251 the resolved type is not defined in the same objfile.
8252
8253 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8254
8255 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8256
8257 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8258
8259 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8260 symbol for Ada units when the symbol is defined using 't' rather
8261 than 'Tt' as symbol descriptor.
8262
8263 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8264
8265 * config/mips/tm-nbsd.h: Delete file.
8266 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8267 * config/sh/tm-nbsd.h: Delete file.
8268 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8269
8270 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8271
8272 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8273 unused WRONG_PARAM value since it was recently deleted.
8274
8275 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8276
8277 * varobj.c (varobj_update): Free temporary vectors.
8278
8279 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8280
8281 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8282 * config/powerpc/tm-linux.h: Delete file.
8283 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8284 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8285 (TEXT_SEGMENT_BASE): Do not redefine.
8286 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8287 from config/rs6000/tm-rs6000.h.
8288 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8289 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8290 (TEXT_SEGMENT_BASE): Remove.
8291 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8292 (rs6000_in_solib_return_trampoline): Remove.
8293 (SKIP_TRAMPOLINE_CODE): Remove.
8294 (rs6000_skip_trampoline_code): Remove.
8295 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8296 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8297 (FP0_REGNUM): Remove.
8298 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8299 (rs6000_set_host_arch_hook): Remove.
8300 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8301 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8302 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8303 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8304 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8305 * rs6000-nat.c: Include "rs6000-tdep.h".
8306 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8307 (set_host_arch): Rename to ...
8308 (rs6000_create_inferior): ... this. Make public.
8309 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8310 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8311 (rs6000_create_inferior): Remove.
8312 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8313 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8314 set_gdbarch_in_solib_return_trampoline, and
8315 set_gdbarch_skip_trampoline_code.
8316 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8317 from config/rs6000/tm-rs6000.h.
8318
8319 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8320
8321 * buildsym.c (record_producer): Do nothing if no producer is provided.
8322
8323 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8324
8325 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8326 to check changelist is non-NULL. Call error if the frontend tries
8327 to update a non-root variable.
8328
8329 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8330
8331 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8332
8333 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8334 (dwarf2_frame_sniffer): Update.
8335 (dwarf2_signal_frame_this_id): New function.
8336 (dwarf2_signal_frame_unwind): Use it.
8337 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8338 * frame.c (frame_func_unwind): Add this_type argument.
8339 (get_frame_func): Update.
8340 (frame_unwind_address_in_block): Add this_type argument and check it.
8341 Fix a typo.
8342 (get_frame_address_in_block): Update.
8343 * frame.h (enum frame_type): Move higher in the file.
8344 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8345 argument.
8346
8347 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8348 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8349 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8350 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8351 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8352 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8353 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8354 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8355 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8356 frame_func_unwind and frame_unwind_address_in_block to specify
8357 the frame type. Use frame_unwind_address_in_block instead of
8358 frame_pc_unwind in sniffers.
8359
8360 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8361
8362 * frame.c (deprecated_selected_frame): Rename to...
8363 (selected_frame): ...this. Make static.
8364 (get_selected_frame, select_frame): Update.
8365 * frame.h (deprected_select_frame): Delete.
8366 (deprecated_safe_get_selected_frame): Update comments.
8367
8368 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8369 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8370 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8371 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8372 tui/tui.c: Replace references to deprecated_selected_frame.
8373
8374 2007-02-27 Fred Fish <fnf@specifix.com>
8375
8376 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8377 directly decrement the stack pointer, accumulate their operand into
8378 the stack offset, and mark the function as not being frameless.
8379
8380 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8381
8382 * arch-utils.c (selected_byte_order): New.
8383 * arch-utils.h (selected_byte_order): New prototype.
8384 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8385
8386 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8387
8388 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8389 (default_symfile_offsets): Check VMA here. Update section VMAs.
8390
8391 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8392
8393 * remote.c (init_remote_state): Add special handling for placeholder
8394 registers.
8395
8396 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8397
8398 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8399 (filenames_h): New variable.
8400 (clean): Clean up xml-builtin.c and stamp-xml.
8401 (arm-linux-nat.o): Update.
8402 * config/arm/linux.mh (TDEP_XML): Define.
8403 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8404 (arm_linux_has_wmmx_registers): New.
8405 (GET_THREAD_ID): Fix typo.
8406 (IWMMXT_REGS_SIZE): Define.
8407 (fetch_wmmx_regs, store_wmmx_regs): New.
8408 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8409 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8410 (super_xfer_partial, arm_linux_xfer_partial): New.
8411 (_initialize_arm_linux_nat): Use them.
8412 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8413 (xml_builtin_xfer_partial): New function.
8414 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8415 * NEWS: Update mention of iWMMXt support.
8416
8417 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8418
8419 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8420 if there are no FPA registers.
8421 (arm_dwarf_reg_to_regnum): New function.
8422 (arm_register_type, arm_register_name): Return minimal values for
8423 unsupported registers.
8424 (arm_register_sim_regno): Handle iWMMXt registers.
8425 (arm_gdbarch_init): Record missing FPA registers if indicated by
8426 a target description. Recognize iWMMXt registers. Only register
8427 "info float" for FPA. Use ARM_NUM_REGS. Register
8428 arm_dwarf_reg_to_regnum.
8429 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8430 constants.
8431 (struct gdbarch_tdep): Add have_fpa_registers.
8432 * features/xscale-iwmmxt.xml: Update capitalization.
8433 * regformats/arm-with-iwmmxt.dat: Regenerated.
8434
8435 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8436
8437 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8438
8439 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8440
8441 * MAINTAINERS (mep): New target.
8442
8443 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8444
8445 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8446 Richard Sandiford:
8447 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8448 (mep-tdep.o): New rule.
8449 * configure.tgt (mep-*-*): New target.
8450 * mep-tdep.c: New file.
8451 * config/mep/mep.mt: New file.
8452
8453 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8454
8455 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8456 BREAKPOINT_HIT and STOP_UNKNOWN.
8457
8458 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8459
8460 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8461
8462 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8463
8464 * gdb_expat.h (XMLCALL): Define if not already defined.
8465
8466 2007-02-20 Andreas Schwab <schwab@suse.de>
8467
8468 * Makefile.in (symfile.o): Update dependencies.
8469
8470 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8471
8472 * MAINTAINERS: Disable -Werror for cris simulator. Build
8473 sparc64-solaris2.10 instead of the broken sparc-elf.
8474 * solib-frv.c: Include "solib.h".
8475 * Makefile.in (solib-frv.o): Update.
8476 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8477 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8478 (xtensa_frame_this_id, xtensa_frame_prev_register)
8479 (xtensa_push_dummy_call): Use %p.
8480
8481 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8482
8483 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8484 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8485 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8486 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8487 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8488 (sparc-linux-tdep.o): Update.
8489
8490 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8491
8492 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8493 (xtensa_mask_t): Change mask field to be a separate array.
8494 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8495 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8496 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8497 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8498 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8499 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8500 (mask14, mask15): Rename to
8501 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8502 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8503 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8504 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8505 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8506 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8507 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8508 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8509 (xtensa_submask14, xtensa_submask15): New.
8510 (rmap): Follow strict aliasing rules doing static initialization.
8511
8512 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8513
8514 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8515 handling from here...
8516 (tdesc_register_type): ...to here.
8517 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8518 * features/arm-core.xml: Use code_ptr and data_ptr.
8519
8520 2007-02-13 Denis Pilat <denis.pilat@st.com>
8521
8522 * varobj.h (enum varobj_update_error): New enum.
8523 * varobj.c (struct varobj_root): Add is_valid member.
8524 (varobj_get_type): Check for invalid varobj.
8525 (varobj_get_attributes): Likewise.
8526 (variable_editable):Likewise.
8527 (varobj_update): Likewise. Use varobj_update_error.
8528 (new_root_variable): Set root varobj as valid by default.
8529 (varobj_invalidate): New function.
8530 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8531 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8532 Use varobj_update_error.
8533
8534 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8535
8536 Fix PR pascal/2223.
8537 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8538 Pascal language marker.
8539 * dwarf2read.c (set_cu_language): Likewise.
8540
8541 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8542
8543 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8544 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8545 instead of target_terminal_init since inferior_ptid isn't set yet.
8546
8547 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8548
8549 * MAINTAINERS (Write After Approval): Add myself.
8550
8551 2007-02-09 Fred Fish <fnf@specifix.com>
8552
8553 Based on work by Apple Computer, Inc.
8554 * event-top.c (async_request_quit): Call quit() whenever either
8555 quit_flag is set or immediate_quit is set.
8556
8557 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8558
8559 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8560 type to a pointer to const struct block.
8561 (ada_lookup_symbol_list): Don't cast away constness when calling
8562 remove_out_of_scope_renamings.
8563
8564 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8565
8566 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8567 address of 'filename'; it is always non null.
8568
8569 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8570
8571 * exec.c (add_to_section_table): Do not discard empty sections.
8572
8573 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8574
8575 * features/Makefile, features/arm-with-iwmmxt.xml,
8576 features/gdbserver-regs.xsl, features/number-regs.xsl,
8577 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8578 * regformats/arm-with-iwmmxt.dat: Generate.
8579 * NEWS: Mention iWMMXt.
8580
8581 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8582
8583 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8584 (xml-tdesc.o): Update.
8585 * xml-support.c: Add a comment.
8586 (gdb_xml_enums_boolean): New variable.
8587 (gdb_xml_parse_attr_enum): Use strcasecmp.
8588 * xml-support.h (gdb_xml_enums_boolean): Declare.
8589 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8590 next_regnum, and current_union.
8591 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8592 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8593 (field_attributes, union_children, reg_attributes, union_attributes)
8594 (vector_attributes, feature_attributes, feature_children): New.
8595 (target_children): Make static. Add <feature>.
8596 (tdesc_elements): Make static.
8597 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8598 (struct tdesc_feature, tdesc_feature_p): New types.
8599 (struct target_desc): Add features member.
8600 (struct tdesc_arch_data, tdesc_data): New.
8601 (target_find_description): Clarify error message. Warn about
8602 ignored register descriptions.
8603 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8604 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8605 (tdesc_data_cleanup, tdesc_numbered_register)
8606 (tdesc_numbered_register_choices, tdesc_find_register)
8607 (tdesc_register_name, tdesc_register_type)
8608 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8609 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8610 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8611 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8612 (tdesc_create_feature, tdesc_record_type): New.
8613 (free_target_description): Free features.
8614 (_initialize_target_descriptions): Initialize tdesc_data.
8615 * arch-utils.c (default_remote_register_number): New.
8616 * arch-utils.h (default_remote_register_number): New prototype.
8617 * target-descriptions.h (set_tdesc_pseudo_register_name)
8618 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8619 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8620 (tdesc_numbered_register, tdesc_numbered_register_choices)
8621 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8622 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8623 (tdesc_create_reg): Declare.
8624 * gdbarch.sh (remote_register_number): New entry.
8625 * gdbarch.c, gdbarch.h: Regenerate.
8626 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8627 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8628
8629 * arm-tdep.c (arm_register_aliases): New.
8630 (arm_register_name_strings): Rename to...
8631 (arm_register_names): ...this. Make const. Delete the old version.
8632 (current_option, arm_register_byte): Delete.
8633 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8634 (value_of_arm_user_reg): New.
8635 (arm_gdbarch_init): Verify any described registers. Call
8636 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8637 for standard register names.
8638 (_initialize_arm_tdep): Do not adjust arm_register_names.
8639 * user-regs.c (struct user_reg): Add baton member.
8640 (append_user_reg, user_reg_add_builtin, user_regs_init)
8641 (user_reg_add, value_of_user_reg): Use a baton for user
8642 register functions.
8643 * std-regs.c: Update.
8644 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8645 (user_reg_add): Add baton argument.
8646 * NEWS: Mention target description register support.
8647 * features/arm-core.xml, features/arm-fpa.xml: New.
8648 * eval.c (evaluate_subexp_standard): Allow ptype $register
8649 when the program is not running.
8650
8651 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
8652
8653 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8654
8655 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8656
8657 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8658 info->disassembler_options to "any".
8659
8660 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8661
8662 * varobj.c (install_new_value): Only call value_get_print_value
8663 if changeable.
8664
8665 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8666
8667 Reported by timeless@gmail.com:
8668 * gdb/target.c (target_flash_erase): Do not return void value.
8669 (target_flash_done): Likewise.
8670 * gdb/cli/cli-cmds.c (source_command): Likewise.
8671
8672 2007-02-08 Fred Fish <fnf@specifix.com>
8673
8674 Based on work by Apple Computer, Inc.
8675 * event-top.c (handle_sigint): Set quit_flag.
8676 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8677 if quit_flag has already been reset.
8678
8679 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8680
8681 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8682 up.
8683
8684 2007-02-08 Fred Fish <fnf@specifix.com>
8685
8686 * defs.h (request_quit): Remove declaration.
8687 * utils.c (request_quit): Remove definition.
8688
8689 2007-02-08 Joel Brobecker <brobecker@gnat.com>
8690 Jan Kratochvil <jan.kratochvil@redhat.com>
8691 Daniel Jacobowitz <dan@codesourcery.com>
8692
8693 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8694 (skip_prologue): Allow bl->blrl used by PIC code.
8695
8696 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8697 Daniel Jacobowitz <dan@codesourcery.com>
8698
8699 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8700 initialize tmp_obstack.
8701 * p-valprint.c (pascal_object_print_value_fields)
8702 (pascal_object_print_value): Likewise.
8703
8704 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8705
8706 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8707
8708 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8709
8710 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8711 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8712
8713 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8714
8715 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8716 (xml_cache): New.
8717 (tdesc_parse_xml): Cache expanded descriptions.
8718
8719 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8720
8721 * Makefile.in (XMLFILES): New.
8722 (COMMON_OBS): Add xml-builtin.o.
8723 (xml-builtin.c, stamp-xml): New rules.
8724 (xml-tdesc.o): Update.
8725 * features/feature_to_c.sh: New file.
8726 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8727 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8728 (gdb_xml_start_element): Initialize scope after possibly reallocating
8729 scopes. Move cleanup later. Handle the XInclude description
8730 specially.
8731 (gdb_xml_end_element): Only parse the body if there is a current element.
8732 Call XML_DefaultCurrent if there is no element.
8733 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8734 (struct xinclude_parsing_data, xinclude_start_include)
8735 (xinclude_end_include, xml_xinclude_default)
8736 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8737 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8738 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8739 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8740 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8741 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8742 XInclude directives. Use the compiled in DTD.
8743 (fetch_xml_from_file): Add baton argument. Treat it as a containing
8744 directory name. Do not warn here.
8745 (file_read_description_xml): Update call. Warn here instead. Pass
8746 a dirname as baton.
8747 (fetch_available_features_from_target): New.
8748 (target_read_description_xml): Use it.
8749 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
8750 to handle XInclude.
8751 * features/xinclude.dtd: New file.
8752
8753 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8754
8755 * linux-thread-db.c (check_for_thread_db): Return early if we have
8756 no libthread_db support.
8757
8758 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8759
8760 * mi/mi-parse.h: Include <sys/time.h>.
8761
8762 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
8763
8764 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
8765 instead of print_variable_value to print values.
8766
8767 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8768
8769 * mi/mi-main.c: Numerous formatting changes.
8770 (mi_cmd_data_write_register_values): Replace clause inadvertantly
8771 removed in my previous change.
8772
8773 2007-02-03 Eli Zaretskii <eliz@gnu.org>
8774
8775 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
8776 Use 1000000L instead of 1000000.
8777
8778 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8779
8780 Based on work by Apple Computer, Inc.
8781
8782 * configure.ac: Test for sys/resource.h and getrusage.
8783 * configure, config.in: Regenerate.
8784
8785 * mi/mi-main.c: Include <sys/resource.h> if present.
8786 (rusage): Declare if HAVE_GETRUSAGE.
8787 (current_command_ts, do_timings): New static variables.
8788 (timestamp, print_diff_now, print_diff, timeval_diff):
8789 New static timing functions.
8790 (mi_cmd_enable_timings): New function for new MI command.
8791 (captured_mi_execute_command, mi_execute_async_cli_command):
8792 Call timing functions.
8793
8794 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
8795 -enable-timings.
8796
8797 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
8798
8799 * mi/mi-parse.h: (mi_timestamp): New structure.
8800 (mi_parse): Add mi_timestamp* member.
8801
8802 2007-02-02 Denis Pilat <denis.pilat@st.com>
8803
8804 * thread.c (make_cleanup_restore_current_thread): New function.
8805 (info_threads_command): Use of make_cleanup_restore_current_thread
8806 to restore the current thread and the selected frame.
8807 (restore_selected_frame): New function.
8808 (struct current_thread_cleanup): Add frame_id field.
8809 (do_restore_current_thread_cleanup): Add restoring of the selected
8810 frame.
8811 (make_cleanup_restore_current_thread): Likewise.
8812 (thread_apply_all_command): backup the selected frame while
8813 entering the function and restore it at exit.
8814 (thread_apply_command): Likewise.
8815
8816 2007-02-02 Denis Pilat <denis.pilat@st.com>
8817
8818 * MAINTAINERS (Write After Approval): Add myself to the list.
8819
8820 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8821
8822 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
8823 (m32r_store_register): Ditto.
8824
8825 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
8826
8827 * ser-mingw.c (pipe_windows_open)
8828 (pipe_windows_read, pipe_windows_write): Declare
8829 variables at the top of the function.
8830
8831 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8832
8833 * doublest.c (floatformat_from_length): Use the right element from
8834 gdbarch floatformats.
8835 (floatformat_from_type, extract_typed_floating)
8836 (store_typed_floating): Likewise.
8837 * doublest.h: Remove declarations for undefined floatformat arrays.
8838 * gdbarch.sh (float_format, double_format, long_double_format): Change
8839 to pairs.
8840 (pformat): Update for pairs.
8841 * gdbarch.c, gdbarch.h: Regenerated.
8842 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
8843 (floatformats_ieee_double_littlebyte_bigword)
8844 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
8845 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
8846 (floatformats_vax_d): New variables.
8847 (builtin_type_ieee_single, builtin_type_ieee_double)
8848 (builtin_type_arm_ext, builtin_type_ia64_spill)
8849 (builtin_type_ia64_quad): Replace arrays with individual types.
8850 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
8851 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
8852 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
8853 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
8854 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
8855 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
8856 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
8857 unused and endian-specific types.
8858 (recursive_dump_type): Update for floatformat pairs.
8859 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
8860 (build_gdbtypes): Use build_flt.
8861 (_initialize_gdbtypes): Update set of initialized types.
8862 * gdbtypes.h: Update declarations to match gdbtypes.c.
8863 (struct main_type): Store a pointer to two floatformats.
8864 * arch-utils.c (default_float_format, default_double_format): Delete.
8865 * arch-utils.h (default_float_format, default_double_format): Delete.
8866
8867 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8868 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
8869 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
8870 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
8871 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
8872
8873 2007-01-29 Joel Brobecker <brobecker@adacore.com>
8874
8875 * target.c (maintenance_print_target_stack): New function.
8876 (initialize_targets): Add new "maintenance print target-stack"
8877 command.
8878
8879 2007-01-28 Mark Kettenis <kettenis@gnu.org>
8880
8881 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
8882
8883 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
8884
8885 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
8886 (struct dwarf2_loclist_baton): Likewise.
8887
8888 2007-01-27 Eli Zaretskii <eliz@gnu.org>
8889
8890 * cli/cli-script.c: Include breakpoint.h.
8891 (build_command_line): Require arguments only for if and while
8892 commands.
8893 (get_command_line, execute_user_command, execute_control_command):
8894 Fix wording of warning messages.
8895 (print_command_lines): Print breakpoint commands.
8896 (execute_control_command): Call commands_from_control_command to
8897 handle the `commands' command inside a body of a flow-control
8898 command.
8899 (read_next_line): Recognize the `commands' command and build a
8900 command line structure for it.
8901 (recurse_read_control_structure, read_command_lines): Handle
8902 `commands' similarly to `if' and `while'.
8903
8904 * breakpoint.c (get_number_trailer): Document the special meaning
8905 of NULL as the first argument PP.
8906 (commands_from_control_command): New function.
8907
8908 * breakpoint.h (commands_from_control_command): Add prototype.
8909
8910 * defs.h (commands_control): New enumerated value for enum
8911 command_control_type.
8912
8913 2007-01-26 Joel Brobecker <brobecker@adacore.com>
8914
8915 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
8916 (ada_exception_sal): Update accordingly.
8917
8918 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8919
8920 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
8921 * NEWS: Describe CHAR array vs. string identifcation rules.
8922
8923 2007-01-25 Paul Brook <paul@codesourcery.com>
8924
8925 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
8926
8927 2007-01-24 Jim Blandy <jimb@codesourcery.com>
8928
8929 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
8930 expression is empty, bother to return the 'optimized out' value we
8931 construct. (Thanks to Carl Burch.)
8932
8933 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8934
8935 * varobj.c (c_value_of_root, c_value_of_child)
8936 (cplus_describe_child): Don't call release_value.
8937
8938 2007-01-24 Thiemo Seufer <ths@mips.com>
8939
8940 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
8941 initialization.
8942
8943 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8944
8945 Refactor getting children name, value and type access
8946 for varobjs in C++.
8947 * varobj.c (get_type_deref): Remove.
8948 (adjust_value_for_child_access): New.
8949 (c_number_of_children): Use the above.
8950 (c_describe_child): Likewise.
8951 (enum accessibility): New.
8952 (match_accessibility): New function.
8953 (cplus_describe_child): New function.
8954 (cplus_name_of_child, cplus_value_of_child)
8955 (cplus_type_of_child): Reimplement in terms
8956 of cplus_describe_child.
8957 (cplus_number_of_children): Use
8958 adjust_value_for_child_access.
8959
8960 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8961
8962 Fix computation of the 'editable' attribute and
8963 value changeability for for references.
8964 * varobj.c (get_value_type): New function.
8965 (c_variable_editable): Use get_value_type.
8966 (varobj_value_is_changeable): Likewise.
8967
8968 2007-01-24 Joel Brobecker <brobecker@adacore.com>
8969
8970 * source.c (find_and_open_source): Try rewriting the source
8971 path inside filename if dirname is NULL.
8972
8973 2007-01-24 Joel Brobecker <brobecker@adacore.com>
8974
8975 * dwarf2read.c (add_partial_symbol): Create an extra partial
8976 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
8977 (new_symbol): Likewise for symbols.
8978
8979 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
8980
8981 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
8982
8983 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
8984
8985 * value.c (value_primitive_field): Copy the full 'location'
8986 contents, instead of assuming that copying ADDRESS will
8987 bring over everything in the union. Remove obsolete comment.
8988
8989 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
8990
8991 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
8992 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
8993 (m32c_m16c_pointer_to_address): Separate code from declarations.
8994
8995 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
8996
8997 * target.c (update_current_target): Correct typo.
8998
8999 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9000
9001 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9002 declaration.
9003
9004 2007-01-11 Andrew Cagney <cagney@redhat.com>
9005 Daniel Jacobowitz <dan@codesourcery.com>
9006 Jan Kratochvil <jan.kratochvil@redhat.com>
9007
9008 * dwarf2-frame.c (execute_cfa_program): New support of
9009 `DW_CFA_GNU_negative_offset_extended'.
9010
9011 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9012
9013 * NEWS: Mention flash support for "load" and new remote packets.
9014
9015 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9016
9017 * breakpoint.c (delete_command): Skip redundant loop iterations.
9018
9019 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9020
9021 * gdbarch.sh (register_type): Update comment.
9022 * gdbarch.h: Regenerated.
9023 * arch-utils.c (generic_register_size): Call register_type.
9024 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9025 * m32c-tdep.c (check_for_saved): Likewise.
9026 * mips-tdep.c (mips_print_register, print_gp_register_row)
9027 (mips_print_registers_info): Likewise.
9028 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9029 Likewise.
9030 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9031 (sh64_do_register, sh64_print_register)
9032 (sh64_media_print_registers_info): Likewise.
9033 * tui/tui-regs.c (tui_register_format): Likewise.
9034
9035 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9036
9037 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9038
9039 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9040 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9041 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9042 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9043 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9044 (make_symbol_completion_list): Likewise.
9045
9046 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 Daniel Jacobowitz <dan@codesourcery.com>
9048
9049 * buildsym.c (end_symtab): Use preallocated symtab if available.
9050 Fill in SYMBOL_SYMTAB.
9051 * buildsym.h (struct subfile): Add symtab member.
9052 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9053 (struct file_entry): Add symtab.
9054 (free_cu_line_header): New function.
9055 (read_file_scope): Use it. Save line_header in the cu. Process
9056 lines before DIEs.
9057 (add_file_name): Initialize new symtab member.
9058 (dwarf_decode_lines): Create symtabs for included files.
9059 (new_symbol): Set SYMBOL_SYMTAB.
9060 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9061 (search_symbols): Likewise.
9062 * symtab.h (struct symbol): Add symtab member.
9063 (SYMBOL_SYMTAB): Define.
9064
9065 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9066
9067 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9068
9069 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9070
9071 * arch-utils.c (show_endian): Correct reversed condition.
9072
9073 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9074
9075 * MAINTAINERS (Write After Approval): Add myself.
9076
9077 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9078 Vladimir Prus <vladimir@codesourcery.com>
9079
9080 Fix 'selected frame' varobjs.
9081 * varobj.c (struct varobj): Remove the error field.
9082 (varobj_set_value): Don't check var->error.
9083 (install_new_value): Don't set var->error.
9084 (varobj_update): Always pass the new value
9085 of the root via install_new_value.
9086 (create_child): Don't set error field.
9087 (new_variable): Likewise.
9088 (c_value_of_root): Always reevaluate the value
9089 of selected frame varobjs in the selected frame.
9090 Don't call reinit_frame_cache.
9091
9092 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9093
9094 * source.c (_initialize_source): Improve the help text of
9095 the substitute-path commands.
9096
9097 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9098
9099 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9100 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9101 (frv_skip_prologue): Remove prototypes.
9102 (frv_adjust_breakpoint_address): Renamed from
9103 frv_gdbarch_adjust_breakpoint_address.
9104 (frv_gdbarch_init): Adjust.
9105
9106 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9107
9108 * gdbarch.sh (deprecated_extract_return_value)
9109 (deprecated_store_return_value): Remove.
9110 (extract_return_value, store_return_value): Remove default values.
9111 * gdbarch.c, gdbarch.h: Regenerate.
9112 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9113 (legacy_store_return_value): Remove.
9114 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9115 Remove.
9116
9117 * mi/mi-main.c: Remove obsolete comment.
9118
9119 * regcache.c, regcache.h (deprecated_register_bytes)
9120 (deprecated_read_register_bytes)
9121 (deprecated_write_register_bytes): Remove.
9122
9123 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9124 Don't forget to move destination pointer.
9125
9126 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9127
9128 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9129
9130 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9131
9132 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9133 past entry function with recent newlib.
9134
9135 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9136
9137 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9138 introduction. Specify -var-update more exactly.
9139
9140 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9141
9142 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9143
9144 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9145
9146 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9147 the Global Maintainers' invitation to be a global maintainer.
9148
9149 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9150
9151 * infrun.c (singlestep_pc): New variable.
9152 (resume): Set singlestep_pc.
9153 (context_switch): Add a debugging message. Flush the frame cache.
9154 (handle_inferior_event): Add debugging messages. Handle thread
9155 hops when a software single step has completed. Let context_switch
9156 handle flushing the frame cache.
9157
9158 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9159
9160 * NEWS: Mention target descriptions, "set tdesc filename",
9161 "unset tdesc filename", "show tdesc filename", and
9162 qXfer:features:read.
9163 * arch-utils.c (choose_architecture_for_target): New function.
9164 (gdbarch_info_fill): Call it.
9165 * target-descriptions.c (struct property): Make members non-const.
9166 (struct target_desc): Add arch member.
9167 (target_description_filename): New variable.
9168 (target_find_description): Try via XML first.
9169 (tdesc_architecture): New.
9170 (free_target_description, make_cleanup_free_target_description): New.
9171 (set_tdesc_property): Call xstrdup.
9172 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9173 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9174 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9175 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9176 * target-descriptions.h (tdesc_architecture)
9177 (make_cleanup_free_target_description, set_tdesc_architecture): New
9178 prototypes.
9179 * Makefile.in (SFILES): Add xml-tdesc.c.
9180 (COMMON_OBS): Add xml-tdesc.o.
9181 (target-descriptions.o): Update.
9182 (xml-tdesc.o): New rule.
9183 * xml-tdesc.c, xml-tdesc.h: New files.
9184 * remote.c (PACKET_qXfer_features): New enum.
9185 (remote_protocol_features): Add qXfer:features:read.
9186 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9187 (_initialize_remote): Register qXfer:features:read.
9188 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9189 * features/gdb-target.dtd: New file.
9190
9191 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9192
9193 * copyright.sh: Clarify error.
9194
9195 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9196
9197 * symtab.c (matching_bfd_sections): Fix VMA matching for
9198 prelinked objects.
9199
9200 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9201
9202 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9203 nested symbols.
9204
9205 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9206
9207 Updated copyright notices for most files.
9208
9209 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9210
9211 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9212
9213 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9214
9215 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9216 exec_prefix.
9217 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9218 '${prefix}'.
9219 * configure, config.in: Regenerate.
9220 * defs.h (debug_file_directory): Declare.
9221 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9222 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9223 relocate it if DEBUGDIR_RELOCATABLE.
9224 * symfile.c (debug_file_directory): Make non-static.
9225 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9226 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9227 (_initialize_symfile): Don't initialize debug_file_directory here.
9228
9229 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9230
9231 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9232 statements.
9233
9234 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9235
9236 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9237 frame_unwind_register to recurse.
9238 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9239 (alpha_heuristic_frame_prev_register): Likewise.
9240 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9241 * m32c-tdep.c (m32c_prev_register): Likewise.
9242 * frame.c (frame_register_unwind_location): Remove FIXME.
9243
9244 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9245 Eli Zaretskii <eliz@gnu.org>
9246
9247 * copyright.sh: New file.
9248
9249 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9250
9251 * configure.ac: Check for XML_StopParser.
9252 * xml-support.c (gdb_xml_body_text): Check for an error.
9253 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9254 (gdb_xml_end_element_wrapper): Likewise.
9255 * config.in, configure: Regenerated.
9256
9257 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9258
9259 * varobj.c (install_new_value): Always update print_value.
9260 (value_get_print_value): Immediately return NULL for missing
9261 values.
9262
9263 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9264
9265 * configure.ac: Tighten pattern for extracting value of
9266 DEPRECATED_TM_FILE from the target makefile fragment.
9267 * configure: Regenerated.
9268
9269 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9270
9271 * linux-nat.c (struct simple_pid_list): Add status.
9272 (add_to_pid_list): Record the PID's status.
9273 (linux_record_stopped_pid): Likewise. Make static.
9274 (pull_pid_from_list): Return the saved status.
9275 (linux_nat_handle_extended): Deleted.
9276 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9277 Make static. Handle non-SIGSTOP for a new thread's first signal.
9278 (flush_callback): Handle unexpected pending signals.
9279 (linux_nat_wait): Update calls to changed functions.
9280 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9281 Remove prototypes for newly static functions.
9282
9283 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9284
9285 * gdbarch.sh (value_from_register): New gdbarch function.
9286 * gdbarch.c, gdbarch.h: Regenerate.
9287 * findvar.c (default_value_from_register): New function.
9288 (value_from_register): Use gdbarch_value_from_register.
9289 * value.h (default_value_from_register): Declare.
9290 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9291 spu_value_to_register): Remove.
9292 (spu_value_from_register): New function.
9293 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9294 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9295 Call set_gdbarch_value_from_register.
9296 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9297 s390_value_to_register): Remove.
9298 (s390_value_from_register): New function.
9299 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9300 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9301 Call set_gdbarch_value_from_register.
9302
9303 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9304
9305 * NEWS: Add "set sysroot" and "show sysroot".
9306 * solib.c (solib_absolute_prefix): Delete. Replace
9307 all uses with gdb_sysroot.
9308 (_initialize_solib): Add "set sysroot" and "show sysroot".
9309 Make "solib-absolute-prefix" an alias to it.
9310
9311 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9312
9313 * frame.c (get_frame_register_bytes): New function.
9314 (put_frame_register_bytes): Likewise.
9315 * frame.h (get_frame_register_bytes): Declare.
9316 (put_frame_register_bytes): Likewise.
9317 * findvar.c (value_from_register): Always construct lval_register
9318 values. Use get_frame_register_bytes.
9319 * valops.c (value_assign): Use get_frame_register_bytes and
9320 put_frame_register_bytes.
9321
9322 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9323
9324 * MAINTAINERS: Update Stan Shebs' email address.
9325
9326 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9327
9328 * ada-lang.c (is_known_support_routine): Improve the implementation.
9329
9330 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9331
9332 * ada-lang.c: Add include of source.h.
9333 (is_known_support_routine): Improve the check verifying that the file
9334 associated to this frame exists.
9335 * Makefile.in (ada-lang.o): Add dependency on source.h.
9336
9337 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9338
9339 * ax-general.c (ax_const_l): Select proper opcode for the given
9340 value.
9341
9342 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9343
9344 * varobj.c (c_value_of_root): Don't select frame if variable
9345 object is out of scope.
9346
9347 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9348
9349 * varobj.c (struct varobj): New member print_value.
9350 (install_new_value): Compare last printed value with current one
9351 instead of contents.
9352 (new_variable): Initialize var->print_value to NULL.
9353 (free_variable): Free var->print_value.
9354 (value_get_print_value): New function derived from
9355 c_value_of_variable.
9356 (c_value_of_variable): Use value_get_print_value.
9357
9358 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9359
9360 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9361
9362 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9363
9364 * NEWS: Add entries for new catch commands.
9365
9366 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9367
9368 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9369 (add_partial_symbol): Correct identification of external references.
9370 (process_structure_scope): Likewise.
9371 (read_partial_die): Handle DW_AT_byte_size attribute.
9372
9373 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9374
9375 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9376
9377 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9378
9379 * varobj.c (get_type_deref): Fix variable objects for references to
9380 pointers.
9381
9382 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9383
9384 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9385 with no symbols.
9386
9387 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9388
9389 * memory-map.c (struct_memory_map_parsing_data): Remove most
9390 members. Make property_name an array.
9391 (free_memory_map_parsing_data, memory_map_start_element)
9392 (memory_map_end_element, memory_map_character_data): Delete.
9393 (memory_map_start_memory, memory_map_end_memory)
9394 (memory_map_start_property, memory_map_end_property): New functions.
9395 (property_attributes, memory_children, memory_type_enum)
9396 (memory_attributes, memory_map_children, memory_map_elements): New.
9397 (parse_memory_map): Rewrite.
9398 * xml-support.c (debug_xml): New.
9399 (xml_get_required_attribute, xml_get_integer_attribute)
9400 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9401 Delete.
9402 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9403 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9404 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9405 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9406 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9407 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9408 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9409 New.
9410 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9411 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9412 (enum gdb_xml_element_flag, struct gdb_xml_element)
9413 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9414 (struct gdb_xml_enum): New.
9415 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9416 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9417 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9418 (xml_get_required_attribute, xml_get_integer_attribute)
9419 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9420 * Makefile.in (xml_support_h, xml-support.o): Update.
9421
9422 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9423
9424 * Makefile.in (eval.o): Update dependencies.
9425 * eval.c: Include "ui-out.h" and "exceptions.h".
9426 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9427 Use value_zero if an error occurs when avoiding side effects.
9428 * varobj.c (c_value_of_root): Initialize new_val.
9429
9430 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9431
9432 * varobj.c (varobj_list_children): Stop if the number of children is
9433 unknown.
9434 (c_number_of_children):
9435
9436 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9437
9438 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9439 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9440 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9441 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9442 sizeof, instead of hardcoded constants.
9443
9444 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9445
9446 * CONTRIBUTE: Use sourceware.org.
9447
9448 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9449
9450 * buildsym.c (start_subfile): Handle producer.
9451 (record_producer): New function.
9452 * buildsym.h (struct subfile): Include producer.
9453 (record_producer): New prototype.
9454 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9455 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9456 armcc_cfa_offsets_reversed.
9457 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9458 (dwarf2_frame_find_quirks): New function.
9459 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9460 (decode_frame_entry_1): Record the CIE version. Record the
9461 augmentation. Skip armcc augmentations.
9462 * dwarf2read.c (read_file_scope): Save the producer.
9463 * symtab.h (struct symtab): Rename unused version member to
9464 producer.
9465
9466 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9467
9468 * configure.ac (build_warnings): Use -Wall and
9469 -Wdeclaration-after-statement.
9470 * configure: Regenerated.
9471
9472 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9473
9474 Simplify access to variours properties of child
9475 variable objects in C.
9476 * varobj.c (value_struct_element_index): New function.
9477 (c_describe_child): New function.
9478 (c_name_of_child, c_value_of_child)
9479 (c_type_of_child): Rewrite to use c_describe_child.
9480
9481 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9482
9483 gdb/
9484 * varobj.c: Include "vec.h".
9485 (varobj_p): New typedef, declare vector of those.
9486 (struct varobj): Use vector for the 'children' member.
9487 (child_exists): Remove.
9488 (save_child_in_parent): Remove.
9489 (remove_child_from_parent): Remove.
9490 (struct varobj_child): Remove.
9491 (struct vstack): Remove.
9492 (vpush, vpop): Remove.
9493 (varobj_list_children): Adjust to work work vector.
9494 (varobj_update): Likewise. Use vectors for
9495 working stack and result.
9496 (delete_variable_1): Likewise.
9497 * Makefile.in (varobj.o): Update dependencies.
9498
9499 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9500
9501 Port from Apple's version.
9502 gdb/
9503 * varobj.c (type_changeable): Rename to...
9504 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9505 (is_root_p): New function. Use it everywhere.
9506
9507 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9508
9509 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9510 then plain 'fixup'.
9511
9512 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9513
9514 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9515
9516 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9517
9518 * hpread.c (hpread_type_lookup): Fix compilation failure.
9519
9520 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9521
9522 * NEWS: New port to S+core.
9523 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9524 Add myself.
9525
9526 * Makefile.in: Add dependencies for S+core files.
9527 * configure.tgt (score*, score-*-*): Add S+core target.
9528 * config/score/embed.mt: New file.
9529 * score-tdep.c: New file.
9530 * score-tdep.h: New file.
9531
9532 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9533
9534 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9535 the appropriate type rather than a bogus void type.
9536
9537 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9538
9539 * ada-lang.h (ada_find_printable_frame): Remove.
9540 (ada_exception_catchpoint_p, ada_decode_exception_location)
9541 (ada_decode_assert_location): Add declaration.
9542 * ada-lang.c: Add include of annotate.h and valprint.h.
9543 (exception_catchpoint_kind): New enum.
9544 (function_name_from_pc, is_known_support_routine)
9545 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9546 (ada_exception_name_addr_1, ada_exception_name_addr)
9547 (print_it_exception, print_one_exception, print_mention_exception)
9548 (print_it_catch_exception, print_one_catch_exception)
9549 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9550 (print_it_catch_exception_unhandled)
9551 (print_one_catch_exception_unhandled)
9552 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9553 (print_one_catch_assert, print_mention_catch_assert)
9554 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9555 (ada_get_next_arg, catch_ada_exception_command_split)
9556 (ada_exception_sym_name, ada_exception_sym_name)
9557 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9558 (ada_parse_catchpoint_condition, ada_exception_sal)
9559 (ada_decode_exception_location)
9560 (ada_decode_assert_location): New function.
9561 (catch_exception_unhandled_breakpoint_ops): New global variable.
9562 (catch_assert_breakpoint_ops): New global variable.
9563 * breakpoint.c: Add include of ada-lang.h.
9564 (print_one_breakpoint): Do not print the condition for Ada
9565 exception catchpoints.
9566 (create_ada_exception_breakpoint): New function.
9567 (catch_ada_exception_command, catch_assert_command): New function.
9568 (catch_command_1): Add support for the new "catch exception" and
9569 "catch assert" commands.
9570 (_initialize_breakpoint): Add help description for the new catch
9571 commands.
9572 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9573 valprint.h.
9574 (breakpoint.o): Add dependency on ada-lang.h.
9575
9576 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9577
9578 * coffread.c (cs_to_section): If bfd_section is found, always
9579 return its section index.
9580 (coff_symtab_read): Determine the minimal_symbol_type using the
9581 bfd_section flags.
9582
9583 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9584 Daniel Jacobowitz <dan@codesourcery.com>
9585
9586 * Makefile.in (top.o): Update.
9587 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9588 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9589 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9590 New.
9591 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9592
9593 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9594
9595 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9596 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9597
9598 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9599
9600 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9601 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9602 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9603 greater than or equal to zero.
9604 * m2-typeprint.c (m2_array): Likewise.
9605 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9606 * gdbtypes.c (copy_type_recursive): Correct == typo.
9607 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9608 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9609 greater than zero.
9610 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9611 (default_macro_scope): Remove unused variable.
9612 * prologue-value.h (pv_area_find_reg): Don't name an argument
9613 "register".
9614 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9615 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9616 type.
9617 (cleanup_sigint_signal_handler): Remove casts.
9618 * valprint.c (val_print): Use a volatile local for the modified
9619 argument.
9620 * varobj.c (languages): Remove extra array dimension.
9621 (varobj_create): Correct access to languages array.
9622 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9623 missing braces.
9624 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9625 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9626 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9627 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9628 (mi_cmd_data_write_memory): Likewise.
9629 * signals/signals.c (target_signal_to_string): Cast to int before
9630 comparing.
9631 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9632 Update all callers.
9633
9634 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9635
9636 * NEWS: Mention pointer to member improvements.
9637 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9638 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9639 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9640 * c-typeprint.c (c_print_type): Update for new type codes.
9641 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9642 (c_type_print_base): Likewise.
9643 (c_type_print_args): Rewrite.
9644 * c-valprint.c (c_val_print): Update for new type codes. Remove
9645 support for references to members. Treat methods like functions.
9646 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9647 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9648 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9649 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9650 (struct cp_abi_ops): Add corresponding members.
9651 * cp-valprint.c (cp_print_class_method): Delete.
9652 (cp_find_class_member): New function.
9653 (cp_print_class_member): Use it. Simplify support for bogus
9654 member pointers.
9655 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9656 lookup_methodptr_type.
9657 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9658 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9659 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9660 pointer support.
9661 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9662 references returned by user defined operators.
9663 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9664 (f_type_print_varspec_suffix): Remove support for member pointers.
9665 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9666 and adjusted.
9667 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9668 (lookup_methodptr_type): New.
9669 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9670 (recursive_dump_type): Update for new types.
9671 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9672 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9673 (lookup_memberptr_type, lookup_methodptr_type)
9674 (smash_to_memberptr_type): New prototypes.
9675 (smash_to_method_type): Formatting fix.
9676 (lookup_member_type, smash_to_member_type): Delete prototypes.
9677 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9678 Do not rely on debug information for the vptr or the method's
9679 enclosing type. Handle function descriptors for IA64.
9680 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9681 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9682 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9683 (gnuv3_method_ptr_to_value): New.
9684 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9685 * hpread.c (hpread_type_lookup): Update for new types.
9686 * infcall.c (value_arg_coerce): Likewise.
9687 * m2-typeprint.c (m2_print_type): Remove explicit support
9688 for member pointers.
9689 * m2-valprint.c (m2_val_print): Likewise.
9690 * p-typeprint.c (pascal_type_print_varspec_prefix)
9691 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9692 * p-valprint.c (pascal_val_print): Likewise.
9693 (pascal_object_print_class_method, pascal_object_print_class_member):
9694 Delete.
9695 * p-lang.h (pascal_object_print_class_method)
9696 (pascal_object_print_class_member): Delete prototypes.
9697 * stabsread.c (read_type): Update for new types.
9698 * typeprint.c (print_type_scalar): Likewise.
9699 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9700 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9701 argument. Construct a pointer to member if the address of a
9702 function or data member is requested.
9703 (value_cast_pointers): Don't modify the input value.
9704 (value_cast): Adjust pointer to member handling for new types.
9705 Allow null pointer to member constants. Don't modify the input
9706 value.
9707 (value_ind): Remove pointer to member check. Handle function
9708 descriptors for function pointers.
9709 (value_struct_elt, value_find_oload_method_list, check_field):
9710 Remove pointer to member checks.
9711 * value.c (unpack_long): Allow pointers to data members.
9712 (value_from_longest): Allow member pointers.
9713 * value.h (value_aggregate_elt): Add want_address.
9714 * varobj.c (c_variable_editable): Remove check for members.
9715 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9716 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9717 in virtual tables.
9718 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9719 * c-lang.h (cp_print_class_method): Delete prototype.
9720 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9721 * mips-tdep.c (mips_gdbarch_init): Likewise.
9722 * gdbarch.c, gdbarch.h: Regenerated.
9723
9724 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9725
9726 * rs6000-tdep.c (rs6000_use_struct_convention)
9727 (rs6000_extract_return_value, rs6000_store_return_value)
9728 (rs6000_extract_struct_value_address): Remove.
9729 (rs6000_return_value): New function.
9730 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9731 store_return_value, deprecated_extract_struct_value_address and
9732 deprecated_use_struct_convention. Use rs6000_return_value
9733 instead.
9734
9735 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
9736
9737 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9738 -display-disable, -display-enable, -display-insert and
9739 -display-list.
9740
9741 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9742
9743 * breakpoint.c (remove_breakpoint): Remove dead code.
9744
9745 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
9746
9747 * varobj.c: Include block.h.
9748 (c_value_of_root): Check scope within nested statements.
9749
9750 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9751
9752 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
9753 regcache_cooked_write_signed instead of
9754 deprecated_write_register_bytes.
9755
9756 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9757
9758 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
9759
9760 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9761
9762 Followed the Start of New Year Procedure:
9763 * ChangeLog-2006: New file, containing all the entries for 2006.
9764 * ChangeLog: Removed all 2006 entries, and changed the reference
9765 to the previous ChangeLog to point to ChangeLog 2006.
9766 * top.c (print_gdb_version): Update copyright year.
9767
9768 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9769
9770 * Makefile.in (remote-sds.o): Remove.
9771 * remote-sds.c: Delete.
9772
9773 For older changes see ChangeLog-2006.
9774 \f
9775 Local Variables:
9776 mode: change-log
9777 left-margin: 8
9778 fill-column: 74
9779 version-control: never
9780 coding: utf-8
9781 End:
This page took 0.232559 seconds and 5 git commands to generate.