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