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