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