Commit | Line | Data |
---|---|---|
35669430 DE |
1 | 2009-01-28 Doug Evans <dje@google.com> |
2 | ||
3 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare. | |
4 | (amd64_displaced_step_fixup): Declare. | |
5 | * amd64-tdep.c: #include opcode/i386.h, dis-asm.h. | |
6 | (amd64_arch_regmap): Move out of amd64_analyze_stack_align | |
7 | and make static global. | |
8 | (amd64_arch_regmap_len): New static global. | |
9 | (amd64_arch_reg_to_regnum): New function. | |
10 | (struct amd64_insn): New struct. | |
11 | (struct displaced_step_closure): New struct. | |
12 | (onebyte_has_modrm,twobyte_has_modrm): New static globals. | |
13 | (rex_prefix_p,skip_prefixes) | |
14 | (amd64_insn_length_fprintf,amd64_insn_length_init_dis) | |
15 | (amd64_insn_length,amd64_get_unused_input_int_reg) | |
16 | (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy) | |
17 | (amd64_displaced_step_copy_insn) | |
18 | (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p) | |
19 | (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p) | |
20 | (amd64_displaced_step_fixup): New functions. | |
21 | * amd64-linux-tdep.c: #include arch-utils.h. | |
22 | (amd64_linux_init_abi): Install displaced stepping support. | |
23 | ||
7df3ce47 PA |
24 | 2009-01-28 Pedro Alves <pedro@codesourcery.com> |
25 | ||
26 | * corefile.c (generic_search): Delete disabled code. | |
27 | * gdbcore.h (generic_search): Delete declaration. | |
28 | ||
77435e4c PA |
29 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
30 | ||
31 | * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the | |
32 | parent to the child. | |
33 | * inf-ttrace.c (inf_ttrace_follow_fork): Likewise. | |
34 | * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use | |
35 | remove_breakpoints to remove breakpoints from the parent. | |
36 | ||
1e275f79 PA |
37 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
38 | ||
7488432f | 39 | PR backtrace/9458, PR backtrace/8864: |
1e275f79 PA |
40 | * frame.c (create_new_frame): Update the frame's cached PC before |
41 | finding its unwinder. Use frame_id_build to build the new frame's | |
42 | id. | |
43 | * stack.c (parse_frame_specification_1): Correct setting ``addrs'' | |
44 | array values from the ``args'' array values. | |
45 | ||
1deafd4e PA |
46 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
47 | ||
48 | * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type) | |
49 | (create_array_type, create_set_type, init_flags_type) | |
50 | (copy_type_recursive): Replace pairs of calls to XALLOC and memset | |
51 | with a call to XZALLOC or XCALLOC, and pairs of calls to | |
52 | obstack_alloc and memset with a call to OBSTACK_ZALLOC. | |
53 | ||
3c16cced PA |
54 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
55 | ||
56 | Add "maint set|show internal-error|internal-warning quit|corefile | |
57 | ask|yes|no" commands. | |
58 | ||
59 | PR gdb/7580: | |
60 | * utils.c (internal_problem_ask, internal_problem_yes) | |
61 | (internal_problem_no, internal_problem_modes): New. | |
62 | (struct internal_problem): Remove FIXME. Make should_quit and | |
63 | should_dump_core types to char *. | |
64 | (internal_vproblem, internal_error_problem) | |
65 | (internal_warning_problem): Adjust. | |
66 | (set_internal_problem_cmd, show_internal_problem_cmd): New dummy | |
67 | functions. | |
68 | (add_internal_problem_command): New. | |
69 | (_initialize_utils): New. | |
70 | ||
616d7dd2 PA |
71 | 2009-01-25 Pedro Alves <pedro@codesourcery.com> |
72 | ||
73 | * infcmd.c (program_info): Use paddress instead of casting stop_pc | |
74 | to unsigned long. | |
75 | ||
0516318b PA |
76 | 2009-01-24 Pedro Alves <pedro@codesourcery.com> |
77 | ||
78 | * infrun.c (normal_stop): Don't call | |
79 | deprecated_update_frame_pc_hack. | |
80 | * frame.c (deprecated_update_frame_pc_hack) | |
81 | (deprecated_update_frame_base_hack): Delete, and ... | |
82 | (create_new_frame): ... inline here. | |
83 | * frame.h (deprecated_update_frame_pc_hack) | |
84 | (deprecated_update_frame_base_hack): Delete declarations. | |
85 | ||
1e8fb976 PA |
86 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
87 | ||
88 | * cli/cli-decode.c (add_setshow_zuinteger_cmd): New. | |
89 | * cli/cli-setshow.c (do_setshow_command): Handle it. | |
90 | * command.h (enum var_types): Add var_zuinteger. | |
91 | (add_setshow_zuinteger_cmd): Declare. | |
92 | ||
93 | * valprint.c (_initialize_valprint): Change the set input-radix | |
94 | and set output-radix commands to zuinteger type. | |
95 | ||
dd7e2d2b PA |
96 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
97 | ||
98 | PR gdb/9664: | |
99 | * infrun.c (normal_stop): Tag threads as stopped, and run the | |
100 | hook-stop before printing the stack frame. | |
101 | ||
392452f6 PA |
102 | 2009-01-22 Pedro Alves <pedro@codesourcery.com> |
103 | ||
104 | PR c++/9631: | |
105 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on | |
106 | vbasetype. | |
107 | ||
f6a96b83 KH |
108 | 2009-01-20 Kazu Hirata <kazu@codesourcery.com> |
109 | ||
110 | * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to | |
111 | unsigned long. | |
112 | ||
5d277928 | 113 | 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com> |
a12cc160 DJ |
114 | |
115 | PR gdb/9346 | |
116 | * infcmd.c (signal_command): Do not specify a resume PC. | |
117 | ||
b89667eb DE |
118 | 2009-01-19 Doug Evans <dje@google.com> |
119 | ||
120 | * dummy-frame.c (dummy_frame): Replace regcache member with | |
121 | caller_state. | |
122 | (dummy_frame_push): Replace caller_regcache arg with caller_state. | |
123 | All callers updated. | |
124 | (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns. | |
125 | (dummy_frame_pop): Rewrite. Verify requested frame is in the | |
126 | dummy frame stack. Restore program state. | |
127 | (cleanup_dummy_frames): Rewrite. | |
128 | (dummy_frame_sniffer): Update. Make static. | |
129 | * dummy-frame.h (regcache,frame_info): Delete forward decls. | |
130 | (inferior_thread_state): New forward decl. | |
131 | (dummy_frame_push): Update prototype. | |
132 | * frame.c (frame_pop): dummy_frame_pop now does all the work for | |
133 | DUMMY_FRAMEs. | |
134 | * infcall.c (breakpoint_auto_delete_contents): Delete. | |
135 | (get_function_name,run_inferior_call): New fns. | |
136 | (call_function_by_hand): Simplify by moving some code to | |
137 | get_function_name, run_inferior_call. Inferior function call wrapped | |
138 | in TRY_CATCH so there's less need for cleanups and all exits from | |
139 | proceed are handled similarily. Detect program exit. | |
140 | Detect program stopping in a different thread. | |
141 | Make error messages more consistent. | |
142 | * inferior.h (inferior_thread_state): Declare (opaque type). | |
143 | (save_inferior_thread_state,restore_inferior_thread_state, | |
144 | make_cleanup_restore_inferior_thread_state, | |
145 | discard_inferior_thread_state, get_inferior_thread_state_regcache): | |
146 | Declare. | |
147 | (save_inferior_status): Update prototype. | |
148 | * infrun.c: (normal_stop): When stopped for the completion of an | |
149 | inferior function call, verify the expected stack frame kind. | |
150 | (inferior_thread_state): New struct. | |
151 | (save_inferior_thread_state,restore_inferior_thread_state, | |
152 | do_restore_inferior_thread_state_cleanup, | |
153 | make_cleanup_restore_inferior_thread_state, | |
154 | discard_inferior_thread_state, | |
155 | get_inferior_thread_state_regcache): New functions. | |
156 | (inferior_status): Move stop_signal, stop_pc, registers to | |
157 | inferior_thread_state. Remove restore_stack_info. | |
158 | (save_inferior_status): Remove arg restore_stack_info. | |
159 | All callers updated. Remove saving of state now saved by | |
160 | save_inferior_thread_state. | |
161 | (restore_inferior_status): Remove restoration of state now done by | |
162 | restore_inferior_thread_state. | |
163 | (discard_inferior_status): Remove freeing of registers, now done by | |
164 | discard_inferior_thread_state. | |
165 | ||
aefc7064 PA |
166 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
167 | ||
168 | * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line | |
169 | at a time, times NUM_TO_SCROLL. | |
170 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to | |
171 | fetch the selected frame if there is no stack. | |
172 | ||
29f49a6a PA |
173 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
174 | ||
175 | PR gdb/9747: | |
176 | * gdbthread.h (finish_thread_state, finish_thread_state_cleanup): | |
177 | Declare. | |
178 | * thread.c (finish_thread_state, finish_thread_state_cleanup): New. | |
179 | * infrun.c (wait_for_inferior, fetch_inferior_event): If an error | |
180 | is thrown while handling an event, finish the thread state. | |
181 | (normal_stop): Use finish_thread_state cleanup. | |
182 | * infcmd.c (run_command_1): If an error is thrown while starting | |
183 | the inferior, finish the thread state. | |
184 | ||
e7243d73 PA |
185 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
186 | ||
187 | * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout, | |
188 | skip breakpoints without a location (pending breakpoints). | |
189 | ||
e74994b5 PA |
190 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
191 | ||
192 | PR build/9186: | |
193 | * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'. | |
194 | ||
8405c36e NR |
195 | 2009-01-18 Nick Roberts <nickrob@snap.net.nz> |
196 | ||
197 | * thread.c (thread_command): Move call to annotate_thread_changed | |
198 | to... | |
199 | (do_captured_thread_select): ... here, to avoid printing an | |
200 | annotation if the thread change generates an exception. | |
201 | ||
b8bfd3ed JB |
202 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
203 | ||
204 | * NEWS: Document x86_64/MinGW as a new native configuration. | |
205 | ||
2dde91e9 JB |
206 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
207 | ||
208 | * NEWS: Move the documentation of "info os processes" to | |
209 | the appropriate section (documenting the new commands). | |
210 | ||
54363045 DE |
211 | 2009-01-15 Doug Evans <dje@google.com> |
212 | ||
213 | * target.h (target_signal_to_string): Make return type const char *. | |
214 | (target_signal_to_name): Ditto. | |
215 | (target_signal_from_name): Make arg const char *. | |
54363045 | 216 | * infrun.c (sig_print_info): Update. |
54363045 DE |
217 | * signals/signals.c (signals): Make array and struct members const. |
218 | (target_signal_to_string): Make return type const char *. | |
219 | (target_signal_to_name): Ditto. | |
220 | (target_signal_from_name): Make arg const char *. | |
221 | ||
572d275c UW |
222 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
223 | Tristan Gingold <gingold@adacore.com> | |
224 | ||
225 | * solist.h (struct target_so_ops): New member bfd_open. | |
226 | (solib_find): Add prototype. | |
227 | (solib_bfd_fopen): Add prototype. | |
228 | * solib.c (solib_find, solib_bfd_fopen): New functions, extracted | |
229 | from solib_bfd_open. | |
230 | (solib_bfd_open): Use ops->bfd_open override if present. Call | |
231 | solib_find and solib_bfd_open otherwise. | |
232 | ||
233 | * objfiles.h (OBJF_KEEPBFD): New define. | |
234 | * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD | |
235 | objfile flag is set. | |
236 | * solib.c (symbol_add_stub): Do not allocate second BFD for | |
237 | shared library; use OBJF_KEEPBFD flag on solib objfile. | |
238 | ||
0701b271 UW |
239 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
240 | ||
241 | * frame.c (get_frame_arch): Abort if called with NULL this_frame. | |
242 | ||
61212c0f UW |
243 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
244 | ||
245 | * value.h (address_of_variable): Add prototype. | |
246 | (locate_var_value): Remove prototype. | |
247 | ||
248 | * findvar.c (read_var_value): Do not attempt to default frame | |
249 | to selected frame. | |
250 | (locate_var_value): Remove function. | |
251 | * valops.c (value_of_variable): Retrieve selected frame for | |
252 | symbols that require a frame when called with NULL block. | |
253 | * valops.c (address_of_variable): New function. | |
254 | ||
255 | * eval.c (evaluate_subexp_for_address): Call address_of_variable | |
256 | instead of calling locate_var_value. | |
257 | (evaluate_subexp_with_coercion): Likewise. | |
258 | ||
adb483fe DJ |
259 | 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com> |
260 | ||
261 | * NEWS: Document "define" for prefixed commands. | |
262 | * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call | |
263 | show_user_1 for prefix commands. | |
264 | * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined". | |
265 | * cli/cli-script.c (validate_comname): Rewrite to handle prefix | |
266 | commands. Return the containing command list. | |
267 | (define_command, document_command): Update to handle prefix commands. | |
268 | (show_user_1): Add prefix and name arguments. Handle prefix | |
269 | commands. | |
270 | * cli/cli-script.h (show_user_1): Update prototype. | |
271 | ||
a32d7317 KT |
272 | 2009-01-14 Kai Tietz <kai.tietz@onevision.com> |
273 | ||
274 | * mingw-ser.c (console_select_thread): Add return to make | |
275 | compiler happy. | |
276 | (pipe_select_thread): Likewise. | |
277 | (file_select_thread): Likewise. | |
278 | ||
041d0fd7 PA |
279 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
280 | ||
281 | * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from | |
282 | previous change. | |
283 | ||
dc1981d7 PA |
284 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
285 | ||
286 | * remote.c (extended_remote_mourn_1): Invalidate our notion of | |
287 | current general thread. | |
288 | ||
244bf9ae PA |
289 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
290 | ||
291 | * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups | |
292 | without a live selected thread. | |
293 | ||
e4d013fc JB |
294 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
295 | ||
296 | Update the copyright notice of some of the files I missed | |
297 | in the previous copyright update. | |
298 | ||
a588db63 JB |
299 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
300 | ||
301 | * windows-nat.c (handle_unload_dll): Use %p to print the DLL | |
302 | base address instead of casting it to DWORD. | |
303 | ||
77a732d9 UW |
304 | 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
305 | ||
306 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch | |
307 | for NULL frame pointers. | |
308 | ||
773698b5 JB |
309 | 2009-01-13 Mark Kettenis <kettenis@gnu.org> |
310 | ||
311 | * utils.c (host_address_to_string): Reimplement in a way that | |
312 | avoids the cast of the address to long. | |
313 | ||
9918cab9 JB |
314 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
315 | ||
316 | * mdebugread.c (parse_symbol): Save the symbol private data | |
317 | using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE. | |
318 | (psymtab_to_symtab_1): Likewise. | |
319 | (parse_procedure): Declare variable "e" only in the scope | |
320 | where it is used. Extract the symbol private data using | |
321 | SYMBOL_VALUE_BYTES. | |
322 | ||
74bcbdf3 PA |
323 | 2009-01-13 Jim Blandy <jimb@codesourcery.com> |
324 | ||
325 | Abstract out common code for copying value locations. | |
326 | ||
327 | * value.h (set_value_component_location): New declaration. | |
328 | * value.c (set_value_component_location): New function. | |
329 | (value_primitive_field): Use it. | |
330 | * valarith.c (value_subscript, value_subscripted_rvalue): Same. | |
331 | * valops.c (search_struct_field, value_slice): Same. | |
332 | * ada-lang.c (coerce_unspec_val_to_type) | |
333 | (ada_value_primitive_packed_val): Same. | |
334 | ||
d7dc3873 JB |
335 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
336 | ||
337 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey. | |
338 | ||
dc05df57 CF |
339 | 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx> |
340 | ||
341 | * amd64-windows-nat.c Rename gdb-specific win32_* to windows_* | |
342 | throughout. | |
343 | * i386-cygwin-tdep.c: Ditto. | |
344 | * i386-windows-nat.c: Ditto. | |
345 | * windows-nat.h: Ditto. | |
346 | * windows-tdep.c: Ditto. | |
347 | * windows-tdep.h: Ditto. | |
348 | * windows-nat.c: Ditto. | |
349 | (cygwin_load_start): Redefine as CORE_ADDR. | |
350 | (cygwin_load_end): Ditto. | |
351 | (windows_make_so): Coerce result of address arithmetic to to uintptr_t | |
352 | before coercing to CORE_ADDR to avoid a compiler warning. | |
353 | (handle_exception): Define addr as CORE_ADDR and coerce | |
354 | ExceptionAddress to uintptr_t before assigining to avoid a compiler | |
355 | warning. | |
356 | * config/djgpp/fnchange.lst: Add mappings for recently renamed windows | |
357 | files. | |
358 | ||
31b060a2 CF |
359 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
360 | ||
361 | Fix linking with --enable-targets=all: | |
362 | * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o. | |
363 | (HFILES_NO_SRCDIR): Add windows-tdep.h. | |
364 | (ALLDEPFILES): Add windows-tdep.c. | |
365 | ||
366 | 2009-01-11 Christ Faylor <me.gdb@cgf.cx> | |
367 | ||
368 | * win32-nat.h: Delete. | |
369 | * windows-nat.h: Rename from win32-nat.h. | |
370 | * win32-nat.c: Delete. | |
371 | * windows-nat.c: Rename from win32-nat.c. | |
372 | * win32-termcap.c: Delete. | |
373 | * windows-termcap.c: Rename from win32-termcap.c. | |
374 | * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h. | |
375 | * configure.ac: Handle rename from win32-termcap.c -> | |
376 | windows-termcap.c. | |
377 | * configure: Regenerate. | |
378 | * gdb_curses.h: Change comment to reflect rename from win32-termcap.c | |
379 | -> windows-termcap.c. | |
380 | * i386-cygwin-tdep.c: Handle rename from win32-tdep.h -> | |
381 | windows-tdep.h. | |
382 | * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h. | |
383 | * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h -> | |
384 | windows-tdep.h. | |
385 | (win32_make_so): Handle cygwin compiler warning due to change of | |
386 | load_addr from DWORD to LPVOID. | |
387 | (handle_load_dll): Use %p in format string to properly print address | |
388 | and avoid a compiler warning. | |
389 | (DEBUG_EXCEPTION_SIMPLE): Ditto. | |
390 | (handle_exception): Ditto. | |
391 | * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h. | |
392 | * config/i386/cygwin.mh: Handle rename from win32-nat.o -> | |
393 | windows-nat.o. | |
394 | * config/i386/mingw.mh: Ditto. | |
395 | * config/i386/mingw64.mh: Ditto. | |
396 | ||
0311118f JK |
397 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
398 | ||
399 | * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable | |
400 | arrayprint_recurse_level to a parameter. Update all the callers. New | |
401 | comment at autovariables. | |
402 | ||
5f61c20e JK |
403 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
404 | ||
405 | * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU | |
406 | coding style. | |
407 | ||
408 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> | |
53b71562 JB |
409 | |
410 | * target.c (target_xfer_partial): Use host_address_to_string to | |
411 | print the address of readbuf and writebuf. Cast the address of | |
412 | elements inside the myaddr buffer into intptr_t. | |
413 | (deprecated_debug_xfer_memory): Use paddress to print memaddr. | |
414 | Cast the address of elements inside the myaddr buffer into | |
415 | intptr_t. | |
416 | ||
5f61c20e | 417 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
d0761299 JB |
418 | |
419 | * amd64-windows-nat.c, amd64-windows-tdep.c: New files. | |
420 | * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files. | |
421 | * configure.host, configure.tgt: Add handling for x86_64/windows. | |
422 | * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c | |
423 | and amd64-windows-tdep.c. | |
424 | ||
5f61c20e | 425 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
bfb87e33 JB |
426 | |
427 | * win32-tdep.h, win32-tdep.c: New files. | |
428 | * i386-cygwin-tdep.h: Delete. | |
429 | * i386-cygwin-tdep.c: Include win32-tdep.h instead of | |
430 | i386-cygwin-tdep.h. | |
431 | (win32_xfer_shared_library): Delete. Moved to win32-tdep.c. | |
432 | * win32-nat.c: Likewise. | |
433 | * configure.tgt: Add win32-tdep.o to the list of target object | |
434 | files for i386-cygwin and i386-mingw targets. | |
435 | ||
5f61c20e | 436 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
7e63b4e4 JB |
437 | |
438 | * win32-nat.h: New file. | |
439 | * win32-nat.c (mappings): Initialize to NULL. | |
440 | (win32_set_context_register_offsets): New function. | |
441 | * i386-windows-nat.c: New file. | |
442 | (mappings): Moved here from win32-nat.c. | |
443 | (_initialize_i386_windows_nat): New function. | |
444 | * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o. | |
445 | * config/i386/cygwin.mh (NATDEPFILES): Likewise. | |
446 | ||
25fc6591 AS |
447 | 2009-01-09 Andreas Schwab <schwab@suse.de> |
448 | ||
449 | * Makefile.in (init.c): Set LANG/LC_ALL to C, not c. | |
450 | ||
87f70781 PA |
451 | 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
452 | ||
453 | * gdbtypes.c (append_composite_type_field): Correct the location of | |
454 | appended fields. | |
455 | ||
58d4abe1 PA |
456 | 2009-01-09 Pedro Alves <pedro@codesourcery.com> |
457 | ||
458 | * defs.h (deprecated_error_hook): Delete declaration. | |
459 | * interps.c (clear_interpreter_hooks): Adjust. | |
460 | * remote-sim.c (gdb_os_error): Don't try to call | |
461 | deprecated_error_hook. No need to call exit anymore. | |
462 | * top.c (deprecated_error_hook): Delete. | |
463 | ||
e3cb3832 JB |
464 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
465 | ||
466 | * arch-utils.c (gdbarch_update_p): Use host_address_to_string | |
467 | to print the address of the gdbarch pointer. | |
468 | ||
30737ed9 JB |
469 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
470 | ||
471 | * gdbarch.sh: Fix all the compilation errors on amd64-windows | |
472 | due to casting a pointer to a long when printing a function | |
473 | address. Instead, use host_address_to_string to convert our | |
474 | address to a string. | |
475 | * gdbarch.c: Regenerate. | |
476 | ||
ec4dfccf JB |
477 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
478 | ||
479 | * event-top.c (async_disconnect, async_stop_sig): use "raise" | |
480 | instead of "kill" to raise a signal. | |
481 | ||
d3653bf6 JB |
482 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
483 | ||
484 | * win32-nat.c (get_module_name): Change the type of parameter | |
485 | "base_address" to LPVOID. Remove unnecessary cast. | |
486 | (struct lm_info): Change type of load_addr to LPVOID. | |
487 | (win32_make_so): Change the type of parameter "load_addr" | |
488 | to LPVOID. Remove some unnecessary casts. | |
489 | (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID. | |
490 | (win32_xfer_shared_libraries): Add missing cast. | |
491 | ||
308a8808 JB |
492 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
493 | ||
494 | * win32-nat.c (has_detach_ability, set_process_privilege): | |
495 | Cast the result of GetProcAddress to (void *) to avoid | |
496 | a compilation warning. | |
497 | ||
5851ab76 JB |
498 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
499 | ||
500 | * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not | |
501 | already defined. | |
502 | ||
5732a500 JB |
503 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
504 | ||
505 | * win32-nat.c (get_image_name, win32_xfer_memory): Fix type | |
506 | definition of local variable "done". | |
507 | (info_w32_command, handle_exception): Remove unnecessary cast. | |
508 | ||
def4de3a JB |
509 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
510 | ||
511 | * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames | |
512 | DebugSetProcessKillOnExit. Update all uses in this file. | |
513 | (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop. | |
514 | Update all uses in this file. | |
515 | ||
516 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> | |
0795be10 JB |
517 | |
518 | * win32-nat.c (do_initial_win32_stuff): Add new ops parameter, | |
519 | and use it when pushing the target. | |
520 | (win32_attach, win32_create_inferior): Update call to | |
521 | do_initial_win32_stuff. | |
522 | (win32_detach, win32_mourn_inferior): Use our ops parameter | |
523 | instead of the global win32_ops to unpush the target. | |
524 | ||
1be7fe8d JB |
525 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
526 | ||
527 | * ser-mingw.c (ser_windows_open): Use proper type when casting | |
528 | in call to _open_osfhandle. | |
529 | ||
1dac1b47 KT |
530 | 2009-01-09 Kai Tietz <kai.tietz@onevision.com> |
531 | ||
532 | * coff-pe-read.c (read_pe_exported_syms): Fix typo. | |
533 | ||
ecf180db JB |
534 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
535 | ||
536 | * CONTRIBUTE: Minor reformatting. | |
537 | ||
8234eceb KT |
538 | 2009-01-08 Kai Tietz <kai.tietz@onevision.com> |
539 | ||
540 | * MAINTAINERS: Add myself to Write After Approval. | |
a68ddad5 KT |
541 | * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+ |
542 | export directory. | |
8234eceb | 543 | |
72ee8797 NF |
544 | 2009-01-08 Nathan Froyd <froydnj@codesourcery.com> |
545 | ||
546 | * remote-sim.c (gdb_os_error): Mark as a noreturn function. | |
547 | Call exit to make it obvious to GCC. | |
548 | ||
f7545552 TT |
549 | 2009-01-08 Tom Tromey <tromey@redhat.com> |
550 | ||
551 | PR breakpoints/9350: | |
552 | * varobj.c (varobj_invalidate): Unconditionally free | |
553 | all_rootvarobj. | |
554 | * symfile.c (syms_from_objfile): Free local_addr when returning | |
555 | normally. | |
556 | * exec.c (exec_file_attach): Do cleanups before returning. | |
557 | (exec_file_command): Likewise. | |
558 | * corefile.c (reopen_exec_file): Do cleanups before returning. | |
559 | * breakpoint.c (insert_breakpoint_locations): Do cleanups before | |
560 | returning. | |
561 | (do_vec_free): New function. | |
562 | (update_global_location_list): Make a cleanup for old_locations. | |
563 | Do cleanups before returning. Remove unused variable 'e'. | |
564 | (find_condition_and_thread): Free result of parsing the | |
565 | expression. | |
566 | (print_it_typical): Do cleanups before returning. | |
567 | (breakpoint_re_set_one): Always free sals.sals. | |
568 | ||
dde02812 ES |
569 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
570 | Emi Suzuki <emi-suzuki@tjsys.co.jp> | |
571 | ||
572 | * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for | |
573 | watchpoints. | |
574 | ||
69bcc6bc DE |
575 | 2009-01-07 Doug Evans <dje@google.com> |
576 | ||
577 | * top.c (gdb_prompt_string): Delete, unused. | |
578 | ||
fa3a767f PA |
579 | 2009-01-07 Pedro Alves <pedro@codesourcery.com> |
580 | ||
581 | Delete ONE_PROCESS_WRITETEXT leftovers. | |
582 | ||
583 | * breakpoint.c (insert_bp_location): Delete process_warning | |
584 | argument. Adjust. | |
585 | (insert_breakpoint_locations): Adjust. | |
586 | (reattach_breakpoints): Adjust. | |
587 | * infrun.c (normal_stop): Drop "It might be running in another | |
588 | process" notice. | |
589 | ||
7b93f36d SS |
590 | 2009-01-07 Stan Shebs <stan@codesourcery.com> |
591 | ||
592 | * config/pa/linux.mh (XDEPFILES): Remove. | |
593 | ||
0380c18b DE |
594 | 2009-01-07 Doug Evans <dje@google.com> |
595 | ||
596 | * cli/cli-cmds.c (set_debug): Fix cut-n-paste error. | |
597 | ||
60023297 JK |
598 | 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
599 | ||
600 | * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output | |
601 | spacing, a regression from 2008-04-22. | |
602 | ||
ea8992ce JB |
603 | 2009-01-07 Joel Brobecker <brobecker@adacore.com> |
604 | ||
605 | * utils.c (gdb_print_host_address): Adjust implementation to | |
606 | reuse host_address_to_string. Move comment explaining the conversion | |
607 | from host address to string from here... | |
608 | (host_address_to_string): ... to there. | |
609 | ||
301d2c47 ES |
610 | 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp> |
611 | ||
612 | * MAINTAINERS: Add myself for write after approval privileges. | |
613 | ||
170ce852 TT |
614 | 2009-01-06 Tom Tromey <tromey@redhat.com> |
615 | ||
616 | * value.c (set_internalvar): Use value_free, not xfree. | |
617 | ||
fdb7262a JB |
618 | 2009-01-06 Jim Blandy <jimb@red-bean.com> |
619 | ||
bf1d7d9c JB |
620 | Check return values of functions declared with warn_unused_result |
621 | attribute in GLIBC 2.8. | |
622 | * cli/cli-cmds.c (pwd_command): Check return value from getcwd. | |
623 | * inflow.c (check_syscall): New function. | |
624 | (new_tty): Use check_syscall to check return values from open and dup. | |
625 | * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets. | |
626 | * main.c (captured_main): Call cwd after setting up gdb_stderr; | |
627 | check for errors from getcwd. | |
628 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd. | |
629 | * ui-file.c (stdio_file_write): Ignore return value from fwrite. | |
630 | (stdio_file_fputs): Same. | |
631 | * utils.c (internal_vproblem): abort if last-ditch error message | |
632 | write fails. | |
633 | ||
fdb7262a JB |
634 | * top.c (gdb_init): Don't set the current directory here; that's |
635 | already been done in captured_main. | |
636 | ||
84603566 SL |
637 | 2009-01-06 Sandra Loosemore <sandra@codesourcery.com> |
638 | ||
639 | * ser-tcp.c: Adjust includes. | |
640 | (tcp_set_cmdlist, tcp_show_cmdlist): Declare. | |
641 | (tcp_auto_retry, tcp_retry_limit): Declare. | |
642 | (TIMEOUT): Remove, in favor of tcp_retry_limit. | |
643 | (POLL_INTERVAL): Increase to 5, in favor of backoff logic. | |
644 | (wait_for_connect): New function. | |
645 | (net_open): Use it. Add auto-retry logic. | |
646 | (set_tcp_cmd, show_tcp_cmd): New functions. | |
647 | (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry" | |
648 | and "set/show tcp connect-timeout" commands. | |
649 | * NEWS: Document new commands. | |
650 | ||
5171e6b3 TT |
651 | 2009-01-05 Tom Tromey <tromey@redhat.com> |
652 | ||
653 | * python/python-internal.h (Py_ssize_t): Define as int. | |
654 | ||
a367a1f2 JB |
655 | 2009-01-05 Jim Blandy <jimb@red-bean.com> |
656 | ||
657 | * MAINTAINERS: Fix my e-mail address as steering committee member. | |
658 | ||
0fb0cc75 JB |
659 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
660 | ||
661 | Updated copyright notices for most files. | |
662 | ||
c9fc347d JB |
663 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
664 | ||
665 | * top.c (print_gdb_version): Update copyright year. | |
666 | ||
a85d99b4 JB |
667 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
668 | ||
669 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008. | |
670 | ||
4d78a120 JB |
671 | 2009-01-01 Pedro Alves <pedro@codesourcery.com> |
672 | ||
673 | PR breakpoints/9681: | |
674 | * exceptions.h (enum errors): New error type, MEMORY_ERROR. | |
675 | * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR. | |
676 | * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but | |
677 | retrow all other exceptions. | |
678 | ||
67de2a4c | 679 | For older changes see ChangeLog-2008. |
c906108c SS |
680 | \f |
681 | Local Variables: | |
682 | mode: change-log | |
683 | left-margin: 8 | |
684 | fill-column: 74 | |
685 | version-control: never | |
57da7796 | 686 | coding: utf-8 |
c906108c | 687 | End: |