*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
4 and "regcache.h".
5 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
6 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7 (alpha_linux_regset_from_core_section): New function.
8 (alpha_linux_init_abi): Install it.
9 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
10 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
11 <sys/procfs.h>, and "gregset.h".
12 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
13 Move from config/alpha/nm-linux.h.
14 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
15 from alpha-nat.c.
16 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
17 * alpha-nat.c: Remove #ifdef __linux__ section.
18 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
19 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
20 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
21 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
22 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
23 (NATDEPFILES): Remove alpha-nat.o.
24 * config/alpha/nm-linux.h: Delete file.
25 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
26 * Makefile.in (alpha-linux-nat.o): Update dependencies.
27 (alpha-linux-tdep.o): Likewise.
28
29 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
30
31 * mips-linux-nat.c: No longer include "gdbcore.h".
32 (mips_linux_register_addr): Move from mips-linux-tdep.c.
33 (mips64_linux_register_addr): Likewise.
34 (mips_linux_register_u_offset): Call mips_linux_register_addr or
35 mips64_linux_register_addr instead of register_addr.
36 * mips-linux-tdep.c (mips_linux_register_addr,
37 mips64_linux_register_addr): Move to mips-linux-nat.c.
38 (register_addr): Remove.
39 (register_addr_data, init_register_addr_data): Remove.
40 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
41 (set_mips_linux_register_addr): Remove.
42 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
43 * Makefile.in (mips-linux-nat.o): Update dependencies.
44
45 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
46
47 * linux-nat.c (linux_register_u_offset): Remove.
48 (linux_target_install_ops): New function.
49 (linux_target): Use it.
50 (linux_trad_target): New function.
51 * linux-nat.h (linux_trad_target): Declare.
52
53 * alpha-linux-nat.c: Include "gdbcore.h".
54 (alpha_linux_register_u_offset): New function.
55 (_initialize_alpha_linux_nat): Use linux_trad_target.
56
57 * mips-linux-nat.c: Include "gdbcore.h".
58 (mips_linux_register_u_offset): New function.
59 (_initialize_mips_linux_nat): Use linux_trad_target.
60
61 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
62 * config/arm/nm-linux.h: Delete file.
63
64 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
65 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
66
67 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
68 * config/ia64/nm-linux.h: Delete file.
69
70 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
71 * config/m32r/nm-linux.h: Delete file.
72
73 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
74 * config/m68k/nm-linux.h: Delete file.
75
76 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
77 * config/pa/nm-linux.h: Delete file.
78
79 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
80 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
81 * config/powerpc/nm-linux.h: Delete file.
82
83 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
84 * config/s390/nm-linux.h: Delete file.
85
86 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
87 * config/sparc/linux64.mh (NAT_FILE): Likewise.
88 * config/sparc/nm-linux.h: Delete file.
89
90 * Makefile.in (alpha-linux-nat.o): Update dependencies.
91 (mips-linux-nat.o): Likewise.
92
93 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
94
95 * core-aout.c: Delete file.
96 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
97 (core-aout.o): Delete rule.
98 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
99
100 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
101
102 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
103 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
104 KERNEL_U_ADDR): Remove.
105
106 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
107 (cannot_fetch_register, cannot_store_register): Remove.
108 (fetch_register): Inline cannot_fetch_register and register_addr.
109 (store_register): Inline cannot_store_register and register_addr.
110 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
111 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
112 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
113 Remove.
114
115 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
116 (fetch_register): Inline register_addr.
117 (store_register): Inline register_addr.
118 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
119 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
120 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
121
122 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
123 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
124 REGISTER_U_ADDR): Remove.
125
126 * hppa-linux-nat.c (register_addr): Rename to ...
127 (hppa_linux_register_addr): ... this. Make static.
128 (fetch_register, store_register): Adapt callers.
129 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
130
131 * ppc-linux-nat.c (kernel_u_size): Remove.
132 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
133
134 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
135 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
136 (NAT_FILE): Remove.
137 * config/vax/nm-vax.h: Delete file.
138
139 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
140
141 * MAINTAINERS (Write After Approval): Add myself.
142
143 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
144
145 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
146 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
147 (m68k_linux_sigcontext_reg_offset): Fix typo.
148 (target_is_uclinux): New.
149 (m68k_linux_inferior_created): New.
150 (m68k_linux_get_sigtramp_info): Check for uClinux or
151 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
152 uClinux.
153 (_initialize_m68k_linux_tdep): Register
154 m68k_linux_inferior_created.
155
156 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
157
158 * win32-nat.c (win32_detach): Remove delete_command call.
159 Resume inferior with win32_resume instead of win32_continue.
160
161 2007-04-19 Jerome Guitton <guitton@adacore.com>
162
163 * ser-mingw.c (fd_is_file): New function.
164 (file_select_thread): New function.
165 (ser_console_wait_handle): Add special handling for files.
166
167 2007-04-18 Denis Pilat <denis.pilat@st.com>
168
169 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
170 when missing from DW_TAG_subrange_type. Remove the handling of null
171 return from die_type.
172
173 2007-04-18 Maciej W. Rozycki <macro@mips.com>
174
175 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
176 change to rearrange some brackets.
177 (mips_n32n64_push_dummy_call): Likewise.
178 (mips_o32_push_dummy_call): Likewise.
179 (mips_o64_push_dummy_call): Likewise.
180
181 2007-04-18 Denis Pilat <denis.pilat@st.com>
182
183 * infcmd.c (post_create_inferior): Start with a call to
184 target_terminal_ours.
185
186 2007-04-17 Maciej W. Rozycki <macro@mips.com>
187
188 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
189 brackets.
190 (mips_n32n64_push_dummy_call): Likewise. Reformat some
191 expressions.
192 (mips_o32_push_dummy_call): Likewise.
193 (mips_o64_push_dummy_call): Likewise.
194
195 2007-04-17 Maciej W. Rozycki <macro@mips.com>
196
197 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
198 comment.
199
200 2007-04-17 Maciej W. Rozycki <macro@mips.com>
201
202 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
203 comment.
204 (mips_o32_push_dummy_call): Likewise.
205
206 2007-04-17 Andreas Schwab <schwab@suse.de>
207
208 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
209 sal to be bigger than the end of the function.
210
211 2007-04-17 Maciej W. Rozycki <macro@mips.com>
212 Nigel Stephens <nigel@mips.com>
213
214 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
215 argument alignment requirements when calculating stack space
216 required. When aligning an arg register to eight bytes
217 boundary, align stack_offset too. Write floating-point
218 arguments to the appropriate integer register if need go there.
219 (mips_o64_push_dummy_call): Likewise.
220
221 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
222
223 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
224 "sig" arguments, add "regcache" argument.
225 * gdbarch.c, gdbarch.h: Regenerate.
226
227 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
228 (handle_inferior_event): Call remove_single_step_breakpoints directly
229 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
230
231 * alpha-tdep.c (alpha_software_single_step): Update argument list.
232 Remove handling of !insert_breakpoints_p case.
233 * arm-tdep.c (arm_software_single_step): Likewise.
234 * cris-tdep.c (cris_software_single_step): Likewise.
235 * mips-tdep.c (mips_software_single_step): Likewise.
236 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
237 * sparc-tdep.c (sparc_software_single_step): Likewise.
238 * spu-tdep.c (spu_software_single_step): Likewise.
239
240 * alpha-tdep.h (alpha_software_single_step): Update prototype.
241 * mips-tdep.h (mips_software_single_step): Likewise.
242 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
243 * sparc-tdep.h (sparc_software_single_step): Likewise.
244
245 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
246
247 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
248 when removing single-step breakpoints.
249
250 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
251
252 * varobj.h (varobj_set_frozen): New
253 (varobj_get_frozen): New.
254 (varobj_update): New parameter explicit.
255 * varobj.c (struct varobj): New fields frozen
256 and not_fetched.
257 (varobj_set_frozen, varobj_get_frozen): New.
258 (install_new_value): Don't fetch values for
259 frozen variable object, or children thereof. Allow
260 a frozen variable object to have non-fetched value.
261 (varobj_update): Allow updating child variables.
262 Don't traverse frozen children.
263 (new_variable): Initialize the frozen field.
264 (c_value_of_variable): Return NULL for frozen
265 variable without any value yet.
266 * mi/mi-cmd-var.c (varobj_update_one): New parameter
267 'explicit'.
268 (mi_cmd_var_create): Output the 'frozen' field,
269 as soon as testsuite is adjusted to expect that field.
270 (mi_cmd_var_set_frozen): New.
271 (mi_cmd_var_update): Pass the 'explicit' parameter to
272 varobj_update_one.
273 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
274 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
275
276 2007-04-13 Paul Brook <paul@codesourcery.com>
277
278 * target-descriptions.c (tdesc_named_type): Add ieee_single and
279 ieee_double.
280 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
281
282 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
283
284 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
285 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
286 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
287 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
288 * Makefile.in: Remove references to deleted files.
289 * README: Do not mention deleted ROM monitor interfaces.
290 * defs.h (enum language): Delete language_scm.
291 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
292 (dump_subexp_body_standard): Likewise.
293 * parse.c (operator_length_standard): Likewise.
294 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
295 * remote-mips.c: Do not include remote-utils.h.
296 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
297 throughout.
298 * value.c: Do not include scm-lang.h.
299 (unpack_long): Delete scm_unpack call.
300 * config/h8300/h8300.mt, config/mips/embed.mt,
301 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
302 config/sh/embed.mt, config/sh/linux.mt: Remove references to
303 deleted files.
304 * NEWS: Mention removed files.
305
306 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
307
308 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
309 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
310
311 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
312
313 * NEWS: Mention removal of HP aCC support.
314
315 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
316
317 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
318 first entry for static executables.
319 (breakpoint_addr): Delete unused variable.
320 (elf_locate_base): Search for _r_debug in static executables.
321 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
322 also.
323
324 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
325
326 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
327 (bpstat_what, print_one_breakpoint, allocate_bp_location)
328 (mention): Remove bp_through_sigtramp support.
329 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
330
331 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
332
333 * breakpoint.c (bpstat_what): Give step-resume higher priority than
334 shlib events.
335
336 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
337
338 * infrun.c: Doc fixes.
339 (handle_inferior_event): Clarify debug message.
340 (insert_step_resume_breakpoint_at_sal): Print a debug message.
341
342 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
343
344 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
345
346 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
347
348 * config/m68k/tm-monitor.h: Delete file.
349 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
350 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
351 call moved to ...
352 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
353 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
354
355 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
356
357 * gdbarch.sh (software_single_step): Change the return type
358 from void to int and reformatted some comments to <= 80
359 columns.
360 * gdbarch.c, gdbarch.h: Regenerated.
361 * alpha-tdep.c (alpha_software_single_step): Likewise.
362 * alpha-tdep.h (alpha_software_single_step): Likewise.
363 * arm-tdep.c (arm_software_single_step): Likewise.
364 * cris-tdep.c (cris_software_single_step): Likewise.
365 * mips-tdep.c (mips_software_single_step): Likewise.
366 * mips-tdep.h (mips_software_single_step): Likewise.
367 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
368 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
369 * sparc-tdep.c (sparc_software_single_step): Likewise.
370 * sparc-tdep.h (sparc_software_single_step): Likewise.
371 * spu-tdep.c (spu_software_single_step): Likewise.
372 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
373 and act accordingly.
374
375 2007-04-11 Steve Ellcey <sje@cup.hp.com>
376
377 * configure.ac (build_warnings): Add -Wno-char-subscripts.
378 * configure: Regenerate.
379 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
380
381 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
382
383 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
384
385 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
386
387 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
388 macros.
389 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
390 distinct on the TYPE_STUB_SUPPORTED debug targets.
391 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
392
393 2007-04-11 Joel Brobecker <brobecker@adacore.com>
394
395 * sparc-tdep.c (X_RS2): New macro.
396 (sparc_skip_stack_check): New function.
397 (sparc_analyze_prologue): Adjust PC past stack probing
398 sequence if necessary.
399
400 2007-04-10 Andreas Schwab <schwab@suse.de>
401
402 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
403 register.
404
405 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
406
407 * breakpoint.c (gdb_breakpoint_query): Really return an
408 enum gdb_rc.
409 (gdb_breakpoint): Likewise.
410 * thread.c (gdb_list_thread_ids): Likewise.
411 (gdb_thread_select): Likewise.
412 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
413 (mi_cmd_thread_list_ids): Remove bogus initialization.
414
415 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
416
417 * Makefile.in (SFILES): Remove hpacc-abi.c.
418 (COMMON_OBS): Remove hpacc-abi.o.
419 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
420 (hpacc-abi.o, hpread.o): Delete rules.
421 * somread.c: Delete extern declarations from hpread.c.
422 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
423 (som_symfile_finish): Do not call hpread_symfile_finish.
424 (som_symfile_init): Do not call hpread_symfile_init.
425 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
426 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
427 * hpacc-abi.c, hpread.c: Deleted.
428
429 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
430
431 * solib-svr4.c (enable_break): Simplify return value.
432 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
433
434 2007-04-10 Andreas Schwab <schwab@suse.de>
435
436 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
437 l_ld_size, l_next_size, l_prev_size, l_name_size.
438
439 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
440 to extract addresses from link map.
441 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
442 (LM_NEXT): Likewise.
443 (LM_NAME): Likewise.
444 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
445 (elf_locate_base): Likewise.
446 (open_symbol_file_object): Likewise.
447 (svr4_fetch_objfile_link_map): Likewise.
448 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
449 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
450 l_ld_size.
451 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
452 (svr4_lp64_fetch_link_map_offsets): Likewise.
453
454 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
455 removed members. Set l_ld_offset to -1 if not present.
456
457 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
458
459 Pass stderr of program run with "target remote |"
460 via gdb_stderr.
461 * serial.c (serial_open): Set error_fd to -1.
462 * serial.h (struct serial): New field error_fd.
463 (struct serial_opts): New field avail.
464 * ser-pipe.c (pipe_open): Create another pair
465 of sockets. Pass stderr to gdb.
466 * ser-mingw.c (pipe_windows_open): Pass
467 PEX_STDERR_TO_PIPE to pex_run. Initialize
468 sd->error_fd.
469 (pipe_avail): New.
470 (_initialize_ser_windows): Hook pipe_avail.
471 * ser-base.c (generic_readchar): Check if there's
472 anything in stderr channel and route that to gdb_stderr.
473
474 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
475
476 * dbxread.c (read_ofile_symtab): Move current_objfile
477 clearing to after end_stabs.
478
479 2007-04-01 Andreas Schwab <schwab@suse.de>
480
481 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
482 gdbarch instead of current_gdbarch.
483
484 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
485
486 * varobj.c (varobj_create): Keep varobj value
487 NULL when evaluating the type.
488
489 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
490
491 * NEWS: Mention new Windows CE support.
492
493 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
494
495 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
496 the obsoletion stanza.
497 * NEWS: Mention deleted targets.
498
499 * config/sh/tm-wince.h: Remove.
500 * config/sh/wince.mt: Remove.
501 * config/mips/tm-wince.h: Remove.
502 * config/mips/wince.mt: Remove.
503
504 * wince.c: Remove.
505 * wince-stub.c: Remove.
506 * wince-stub.h: Remove.
507 * Makefile.in (wince.o): Remove rule.
508 (wince-stub.o): Likewise.
509
510 * mips-tdep.c (mips_next_pc): Make static.
511 * mips-tdep.h (mips_next_pc): Remove declaration.
512 * arm-tdep.c (arm_pc_is_thumb): Make static.
513 (thumb_get_next_pc): Likewise.
514 (arm_get_next_pc): Likewise.
515 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
516 (arm_pc_is_thumb): Likewise.
517 (thumb_get_next_pc): Likewise.
518 (arm_get_next_pc): Likewise.
519
520 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
521
522 * MAINTAINERS: Remove d10v entry.
523 * Makefile.in (SFILES): Remove dwarfread.c.
524 (COMMON_OBS): Remove dwarfread.o.
525 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
526 (remote-est.o, rom68k-rom.o): Delete.
527 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
528 target est, target rom68k, and DWARF 1.
529 * configure.tgt: Mark d10v as removed.
530 * dwarf2read.c: Doc update.
531 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
532 and lnsize.
533 (elf_locate_sections): Do not set them.
534 (elf_symfile_read): Do not call dwarf_build_psymtabs.
535 * symfile.h (dwarf_build_psymtabs): Delete prototype.
536 * config/m68k/monitor.mt (TDEPFILES): Prune.
537 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
538 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
539
540 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
541
542 * doublest.c (convert_floatformat_to_doublest): Use
543 floatformat_classify.
544 (floatformat_is_nan): Rename to...
545 (floatformat_classify): ...this. Return more information.
546 * doublest.h (enum float_kind): New.
547 (floatformat_is_nan): Replace prototype...
548 (floatformat_classify): ...with this one.
549 * valprint.c (print_floating): Use floatformat_classify. Handle
550 infinity.
551
552 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
553
554 * README: Mention ISO C library requirement.
555
556 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
557
558 * Makefile.in (SFILES): Remove nlmread.c.
559 (COMMON_OBS): Remove nlmread.o.
560 (nlmread.o): Delete rule.
561 * README: Delete reference to remote-st.c.
562 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
563 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
564 GDB_OSABI_LYNXOS.
565 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
566 (_initialize_i386_tdep): Do not reference them.
567 * nlmread.c: Delete file.
568 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
569 * target.c: Doc update.
570 * thread.c: Delete commented include.
571 * config/alpha/tm-alpha.h: Doc update.
572
573 2007-03-30 Chris Dearman <chris@mips.com>
574
575 * utils.c (string_to_core_addr): Comment typo.
576
577 2007-03-30 Chris Dearman <chris@mips.com>
578
579 * mips-tdep.c: Comment typo.
580
581 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
582
583 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
584 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
585 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
586 * config/powerpc/nm-ppc64-linux.h: Remove file.
587 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
588 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
589 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
590 * infptrace.c (call_ptrace): Likewise.
591 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
592 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
593 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
594 (store_register): Likewise.
595
596 2007-03-29 Joel Brobecker <brobecker@adacore.com>
597
598 * Makefile.in (varobj.o): Add missing dependency.
599
600 2007-03-29 Michael Snyder <msnyder@access-company.com>
601
602 * MAINTAINERS: Update my email address.
603
604 2007-03-29 Joel Brobecker <brobecker@adacore.com>
605
606 Add support for exception handling with multiple versions of
607 the Ada runtime:
608 * ada-lang.c: Update general comments on how Ada exception catchpoints
609 are implemented.
610 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
611 (__gnat_raise_nodefer_with_msg): Delete.
612 (ada_unhandled_exception_name_addr_ftype): New type.
613 (exception_support_info): New type.
614 (ada_unhandled_exception_name_addr): Add forward declaration.
615 (ada_unhandled_exception_name_addr_from_raise): Likewise.
616 (default_exception_support_info): New constant.
617 (exception_support_info_fallback): Likewise.
618 (exception_info): New global variable.
619 (ada_exception_support_info_sniffer): New function.
620 (ada_executable_changed_observer): Likewise.
621 (ada_unhandled_exception_name_addr_from_raise): Renamed from
622 ada_unhandled_exception_name_addr.
623 (ada_unhandled_exception_name_addr): Reimplement to match the
624 latest Ada runtime implementation.
625 (error_breakpoint_runtime_sym_not_found): Delete.
626 (ada_exception_sym_name): Get the exception sym name from
627 exception_info rather than hardcoding it.
628 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
629 Update error handling.
630 * Makefile.in (ada-lang.o): Add dependency on observer.h.
631
632 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
633
634 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
635 (remote-st.o, uw-thread.o): Delete.
636 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
637 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
638 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
639 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
640 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
641 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
642 rs6000-*-lynxos* to an obsoletion stanza.
643 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
644 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
645 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
646 i[34567]86-*-netware*.
647 * NEWS: Mention deleted targets.
648
649 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
650 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
651 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
652 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
653 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
654 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
655 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
656 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
657 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
658 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
659 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
660 config/rs6000/tm-rs6000ly.h: Delete files.
661
662 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
663
664 * defs.h (deprecated_registers_changed_hook): Delete declaration.
665 * interps.c (clear_interpreter_hooks): Do not clear
666 deprecated_registers_changed_hook.
667 * regcache.c (registers_changed): Do not call it.
668 * top.c (deprecated_registers_changed_hook): Do not define it.
669 * mi/mi-interp.c (mi_command_loop): Do not clear it.
670 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
671 (tui_remove_hooks): Do not remove it.
672 (tui_selected_frame_level_changed_hook): Check for negative level.
673 Use get_selected_frame.
674 (tui_registers_changed_hook): Deleted.
675
676 2007-03-29 Joel Brobecker <brobecker@adacore.com>
677
678 * stabsread.c (add_undefined_type): Add extra parameter.
679 Now handles nameless types separately.
680 (struct nat): New type.
681 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
682 New static variables.
683 (read_type): Update calls to add_undefined_type.
684 (add_undefined_type_noname): New function.
685 (add_undefined_type_1): Renames from add_undefined_type.
686 (cleanup_undefined_types_noname): New function.
687 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
688 (cleanup_undefined_types): New handles nameless types separately.
689 (_initialize_stabsread): Initialize our new static constants.
690
691 2007-03-29 Denis Pilat <denis.pilat@st.com>
692
693 * configure.ac: Test for signal.h.
694 * configure, config.in: Regenerate.
695
696 2007-03-29 Denis Pilat <denis.pilat@st.com>
697
698 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
699 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
700
701 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
702
703 * arm-wince-tdep.c: New.
704 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
705 (MT_CFLAGS): Delete.
706 (TM_CLIBS): Delete.
707 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
708 solib-legacy.o, solib-svr4.o, and remove wince.o.
709 * configure.tgt (arm*-*-mingw32ce*): Add.
710 * signals/signals.c [HAVE_SIGNAL_H]: Check.
711 (do_target_signal_to_host): Silence 'not used' warning.
712 * config/arm/tm-wince.h: Remove.
713
714 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
715
716 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
717 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
718
719 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
720 * config/ia64/tm-linux.h: Remove file.
721 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
722 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
723 legacy_pc_in_sigtramp.
724 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
725 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
726 Remove func_name argument.
727 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
728
729 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
730 * target.c (update_current_target): Add to_have_steppable_watchpoint.
731 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
732 (HAVE_STEPPABLE_WATCHPOINT): Define.
733
734 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
735 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
736 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
737 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
738 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
739 target_insert_watchpoint, target_remove_watchpoint): Remove.
740 (FETCH_INFERIOR_REGISTERS): Define.
741 * ia64-linux-nat.c (ia64_register_addr): Make static.
742 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
743 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
744 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
745 (ia64_linux_stopped_data_address): Make static. Add target_ops.
746 (ia64_linux_stopped_by_watchpoint): Make static.
747 (ia64_linux_can_use_hw_breakpoint): New function.
748 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
749 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
750 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
751
752 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
753
754 * linespec.c: Include language.h.
755 (find_methods): Add language parameter. Call
756 lookup_symbol_in_language. Pass language down.
757 (add_matching_methods): Likewise. Call
758 lookup_symbol_in_language.
759 (add_constructors): Likewise.
760 (find_method): Pass sym_class to collect_methods.
761 (collect_methods): Add sym_class parameter. Pass language
762 down.
763 * symtab.c (lookup_symbol): Rename to ...
764 (lookup_symbol_in_language): ... this. Add language
765 parameter. Use passed language instead of current_language.
766 (lookup_symbol): New as wrapper around
767 lookup_symbol_in_language.
768 (lookup_symbol_aux): Add language parameter. Use passed
769 language instead of current_language.
770 (search_symbols): Indent.
771 * symtab.h (enum language): Forward declare.
772 (lookup_symbol_in_language): Declare.
773 (lookup_symbol): Update description.
774 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
775 * ada-lang.c (restore_language): Remove.
776 (lookup_symbol_in_language): Remove.
777
778 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
779
780 * breakpoint.c (bpstat_num): Add int *num parameter.
781 * breakpoint.h (bpstat_num): Likewise.
782 * infcmd.c (continue_command): Adjust to new bpstat_num
783 interface.
784 (program_info): Likewise.
785
786 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
787
788 * config/sh/tm-sh.h: Remove file.
789 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
790 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
791 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
792 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
793
794 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
795
796 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
797 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
798 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
799 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
800 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
801 sequence if target_shortname is "remote".
802
803 2007-03-27 Anton Blanchard <anton@samba.org>
804
805 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
806 instead of wordsize when looking for the LR in a stack frame.
807
808 2007-03-27 Andreas Schwab <schwab@suse.de>
809 Daniel Jacobowitz <dan@codesourcery.com>
810
811 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
812 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
813 argument. Update all callers.
814 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
815 (dwarf2_frame_set_eh_frame_regnum): Rename to...
816 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
817 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
818 (dwarf2_frame_set_adjust_regnum): ...this.
819 (dwarf2_frame_eh_frame_regnum): Delete prototype.
820 * rs6000-tdep.c: Include "dwarf2-frame.h".
821 (rs6000_adjust_frame_regnum): Define.
822 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
823 Register rs6000_adjust_frame_regnum.
824
825 * Makefile.in (rs6000-tdep.o): Update dependencies.
826
827 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
828
829 * Makefile.in: Add support for a "pdf" target.
830
831 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
832
833 * amd64-tdep.c (amd64_init_frame_cache): New function.
834 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
835
836 2007-03-26 Nigel Stephens <nigel@mips.com>
837 Maciej W. Rozycki <macro@mips.com>
838
839 * ui-out.c (ui_out_field_core_addr): Truncate address to
840 TARGET_ADDR_BIT size before printing.
841
842 2007-03-22 Nigel Stephens <nigel@mips.com>
843 Maciej W. Rozycki <macro@mips.com>
844
845 * remote-mips.c (mips_xfer_memory): Update prototype.
846
847 2007-03-22 Joel Brobecker <brobecker@adacore.com>
848
849 * symfile.h: #include "symtab.h"
850
851 2007-03-22 Denis Pilat <denis.pilat@st.com>
852
853 * utils.c (pagination_on_command, pagination_off_command):
854 Remove useless prototypes.
855
856 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
857
858 Fix PR pascal/2232.
859 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
860 instead of TYPE_NAME for object base class name.
861
862
863 2007-03-19 Kevin Buettner <kevinb@redhat.com>
864
865 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
866 Specify frame type in calls to frame_func_unwind().
867
868 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
869
870 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
871 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
872 (refine_prologue_limit): Delete.
873 (skip_prologue): Don't call it. Use extract_unsigned_integer.
874 Assume lim_pc is set. Correct check for incomplete prologues.
875 Do not skip clobbers of the frame pointer.
876 * symtab.c (skip_prologue_using_sal): Fail if there is only one
877 sal.
878
879 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
880
881 * frame.c (frame_pop): Check to see whether there's a frame to
882 which we can pop first.
883
884 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
885
886 * MAINTAINERS (Write After Approval): Add myself.
887
888 2007-03-09 Markus Deuling <deuling@de.ibm.com>
889
890 * infrun.c (breakpoints_failed): Remove unnecessary variable.
891 (handle_inferior_event): Remove unnecessary braces.
892 * breakpoint.c (bpstat_what): Remove wrong comment.
893
894 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
895
896 * spu-tdep.c (spu_in_function_epilogue_p): New function.
897 (spu_gdbarch_init): Install it.
898
899 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
900
901 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
902 object types, not 0.
903
904 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
905
906 * spu-tdep.c (spu_frame_align): New function.
907 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
908
909 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
910
911 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
912 (spu_software_single_step): Likewise.
913 (spu_read_pc, spu_write_pc): New functions.
914 (spu_gdbarch_init): Install them.
915
916 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
917
918 * cli/cli-dump.c (struct callback_data): load_offset needs to
919 have signed long type.
920
921 2007-03-07 Joel Brobecker <brobecker@adacore.com>
922
923 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
924 Revert the previous change that had some unexpected side-effects
925 on mips32.
926 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
927 function to get the address of the calling instruction.
928
929 2007-03-07 Denis Pilat <denis.pilat@st.com>
930
931 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
932 get_selected_frame by deprecated_safe_get_selected_frame.
933
934 2007-03-02 Mark Kettenis <kettenis@gnu.org>
935
936 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
937 "gdb_string.h". Don't include "nbsd-tdep.h".
938 (SIZEOF_STRUCT_REG): Remove.
939 (SHNBSD_SIZEOF_GREGS): New.
940 (shnbsd_supply_gregset, shnbsd_collect_gregset)
941 (shnbsd_regset_from_core_section): New functions.
942 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
943 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
944 shnbsd_supply_gregset, shnbsd_collect_gregset.
945 (shnbsd_gregset): New variable.
946 (shnbsd_init_abi): Set regset_from_core_section.
947 (GDB_OSABI_NETBSD_CORE): New define.
948 (shnbsd_core_osabi_sniffer): New function.
949 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
950 * Makefile.in (shnbsd-tdep.o): Update dependencies.
951 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
952 nbsd-tdep.o.
953 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
954
955 2007-02-28 Joel Brobecker <brobecker@adacore.com>
956
957 * gdbtypes.c (replace_type): Fix typo that caused us to not update
958 length of the types referenced by the new type CV ring.
959
960 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
961
962 * frame.c (frame_pop, frame_observer_target_changed): Call
963 reinit_frame_cache.
964 (flush_cached_frames): Rename to reinit_frame_cache and delete
965 old implementation.
966 * frame.h (flush_cached_frames): Delete prototype and update comment.
967
968 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
969 reinit_frame_cache instead of flush_cached_frames. Do not call
970 select_frame after reinit_frame_cache.
971 * corelow.c (core_open): Likewise.
972 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
973 * infrun.c (prepare_to_proceed, context_switch)
974 (handle_inferior_event): Likewise.
975 * linux-fork.c (fork_load_infrun_state): Likewise.
976 * ocd.c (ocd_start_remote): Likewise.
977 * remote-e7000.c (e7000_start_remote): Likewise.
978 * remote-mips.c (device): Likewise.
979 * thread.c (switch_to_thread): Likewise.
980 * tracepoint.c (finish_tfind_command): Likewise.
981 * gdbarch.c: Regenerated.
982
983 2007-02-28 Jerome Guitton <guitton@adacore.com>
984 Joel Brobecker <brobecker@adacore.com>
985
986 * gdbtypes.c (check_typedef): Do not replace stub type if
987 the resolved type is not defined in the same objfile.
988
989 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
990
991 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
992
993 2007-02-28 Joel Brobecker <brobecker@adacore.com>
994
995 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
996 symbol for Ada units when the symbol is defined using 't' rather
997 than 'Tt' as symbol descriptor.
998
999 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1000
1001 * config/mips/tm-nbsd.h: Delete file.
1002 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1003 * config/sh/tm-nbsd.h: Delete file.
1004 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
1005
1006 2007-02-28 Joel Brobecker <brobecker@adacore.com>
1007
1008 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
1009 unused WRONG_PARAM value since it was recently deleted.
1010
1011 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
1012
1013 * varobj.c (varobj_update): Free temporary vectors.
1014
1015 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1016
1017 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
1018 * config/powerpc/tm-linux.h: Delete file.
1019 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
1020 (PROCESS_LINENUMBER_HOOK): Do not undefine.
1021 (TEXT_SEGMENT_BASE): Do not redefine.
1022 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
1023 from config/rs6000/tm-rs6000.h.
1024 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1025 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
1026 (TEXT_SEGMENT_BASE): Remove.
1027 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
1028 (rs6000_in_solib_return_trampoline): Remove.
1029 (SKIP_TRAMPOLINE_CODE): Remove.
1030 (rs6000_skip_trampoline_code): Remove.
1031 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
1032 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1033 (FP0_REGNUM): Remove.
1034 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
1035 (rs6000_set_host_arch_hook): Remove.
1036 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
1037 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
1038 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
1039 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
1040 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
1041 * rs6000-nat.c: Include "rs6000-tdep.h".
1042 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
1043 (set_host_arch): Rename to ...
1044 (rs6000_create_inferior): ... this. Make public.
1045 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
1046 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
1047 (rs6000_create_inferior): Remove.
1048 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
1049 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
1050 set_gdbarch_in_solib_return_trampoline, and
1051 set_gdbarch_skip_trampoline_code.
1052 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
1053 from config/rs6000/tm-rs6000.h.
1054
1055 2007-02-27 Joel Brobecker <brobecker@adacore.com>
1056
1057 * buildsym.c (record_producer): Do nothing if no producer is provided.
1058
1059 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
1060
1061 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
1062 to check changelist is non-NULL. Call error if the frontend tries
1063 to update a non-root variable.
1064
1065 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
1066
1067 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1068
1069 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
1070 (dwarf2_frame_sniffer): Update.
1071 (dwarf2_signal_frame_this_id): New function.
1072 (dwarf2_signal_frame_unwind): Use it.
1073 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
1074 * frame.c (frame_func_unwind): Add this_type argument.
1075 (get_frame_func): Update.
1076 (frame_unwind_address_in_block): Add this_type argument and check it.
1077 Fix a typo.
1078 (get_frame_address_in_block): Update.
1079 * frame.h (enum frame_type): Move higher in the file.
1080 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
1081 argument.
1082
1083 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
1084 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
1085 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
1086 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
1087 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
1088 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
1089 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
1090 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
1091 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
1092 frame_func_unwind and frame_unwind_address_in_block to specify
1093 the frame type. Use frame_unwind_address_in_block instead of
1094 frame_pc_unwind in sniffers.
1095
1096 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1097
1098 * frame.c (deprecated_selected_frame): Rename to...
1099 (selected_frame): ...this. Make static.
1100 (get_selected_frame, select_frame): Update.
1101 * frame.h (deprected_select_frame): Delete.
1102 (deprecated_safe_get_selected_frame): Update comments.
1103
1104 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
1105 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
1106 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
1107 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
1108 tui/tui.c: Replace references to deprecated_selected_frame.
1109
1110 2007-02-27 Fred Fish <fnf@specifix.com>
1111
1112 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
1113 directly decrement the stack pointer, accumulate their operand into
1114 the stack offset, and mark the function as not being frameless.
1115
1116 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1117
1118 * arch-utils.c (selected_byte_order): New.
1119 * arch-utils.h (selected_byte_order): New prototype.
1120 * remote-sim.c (gdbsim_open): Use selected_byte_order.
1121
1122 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1123
1124 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
1125 (default_symfile_offsets): Check VMA here. Update section VMAs.
1126
1127 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1128
1129 * remote.c (init_remote_state): Add special handling for placeholder
1130 registers.
1131
1132 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1133
1134 * Makefile.in (XMLFILES): Include $(TDEP_XML).
1135 (filenames_h): New variable.
1136 (clean): Clean up xml-builtin.c and stamp-xml.
1137 (arm-linux-nat.o): Update.
1138 * config/arm/linux.mh (TDEP_XML): Define.
1139 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1140 (arm_linux_has_wmmx_registers): New.
1141 (GET_THREAD_ID): Fix typo.
1142 (IWMMXT_REGS_SIZE): Define.
1143 (fetch_wmmx_regs, store_wmmx_regs): New.
1144 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
1145 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
1146 (super_xfer_partial, arm_linux_xfer_partial): New.
1147 (_initialize_arm_linux_nat): Use them.
1148 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
1149 (xml_builtin_xfer_partial): New function.
1150 * xml-support.h (xml_builtin_xfer_partial): New prototype.
1151 * NEWS: Update mention of iWMMXt support.
1152
1153 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1154
1155 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
1156 if there are no FPA registers.
1157 (arm_dwarf_reg_to_regnum): New function.
1158 (arm_register_type, arm_register_name): Return minimal values for
1159 unsupported registers.
1160 (arm_register_sim_regno): Handle iWMMXt registers.
1161 (arm_gdbarch_init): Record missing FPA registers if indicated by
1162 a target description. Recognize iWMMXt registers. Only register
1163 "info float" for FPA. Use ARM_NUM_REGS. Register
1164 arm_dwarf_reg_to_regnum.
1165 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
1166 constants.
1167 (struct gdbarch_tdep): Add have_fpa_registers.
1168 * features/xscale-iwmmxt.xml: Update capitalization.
1169 * regformats/arm-with-iwmmxt.dat: Regenerated.
1170
1171 2007-02-24 Kevin Buettner <kevinb@redhat.com>
1172
1173 * NEWS (New targets): Add entry for the Toshiba Media Processor.
1174
1175 2007-02-23 Kevin Buettner <kevinb@redhat.com>
1176
1177 * MAINTAINERS (mep): New target.
1178
1179 2007-02-23 Kevin Buettner <kevinb@redhat.com>
1180
1181 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
1182 Richard Sandiford:
1183 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
1184 (mep-tdep.o): New rule.
1185 * configure.tgt (mep-*-*): New target.
1186 * mep-tdep.c: New file.
1187 * config/mep/mep.mt: New file.
1188
1189 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1190
1191 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
1192 BREAKPOINT_HIT and STOP_UNKNOWN.
1193
1194 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1195
1196 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
1197
1198 2007-02-20 Joel Brobecker <brobecker@adacore.com>
1199
1200 * gdb_expat.h (XMLCALL): Define if not already defined.
1201
1202 2007-02-20 Andreas Schwab <schwab@suse.de>
1203
1204 * Makefile.in (symfile.o): Update dependencies.
1205
1206 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1207
1208 * MAINTAINERS: Disable -Werror for cris simulator. Build
1209 sparc64-solaris2.10 instead of the broken sparc-elf.
1210 * solib-frv.c: Include "solib.h".
1211 * Makefile.in (solib-frv.o): Update.
1212 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
1213 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
1214 (xtensa_frame_this_id, xtensa_frame_prev_register)
1215 (xtensa_push_dummy_call): Use %p.
1216
1217 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1218
1219 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1220 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
1221 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1222 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
1223 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
1224 (sparc-linux-tdep.o): Update.
1225
1226 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
1227
1228 * xtensa-tdep.h (xtensa_reg_mask_t): New.
1229 (xtensa_mask_t): Change mask field to be a separate array.
1230 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
1231 (xtensa_pseudo_register_write, xtensa_unwind_pc)
1232 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1233 (xtensa_breakpoint_from_pc): Remove implicit type casting.
1234 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
1235 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
1236 (mask14, mask15): Rename to
1237 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
1238 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
1239 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
1240 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
1241 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
1242 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
1243 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
1244 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
1245 (xtensa_submask14, xtensa_submask15): New.
1246 (rmap): Follow strict aliasing rules doing static initialization.
1247
1248 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
1249
1250 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
1251 handling from here...
1252 (tdesc_register_type): ...to here.
1253 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
1254 * features/arm-core.xml: Use code_ptr and data_ptr.
1255
1256 2007-02-13 Denis Pilat <denis.pilat@st.com>
1257
1258 * varobj.h (enum varobj_update_error): New enum.
1259 * varobj.c (struct varobj_root): Add is_valid member.
1260 (varobj_get_type): Check for invalid varobj.
1261 (varobj_get_attributes): Likewise.
1262 (variable_editable):Likewise.
1263 (varobj_update): Likewise. Use varobj_update_error.
1264 (new_root_variable): Set root varobj as valid by default.
1265 (varobj_invalidate): New function.
1266 * symfile.c (clear_symtab_users): Use varobj_invalidate.
1267 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
1268 Use varobj_update_error.
1269
1270 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
1271
1272 Fix PR pascal/2223.
1273 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
1274 Pascal language marker.
1275 * dwarf2read.c (set_cu_language): Likewise.
1276
1277 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
1278
1279 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1280 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1281 instead of target_terminal_init since inferior_ptid isn't set yet.
1282
1283 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
1284
1285 * MAINTAINERS (Write After Approval): Add myself.
1286
1287 2007-02-09 Fred Fish <fnf@specifix.com>
1288
1289 Based on work by Apple Computer, Inc.
1290 * event-top.c (async_request_quit): Call quit() whenever either
1291 quit_flag is set or immediate_quit is set.
1292
1293 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1294
1295 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1296 type to a pointer to const struct block.
1297 (ada_lookup_symbol_list): Don't cast away constness when calling
1298 remove_out_of_scope_renamings.
1299
1300 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1301
1302 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1303 address of 'filename'; it is always non null.
1304
1305 2007-02-09 Joel Brobecker <brobecker@adacore.com>
1306
1307 * exec.c (add_to_section_table): Do not discard empty sections.
1308
1309 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1310
1311 * features/Makefile, features/arm-with-iwmmxt.xml,
1312 features/gdbserver-regs.xsl, features/number-regs.xsl,
1313 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1314 * regformats/arm-with-iwmmxt.dat: Generate.
1315 * NEWS: Mention iWMMXt.
1316
1317 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1318
1319 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1320 (xml-tdesc.o): Update.
1321 * xml-support.c: Add a comment.
1322 (gdb_xml_enums_boolean): New variable.
1323 (gdb_xml_parse_attr_enum): Use strcasecmp.
1324 * xml-support.h (gdb_xml_enums_boolean): Declare.
1325 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1326 next_regnum, and current_union.
1327 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1328 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1329 (field_attributes, union_children, reg_attributes, union_attributes)
1330 (vector_attributes, feature_attributes, feature_children): New.
1331 (target_children): Make static. Add <feature>.
1332 (tdesc_elements): Make static.
1333 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1334 (struct tdesc_feature, tdesc_feature_p): New types.
1335 (struct target_desc): Add features member.
1336 (struct tdesc_arch_data, tdesc_data): New.
1337 (target_find_description): Clarify error message. Warn about
1338 ignored register descriptions.
1339 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1340 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1341 (tdesc_data_cleanup, tdesc_numbered_register)
1342 (tdesc_numbered_register_choices, tdesc_find_register)
1343 (tdesc_register_name, tdesc_register_type)
1344 (tdesc_remote_register_number, tdesc_register_reggroup_p)
1345 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1346 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1347 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1348 (tdesc_create_feature, tdesc_record_type): New.
1349 (free_target_description): Free features.
1350 (_initialize_target_descriptions): Initialize tdesc_data.
1351 * arch-utils.c (default_remote_register_number): New.
1352 * arch-utils.h (default_remote_register_number): New prototype.
1353 * target-descriptions.h (set_tdesc_pseudo_register_name)
1354 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1355 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1356 (tdesc_numbered_register, tdesc_numbered_register_choices)
1357 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1358 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1359 (tdesc_create_reg): Declare.
1360 * gdbarch.sh (remote_register_number): New entry.
1361 * gdbarch.c, gdbarch.h: Regenerate.
1362 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1363 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1364
1365 * arm-tdep.c (arm_register_aliases): New.
1366 (arm_register_name_strings): Rename to...
1367 (arm_register_names): ...this. Make const. Delete the old version.
1368 (current_option, arm_register_byte): Delete.
1369 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
1370 (value_of_arm_user_reg): New.
1371 (arm_gdbarch_init): Verify any described registers. Call
1372 tdesc_use_registers. Don't use arm_register_byte. Create aliases
1373 for standard register names.
1374 (_initialize_arm_tdep): Do not adjust arm_register_names.
1375 * user-regs.c (struct user_reg): Add baton member.
1376 (append_user_reg, user_reg_add_builtin, user_regs_init)
1377 (user_reg_add, value_of_user_reg): Use a baton for user
1378 register functions.
1379 * std-regs.c: Update.
1380 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1381 (user_reg_add): Add baton argument.
1382 * NEWS: Mention target description register support.
1383 * features/arm-core.xml, features/arm-fpa.xml: New.
1384 * eval.c (evaluate_subexp_standard): Allow ptype $register
1385 when the program is not running.
1386
1387 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
1388
1389 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1390
1391 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1392
1393 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1394 info->disassembler_options to "any".
1395
1396 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1397
1398 * varobj.c (install_new_value): Only call value_get_print_value
1399 if changeable.
1400
1401 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1402
1403 Reported by timeless@gmail.com:
1404 * gdb/target.c (target_flash_erase): Do not return void value.
1405 (target_flash_done): Likewise.
1406 * gdb/cli/cli-cmds.c (source_command): Likewise.
1407
1408 2007-02-08 Fred Fish <fnf@specifix.com>
1409
1410 Based on work by Apple Computer, Inc.
1411 * event-top.c (handle_sigint): Set quit_flag.
1412 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1413 if quit_flag has already been reset.
1414
1415 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1416
1417 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1418 up.
1419
1420 2007-02-08 Fred Fish <fnf@specifix.com>
1421
1422 * defs.h (request_quit): Remove declaration.
1423 * utils.c (request_quit): Remove definition.
1424
1425 2007-02-08 Joel Brobecker <brobecker@gnat.com>
1426 Jan Kratochvil <jan.kratochvil@redhat.com>
1427 Daniel Jacobowitz <dan@codesourcery.com>
1428
1429 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1430 (skip_prologue): Allow bl->blrl used by PIC code.
1431
1432 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1433 Daniel Jacobowitz <dan@codesourcery.com>
1434
1435 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1436 initialize tmp_obstack.
1437 * p-valprint.c (pascal_object_print_value_fields)
1438 (pascal_object_print_value): Likewise.
1439
1440 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1441
1442 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1443
1444 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1445
1446 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1447 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1448
1449 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1450
1451 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1452 (xml_cache): New.
1453 (tdesc_parse_xml): Cache expanded descriptions.
1454
1455 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1456
1457 * Makefile.in (XMLFILES): New.
1458 (COMMON_OBS): Add xml-builtin.o.
1459 (xml-builtin.c, stamp-xml): New rules.
1460 (xml-tdesc.o): Update.
1461 * features/feature_to_c.sh: New file.
1462 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1463 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1464 (gdb_xml_start_element): Initialize scope after possibly reallocating
1465 scopes. Move cleanup later. Handle the XInclude description
1466 specially.
1467 (gdb_xml_end_element): Only parse the body if there is a current element.
1468 Call XML_DefaultCurrent if there is no element.
1469 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1470 (struct xinclude_parsing_data, xinclude_start_include)
1471 (xinclude_end_include, xml_xinclude_default)
1472 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1473 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1474 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1475 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1476 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1477 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1478 XInclude directives. Use the compiled in DTD.
1479 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1480 directory name. Do not warn here.
1481 (file_read_description_xml): Update call. Warn here instead. Pass
1482 a dirname as baton.
1483 (fetch_available_features_from_target): New.
1484 (target_read_description_xml): Use it.
1485 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1486 to handle XInclude.
1487 * features/xinclude.dtd: New file.
1488
1489 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1490
1491 * linux-thread-db.c (check_for_thread_db): Return early if we have
1492 no libthread_db support.
1493
1494 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1495
1496 * mi/mi-parse.h: Include <sys/time.h>.
1497
1498 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
1499
1500 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1501 instead of print_variable_value to print values.
1502
1503 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1504
1505 * mi/mi-main.c: Numerous formatting changes.
1506 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1507 removed in my previous change.
1508
1509 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1510
1511 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1512 Use 1000000L instead of 1000000.
1513
1514 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1515
1516 Based on work by Apple Computer, Inc.
1517
1518 * configure.ac: Test for sys/resource.h and getrusage.
1519 * configure, config.in: Regenerate.
1520
1521 * mi/mi-main.c: Include <sys/resource.h> if present.
1522 (rusage): Declare if HAVE_GETRUSAGE.
1523 (current_command_ts, do_timings): New static variables.
1524 (timestamp, print_diff_now, print_diff, timeval_diff):
1525 New static timing functions.
1526 (mi_cmd_enable_timings): New function for new MI command.
1527 (captured_mi_execute_command, mi_execute_async_cli_command):
1528 Call timing functions.
1529
1530 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1531 -enable-timings.
1532
1533 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1534
1535 * mi/mi-parse.h: (mi_timestamp): New structure.
1536 (mi_parse): Add mi_timestamp* member.
1537
1538 2007-02-02 Denis Pilat <denis.pilat@st.com>
1539
1540 * thread.c (make_cleanup_restore_current_thread): New function.
1541 (info_threads_command): Use of make_cleanup_restore_current_thread
1542 to restore the current thread and the selected frame.
1543 (restore_selected_frame): New function.
1544 (struct current_thread_cleanup): Add frame_id field.
1545 (do_restore_current_thread_cleanup): Add restoring of the selected
1546 frame.
1547 (make_cleanup_restore_current_thread): Likewise.
1548 (thread_apply_all_command): backup the selected frame while
1549 entering the function and restore it at exit.
1550 (thread_apply_command): Likewise.
1551
1552 2007-02-02 Denis Pilat <denis.pilat@st.com>
1553
1554 * MAINTAINERS (Write After Approval): Add myself to the list.
1555
1556 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1557
1558 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1559 (m32r_store_register): Ditto.
1560
1561 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
1562
1563 * ser-mingw.c (pipe_windows_open)
1564 (pipe_windows_read, pipe_windows_write): Declare
1565 variables at the top of the function.
1566
1567 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1568
1569 * doublest.c (floatformat_from_length): Use the right element from
1570 gdbarch floatformats.
1571 (floatformat_from_type, extract_typed_floating)
1572 (store_typed_floating): Likewise.
1573 * doublest.h: Remove declarations for undefined floatformat arrays.
1574 * gdbarch.sh (float_format, double_format, long_double_format): Change
1575 to pairs.
1576 (pformat): Update for pairs.
1577 * gdbarch.c, gdbarch.h: Regenerated.
1578 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1579 (floatformats_ieee_double_littlebyte_bigword)
1580 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1581 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1582 (floatformats_vax_d): New variables.
1583 (builtin_type_ieee_single, builtin_type_ieee_double)
1584 (builtin_type_arm_ext, builtin_type_ia64_spill)
1585 (builtin_type_ia64_quad): Replace arrays with individual types.
1586 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1587 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1588 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1589 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1590 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1591 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1592 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1593 unused and endian-specific types.
1594 (recursive_dump_type): Update for floatformat pairs.
1595 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1596 (build_gdbtypes): Use build_flt.
1597 (_initialize_gdbtypes): Update set of initialized types.
1598 * gdbtypes.h: Update declarations to match gdbtypes.c.
1599 (struct main_type): Store a pointer to two floatformats.
1600 * arch-utils.c (default_float_format, default_double_format): Delete.
1601 * arch-utils.h (default_float_format, default_double_format): Delete.
1602
1603 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1604 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1605 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1606 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1607 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1608
1609 2007-01-29 Joel Brobecker <brobecker@adacore.com>
1610
1611 * target.c (maintenance_print_target_stack): New function.
1612 (initialize_targets): Add new "maintenance print target-stack"
1613 command.
1614
1615 2007-01-28 Mark Kettenis <kettenis@gnu.org>
1616
1617 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1618
1619 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
1620
1621 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1622 (struct dwarf2_loclist_baton): Likewise.
1623
1624 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1625
1626 * cli/cli-script.c: Include breakpoint.h.
1627 (build_command_line): Require arguments only for if and while
1628 commands.
1629 (get_command_line, execute_user_command, execute_control_command):
1630 Fix wording of warning messages.
1631 (print_command_lines): Print breakpoint commands.
1632 (execute_control_command): Call commands_from_control_command to
1633 handle the `commands' command inside a body of a flow-control
1634 command.
1635 (read_next_line): Recognize the `commands' command and build a
1636 command line structure for it.
1637 (recurse_read_control_structure, read_command_lines): Handle
1638 `commands' similarly to `if' and `while'.
1639
1640 * breakpoint.c (get_number_trailer): Document the special meaning
1641 of NULL as the first argument PP.
1642 (commands_from_control_command): New function.
1643
1644 * breakpoint.h (commands_from_control_command): Add prototype.
1645
1646 * defs.h (commands_control): New enumerated value for enum
1647 command_control_type.
1648
1649 2007-01-26 Joel Brobecker <brobecker@adacore.com>
1650
1651 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1652 (ada_exception_sal): Update accordingly.
1653
1654 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1655
1656 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1657 * NEWS: Describe CHAR array vs. string identifcation rules.
1658
1659 2007-01-25 Paul Brook <paul@codesourcery.com>
1660
1661 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1662
1663 2007-01-24 Jim Blandy <jimb@codesourcery.com>
1664
1665 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1666 expression is empty, bother to return the 'optimized out' value we
1667 construct. (Thanks to Carl Burch.)
1668
1669 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1670
1671 * varobj.c (c_value_of_root, c_value_of_child)
1672 (cplus_describe_child): Don't call release_value.
1673
1674 2007-01-24 Thiemo Seufer <ths@mips.com>
1675
1676 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1677 initialization.
1678
1679 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1680
1681 Refactor getting children name, value and type access
1682 for varobjs in C++.
1683 * varobj.c (get_type_deref): Remove.
1684 (adjust_value_for_child_access): New.
1685 (c_number_of_children): Use the above.
1686 (c_describe_child): Likewise.
1687 (enum accessibility): New.
1688 (match_accessibility): New function.
1689 (cplus_describe_child): New function.
1690 (cplus_name_of_child, cplus_value_of_child)
1691 (cplus_type_of_child): Reimplement in terms
1692 of cplus_describe_child.
1693 (cplus_number_of_children): Use
1694 adjust_value_for_child_access.
1695
1696 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1697
1698 Fix computation of the 'editable' attribute and
1699 value changeability for for references.
1700 * varobj.c (get_value_type): New function.
1701 (c_variable_editable): Use get_value_type.
1702 (varobj_value_is_changeable): Likewise.
1703
1704 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1705
1706 * source.c (find_and_open_source): Try rewriting the source
1707 path inside filename if dirname is NULL.
1708
1709 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1710
1711 * dwarf2read.c (add_partial_symbol): Create an extra partial
1712 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1713 (new_symbol): Likewise for symbols.
1714
1715 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
1716
1717 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1718
1719 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
1720
1721 * value.c (value_primitive_field): Copy the full 'location'
1722 contents, instead of assuming that copying ADDRESS will
1723 bring over everything in the union. Remove obsolete comment.
1724
1725 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
1726
1727 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1728 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1729 (m32c_m16c_pointer_to_address): Separate code from declarations.
1730
1731 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
1732
1733 * target.c (update_current_target): Correct typo.
1734
1735 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
1736
1737 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1738 declaration.
1739
1740 2007-01-11 Andrew Cagney <cagney@redhat.com>
1741 Daniel Jacobowitz <dan@codesourcery.com>
1742 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 * dwarf2-frame.c (execute_cfa_program): New support of
1745 `DW_CFA_GNU_negative_offset_extended'.
1746
1747 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1748
1749 * NEWS: Mention flash support for "load" and new remote packets.
1750
1751 2007-01-21 Markus Deuling <deuling@de.ibm.com>
1752
1753 * breakpoint.c (delete_command): Skip redundant loop iterations.
1754
1755 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1756
1757 * gdbarch.sh (register_type): Update comment.
1758 * gdbarch.h: Regenerated.
1759 * arch-utils.c (generic_register_size): Call register_type.
1760 * ia64-tdep.c (ia64_extract_return_value): Likewise.
1761 * m32c-tdep.c (check_for_saved): Likewise.
1762 * mips-tdep.c (mips_print_register, print_gp_register_row)
1763 (mips_print_registers_info): Likewise.
1764 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1765 Likewise.
1766 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1767 (sh64_do_register, sh64_print_register)
1768 (sh64_media_print_registers_info): Likewise.
1769 * tui/tui-regs.c (tui_register_format): Likewise.
1770
1771 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1772
1773 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1774
1775 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1776 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1777 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1778 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1779 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1780 (make_symbol_completion_list): Likewise.
1781
1782 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1783 Daniel Jacobowitz <dan@codesourcery.com>
1784
1785 * buildsym.c (end_symtab): Use preallocated symtab if available.
1786 Fill in SYMBOL_SYMTAB.
1787 * buildsym.h (struct subfile): Add symtab member.
1788 * dwarf2read.c (struct dwarf2_cu): Add line_header.
1789 (struct file_entry): Add symtab.
1790 (free_cu_line_header): New function.
1791 (read_file_scope): Use it. Save line_header in the cu. Process
1792 lines before DIEs.
1793 (add_file_name): Initialize new symtab member.
1794 (dwarf_decode_lines): Create symtabs for included files.
1795 (new_symbol): Set SYMBOL_SYMTAB.
1796 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
1797 (search_symbols): Likewise.
1798 * symtab.h (struct symbol): Add symtab member.
1799 (SYMBOL_SYMTAB): Define.
1800
1801 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1802
1803 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
1804
1805 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1806
1807 * arch-utils.c (show_endian): Correct reversed condition.
1808
1809 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1810
1811 * MAINTAINERS (Write After Approval): Add myself.
1812
1813 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
1814 Vladimir Prus <vladimir@codesourcery.com>
1815
1816 Fix 'selected frame' varobjs.
1817 * varobj.c (struct varobj): Remove the error field.
1818 (varobj_set_value): Don't check var->error.
1819 (install_new_value): Don't set var->error.
1820 (varobj_update): Always pass the new value
1821 of the root via install_new_value.
1822 (create_child): Don't set error field.
1823 (new_variable): Likewise.
1824 (c_value_of_root): Always reevaluate the value
1825 of selected frame varobjs in the selected frame.
1826 Don't call reinit_frame_cache.
1827
1828 2007-01-15 Joel Brobecker <brobecker@adacore.com>
1829
1830 * source.c (_initialize_source): Improve the help text of
1831 the substitute-path commands.
1832
1833 2007-01-14 Mark Kettenis <kettenis@gnu.org>
1834
1835 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
1836 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
1837 (frv_skip_prologue): Remove prototypes.
1838 (frv_adjust_breakpoint_address): Renamed from
1839 frv_gdbarch_adjust_breakpoint_address.
1840 (frv_gdbarch_init): Adjust.
1841
1842 2007-01-13 Mark Kettenis <kettenis@gnu.org>
1843
1844 * gdbarch.sh (deprecated_extract_return_value)
1845 (deprecated_store_return_value): Remove.
1846 (extract_return_value, store_return_value): Remove default values.
1847 * gdbarch.c, gdbarch.h: Regenerate.
1848 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
1849 (legacy_store_return_value): Remove.
1850 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
1851 Remove.
1852
1853 * mi/mi-main.c: Remove obsolete comment.
1854
1855 * regcache.c, regcache.h (deprecated_register_bytes)
1856 (deprecated_read_register_bytes)
1857 (deprecated_write_register_bytes): Remove.
1858
1859 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
1860 Don't forget to move destination pointer.
1861
1862 2007-01-01 Mark Kettenis <kettenis@gnu.org>
1863
1864 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
1865
1866 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
1867
1868 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
1869 past entry function with recent newlib.
1870
1871 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
1872
1873 * gdb.texinfo (GDB/MI Variable Objects): Improve the
1874 introduction. Specify -var-update more exactly.
1875
1876 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
1877
1878 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
1879
1880 2007-01-10 Jim Blandy <jimb@codesourcery.com>
1881
1882 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
1883 the Global Maintainers' invitation to be a global maintainer.
1884
1885 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
1886
1887 * infrun.c (singlestep_pc): New variable.
1888 (resume): Set singlestep_pc.
1889 (context_switch): Add a debugging message. Flush the frame cache.
1890 (handle_inferior_event): Add debugging messages. Handle thread
1891 hops when a software single step has completed. Let context_switch
1892 handle flushing the frame cache.
1893
1894 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1895
1896 * NEWS: Mention target descriptions, "set tdesc filename",
1897 "unset tdesc filename", "show tdesc filename", and
1898 qXfer:features:read.
1899 * arch-utils.c (choose_architecture_for_target): New function.
1900 (gdbarch_info_fill): Call it.
1901 * target-descriptions.c (struct property): Make members non-const.
1902 (struct target_desc): Add arch member.
1903 (target_description_filename): New variable.
1904 (target_find_description): Try via XML first.
1905 (tdesc_architecture): New.
1906 (free_target_description, make_cleanup_free_target_description): New.
1907 (set_tdesc_property): Call xstrdup.
1908 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1909 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1910 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1911 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1912 * target-descriptions.h (tdesc_architecture)
1913 (make_cleanup_free_target_description, set_tdesc_architecture): New
1914 prototypes.
1915 * Makefile.in (SFILES): Add xml-tdesc.c.
1916 (COMMON_OBS): Add xml-tdesc.o.
1917 (target-descriptions.o): Update.
1918 (xml-tdesc.o): New rule.
1919 * xml-tdesc.c, xml-tdesc.h: New files.
1920 * remote.c (PACKET_qXfer_features): New enum.
1921 (remote_protocol_features): Add qXfer:features:read.
1922 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1923 (_initialize_remote): Register qXfer:features:read.
1924 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1925 * features/gdb-target.dtd: New file.
1926
1927 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1928
1929 * copyright.sh: Clarify error.
1930
1931 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1932
1933 * symtab.c (matching_bfd_sections): Fix VMA matching for
1934 prelinked objects.
1935
1936 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1937
1938 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1939 nested symbols.
1940
1941 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1942
1943 Updated copyright notices for most files.
1944
1945 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1946
1947 * copyright.sh (prunes): Add step-line.inp and step-line.c.
1948
1949 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1950
1951 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1952 exec_prefix.
1953 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1954 '${prefix}'.
1955 * configure, config.in: Regenerate.
1956 * defs.h (debug_file_directory): Declare.
1957 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
1958 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
1959 relocate it if DEBUGDIR_RELOCATABLE.
1960 * symfile.c (debug_file_directory): Make non-static.
1961 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1962 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1963 (_initialize_symfile): Don't initialize debug_file_directory here.
1964
1965 2007-01-09 Jim Blandy <jimb@codesourcery.com>
1966
1967 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1968 statements.
1969
1970 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1971
1972 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1973 frame_unwind_register to recurse.
1974 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1975 (alpha_heuristic_frame_prev_register): Likewise.
1976 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1977 * m32c-tdep.c (m32c_prev_register): Likewise.
1978 * frame.c (frame_register_unwind_location): Remove FIXME.
1979
1980 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1981 Eli Zaretskii <eliz@gnu.org>
1982
1983 * copyright.sh: New file.
1984
1985 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1986
1987 * configure.ac: Check for XML_StopParser.
1988 * xml-support.c (gdb_xml_body_text): Check for an error.
1989 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1990 (gdb_xml_end_element_wrapper): Likewise.
1991 * config.in, configure: Regenerated.
1992
1993 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1994
1995 * varobj.c (install_new_value): Always update print_value.
1996 (value_get_print_value): Immediately return NULL for missing
1997 values.
1998
1999 2007-01-08 Jim Blandy <jimb@codesourcery.com>
2000
2001 * configure.ac: Tighten pattern for extracting value of
2002 DEPRECATED_TM_FILE from the target makefile fragment.
2003 * configure: Regenerated.
2004
2005 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2006
2007 * linux-nat.c (struct simple_pid_list): Add status.
2008 (add_to_pid_list): Record the PID's status.
2009 (linux_record_stopped_pid): Likewise. Make static.
2010 (pull_pid_from_list): Return the saved status.
2011 (linux_nat_handle_extended): Deleted.
2012 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
2013 Make static. Handle non-SIGSTOP for a new thread's first signal.
2014 (flush_callback): Handle unexpected pending signals.
2015 (linux_nat_wait): Update calls to changed functions.
2016 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
2017 Remove prototypes for newly static functions.
2018
2019 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2020
2021 * gdbarch.sh (value_from_register): New gdbarch function.
2022 * gdbarch.c, gdbarch.h: Regenerate.
2023 * findvar.c (default_value_from_register): New function.
2024 (value_from_register): Use gdbarch_value_from_register.
2025 * value.h (default_value_from_register): Declare.
2026 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
2027 spu_value_to_register): Remove.
2028 (spu_value_from_register): New function.
2029 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2030 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2031 Call set_gdbarch_value_from_register.
2032 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
2033 s390_value_to_register): Remove.
2034 (s390_value_from_register): New function.
2035 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2036 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2037 Call set_gdbarch_value_from_register.
2038
2039 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2040
2041 * NEWS: Add "set sysroot" and "show sysroot".
2042 * solib.c (solib_absolute_prefix): Delete. Replace
2043 all uses with gdb_sysroot.
2044 (_initialize_solib): Add "set sysroot" and "show sysroot".
2045 Make "solib-absolute-prefix" an alias to it.
2046
2047 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2048
2049 * frame.c (get_frame_register_bytes): New function.
2050 (put_frame_register_bytes): Likewise.
2051 * frame.h (get_frame_register_bytes): Declare.
2052 (put_frame_register_bytes): Likewise.
2053 * findvar.c (value_from_register): Always construct lval_register
2054 values. Use get_frame_register_bytes.
2055 * valops.c (value_assign): Use get_frame_register_bytes and
2056 put_frame_register_bytes.
2057
2058 2007-01-08 Jim Blandy <jimb@codesourcery.com>
2059
2060 * MAINTAINERS: Update Stan Shebs' email address.
2061
2062 2007-01-07 Joel Brobecker <brobecker@adacore.com>
2063
2064 * ada-lang.c (is_known_support_routine): Improve the implementation.
2065
2066 2007-01-06 Joel Brobecker <brobecker@adacore.com>
2067
2068 * ada-lang.c: Add include of source.h.
2069 (is_known_support_routine): Improve the check verifying that the file
2070 associated to this frame exists.
2071 * Makefile.in (ada-lang.o): Add dependency on source.h.
2072
2073 2007-01-07 Jim Blandy <jimb@codesourcery.com>
2074
2075 * ax-general.c (ax_const_l): Select proper opcode for the given
2076 value.
2077
2078 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
2079
2080 * varobj.c (c_value_of_root): Don't select frame if variable
2081 object is out of scope.
2082
2083 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
2084
2085 * varobj.c (struct varobj): New member print_value.
2086 (install_new_value): Compare last printed value with current one
2087 instead of contents.
2088 (new_variable): Initialize var->print_value to NULL.
2089 (free_variable): Free var->print_value.
2090 (value_get_print_value): New function derived from
2091 c_value_of_variable.
2092 (c_value_of_variable): Use value_get_print_value.
2093
2094 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2095
2096 * i386-tdep.c (i386_analyze_stack_align): Add comment.
2097
2098 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2099
2100 * NEWS: Add entries for new catch commands.
2101
2102 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2103
2104 * dwarf2read.c (partial_die_info): Add field has_byte_size.
2105 (add_partial_symbol): Correct identification of external references.
2106 (process_structure_scope): Likewise.
2107 (read_partial_die): Handle DW_AT_byte_size attribute.
2108
2109 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
2110
2111 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
2112
2113 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
2114
2115 * varobj.c (get_type_deref): Fix variable objects for references to
2116 pointers.
2117
2118 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2119
2120 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
2121 with no symbols.
2122
2123 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2124
2125 * memory-map.c (struct_memory_map_parsing_data): Remove most
2126 members. Make property_name an array.
2127 (free_memory_map_parsing_data, memory_map_start_element)
2128 (memory_map_end_element, memory_map_character_data): Delete.
2129 (memory_map_start_memory, memory_map_end_memory)
2130 (memory_map_start_property, memory_map_end_property): New functions.
2131 (property_attributes, memory_children, memory_type_enum)
2132 (memory_attributes, memory_map_children, memory_map_elements): New.
2133 (parse_memory_map): Rewrite.
2134 * xml-support.c (debug_xml): New.
2135 (xml_get_required_attribute, xml_get_integer_attribute)
2136 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
2137 Delete.
2138 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
2139 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
2140 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
2141 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
2142 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
2143 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
2144 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
2145 New.
2146 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
2147 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
2148 (enum gdb_xml_element_flag, struct gdb_xml_element)
2149 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
2150 (struct gdb_xml_enum): New.
2151 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
2152 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
2153 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
2154 (xml_get_required_attribute, xml_get_integer_attribute)
2155 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
2156 * Makefile.in (xml_support_h, xml-support.o): Update.
2157
2158 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2159
2160 * Makefile.in (eval.o): Update dependencies.
2161 * eval.c: Include "ui-out.h" and "exceptions.h".
2162 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
2163 Use value_zero if an error occurs when avoiding side effects.
2164 * varobj.c (c_value_of_root): Initialize new_val.
2165
2166 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2167
2168 * varobj.c (varobj_list_children): Stop if the number of children is
2169 unknown.
2170 (c_number_of_children):
2171
2172 2007-01-04 Mark Kettenis <kettenis@gnu.org>
2173
2174 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
2175 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
2176 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
2177 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
2178 sizeof, instead of hardcoded constants.
2179
2180 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2181
2182 * CONTRIBUTE: Use sourceware.org.
2183
2184 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2185
2186 * buildsym.c (start_subfile): Handle producer.
2187 (record_producer): New function.
2188 * buildsym.h (struct subfile): Include producer.
2189 (record_producer): New prototype.
2190 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
2191 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
2192 armcc_cfa_offsets_reversed.
2193 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
2194 (dwarf2_frame_find_quirks): New function.
2195 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
2196 (decode_frame_entry_1): Record the CIE version. Record the
2197 augmentation. Skip armcc augmentations.
2198 * dwarf2read.c (read_file_scope): Save the producer.
2199 * symtab.h (struct symtab): Rename unused version member to
2200 producer.
2201
2202 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2203
2204 * configure.ac (build_warnings): Use -Wall and
2205 -Wdeclaration-after-statement.
2206 * configure: Regenerated.
2207
2208 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2209
2210 Simplify access to variours properties of child
2211 variable objects in C.
2212 * varobj.c (value_struct_element_index): New function.
2213 (c_describe_child): New function.
2214 (c_name_of_child, c_value_of_child)
2215 (c_type_of_child): Rewrite to use c_describe_child.
2216
2217 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2218
2219 gdb/
2220 * varobj.c: Include "vec.h".
2221 (varobj_p): New typedef, declare vector of those.
2222 (struct varobj): Use vector for the 'children' member.
2223 (child_exists): Remove.
2224 (save_child_in_parent): Remove.
2225 (remove_child_from_parent): Remove.
2226 (struct varobj_child): Remove.
2227 (struct vstack): Remove.
2228 (vpush, vpop): Remove.
2229 (varobj_list_children): Adjust to work work vector.
2230 (varobj_update): Likewise. Use vectors for
2231 working stack and result.
2232 (delete_variable_1): Likewise.
2233 * Makefile.in (varobj.o): Update dependencies.
2234
2235 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2236
2237 Port from Apple's version.
2238 gdb/
2239 * varobj.c (type_changeable): Rename to...
2240 (varobj_value_is_changeable_p): ...this. Adjust all callers.
2241 (is_root_p): New function. Use it everywhere.
2242
2243 2007-01-04 Jim Blandy <jimb@codesourcery.com>
2244
2245 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
2246 then plain 'fixup'.
2247
2248 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2249
2250 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
2251
2252 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2253
2254 * hpread.c (hpread_type_lookup): Fix compilation failure.
2255
2256 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
2257
2258 * NEWS: New port to S+core.
2259 * MAINTAINERS (Write After Approval, Responsible Maintainers):
2260 Add myself.
2261
2262 * Makefile.in: Add dependencies for S+core files.
2263 * configure.tgt (score*, score-*-*): Add S+core target.
2264 * config/score/embed.mt: New file.
2265 * score-tdep.c: New file.
2266 * score-tdep.h: New file.
2267
2268 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2269
2270 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
2271 the appropriate type rather than a bogus void type.
2272
2273 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2274
2275 * ada-lang.h (ada_find_printable_frame): Remove.
2276 (ada_exception_catchpoint_p, ada_decode_exception_location)
2277 (ada_decode_assert_location): Add declaration.
2278 * ada-lang.c: Add include of annotate.h and valprint.h.
2279 (exception_catchpoint_kind): New enum.
2280 (function_name_from_pc, is_known_support_routine)
2281 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2282 (ada_exception_name_addr_1, ada_exception_name_addr)
2283 (print_it_exception, print_one_exception, print_mention_exception)
2284 (print_it_catch_exception, print_one_catch_exception)
2285 (print_mention_catch_exception, catch_exception_breakpoint_ops)
2286 (print_it_catch_exception_unhandled)
2287 (print_one_catch_exception_unhandled)
2288 (print_mention_catch_exception_unhandled, print_it_catch_assert)
2289 (print_one_catch_assert, print_mention_catch_assert)
2290 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2291 (ada_get_next_arg, catch_ada_exception_command_split)
2292 (ada_exception_sym_name, ada_exception_sym_name)
2293 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2294 (ada_parse_catchpoint_condition, ada_exception_sal)
2295 (ada_decode_exception_location)
2296 (ada_decode_assert_location): New function.
2297 (catch_exception_unhandled_breakpoint_ops): New global variable.
2298 (catch_assert_breakpoint_ops): New global variable.
2299 * breakpoint.c: Add include of ada-lang.h.
2300 (print_one_breakpoint): Do not print the condition for Ada
2301 exception catchpoints.
2302 (create_ada_exception_breakpoint): New function.
2303 (catch_ada_exception_command, catch_assert_command): New function.
2304 (catch_command_1): Add support for the new "catch exception" and
2305 "catch assert" commands.
2306 (_initialize_breakpoint): Add help description for the new catch
2307 commands.
2308 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2309 valprint.h.
2310 (breakpoint.o): Add dependency on ada-lang.h.
2311
2312 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
2313
2314 * coffread.c (cs_to_section): If bfd_section is found, always
2315 return its section index.
2316 (coff_symtab_read): Determine the minimal_symbol_type using the
2317 bfd_section flags.
2318
2319 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2320 Daniel Jacobowitz <dan@codesourcery.com>
2321
2322 * Makefile.in (top.o): Update.
2323 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2324 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2325 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2326 New.
2327 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2328
2329 2007-01-03 Mark Kettenis <kettenis@gnu.org>
2330
2331 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2332 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2333
2334 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2335
2336 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2337 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2338 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2339 greater than or equal to zero.
2340 * m2-typeprint.c (m2_array): Likewise.
2341 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2342 * gdbtypes.c (copy_type_recursive): Correct == typo.
2343 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2344 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2345 greater than zero.
2346 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2347 (default_macro_scope): Remove unused variable.
2348 * prologue-value.h (pv_area_find_reg): Don't name an argument
2349 "register".
2350 * remote-fileio.c (remote_fio_func_map): Add missing braces.
2351 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2352 type.
2353 (cleanup_sigint_signal_handler): Remove casts.
2354 * valprint.c (val_print): Use a volatile local for the modified
2355 argument.
2356 * varobj.c (languages): Remove extra array dimension.
2357 (varobj_create): Correct access to languages array.
2358 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2359 missing braces.
2360 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2361 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2362 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2363 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2364 (mi_cmd_data_write_memory): Likewise.
2365 * signals/signals.c (target_signal_to_string): Cast to int before
2366 comparing.
2367 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2368 Update all callers.
2369
2370 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2371
2372 * NEWS: Mention pointer to member improvements.
2373 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2374 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2375 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2376 * c-typeprint.c (c_print_type): Update for new type codes.
2377 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2378 (c_type_print_base): Likewise.
2379 (c_type_print_args): Rewrite.
2380 * c-valprint.c (c_val_print): Update for new type codes. Remove
2381 support for references to members. Treat methods like functions.
2382 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2383 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2384 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2385 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2386 (struct cp_abi_ops): Add corresponding members.
2387 * cp-valprint.c (cp_print_class_method): Delete.
2388 (cp_find_class_member): New function.
2389 (cp_print_class_member): Use it. Simplify support for bogus
2390 member pointers.
2391 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2392 lookup_methodptr_type.
2393 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2394 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2395 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2396 pointer support.
2397 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2398 references returned by user defined operators.
2399 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2400 (f_type_print_varspec_suffix): Remove support for member pointers.
2401 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2402 and adjusted.
2403 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2404 (lookup_methodptr_type): New.
2405 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2406 (recursive_dump_type): Update for new types.
2407 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2408 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2409 (lookup_memberptr_type, lookup_methodptr_type)
2410 (smash_to_memberptr_type): New prototypes.
2411 (smash_to_method_type): Formatting fix.
2412 (lookup_member_type, smash_to_member_type): Delete prototypes.
2413 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2414 Do not rely on debug information for the vptr or the method's
2415 enclosing type. Handle function descriptors for IA64.
2416 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2417 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2418 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2419 (gnuv3_method_ptr_to_value): New.
2420 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2421 * hpread.c (hpread_type_lookup): Update for new types.
2422 * infcall.c (value_arg_coerce): Likewise.
2423 * m2-typeprint.c (m2_print_type): Remove explicit support
2424 for member pointers.
2425 * m2-valprint.c (m2_val_print): Likewise.
2426 * p-typeprint.c (pascal_type_print_varspec_prefix)
2427 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2428 * p-valprint.c (pascal_val_print): Likewise.
2429 (pascal_object_print_class_method, pascal_object_print_class_member):
2430 Delete.
2431 * p-lang.h (pascal_object_print_class_method)
2432 (pascal_object_print_class_member): Delete prototypes.
2433 * stabsread.c (read_type): Update for new types.
2434 * typeprint.c (print_type_scalar): Likewise.
2435 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2436 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2437 argument. Construct a pointer to member if the address of a
2438 function or data member is requested.
2439 (value_cast_pointers): Don't modify the input value.
2440 (value_cast): Adjust pointer to member handling for new types.
2441 Allow null pointer to member constants. Don't modify the input
2442 value.
2443 (value_ind): Remove pointer to member check. Handle function
2444 descriptors for function pointers.
2445 (value_struct_elt, value_find_oload_method_list, check_field):
2446 Remove pointer to member checks.
2447 * value.c (unpack_long): Allow pointers to data members.
2448 (value_from_longest): Allow member pointers.
2449 * value.h (value_aggregate_elt): Add want_address.
2450 * varobj.c (c_variable_editable): Remove check for members.
2451 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2452 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2453 in virtual tables.
2454 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2455 * c-lang.h (cp_print_class_method): Delete prototype.
2456 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2457 * mips-tdep.c (mips_gdbarch_init): Likewise.
2458 * gdbarch.c, gdbarch.h: Regenerated.
2459
2460 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2461
2462 * rs6000-tdep.c (rs6000_use_struct_convention)
2463 (rs6000_extract_return_value, rs6000_store_return_value)
2464 (rs6000_extract_struct_value_address): Remove.
2465 (rs6000_return_value): New function.
2466 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2467 store_return_value, deprecated_extract_struct_value_address and
2468 deprecated_use_struct_convention. Use rs6000_return_value
2469 instead.
2470
2471 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
2472
2473 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2474 -display-disable, -display-enable, -display-insert and
2475 -display-list.
2476
2477 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2478
2479 * breakpoint.c (remove_breakpoint): Remove dead code.
2480
2481 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
2482
2483 * varobj.c: Include block.h.
2484 (c_value_of_root): Check scope within nested statements.
2485
2486 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2487
2488 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2489 regcache_cooked_write_signed instead of
2490 deprecated_write_register_bytes.
2491
2492 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2493
2494 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2495
2496 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2497
2498 Followed the Start of New Year Procedure:
2499 * ChangeLog-2006: New file, containing all the entries for 2006.
2500 * ChangeLog: Removed all 2006 entries, and changed the reference
2501 to the previous ChangeLog to point to ChangeLog 2006.
2502 * top.c (print_gdb_version): Update copyright year.
2503
2504 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2505
2506 * Makefile.in (remote-sds.o): Remove.
2507 * remote-sds.c: Delete.
2508
2509 For older changes see ChangeLog-2006.
2510 \f
2511 Local Variables:
2512 mode: change-log
2513 left-margin: 8
2514 fill-column: 74
2515 version-control: never
2516 End:
This page took 0.123228 seconds and 4 git commands to generate.