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