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