1 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
3 * valarith.c (value_binop): Add floating-point BINOP_MIN and
5 For BINOP_EXP, use length and signedness of left operand only for
7 For integral operands to BINOP_EXP, use new integer_pow and
8 uinteger_pow functions so as to get full range of results.
9 (integer_pow): New function.
10 (uinteger_pow): New function.
12 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
14 Use vector for varobj_list_children interface.
15 * gdb/varobj.c (varobj_list_children): Return vector
17 * gdb/varobj.h (varobj_list_children): Adjust
19 (varobj_p): Declare. Declare vector thereof.
20 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
21 for varobj_list_children change.
22 * Makefile.in (varobj_h): Update dependencies.
24 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
26 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
27 TYPE_CODE_DECFLOAT arguments.
28 (ppc64_sysv_abi_push_dummy_call) Likewise.
29 (get_decimal_float_return_value): New function.
30 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
31 values by calling get_decimal_float_return_value.
32 (ppc64_sysv_abi_return_value): Likewise.
34 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
36 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
37 for preprocessor macro information. Formatting changes.
39 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
41 * remote.c (struct remote_state): Add cached_wait_status.
42 (remote_exec_file): New variable.
43 (PACKET_vAttach, PACKET_vRun): New constants.
44 (extended_remote_restart): Do not query for status.
45 (struct start_remote_args): New.
46 (remote_start_remote): Take it as a second argument. Check
47 whether the target is running. Issue an error for non-running
48 non-extended targets. Cache the wait status. Set inferior_ptid
50 (remote_open_1): Prompt to disconnect non-running targets. Make
51 sure the target is marked running. Do not set inferior_ptid here.
52 Update call to remote_start_remote. Do not call remote_check_symbols
53 if the target is not running.
54 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
55 argument. Handle a non-running target.
56 (remote_detach): Use it.
57 (extended_remote_detach): New.
58 (remote_disconnect): Fix typo. Use remoute_mourn_1.
59 (extended_remote_attach_1, extended_remote_attach)
60 (extended_async_remote_attach): New.
61 (remote_vcont_resume): Remove unused variable.
62 (remote_wait, remote_async_wait): Use any cached wait status.
63 (putpkt_binary, getpkt): Clear any cached wait status.
64 (extended_remoute_mourn_1): New.
65 (extended_remote_mourn): Use it.
66 (extended_async_remote_mourn, extended_remote_run): New.
67 (extended_remote_create_inferior_1): New.
68 (extended_remote_create_inferior): Use it.
69 (extended_remote_async_create_inferior): Likewise.
70 (remote_xfer_partial): Skip for non-executing targets.
71 (init_extended_remote_ops): Set to_detach and to_attach.
72 (init_extended_async_remote_ops): Likewise. Use
73 extended_async_remote_mourn.
74 (_initialize_remote): Register vAttach, vRun, and
76 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
78 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
80 * Makefile.in (symfile.o): Update.
81 * NEWS: Mention exec tracing support.
82 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
84 * infcmd.c (kill_if_already_running, detach_command)
85 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
86 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
87 (follow_exec): Do not check may_follow_exec. Do not mourn and push
88 targets. Apply the sysroot path to the loaded executable. Use
90 * linux-nat.c (linux_child_follow_fork): Print fork following
92 (kill_wait_callback): Kill again before waiting a second time.
93 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
96 2008-01-29 Joel Brobecker <brobecker@adacore.com>
98 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
100 2008-01-29 Joel Brobecker <brobecker@adacore.com>
102 * nto-tdep.h: Remove #include "defs.h".
103 * nto-tdep.c: Add #include "defs.h".
104 * Makefile.in (nto_tdep_h): Update dependencies.
105 (nto-tdep.o): Likewise.
107 2008-01-29 Joel Brobecker <brobecker@adacore.com>
109 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
111 (proceed, start_remote): Update call to wait_for_inferior.
112 * inferior.h (wait_for_inferior): Update declaration.
113 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
114 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
115 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
116 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
118 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
120 * varobj (adjust_value_for_child_access): Added checking for
121 returned value from gdb_value_ind.
122 (c_describe_child): Likewise.
123 (cplus_describe_child): Fixed a typo.
125 2008-01-29 Jim Blandy <jimb@red-bean.com>
127 * MAINTAINERS: Update my info.
129 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
131 Use multiple locations for hardware watchpoints.
132 This eliminates the need to traverse value chain, doing
133 various checks, in three different places.
135 * breakpoint.h (struct bp_location): New fields
136 lengths and watchpoint_type.
137 (struct breakpoint): Remove the val_chain field.
138 * breakpoint.c (is_hardware_watchpoint): New.
139 (free_valchain): Remove.
140 (update_watchpoint): New.
141 (insert_bp_location): For hardware watchpoint, just
143 (insert_breakpoints): Call update_watchpoint_locations
144 on all watchpoints. If we have failed to insert
145 any location of a hardware watchpoint, remove all inserted
147 (remove_breakpoint): For hardware watchpoints, directly
149 (watchpoints_triggered): Iterate over locations.
150 (bpstat_stop_status): Use only first location of
151 a resource watchpoint.
152 (delete_breakpoint): Don't call free_valchain.
153 (print_one_breakpoint): Don't print all
154 locations for watchpoints.
155 (breakpoint_re_set_one): Use update_watchpoint for
158 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
160 Don't reset watchpoint block on solib load.
162 * breakpoint.c (insert_bp_location): For watchpoints,
164 (breakpoint_re_set_one): Instead of recomputing value
165 and condition for watchpoints, just reset value and
166 let insert_breakpoints/insert_bp_location recompute it.
167 Don't do anything about disabled watchpoint.
169 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
171 * valarith.c (value_binop): Handle unsigned integer
174 2008-01-28 Kevin Buettner <kevinb@redhat.com>
176 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
177 instruction pattern that appears frequently in position
178 independent code. Fix bug in code which looks for "fmov" and
179 backtracks if no "fmov" is found.
181 2008-01-28 Doug Evans <dje@google.com>
183 * dbxread.c (read_dbx_symtab): Fix indentation.
184 Reformat comments to 80 columns.
185 Move local var def closer to only use.
187 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
189 * fork-child.c (SHELL_FILE): Remove #ifndef.
190 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
192 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
194 * i386-tdep.c (i386_skip_noop): New function.
195 (i386_analyze_prologue): Call i386_skip_noop function.
197 2008-01-24 Michael Snyder <msnyder@specifix.com>
199 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
200 * win32-nat.c (win32_xfer_partial): Ditto.
201 * target.c (default_xfer_partial): Minor whitespace adjustment.
203 2008-01-24 Pedro Alves <pedro@codesourcery.com>
205 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
206 strip bit 1 even if pc doesn't point to thumb code.
208 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
210 * remote.c (remote_wait): Handle SIGINT between packets.
211 (remote_async_wait): Likewise.
213 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
214 Chris Demetriou <cgd@google.com>
216 * thread.c (add_thread_silent): Renamed
218 (print_thread_events): New variable definition.
219 (show_print_thread_events): New function.
220 (_initialize_thread): Add "set print thread-events" and
221 "show print thread-events" commands.
222 (add_thread): Announce new thread.
223 * gdbthread.h (add_thread_silent): Declare.
224 (print_thread_events): New variable declaration.
225 * inf-ttrace.c (inf_ttrace_wait): Don't
226 inform about new thread, as add_thread is always
227 called too, and will take care of that.
228 * infrun.c (handle_inferior_event): Likewise.
229 * procfs.c (procfs_wait): Likewise.
230 * remote.c (remote_currthread): Likewise.
231 * sol-thread.c (sol_thread_wait): Likewise.
232 * win32-nat.c (get_win32_debug_event): Likewise.
233 * linux-thread-db.c (attach_thread): Likewise.
234 Remove the verbose parameter.
235 (check_event): Make detach_thread be verbose
236 only if print_thread_events is set.
237 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
238 about new thread. This is called only from
239 linux-thread-db.c:attach_thread, which will take care.
240 Remove the verbose parameter.
241 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
243 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
245 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
247 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
249 * breakpoint.c (break_command_really): New parameter
251 (break_command_1): Pass 0 as
252 ignore_count to break_command_really.
253 (gdb_breakpoint): Pass ignore_count to
254 break_command_really.
256 2008-01-21 Kevin Buettner <kevinb@redhat.com>
258 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
259 sigcontext struct via pointer.
260 (struct sigframe comment): Update to show new field `psc'.
262 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
264 * infrun.c (handle_inferior_event): If
265 we failed to remove breakpoints, error,
266 don't try to increment PC by hand.
268 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
270 Add NetBSD/hppa target and host support.
272 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
273 (hppabsd_gregset): Move to ...
274 (hppabsd_regset_from_core_section): Rename
275 hppaobsd_regset_from_core_section and move to ...
276 (hppabsd_find_global_pointer): Update comment.
277 (hppabsd_init_abi): Make global. Do not register
278 hppabsd_regset_from_core_section.
279 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
281 (_initialize_hppabsd_tdep): Move to ...
282 * hppaobsd-tdep.c: ... here. New file.
283 * hppnbsd-tdep.c: New file.
284 * hppnbsd-nat.c: New file.
285 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
286 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
287 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
288 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
289 * configure.host (hppa*-*-netbsd*): New entry.
290 * configure.tgt (hppa*-*-netbsd*): New entry.
291 (hppa*-*-openbsd*): Update.
292 * NEWS (New native configuration): Mention NetBSD/hppa.
293 (New targets): Mention NetBSD/hppa.
295 2008-01-18 Markus Deuling <deuling@de.ibm.com>
297 * gdbarch.sh (function_list): Add new property bits_big_endian to
299 * gdbarch.{c,h}: Regenerate.
301 * value.c (struct value): Replace BITS_BIG_ENDIAN by
302 gdbarch_bits_big_endian (comment).
303 (unpack_field_as_long, modify_field): Likewise.
304 * value.h: Likewise (comment).
305 * valops.c (value_slice): Likewise.
306 * valarith.c (value_subscript, value_bit_index): Likewise.
307 * gdbtypes.h (field): Likewise (comment).
308 * eval.c (evaluate_subexp_standard): Likewise.
309 * dwarf2read.c (dwarf2_add_field): Likewise.
310 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
311 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
313 * defs.h (BITS_BIG_ENDIAN): Remove.
315 2008-01-18 Markus Deuling <deuling@de.ibm.com>
317 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
319 * m2-exp.y (yylex): Likewise.
320 * objc-exp.y (yylex): Likewise.
322 * defs.h (DEPRECATED_STREQN): Remove.
324 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
326 * MAINTAINERS: Update my email address.
328 2008-01-17 Jim Blandy <jimb@codesourcery.com>
330 * README: Mention gdbserver/README.
332 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
334 * valarith.c (value_binop): Handle BINOP_INTDIV
335 for unsigned and signed integers.
337 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
339 * s390-tdep.c (s390_gdbarch_init): Set default long double
340 type to 128-bit IEEE quad.
342 2008-01-17 Joel Brobecker <brobecker@adacore.com>
344 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
346 2008-01-16 Mark Kettenis <kettenis@gnu.org>
348 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
350 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
351 * value.c: All callers changed.
353 2008-01-16 Markus Deuling <deuling@de.ibm.com>
355 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
356 DEPRECATED_STREQ by its expression.
357 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
358 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
359 (scan_xcoff_symtab): Likewise.
360 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
361 * f-lang.c (find_common_for_function): Likewise.
362 * objc-exp.y (parse_number): Likewise.
364 * defs.h (DEPRECATED_STREQ): Remove.
366 2008-01-16 Markus Deuling <deuling@de.ibm.com>
368 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
369 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
370 get_frame_arch to get at the current_architecture. Update AM33_MODE
372 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
373 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
375 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
377 2008-01-16 Markus Deuling <deuling@de.ibm.com>
379 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
381 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
383 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
384 current_gdbarch by gdbarch. Update caller.
386 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
387 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
388 the current architecture. Update calls of
389 amd64_native_gregset_supplies_p.
390 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
391 (amd64bsd_store_inferior_registers): Likewise.
393 2008-01-16 Markus Deuling <deuling@de.ibm.com>
395 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
396 Replace current_gdbarch by gdbarch. Update caller.
398 2008-01-16 Markus Deuling <deuling@de.ibm.com>
400 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
401 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
402 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
403 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
404 (stabsect_build_psymtabs): Fix indentation.
406 2008-01-15 Michael Snyder <msnyder@specifix.com>
408 * corelow.c (core_xfer_partial): Comment, cut/paste error.
410 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
412 * win32-nat.c (win32_create_inferior): Restore code calling
413 CloseHandle on ProcessInformation structure.
415 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
417 * configure.ac: Check for void * as 3 argument of ptrace.
418 * configure: regenerate.
420 2008-01-11 Markus Deuling <deuling@de.ibm.com>
422 * alpha-tdep.c (alpha_heuristic_proc_start)
423 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
424 current_gdbarch by gdbarch.
426 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
427 current architecture by frame_info. Update alpha_heuristic_proc_start
430 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
431 get_frame_arch to get at the current architecture by frame_info. Update
432 alpha_sigtramp_register_address call.
434 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
435 current_gdbarch by gdbarch. Update caller.
436 (convert_to_extended, convert_from_extended): Add endianess parameter
437 for comparison. Update caller.
438 (arm_extract_return_value, arm_store_return_value): Use
439 get_regcache_arch to get at the current architecture.
441 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
442 current_gdbarch by gdbarch. Update caller.
443 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
444 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
446 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
447 gdbarch as parameter. Update caller.
448 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
449 current_gdbarch by gdbarch. Update caller.
451 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
452 update caller. Replace current_gdbarch by gdbarch.
454 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
455 the current architecture. Replace current_gdbarch by gdbarch.
456 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
457 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
458 expression. Add gdbarch as parameter and replace current_gdbarch with
460 (M6811_TDEP): Remove.
461 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
463 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
464 current_gdbarch by gdbarch. Update caller.
466 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
468 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
471 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
472 caller. Relace current_gdbarch by gdbarch.
473 (altivec_register_p, spe_register_p): Likewise.
474 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
476 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
477 altivec_register_p and spe_register_p.
479 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
480 caller. Replace current_gdbarch by gdbarch.
481 (score_analyze_prologue): use get_frame_arch to get at the current
484 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
485 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
486 current_gdbarch by gdbarch. Update caller.
487 (sparc_frame_cache): Use get_frame_arch to get at the current
489 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
490 sparc_analyze_prologue.
492 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
495 2008-01-11 Markus Deuling <deuling@de.ibm.com>
497 * exec.c: #include "arch-utils.h"
498 (print_section_info): Use gdbarch_from_bfd to get at the
499 current architecture. Replace current_gdbarch. Fix indention. Replace
500 deprecated_print_address_numeric by paddress.
501 * Makefile.in (exec.o) Add dependency to arch-utils.h.
503 * valprint.c (val_print_string): Replace
504 deprecated_print_address_numeric.
505 * tracepoint.c (trace_mention, scope_info): Likewise.
506 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
507 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
508 (maintenance_check_symtabs): Likewise.
509 * symfile.c (list_overlays_command): Likewise.
510 * stack.c (frame_info, print_block_frame_labels): Likewise.
511 * printcmd.c (print_address, print_address_demangle)
512 (address_info): Likewise.
513 * corefile.c (memory_error): Likewise.
514 * infcmd.c (jump_command): Likewise.
515 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
516 (mention, delete_breakpoint): Likewise.
517 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
518 * dwarf2read.c (dump_die): Likewise.
519 * ada-valprint.c (ada_val_print_1): Likewise.
520 * f-valprint.c (f_val_print): Likewise.
521 * linux-fork.c (info_forks_command): Likewise.
522 * m32r-com.c (m32r_load_section, m32r_load)
523 (m32r_upload_command): Likewise.
525 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
527 2008-01-11 Markus Deuling <deuling@de.ibm.com>
529 * gdbarch.sh (skip_prologue): Add gdbarch
531 * gdbarch.{c,h}: Regenerate.
533 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
534 * amd64-tdep.c (amd64_skip_prologue): Likewise.
535 * avr-tdep.c (avr_skip_prologue): Likewise.
536 * cris-tdep.c (cris_skip_prologue): Likewise.
537 * frv-tdep.c (frv_skip_prologue): Likewise.
538 * h8300-tdep.c (h8300_skip_prologue): Likewise.
539 * hppa-tdep.c (hppa_skip_prologue): Likewise.
540 * i386-tdep.c (i386_skip_prologue): Likewise.
541 * ia64-tdep.c (ia64_skip_prologue): Likewise.
542 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
543 * m32r-tdep.c (m32r_skip_prologue): Likewise.
544 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
545 * m68k-tdep.c (m68k_skip_prologue): Likewise.
546 * m88k-tdep.c (m88k_skip_prologue): Likewise.
547 * mep-tdep.c (mep_skip_prologue): Likewise.
548 * mips-tdep.c (mips_skip_prologue): Likewise.
549 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
550 * mt-tdep.c (mt_skip_prologue): Likewise.
551 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
552 * score-tdep.c (score_skip_prologue): Likewise.
553 * sh64-tdep.c (sh64_skip_prologue): Likewise.
554 * sh-tdep.c (sh_skip_prologue): Likewise.
555 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
556 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
557 * spu-tdep.c (spu_skip_prologue): Likewise.
558 * v850-tdep.c (v850_skip_prologue): Likewise.
559 * vax-tdep.c (vax_skip_prologue): Likewise.
560 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
561 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
563 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
564 current_gdbarch by gdbarch.
565 * m32c-tdep.c (m32c_skip_prologue): Likewise.
566 * s390-tdep.c (s390_skip_prologue): Likewise.
568 2008-01-10 Doug Evans <dje@google.com>
570 * defs.h (struct continuation_arg): Fix typo in comment.
571 * target.c (target_translate_tls_address): Fix comment spelling error.
573 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
575 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
576 (DOUBLEST_SCAN_FORMAT): Likewise.
577 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
578 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
579 * c-exp.y (parse_number): Likewise.
580 * jv-exp.y (parse_number): Likewise.
581 * objc-exp.y (parse_number): Likewise.
582 * p-exp.y (parse_number): Likewise.
584 2008-01-09 Joel Brobecker <brobecker@adacore.com>
586 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
587 (check_typedef): Likewise.
589 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
591 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
592 seen_double_big_d, treat the new H, D, and DD modifiers as length
595 2008-01-08 Joel Brobecker <brobecker@adacore.com>
597 * dwarf2read.c (read_enumeration_type): Add comment.
599 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
601 * config.in: Regenerate.
603 2008-01-08 Joel Brobecker <brobecker@adacore.com>
605 * ada-lang.c (ada_convert_actual): Renames convert_actual.
607 (ada_convert_actuals): Delete.
608 * ada-lang.h (ada_convert_actual): Add declaration.
609 (ada_convert_actuals): Remove declaration.
610 * infcall.c: #include "ada-lang.h".
611 (value_arg_coerce): Add new parameter sp. Update function
612 documetnation. Add handling of Ada function call parameters.
613 * Makefile.in (infcall.o): Update dependencies.
615 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
617 * ada-lang.c (ensure_lval): Fix value lval kind.
618 (convert_actual): Add handling for arguments passed by reference.
620 2008-01-08 Doug Evans <dje@google.com>
622 * dbxread.c (read_dbx_symtab): Fix indentation.
624 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
626 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
627 (valarith.o): Depend on dfp.h.
628 (valops.o): Likewise.
629 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
630 (set_decnumber_context): New function.
631 (decimal_check_errors): Likewise.
632 (decimal_from_number): Likewise.
633 (decimal_to_number): Likewise.
634 (decimal_from_string): Use set_decnumber_context and
635 decimal_check_errors.
636 (decimal_from_integral): New function.
637 (decimal_from_floating): Likewise.
638 (decimal_to_double): Likewise.
639 (promote_decimal): Likewise.
640 (decimal_binop): Likewise.
641 (decimal_is_zero): Likewise.
642 (decimal_compare): Likewise.
643 (decimal_convert): Likewise.
644 * dfp.h (decimal_from_integral): New prototype.
645 (decimal_from_floating): Likewise.
646 (decimal_to_double): Likewise.
647 (decimal_binop): Likewise.
648 (decimal_is_zero): Likewise.
649 (decimal_compare): Likewise.
650 (decimal_convert): Likewise.
651 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
652 call to value_from_decfloat.
653 * valarith.c: Include dfp.h.
654 (value_args_as_decimal): New function.
655 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
656 (value_logical_not): Likewise.
657 (value_equal): Likewise.
658 (value_less): Likewise.
659 (value_pos): Likewise.
660 (value_neg): Formatting fix.
661 * valops.c: Include dfp.h.
662 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
663 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
664 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
665 (value_from_decfloat): Remove expect_type argument.
666 * value.h (value_from_decfloat): Update prototype.
668 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
670 Ignore change in name of dynamic linker during
671 execution on Solaris. This also unbreaks pending breakpoints.
673 * solist.h (struct target_so_ops): New field same.
674 * solib-svr4.c (svr4_same): New.
675 (_initialize_svr4_solib): Register svr4_same.
676 * solib.c (update_solib_list): Use ops->same, if available.
678 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
680 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
681 when using MS-DOS paths.
683 2008-01-05 Pedro Alves <pedro@codesourcery.com>
685 * NEWS: Mention --pid and --core command line behaviour changes.
687 2008-01-05 Pedro Alves <pedro@codesourcery.com>
689 * main.c (captured_main): Remove 'count' varible and the
690 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
691 --pid options were issued simultaneously. If an explicit pid
692 option was passed, don't fallback to core file. Detect extra
693 arguments better in the presence of explicit pid or core
696 2008-01-05 Joel Brobecker <brobecker@adacore.com>
698 * ada-lang.c (ada_which_variant_applies): Correctly compute
699 the value of the discriminant when the variant record is packed.
701 2008-01-04 Joel Brobecker <brobecker@adacore.com>
703 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
704 that are used to differentiate homonyms.
706 2008-01-04 Jerome Guitton <guitton@adacore.com>
708 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
709 when the type is an anonymous pointer type.
710 (ada_check_typedef): Avoid a seg fault when the type is null.
711 * ada-typeprint.c (print_array_type): Add support for pointer
714 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
716 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
718 2008-01-04 Joel Brobecker <brobecker@adacore.com>
720 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
721 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
723 2008-01-04 Joel Brobecker <brobecker@adacore.com>
725 * ada-exp.y (chop_separator): New function.
726 (write_selectors): Rewrite to re-use chop_separator.
727 (ada_nget_field_index, get_symbol_field_type): New functions.
728 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
731 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
733 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
734 of SYMBOL_VALUE when working with function symbols.
736 2008-01-03 Joel Brobecker <brobecker@adacore.com>
738 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
739 expressions. These expressions do not need to be rewriten.
741 2008-01-03 Joel Brobecker <brobecker@adacore.com>
743 * dwarf2read.c (read_enumeration_type): Flag type as stub if
744 the given die is a declaration.
746 2008-01-03 Joel Brobecker <brobecker@adacore.com>
748 * ada-lang.c (ada_array_bound_from_type): Make non-static.
749 Handle properly the case when the index type is an enumerated type.
750 Do not return the subtype of the bounds type, just return the
751 bounds type directly - this is not needed and is more consistent
752 with what we do for arrays when no XA parallel type exists.
754 2008-01-03 Joel Brobecker <brobecker@adacore.com>
756 * ada-lang.c (static_unwrap_type): Add forward declaration.
757 (template_to_static_fixed_type): Fields of dynamic types sometimes
758 also need to be unwrapped. Take this into account.
759 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
760 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
761 * ada-typeprint.c (ada_print_type): Get the typename from
762 the original type, not the base type.
764 2008-01-03 Jerome Guitton <guitton@adacore.com>
766 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
767 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
768 Update calls to ada_to_fixed_type.
769 (ada_template_to_fixed_record_type_1): Ditto, but without looking
771 (ada_to_fixed_type): Add check_tag parameter; do not look for
772 tag if null. When looking for a tag, use a fixed record type.
773 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
774 * ada-valprint.c (printable_val_type, ada_value_print): Update
775 calls to ada_to_fixed_type.
777 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
779 * doublest.c (convert_floatformat_to_doublest): Call
780 floatformat_to_doublest instead of floatformat_to_double and use
782 (convert_doublest_to_floatformat): Call floatformat_from_doublest
783 instead of floatformat_from_double and use DOUBLEST variables.
785 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
787 * MAINTAINERS (Write After Approval): Add self.
789 2008-01-03 Joel Brobecker <brobecker@adacore.com>
791 * symfile.c (set_initial_language): Make non-static.
792 * symfile.h (set_initial_language): Add declaration.
793 * language.c: #include "symfile.h".
794 (set_language): Call set_initial_language if the frame language
795 could not be determined.
797 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
799 * eval.c (evaluate_subexp_for_address): Provide frame address to
800 locate_var_value only if it will be needed.
802 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
804 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
806 2008-01-02 Joel Brobecker <brobecker@adacore.com>
808 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
809 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
810 This is needed to make sure that any other treatment applied
811 to the resulting value does not fail for spurious reason,
812 such as trying to take the address of this value.
814 2008-01-02 Joel Brobecker <brobecker@adacore.com>
816 * ada-lang.c (ada_value_equal): Dereference reference types when
819 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
821 Updated copyright notices for most files.
823 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
825 * win32-nat.c (psapi_module_handle): Remove static.
826 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
827 return first module found if base_address is zero. Don't initialize
828 psapi function pointers here. Convert to cygwin paths when
830 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
831 executable name. Use get_module_name when that fails or when
833 (_initialize_psapi): New function. Initialize psapi stuff before it is
834 needed or issue a warning if it is not found. Move psapi_module_handle
837 2008-01-01 Joel Brobecker <brobecker@adacore.com>
839 * ada-lang.c (ada_remove_trailing_digits): New function.
840 (ada_remove_po_subprogram_suffix): New function.
841 (ada_decode): Improve. Move the description of the algorithm
842 directly inside the code, instead of in the function global
845 2008-01-01 Joel Brobecker <brobecker@adacore.com>
847 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
848 and always print the dereferenced value.
850 2008-01-01 Joel Brobecker <brobecker@adacore.com>
852 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
853 of the case where the first argument is a reference.
854 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
856 2008-01-01 Joel Brobecker <brobecker@adacore.com>
858 Implement support for Ada interface types.
860 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
861 (ada_is_ignored_field): Ignore fields that are a dispatch table
864 2008-01-01 Joel Brobecker <brobecker@adacore.com>
866 * top.c (print_gdb_version): Update copyright year.
868 2008-01-01 Joel Brobecker <brobecker@adacore.com>
870 * ChangeLog-2007: New ChangeLog rotation.
871 * ChangeLog: Reset for 2008.
872 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
875 For older changes see ChangeLog-2007.
881 version-control: never