1 2008-02-20 Markus Deuling <deuling@de.ibm.com>
3 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
6 * gdbarch.{c,h}: Regenerate.
8 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10 * mem-break.c (default_memory_insert_breakpoint)
11 (default_memory_remove_breakpoint): Likewise.
12 * target.h (default_memory_remove_breakpoint)
13 (default_memory_insert_breakpoint): Likewise.
15 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
16 parameter. Replace current_gdbarch by gdbarch.
17 * m32r-tdep.c (m32r_memory_insert_breakpoint)
18 (m32r_memory_remove_breakpoint): Likewise.
20 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
22 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
24 2008-02-19 Joel Brobecker <brobecker@adacore.com>
26 * NEWS: Add entry describing Add support improvements.
28 2008-02-18 Markus Deuling <deuling@de.ibm.com>
30 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
33 2008-02-18 Markus Deuling <deuling@de.ibm.com>
35 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
36 register_offset_hack anymore.
38 * regcache.{c,h} (register_offset_hack): Remove.
40 2008-02-18 Markus Deuling <deuling@de.ibm.com>
42 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
44 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
45 current_gdbarch by gdbarch.
46 (hppa64_hpux_find_global_pointer): Likewise.
47 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
48 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
51 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
53 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
55 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
58 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
59 replace current_gdbarch by gdbarch.
60 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
62 2008-02-18 Markus Deuling <deuling@de.ibm.com>
64 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
65 and replace current_gdbarch by gdbarch.
67 (store_register): Update call for exec_one_dummy_insn.
68 (fetch_register, store_register): Update call of regmap.
70 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
71 parameter and replace current_gdbarch by gdbarch.
73 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
74 the current architecture. Update call for getregs_supplies and
76 (ppcnbsd_fetch_inferior_registers): Likewise.
78 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
79 replace current_gdbarch by gdbarch.
80 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
81 get_regcache_arch to get at the current architecture. Update call for
84 2008-02-18 Markus Deuling <deuling@de.ibm.com>
86 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
89 2008-02-15 Markus Deuling <deuling@de.ibm.com>
91 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
93 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
95 * NEWS: Mention pending breakpints in MI.
97 2008-02-14 Markus Deuling <deuling@de.ibm.com>
99 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
101 2008-02-13 Markus Deuling <deuling@de.ibm.com>
103 Add script to build and test GDB using enable-targets=all.
105 * gdb_buildall.sh: New file.
107 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
109 * NEWS (New native configurations): Xtensa GNU/Linux.
110 (New targets): Xtensa GNU/Linux.
111 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
113 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
114 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
115 * configure.tgt (xtensa*-*-linux*): New entry.
116 * xtensa-config.c (xtensa_tdep): New variable.
117 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
118 (rmap): Change format based on new macro XTREG.
119 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
120 * xtensa-linux-nat.c: New.
121 * xtensa-linux-tdep.c: New.
122 * xtensa-xtregs.c: New.
123 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
124 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
125 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
126 (xtensa_register_t): New field coprocessor.
127 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
128 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
129 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
130 Update to handle privileged registers.
131 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
132 (xtensa_push_dummy_call): Set windowstart register correctly.
133 (call0_analyze_prologue): Initialize xtensa_default_isa.
134 (xtensa_derive_tdep): New.
135 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
136 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
137 Call xtensa_derive_tdep().
138 * config/xtensa/linux.mh: New.
139 * regformats/reg-xtensa.dat: New.
141 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
143 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
144 (filenames.h): New include.
145 * Makefile.in (corelow.o): Add dependency for filenames.h.
147 2008-02-08 Doug Evans <dje@google.com>
149 * source.c (find_and_open_source): Always rewrite absolute filenames.
151 2008-02-07 Doug Evans <dje@google.com>
153 * breakpoint.c: #include "hashtab.h".
154 (ambiguous_names_p): New fn.
155 (update_breakpoint_locations): When restoring bp enable status, don't
156 compare function names if any functions have same name.
157 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
159 2008-02-07 Joel Brobecker <brobecker@adacore.com>
161 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
162 instead of just a VEC*. Update use of SV.
163 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
165 2007-02-07 Joel Brobecker <brobecker@adacore.com>
167 * NEWS: Put all new commands since gdb-6.7 together.
169 2007-02-07 Joel Brobecker <brobecker@adacore.com>
171 * ada-lang.c: #include "vec.h".
172 (struct string_vector, new_string_vector, string_vector_append):
174 (char_ptr): New typedef.
175 (DEF_VEC_P (char_ptr)): New VEC type.
176 (symbol_completion_add): Update profile to take the new VEC type
177 instead of the old string_vector structure. Update code accordingly.
178 (ada_make_symbol_completion_list): Use the new VEC type instead of
179 the old string_vector structure, and update the code accordingly.
180 * Makefile.in (ada-lang.o): Add dependency on vec.h.
182 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
184 * p-exp.y: Set current_type in missing places.
185 (leftdiv_is_integer): New static variable.
186 Typecast right operand of BINOP_DIV to long_double if both operands
189 2008-02-06 Maciej W. Rozycki <macro@mips.com>
191 * remote-mips.c (set_breakpoint): Rename to...
192 (mips_set_breakpoint): ... this.
193 (clear_breakpoint): Rename to...
194 (mips_clear_breakpoint): ... this.
195 (common_breakpoint): Rename to...
196 (mips_common_breakpoint): ... this.
197 (check_lsi_error): Rename to...
198 (mips_check_lsi_error): ... this.
200 2007-02-05 Joel Brobecker <brobecker@adacore.com>
202 * language.h (struct language_defn): Add new field
203 la_make_symbol_completion_list.
204 * symtab.c (default_make_symbol_completion_list): Renames
205 make_symbol_completion_list.
206 (make_symbol_completion_list): New function.
207 * symtab.h (default_make_symbol_completion_list): Add declaration.
208 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
209 (auto_language, local_language): Likewise.
210 * objc-lang.c (objc_language_defn): Likewise.
211 * scm-lang.c (scm_language_defn): Likewise.
212 * m2-lang.c (m2_language_defn): Likewise.
213 * f-lang.c (f_language_defn): Likewise.
214 * jv-lang.c (java_language_defn): Likewise.
215 * p-lang.c (pascal_language_defn): Likewise.
216 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
217 (minimal_language_defn): Likewise.
218 * ada-lang.c (struct string_vector): New structure.
219 (new_string_vector, string_vector_append, ada_unqualified_name)
220 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
221 (ada_make_symbol_completion_list): New functions.
222 (ada_language_defn): Set la_make_symbol_completion_list.
223 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
224 this function is static.
226 2008-02-05 Kevin Buettner <kevinb@redhat.com>
228 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
229 to account for call site optimizations.
231 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
233 * tracepoint.c (read_actions): Handle end-of-text indicator
234 in action list properly. (Committed by Jim Blandy)
236 2008-02-05 Jim Blandy <jimb@red-bean.com>
238 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
239 pseudoregister, not an internal error.
240 Reported by: Andrzej Zaborowski
242 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
244 * varobj.c (c_value_of_variable): Use xstrdup.
246 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
248 Update stored rendition of varobj value when format changes.
249 * varobj.c (varobj_set_display_format): Recomputed
251 (c_value_of_variable): Return print_value.
253 2008-02-03 Doug Evans <dje@google.com>
255 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
256 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
257 * valops.c (value_one): New function.
258 * value.h (value_one): Declare.
260 Fix argument promotion for binary arithmetic ops for C.
261 * valarith.c (unop_result_type): New fn.
262 (binop_result_type): New fn.
263 (value_binop): Move result type computation to binop_result_type.
264 (value_pos, value_neg, value_complement): Move result type
265 computation to unop_result_type.
268 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
269 Return basetype, fieldno if found. All callers updated.
270 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
272 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
273 * symfile.h (fill_in_vptr_fieldno): Delete.
275 2008-02-02 Doug Evans <dje@google.com>
277 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
279 * typeprint.c (*): Whitespace cleanup.
281 2008-02-02 Mark Kettenis <kettenis@gnu.org>
282 Luis Machado <luisgpm@br.ibm.com>
283 Thiago Jung Bauermann <bauerman@br.ibm.com>
285 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
286 don't fit into registerson the stack the way GCC does.
288 2008-02-01 Joel Brobecker <brobecker@adacore.com>
290 * symtab.c (symbol_set_names): Do not add an entry in the demangling
291 hash table for Ada symbols. Just store the linkage name as is,
292 and leave the demangled_name as NULL.
294 2007-02-01 Joel Brobecker <brobecker@adacore.com>
296 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
298 (new_symbol): Likewise.
300 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
302 * breakpoint.c (break_command_1): Return void.
303 (break_command_really): Return void. Rethrow
304 exceptions instead of returning.
305 (gdb_breakpoint): Remove the error_message parameter.
306 Return void. Rename to set_breakpoint.
307 * gdb.h (gdb_breakpoint): Rename and move to...
308 * breakpoint.h (set_breakpoint): ...here.
309 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
310 event hooks even if exception is thrown. Adjust to
311 gdb_breakpoint interface changes.
314 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
316 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
317 float in both first and second word in the doubleword, to support
320 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
322 Properly rethrow exception. This fixes errors
323 about non-existent functions for -break-insert.
324 * breakpoint.c (break_command_really): Use throw_exception
325 for rethrowing. If rethrowing, don't print the exception.
327 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
329 * NEWS: Mention Decimal Floating Point support.
331 2008-01-31 Joel Brobecker <brobecker@adacore.com>
333 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
334 value type to builtin_type_void_func_ptr.
336 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
338 * s390-tdep.c (is_float_singleton, is_float_like,
339 alignment_of, s390_return_value): Make checks for
340 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
342 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
343 Thiago Jung Bauermann <bauerman@br.ibm.com>
345 * infcmd.c (default_print_registers_info): Also print hex
346 raw contents for TYPE_CODE_DECFLOAT registers.
347 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
348 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
349 (rs6000_register_name): Add support for DFP pseudo-registers.
350 (rs6000_pseudo_register_type): Likewise.
351 rs6000_pseudo_register_reggroup_p): Likewise.
352 (ppc_pseudo_register_read): New function.
353 (ppc_pseudo_register_write): Likewise.
354 (rs6000_pseudo_register_read): Likewise.
355 (rs6000_pseudo_register_write): Likewise.
356 (e500_pseudo_register_read): Move checks to
357 rs6000_pseudo_register_read.
358 (e500_pseudo_register_write): Move checks to
359 rs6000_pseudo_register_write.
360 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
361 rs6000_pseudo_register_read and rs6000_pseudo_register_write
362 in gdbarch if SPE or DFP is available. Adjust gdbarch's
363 num_pseudo_regs to account for DFP pseudo regs.
365 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
367 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
368 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
369 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
370 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
371 e500_pseudo_register_read, e500_pseudo_register_write): Use
372 IS_SPE_PSEUDOREG macro.
373 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
374 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
375 Remove initialization of tdep->ppc_ev31_regnum.
377 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
379 * printcmd.c (print_formatted): Handle references as for unformatted
382 2008-01-30 Joel Brobecker <brobecker@adacore.com>
384 * eval.c (evaluate_subexp_standard): Add handling of user
385 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
387 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
389 * eval.c (evaluate_subexp_standard): Support
392 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
394 * valarith.c (value_binop): Add floating-point BINOP_MIN and
396 For BINOP_EXP, use length and signedness of left operand only for
397 result, as for shifts.
398 For integral operands to BINOP_EXP, use new integer_pow and
399 uinteger_pow functions so as to get full range of results.
400 (integer_pow): New function.
401 (uinteger_pow): New function.
403 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
405 Use vector for varobj_list_children interface.
406 * gdb/varobj.c (varobj_list_children): Return vector
408 * gdb/varobj.h (varobj_list_children): Adjust
410 (varobj_p): Declare. Declare vector thereof.
411 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
412 for varobj_list_children change.
413 * Makefile.in (varobj_h): Update dependencies.
415 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
417 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
418 TYPE_CODE_DECFLOAT arguments.
419 (ppc64_sysv_abi_push_dummy_call) Likewise.
420 (get_decimal_float_return_value): New function.
421 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
422 values by calling get_decimal_float_return_value.
423 (ppc64_sysv_abi_return_value): Likewise.
425 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
427 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
428 for preprocessor macro information. Formatting changes.
430 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
432 * remote.c (struct remote_state): Add cached_wait_status.
433 (remote_exec_file): New variable.
434 (PACKET_vAttach, PACKET_vRun): New constants.
435 (extended_remote_restart): Do not query for status.
436 (struct start_remote_args): New.
437 (remote_start_remote): Take it as a second argument. Check
438 whether the target is running. Issue an error for non-running
439 non-extended targets. Cache the wait status. Set inferior_ptid
441 (remote_open_1): Prompt to disconnect non-running targets. Make
442 sure the target is marked running. Do not set inferior_ptid here.
443 Update call to remote_start_remote. Do not call remote_check_symbols
444 if the target is not running.
445 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
446 argument. Handle a non-running target.
447 (remote_detach): Use it.
448 (extended_remote_detach): New.
449 (remote_disconnect): Fix typo. Use remoute_mourn_1.
450 (extended_remote_attach_1, extended_remote_attach)
451 (extended_async_remote_attach): New.
452 (remote_vcont_resume): Remove unused variable.
453 (remote_wait, remote_async_wait): Use any cached wait status.
454 (putpkt_binary, getpkt): Clear any cached wait status.
455 (extended_remoute_mourn_1): New.
456 (extended_remote_mourn): Use it.
457 (extended_async_remote_mourn, extended_remote_run): New.
458 (extended_remote_create_inferior_1): New.
459 (extended_remote_create_inferior): Use it.
460 (extended_remote_async_create_inferior): Likewise.
461 (remote_xfer_partial): Skip for non-executing targets.
462 (init_extended_remote_ops): Set to_detach and to_attach.
463 (init_extended_async_remote_ops): Likewise. Use
464 extended_async_remote_mourn.
465 (_initialize_remote): Register vAttach, vRun, and
466 set remote exec-file.
467 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
469 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
471 * Makefile.in (symfile.o): Update.
472 * NEWS: Mention exec tracing support.
473 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
475 * infcmd.c (kill_if_already_running, detach_command)
476 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
477 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
478 (follow_exec): Do not check may_follow_exec. Do not mourn and push
479 targets. Apply the sysroot path to the loaded executable. Use
481 * linux-nat.c (linux_child_follow_fork): Print fork following
483 (kill_wait_callback): Kill again before waiting a second time.
484 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
487 2008-01-29 Joel Brobecker <brobecker@adacore.com>
489 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
491 2008-01-29 Joel Brobecker <brobecker@adacore.com>
493 * nto-tdep.h: Remove #include "defs.h".
494 * nto-tdep.c: Add #include "defs.h".
495 * Makefile.in (nto_tdep_h): Update dependencies.
496 (nto-tdep.o): Likewise.
498 2008-01-29 Joel Brobecker <brobecker@adacore.com>
500 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
502 (proceed, start_remote): Update call to wait_for_inferior.
503 * inferior.h (wait_for_inferior): Update declaration.
504 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
505 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
506 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
507 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
509 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
511 * varobj (adjust_value_for_child_access): Added checking for
512 returned value from gdb_value_ind.
513 (c_describe_child): Likewise.
514 (cplus_describe_child): Fixed a typo.
516 2008-01-29 Jim Blandy <jimb@red-bean.com>
518 * MAINTAINERS: Update my info.
520 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
522 Use multiple locations for hardware watchpoints.
523 This eliminates the need to traverse value chain, doing
524 various checks, in three different places.
526 * breakpoint.h (struct bp_location): New fields
527 lengths and watchpoint_type.
528 (struct breakpoint): Remove the val_chain field.
529 * breakpoint.c (is_hardware_watchpoint): New.
530 (free_valchain): Remove.
531 (update_watchpoint): New.
532 (insert_bp_location): For hardware watchpoint, just
534 (insert_breakpoints): Call update_watchpoint_locations
535 on all watchpoints. If we have failed to insert
536 any location of a hardware watchpoint, remove all inserted
538 (remove_breakpoint): For hardware watchpoints, directly
540 (watchpoints_triggered): Iterate over locations.
541 (bpstat_stop_status): Use only first location of
542 a resource watchpoint.
543 (delete_breakpoint): Don't call free_valchain.
544 (print_one_breakpoint): Don't print all
545 locations for watchpoints.
546 (breakpoint_re_set_one): Use update_watchpoint for
549 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
551 Don't reset watchpoint block on solib load.
553 * breakpoint.c (insert_bp_location): For watchpoints,
555 (breakpoint_re_set_one): Instead of recomputing value
556 and condition for watchpoints, just reset value and
557 let insert_breakpoints/insert_bp_location recompute it.
558 Don't do anything about disabled watchpoint.
560 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
562 * valarith.c (value_binop): Handle unsigned integer
565 2008-01-28 Kevin Buettner <kevinb@redhat.com>
567 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
568 instruction pattern that appears frequently in position
569 independent code. Fix bug in code which looks for "fmov" and
570 backtracks if no "fmov" is found.
572 2008-01-28 Doug Evans <dje@google.com>
574 * dbxread.c (read_dbx_symtab): Fix indentation.
575 Reformat comments to 80 columns.
576 Move local var def closer to only use.
578 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
580 * fork-child.c (SHELL_FILE): Remove #ifndef.
581 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
583 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
585 * i386-tdep.c (i386_skip_noop): New function.
586 (i386_analyze_prologue): Call i386_skip_noop function.
588 2008-01-24 Michael Snyder <msnyder@specifix.com>
590 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
591 * win32-nat.c (win32_xfer_partial): Ditto.
592 * target.c (default_xfer_partial): Minor whitespace adjustment.
594 2008-01-24 Pedro Alves <pedro@codesourcery.com>
596 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
597 strip bit 1 even if pc doesn't point to thumb code.
599 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
601 * remote.c (remote_wait): Handle SIGINT between packets.
602 (remote_async_wait): Likewise.
604 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
605 Chris Demetriou <cgd@google.com>
607 * thread.c (add_thread_silent): Renamed
609 (print_thread_events): New variable definition.
610 (show_print_thread_events): New function.
611 (_initialize_thread): Add "set print thread-events" and
612 "show print thread-events" commands.
613 (add_thread): Announce new thread.
614 * gdbthread.h (add_thread_silent): Declare.
615 (print_thread_events): New variable declaration.
616 * inf-ttrace.c (inf_ttrace_wait): Don't
617 inform about new thread, as add_thread is always
618 called too, and will take care of that.
619 * infrun.c (handle_inferior_event): Likewise.
620 * procfs.c (procfs_wait): Likewise.
621 * remote.c (remote_currthread): Likewise.
622 * sol-thread.c (sol_thread_wait): Likewise.
623 * win32-nat.c (get_win32_debug_event): Likewise.
624 * linux-thread-db.c (attach_thread): Likewise.
625 Remove the verbose parameter.
626 (check_event): Make detach_thread be verbose
627 only if print_thread_events is set.
628 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
629 about new thread. This is called only from
630 linux-thread-db.c:attach_thread, which will take care.
631 Remove the verbose parameter.
632 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
634 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
636 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
638 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
640 * breakpoint.c (break_command_really): New parameter
642 (break_command_1): Pass 0 as
643 ignore_count to break_command_really.
644 (gdb_breakpoint): Pass ignore_count to
645 break_command_really.
647 2008-01-21 Kevin Buettner <kevinb@redhat.com>
649 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
650 sigcontext struct via pointer.
651 (struct sigframe comment): Update to show new field `psc'.
653 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
655 * infrun.c (handle_inferior_event): If
656 we failed to remove breakpoints, error,
657 don't try to increment PC by hand.
659 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
661 Add NetBSD/hppa target and host support.
663 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
664 (hppabsd_gregset): Move to ...
665 (hppabsd_regset_from_core_section): Rename
666 hppaobsd_regset_from_core_section and move to ...
667 (hppabsd_find_global_pointer): Update comment.
668 (hppabsd_init_abi): Make global. Do not register
669 hppabsd_regset_from_core_section.
670 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
672 (_initialize_hppabsd_tdep): Move to ...
673 * hppaobsd-tdep.c: ... here. New file.
674 * hppnbsd-tdep.c: New file.
675 * hppnbsd-nat.c: New file.
676 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
677 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
678 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
679 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
680 * configure.host (hppa*-*-netbsd*): New entry.
681 * configure.tgt (hppa*-*-netbsd*): New entry.
682 (hppa*-*-openbsd*): Update.
683 * NEWS (New native configuration): Mention NetBSD/hppa.
684 (New targets): Mention NetBSD/hppa.
686 2008-01-18 Markus Deuling <deuling@de.ibm.com>
688 * gdbarch.sh (function_list): Add new property bits_big_endian to
690 * gdbarch.{c,h}: Regenerate.
692 * value.c (struct value): Replace BITS_BIG_ENDIAN by
693 gdbarch_bits_big_endian (comment).
694 (unpack_field_as_long, modify_field): Likewise.
695 * value.h: Likewise (comment).
696 * valops.c (value_slice): Likewise.
697 * valarith.c (value_subscript, value_bit_index): Likewise.
698 * gdbtypes.h (field): Likewise (comment).
699 * eval.c (evaluate_subexp_standard): Likewise.
700 * dwarf2read.c (dwarf2_add_field): Likewise.
701 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
702 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
704 * defs.h (BITS_BIG_ENDIAN): Remove.
706 2008-01-18 Markus Deuling <deuling@de.ibm.com>
708 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
710 * m2-exp.y (yylex): Likewise.
711 * objc-exp.y (yylex): Likewise.
713 * defs.h (DEPRECATED_STREQN): Remove.
715 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
717 * MAINTAINERS: Update my email address.
719 2008-01-17 Jim Blandy <jimb@codesourcery.com>
721 * README: Mention gdbserver/README.
723 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
725 * valarith.c (value_binop): Handle BINOP_INTDIV
726 for unsigned and signed integers.
728 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
730 * s390-tdep.c (s390_gdbarch_init): Set default long double
731 type to 128-bit IEEE quad.
733 2008-01-17 Joel Brobecker <brobecker@adacore.com>
735 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
737 2008-01-16 Mark Kettenis <kettenis@gnu.org>
739 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
741 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
742 * value.c: All callers changed.
744 2008-01-16 Markus Deuling <deuling@de.ibm.com>
746 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
747 DEPRECATED_STREQ by its expression.
748 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
749 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
750 (scan_xcoff_symtab): Likewise.
751 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
752 * f-lang.c (find_common_for_function): Likewise.
753 * objc-exp.y (parse_number): Likewise.
755 * defs.h (DEPRECATED_STREQ): Remove.
757 2008-01-16 Markus Deuling <deuling@de.ibm.com>
759 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
760 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
761 get_frame_arch to get at the current_architecture. Update AM33_MODE
763 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
764 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
766 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
768 2008-01-16 Markus Deuling <deuling@de.ibm.com>
770 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
772 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
774 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
775 current_gdbarch by gdbarch. Update caller.
777 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
778 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
779 the current architecture. Update calls of
780 amd64_native_gregset_supplies_p.
781 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
782 (amd64bsd_store_inferior_registers): Likewise.
784 2008-01-16 Markus Deuling <deuling@de.ibm.com>
786 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
787 Replace current_gdbarch by gdbarch. Update caller.
789 2008-01-16 Markus Deuling <deuling@de.ibm.com>
791 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
792 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
793 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
794 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
795 (stabsect_build_psymtabs): Fix indentation.
797 2008-01-15 Michael Snyder <msnyder@specifix.com>
799 * corelow.c (core_xfer_partial): Comment, cut/paste error.
801 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
803 * win32-nat.c (win32_create_inferior): Restore code calling
804 CloseHandle on ProcessInformation structure.
806 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
808 * configure.ac: Check for void * as 3 argument of ptrace.
809 * configure: regenerate.
811 2008-01-11 Markus Deuling <deuling@de.ibm.com>
813 * alpha-tdep.c (alpha_heuristic_proc_start)
814 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
815 current_gdbarch by gdbarch.
817 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
818 current architecture by frame_info. Update alpha_heuristic_proc_start
821 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
822 get_frame_arch to get at the current architecture by frame_info. Update
823 alpha_sigtramp_register_address call.
825 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
826 current_gdbarch by gdbarch. Update caller.
827 (convert_to_extended, convert_from_extended): Add endianess parameter
828 for comparison. Update caller.
829 (arm_extract_return_value, arm_store_return_value): Use
830 get_regcache_arch to get at the current architecture.
832 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
833 current_gdbarch by gdbarch. Update caller.
834 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
835 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
837 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
838 gdbarch as parameter. Update caller.
839 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
840 current_gdbarch by gdbarch. Update caller.
842 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
843 update caller. Replace current_gdbarch by gdbarch.
845 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
846 the current architecture. Replace current_gdbarch by gdbarch.
847 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
848 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
849 expression. Add gdbarch as parameter and replace current_gdbarch with
851 (M6811_TDEP): Remove.
852 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
854 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
855 current_gdbarch by gdbarch. Update caller.
857 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
859 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
862 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
863 caller. Relace current_gdbarch by gdbarch.
864 (altivec_register_p, spe_register_p): Likewise.
865 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
867 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
868 altivec_register_p and spe_register_p.
870 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
871 caller. Replace current_gdbarch by gdbarch.
872 (score_analyze_prologue): use get_frame_arch to get at the current
875 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
876 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
877 current_gdbarch by gdbarch. Update caller.
878 (sparc_frame_cache): Use get_frame_arch to get at the current
880 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
881 sparc_analyze_prologue.
883 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
886 2008-01-11 Markus Deuling <deuling@de.ibm.com>
888 * exec.c: #include "arch-utils.h"
889 (print_section_info): Use gdbarch_from_bfd to get at the
890 current architecture. Replace current_gdbarch. Fix indention. Replace
891 deprecated_print_address_numeric by paddress.
892 * Makefile.in (exec.o) Add dependency to arch-utils.h.
894 * valprint.c (val_print_string): Replace
895 deprecated_print_address_numeric.
896 * tracepoint.c (trace_mention, scope_info): Likewise.
897 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
898 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
899 (maintenance_check_symtabs): Likewise.
900 * symfile.c (list_overlays_command): Likewise.
901 * stack.c (frame_info, print_block_frame_labels): Likewise.
902 * printcmd.c (print_address, print_address_demangle)
903 (address_info): Likewise.
904 * corefile.c (memory_error): Likewise.
905 * infcmd.c (jump_command): Likewise.
906 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
907 (mention, delete_breakpoint): Likewise.
908 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
909 * dwarf2read.c (dump_die): Likewise.
910 * ada-valprint.c (ada_val_print_1): Likewise.
911 * f-valprint.c (f_val_print): Likewise.
912 * linux-fork.c (info_forks_command): Likewise.
913 * m32r-com.c (m32r_load_section, m32r_load)
914 (m32r_upload_command): Likewise.
916 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
918 2008-01-11 Markus Deuling <deuling@de.ibm.com>
920 * gdbarch.sh (skip_prologue): Add gdbarch
922 * gdbarch.{c,h}: Regenerate.
924 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
925 * amd64-tdep.c (amd64_skip_prologue): Likewise.
926 * avr-tdep.c (avr_skip_prologue): Likewise.
927 * cris-tdep.c (cris_skip_prologue): Likewise.
928 * frv-tdep.c (frv_skip_prologue): Likewise.
929 * h8300-tdep.c (h8300_skip_prologue): Likewise.
930 * hppa-tdep.c (hppa_skip_prologue): Likewise.
931 * i386-tdep.c (i386_skip_prologue): Likewise.
932 * ia64-tdep.c (ia64_skip_prologue): Likewise.
933 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
934 * m32r-tdep.c (m32r_skip_prologue): Likewise.
935 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
936 * m68k-tdep.c (m68k_skip_prologue): Likewise.
937 * m88k-tdep.c (m88k_skip_prologue): Likewise.
938 * mep-tdep.c (mep_skip_prologue): Likewise.
939 * mips-tdep.c (mips_skip_prologue): Likewise.
940 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
941 * mt-tdep.c (mt_skip_prologue): Likewise.
942 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
943 * score-tdep.c (score_skip_prologue): Likewise.
944 * sh64-tdep.c (sh64_skip_prologue): Likewise.
945 * sh-tdep.c (sh_skip_prologue): Likewise.
946 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
947 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
948 * spu-tdep.c (spu_skip_prologue): Likewise.
949 * v850-tdep.c (v850_skip_prologue): Likewise.
950 * vax-tdep.c (vax_skip_prologue): Likewise.
951 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
952 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
954 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
955 current_gdbarch by gdbarch.
956 * m32c-tdep.c (m32c_skip_prologue): Likewise.
957 * s390-tdep.c (s390_skip_prologue): Likewise.
959 2008-01-10 Doug Evans <dje@google.com>
961 * defs.h (struct continuation_arg): Fix typo in comment.
962 * target.c (target_translate_tls_address): Fix comment spelling error.
964 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
966 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
967 (DOUBLEST_SCAN_FORMAT): Likewise.
968 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
969 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
970 * c-exp.y (parse_number): Likewise.
971 * jv-exp.y (parse_number): Likewise.
972 * objc-exp.y (parse_number): Likewise.
973 * p-exp.y (parse_number): Likewise.
975 2008-01-09 Joel Brobecker <brobecker@adacore.com>
977 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
978 (check_typedef): Likewise.
980 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
982 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
983 seen_double_big_d, treat the new H, D, and DD modifiers as length
986 2008-01-08 Joel Brobecker <brobecker@adacore.com>
988 * dwarf2read.c (read_enumeration_type): Add comment.
990 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
992 * config.in: Regenerate.
994 2008-01-08 Joel Brobecker <brobecker@adacore.com>
996 * ada-lang.c (ada_convert_actual): Renames convert_actual.
998 (ada_convert_actuals): Delete.
999 * ada-lang.h (ada_convert_actual): Add declaration.
1000 (ada_convert_actuals): Remove declaration.
1001 * infcall.c: #include "ada-lang.h".
1002 (value_arg_coerce): Add new parameter sp. Update function
1003 documetnation. Add handling of Ada function call parameters.
1004 * Makefile.in (infcall.o): Update dependencies.
1006 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1008 * ada-lang.c (ensure_lval): Fix value lval kind.
1009 (convert_actual): Add handling for arguments passed by reference.
1011 2008-01-08 Doug Evans <dje@google.com>
1013 * dbxread.c (read_dbx_symtab): Fix indentation.
1015 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1017 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1018 (valarith.o): Depend on dfp.h.
1019 (valops.o): Likewise.
1020 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1021 (set_decnumber_context): New function.
1022 (decimal_check_errors): Likewise.
1023 (decimal_from_number): Likewise.
1024 (decimal_to_number): Likewise.
1025 (decimal_from_string): Use set_decnumber_context and
1026 decimal_check_errors.
1027 (decimal_from_integral): New function.
1028 (decimal_from_floating): Likewise.
1029 (decimal_to_double): Likewise.
1030 (promote_decimal): Likewise.
1031 (decimal_binop): Likewise.
1032 (decimal_is_zero): Likewise.
1033 (decimal_compare): Likewise.
1034 (decimal_convert): Likewise.
1035 * dfp.h (decimal_from_integral): New prototype.
1036 (decimal_from_floating): Likewise.
1037 (decimal_to_double): Likewise.
1038 (decimal_binop): Likewise.
1039 (decimal_is_zero): Likewise.
1040 (decimal_compare): Likewise.
1041 (decimal_convert): Likewise.
1042 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1043 call to value_from_decfloat.
1044 * valarith.c: Include dfp.h.
1045 (value_args_as_decimal): New function.
1046 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1047 (value_logical_not): Likewise.
1048 (value_equal): Likewise.
1049 (value_less): Likewise.
1050 (value_pos): Likewise.
1051 (value_neg): Formatting fix.
1052 * valops.c: Include dfp.h.
1053 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1054 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1055 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1056 (value_from_decfloat): Remove expect_type argument.
1057 * value.h (value_from_decfloat): Update prototype.
1059 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1061 Ignore change in name of dynamic linker during
1062 execution on Solaris. This also unbreaks pending breakpoints.
1064 * solist.h (struct target_so_ops): New field same.
1065 * solib-svr4.c (svr4_same): New.
1066 (_initialize_svr4_solib): Register svr4_same.
1067 * solib.c (update_solib_list): Use ops->same, if available.
1069 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1071 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1072 when using MS-DOS paths.
1074 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1076 * NEWS: Mention --pid and --core command line behaviour changes.
1078 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1080 * main.c (captured_main): Remove 'count' varible and the
1081 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1082 --pid options were issued simultaneously. If an explicit pid
1083 option was passed, don't fallback to core file. Detect extra
1084 arguments better in the presence of explicit pid or core
1087 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1089 * ada-lang.c (ada_which_variant_applies): Correctly compute
1090 the value of the discriminant when the variant record is packed.
1092 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1094 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1095 that are used to differentiate homonyms.
1097 2008-01-04 Jerome Guitton <guitton@adacore.com>
1099 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1100 when the type is an anonymous pointer type.
1101 (ada_check_typedef): Avoid a seg fault when the type is null.
1102 * ada-typeprint.c (print_array_type): Add support for pointer
1105 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1107 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1109 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1111 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1112 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1114 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1116 * ada-exp.y (chop_separator): New function.
1117 (write_selectors): Rewrite to re-use chop_separator.
1118 (ada_nget_field_index, get_symbol_field_type): New functions.
1119 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1122 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1124 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1125 of SYMBOL_VALUE when working with function symbols.
1127 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1129 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1130 expressions. These expressions do not need to be rewriten.
1132 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1134 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1135 the given die is a declaration.
1137 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1139 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1140 Handle properly the case when the index type is an enumerated type.
1141 Do not return the subtype of the bounds type, just return the
1142 bounds type directly - this is not needed and is more consistent
1143 with what we do for arrays when no XA parallel type exists.
1145 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1147 * ada-lang.c (static_unwrap_type): Add forward declaration.
1148 (template_to_static_fixed_type): Fields of dynamic types sometimes
1149 also need to be unwrapped. Take this into account.
1150 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1151 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1152 * ada-typeprint.c (ada_print_type): Get the typename from
1153 the original type, not the base type.
1155 2008-01-03 Jerome Guitton <guitton@adacore.com>
1157 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1158 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1159 Update calls to ada_to_fixed_type.
1160 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1162 (ada_to_fixed_type): Add check_tag parameter; do not look for
1163 tag if null. When looking for a tag, use a fixed record type.
1164 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1165 * ada-valprint.c (printable_val_type, ada_value_print): Update
1166 calls to ada_to_fixed_type.
1168 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1170 * doublest.c (convert_floatformat_to_doublest): Call
1171 floatformat_to_doublest instead of floatformat_to_double and use
1173 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1174 instead of floatformat_from_double and use DOUBLEST variables.
1176 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1178 * MAINTAINERS (Write After Approval): Add self.
1180 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1182 * symfile.c (set_initial_language): Make non-static.
1183 * symfile.h (set_initial_language): Add declaration.
1184 * language.c: #include "symfile.h".
1185 (set_language): Call set_initial_language if the frame language
1186 could not be determined.
1188 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1190 * eval.c (evaluate_subexp_for_address): Provide frame address to
1191 locate_var_value only if it will be needed.
1193 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1195 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1197 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1199 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1200 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1201 This is needed to make sure that any other treatment applied
1202 to the resulting value does not fail for spurious reason,
1203 such as trying to take the address of this value.
1205 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1207 * ada-lang.c (ada_value_equal): Dereference reference types when
1210 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1212 Updated copyright notices for most files.
1214 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1216 * win32-nat.c (psapi_module_handle): Remove static.
1217 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1218 return first module found if base_address is zero. Don't initialize
1219 psapi function pointers here. Convert to cygwin paths when
1221 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1222 executable name. Use get_module_name when that fails or when
1224 (_initialize_psapi): New function. Initialize psapi stuff before it is
1225 needed or issue a warning if it is not found. Move psapi_module_handle
1228 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1230 * ada-lang.c (ada_remove_trailing_digits): New function.
1231 (ada_remove_po_subprogram_suffix): New function.
1232 (ada_decode): Improve. Move the description of the algorithm
1233 directly inside the code, instead of in the function global
1236 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1238 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1239 and always print the dereferenced value.
1241 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1243 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1244 of the case where the first argument is a reference.
1245 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1247 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1249 Implement support for Ada interface types.
1251 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1252 (ada_is_ignored_field): Ignore fields that are a dispatch table
1255 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1257 * top.c (print_gdb_version): Update copyright year.
1259 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1261 * ChangeLog-2007: New ChangeLog rotation.
1262 * ChangeLog: Reset for 2008.
1263 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1266 For older changes see ChangeLog-2007.
1272 version-control: never