Commit | Line | Data |
---|---|---|
42e2132c JK |
1 | 2009-02-11 Jim Meyering <meyering@redhat.com> |
2 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
3 | ||
4 | Avoid NULL dereference. | |
5 | * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun). | |
6 | New variable func_type. | |
7 | ||
315aef0a PA |
8 | 2009-02-11 Pedro Alves <pedro@codesourcery.com> |
9 | ||
10 | * gdbarch.c: Regenerate. | |
11 | ||
58159490 PM |
12 | 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr> |
13 | ||
14 | * p-lang.c (is_pascal_string_type): Fix comment. | |
15 | Determine exact size of char elements for GPC | |
16 | strings. | |
17 | (pascal_printstr): Handle char width of 2 or 4. | |
18 | * p-valprint.c (pascal_val_print): Handle char | |
19 | of width 2 or 4. | |
20 | ||
d3f36a39 DJ |
21 | 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com> |
22 | ||
23 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc | |
24 | inside the loop. Only call addrmap_set_empty if the compilation unit | |
25 | had DW_AT_high_pc and DW_AT_low_pc. Update call to | |
26 | scan_partial_symbols. | |
27 | (scan_partial_symbols): Take NEED_PC argument and pass it along with | |
28 | LOWPC and HIGHPC. | |
29 | (add_partial_namespace): Take NEED_PC argument and pass it through. | |
30 | (add_partial_subprogram): Take NEED_PC argument. Update the addrmap | |
31 | if necessary. | |
32 | ||
47a3467a PA |
33 | 2009-02-07 Pedro Alves <pedro@codesourcery.com> |
34 | ||
35 | * NEWS: Mention inspecting extra signal information, $_siginfo, | |
36 | and the qXfer:siginfo:read and qXfer:siginfo:write packets. | |
37 | ||
1ef18d08 PA |
38 | 2009-02-07 Pedro Alves <pedro@codesourcery.com> |
39 | ||
40 | * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO | |
41 | isn't defined. | |
42 | ||
5b009018 PA |
43 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
44 | ||
45 | * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t) | |
46 | (compat_timer_t, compat_clock_t, struct compat_timeval) | |
47 | (compat_sigval_t, compat_siginfo_t): New types. | |
48 | (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun) | |
49 | (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr) | |
50 | (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines. | |
51 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
52 | (amd64_linux_siginfo_fixup): New. | |
53 | * linux-nat.c (linux_nat_siginfo_fixup): New. | |
54 | (siginfo_fixup): New. | |
55 | (linux_xfer_siginfo): Use siginfo_fixup to convert between the | |
56 | siginfo layout expected by ptrace and the siginfo layout of the | |
57 | inferior. | |
58 | (linux_nat_set_siginfo_fixup): New. | |
59 | * linux-nat.h (linux_nat_set_siginfo_fixup): Declare. | |
60 | ||
4aa995e1 PA |
61 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
62 | ||
63 | * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO. | |
64 | * infrun.c (siginfo_value_read, siginfo_value_write): New. | |
65 | (siginfo_value_funcs): New. | |
66 | (siginfo_make_value): New. | |
67 | (_initialize_infrun): Create the $_siginfo convenience variable. | |
68 | * gdbtypes.h (append_composite_type_field_aligned): Declare. | |
69 | * gdbtypes.c (append_composite_type_field): Rename to... | |
70 | (append_composite_type_field_aligned): ... this. Add ALIGNMENT | |
71 | argument. Handle it. | |
72 | (append_composite_type_field): Rewrite on top of | |
73 | append_composite_type_field_aligned. | |
74 | * value.h (internalvar_make_value): New typedef. | |
75 | (struct internalvar) <make_value>: New field. | |
76 | (create_internalvar_type_lazy): Declare. | |
77 | * value.c (create_internalvar): Clear make_value. | |
78 | (create_internalvar_type_lazy): New. | |
79 | (value_of_internalvar): If make_value is set use it. | |
80 | (preserve_values): Skip internal variables that don't have a | |
81 | value. | |
82 | * gdbarch.sh (get_siginfo_type): New. | |
83 | * gdbarch.h, gdbarch.c: Regenerate. | |
84 | ||
85 | * linux-tdep.h, linux-tdep.c: New. | |
86 | * amd64-linux-tdep.c: Include "linux-tdep.h". | |
87 | (amd64_linux_init_abi): Register linux_get_siginfo_type and | |
88 | linux_get_siginfo_mapper. | |
89 | * i386-linux-tdep.c: Include "linux-tdep.h". | |
90 | (i386_linux_init_abi): Register linux_get_siginfo_type and | |
91 | linux_get_siginfo_mapper. | |
92 | * arm-linux-tdep.c: Include "linux-tdep.h". | |
93 | (i386_linux_init_abi): Register linux_get_siginfo_type and | |
94 | linux_get_siginfo_mapper. | |
95 | ||
96 | * linux-nat.c (linux_xfer_siginfo): New. | |
97 | (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. | |
98 | * remote.c (PACKET_qXfer_siginfo_read) | |
99 | (PACKET_qXfer_siginfo_write): New. | |
100 | (feature remote_protocol_features): Add "qXfer:siginfo:read" and | |
101 | "qXfer:siginfo:write" features. | |
102 | (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. | |
103 | (_initialize_remote): Add "set/show remote read-siginfo-object" | |
104 | and "set/show remote write-siginfo-object" commands. | |
105 | ||
106 | * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o. | |
107 | (HFILES_NO_SRCDIR): Add linux-tdep.h. | |
108 | (ALLDEPFILES): Add linux-tdep.c. | |
109 | ||
110 | * configure.tgt (arm*-*-linux* | arm*-*-uclinux*) | |
111 | (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to | |
112 | gdb_target_obs. | |
113 | ||
5f5233d4 PA |
114 | 2009-02-06 Jim Blandy <jimb@codesourcery.com> |
115 | Daniel Jacobowitz <dan@codesourcery.com> | |
116 | Vladimir Prus <vladimir@codesourcery.com> | |
117 | Pedro Alves <pedro@codesourcery.com> | |
118 | ||
119 | * defs.h (enum lval_type): New value: lval_computed. | |
120 | * value.h (struct lval_funcs): New type. | |
121 | (allocate_computed_value, value_computed_funcs) | |
122 | (value_computed_closure): New declarations. | |
123 | * value.c (struct value): Add a structure to the location union | |
124 | for computed lvalues, containing 'funcs' and 'closure' members. | |
125 | (allocate_computed_value, value_computed_funcs) | |
126 | (value_computed_closure): New functions. | |
127 | (value_free): For computed lvalues, call the closure's | |
128 | 'free_closure' function before freeing the value itself. | |
129 | (value_copy): If we're copying an lval_computed value, call the | |
130 | closure's 'copy_closure' function. | |
131 | (set_value_component_location): If the original value is a | |
132 | computed lvalue, then call the closure's 'copy_closure' function. | |
133 | (value_of_internalvar): If an internal variable's value is a | |
134 | computed lvalue, make retrieving its value produce an equivalent | |
135 | computed lvalue. | |
136 | * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling | |
137 | their read function. | |
138 | (value_assign): Assign to computed lvalues by calling their write | |
139 | function. | |
140 | ||
117de6a9 PA |
141 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
142 | ||
143 | * linux-nat.c (linux_nat_wait): Adjust. | |
144 | (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init. | |
145 | * linux-nat.h (thread_db_init): Delete declaration. | |
146 | * linux-thread-db.c (target_beneath): Delete. | |
147 | (thread_db_init): Delete. | |
148 | (thread_db_detach): Use find_target_beneath. | |
149 | (thread_db_wait): Adjust interface. Use find_target_beneath. | |
150 | (thread_db_mourn_inferior): Use find_target_beneath. | |
151 | (thread_db_can_async_p, thread_db_is_async_p, thread_db_async) | |
152 | (thread_db_async_mask): Delete. | |
153 | (thread_db_pid_to_str): Adjust interface. Use | |
154 | find_target_beneath. | |
155 | (thread_db_get_thread_local_address): Adjust interface. Use | |
156 | find_target_beneath. | |
157 | (init_thread_db_ops): Delete references to delete functions. | |
158 | * target.c (update_current_target): Don't inherit or default | |
159 | to_wait. Don't inherit to_pid_to_str and | |
160 | to_get_thread_local_address. | |
161 | (target_translate_tls_address): Look for a pushed target that | |
162 | implements to_get_thread_local_address, and use it instead of | |
163 | checking for target_get_thread_local_address_p. | |
164 | (target_wait, target_pid_to_str): Reimplement as functions. | |
165 | (dummy_pid_to_str): New. | |
166 | (init_dummy_target): Register it. | |
167 | (debug_to_wait): Delete. | |
168 | * target.h (struct target_ops): Make to_wait, to_pid_to_str and | |
169 | to_get_thread_local_address accept a pointer to struct target_ops. | |
170 | (target_wait): Delete macro, and declare as function. | |
171 | (target_pid_to_str): Likewise. | |
172 | (target_get_thread_local_address) | |
173 | (target_get_thread_local_address_p): Delete. | |
174 | (noprocess): Add NORETURN and ATTR_NORETURN tags. | |
175 | * inf-ptrace.c (inf_ptrace_wait): Adjust. | |
176 | (inf_ptrace_pid_to_str): New. | |
177 | (inf_ptrace_target): Use inf_ptrace_pid_to_str. | |
178 | * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust. | |
179 | * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust. | |
180 | * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str): | |
181 | Adjust. | |
182 | * corelow.c (core_pid_to_str): Adjust. | |
183 | * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust. | |
184 | * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust. | |
185 | * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust. | |
186 | * go32-nat.c (go32_wait, go32_pid_to_str): Adjust. | |
187 | * hpux-thread.c (hpux_thread_wait): Adjust. | |
188 | * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust. | |
189 | * monitor.c (monitor_wait, monitor_pid_to_str): Adjust. | |
190 | * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust. | |
191 | * procfs.c (procfs_pid_to_str): Adjust. | |
192 | * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust. | |
193 | * remote-mips.c (mips_wait): Adjust. | |
194 | * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust. | |
195 | * remote.c (remote_wait, remote_pid_to_str) | |
196 | (remote_get_thread_local_address): Adjust. | |
197 | * rs6000-nat.c (rs6000_wait): Adjust. | |
198 | * sol-thread.c (procfs_pid_to_str): Adjust declaration. | |
199 | (sol_thread_wait, solaris_pid_to_str): Adjust. | |
200 | * spu-linux-nat.c (spu_child_wait): Adjust. | |
201 | * windows-nat.c (windows_wait, windows_pid_to_str): Adjust. | |
202 | ||
d8906c6f TJB |
203 | 2009-02-06 Tom Tromey <tromey@redhat.com> |
204 | ||
205 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o. | |
206 | (SUBDIR_PYTHON_SRCS): Add python-cmd.c. | |
207 | (python-cmd.o): New target. | |
208 | * cli/cli-decode.c (set_cmd_completer): Add self parameter to | |
209 | completer prototype. | |
210 | (add_cmd): Initialize destroyer member of cmd_list_element. Use | |
211 | make_symbol_completion_list_fn as completer. | |
212 | (delete_cmd): Call destroyer if one is set. | |
213 | * cli/cli-decode.h (cmd_list_element): Add cmd parameter to | |
214 | completer member. Add destroyer member. | |
215 | (set_cmd_completer): Add self parameter to | |
216 | completer prototype. | |
217 | * command.h (set_cmd_completer): Add cmd parameter to | |
218 | completer prototype. | |
219 | * completer.c (noop_completer, filename_completer, | |
220 | location_completer, expression_completer, command_completer): Adapt | |
221 | to new completer prototype. | |
222 | (complete_line_internal): Pass new parameter to completer function. | |
223 | * completer.h (noop_completer, filename_completer, | |
224 | location_completer, expression_completer, command_completer): Adapt | |
225 | prototypes to new completer prototype. | |
226 | * interps.c (interpreter_completer): Adapt to new completer | |
227 | prototype. | |
228 | * python/python-cmd.c: New file. | |
229 | * python/python-internal.h (gdbpy_initialize_commands): Add | |
230 | prototype. | |
231 | (gdbpy_doc_cst): Add forward declaration. | |
232 | * python/python.c (gdbpy_doc_cst): Declare. | |
233 | (_initialize_python): Call gdbpy_initialize_commands. Initialize | |
234 | gdbpy_doc_cst. | |
235 | * symtab.c (make_symbol_completion_list_fn): New function. | |
236 | * symtab.h (make_symbol_completion_list_fn): Add prototype. | |
237 | ||
739ef7fb PA |
238 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
239 | ||
240 | * target.c (target_get_osdata): Check for equal or higher than | |
241 | process_stratum, not dummy_stratum. | |
242 | ||
6d097e65 PA |
243 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
244 | ||
245 | * remote.c (extended_remote_can_run): Delete. | |
246 | (init_remote_ops): Don't register it. | |
247 | * target.c (target_get_osdata): Don't check for target_can_run. | |
248 | Instead any target that has already been pushed, otherwise | |
739ef7fb | 249 | fallback to the default run target. |
6d097e65 | 250 | |
947b8855 PA |
251 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
252 | ||
253 | * target.c (target_create_inferior, target_detach) | |
254 | (target_mourn_inferior, target_attach, target_close): Do target | |
255 | debug output. | |
256 | (debug_to_attach, debug_to_detach, debug_to_create_inferior) | |
257 | (debug_to_mourn_inferior, debug_to_close): Delete. | |
258 | (setup_target_debug): Adjust. | |
259 | ||
611041af PA |
260 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
261 | ||
262 | * target.h (target_stopped_data_address_p): Delete declaration, | |
263 | and don't define as macro. | |
264 | * target.c (target_stopped_data_address_p): Delete. | |
265 | ||
b6cb8e7d TJB |
266 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
267 | Tom Tromey <tromey@redhat.com> | |
268 | ||
269 | * python/python-utils.c (target_string_to_unicode): New function. | |
270 | * python/python-internal.h (target_string_to_unicode): New prototype. | |
271 | * python/python-value.c (valpy_string): New function. | |
272 | (value_object_methods): Add `string' entry. | |
273 | ||
54ba13f7 PA |
274 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
275 | ||
276 | * target.h (target_tid_to_str): Delete. | |
277 | * thread.c (print_thread_info, thread_apply_all_command) | |
278 | (thread_apply_command, thread_command, do_captured_thread_select): | |
279 | Use target_pid_to_str instead of target_tid_to_str. | |
280 | * linux-fork.c (delete_fork_command): Likewise. | |
281 | ||
9d49bdc2 PA |
282 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
283 | ||
284 | * frame.c (has_stack_frames): Make public. | |
285 | (get_prev_frame): Don't allow a NULL this_frame anymore. | |
286 | * frame.h (has_stack_frames): Declare. | |
287 | * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL | |
288 | to get_prev_frame, instead start at get_current_frame. | |
289 | (varobj_create): Check has_stack_frames before getting any frame; | |
290 | eliminate one usage of deprecated_safe_get_selected_frame. | |
291 | ||
12453b93 TJB |
292 | 2009-02-05 Tom Tromey <tromey@redhat.com> |
293 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
294 | ||
295 | * python/python.c (GdbMethods): Move to bottom of file. | |
296 | (get_parameter, execute_gdb_command, gdbpy_write, | |
297 | gdbpy_flush): Remove forward declarations. | |
298 | (eval_python_from_control_command): Fix error checking of function | |
299 | PyRun_SimpleString. Fix error string. | |
300 | (python_command): Likewise. | |
301 | (execute_gdb_command): Added from_tty argument. | |
302 | ||
ae6a3a4c TJB |
303 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
304 | ||
305 | * language.h (language_dfn): Add la_get_string member. | |
306 | (LA_GET_STRING): New macro. | |
307 | (default_get_string): New prototype. | |
308 | * language.c (default_get_string): New function. | |
309 | (unknown_language_defn, auto_language_defn, local_language_defn): Use | |
310 | default_get_string for la_get_string. | |
311 | * c-lang.c (c_get_string): New function. | |
312 | (c_language_defn, cplus_language_defn, asm_language_defn): Use | |
313 | c_get_string for la_get_string. | |
314 | (minimal_language_defn): Likewise | |
315 | * ada-lang.c (ada_language_defn): Likewise. | |
316 | * f-lang.c (f_language_defn): Use default_get_string for | |
317 | la_get_string. | |
318 | * jv-lang.c (java_language_defn): Likewise. | |
319 | * m2-lang.c (m2_language_defn): Likewise. | |
320 | * objc-lang.c (objc_language_defn): Likewise. | |
321 | * p-lang.c (p_language_defn): Likewise. | |
322 | * scm-lang.c (scm_language_defn): Likewise. | |
323 | * typeprint.c (type_to_string): New function. | |
324 | * value.h (type_to_string): New prototype. | |
325 | * valprint.c (val_print_string): Factor out code for reading string | |
326 | from the inferior into its own function. Put 2 spaces after period | |
327 | in comments. | |
328 | (read_string): New function. | |
329 | * valprint.h (read_string): New prototype. | |
330 | ||
fa8a61dc TT |
331 | 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr> |
332 | Tom Tromey <tromey@redhat.com> | |
333 | ||
334 | PR breakpoints/8079: | |
335 | * breakpoint.c (print_one_breakpoint): Use exp_string field | |
336 | to display expression of watchpoints. | |
337 | (mention): Likewise. | |
338 | (watch_command_1): Remove trailing whitespace from expression. | |
339 | * printcmd.c (struct display) <exp_string>: New field. | |
340 | (display_command): Set exp_string. | |
341 | (free_display): Free exp_string. | |
342 | (clear_displays): Use free_display. | |
343 | (do_one_display): Print exp_string. | |
344 | (display_info): Likewise. | |
345 | ||
08c637de TJB |
346 | 2009-02-04 Tom Tromey <tromey@redhat.com> |
347 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
348 | Phil Muldoon <pmuldoon@redhat.com> | |
349 | ||
350 | * python/python-internal.h (gdbpy_get_value_from_history): Rename | |
351 | prototype to gdbpy_history. | |
352 | (gdbpy_is_string): Declare. | |
353 | (python_string_to_host_string): Declare. | |
354 | * python/python-utils.c (gdbpy_is_string): New function. | |
355 | (unicode_to_encoded_string): New function. | |
356 | (unicode_to_target_string): Use it. | |
357 | (python_string_to_host_string): New function. | |
358 | * python/python-value.c (valpy_address): New function. | |
359 | (convert_value_from_python): Use gdbpy_is_string. Change to throw | |
360 | Python exception instead of a GDB exception on error. Properly check | |
361 | Python booleans. | |
362 | (valpy_getitem): Convert field name to host string. Handle array | |
363 | accesses. Adapt to new behaviour of convert_value_from_python. | |
364 | (valpy_new): Adapt to new behaviour of convert_value_from_python. | |
365 | (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND, | |
366 | VALPY_BITXOR, VALPY_BITOR>: New constants. | |
367 | (valpy_binop): Update. Adapt to new behaviour of | |
368 | convert_value_from_python. | |
369 | (valpy_invert): New function. | |
370 | (valpy_lsh): Likewise. | |
371 | (valpy_rsh): Likewise. | |
372 | (valpy_and): Likewise. | |
373 | (valpy_or): Likewise. | |
374 | (valpy_xor): Likewise. | |
375 | (valpy_richcompare): Call convert_value_from_python instead of doing | |
376 | conversions itself. | |
377 | (is_intlike, valpy_int, valpy_long, valpy_float): New functions. | |
378 | (gdbpy_get_value_from_history): Rename | |
379 | function to gdbpy_history. | |
380 | (gdbpy_initialize_values): Don't set tp_new. | |
381 | (value_object_type): Add valpy_new. | |
382 | (value_object_methods): Add `address' entry. | |
383 | (value_object_as_number): Update for new methods. | |
384 | * python/python.c (GdbMethods): Rename entry from | |
385 | `get_value_from_history' to `history'. | |
386 | ||
538e13a6 | 387 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
b5304971 JG |
388 | |
389 | * ada-lang.c (ada_template_to_fixed_record_type_1): Check size | |
390 | of type to guard against a crash. | |
391 | ||
33d502b4 JG |
392 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
393 | ||
394 | * value.c (value_from_contents_and_address): Always return | |
395 | a lval_memory value, even if address is null. | |
396 | ||
9f08ae4f TG |
397 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
398 | ||
399 | * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function. | |
400 | (amd64_darwin_sigcontext_addr): Ditto. | |
401 | (darwin_dwarf_signal_frame_p): Ditto. | |
402 | (i386_darwin_init_abi): Handle signal frames, use the const for | |
403 | sc_num_regs. | |
404 | (x86_darwin_init_abi_64): Ditto. | |
405 | ||
4bd207ef TG |
406 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
407 | ||
408 | * i386-tdep.c (i386_sigtramp_p): Make it public. | |
409 | * i386-tdep.h (i386_sigtramp_p): Declare. | |
410 | ||
4aa99a88 TG |
411 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
412 | ||
413 | * machoread.c (macho_symfile_read): Read minsymtab also from | |
414 | shared libraries. | |
415 | (macho_symfile_read): Try to read dwarf2 frame info from main | |
416 | object file, but not from OSO files. | |
417 | (macho_symfile_offsets): Update section names for latest BFD | |
418 | changes. | |
419 | * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops. | |
420 | (x86_darwin_init_abi_64): Ditto. | |
421 | * solib-darwin.c: New file. | |
422 | * solib-darwin.h: New file. | |
423 | * configure.tgt: Add solib.o solib-darwin.o for Darwin. | |
424 | ||
7a848be1 TG |
425 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
426 | ||
427 | * solist.h (struct target_so_ops): Comment fallback behavior for | |
428 | operation same. | |
429 | ||
b32d97f3 TT |
430 | 2009-02-03 Tom Tromey <tromey@redhat.com> |
431 | ||
432 | * completer.c (add_struct_fields): Check type_name against NULL | |
433 | before use. | |
434 | ||
692263b8 JB |
435 | 2009-02-03 Joel Brobecker <brobecker@adacore.com> |
436 | ||
437 | * MAINTAINERS: Update Elena's email address. | |
438 | ||
bfa149ac JB |
439 | 2009-02-02 Joel Brobecker <brobecker@adacore.com> |
440 | ||
441 | * breakpoint (update_watchpoint): Minor comment adjustment. | |
442 | ||
1c71341a TT |
443 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
444 | ||
52e44b43 | 445 | PR gdb/9594: |
1c71341a TT |
446 | * completer.c (count_struct_fields): Count method names. |
447 | (add_struct_fields): Add matching method names. | |
448 | ||
85541719 DE |
449 | 2009-02-02 Doug Evans <dje@google.com> |
450 | ||
451 | * configure.ac (gdbkt): Check both no_tcl/no_tk first, before | |
452 | doing any further tcl/tk configury. Don't configure gdbtk if | |
453 | tcl or tk check fails. | |
454 | * aclocal.m4: Regenerate. | |
455 | * configure: Regenerate. | |
456 | ||
a4295225 TT |
457 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
458 | ||
459 | PR exp/9059: | |
460 | * valops.c (find_overload_match): Follow typedefs before taking | |
461 | address of object argument. | |
462 | ||
f00150c9 DE |
463 | 2009-02-01 Doug Evans <dje@google.com> |
464 | ||
465 | * target.h (target_waitstatus_to_string): Declare. | |
466 | * target.c (target_waitstatus_to_string): New function. Copied from | |
467 | debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY, | |
468 | TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE, | |
469 | TARGET_WAITKIND_NO_HISTORY. | |
470 | (debug_to_wait): Call it. | |
471 | * infrun.c (wait_for_inferior): If debug_infrun, print result of | |
472 | target_wait. | |
473 | (fetch_inferior_event): Ditto. | |
474 | ||
5abdf4bd TT |
475 | 2009-01-30 Tom Tromey <tromey@redhat.com> |
476 | ||
477 | * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h. | |
478 | ||
592375cd VP |
479 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
480 | ||
481 | PR 8145. | |
482 | * thread.c (do_captured_list_thread_ids): Report the current | |
483 | thread id. | |
484 | ||
41447f92 VP |
485 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
486 | ||
487 | * breakpoint.c (create_breakpoint, create_breakpoints) | |
488 | (break_command_really, set_breakpoint): New parameter enabled. | |
489 | (create_breakpoint, break_command_really): Make breakpoint | |
490 | disabled if so requested. | |
491 | * breakpoint.h (set_breakpoint): New parameter enabled. | |
492 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option. | |
493 | ||
35669430 DE |
494 | 2009-01-28 Doug Evans <dje@google.com> |
495 | ||
496 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare. | |
497 | (amd64_displaced_step_fixup): Declare. | |
498 | * amd64-tdep.c: #include opcode/i386.h, dis-asm.h. | |
499 | (amd64_arch_regmap): Move out of amd64_analyze_stack_align | |
500 | and make static global. | |
501 | (amd64_arch_regmap_len): New static global. | |
502 | (amd64_arch_reg_to_regnum): New function. | |
503 | (struct amd64_insn): New struct. | |
504 | (struct displaced_step_closure): New struct. | |
505 | (onebyte_has_modrm,twobyte_has_modrm): New static globals. | |
506 | (rex_prefix_p,skip_prefixes) | |
507 | (amd64_insn_length_fprintf,amd64_insn_length_init_dis) | |
508 | (amd64_insn_length,amd64_get_unused_input_int_reg) | |
509 | (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy) | |
510 | (amd64_displaced_step_copy_insn) | |
511 | (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p) | |
512 | (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p) | |
513 | (amd64_displaced_step_fixup): New functions. | |
514 | * amd64-linux-tdep.c: #include arch-utils.h. | |
515 | (amd64_linux_init_abi): Install displaced stepping support. | |
516 | ||
4eb7c016 JG |
517 | 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
518 | Jerome Guitton <guitton@adacore.com> | |
519 | ||
520 | * configure, config.in: Regenerated. | |
521 | * configure.ac: Add --with-system-gdbinit. | |
522 | * main.c (get_init_files): New. | |
523 | (captured_main): Use get_init_files. Load system gdbinit before | |
524 | $HOME/.gdbinit. | |
525 | (print_gdb_help): Print location of init files. | |
526 | ||
7df3ce47 PA |
527 | 2009-01-28 Pedro Alves <pedro@codesourcery.com> |
528 | ||
529 | * corefile.c (generic_search): Delete disabled code. | |
530 | * gdbcore.h (generic_search): Delete declaration. | |
531 | ||
77435e4c PA |
532 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
533 | ||
534 | * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the | |
535 | parent to the child. | |
536 | * inf-ttrace.c (inf_ttrace_follow_fork): Likewise. | |
537 | * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use | |
538 | remove_breakpoints to remove breakpoints from the parent. | |
539 | ||
1e275f79 PA |
540 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
541 | ||
7488432f | 542 | PR backtrace/9458, PR backtrace/8864: |
1e275f79 PA |
543 | * frame.c (create_new_frame): Update the frame's cached PC before |
544 | finding its unwinder. Use frame_id_build to build the new frame's | |
545 | id. | |
546 | * stack.c (parse_frame_specification_1): Correct setting ``addrs'' | |
547 | array values from the ``args'' array values. | |
548 | ||
1deafd4e PA |
549 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
550 | ||
551 | * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type) | |
552 | (create_array_type, create_set_type, init_flags_type) | |
553 | (copy_type_recursive): Replace pairs of calls to XALLOC and memset | |
554 | with a call to XZALLOC or XCALLOC, and pairs of calls to | |
555 | obstack_alloc and memset with a call to OBSTACK_ZALLOC. | |
556 | ||
3c16cced PA |
557 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
558 | ||
559 | Add "maint set|show internal-error|internal-warning quit|corefile | |
560 | ask|yes|no" commands. | |
561 | ||
562 | PR gdb/7580: | |
563 | * utils.c (internal_problem_ask, internal_problem_yes) | |
564 | (internal_problem_no, internal_problem_modes): New. | |
565 | (struct internal_problem): Remove FIXME. Make should_quit and | |
566 | should_dump_core types to char *. | |
567 | (internal_vproblem, internal_error_problem) | |
568 | (internal_warning_problem): Adjust. | |
569 | (set_internal_problem_cmd, show_internal_problem_cmd): New dummy | |
570 | functions. | |
571 | (add_internal_problem_command): New. | |
572 | (_initialize_utils): New. | |
573 | ||
616d7dd2 PA |
574 | 2009-01-25 Pedro Alves <pedro@codesourcery.com> |
575 | ||
576 | * infcmd.c (program_info): Use paddress instead of casting stop_pc | |
577 | to unsigned long. | |
578 | ||
0516318b PA |
579 | 2009-01-24 Pedro Alves <pedro@codesourcery.com> |
580 | ||
581 | * infrun.c (normal_stop): Don't call | |
582 | deprecated_update_frame_pc_hack. | |
583 | * frame.c (deprecated_update_frame_pc_hack) | |
584 | (deprecated_update_frame_base_hack): Delete, and ... | |
585 | (create_new_frame): ... inline here. | |
586 | * frame.h (deprecated_update_frame_pc_hack) | |
587 | (deprecated_update_frame_base_hack): Delete declarations. | |
588 | ||
1e8fb976 PA |
589 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
590 | ||
591 | * cli/cli-decode.c (add_setshow_zuinteger_cmd): New. | |
592 | * cli/cli-setshow.c (do_setshow_command): Handle it. | |
593 | * command.h (enum var_types): Add var_zuinteger. | |
594 | (add_setshow_zuinteger_cmd): Declare. | |
595 | ||
596 | * valprint.c (_initialize_valprint): Change the set input-radix | |
597 | and set output-radix commands to zuinteger type. | |
598 | ||
dd7e2d2b PA |
599 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
600 | ||
601 | PR gdb/9664: | |
602 | * infrun.c (normal_stop): Tag threads as stopped, and run the | |
603 | hook-stop before printing the stack frame. | |
604 | ||
392452f6 PA |
605 | 2009-01-22 Pedro Alves <pedro@codesourcery.com> |
606 | ||
607 | PR c++/9631: | |
608 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on | |
609 | vbasetype. | |
610 | ||
f6a96b83 KH |
611 | 2009-01-20 Kazu Hirata <kazu@codesourcery.com> |
612 | ||
613 | * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to | |
614 | unsigned long. | |
615 | ||
5d277928 | 616 | 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com> |
a12cc160 DJ |
617 | |
618 | PR gdb/9346 | |
619 | * infcmd.c (signal_command): Do not specify a resume PC. | |
620 | ||
b89667eb DE |
621 | 2009-01-19 Doug Evans <dje@google.com> |
622 | ||
623 | * dummy-frame.c (dummy_frame): Replace regcache member with | |
624 | caller_state. | |
625 | (dummy_frame_push): Replace caller_regcache arg with caller_state. | |
626 | All callers updated. | |
627 | (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns. | |
628 | (dummy_frame_pop): Rewrite. Verify requested frame is in the | |
629 | dummy frame stack. Restore program state. | |
630 | (cleanup_dummy_frames): Rewrite. | |
631 | (dummy_frame_sniffer): Update. Make static. | |
632 | * dummy-frame.h (regcache,frame_info): Delete forward decls. | |
633 | (inferior_thread_state): New forward decl. | |
634 | (dummy_frame_push): Update prototype. | |
635 | * frame.c (frame_pop): dummy_frame_pop now does all the work for | |
636 | DUMMY_FRAMEs. | |
637 | * infcall.c (breakpoint_auto_delete_contents): Delete. | |
638 | (get_function_name,run_inferior_call): New fns. | |
639 | (call_function_by_hand): Simplify by moving some code to | |
640 | get_function_name, run_inferior_call. Inferior function call wrapped | |
641 | in TRY_CATCH so there's less need for cleanups and all exits from | |
642 | proceed are handled similarily. Detect program exit. | |
643 | Detect program stopping in a different thread. | |
644 | Make error messages more consistent. | |
645 | * inferior.h (inferior_thread_state): Declare (opaque type). | |
646 | (save_inferior_thread_state,restore_inferior_thread_state, | |
647 | make_cleanup_restore_inferior_thread_state, | |
648 | discard_inferior_thread_state, get_inferior_thread_state_regcache): | |
649 | Declare. | |
650 | (save_inferior_status): Update prototype. | |
651 | * infrun.c: (normal_stop): When stopped for the completion of an | |
652 | inferior function call, verify the expected stack frame kind. | |
653 | (inferior_thread_state): New struct. | |
654 | (save_inferior_thread_state,restore_inferior_thread_state, | |
655 | do_restore_inferior_thread_state_cleanup, | |
656 | make_cleanup_restore_inferior_thread_state, | |
657 | discard_inferior_thread_state, | |
658 | get_inferior_thread_state_regcache): New functions. | |
659 | (inferior_status): Move stop_signal, stop_pc, registers to | |
660 | inferior_thread_state. Remove restore_stack_info. | |
661 | (save_inferior_status): Remove arg restore_stack_info. | |
662 | All callers updated. Remove saving of state now saved by | |
663 | save_inferior_thread_state. | |
664 | (restore_inferior_status): Remove restoration of state now done by | |
665 | restore_inferior_thread_state. | |
666 | (discard_inferior_status): Remove freeing of registers, now done by | |
667 | discard_inferior_thread_state. | |
668 | ||
aefc7064 PA |
669 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
670 | ||
671 | * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line | |
672 | at a time, times NUM_TO_SCROLL. | |
673 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to | |
674 | fetch the selected frame if there is no stack. | |
675 | ||
29f49a6a PA |
676 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
677 | ||
678 | PR gdb/9747: | |
679 | * gdbthread.h (finish_thread_state, finish_thread_state_cleanup): | |
680 | Declare. | |
681 | * thread.c (finish_thread_state, finish_thread_state_cleanup): New. | |
682 | * infrun.c (wait_for_inferior, fetch_inferior_event): If an error | |
683 | is thrown while handling an event, finish the thread state. | |
684 | (normal_stop): Use finish_thread_state cleanup. | |
685 | * infcmd.c (run_command_1): If an error is thrown while starting | |
686 | the inferior, finish the thread state. | |
687 | ||
e7243d73 PA |
688 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
689 | ||
690 | * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout, | |
691 | skip breakpoints without a location (pending breakpoints). | |
692 | ||
e74994b5 PA |
693 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
694 | ||
695 | PR build/9186: | |
696 | * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'. | |
697 | ||
8405c36e NR |
698 | 2009-01-18 Nick Roberts <nickrob@snap.net.nz> |
699 | ||
700 | * thread.c (thread_command): Move call to annotate_thread_changed | |
701 | to... | |
702 | (do_captured_thread_select): ... here, to avoid printing an | |
703 | annotation if the thread change generates an exception. | |
704 | ||
b8bfd3ed JB |
705 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
706 | ||
707 | * NEWS: Document x86_64/MinGW as a new native configuration. | |
708 | ||
2dde91e9 JB |
709 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
710 | ||
711 | * NEWS: Move the documentation of "info os processes" to | |
712 | the appropriate section (documenting the new commands). | |
713 | ||
54363045 DE |
714 | 2009-01-15 Doug Evans <dje@google.com> |
715 | ||
716 | * target.h (target_signal_to_string): Make return type const char *. | |
717 | (target_signal_to_name): Ditto. | |
718 | (target_signal_from_name): Make arg const char *. | |
54363045 | 719 | * infrun.c (sig_print_info): Update. |
54363045 DE |
720 | * signals/signals.c (signals): Make array and struct members const. |
721 | (target_signal_to_string): Make return type const char *. | |
722 | (target_signal_to_name): Ditto. | |
723 | (target_signal_from_name): Make arg const char *. | |
724 | ||
572d275c UW |
725 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
726 | Tristan Gingold <gingold@adacore.com> | |
727 | ||
728 | * solist.h (struct target_so_ops): New member bfd_open. | |
729 | (solib_find): Add prototype. | |
730 | (solib_bfd_fopen): Add prototype. | |
731 | * solib.c (solib_find, solib_bfd_fopen): New functions, extracted | |
732 | from solib_bfd_open. | |
733 | (solib_bfd_open): Use ops->bfd_open override if present. Call | |
734 | solib_find and solib_bfd_open otherwise. | |
735 | ||
736 | * objfiles.h (OBJF_KEEPBFD): New define. | |
737 | * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD | |
738 | objfile flag is set. | |
739 | * solib.c (symbol_add_stub): Do not allocate second BFD for | |
740 | shared library; use OBJF_KEEPBFD flag on solib objfile. | |
741 | ||
0701b271 UW |
742 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
743 | ||
744 | * frame.c (get_frame_arch): Abort if called with NULL this_frame. | |
745 | ||
61212c0f UW |
746 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
747 | ||
748 | * value.h (address_of_variable): Add prototype. | |
749 | (locate_var_value): Remove prototype. | |
750 | ||
751 | * findvar.c (read_var_value): Do not attempt to default frame | |
752 | to selected frame. | |
753 | (locate_var_value): Remove function. | |
754 | * valops.c (value_of_variable): Retrieve selected frame for | |
755 | symbols that require a frame when called with NULL block. | |
756 | * valops.c (address_of_variable): New function. | |
757 | ||
758 | * eval.c (evaluate_subexp_for_address): Call address_of_variable | |
759 | instead of calling locate_var_value. | |
760 | (evaluate_subexp_with_coercion): Likewise. | |
761 | ||
adb483fe DJ |
762 | 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com> |
763 | ||
764 | * NEWS: Document "define" for prefixed commands. | |
765 | * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call | |
766 | show_user_1 for prefix commands. | |
767 | * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined". | |
768 | * cli/cli-script.c (validate_comname): Rewrite to handle prefix | |
769 | commands. Return the containing command list. | |
770 | (define_command, document_command): Update to handle prefix commands. | |
771 | (show_user_1): Add prefix and name arguments. Handle prefix | |
772 | commands. | |
773 | * cli/cli-script.h (show_user_1): Update prototype. | |
774 | ||
a32d7317 KT |
775 | 2009-01-14 Kai Tietz <kai.tietz@onevision.com> |
776 | ||
777 | * mingw-ser.c (console_select_thread): Add return to make | |
778 | compiler happy. | |
779 | (pipe_select_thread): Likewise. | |
780 | (file_select_thread): Likewise. | |
781 | ||
041d0fd7 PA |
782 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
783 | ||
784 | * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from | |
785 | previous change. | |
786 | ||
dc1981d7 PA |
787 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
788 | ||
789 | * remote.c (extended_remote_mourn_1): Invalidate our notion of | |
790 | current general thread. | |
791 | ||
244bf9ae PA |
792 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
793 | ||
794 | * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups | |
795 | without a live selected thread. | |
796 | ||
e4d013fc JB |
797 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
798 | ||
799 | Update the copyright notice of some of the files I missed | |
800 | in the previous copyright update. | |
801 | ||
a588db63 JB |
802 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
803 | ||
804 | * windows-nat.c (handle_unload_dll): Use %p to print the DLL | |
805 | base address instead of casting it to DWORD. | |
806 | ||
77a732d9 UW |
807 | 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
808 | ||
809 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch | |
810 | for NULL frame pointers. | |
811 | ||
773698b5 JB |
812 | 2009-01-13 Mark Kettenis <kettenis@gnu.org> |
813 | ||
814 | * utils.c (host_address_to_string): Reimplement in a way that | |
815 | avoids the cast of the address to long. | |
816 | ||
9918cab9 JB |
817 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
818 | ||
819 | * mdebugread.c (parse_symbol): Save the symbol private data | |
820 | using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE. | |
821 | (psymtab_to_symtab_1): Likewise. | |
822 | (parse_procedure): Declare variable "e" only in the scope | |
823 | where it is used. Extract the symbol private data using | |
824 | SYMBOL_VALUE_BYTES. | |
825 | ||
74bcbdf3 PA |
826 | 2009-01-13 Jim Blandy <jimb@codesourcery.com> |
827 | ||
828 | Abstract out common code for copying value locations. | |
829 | ||
830 | * value.h (set_value_component_location): New declaration. | |
831 | * value.c (set_value_component_location): New function. | |
832 | (value_primitive_field): Use it. | |
833 | * valarith.c (value_subscript, value_subscripted_rvalue): Same. | |
834 | * valops.c (search_struct_field, value_slice): Same. | |
835 | * ada-lang.c (coerce_unspec_val_to_type) | |
836 | (ada_value_primitive_packed_val): Same. | |
837 | ||
d7dc3873 JB |
838 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
839 | ||
840 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey. | |
841 | ||
dc05df57 CF |
842 | 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx> |
843 | ||
844 | * amd64-windows-nat.c Rename gdb-specific win32_* to windows_* | |
845 | throughout. | |
846 | * i386-cygwin-tdep.c: Ditto. | |
847 | * i386-windows-nat.c: Ditto. | |
848 | * windows-nat.h: Ditto. | |
849 | * windows-tdep.c: Ditto. | |
850 | * windows-tdep.h: Ditto. | |
851 | * windows-nat.c: Ditto. | |
852 | (cygwin_load_start): Redefine as CORE_ADDR. | |
853 | (cygwin_load_end): Ditto. | |
854 | (windows_make_so): Coerce result of address arithmetic to to uintptr_t | |
855 | before coercing to CORE_ADDR to avoid a compiler warning. | |
856 | (handle_exception): Define addr as CORE_ADDR and coerce | |
857 | ExceptionAddress to uintptr_t before assigining to avoid a compiler | |
858 | warning. | |
859 | * config/djgpp/fnchange.lst: Add mappings for recently renamed windows | |
860 | files. | |
861 | ||
31b060a2 CF |
862 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
863 | ||
864 | Fix linking with --enable-targets=all: | |
865 | * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o. | |
866 | (HFILES_NO_SRCDIR): Add windows-tdep.h. | |
867 | (ALLDEPFILES): Add windows-tdep.c. | |
868 | ||
869 | 2009-01-11 Christ Faylor <me.gdb@cgf.cx> | |
870 | ||
871 | * win32-nat.h: Delete. | |
872 | * windows-nat.h: Rename from win32-nat.h. | |
873 | * win32-nat.c: Delete. | |
874 | * windows-nat.c: Rename from win32-nat.c. | |
875 | * win32-termcap.c: Delete. | |
876 | * windows-termcap.c: Rename from win32-termcap.c. | |
877 | * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h. | |
878 | * configure.ac: Handle rename from win32-termcap.c -> | |
879 | windows-termcap.c. | |
880 | * configure: Regenerate. | |
881 | * gdb_curses.h: Change comment to reflect rename from win32-termcap.c | |
882 | -> windows-termcap.c. | |
883 | * i386-cygwin-tdep.c: Handle rename from win32-tdep.h -> | |
884 | windows-tdep.h. | |
885 | * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h. | |
886 | * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h -> | |
887 | windows-tdep.h. | |
888 | (win32_make_so): Handle cygwin compiler warning due to change of | |
889 | load_addr from DWORD to LPVOID. | |
890 | (handle_load_dll): Use %p in format string to properly print address | |
891 | and avoid a compiler warning. | |
892 | (DEBUG_EXCEPTION_SIMPLE): Ditto. | |
893 | (handle_exception): Ditto. | |
894 | * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h. | |
895 | * config/i386/cygwin.mh: Handle rename from win32-nat.o -> | |
896 | windows-nat.o. | |
897 | * config/i386/mingw.mh: Ditto. | |
898 | * config/i386/mingw64.mh: Ditto. | |
899 | ||
0311118f JK |
900 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
901 | ||
902 | * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable | |
903 | arrayprint_recurse_level to a parameter. Update all the callers. New | |
904 | comment at autovariables. | |
905 | ||
5f61c20e JK |
906 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
907 | ||
908 | * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU | |
909 | coding style. | |
910 | ||
911 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> | |
53b71562 JB |
912 | |
913 | * target.c (target_xfer_partial): Use host_address_to_string to | |
914 | print the address of readbuf and writebuf. Cast the address of | |
915 | elements inside the myaddr buffer into intptr_t. | |
916 | (deprecated_debug_xfer_memory): Use paddress to print memaddr. | |
917 | Cast the address of elements inside the myaddr buffer into | |
918 | intptr_t. | |
919 | ||
5f61c20e | 920 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
d0761299 JB |
921 | |
922 | * amd64-windows-nat.c, amd64-windows-tdep.c: New files. | |
923 | * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files. | |
924 | * configure.host, configure.tgt: Add handling for x86_64/windows. | |
925 | * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c | |
926 | and amd64-windows-tdep.c. | |
927 | ||
5f61c20e | 928 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
bfb87e33 JB |
929 | |
930 | * win32-tdep.h, win32-tdep.c: New files. | |
931 | * i386-cygwin-tdep.h: Delete. | |
932 | * i386-cygwin-tdep.c: Include win32-tdep.h instead of | |
933 | i386-cygwin-tdep.h. | |
934 | (win32_xfer_shared_library): Delete. Moved to win32-tdep.c. | |
935 | * win32-nat.c: Likewise. | |
936 | * configure.tgt: Add win32-tdep.o to the list of target object | |
937 | files for i386-cygwin and i386-mingw targets. | |
938 | ||
5f61c20e | 939 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
7e63b4e4 JB |
940 | |
941 | * win32-nat.h: New file. | |
942 | * win32-nat.c (mappings): Initialize to NULL. | |
943 | (win32_set_context_register_offsets): New function. | |
944 | * i386-windows-nat.c: New file. | |
945 | (mappings): Moved here from win32-nat.c. | |
946 | (_initialize_i386_windows_nat): New function. | |
947 | * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o. | |
948 | * config/i386/cygwin.mh (NATDEPFILES): Likewise. | |
949 | ||
25fc6591 AS |
950 | 2009-01-09 Andreas Schwab <schwab@suse.de> |
951 | ||
952 | * Makefile.in (init.c): Set LANG/LC_ALL to C, not c. | |
953 | ||
87f70781 PA |
954 | 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
955 | ||
956 | * gdbtypes.c (append_composite_type_field): Correct the location of | |
957 | appended fields. | |
958 | ||
58d4abe1 PA |
959 | 2009-01-09 Pedro Alves <pedro@codesourcery.com> |
960 | ||
961 | * defs.h (deprecated_error_hook): Delete declaration. | |
962 | * interps.c (clear_interpreter_hooks): Adjust. | |
963 | * remote-sim.c (gdb_os_error): Don't try to call | |
964 | deprecated_error_hook. No need to call exit anymore. | |
965 | * top.c (deprecated_error_hook): Delete. | |
966 | ||
e3cb3832 JB |
967 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
968 | ||
969 | * arch-utils.c (gdbarch_update_p): Use host_address_to_string | |
970 | to print the address of the gdbarch pointer. | |
971 | ||
30737ed9 JB |
972 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
973 | ||
974 | * gdbarch.sh: Fix all the compilation errors on amd64-windows | |
975 | due to casting a pointer to a long when printing a function | |
976 | address. Instead, use host_address_to_string to convert our | |
977 | address to a string. | |
978 | * gdbarch.c: Regenerate. | |
979 | ||
ec4dfccf JB |
980 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
981 | ||
982 | * event-top.c (async_disconnect, async_stop_sig): use "raise" | |
983 | instead of "kill" to raise a signal. | |
984 | ||
d3653bf6 JB |
985 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
986 | ||
987 | * win32-nat.c (get_module_name): Change the type of parameter | |
988 | "base_address" to LPVOID. Remove unnecessary cast. | |
989 | (struct lm_info): Change type of load_addr to LPVOID. | |
990 | (win32_make_so): Change the type of parameter "load_addr" | |
991 | to LPVOID. Remove some unnecessary casts. | |
992 | (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID. | |
993 | (win32_xfer_shared_libraries): Add missing cast. | |
994 | ||
308a8808 JB |
995 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
996 | ||
997 | * win32-nat.c (has_detach_ability, set_process_privilege): | |
998 | Cast the result of GetProcAddress to (void *) to avoid | |
999 | a compilation warning. | |
1000 | ||
5851ab76 JB |
1001 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1002 | ||
1003 | * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not | |
1004 | already defined. | |
1005 | ||
5732a500 JB |
1006 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1007 | ||
1008 | * win32-nat.c (get_image_name, win32_xfer_memory): Fix type | |
1009 | definition of local variable "done". | |
1010 | (info_w32_command, handle_exception): Remove unnecessary cast. | |
1011 | ||
def4de3a JB |
1012 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1013 | ||
1014 | * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames | |
1015 | DebugSetProcessKillOnExit. Update all uses in this file. | |
1016 | (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop. | |
1017 | Update all uses in this file. | |
1018 | ||
1019 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> | |
0795be10 JB |
1020 | |
1021 | * win32-nat.c (do_initial_win32_stuff): Add new ops parameter, | |
1022 | and use it when pushing the target. | |
1023 | (win32_attach, win32_create_inferior): Update call to | |
1024 | do_initial_win32_stuff. | |
1025 | (win32_detach, win32_mourn_inferior): Use our ops parameter | |
1026 | instead of the global win32_ops to unpush the target. | |
1027 | ||
1be7fe8d JB |
1028 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1029 | ||
1030 | * ser-mingw.c (ser_windows_open): Use proper type when casting | |
1031 | in call to _open_osfhandle. | |
1032 | ||
1dac1b47 KT |
1033 | 2009-01-09 Kai Tietz <kai.tietz@onevision.com> |
1034 | ||
1035 | * coff-pe-read.c (read_pe_exported_syms): Fix typo. | |
1036 | ||
ecf180db JB |
1037 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1038 | ||
1039 | * CONTRIBUTE: Minor reformatting. | |
1040 | ||
8234eceb KT |
1041 | 2009-01-08 Kai Tietz <kai.tietz@onevision.com> |
1042 | ||
1043 | * MAINTAINERS: Add myself to Write After Approval. | |
a68ddad5 KT |
1044 | * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+ |
1045 | export directory. | |
8234eceb | 1046 | |
72ee8797 NF |
1047 | 2009-01-08 Nathan Froyd <froydnj@codesourcery.com> |
1048 | ||
1049 | * remote-sim.c (gdb_os_error): Mark as a noreturn function. | |
1050 | Call exit to make it obvious to GCC. | |
1051 | ||
f7545552 TT |
1052 | 2009-01-08 Tom Tromey <tromey@redhat.com> |
1053 | ||
1054 | PR breakpoints/9350: | |
1055 | * varobj.c (varobj_invalidate): Unconditionally free | |
1056 | all_rootvarobj. | |
1057 | * symfile.c (syms_from_objfile): Free local_addr when returning | |
1058 | normally. | |
1059 | * exec.c (exec_file_attach): Do cleanups before returning. | |
1060 | (exec_file_command): Likewise. | |
1061 | * corefile.c (reopen_exec_file): Do cleanups before returning. | |
1062 | * breakpoint.c (insert_breakpoint_locations): Do cleanups before | |
1063 | returning. | |
1064 | (do_vec_free): New function. | |
1065 | (update_global_location_list): Make a cleanup for old_locations. | |
1066 | Do cleanups before returning. Remove unused variable 'e'. | |
1067 | (find_condition_and_thread): Free result of parsing the | |
1068 | expression. | |
1069 | (print_it_typical): Do cleanups before returning. | |
1070 | (breakpoint_re_set_one): Always free sals.sals. | |
1071 | ||
dde02812 ES |
1072 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
1073 | Emi Suzuki <emi-suzuki@tjsys.co.jp> | |
1074 | ||
1075 | * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for | |
1076 | watchpoints. | |
1077 | ||
69bcc6bc DE |
1078 | 2009-01-07 Doug Evans <dje@google.com> |
1079 | ||
1080 | * top.c (gdb_prompt_string): Delete, unused. | |
1081 | ||
fa3a767f PA |
1082 | 2009-01-07 Pedro Alves <pedro@codesourcery.com> |
1083 | ||
1084 | Delete ONE_PROCESS_WRITETEXT leftovers. | |
1085 | ||
1086 | * breakpoint.c (insert_bp_location): Delete process_warning | |
1087 | argument. Adjust. | |
1088 | (insert_breakpoint_locations): Adjust. | |
1089 | (reattach_breakpoints): Adjust. | |
1090 | * infrun.c (normal_stop): Drop "It might be running in another | |
1091 | process" notice. | |
1092 | ||
7b93f36d SS |
1093 | 2009-01-07 Stan Shebs <stan@codesourcery.com> |
1094 | ||
1095 | * config/pa/linux.mh (XDEPFILES): Remove. | |
1096 | ||
0380c18b DE |
1097 | 2009-01-07 Doug Evans <dje@google.com> |
1098 | ||
1099 | * cli/cli-cmds.c (set_debug): Fix cut-n-paste error. | |
1100 | ||
60023297 JK |
1101 | 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1102 | ||
1103 | * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output | |
1104 | spacing, a regression from 2008-04-22. | |
1105 | ||
ea8992ce JB |
1106 | 2009-01-07 Joel Brobecker <brobecker@adacore.com> |
1107 | ||
1108 | * utils.c (gdb_print_host_address): Adjust implementation to | |
1109 | reuse host_address_to_string. Move comment explaining the conversion | |
1110 | from host address to string from here... | |
1111 | (host_address_to_string): ... to there. | |
1112 | ||
301d2c47 ES |
1113 | 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp> |
1114 | ||
1115 | * MAINTAINERS: Add myself for write after approval privileges. | |
1116 | ||
170ce852 TT |
1117 | 2009-01-06 Tom Tromey <tromey@redhat.com> |
1118 | ||
1119 | * value.c (set_internalvar): Use value_free, not xfree. | |
1120 | ||
fdb7262a JB |
1121 | 2009-01-06 Jim Blandy <jimb@red-bean.com> |
1122 | ||
bf1d7d9c JB |
1123 | Check return values of functions declared with warn_unused_result |
1124 | attribute in GLIBC 2.8. | |
1125 | * cli/cli-cmds.c (pwd_command): Check return value from getcwd. | |
1126 | * inflow.c (check_syscall): New function. | |
1127 | (new_tty): Use check_syscall to check return values from open and dup. | |
1128 | * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets. | |
1129 | * main.c (captured_main): Call cwd after setting up gdb_stderr; | |
1130 | check for errors from getcwd. | |
1131 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd. | |
1132 | * ui-file.c (stdio_file_write): Ignore return value from fwrite. | |
1133 | (stdio_file_fputs): Same. | |
1134 | * utils.c (internal_vproblem): abort if last-ditch error message | |
1135 | write fails. | |
1136 | ||
fdb7262a JB |
1137 | * top.c (gdb_init): Don't set the current directory here; that's |
1138 | already been done in captured_main. | |
1139 | ||
84603566 SL |
1140 | 2009-01-06 Sandra Loosemore <sandra@codesourcery.com> |
1141 | ||
1142 | * ser-tcp.c: Adjust includes. | |
1143 | (tcp_set_cmdlist, tcp_show_cmdlist): Declare. | |
1144 | (tcp_auto_retry, tcp_retry_limit): Declare. | |
1145 | (TIMEOUT): Remove, in favor of tcp_retry_limit. | |
1146 | (POLL_INTERVAL): Increase to 5, in favor of backoff logic. | |
1147 | (wait_for_connect): New function. | |
1148 | (net_open): Use it. Add auto-retry logic. | |
1149 | (set_tcp_cmd, show_tcp_cmd): New functions. | |
1150 | (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry" | |
1151 | and "set/show tcp connect-timeout" commands. | |
1152 | * NEWS: Document new commands. | |
1153 | ||
5171e6b3 TT |
1154 | 2009-01-05 Tom Tromey <tromey@redhat.com> |
1155 | ||
1156 | * python/python-internal.h (Py_ssize_t): Define as int. | |
1157 | ||
a367a1f2 JB |
1158 | 2009-01-05 Jim Blandy <jimb@red-bean.com> |
1159 | ||
1160 | * MAINTAINERS: Fix my e-mail address as steering committee member. | |
1161 | ||
0fb0cc75 JB |
1162 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1163 | ||
1164 | Updated copyright notices for most files. | |
1165 | ||
c9fc347d JB |
1166 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1167 | ||
1168 | * top.c (print_gdb_version): Update copyright year. | |
1169 | ||
a85d99b4 JB |
1170 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1171 | ||
1172 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008. | |
1173 | ||
4d78a120 JB |
1174 | 2009-01-01 Pedro Alves <pedro@codesourcery.com> |
1175 | ||
1176 | PR breakpoints/9681: | |
1177 | * exceptions.h (enum errors): New error type, MEMORY_ERROR. | |
1178 | * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR. | |
1179 | * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but | |
1180 | retrow all other exceptions. | |
1181 | ||
67de2a4c | 1182 | For older changes see ChangeLog-2008. |
c906108c SS |
1183 | \f |
1184 | Local Variables: | |
1185 | mode: change-log | |
1186 | left-margin: 8 | |
1187 | fill-column: 74 | |
1188 | version-control: never | |
57da7796 | 1189 | coding: utf-8 |
c906108c | 1190 | End: |