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