| 1 | 2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr> |
| 2 | |
| 3 | * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro. |
| 4 | Replace BSZ macro uses by XTENSA_ISA_BSZ macro. |
| 5 | |
| 6 | 2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 7 | |
| 8 | PR fortran/9806 |
| 9 | * dwarf2read.c (process_die <DW_TAG_module>, read_module) |
| 10 | (scan_partial_symbols <DW_TAG_module>, add_partial_module): New. |
| 11 | |
| 12 | 2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr> |
| 13 | |
| 14 | * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR |
| 15 | for DW_ATE_signed_char and DW_ATE_unsigned_char |
| 16 | for pascal language. |
| 17 | |
| 18 | 2009-02-11 Jim Meyering <meyering@redhat.com> |
| 19 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 20 | |
| 21 | Avoid NULL dereference. |
| 22 | * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun). |
| 23 | New variable func_type. |
| 24 | |
| 25 | 2009-02-11 Pedro Alves <pedro@codesourcery.com> |
| 26 | |
| 27 | * gdbarch.c: Regenerate. |
| 28 | |
| 29 | 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr> |
| 30 | |
| 31 | * p-lang.c (is_pascal_string_type): Fix comment. |
| 32 | Determine exact size of char elements for GPC |
| 33 | strings. |
| 34 | (pascal_printstr): Handle char width of 2 or 4. |
| 35 | * p-valprint.c (pascal_val_print): Handle char |
| 36 | of width 2 or 4. |
| 37 | |
| 38 | 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com> |
| 39 | |
| 40 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc |
| 41 | inside the loop. Only call addrmap_set_empty if the compilation unit |
| 42 | had DW_AT_high_pc and DW_AT_low_pc. Update call to |
| 43 | scan_partial_symbols. |
| 44 | (scan_partial_symbols): Take NEED_PC argument and pass it along with |
| 45 | LOWPC and HIGHPC. |
| 46 | (add_partial_namespace): Take NEED_PC argument and pass it through. |
| 47 | (add_partial_subprogram): Take NEED_PC argument. Update the addrmap |
| 48 | if necessary. |
| 49 | |
| 50 | 2009-02-07 Pedro Alves <pedro@codesourcery.com> |
| 51 | |
| 52 | * NEWS: Mention inspecting extra signal information, $_siginfo, |
| 53 | and the qXfer:siginfo:read and qXfer:siginfo:write packets. |
| 54 | |
| 55 | 2009-02-07 Pedro Alves <pedro@codesourcery.com> |
| 56 | |
| 57 | * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO |
| 58 | isn't defined. |
| 59 | |
| 60 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 61 | |
| 62 | * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t) |
| 63 | (compat_timer_t, compat_clock_t, struct compat_timeval) |
| 64 | (compat_sigval_t, compat_siginfo_t): New types. |
| 65 | (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun) |
| 66 | (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr) |
| 67 | (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines. |
| 68 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) |
| 69 | (amd64_linux_siginfo_fixup): New. |
| 70 | * linux-nat.c (linux_nat_siginfo_fixup): New. |
| 71 | (siginfo_fixup): New. |
| 72 | (linux_xfer_siginfo): Use siginfo_fixup to convert between the |
| 73 | siginfo layout expected by ptrace and the siginfo layout of the |
| 74 | inferior. |
| 75 | (linux_nat_set_siginfo_fixup): New. |
| 76 | * linux-nat.h (linux_nat_set_siginfo_fixup): Declare. |
| 77 | |
| 78 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 79 | |
| 80 | * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO. |
| 81 | * infrun.c (siginfo_value_read, siginfo_value_write): New. |
| 82 | (siginfo_value_funcs): New. |
| 83 | (siginfo_make_value): New. |
| 84 | (_initialize_infrun): Create the $_siginfo convenience variable. |
| 85 | * gdbtypes.h (append_composite_type_field_aligned): Declare. |
| 86 | * gdbtypes.c (append_composite_type_field): Rename to... |
| 87 | (append_composite_type_field_aligned): ... this. Add ALIGNMENT |
| 88 | argument. Handle it. |
| 89 | (append_composite_type_field): Rewrite on top of |
| 90 | append_composite_type_field_aligned. |
| 91 | * value.h (internalvar_make_value): New typedef. |
| 92 | (struct internalvar) <make_value>: New field. |
| 93 | (create_internalvar_type_lazy): Declare. |
| 94 | * value.c (create_internalvar): Clear make_value. |
| 95 | (create_internalvar_type_lazy): New. |
| 96 | (value_of_internalvar): If make_value is set use it. |
| 97 | (preserve_values): Skip internal variables that don't have a |
| 98 | value. |
| 99 | * gdbarch.sh (get_siginfo_type): New. |
| 100 | * gdbarch.h, gdbarch.c: Regenerate. |
| 101 | |
| 102 | * linux-tdep.h, linux-tdep.c: New. |
| 103 | * amd64-linux-tdep.c: Include "linux-tdep.h". |
| 104 | (amd64_linux_init_abi): Register linux_get_siginfo_type and |
| 105 | linux_get_siginfo_mapper. |
| 106 | * i386-linux-tdep.c: Include "linux-tdep.h". |
| 107 | (i386_linux_init_abi): Register linux_get_siginfo_type and |
| 108 | linux_get_siginfo_mapper. |
| 109 | * arm-linux-tdep.c: Include "linux-tdep.h". |
| 110 | (i386_linux_init_abi): Register linux_get_siginfo_type and |
| 111 | linux_get_siginfo_mapper. |
| 112 | |
| 113 | * linux-nat.c (linux_xfer_siginfo): New. |
| 114 | (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. |
| 115 | * remote.c (PACKET_qXfer_siginfo_read) |
| 116 | (PACKET_qXfer_siginfo_write): New. |
| 117 | (feature remote_protocol_features): Add "qXfer:siginfo:read" and |
| 118 | "qXfer:siginfo:write" features. |
| 119 | (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. |
| 120 | (_initialize_remote): Add "set/show remote read-siginfo-object" |
| 121 | and "set/show remote write-siginfo-object" commands. |
| 122 | |
| 123 | * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o. |
| 124 | (HFILES_NO_SRCDIR): Add linux-tdep.h. |
| 125 | (ALLDEPFILES): Add linux-tdep.c. |
| 126 | |
| 127 | * configure.tgt (arm*-*-linux* | arm*-*-uclinux*) |
| 128 | (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to |
| 129 | gdb_target_obs. |
| 130 | |
| 131 | 2009-02-06 Jim Blandy <jimb@codesourcery.com> |
| 132 | Daniel Jacobowitz <dan@codesourcery.com> |
| 133 | Vladimir Prus <vladimir@codesourcery.com> |
| 134 | Pedro Alves <pedro@codesourcery.com> |
| 135 | |
| 136 | * defs.h (enum lval_type): New value: lval_computed. |
| 137 | * value.h (struct lval_funcs): New type. |
| 138 | (allocate_computed_value, value_computed_funcs) |
| 139 | (value_computed_closure): New declarations. |
| 140 | * value.c (struct value): Add a structure to the location union |
| 141 | for computed lvalues, containing 'funcs' and 'closure' members. |
| 142 | (allocate_computed_value, value_computed_funcs) |
| 143 | (value_computed_closure): New functions. |
| 144 | (value_free): For computed lvalues, call the closure's |
| 145 | 'free_closure' function before freeing the value itself. |
| 146 | (value_copy): If we're copying an lval_computed value, call the |
| 147 | closure's 'copy_closure' function. |
| 148 | (set_value_component_location): If the original value is a |
| 149 | computed lvalue, then call the closure's 'copy_closure' function. |
| 150 | (value_of_internalvar): If an internal variable's value is a |
| 151 | computed lvalue, make retrieving its value produce an equivalent |
| 152 | computed lvalue. |
| 153 | * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling |
| 154 | their read function. |
| 155 | (value_assign): Assign to computed lvalues by calling their write |
| 156 | function. |
| 157 | |
| 158 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 159 | |
| 160 | * linux-nat.c (linux_nat_wait): Adjust. |
| 161 | (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init. |
| 162 | * linux-nat.h (thread_db_init): Delete declaration. |
| 163 | * linux-thread-db.c (target_beneath): Delete. |
| 164 | (thread_db_init): Delete. |
| 165 | (thread_db_detach): Use find_target_beneath. |
| 166 | (thread_db_wait): Adjust interface. Use find_target_beneath. |
| 167 | (thread_db_mourn_inferior): Use find_target_beneath. |
| 168 | (thread_db_can_async_p, thread_db_is_async_p, thread_db_async) |
| 169 | (thread_db_async_mask): Delete. |
| 170 | (thread_db_pid_to_str): Adjust interface. Use |
| 171 | find_target_beneath. |
| 172 | (thread_db_get_thread_local_address): Adjust interface. Use |
| 173 | find_target_beneath. |
| 174 | (init_thread_db_ops): Delete references to delete functions. |
| 175 | * target.c (update_current_target): Don't inherit or default |
| 176 | to_wait. Don't inherit to_pid_to_str and |
| 177 | to_get_thread_local_address. |
| 178 | (target_translate_tls_address): Look for a pushed target that |
| 179 | implements to_get_thread_local_address, and use it instead of |
| 180 | checking for target_get_thread_local_address_p. |
| 181 | (target_wait, target_pid_to_str): Reimplement as functions. |
| 182 | (dummy_pid_to_str): New. |
| 183 | (init_dummy_target): Register it. |
| 184 | (debug_to_wait): Delete. |
| 185 | * target.h (struct target_ops): Make to_wait, to_pid_to_str and |
| 186 | to_get_thread_local_address accept a pointer to struct target_ops. |
| 187 | (target_wait): Delete macro, and declare as function. |
| 188 | (target_pid_to_str): Likewise. |
| 189 | (target_get_thread_local_address) |
| 190 | (target_get_thread_local_address_p): Delete. |
| 191 | (noprocess): Add NORETURN and ATTR_NORETURN tags. |
| 192 | * inf-ptrace.c (inf_ptrace_wait): Adjust. |
| 193 | (inf_ptrace_pid_to_str): New. |
| 194 | (inf_ptrace_target): Use inf_ptrace_pid_to_str. |
| 195 | * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust. |
| 196 | * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust. |
| 197 | * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str): |
| 198 | Adjust. |
| 199 | * corelow.c (core_pid_to_str): Adjust. |
| 200 | * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust. |
| 201 | * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust. |
| 202 | * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust. |
| 203 | * go32-nat.c (go32_wait, go32_pid_to_str): Adjust. |
| 204 | * hpux-thread.c (hpux_thread_wait): Adjust. |
| 205 | * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust. |
| 206 | * monitor.c (monitor_wait, monitor_pid_to_str): Adjust. |
| 207 | * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust. |
| 208 | * procfs.c (procfs_pid_to_str): Adjust. |
| 209 | * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust. |
| 210 | * remote-mips.c (mips_wait): Adjust. |
| 211 | * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust. |
| 212 | * remote.c (remote_wait, remote_pid_to_str) |
| 213 | (remote_get_thread_local_address): Adjust. |
| 214 | * rs6000-nat.c (rs6000_wait): Adjust. |
| 215 | * sol-thread.c (procfs_pid_to_str): Adjust declaration. |
| 216 | (sol_thread_wait, solaris_pid_to_str): Adjust. |
| 217 | * spu-linux-nat.c (spu_child_wait): Adjust. |
| 218 | * windows-nat.c (windows_wait, windows_pid_to_str): Adjust. |
| 219 | |
| 220 | 2009-02-06 Tom Tromey <tromey@redhat.com> |
| 221 | |
| 222 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o. |
| 223 | (SUBDIR_PYTHON_SRCS): Add python-cmd.c. |
| 224 | (python-cmd.o): New target. |
| 225 | * cli/cli-decode.c (set_cmd_completer): Add self parameter to |
| 226 | completer prototype. |
| 227 | (add_cmd): Initialize destroyer member of cmd_list_element. Use |
| 228 | make_symbol_completion_list_fn as completer. |
| 229 | (delete_cmd): Call destroyer if one is set. |
| 230 | * cli/cli-decode.h (cmd_list_element): Add cmd parameter to |
| 231 | completer member. Add destroyer member. |
| 232 | (set_cmd_completer): Add self parameter to |
| 233 | completer prototype. |
| 234 | * command.h (set_cmd_completer): Add cmd parameter to |
| 235 | completer prototype. |
| 236 | * completer.c (noop_completer, filename_completer, |
| 237 | location_completer, expression_completer, command_completer): Adapt |
| 238 | to new completer prototype. |
| 239 | (complete_line_internal): Pass new parameter to completer function. |
| 240 | * completer.h (noop_completer, filename_completer, |
| 241 | location_completer, expression_completer, command_completer): Adapt |
| 242 | prototypes to new completer prototype. |
| 243 | * interps.c (interpreter_completer): Adapt to new completer |
| 244 | prototype. |
| 245 | * python/python-cmd.c: New file. |
| 246 | * python/python-internal.h (gdbpy_initialize_commands): Add |
| 247 | prototype. |
| 248 | (gdbpy_doc_cst): Add forward declaration. |
| 249 | * python/python.c (gdbpy_doc_cst): Declare. |
| 250 | (_initialize_python): Call gdbpy_initialize_commands. Initialize |
| 251 | gdbpy_doc_cst. |
| 252 | * symtab.c (make_symbol_completion_list_fn): New function. |
| 253 | * symtab.h (make_symbol_completion_list_fn): Add prototype. |
| 254 | |
| 255 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 256 | |
| 257 | * target.c (target_get_osdata): Check for equal or higher than |
| 258 | process_stratum, not dummy_stratum. |
| 259 | |
| 260 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 261 | |
| 262 | * remote.c (extended_remote_can_run): Delete. |
| 263 | (init_remote_ops): Don't register it. |
| 264 | * target.c (target_get_osdata): Don't check for target_can_run. |
| 265 | Instead any target that has already been pushed, otherwise |
| 266 | fallback to the default run target. |
| 267 | |
| 268 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 269 | |
| 270 | * target.c (target_create_inferior, target_detach) |
| 271 | (target_mourn_inferior, target_attach, target_close): Do target |
| 272 | debug output. |
| 273 | (debug_to_attach, debug_to_detach, debug_to_create_inferior) |
| 274 | (debug_to_mourn_inferior, debug_to_close): Delete. |
| 275 | (setup_target_debug): Adjust. |
| 276 | |
| 277 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
| 278 | |
| 279 | * target.h (target_stopped_data_address_p): Delete declaration, |
| 280 | and don't define as macro. |
| 281 | * target.c (target_stopped_data_address_p): Delete. |
| 282 | |
| 283 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 284 | Tom Tromey <tromey@redhat.com> |
| 285 | |
| 286 | * python/python-utils.c (target_string_to_unicode): New function. |
| 287 | * python/python-internal.h (target_string_to_unicode): New prototype. |
| 288 | * python/python-value.c (valpy_string): New function. |
| 289 | (value_object_methods): Add `string' entry. |
| 290 | |
| 291 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
| 292 | |
| 293 | * target.h (target_tid_to_str): Delete. |
| 294 | * thread.c (print_thread_info, thread_apply_all_command) |
| 295 | (thread_apply_command, thread_command, do_captured_thread_select): |
| 296 | Use target_pid_to_str instead of target_tid_to_str. |
| 297 | * linux-fork.c (delete_fork_command): Likewise. |
| 298 | |
| 299 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
| 300 | |
| 301 | * frame.c (has_stack_frames): Make public. |
| 302 | (get_prev_frame): Don't allow a NULL this_frame anymore. |
| 303 | * frame.h (has_stack_frames): Declare. |
| 304 | * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL |
| 305 | to get_prev_frame, instead start at get_current_frame. |
| 306 | (varobj_create): Check has_stack_frames before getting any frame; |
| 307 | eliminate one usage of deprecated_safe_get_selected_frame. |
| 308 | |
| 309 | 2009-02-05 Tom Tromey <tromey@redhat.com> |
| 310 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 311 | |
| 312 | * python/python.c (GdbMethods): Move to bottom of file. |
| 313 | (get_parameter, execute_gdb_command, gdbpy_write, |
| 314 | gdbpy_flush): Remove forward declarations. |
| 315 | (eval_python_from_control_command): Fix error checking of function |
| 316 | PyRun_SimpleString. Fix error string. |
| 317 | (python_command): Likewise. |
| 318 | (execute_gdb_command): Added from_tty argument. |
| 319 | |
| 320 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 321 | |
| 322 | * language.h (language_dfn): Add la_get_string member. |
| 323 | (LA_GET_STRING): New macro. |
| 324 | (default_get_string): New prototype. |
| 325 | * language.c (default_get_string): New function. |
| 326 | (unknown_language_defn, auto_language_defn, local_language_defn): Use |
| 327 | default_get_string for la_get_string. |
| 328 | * c-lang.c (c_get_string): New function. |
| 329 | (c_language_defn, cplus_language_defn, asm_language_defn): Use |
| 330 | c_get_string for la_get_string. |
| 331 | (minimal_language_defn): Likewise |
| 332 | * ada-lang.c (ada_language_defn): Likewise. |
| 333 | * f-lang.c (f_language_defn): Use default_get_string for |
| 334 | la_get_string. |
| 335 | * jv-lang.c (java_language_defn): Likewise. |
| 336 | * m2-lang.c (m2_language_defn): Likewise. |
| 337 | * objc-lang.c (objc_language_defn): Likewise. |
| 338 | * p-lang.c (p_language_defn): Likewise. |
| 339 | * scm-lang.c (scm_language_defn): Likewise. |
| 340 | * typeprint.c (type_to_string): New function. |
| 341 | * value.h (type_to_string): New prototype. |
| 342 | * valprint.c (val_print_string): Factor out code for reading string |
| 343 | from the inferior into its own function. Put 2 spaces after period |
| 344 | in comments. |
| 345 | (read_string): New function. |
| 346 | * valprint.h (read_string): New prototype. |
| 347 | |
| 348 | 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr> |
| 349 | Tom Tromey <tromey@redhat.com> |
| 350 | |
| 351 | PR breakpoints/8079: |
| 352 | * breakpoint.c (print_one_breakpoint): Use exp_string field |
| 353 | to display expression of watchpoints. |
| 354 | (mention): Likewise. |
| 355 | (watch_command_1): Remove trailing whitespace from expression. |
| 356 | * printcmd.c (struct display) <exp_string>: New field. |
| 357 | (display_command): Set exp_string. |
| 358 | (free_display): Free exp_string. |
| 359 | (clear_displays): Use free_display. |
| 360 | (do_one_display): Print exp_string. |
| 361 | (display_info): Likewise. |
| 362 | |
| 363 | 2009-02-04 Tom Tromey <tromey@redhat.com> |
| 364 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 365 | Phil Muldoon <pmuldoon@redhat.com> |
| 366 | |
| 367 | * python/python-internal.h (gdbpy_get_value_from_history): Rename |
| 368 | prototype to gdbpy_history. |
| 369 | (gdbpy_is_string): Declare. |
| 370 | (python_string_to_host_string): Declare. |
| 371 | * python/python-utils.c (gdbpy_is_string): New function. |
| 372 | (unicode_to_encoded_string): New function. |
| 373 | (unicode_to_target_string): Use it. |
| 374 | (python_string_to_host_string): New function. |
| 375 | * python/python-value.c (valpy_address): New function. |
| 376 | (convert_value_from_python): Use gdbpy_is_string. Change to throw |
| 377 | Python exception instead of a GDB exception on error. Properly check |
| 378 | Python booleans. |
| 379 | (valpy_getitem): Convert field name to host string. Handle array |
| 380 | accesses. Adapt to new behaviour of convert_value_from_python. |
| 381 | (valpy_new): Adapt to new behaviour of convert_value_from_python. |
| 382 | (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND, |
| 383 | VALPY_BITXOR, VALPY_BITOR>: New constants. |
| 384 | (valpy_binop): Update. Adapt to new behaviour of |
| 385 | convert_value_from_python. |
| 386 | (valpy_invert): New function. |
| 387 | (valpy_lsh): Likewise. |
| 388 | (valpy_rsh): Likewise. |
| 389 | (valpy_and): Likewise. |
| 390 | (valpy_or): Likewise. |
| 391 | (valpy_xor): Likewise. |
| 392 | (valpy_richcompare): Call convert_value_from_python instead of doing |
| 393 | conversions itself. |
| 394 | (is_intlike, valpy_int, valpy_long, valpy_float): New functions. |
| 395 | (gdbpy_get_value_from_history): Rename |
| 396 | function to gdbpy_history. |
| 397 | (gdbpy_initialize_values): Don't set tp_new. |
| 398 | (value_object_type): Add valpy_new. |
| 399 | (value_object_methods): Add `address' entry. |
| 400 | (value_object_as_number): Update for new methods. |
| 401 | * python/python.c (GdbMethods): Rename entry from |
| 402 | `get_value_from_history' to `history'. |
| 403 | |
| 404 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
| 405 | |
| 406 | * ada-lang.c (ada_template_to_fixed_record_type_1): Check size |
| 407 | of type to guard against a crash. |
| 408 | |
| 409 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
| 410 | |
| 411 | * value.c (value_from_contents_and_address): Always return |
| 412 | a lval_memory value, even if address is null. |
| 413 | |
| 414 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
| 415 | |
| 416 | * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function. |
| 417 | (amd64_darwin_sigcontext_addr): Ditto. |
| 418 | (darwin_dwarf_signal_frame_p): Ditto. |
| 419 | (i386_darwin_init_abi): Handle signal frames, use the const for |
| 420 | sc_num_regs. |
| 421 | (x86_darwin_init_abi_64): Ditto. |
| 422 | |
| 423 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
| 424 | |
| 425 | * i386-tdep.c (i386_sigtramp_p): Make it public. |
| 426 | * i386-tdep.h (i386_sigtramp_p): Declare. |
| 427 | |
| 428 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
| 429 | |
| 430 | * machoread.c (macho_symfile_read): Read minsymtab also from |
| 431 | shared libraries. |
| 432 | (macho_symfile_read): Try to read dwarf2 frame info from main |
| 433 | object file, but not from OSO files. |
| 434 | (macho_symfile_offsets): Update section names for latest BFD |
| 435 | changes. |
| 436 | * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops. |
| 437 | (x86_darwin_init_abi_64): Ditto. |
| 438 | * solib-darwin.c: New file. |
| 439 | * solib-darwin.h: New file. |
| 440 | * configure.tgt: Add solib.o solib-darwin.o for Darwin. |
| 441 | |
| 442 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
| 443 | |
| 444 | * solist.h (struct target_so_ops): Comment fallback behavior for |
| 445 | operation same. |
| 446 | |
| 447 | 2009-02-03 Tom Tromey <tromey@redhat.com> |
| 448 | |
| 449 | * completer.c (add_struct_fields): Check type_name against NULL |
| 450 | before use. |
| 451 | |
| 452 | 2009-02-03 Joel Brobecker <brobecker@adacore.com> |
| 453 | |
| 454 | * MAINTAINERS: Update Elena's email address. |
| 455 | |
| 456 | 2009-02-02 Joel Brobecker <brobecker@adacore.com> |
| 457 | |
| 458 | * breakpoint (update_watchpoint): Minor comment adjustment. |
| 459 | |
| 460 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
| 461 | |
| 462 | PR gdb/9594: |
| 463 | * completer.c (count_struct_fields): Count method names. |
| 464 | (add_struct_fields): Add matching method names. |
| 465 | |
| 466 | 2009-02-02 Doug Evans <dje@google.com> |
| 467 | |
| 468 | * configure.ac (gdbkt): Check both no_tcl/no_tk first, before |
| 469 | doing any further tcl/tk configury. Don't configure gdbtk if |
| 470 | tcl or tk check fails. |
| 471 | * aclocal.m4: Regenerate. |
| 472 | * configure: Regenerate. |
| 473 | |
| 474 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
| 475 | |
| 476 | PR exp/9059: |
| 477 | * valops.c (find_overload_match): Follow typedefs before taking |
| 478 | address of object argument. |
| 479 | |
| 480 | 2009-02-01 Doug Evans <dje@google.com> |
| 481 | |
| 482 | * target.h (target_waitstatus_to_string): Declare. |
| 483 | * target.c (target_waitstatus_to_string): New function. Copied from |
| 484 | debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY, |
| 485 | TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE, |
| 486 | TARGET_WAITKIND_NO_HISTORY. |
| 487 | (debug_to_wait): Call it. |
| 488 | * infrun.c (wait_for_inferior): If debug_infrun, print result of |
| 489 | target_wait. |
| 490 | (fetch_inferior_event): Ditto. |
| 491 | |
| 492 | 2009-01-30 Tom Tromey <tromey@redhat.com> |
| 493 | |
| 494 | * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h. |
| 495 | |
| 496 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
| 497 | |
| 498 | PR 8145. |
| 499 | * thread.c (do_captured_list_thread_ids): Report the current |
| 500 | thread id. |
| 501 | |
| 502 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
| 503 | |
| 504 | * breakpoint.c (create_breakpoint, create_breakpoints) |
| 505 | (break_command_really, set_breakpoint): New parameter enabled. |
| 506 | (create_breakpoint, break_command_really): Make breakpoint |
| 507 | disabled if so requested. |
| 508 | * breakpoint.h (set_breakpoint): New parameter enabled. |
| 509 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option. |
| 510 | |
| 511 | 2009-01-28 Doug Evans <dje@google.com> |
| 512 | |
| 513 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare. |
| 514 | (amd64_displaced_step_fixup): Declare. |
| 515 | * amd64-tdep.c: #include opcode/i386.h, dis-asm.h. |
| 516 | (amd64_arch_regmap): Move out of amd64_analyze_stack_align |
| 517 | and make static global. |
| 518 | (amd64_arch_regmap_len): New static global. |
| 519 | (amd64_arch_reg_to_regnum): New function. |
| 520 | (struct amd64_insn): New struct. |
| 521 | (struct displaced_step_closure): New struct. |
| 522 | (onebyte_has_modrm,twobyte_has_modrm): New static globals. |
| 523 | (rex_prefix_p,skip_prefixes) |
| 524 | (amd64_insn_length_fprintf,amd64_insn_length_init_dis) |
| 525 | (amd64_insn_length,amd64_get_unused_input_int_reg) |
| 526 | (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy) |
| 527 | (amd64_displaced_step_copy_insn) |
| 528 | (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p) |
| 529 | (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p) |
| 530 | (amd64_displaced_step_fixup): New functions. |
| 531 | * amd64-linux-tdep.c: #include arch-utils.h. |
| 532 | (amd64_linux_init_abi): Install displaced stepping support. |
| 533 | |
| 534 | 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 535 | Jerome Guitton <guitton@adacore.com> |
| 536 | |
| 537 | * configure, config.in: Regenerated. |
| 538 | * configure.ac: Add --with-system-gdbinit. |
| 539 | * main.c (get_init_files): New. |
| 540 | (captured_main): Use get_init_files. Load system gdbinit before |
| 541 | $HOME/.gdbinit. |
| 542 | (print_gdb_help): Print location of init files. |
| 543 | |
| 544 | 2009-01-28 Pedro Alves <pedro@codesourcery.com> |
| 545 | |
| 546 | * corefile.c (generic_search): Delete disabled code. |
| 547 | * gdbcore.h (generic_search): Delete declaration. |
| 548 | |
| 549 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
| 550 | |
| 551 | * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the |
| 552 | parent to the child. |
| 553 | * inf-ttrace.c (inf_ttrace_follow_fork): Likewise. |
| 554 | * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use |
| 555 | remove_breakpoints to remove breakpoints from the parent. |
| 556 | |
| 557 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
| 558 | |
| 559 | PR backtrace/9458, PR backtrace/8864: |
| 560 | * frame.c (create_new_frame): Update the frame's cached PC before |
| 561 | finding its unwinder. Use frame_id_build to build the new frame's |
| 562 | id. |
| 563 | * stack.c (parse_frame_specification_1): Correct setting ``addrs'' |
| 564 | array values from the ``args'' array values. |
| 565 | |
| 566 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
| 567 | |
| 568 | * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type) |
| 569 | (create_array_type, create_set_type, init_flags_type) |
| 570 | (copy_type_recursive): Replace pairs of calls to XALLOC and memset |
| 571 | with a call to XZALLOC or XCALLOC, and pairs of calls to |
| 572 | obstack_alloc and memset with a call to OBSTACK_ZALLOC. |
| 573 | |
| 574 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
| 575 | |
| 576 | Add "maint set|show internal-error|internal-warning quit|corefile |
| 577 | ask|yes|no" commands. |
| 578 | |
| 579 | PR gdb/7580: |
| 580 | * utils.c (internal_problem_ask, internal_problem_yes) |
| 581 | (internal_problem_no, internal_problem_modes): New. |
| 582 | (struct internal_problem): Remove FIXME. Make should_quit and |
| 583 | should_dump_core types to char *. |
| 584 | (internal_vproblem, internal_error_problem) |
| 585 | (internal_warning_problem): Adjust. |
| 586 | (set_internal_problem_cmd, show_internal_problem_cmd): New dummy |
| 587 | functions. |
| 588 | (add_internal_problem_command): New. |
| 589 | (_initialize_utils): New. |
| 590 | |
| 591 | 2009-01-25 Pedro Alves <pedro@codesourcery.com> |
| 592 | |
| 593 | * infcmd.c (program_info): Use paddress instead of casting stop_pc |
| 594 | to unsigned long. |
| 595 | |
| 596 | 2009-01-24 Pedro Alves <pedro@codesourcery.com> |
| 597 | |
| 598 | * infrun.c (normal_stop): Don't call |
| 599 | deprecated_update_frame_pc_hack. |
| 600 | * frame.c (deprecated_update_frame_pc_hack) |
| 601 | (deprecated_update_frame_base_hack): Delete, and ... |
| 602 | (create_new_frame): ... inline here. |
| 603 | * frame.h (deprecated_update_frame_pc_hack) |
| 604 | (deprecated_update_frame_base_hack): Delete declarations. |
| 605 | |
| 606 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
| 607 | |
| 608 | * cli/cli-decode.c (add_setshow_zuinteger_cmd): New. |
| 609 | * cli/cli-setshow.c (do_setshow_command): Handle it. |
| 610 | * command.h (enum var_types): Add var_zuinteger. |
| 611 | (add_setshow_zuinteger_cmd): Declare. |
| 612 | |
| 613 | * valprint.c (_initialize_valprint): Change the set input-radix |
| 614 | and set output-radix commands to zuinteger type. |
| 615 | |
| 616 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
| 617 | |
| 618 | PR gdb/9664: |
| 619 | * infrun.c (normal_stop): Tag threads as stopped, and run the |
| 620 | hook-stop before printing the stack frame. |
| 621 | |
| 622 | 2009-01-22 Pedro Alves <pedro@codesourcery.com> |
| 623 | |
| 624 | PR c++/9631: |
| 625 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on |
| 626 | vbasetype. |
| 627 | |
| 628 | 2009-01-20 Kazu Hirata <kazu@codesourcery.com> |
| 629 | |
| 630 | * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to |
| 631 | unsigned long. |
| 632 | |
| 633 | 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com> |
| 634 | |
| 635 | PR gdb/9346 |
| 636 | * infcmd.c (signal_command): Do not specify a resume PC. |
| 637 | |
| 638 | 2009-01-19 Doug Evans <dje@google.com> |
| 639 | |
| 640 | * dummy-frame.c (dummy_frame): Replace regcache member with |
| 641 | caller_state. |
| 642 | (dummy_frame_push): Replace caller_regcache arg with caller_state. |
| 643 | All callers updated. |
| 644 | (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns. |
| 645 | (dummy_frame_pop): Rewrite. Verify requested frame is in the |
| 646 | dummy frame stack. Restore program state. |
| 647 | (cleanup_dummy_frames): Rewrite. |
| 648 | (dummy_frame_sniffer): Update. Make static. |
| 649 | * dummy-frame.h (regcache,frame_info): Delete forward decls. |
| 650 | (inferior_thread_state): New forward decl. |
| 651 | (dummy_frame_push): Update prototype. |
| 652 | * frame.c (frame_pop): dummy_frame_pop now does all the work for |
| 653 | DUMMY_FRAMEs. |
| 654 | * infcall.c (breakpoint_auto_delete_contents): Delete. |
| 655 | (get_function_name,run_inferior_call): New fns. |
| 656 | (call_function_by_hand): Simplify by moving some code to |
| 657 | get_function_name, run_inferior_call. Inferior function call wrapped |
| 658 | in TRY_CATCH so there's less need for cleanups and all exits from |
| 659 | proceed are handled similarily. Detect program exit. |
| 660 | Detect program stopping in a different thread. |
| 661 | Make error messages more consistent. |
| 662 | * inferior.h (inferior_thread_state): Declare (opaque type). |
| 663 | (save_inferior_thread_state,restore_inferior_thread_state, |
| 664 | make_cleanup_restore_inferior_thread_state, |
| 665 | discard_inferior_thread_state, get_inferior_thread_state_regcache): |
| 666 | Declare. |
| 667 | (save_inferior_status): Update prototype. |
| 668 | * infrun.c: (normal_stop): When stopped for the completion of an |
| 669 | inferior function call, verify the expected stack frame kind. |
| 670 | (inferior_thread_state): New struct. |
| 671 | (save_inferior_thread_state,restore_inferior_thread_state, |
| 672 | do_restore_inferior_thread_state_cleanup, |
| 673 | make_cleanup_restore_inferior_thread_state, |
| 674 | discard_inferior_thread_state, |
| 675 | get_inferior_thread_state_regcache): New functions. |
| 676 | (inferior_status): Move stop_signal, stop_pc, registers to |
| 677 | inferior_thread_state. Remove restore_stack_info. |
| 678 | (save_inferior_status): Remove arg restore_stack_info. |
| 679 | All callers updated. Remove saving of state now saved by |
| 680 | save_inferior_thread_state. |
| 681 | (restore_inferior_status): Remove restoration of state now done by |
| 682 | restore_inferior_thread_state. |
| 683 | (discard_inferior_status): Remove freeing of registers, now done by |
| 684 | discard_inferior_thread_state. |
| 685 | |
| 686 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
| 687 | |
| 688 | * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line |
| 689 | at a time, times NUM_TO_SCROLL. |
| 690 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to |
| 691 | fetch the selected frame if there is no stack. |
| 692 | |
| 693 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
| 694 | |
| 695 | PR gdb/9747: |
| 696 | * gdbthread.h (finish_thread_state, finish_thread_state_cleanup): |
| 697 | Declare. |
| 698 | * thread.c (finish_thread_state, finish_thread_state_cleanup): New. |
| 699 | * infrun.c (wait_for_inferior, fetch_inferior_event): If an error |
| 700 | is thrown while handling an event, finish the thread state. |
| 701 | (normal_stop): Use finish_thread_state cleanup. |
| 702 | * infcmd.c (run_command_1): If an error is thrown while starting |
| 703 | the inferior, finish the thread state. |
| 704 | |
| 705 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
| 706 | |
| 707 | * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout, |
| 708 | skip breakpoints without a location (pending breakpoints). |
| 709 | |
| 710 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
| 711 | |
| 712 | PR build/9186: |
| 713 | * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'. |
| 714 | |
| 715 | 2009-01-18 Nick Roberts <nickrob@snap.net.nz> |
| 716 | |
| 717 | * thread.c (thread_command): Move call to annotate_thread_changed |
| 718 | to... |
| 719 | (do_captured_thread_select): ... here, to avoid printing an |
| 720 | annotation if the thread change generates an exception. |
| 721 | |
| 722 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
| 723 | |
| 724 | * NEWS: Document x86_64/MinGW as a new native configuration. |
| 725 | |
| 726 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
| 727 | |
| 728 | * NEWS: Move the documentation of "info os processes" to |
| 729 | the appropriate section (documenting the new commands). |
| 730 | |
| 731 | 2009-01-15 Doug Evans <dje@google.com> |
| 732 | |
| 733 | * target.h (target_signal_to_string): Make return type const char *. |
| 734 | (target_signal_to_name): Ditto. |
| 735 | (target_signal_from_name): Make arg const char *. |
| 736 | * infrun.c (sig_print_info): Update. |
| 737 | * signals/signals.c (signals): Make array and struct members const. |
| 738 | (target_signal_to_string): Make return type const char *. |
| 739 | (target_signal_to_name): Ditto. |
| 740 | (target_signal_from_name): Make arg const char *. |
| 741 | |
| 742 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
| 743 | Tristan Gingold <gingold@adacore.com> |
| 744 | |
| 745 | * solist.h (struct target_so_ops): New member bfd_open. |
| 746 | (solib_find): Add prototype. |
| 747 | (solib_bfd_fopen): Add prototype. |
| 748 | * solib.c (solib_find, solib_bfd_fopen): New functions, extracted |
| 749 | from solib_bfd_open. |
| 750 | (solib_bfd_open): Use ops->bfd_open override if present. Call |
| 751 | solib_find and solib_bfd_open otherwise. |
| 752 | |
| 753 | * objfiles.h (OBJF_KEEPBFD): New define. |
| 754 | * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD |
| 755 | objfile flag is set. |
| 756 | * solib.c (symbol_add_stub): Do not allocate second BFD for |
| 757 | shared library; use OBJF_KEEPBFD flag on solib objfile. |
| 758 | |
| 759 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
| 760 | |
| 761 | * frame.c (get_frame_arch): Abort if called with NULL this_frame. |
| 762 | |
| 763 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
| 764 | |
| 765 | * value.h (address_of_variable): Add prototype. |
| 766 | (locate_var_value): Remove prototype. |
| 767 | |
| 768 | * findvar.c (read_var_value): Do not attempt to default frame |
| 769 | to selected frame. |
| 770 | (locate_var_value): Remove function. |
| 771 | * valops.c (value_of_variable): Retrieve selected frame for |
| 772 | symbols that require a frame when called with NULL block. |
| 773 | * valops.c (address_of_variable): New function. |
| 774 | |
| 775 | * eval.c (evaluate_subexp_for_address): Call address_of_variable |
| 776 | instead of calling locate_var_value. |
| 777 | (evaluate_subexp_with_coercion): Likewise. |
| 778 | |
| 779 | 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 780 | |
| 781 | * NEWS: Document "define" for prefixed commands. |
| 782 | * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call |
| 783 | show_user_1 for prefix commands. |
| 784 | * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined". |
| 785 | * cli/cli-script.c (validate_comname): Rewrite to handle prefix |
| 786 | commands. Return the containing command list. |
| 787 | (define_command, document_command): Update to handle prefix commands. |
| 788 | (show_user_1): Add prefix and name arguments. Handle prefix |
| 789 | commands. |
| 790 | * cli/cli-script.h (show_user_1): Update prototype. |
| 791 | |
| 792 | 2009-01-14 Kai Tietz <kai.tietz@onevision.com> |
| 793 | |
| 794 | * mingw-ser.c (console_select_thread): Add return to make |
| 795 | compiler happy. |
| 796 | (pipe_select_thread): Likewise. |
| 797 | (file_select_thread): Likewise. |
| 798 | |
| 799 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
| 800 | |
| 801 | * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from |
| 802 | previous change. |
| 803 | |
| 804 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
| 805 | |
| 806 | * remote.c (extended_remote_mourn_1): Invalidate our notion of |
| 807 | current general thread. |
| 808 | |
| 809 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
| 810 | |
| 811 | * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups |
| 812 | without a live selected thread. |
| 813 | |
| 814 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
| 815 | |
| 816 | Update the copyright notice of some of the files I missed |
| 817 | in the previous copyright update. |
| 818 | |
| 819 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
| 820 | |
| 821 | * windows-nat.c (handle_unload_dll): Use %p to print the DLL |
| 822 | base address instead of casting it to DWORD. |
| 823 | |
| 824 | 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
| 825 | |
| 826 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch |
| 827 | for NULL frame pointers. |
| 828 | |
| 829 | 2009-01-13 Mark Kettenis <kettenis@gnu.org> |
| 830 | |
| 831 | * utils.c (host_address_to_string): Reimplement in a way that |
| 832 | avoids the cast of the address to long. |
| 833 | |
| 834 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
| 835 | |
| 836 | * mdebugread.c (parse_symbol): Save the symbol private data |
| 837 | using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE. |
| 838 | (psymtab_to_symtab_1): Likewise. |
| 839 | (parse_procedure): Declare variable "e" only in the scope |
| 840 | where it is used. Extract the symbol private data using |
| 841 | SYMBOL_VALUE_BYTES. |
| 842 | |
| 843 | 2009-01-13 Jim Blandy <jimb@codesourcery.com> |
| 844 | |
| 845 | Abstract out common code for copying value locations. |
| 846 | |
| 847 | * value.h (set_value_component_location): New declaration. |
| 848 | * value.c (set_value_component_location): New function. |
| 849 | (value_primitive_field): Use it. |
| 850 | * valarith.c (value_subscript, value_subscripted_rvalue): Same. |
| 851 | * valops.c (search_struct_field, value_slice): Same. |
| 852 | * ada-lang.c (coerce_unspec_val_to_type) |
| 853 | (ada_value_primitive_packed_val): Same. |
| 854 | |
| 855 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
| 856 | |
| 857 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey. |
| 858 | |
| 859 | 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx> |
| 860 | |
| 861 | * amd64-windows-nat.c Rename gdb-specific win32_* to windows_* |
| 862 | throughout. |
| 863 | * i386-cygwin-tdep.c: Ditto. |
| 864 | * i386-windows-nat.c: Ditto. |
| 865 | * windows-nat.h: Ditto. |
| 866 | * windows-tdep.c: Ditto. |
| 867 | * windows-tdep.h: Ditto. |
| 868 | * windows-nat.c: Ditto. |
| 869 | (cygwin_load_start): Redefine as CORE_ADDR. |
| 870 | (cygwin_load_end): Ditto. |
| 871 | (windows_make_so): Coerce result of address arithmetic to uintptr_t |
| 872 | before coercing to CORE_ADDR to avoid a compiler warning. |
| 873 | (handle_exception): Define addr as CORE_ADDR and coerce |
| 874 | ExceptionAddress to uintptr_t before assigining to avoid a compiler |
| 875 | warning. |
| 876 | * config/djgpp/fnchange.lst: Add mappings for recently renamed windows |
| 877 | files. |
| 878 | |
| 879 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 880 | |
| 881 | Fix linking with --enable-targets=all: |
| 882 | * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o. |
| 883 | (HFILES_NO_SRCDIR): Add windows-tdep.h. |
| 884 | (ALLDEPFILES): Add windows-tdep.c. |
| 885 | |
| 886 | 2009-01-11 Christ Faylor <me.gdb@cgf.cx> |
| 887 | |
| 888 | * win32-nat.h: Delete. |
| 889 | * windows-nat.h: Rename from win32-nat.h. |
| 890 | * win32-nat.c: Delete. |
| 891 | * windows-nat.c: Rename from win32-nat.c. |
| 892 | * win32-termcap.c: Delete. |
| 893 | * windows-termcap.c: Rename from win32-termcap.c. |
| 894 | * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h. |
| 895 | * configure.ac: Handle rename from win32-termcap.c -> |
| 896 | windows-termcap.c. |
| 897 | * configure: Regenerate. |
| 898 | * gdb_curses.h: Change comment to reflect rename from win32-termcap.c |
| 899 | -> windows-termcap.c. |
| 900 | * i386-cygwin-tdep.c: Handle rename from win32-tdep.h -> |
| 901 | windows-tdep.h. |
| 902 | * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h. |
| 903 | * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h -> |
| 904 | windows-tdep.h. |
| 905 | (win32_make_so): Handle cygwin compiler warning due to change of |
| 906 | load_addr from DWORD to LPVOID. |
| 907 | (handle_load_dll): Use %p in format string to properly print address |
| 908 | and avoid a compiler warning. |
| 909 | (DEBUG_EXCEPTION_SIMPLE): Ditto. |
| 910 | (handle_exception): Ditto. |
| 911 | * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h. |
| 912 | * config/i386/cygwin.mh: Handle rename from win32-nat.o -> |
| 913 | windows-nat.o. |
| 914 | * config/i386/mingw.mh: Ditto. |
| 915 | * config/i386/mingw64.mh: Ditto. |
| 916 | |
| 917 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 918 | |
| 919 | * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable |
| 920 | arrayprint_recurse_level to a parameter. Update all the callers. New |
| 921 | comment at autovariables. |
| 922 | |
| 923 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 924 | |
| 925 | * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU |
| 926 | coding style. |
| 927 | |
| 928 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
| 929 | |
| 930 | * target.c (target_xfer_partial): Use host_address_to_string to |
| 931 | print the address of readbuf and writebuf. Cast the address of |
| 932 | elements inside the myaddr buffer into intptr_t. |
| 933 | (deprecated_debug_xfer_memory): Use paddress to print memaddr. |
| 934 | Cast the address of elements inside the myaddr buffer into |
| 935 | intptr_t. |
| 936 | |
| 937 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
| 938 | |
| 939 | * amd64-windows-nat.c, amd64-windows-tdep.c: New files. |
| 940 | * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files. |
| 941 | * configure.host, configure.tgt: Add handling for x86_64/windows. |
| 942 | * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c |
| 943 | and amd64-windows-tdep.c. |
| 944 | |
| 945 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
| 946 | |
| 947 | * win32-tdep.h, win32-tdep.c: New files. |
| 948 | * i386-cygwin-tdep.h: Delete. |
| 949 | * i386-cygwin-tdep.c: Include win32-tdep.h instead of |
| 950 | i386-cygwin-tdep.h. |
| 951 | (win32_xfer_shared_library): Delete. Moved to win32-tdep.c. |
| 952 | * win32-nat.c: Likewise. |
| 953 | * configure.tgt: Add win32-tdep.o to the list of target object |
| 954 | files for i386-cygwin and i386-mingw targets. |
| 955 | |
| 956 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
| 957 | |
| 958 | * win32-nat.h: New file. |
| 959 | * win32-nat.c (mappings): Initialize to NULL. |
| 960 | (win32_set_context_register_offsets): New function. |
| 961 | * i386-windows-nat.c: New file. |
| 962 | (mappings): Moved here from win32-nat.c. |
| 963 | (_initialize_i386_windows_nat): New function. |
| 964 | * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o. |
| 965 | * config/i386/cygwin.mh (NATDEPFILES): Likewise. |
| 966 | |
| 967 | 2009-01-09 Andreas Schwab <schwab@suse.de> |
| 968 | |
| 969 | * Makefile.in (init.c): Set LANG/LC_ALL to C, not c. |
| 970 | |
| 971 | 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
| 972 | |
| 973 | * gdbtypes.c (append_composite_type_field): Correct the location of |
| 974 | appended fields. |
| 975 | |
| 976 | 2009-01-09 Pedro Alves <pedro@codesourcery.com> |
| 977 | |
| 978 | * defs.h (deprecated_error_hook): Delete declaration. |
| 979 | * interps.c (clear_interpreter_hooks): Adjust. |
| 980 | * remote-sim.c (gdb_os_error): Don't try to call |
| 981 | deprecated_error_hook. No need to call exit anymore. |
| 982 | * top.c (deprecated_error_hook): Delete. |
| 983 | |
| 984 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 985 | |
| 986 | * arch-utils.c (gdbarch_update_p): Use host_address_to_string |
| 987 | to print the address of the gdbarch pointer. |
| 988 | |
| 989 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 990 | |
| 991 | * gdbarch.sh: Fix all the compilation errors on amd64-windows |
| 992 | due to casting a pointer to a long when printing a function |
| 993 | address. Instead, use host_address_to_string to convert our |
| 994 | address to a string. |
| 995 | * gdbarch.c: Regenerate. |
| 996 | |
| 997 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 998 | |
| 999 | * event-top.c (async_disconnect, async_stop_sig): use "raise" |
| 1000 | instead of "kill" to raise a signal. |
| 1001 | |
| 1002 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1003 | |
| 1004 | * win32-nat.c (get_module_name): Change the type of parameter |
| 1005 | "base_address" to LPVOID. Remove unnecessary cast. |
| 1006 | (struct lm_info): Change type of load_addr to LPVOID. |
| 1007 | (win32_make_so): Change the type of parameter "load_addr" |
| 1008 | to LPVOID. Remove some unnecessary casts. |
| 1009 | (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID. |
| 1010 | (win32_xfer_shared_libraries): Add missing cast. |
| 1011 | |
| 1012 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1013 | |
| 1014 | * win32-nat.c (has_detach_ability, set_process_privilege): |
| 1015 | Cast the result of GetProcAddress to (void *) to avoid |
| 1016 | a compilation warning. |
| 1017 | |
| 1018 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1019 | |
| 1020 | * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not |
| 1021 | already defined. |
| 1022 | |
| 1023 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1024 | |
| 1025 | * win32-nat.c (get_image_name, win32_xfer_memory): Fix type |
| 1026 | definition of local variable "done". |
| 1027 | (info_w32_command, handle_exception): Remove unnecessary cast. |
| 1028 | |
| 1029 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1030 | |
| 1031 | * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames |
| 1032 | DebugSetProcessKillOnExit. Update all uses in this file. |
| 1033 | (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop. |
| 1034 | Update all uses in this file. |
| 1035 | |
| 1036 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1037 | |
| 1038 | * win32-nat.c (do_initial_win32_stuff): Add new ops parameter, |
| 1039 | and use it when pushing the target. |
| 1040 | (win32_attach, win32_create_inferior): Update call to |
| 1041 | do_initial_win32_stuff. |
| 1042 | (win32_detach, win32_mourn_inferior): Use our ops parameter |
| 1043 | instead of the global win32_ops to unpush the target. |
| 1044 | |
| 1045 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1046 | |
| 1047 | * ser-mingw.c (ser_windows_open): Use proper type when casting |
| 1048 | in call to _open_osfhandle. |
| 1049 | |
| 1050 | 2009-01-09 Kai Tietz <kai.tietz@onevision.com> |
| 1051 | |
| 1052 | * coff-pe-read.c (read_pe_exported_syms): Fix typo. |
| 1053 | |
| 1054 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
| 1055 | |
| 1056 | * CONTRIBUTE: Minor reformatting. |
| 1057 | |
| 1058 | 2009-01-08 Kai Tietz <kai.tietz@onevision.com> |
| 1059 | |
| 1060 | * MAINTAINERS: Add myself to Write After Approval. |
| 1061 | * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+ |
| 1062 | export directory. |
| 1063 | |
| 1064 | 2009-01-08 Nathan Froyd <froydnj@codesourcery.com> |
| 1065 | |
| 1066 | * remote-sim.c (gdb_os_error): Mark as a noreturn function. |
| 1067 | Call exit to make it obvious to GCC. |
| 1068 | |
| 1069 | 2009-01-08 Tom Tromey <tromey@redhat.com> |
| 1070 | |
| 1071 | PR breakpoints/9350: |
| 1072 | * varobj.c (varobj_invalidate): Unconditionally free |
| 1073 | all_rootvarobj. |
| 1074 | * symfile.c (syms_from_objfile): Free local_addr when returning |
| 1075 | normally. |
| 1076 | * exec.c (exec_file_attach): Do cleanups before returning. |
| 1077 | (exec_file_command): Likewise. |
| 1078 | * corefile.c (reopen_exec_file): Do cleanups before returning. |
| 1079 | * breakpoint.c (insert_breakpoint_locations): Do cleanups before |
| 1080 | returning. |
| 1081 | (do_vec_free): New function. |
| 1082 | (update_global_location_list): Make a cleanup for old_locations. |
| 1083 | Do cleanups before returning. Remove unused variable 'e'. |
| 1084 | (find_condition_and_thread): Free result of parsing the |
| 1085 | expression. |
| 1086 | (print_it_typical): Do cleanups before returning. |
| 1087 | (breakpoint_re_set_one): Always free sals.sals. |
| 1088 | |
| 1089 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
| 1090 | Emi Suzuki <emi-suzuki@tjsys.co.jp> |
| 1091 | |
| 1092 | * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for |
| 1093 | watchpoints. |
| 1094 | |
| 1095 | 2009-01-07 Doug Evans <dje@google.com> |
| 1096 | |
| 1097 | * top.c (gdb_prompt_string): Delete, unused. |
| 1098 | |
| 1099 | 2009-01-07 Pedro Alves <pedro@codesourcery.com> |
| 1100 | |
| 1101 | Delete ONE_PROCESS_WRITETEXT leftovers. |
| 1102 | |
| 1103 | * breakpoint.c (insert_bp_location): Delete process_warning |
| 1104 | argument. Adjust. |
| 1105 | (insert_breakpoint_locations): Adjust. |
| 1106 | (reattach_breakpoints): Adjust. |
| 1107 | * infrun.c (normal_stop): Drop "It might be running in another |
| 1108 | process" notice. |
| 1109 | |
| 1110 | 2009-01-07 Stan Shebs <stan@codesourcery.com> |
| 1111 | |
| 1112 | * config/pa/linux.mh (XDEPFILES): Remove. |
| 1113 | |
| 1114 | 2009-01-07 Doug Evans <dje@google.com> |
| 1115 | |
| 1116 | * cli/cli-cmds.c (set_debug): Fix cut-n-paste error. |
| 1117 | |
| 1118 | 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1119 | |
| 1120 | * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output |
| 1121 | spacing, a regression from 2008-04-22. |
| 1122 | |
| 1123 | 2009-01-07 Joel Brobecker <brobecker@adacore.com> |
| 1124 | |
| 1125 | * utils.c (gdb_print_host_address): Adjust implementation to |
| 1126 | reuse host_address_to_string. Move comment explaining the conversion |
| 1127 | from host address to string from here... |
| 1128 | (host_address_to_string): ... to there. |
| 1129 | |
| 1130 | 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp> |
| 1131 | |
| 1132 | * MAINTAINERS: Add myself for write after approval privileges. |
| 1133 | |
| 1134 | 2009-01-06 Tom Tromey <tromey@redhat.com> |
| 1135 | |
| 1136 | * value.c (set_internalvar): Use value_free, not xfree. |
| 1137 | |
| 1138 | 2009-01-06 Jim Blandy <jimb@red-bean.com> |
| 1139 | |
| 1140 | Check return values of functions declared with warn_unused_result |
| 1141 | attribute in GLIBC 2.8. |
| 1142 | * cli/cli-cmds.c (pwd_command): Check return value from getcwd. |
| 1143 | * inflow.c (check_syscall): New function. |
| 1144 | (new_tty): Use check_syscall to check return values from open and dup. |
| 1145 | * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets. |
| 1146 | * main.c (captured_main): Call cwd after setting up gdb_stderr; |
| 1147 | check for errors from getcwd. |
| 1148 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd. |
| 1149 | * ui-file.c (stdio_file_write): Ignore return value from fwrite. |
| 1150 | (stdio_file_fputs): Same. |
| 1151 | * utils.c (internal_vproblem): abort if last-ditch error message |
| 1152 | write fails. |
| 1153 | |
| 1154 | * top.c (gdb_init): Don't set the current directory here; that's |
| 1155 | already been done in captured_main. |
| 1156 | |
| 1157 | 2009-01-06 Sandra Loosemore <sandra@codesourcery.com> |
| 1158 | |
| 1159 | * ser-tcp.c: Adjust includes. |
| 1160 | (tcp_set_cmdlist, tcp_show_cmdlist): Declare. |
| 1161 | (tcp_auto_retry, tcp_retry_limit): Declare. |
| 1162 | (TIMEOUT): Remove, in favor of tcp_retry_limit. |
| 1163 | (POLL_INTERVAL): Increase to 5, in favor of backoff logic. |
| 1164 | (wait_for_connect): New function. |
| 1165 | (net_open): Use it. Add auto-retry logic. |
| 1166 | (set_tcp_cmd, show_tcp_cmd): New functions. |
| 1167 | (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry" |
| 1168 | and "set/show tcp connect-timeout" commands. |
| 1169 | * NEWS: Document new commands. |
| 1170 | |
| 1171 | 2009-01-05 Tom Tromey <tromey@redhat.com> |
| 1172 | |
| 1173 | * python/python-internal.h (Py_ssize_t): Define as int. |
| 1174 | |
| 1175 | 2009-01-05 Jim Blandy <jimb@red-bean.com> |
| 1176 | |
| 1177 | * MAINTAINERS: Fix my e-mail address as steering committee member. |
| 1178 | |
| 1179 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
| 1180 | |
| 1181 | Updated copyright notices for most files. |
| 1182 | |
| 1183 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
| 1184 | |
| 1185 | * top.c (print_gdb_version): Update copyright year. |
| 1186 | |
| 1187 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
| 1188 | |
| 1189 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008. |
| 1190 | |
| 1191 | 2009-01-01 Pedro Alves <pedro@codesourcery.com> |
| 1192 | |
| 1193 | PR breakpoints/9681: |
| 1194 | * exceptions.h (enum errors): New error type, MEMORY_ERROR. |
| 1195 | * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR. |
| 1196 | * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but |
| 1197 | retrow all other exceptions. |
| 1198 | |
| 1199 | For older changes see ChangeLog-2008. |
| 1200 | \f |
| 1201 | Local Variables: |
| 1202 | mode: change-log |
| 1203 | left-margin: 8 |
| 1204 | fill-column: 74 |
| 1205 | version-control: never |
| 1206 | coding: utf-8 |
| 1207 | End: |