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